Class QnAMakerManager
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.knowledge.qnamaker.QnAMakerManager
-
public class QnAMakerManager extends Object
Entry point to Azure Cognitive Services QnA Maker manager.
-
-
Constructor Summary
Constructors Constructor Description QnAMakerManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QnAMakerClient
authenticate(com.microsoft.rest.credentials.ServiceClientCredentials credentials, String endpoint)
Initializes an instance of QnA Maker API client.static QnAMakerClient
authenticate(com.microsoft.rest.RestClient restClient)
Initializes an instance of QnA Maker API client.static QnAMakerClient
authenticate(String subscriptionKey)
Initializes an instance of QnA Maker API client.static QnAMakerClient
authenticate(String baseUrl, com.microsoft.rest.credentials.ServiceClientCredentials credentials)
Initializes an instance of QnA Maker API client.static QnAMakerClient
authenticate(String baseUrl, String subscriptionKey)
Initializes an instance of QnA Maker API client.
-
-
-
Method Detail
-
authenticate
public static QnAMakerClient authenticate(String subscriptionKey)
Initializes an instance of QnA Maker API client.- Parameters:
subscriptionKey
- the QnA Maker API key- Returns:
- the QnA Maker API client
-
authenticate
public static QnAMakerClient authenticate(String baseUrl, String subscriptionKey)
Initializes an instance of QnA Maker API client.- Parameters:
baseUrl
- the base URL of the servicesubscriptionKey
- the QnA Maker API key- Returns:
- the QnA Maker API client
-
authenticate
public static QnAMakerClient authenticate(com.microsoft.rest.credentials.ServiceClientCredentials credentials, String endpoint)
Initializes an instance of QnA Maker API client.- Parameters:
credentials
- the management credentials for Azureendpoint
- Supported Cognitive Services endpoints.- Returns:
- the QnA Maker API client
-
authenticate
public static QnAMakerClient authenticate(String baseUrl, com.microsoft.rest.credentials.ServiceClientCredentials credentials)
Initializes an instance of QnA Maker API client.- Parameters:
baseUrl
- the base URL of the servicecredentials
- the management credentials for Azure- Returns:
- the QnA Maker API client
-
authenticate
public static QnAMakerClient authenticate(com.microsoft.rest.RestClient restClient)
Initializes an instance of QnA Maker API client.- Parameters:
restClient
- the REST client to connect to Azure.- Returns:
- the QnA Maker API client
-
-