public class Discovery extends WatsonService
defaultHeaders, JSON_MIME_PATTERN, JSON_PATCH_MIME_PATTERN, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION| Constructor and Description |
|---|
Discovery(java.lang.String versionDate)
Instantiates a new `Discovery`.
|
Discovery(java.lang.String versionDate,
IamOptions iamOptions)
Instantiates a new `Discovery` with IAM.
|
Discovery(java.lang.String versionDate,
java.lang.String username,
java.lang.String password)
Instantiates a new `Discovery` with username and password.
|
configureClient, configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getPassword, getToken, getUsername, isJsonMimeType, isJsonPatchMimeType, isTokenManagerSet, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setDefaultHeaders, setEndPoint, setIamCredentials, setSkipAuthentication, setUsernameAndPassword, toStringpublic Discovery(java.lang.String versionDate)
versionDate - The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API
calls from failing when the service introduces breaking changes.public Discovery(java.lang.String versionDate,
java.lang.String username,
java.lang.String password)
versionDate - The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API
calls from failing when the service introduces breaking changes.username - the usernamepassword - the passwordpublic Discovery(java.lang.String versionDate,
IamOptions iamOptions)
versionDate - The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API
calls from failing when the service introduces breaking changes.iamOptions - the options for authenticating through IAMpublic ServiceCall<Environment> createEnvironment(CreateEnvironmentOptions createEnvironmentOptions)
createEnvironmentOptions - the CreateEnvironmentOptions containing the options for the callServiceCall with a response type of Environmentpublic ServiceCall<java.lang.Void> deleteEnvironment(DeleteEnvironmentOptions deleteEnvironmentOptions)
deleteEnvironmentOptions - the DeleteEnvironmentOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<Environment> getEnvironment(GetEnvironmentOptions getEnvironmentOptions)
getEnvironmentOptions - the GetEnvironmentOptions containing the options for the callServiceCall with a response type of Environmentpublic ServiceCall<ListEnvironmentsResponse> listEnvironments(ListEnvironmentsOptions listEnvironmentsOptions)
listEnvironmentsOptions - the ListEnvironmentsOptions containing the options for the callServiceCall with a response type of ListEnvironmentsResponsepublic ServiceCall<ListEnvironmentsResponse> listEnvironments()
ServiceCall with a response type of ListEnvironmentsResponsepublic ServiceCall<ListCollectionFieldsResponse> listFields(ListFieldsOptions listFieldsOptions)
listFieldsOptions - the ListFieldsOptions containing the options for the callServiceCall with a response type of ListCollectionFieldsResponsepublic ServiceCall<Environment> updateEnvironment(UpdateEnvironmentOptions updateEnvironmentOptions)
updateEnvironmentOptions - the UpdateEnvironmentOptions containing the options for the callServiceCall with a response type of Environmentpublic ServiceCall<Configuration> createConfiguration(CreateConfigurationOptions createConfigurationOptions)
createConfigurationOptions - the CreateConfigurationOptions containing the options for the callServiceCall with a response type of Configurationpublic ServiceCall<java.lang.Void> deleteConfiguration(DeleteConfigurationOptions deleteConfigurationOptions)
deleteConfigurationOptions - the DeleteConfigurationOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<Configuration> getConfiguration(GetConfigurationOptions getConfigurationOptions)
getConfigurationOptions - the GetConfigurationOptions containing the options for the callServiceCall with a response type of Configurationpublic ServiceCall<ListConfigurationsResponse> listConfigurations(ListConfigurationsOptions listConfigurationsOptions)
listConfigurationsOptions - the ListConfigurationsOptions containing the options for the callServiceCall with a response type of ListConfigurationsResponsepublic ServiceCall<Configuration> updateConfiguration(UpdateConfigurationOptions updateConfigurationOptions)
updateConfigurationOptions - the UpdateConfigurationOptions containing the options for the callServiceCall with a response type of Configurationpublic ServiceCall<TestDocument> testConfigurationInEnvironment(TestConfigurationInEnvironmentOptions testConfigurationInEnvironmentOptions)
testConfigurationInEnvironmentOptions - the TestConfigurationInEnvironmentOptions containing the
options for the callServiceCall with a response type of TestDocumentpublic ServiceCall<Collection> createCollection(CreateCollectionOptions createCollectionOptions)
createCollectionOptions - the CreateCollectionOptions containing the options for the callServiceCall with a response type of Collectionpublic ServiceCall<java.lang.Void> deleteCollection(DeleteCollectionOptions deleteCollectionOptions)
deleteCollectionOptions - the DeleteCollectionOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<Collection> getCollection(GetCollectionOptions getCollectionOptions)
getCollectionOptions - the GetCollectionOptions containing the options for the callServiceCall with a response type of Collectionpublic ServiceCall<ListCollectionFieldsResponse> listCollectionFields(ListCollectionFieldsOptions listCollectionFieldsOptions)
listCollectionFieldsOptions - the ListCollectionFieldsOptions containing the options for the callServiceCall with a response type of ListCollectionFieldsResponsepublic ServiceCall<ListCollectionsResponse> listCollections(ListCollectionsOptions listCollectionsOptions)
listCollectionsOptions - the ListCollectionsOptions containing the options for the callServiceCall with a response type of ListCollectionsResponsepublic ServiceCall<Collection> updateCollection(UpdateCollectionOptions updateCollectionOptions)
updateCollectionOptions - the UpdateCollectionOptions containing the options for the callServiceCall with a response type of Collectionpublic ServiceCall<Expansions> createExpansions(CreateExpansionsOptions createExpansionsOptions)
createExpansionsOptions - the CreateExpansionsOptions containing the options for the callServiceCall with a response type of Expansionspublic ServiceCall<TokenDictStatusResponse> createStopwordList(CreateStopwordListOptions createStopwordListOptions)
createStopwordListOptions - the CreateStopwordListOptions containing the options for the callServiceCall with a response type of TokenDictStatusResponsepublic ServiceCall<TokenDictStatusResponse> createTokenizationDictionary(CreateTokenizationDictionaryOptions createTokenizationDictionaryOptions)
createTokenizationDictionaryOptions - the CreateTokenizationDictionaryOptions containing the options
for the callServiceCall with a response type of TokenDictStatusResponsepublic ServiceCall<java.lang.Void> deleteExpansions(DeleteExpansionsOptions deleteExpansionsOptions)
deleteExpansionsOptions - the DeleteExpansionsOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<java.lang.Void> deleteStopwordList(DeleteStopwordListOptions deleteStopwordListOptions)
deleteStopwordListOptions - the DeleteStopwordListOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<java.lang.Void> deleteTokenizationDictionary(DeleteTokenizationDictionaryOptions deleteTokenizationDictionaryOptions)
deleteTokenizationDictionaryOptions - the DeleteTokenizationDictionaryOptions containing the options
for the callServiceCall with a response type of Voidpublic ServiceCall<TokenDictStatusResponse> getTokenizationDictionaryStatus(GetTokenizationDictionaryStatusOptions getTokenizationDictionaryStatusOptions)
getTokenizationDictionaryStatusOptions - the GetTokenizationDictionaryStatusOptions containing the
options for the callServiceCall with a response type of TokenDictStatusResponsepublic ServiceCall<Expansions> listExpansions(ListExpansionsOptions listExpansionsOptions)
listExpansionsOptions - the ListExpansionsOptions containing the options for the callServiceCall with a response type of Expansionspublic ServiceCall<DocumentAccepted> addDocument(AddDocumentOptions addDocumentOptions)
addDocumentOptions - the AddDocumentOptions containing the options for the callServiceCall with a response type of DocumentAcceptedpublic ServiceCall<java.lang.Void> deleteDocument(DeleteDocumentOptions deleteDocumentOptions)
deleteDocumentOptions - the DeleteDocumentOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<DocumentStatus> getDocumentStatus(GetDocumentStatusOptions getDocumentStatusOptions)
getDocumentStatusOptions - the GetDocumentStatusOptions containing the options for the callServiceCall with a response type of DocumentStatuspublic ServiceCall<DocumentAccepted> updateDocument(UpdateDocumentOptions updateDocumentOptions)
updateDocumentOptions - the UpdateDocumentOptions containing the options for the callServiceCall with a response type of DocumentAcceptedpublic ServiceCall<QueryResponse> federatedQuery(FederatedQueryOptions federatedQueryOptions)
federatedQueryOptions - the FederatedQueryOptions containing the options for the callServiceCall with a response type of QueryResponsepublic ServiceCall<QueryNoticesResponse> federatedQueryNotices(FederatedQueryNoticesOptions federatedQueryNoticesOptions)
federatedQueryNoticesOptions - the FederatedQueryNoticesOptions containing the options for the callServiceCall with a response type of QueryNoticesResponsepublic ServiceCall<QueryResponse> query(QueryOptions queryOptions)
queryOptions - the QueryOptions containing the options for the callServiceCall with a response type of QueryResponsepublic ServiceCall<QueryEntitiesResponse> queryEntities(QueryEntitiesOptions queryEntitiesOptions)
queryEntitiesOptions - the QueryEntitiesOptions containing the options for the callServiceCall with a response type of QueryEntitiesResponsepublic ServiceCall<QueryNoticesResponse> queryNotices(QueryNoticesOptions queryNoticesOptions)
queryNoticesOptions - the QueryNoticesOptions containing the options for the callServiceCall with a response type of QueryNoticesResponsepublic ServiceCall<QueryRelationsResponse> queryRelations(QueryRelationsOptions queryRelationsOptions)
queryRelationsOptions - the QueryRelationsOptions containing the options for the callServiceCall with a response type of QueryRelationsResponsepublic ServiceCall<TrainingQuery> addTrainingData(AddTrainingDataOptions addTrainingDataOptions)
addTrainingDataOptions - the AddTrainingDataOptions containing the options for the callServiceCall with a response type of TrainingQuerypublic ServiceCall<TrainingExample> createTrainingExample(CreateTrainingExampleOptions createTrainingExampleOptions)
createTrainingExampleOptions - the CreateTrainingExampleOptions containing the options for the callServiceCall with a response type of TrainingExamplepublic ServiceCall<java.lang.Void> deleteAllTrainingData(DeleteAllTrainingDataOptions deleteAllTrainingDataOptions)
deleteAllTrainingDataOptions - the DeleteAllTrainingDataOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<java.lang.Void> deleteTrainingData(DeleteTrainingDataOptions deleteTrainingDataOptions)
deleteTrainingDataOptions - the DeleteTrainingDataOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<java.lang.Void> deleteTrainingExample(DeleteTrainingExampleOptions deleteTrainingExampleOptions)
deleteTrainingExampleOptions - the DeleteTrainingExampleOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<TrainingQuery> getTrainingData(GetTrainingDataOptions getTrainingDataOptions)
getTrainingDataOptions - the GetTrainingDataOptions containing the options for the callServiceCall with a response type of TrainingQuerypublic ServiceCall<TrainingExample> getTrainingExample(GetTrainingExampleOptions getTrainingExampleOptions)
getTrainingExampleOptions - the GetTrainingExampleOptions containing the options for the callServiceCall with a response type of TrainingExamplepublic ServiceCall<TrainingDataSet> listTrainingData(ListTrainingDataOptions listTrainingDataOptions)
listTrainingDataOptions - the ListTrainingDataOptions containing the options for the callServiceCall with a response type of TrainingDataSetpublic ServiceCall<TrainingExampleList> listTrainingExamples(ListTrainingExamplesOptions listTrainingExamplesOptions)
listTrainingExamplesOptions - the ListTrainingExamplesOptions containing the options for the callServiceCall with a response type of TrainingExampleListpublic ServiceCall<TrainingExample> updateTrainingExample(UpdateTrainingExampleOptions updateTrainingExampleOptions)
updateTrainingExampleOptions - the UpdateTrainingExampleOptions containing the options for the callServiceCall with a response type of TrainingExamplepublic ServiceCall<java.lang.Void> deleteUserData(DeleteUserDataOptions deleteUserDataOptions)
deleteUserDataOptions - the DeleteUserDataOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<CreateEventResponse> createEvent(CreateEventOptions createEventOptions)
createEventOptions - the CreateEventOptions containing the options for the callServiceCall with a response type of CreateEventResponsepublic ServiceCall<MetricResponse> getMetricsEventRate(GetMetricsEventRateOptions getMetricsEventRateOptions)
getMetricsEventRateOptions - the GetMetricsEventRateOptions containing the options for the callServiceCall with a response type of MetricResponsepublic ServiceCall<MetricResponse> getMetricsEventRate()
ServiceCall with a response type of MetricResponsepublic ServiceCall<MetricResponse> getMetricsQuery(GetMetricsQueryOptions getMetricsQueryOptions)
getMetricsQueryOptions - the GetMetricsQueryOptions containing the options for the callServiceCall with a response type of MetricResponsepublic ServiceCall<MetricResponse> getMetricsQuery()
ServiceCall with a response type of MetricResponsepublic ServiceCall<MetricResponse> getMetricsQueryEvent(GetMetricsQueryEventOptions getMetricsQueryEventOptions)
getMetricsQueryEventOptions - the GetMetricsQueryEventOptions containing the options for the callServiceCall with a response type of MetricResponsepublic ServiceCall<MetricResponse> getMetricsQueryEvent()
ServiceCall with a response type of MetricResponsepublic ServiceCall<MetricResponse> getMetricsQueryNoResults(GetMetricsQueryNoResultsOptions getMetricsQueryNoResultsOptions)
getMetricsQueryNoResultsOptions - the GetMetricsQueryNoResultsOptions containing the options for the
callServiceCall with a response type of MetricResponsepublic ServiceCall<MetricResponse> getMetricsQueryNoResults()
ServiceCall with a response type of MetricResponsepublic ServiceCall<MetricTokenResponse> getMetricsQueryTokenEvent(GetMetricsQueryTokenEventOptions getMetricsQueryTokenEventOptions)
getMetricsQueryTokenEventOptions - the GetMetricsQueryTokenEventOptions containing the options for the
callServiceCall with a response type of MetricTokenResponsepublic ServiceCall<MetricTokenResponse> getMetricsQueryTokenEvent()
ServiceCall with a response type of MetricTokenResponsepublic ServiceCall<LogQueryResponse> queryLog(QueryLogOptions queryLogOptions)
queryLogOptions - the QueryLogOptions containing the options for the callServiceCall with a response type of LogQueryResponsepublic ServiceCall<LogQueryResponse> queryLog()
ServiceCall with a response type of LogQueryResponsepublic ServiceCall<Credentials> createCredentials(CreateCredentialsOptions createCredentialsOptions)
createCredentialsOptions - the CreateCredentialsOptions containing the options for the callServiceCall with a response type of Credentialspublic ServiceCall<java.lang.Void> deleteCredentials(DeleteCredentialsOptions deleteCredentialsOptions)
deleteCredentialsOptions - the DeleteCredentialsOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<Credentials> getCredentials(GetCredentialsOptions getCredentialsOptions)
getCredentialsOptions - the GetCredentialsOptions containing the options for the callServiceCall with a response type of Credentialspublic ServiceCall<CredentialsList> listCredentials(ListCredentialsOptions listCredentialsOptions)
listCredentialsOptions - the ListCredentialsOptions containing the options for the callServiceCall with a response type of CredentialsListpublic ServiceCall<Credentials> updateCredentials(UpdateCredentialsOptions updateCredentialsOptions)
updateCredentialsOptions - the UpdateCredentialsOptions containing the options for the callServiceCall with a response type of Credentialspublic ServiceCall<Gateway> createGateway(CreateGatewayOptions createGatewayOptions)
createGatewayOptions - the CreateGatewayOptions containing the options for the callServiceCall with a response type of Gatewaypublic ServiceCall<java.lang.Void> deleteGateway(DeleteGatewayOptions deleteGatewayOptions)
deleteGatewayOptions - the DeleteGatewayOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<Gateway> getGateway(GetGatewayOptions getGatewayOptions)
getGatewayOptions - the GetGatewayOptions containing the options for the callServiceCall with a response type of Gatewaypublic ServiceCall<GatewayList> listGateways(ListGatewaysOptions listGatewaysOptions)
listGatewaysOptions - the ListGatewaysOptions containing the options for the callServiceCall with a response type of GatewayList