你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ContentModeratorClient class

Extends

构造函数

ContentModeratorClient(ServiceClientCredentials, string, ServiceClientOptions)

初始化 ContentModeratorClient 类的新实例。

属性

imageModeration
listManagementImage
listManagementImageLists
listManagementTerm
listManagementTermLists
reviews
textModeration

继承属性

credentials
endpoint

继承的方法

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

发送使用提供的 OperationSpec 填充的 HTTP 请求。

sendRequest(RequestPrepareOptions | WebResourceLike)

发送提供的 httpRequest。

构造函数详细信息

ContentModeratorClient(ServiceClientCredentials, string, ServiceClientOptions)

初始化 ContentModeratorClient 类的新实例。

new ContentModeratorClient(credentials: ServiceClientCredentials, endpoint: string, options?: ServiceClientOptions)

参数

credentials
ServiceClientCredentials

唯一标识客户端订阅的订阅凭据。

endpoint

string

支持的认知服务终结点 (协议和主机名,例如: https://westus.api.cognitive.microsoft.com) 。

options
ServiceClientOptions

参数选项

属性详细信息

imageModeration

imageModeration: ImageModeration

属性值

listManagementImage

listManagementImage: ListManagementImage

属性值

listManagementImageLists

listManagementImageLists: ListManagementImageLists

属性值

listManagementTerm

listManagementTerm: ListManagementTerm

属性值

listManagementTermLists

listManagementTermLists: ListManagementTermLists

属性值

reviews

reviews: Reviews

属性值

textModeration

textModeration: TextModeration

属性值

继承属性详细信息

credentials

credentials: ServiceClientCredentials

属性值

继承自ContentModeratorClientContext.credentials

endpoint

endpoint: string

属性值

string

继承自ContentModeratorClientContext.endpoint

继承的方法详细信息

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

发送使用提供的 OperationSpec 填充的 HTTP 请求。

function sendOperationRequest(operationArguments: OperationArguments, operationSpec: OperationSpec, callback?: ServiceCallback<any>): Promise<RestResponse>

参数

operationArguments
OperationArguments

将从中填充 HTTP 请求的模板化值的参数。

operationSpec
OperationSpec

用于填充 httpRequest 的 OperationSpec。

callback

ServiceCallback<any>

接收响应时要调用的回调。

返回

Promise<RestResponse>

继承自ContentModeratorClientContext.sendOperationRequest

sendRequest(RequestPrepareOptions | WebResourceLike)

发送提供的 httpRequest。

function sendRequest(options: RequestPrepareOptions | WebResourceLike): Promise<HttpOperationResponse>

参数

返回

继承自ContentModeratorClientContext.sendRequest