Partager via


ContentModeratorManager Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.vision.contentmoderator.ContentModeratorManager

public class ContentModeratorManager

Entry point to Azure Cognitive Services Content Moderator manager.

Method Summary

Modifier and Type Method and Description
ContentModeratorClient authenticate(AzureRegionBaseUrl baseUrl, ServiceClientCredentials credentials)

Initializes an instance of Content Moderator API client.

ContentModeratorClient authenticate(AzureRegionBaseUrl baseUrl, String subscriptionKey)

Initializes an instance of Content Moderator API client.

ContentModeratorClient authenticate(RestClient restClient)

Initializes an instance of Content Moderator API client.

ContentModeratorClient authenticate(String baseUrl, final String subscriptionKey)

Initializes an instance of Content Moderator API client.

ContentModeratorClient authenticate(String baseUrl, ServiceClientCredentials credentials)

Initializes an instance of Content Moderator API client.

Method Details

authenticate

public static ContentModeratorClient authenticate(AzureRegionBaseUrl baseUrl, ServiceClientCredentials credentials)

Initializes an instance of Content Moderator API client.

Parameters:

baseUrl - Supported Azure regions for Cognitive Services endpoints.
credentials - the management credentials for Azure

Returns:

the Content Moderator API client

authenticate

public static ContentModeratorClient authenticate(AzureRegionBaseUrl baseUrl, String subscriptionKey)

Initializes an instance of Content Moderator API client.

Parameters:

baseUrl - sets Supported Azure regions for Content Moderator endpoints.
subscriptionKey - the Content Moderator API key

Returns:

the Content Moderator API client

authenticate

public static ContentModeratorClient authenticate(RestClient restClient)

Initializes an instance of Content Moderator API client.

Parameters:

restClient - the REST client to connect to Azure.

Returns:

the Text Analytics API client

authenticate

public static ContentModeratorClient authenticate(String baseUrl, final String subscriptionKey)

Initializes an instance of Content Moderator API client.

Parameters:

baseUrl - the base URL of the service
subscriptionKey - the Content Moderator API key

Returns:

the Content Moderator API client

authenticate

public static ContentModeratorClient authenticate(String baseUrl, ServiceClientCredentials credentials)

Initializes an instance of Content Moderator API client.

Parameters:

baseUrl - the base URL of the service
credentials - the management credentials for Azure

Returns:

the Content Moderator API client

Applies to