@Generated(value="OracleSDKGenerator", comments="API Version: 20221109") public class AIServiceDocumentClient extends BaseSyncClient implements AIServiceDocument
Modifier and Type | Class and Description |
---|---|
static class |
AIServiceDocumentClient.Builder
Builder class for this client.
|
Modifier and Type | Field and Description |
---|---|
String |
clientCommonLibraryVersion
Compatible SDK version, provided by the codegen.
|
Optional<String> |
minimumClientCommonLibraryVersionFromClient
Minimum compatible SDK version, maybe provided by the codegen.
|
static Service |
SERVICE
Service instance for AIServiceDocument.
|
Constructor and Description |
---|
AIServiceDocumentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Deprecated.
Use the
builder instead. |
AIServiceDocumentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Deprecated.
Use the
builder instead. |
AIServiceDocumentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
AIServiceDocumentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
AIServiceDocumentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
ExecutorService executorService)
Deprecated.
Use the
builder instead. |
AIServiceDocumentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.
Use the
builder instead. |
AIServiceDocumentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Deprecated.
Use the
builder instead. |
AIServiceDocumentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Deprecated.
Use the
builder instead. |
Modifier and Type | Method and Description |
---|---|
AddModelLockResponse |
addModelLock(AddModelLockRequest request)
Adds a lock to a resource.
|
AddProjectLockResponse |
addProjectLock(AddProjectLockRequest request)
Adds a lock to a resource.
|
AnalyzeDocumentResponse |
analyzeDocument(AnalyzeDocumentRequest request)
Perform different types of document analysis.
|
static AIServiceDocumentClient.Builder |
builder()
Create a builder for this client.
|
CancelProcessorJobResponse |
cancelProcessorJob(CancelProcessorJobRequest request)
Cancel a processor job.
|
CancelWorkRequestResponse |
cancelWorkRequest(CancelWorkRequestRequest request)
Cancel the work request with the given ID.
|
ChangeModelCompartmentResponse |
changeModelCompartment(ChangeModelCompartmentRequest request)
Moves a model from one compartment to another.
|
ChangeProjectCompartmentResponse |
changeProjectCompartment(ChangeProjectCompartmentRequest request)
Move a project from one compartment to another.
|
void |
close() |
CreateModelResponse |
createModel(CreateModelRequest request)
Create a new model.
|
CreateProcessorJobResponse |
createProcessorJob(CreateProcessorJobRequest request)
Create a processor job for document analysis.
|
CreateProjectResponse |
createProject(CreateProjectRequest request)
Create a new project.
|
DeleteModelResponse |
deleteModel(DeleteModelRequest request)
Delete a model by identifier.
|
DeleteProjectResponse |
deleteProject(DeleteProjectRequest request)
Delete a project by identifier.
|
String |
getClientCommonLibraryVersion() |
protected ClientConfigurator |
getDefaultConfigurator() |
String |
getEndpoint() |
Optional<String> |
getMinimumClientCommonLibraryVersionFromClient() |
GetModelResponse |
getModel(GetModelRequest request)
Get a model by identifier.
|
AIServiceDocumentPaginators |
getPaginators()
Gets the pre-configured paginators available for list operations in this service which may
return multiple pages of data.
|
GetProcessorJobResponse |
getProcessorJob(GetProcessorJobRequest request)
Get the details of a processor job.
|
GetProjectResponse |
getProject(GetProjectRequest request)
Get a project by identifier.
|
AIServiceDocumentWaiters |
getWaiters()
Gets the pre-configured waiters available for resources for this service.
|
GetWorkRequestResponse |
getWorkRequest(GetWorkRequestRequest request)
Gets the status of the work request with the given ID.
|
ListModelsResponse |
listModels(ListModelsRequest request)
Returns a list of models in a compartment.
|
ListProjectsResponse |
listProjects(ListProjectsRequest request)
Returns a list of projects.
|
ListWorkRequestErrorsResponse |
listWorkRequestErrors(ListWorkRequestErrorsRequest request)
Returns a (paginated) list of errors for a given work request.
|
ListWorkRequestLogsResponse |
listWorkRequestLogs(ListWorkRequestLogsRequest request)
Return a (paginated) list of logs for a given work request.
|
ListWorkRequestsResponse |
listWorkRequests(ListWorkRequestsRequest request)
Lists the work requests in a compartment.
|
PatchModelResponse |
patchModel(PatchModelRequest request)
Updates the model metadata only selected path parameter.
|
void |
populateServiceParametersInEndpoint(String endpoint,
Map<String,Object> requiredParametersMap)
Populate the parameters in the endpoint with its corresponding value and update the base
endpoint.
|
void |
refreshClient()
Rebuild the backing
HttpClient . |
RemoveModelLockResponse |
removeModelLock(RemoveModelLockRequest request)
Remove a lock from a resource.
|
RemoveProjectLockResponse |
removeProjectLock(RemoveProjectLockRequest request)
Remove a lock from a resource.
|
void |
setEndpoint(String endpoint) |
void |
setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
|
void |
setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
|
void |
updateBaseEndpoint(String endpoint)
This method should be used for parameterized endpoint templates only.
|
UpdateModelResponse |
updateModel(UpdateModelRequest request)
Updates the model metadata.
|
UpdateProjectResponse |
updateProject(UpdateProjectRequest request)
Update the project metadata.
|
void |
useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
This method should be used to enable or disable the use of realm-specific endpoint template.
|
clientCall
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
close
public static final Service SERVICE
Service instance for AIServiceDocument.
public final String clientCommonLibraryVersion
@Deprecated public AIServiceDocumentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AIServiceDocumentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)@Deprecated public AIServiceDocumentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AIServiceDocumentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
@Deprecated public AIServiceDocumentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AIServiceDocumentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
@Deprecated public AIServiceDocumentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AIServiceDocumentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
@Deprecated public AIServiceDocumentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AIServiceDocumentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
@Deprecated public AIServiceDocumentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AIServiceDocumentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
@Deprecated public AIServiceDocumentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AIServiceDocumentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
- ClientBuilderBase.signingStrategyRequestSignerFactories
@Deprecated public AIServiceDocumentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AIServiceDocumentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
- ClientBuilderBase.signingStrategyRequestSignerFactories
executorService
- AIServiceDocumentClient.Builder.executorService
public static AIServiceDocumentClient.Builder builder()
Create a builder for this client.
public void setRegion(Region region)
AIServiceDocument
Sets the region to call (ex, Region.US_PHOENIX_1).
Note, this will call setEndpoint
after resolving the
endpoint. If the service is not available in this Region, however, an
IllegalArgumentException will be raised.
setRegion
in interface AIServiceDocument
region
- The region of the service.public void setRegion(String regionId)
AIServiceDocument
Sets the region to call (ex, ‘us-phoenix-1’).
Note, this will first try to map the region ID to a known Region and call setRegion
.
If no known Region could be determined, it will create an endpoint based on the default
endpoint format (Region.formatDefaultRegionEndpoint(Service, String)
and then call setEndpoint
.
setRegion
in interface AIServiceDocument
regionId
- The public region ID.public AddModelLockResponse addModelLock(AddModelLockRequest request)
AIServiceDocument
Adds a lock to a resource.
addModelLock
in interface AIServiceDocument
request
- The request object containing the details to sendpublic AddProjectLockResponse addProjectLock(AddProjectLockRequest request)
AIServiceDocument
Adds a lock to a resource.
addProjectLock
in interface AIServiceDocument
request
- The request object containing the details to sendpublic AnalyzeDocumentResponse analyzeDocument(AnalyzeDocumentRequest request)
AIServiceDocument
Perform different types of document analysis.
analyzeDocument
in interface AIServiceDocument
request
- The request object containing the details to sendpublic CancelProcessorJobResponse cancelProcessorJob(CancelProcessorJobRequest request)
AIServiceDocument
Cancel a processor job.
cancelProcessorJob
in interface AIServiceDocument
request
- The request object containing the details to sendpublic CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request)
AIServiceDocument
Cancel the work request with the given ID.
cancelWorkRequest
in interface AIServiceDocument
request
- The request object containing the details to sendpublic ChangeModelCompartmentResponse changeModelCompartment(ChangeModelCompartmentRequest request)
AIServiceDocument
Moves a model from one compartment to another. When provided, If-Match is checked against the ETag values of the resource.
changeModelCompartment
in interface AIServiceDocument
request
- The request object containing the details to sendpublic ChangeProjectCompartmentResponse changeProjectCompartment(ChangeProjectCompartmentRequest request)
AIServiceDocument
Move a project from one compartment to another. When provided, If-Match is checked against the ETag values of the resource.
changeProjectCompartment
in interface AIServiceDocument
request
- The request object containing the details to sendpublic CreateModelResponse createModel(CreateModelRequest request)
AIServiceDocument
Create a new model.
createModel
in interface AIServiceDocument
request
- The request object containing the details to sendpublic CreateProcessorJobResponse createProcessorJob(CreateProcessorJobRequest request)
AIServiceDocument
Create a processor job for document analysis.
createProcessorJob
in interface AIServiceDocument
request
- The request object containing the details to sendpublic CreateProjectResponse createProject(CreateProjectRequest request)
AIServiceDocument
Create a new project.
createProject
in interface AIServiceDocument
request
- The request object containing the details to sendpublic DeleteModelResponse deleteModel(DeleteModelRequest request)
AIServiceDocument
Delete a model by identifier.
deleteModel
in interface AIServiceDocument
request
- The request object containing the details to sendpublic DeleteProjectResponse deleteProject(DeleteProjectRequest request)
AIServiceDocument
Delete a project by identifier.
deleteProject
in interface AIServiceDocument
request
- The request object containing the details to sendpublic GetModelResponse getModel(GetModelRequest request)
AIServiceDocument
Get a model by identifier.
getModel
in interface AIServiceDocument
request
- The request object containing the details to sendpublic GetProcessorJobResponse getProcessorJob(GetProcessorJobRequest request)
AIServiceDocument
Get the details of a processor job.
getProcessorJob
in interface AIServiceDocument
request
- The request object containing the details to sendpublic GetProjectResponse getProject(GetProjectRequest request)
AIServiceDocument
Get a project by identifier.
getProject
in interface AIServiceDocument
request
- The request object containing the details to sendpublic GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
AIServiceDocument
Gets the status of the work request with the given ID.
getWorkRequest
in interface AIServiceDocument
request
- The request object containing the details to sendpublic ListModelsResponse listModels(ListModelsRequest request)
AIServiceDocument
Returns a list of models in a compartment.
listModels
in interface AIServiceDocument
request
- The request object containing the details to sendpublic ListProjectsResponse listProjects(ListProjectsRequest request)
AIServiceDocument
Returns a list of projects.
listProjects
in interface AIServiceDocument
request
- The request object containing the details to sendpublic ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
AIServiceDocument
Returns a (paginated) list of errors for a given work request.
listWorkRequestErrors
in interface AIServiceDocument
request
- The request object containing the details to sendpublic ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
AIServiceDocument
Return a (paginated) list of logs for a given work request.
listWorkRequestLogs
in interface AIServiceDocument
request
- The request object containing the details to sendpublic ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
AIServiceDocument
Lists the work requests in a compartment.
listWorkRequests
in interface AIServiceDocument
request
- The request object containing the details to sendpublic PatchModelResponse patchModel(PatchModelRequest request)
AIServiceDocument
Updates the model metadata only selected path parameter.
patchModel
in interface AIServiceDocument
request
- The request object containing the details to sendpublic RemoveModelLockResponse removeModelLock(RemoveModelLockRequest request)
AIServiceDocument
Remove a lock from a resource.
removeModelLock
in interface AIServiceDocument
request
- The request object containing the details to sendpublic RemoveProjectLockResponse removeProjectLock(RemoveProjectLockRequest request)
AIServiceDocument
Remove a lock from a resource.
removeProjectLock
in interface AIServiceDocument
request
- The request object containing the details to sendpublic UpdateModelResponse updateModel(UpdateModelRequest request)
AIServiceDocument
Updates the model metadata.
updateModel
in interface AIServiceDocument
request
- The request object containing the details to sendpublic UpdateProjectResponse updateProject(UpdateProjectRequest request)
AIServiceDocument
Update the project metadata.
updateProject
in interface AIServiceDocument
request
- The request object containing the details to sendpublic AIServiceDocumentWaiters getWaiters()
AIServiceDocument
Gets the pre-configured waiters available for resources for this service.
getWaiters
in interface AIServiceDocument
public AIServiceDocumentPaginators getPaginators()
AIServiceDocument
Gets the pre-configured paginators available for list operations in this service which may
return multiple pages of data. These paginators provide an Iterable
interface so that service responses, or resources/records, can be iterated through without
having to manually deal with pagination and page tokens.
getPaginators
in interface AIServiceDocument
protected ClientConfigurator getDefaultConfigurator()
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
useOfRealmSpecificEndpointTemplateEnabled
- This flag can be set to true or false to
enable or disable the use of realm-specific endpoint template respectivelypublic final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
endpoint
- The endpoint template in userequiredParametersMap
- Map of parameter name as key and value set in request path or
query parameter as valuepublic final void updateBaseEndpoint(String endpoint)
endpoint
- The updated endpoint to usepublic final void setEndpoint(String endpoint)
public final String getEndpoint()
public final void refreshClient()
HttpClient
. This will call ClientConfigurator
s again, and
can be used to e.g. refresh the SSL certificate.public final void close()
close
in interface AutoCloseable
public String getClientCommonLibraryVersion()
Copyright © 2016–2024. All rights reserved.