public class Discovery
extends com.ibm.cloud.sdk.core.service.BaseService
JSON_MIME_PATTERN, JSON_PATCH_MIME_PATTERN, PROPNAME_DISABLE_SSL, PROPNAME_URL| Constructor and Description |
|---|
Discovery (java.lang.String versionDate)
Constructs a new `Discovery` client.
|
Discovery (java.lang.String versionDate,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs a new `Discovery` client with the specified Authenticator.
|
| Modifier and Type | Method and Description |
|---|---|
com.ibm.cloud.sdk.core.http.ServiceCall<DocumentAccepted> |
addDocument (AddDocumentOptions addDocumentOptions)
Add a document.
|
com.ibm.cloud.sdk.core.http.ServiceCall<TrainingQuery> |
createTrainingQuery (CreateTrainingQueryOptions createTrainingQueryOptions)
Create training query.
|
com.ibm.cloud.sdk.core.http.ServiceCall<DeleteDocumentResponse> |
deleteDocument (DeleteDocumentOptions deleteDocumentOptions)
Delete a document.
|
com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> |
deleteTrainingQueries (DeleteTrainingQueriesOptions deleteTrainingQueriesOptions)
Delete training queries.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Completions> |
getAutocompletion (GetAutocompletionOptions getAutocompletionOptions)
Get Autocomplete Suggestions.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ComponentSettingsResponse> |
getComponentSettings (GetComponentSettingsOptions getComponentSettingsOptions)
Configuration settings for components.
|
com.ibm.cloud.sdk.core.http.ServiceCall<TrainingQuery> |
getTrainingQuery (GetTrainingQueryOptions getTrainingQueryOptions)
Get a training data query.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ListCollectionsResponse> |
listCollections (ListCollectionsOptions listCollectionsOptions)
List collections.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ListFieldsResponse> |
listFields (ListFieldsOptions listFieldsOptions)
List fields.
|
com.ibm.cloud.sdk.core.http.ServiceCall<TrainingQuerySet> |
listTrainingQueries (ListTrainingQueriesOptions listTrainingQueriesOptions)
List training queries.
|
com.ibm.cloud.sdk.core.http.ServiceCall<QueryResponse> |
query (QueryOptions queryOptions)
Query a project.
|
com.ibm.cloud.sdk.core.http.ServiceCall<QueryNoticesResponse> |
queryNotices (QueryNoticesOptions queryNoticesOptions)
Query system notices.
|
com.ibm.cloud.sdk.core.http.ServiceCall<DocumentAccepted> |
updateDocument (UpdateDocumentOptions updateDocumentOptions)
Update a document.
|
com.ibm.cloud.sdk.core.http.ServiceCall<TrainingQuery> |
updateTrainingQuery (UpdateTrainingQueryOptions updateTrainingQueryOptions)
Update a training query.
|
configureClient, configureHttpClient, configureService, createServiceCall, getAuthenticator, getClient, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, processServiceCall, setAuthentication, setClient, setDefaultHeaders, setDefaultHeaders, setEndPoint, setServiceUrl, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic 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, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
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.authenticator - the Authenticator instance to be configured for this servicepublic com.ibm.cloud.sdk.core.http.ServiceCall<ListCollectionsResponse> listCollections(ListCollectionsOptions listCollectionsOptions)
listCollectionsOptions - the ListCollectionsOptions containing the options for the callServiceCall with a response type of ListCollectionsResponse public com.ibm.cloud.sdk.core.http.ServiceCall<QueryResponse> query(QueryOptions queryOptions)
queryOptions - the QueryOptions containing the options for the callServiceCall with a response type of QueryResponse public com.ibm.cloud.sdk.core.http.ServiceCall<Completions> getAutocompletion(GetAutocompletionOptions getAutocompletionOptions)
getAutocompletionOptions - the GetAutocompletionOptions containing the options for the callServiceCall with a response type of Completions public com.ibm.cloud.sdk.core.http.ServiceCall<QueryNoticesResponse> queryNotices(QueryNoticesOptions queryNoticesOptions)
queryNoticesOptions - the QueryNoticesOptions containing the options for the callServiceCall with a response type of QueryNoticesResponse public com.ibm.cloud.sdk.core.http.ServiceCall<ListFieldsResponse> listFields(ListFieldsOptions listFieldsOptions)
listFieldsOptions - the ListFieldsOptions containing the options for the callServiceCall with a response type of ListFieldsResponse public com.ibm.cloud.sdk.core.http.ServiceCall<ComponentSettingsResponse> getComponentSettings(GetComponentSettingsOptions getComponentSettingsOptions)
getComponentSettingsOptions - the GetComponentSettingsOptions containing the options for the callServiceCall with a response type of ComponentSettingsResponse public com.ibm.cloud.sdk.core.http.ServiceCall<DocumentAccepted> addDocument(AddDocumentOptions addDocumentOptions)
addDocumentOptions - the AddDocumentOptions containing the options for the callServiceCall with a response type of DocumentAccepted public com.ibm.cloud.sdk.core.http.ServiceCall<DocumentAccepted> updateDocument(UpdateDocumentOptions updateDocumentOptions)
updateDocumentOptions - the UpdateDocumentOptions containing the options for the callServiceCall with a response type of DocumentAccepted public com.ibm.cloud.sdk.core.http.ServiceCall<DeleteDocumentResponse> deleteDocument(DeleteDocumentOptions deleteDocumentOptions)
deleteDocumentOptions - the DeleteDocumentOptions containing the options for the callServiceCall with a response type of DeleteDocumentResponse public com.ibm.cloud.sdk.core.http.ServiceCall<TrainingQuerySet> listTrainingQueries(ListTrainingQueriesOptions listTrainingQueriesOptions)
listTrainingQueriesOptions - the ListTrainingQueriesOptions containing the options for the callServiceCall with a response type of TrainingQuerySet public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteTrainingQueries(DeleteTrainingQueriesOptions deleteTrainingQueriesOptions)
deleteTrainingQueriesOptions - the DeleteTrainingQueriesOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<TrainingQuery> createTrainingQuery(CreateTrainingQueryOptions createTrainingQueryOptions)
createTrainingQueryOptions - the CreateTrainingQueryOptions containing the options for the callServiceCall with a response type of TrainingQuery public com.ibm.cloud.sdk.core.http.ServiceCall<TrainingQuery> getTrainingQuery(GetTrainingQueryOptions getTrainingQueryOptions)
getTrainingQueryOptions - the GetTrainingQueryOptions containing the options for the callServiceCall with a response type of TrainingQuery public com.ibm.cloud.sdk.core.http.ServiceCall<TrainingQuery> updateTrainingQuery(UpdateTrainingQueryOptions updateTrainingQueryOptions)
updateTrainingQueryOptions - the UpdateTrainingQueryOptions containing the options for the callServiceCall with a response type of TrainingQuery