@Generated(value="OracleSDKGenerator", comments="API Version: 20240531") public class GenerativeAiAgentClient extends BaseSyncClient implements GenerativeAiAgent
Modifier and Type | Class and Description |
---|---|
static class |
GenerativeAiAgentClient.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 GenerativeAiAgent.
|
Constructor and Description |
---|
GenerativeAiAgentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Deprecated.
Use the
builder instead. |
GenerativeAiAgentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Deprecated.
Use the
builder instead. |
GenerativeAiAgentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
GenerativeAiAgentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
GenerativeAiAgentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
ExecutorService executorService)
Deprecated.
Use the
builder instead. |
GenerativeAiAgentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.
Use the
builder instead. |
GenerativeAiAgentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Deprecated.
Use the
builder instead. |
GenerativeAiAgentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Deprecated.
Use the
builder instead. |
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 GenerativeAiAgent.
public final String clientCommonLibraryVersion
@Deprecated public GenerativeAiAgentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see GenerativeAiAgentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)@Deprecated public GenerativeAiAgentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see GenerativeAiAgentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
@Deprecated public GenerativeAiAgentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see GenerativeAiAgentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
@Deprecated public GenerativeAiAgentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see GenerativeAiAgentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
@Deprecated public GenerativeAiAgentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see GenerativeAiAgentClient.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 GenerativeAiAgentClient(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 GenerativeAiAgentClient.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 GenerativeAiAgentClient(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 GenerativeAiAgentClient.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 GenerativeAiAgentClient(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 GenerativeAiAgentClient.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
- GenerativeAiAgentClient.Builder.executorService
public static GenerativeAiAgentClient.Builder builder()
Create a builder for this client.
public void setRegion(Region region)
GenerativeAiAgent
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 GenerativeAiAgent
region
- The region of the service.public void setRegion(String regionId)
GenerativeAiAgent
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 GenerativeAiAgent
regionId
- The public region ID.public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request)
GenerativeAiAgent
Cancels a work request.
cancelWorkRequest
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic ChangeAgentCompartmentResponse changeAgentCompartment(ChangeAgentCompartmentRequest request)
GenerativeAiAgent
Moves an agent into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
changeAgentCompartment
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic ChangeAgentEndpointCompartmentResponse changeAgentEndpointCompartment(ChangeAgentEndpointCompartmentRequest request)
GenerativeAiAgent
Moves an endpoint into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
changeAgentEndpointCompartment
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic ChangeKnowledgeBaseCompartmentResponse changeKnowledgeBaseCompartment(ChangeKnowledgeBaseCompartmentRequest request)
GenerativeAiAgent
Moves a knowledge base into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
changeKnowledgeBaseCompartment
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic CreateAgentResponse createAgent(CreateAgentRequest request)
GenerativeAiAgent
Creates an agent.
createAgent
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic CreateAgentEndpointResponse createAgentEndpoint(CreateAgentEndpointRequest request)
GenerativeAiAgent
Creates an endpoint.
createAgentEndpoint
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic CreateDataIngestionJobResponse createDataIngestionJob(CreateDataIngestionJobRequest request)
GenerativeAiAgent
Creates a data ingestion job.
createDataIngestionJob
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic CreateDataSourceResponse createDataSource(CreateDataSourceRequest request)
GenerativeAiAgent
Creates a data source.
createDataSource
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic CreateKnowledgeBaseResponse createKnowledgeBase(CreateKnowledgeBaseRequest request)
GenerativeAiAgent
Creates a knowledge base.
createKnowledgeBase
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic DeleteAgentResponse deleteAgent(DeleteAgentRequest request)
GenerativeAiAgent
Deletes an agent.
deleteAgent
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic DeleteAgentEndpointResponse deleteAgentEndpoint(DeleteAgentEndpointRequest request)
GenerativeAiAgent
Deletes an endpoint.
deleteAgentEndpoint
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic DeleteDataIngestionJobResponse deleteDataIngestionJob(DeleteDataIngestionJobRequest request)
GenerativeAiAgent
Deletes a data ingestion job.
deleteDataIngestionJob
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic DeleteDataSourceResponse deleteDataSource(DeleteDataSourceRequest request)
GenerativeAiAgent
Deletes a data source.
deleteDataSource
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic DeleteKnowledgeBaseResponse deleteKnowledgeBase(DeleteKnowledgeBaseRequest request)
GenerativeAiAgent
Deletes a knowledge base.
deleteKnowledgeBase
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic GetAgentResponse getAgent(GetAgentRequest request)
GenerativeAiAgent
Gets information about an agent.
getAgent
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic GetAgentEndpointResponse getAgentEndpoint(GetAgentEndpointRequest request)
GenerativeAiAgent
Gets information about an endpoint.
getAgentEndpoint
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic GetDataIngestionJobResponse getDataIngestionJob(GetDataIngestionJobRequest request)
GenerativeAiAgent
Gets information about a data ingestion job.
getDataIngestionJob
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic GetDataIngestionJobLogContentResponse getDataIngestionJobLogContent(GetDataIngestionJobLogContentRequest request)
GenerativeAiAgent
Returns the raw log file for the specified data ingestion job in text format.
getDataIngestionJobLogContent
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic GetDataSourceResponse getDataSource(GetDataSourceRequest request)
GenerativeAiAgent
Gets information about a data source.
getDataSource
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic GetKnowledgeBaseResponse getKnowledgeBase(GetKnowledgeBaseRequest request)
GenerativeAiAgent
Gets information about a knowledge base.
getKnowledgeBase
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
GenerativeAiAgent
Gets the details of a work request.
getWorkRequest
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic ListAgentEndpointsResponse listAgentEndpoints(ListAgentEndpointsRequest request)
GenerativeAiAgent
Gets a list of endpoints.
listAgentEndpoints
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic ListAgentsResponse listAgents(ListAgentsRequest request)
GenerativeAiAgent
Gets a list of agents.
listAgents
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic ListDataIngestionJobsResponse listDataIngestionJobs(ListDataIngestionJobsRequest request)
GenerativeAiAgent
Gets a list of data ingestion jobs.
listDataIngestionJobs
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic ListDataSourcesResponse listDataSources(ListDataSourcesRequest request)
GenerativeAiAgent
Gets a list of data sources.
listDataSources
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic ListKnowledgeBasesResponse listKnowledgeBases(ListKnowledgeBasesRequest request)
GenerativeAiAgent
Gets a list of knowledge bases.
listKnowledgeBases
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
GenerativeAiAgent
Lists the errors for a work request.
listWorkRequestErrors
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
GenerativeAiAgent
Lists the logs for a work request.
listWorkRequestLogs
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
GenerativeAiAgent
Lists the work requests in a compartment.
listWorkRequests
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic UpdateAgentResponse updateAgent(UpdateAgentRequest request)
GenerativeAiAgent
Updates an agent.
updateAgent
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic UpdateAgentEndpointResponse updateAgentEndpoint(UpdateAgentEndpointRequest request)
GenerativeAiAgent
Updates an endpoint.
updateAgentEndpoint
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic UpdateDataSourceResponse updateDataSource(UpdateDataSourceRequest request)
GenerativeAiAgent
Updates a data source.
updateDataSource
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic UpdateKnowledgeBaseResponse updateKnowledgeBase(UpdateKnowledgeBaseRequest request)
GenerativeAiAgent
Updates a knowledge base.
updateKnowledgeBase
in interface GenerativeAiAgent
request
- The request object containing the details to sendpublic GenerativeAiAgentWaiters getWaiters()
GenerativeAiAgent
Gets the pre-configured waiters available for resources for this service.
getWaiters
in interface GenerativeAiAgent
public GenerativeAiAgentPaginators getPaginators()
GenerativeAiAgent
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 GenerativeAiAgent
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.