@azure-rest/ai-content-safety package
Interfaces
Type Aliases
AddOrUpdateBlocklistItemsParameters | |
AnalyzeImageParameters | |
AnalyzeTextParameters | |
ContentSafetyClient | |
CreateOrUpdateTextBlocklistParameters | |
DeleteTextBlocklistParameters | |
GetArrayType |
Helper type to extract the type of an array |
GetPage |
The type of a custom function that defines how to get a page and a link to the next one if any. |
GetTextBlocklistItemParameters | |
GetTextBlocklistParameters | |
ListTextBlocklistItemsParameters | |
ListTextBlocklistsParameters | |
PagedTextBlocklistItemOutput |
Paged collection of TextBlocklistItem items |
PagedTextBlocklistOutput |
Paged collection of TextBlocklist items |
PaginateReturn |
Helper type to infer the Type of the paged elements from the response type
This type is generated based on the swagger information for x-ms-pageable
specifically on the itemName property which indicates the property of the response
where the page items are found. The default value is |
RemoveBlocklistItemsParameters | |
TextBlocklistResourceMergeAndPatch |
The resource instance. |
Functions
Function Details
default(string, TokenCredential | KeyCredential, ClientOptions)
Initialize a new instance of ContentSafetyClient
function default(endpoint: string, credentials: TokenCredential | KeyCredential, options?: ClientOptions): ContentSafetyClient
Parameters
- endpoint
-
string
Supported Cognitive Services endpoints (protocol and hostname, for example: https://.cognitiveservices.azure.com).
- credentials
uniquely identify client credential
- options
- ClientOptions
the parameter for all optional parameters
Returns
isUnexpected(AnalyzeText200Response | AnalyzeTextDefaultResponse)
function isUnexpected(response: AnalyzeText200Response | AnalyzeTextDefaultResponse): response
Parameters
- response
Returns
response
isUnexpected(AnalyzeImage200Response | AnalyzeImageDefaultResponse)
function isUnexpected(response: AnalyzeImage200Response | AnalyzeImageDefaultResponse): response
Parameters
Returns
response
isUnexpected(GetTextBlocklist200Response | GetTextBlocklistDefaultResponse)
function isUnexpected(response: GetTextBlocklist200Response | GetTextBlocklistDefaultResponse): response
Parameters
Returns
response
isUnexpected(CreateOrUpdateTextBlocklist200Response | CreateOrUpdateTextBlocklist201Response | CreateOrUpdateTextBlocklistDefaultResponse)
function isUnexpected(response: CreateOrUpdateTextBlocklist200Response | CreateOrUpdateTextBlocklist201Response | CreateOrUpdateTextBlocklistDefaultResponse): response
Parameters
Returns
response
isUnexpected(DeleteTextBlocklist204Response | DeleteTextBlocklistDefaultResponse)
function isUnexpected(response: DeleteTextBlocklist204Response | DeleteTextBlocklistDefaultResponse): response
Parameters
Returns
response
isUnexpected(ListTextBlocklists200Response | ListTextBlocklistsDefaultResponse)
function isUnexpected(response: ListTextBlocklists200Response | ListTextBlocklistsDefaultResponse): response
Parameters
Returns
response
isUnexpected(AddOrUpdateBlocklistItems200Response | AddOrUpdateBlocklistItemsDefaultResponse)
function isUnexpected(response: AddOrUpdateBlocklistItems200Response | AddOrUpdateBlocklistItemsDefaultResponse): response
Parameters
Returns
response
isUnexpected(RemoveBlocklistItems204Response | RemoveBlocklistItemsDefaultResponse)
function isUnexpected(response: RemoveBlocklistItems204Response | RemoveBlocklistItemsDefaultResponse): response
Parameters
Returns
response
isUnexpected(GetTextBlocklistItem200Response | GetTextBlocklistItemDefaultResponse)
function isUnexpected(response: GetTextBlocklistItem200Response | GetTextBlocklistItemDefaultResponse): response
Parameters
Returns
response
isUnexpected(ListTextBlocklistItems200Response | ListTextBlocklistItemsDefaultResponse)
function isUnexpected(response: ListTextBlocklistItems200Response | ListTextBlocklistItemsDefaultResponse): response
Parameters
Returns
response
paginate<TResponse>(Client, TResponse, PagingOptions<TResponse>)
Helper to paginate results from an initial response that follows the specification of Autorest x-ms-pageable
extension
function paginate<TResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>
Parameters
- client
- Client
Client to use for sending the next page requests
- initialResponse
-
TResponse
Initial response containing the nextLink and current page of elements
- options
-
PagingOptions<TResponse>
Returns
PagedAsyncIterableIterator<PaginateReturn<TResponse>>
- PagedAsyncIterableIterator to iterate the elements