@Generated(value="OracleSDKGenerator", comments="API Version: 20190506") public class ManagementAsyncClient extends BaseAsyncClient implements ManagementAsync
Async client implementation for Management service.
There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response
to the call is an InputStream
, like getObject Api in object storage service,
developers need to process the stream in AsyncHandler, and not anywhere else, because the stream
will be closed right after the AsyncHandler is invoked.
2. Use Java Future: using Java Future, developers need to close the stream after they are done
with the Java Future.
Accessing the result should be done in a mutually exclusive manner, either through the Future or
the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the
AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine
whether or not the request was completed via Future.isDone/isCancelled.
Please refer to
https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java
Modifier and Type | Class and Description |
---|---|
static class |
ManagementAsyncClient.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 Management.
|
Constructor and Description |
---|
ManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Deprecated.
Use the
builder instead. |
ManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Deprecated.
Use the
builder instead. |
ManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
ManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
ManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.
Use the
builder instead. |
ManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Deprecated.
Use the
builder instead. |
ManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Deprecated.
Use the
builder instead. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
close
public static final Service SERVICE
Service instance for Management.
public final String clientCommonLibraryVersion
@Deprecated public ManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ManagementAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)@Deprecated public ManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ManagementAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
@Deprecated public ManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ManagementAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
@Deprecated public ManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ManagementAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
@Deprecated public ManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ManagementAsyncClient.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 ManagementAsyncClient(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 ManagementAsyncClient.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 ManagementAsyncClient(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 ManagementAsyncClient.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
public static ManagementAsyncClient.Builder builder()
Create a builder for this client.
public void setRegion(Region region)
ManagementAsync
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 ManagementAsync
region
- The region of the service.public void setRegion(String regionId)
ManagementAsync
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 ManagementAsync
regionId
- The public region ID.public Future<BulkCreateSkillEntitiesResponse> bulkCreateSkillEntities(BulkCreateSkillEntitiesRequest request, AsyncHandler<BulkCreateSkillEntitiesRequest,BulkCreateSkillEntitiesResponse> handler)
ManagementAsync
Bulk create composite and value list entities into a skill.
bulkCreateSkillEntities
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CascadingDeleteSkillCustomEntitiesResponse> cascadingDeleteSkillCustomEntities(CascadingDeleteSkillCustomEntitiesRequest request, AsyncHandler<CascadingDeleteSkillCustomEntitiesRequest,CascadingDeleteSkillCustomEntitiesResponse> handler)
ManagementAsync
Cascading delete of the custom entities in a skill.
cascadingDeleteSkillCustomEntities
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeOdaPrivateEndpointCompartmentResponse> changeOdaPrivateEndpointCompartment(ChangeOdaPrivateEndpointCompartmentRequest request, AsyncHandler<ChangeOdaPrivateEndpointCompartmentRequest,ChangeOdaPrivateEndpointCompartmentResponse> handler)
ManagementAsync
Starts an asynchronous job to move the specified ODA Private Endpoint into a different compartment.
To monitor the status of the job, take the `opc-work-request-id` response header value and use it to call `GET /workRequests/{workRequestID}`. When provided, If-Match is checked against ETag values of the resource.
changeOdaPrivateEndpointCompartment
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ConfigureDigitalAssistantParametersResponse> configureDigitalAssistantParameters(ConfigureDigitalAssistantParametersRequest request, AsyncHandler<ConfigureDigitalAssistantParametersRequest,ConfigureDigitalAssistantParametersResponse> handler)
ManagementAsync
This will store the provided parameters in the Digital Assistant instance and update any Digital Assistants with matching parameters.
configureDigitalAssistantParameters
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateAuthenticationProviderResponse> createAuthenticationProvider(CreateAuthenticationProviderRequest request, AsyncHandler<CreateAuthenticationProviderRequest,CreateAuthenticationProviderResponse> handler)
ManagementAsync
Creates a new Authentication Provider
createAuthenticationProvider
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateChannelResponse> createChannel(CreateChannelRequest request, AsyncHandler<CreateChannelRequest,CreateChannelResponse> handler)
ManagementAsync
Creates a new Channel.
createChannel
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateDigitalAssistantResponse> createDigitalAssistant(CreateDigitalAssistantRequest request, AsyncHandler<CreateDigitalAssistantRequest,CreateDigitalAssistantResponse> handler)
ManagementAsync
Creates a new Digital Assistant.
createDigitalAssistant
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateOdaPrivateEndpointResponse> createOdaPrivateEndpoint(CreateOdaPrivateEndpointRequest request, AsyncHandler<CreateOdaPrivateEndpointRequest,CreateOdaPrivateEndpointResponse> handler)
ManagementAsync
Starts an asynchronous job to create an ODA Private Endpoint.
To monitor the status of the job, take the `opc-work-request-id` response header value and use it to call `GET /workRequests/{workRequestID}`.
createOdaPrivateEndpoint
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateOdaPrivateEndpointAttachmentResponse> createOdaPrivateEndpointAttachment(CreateOdaPrivateEndpointAttachmentRequest request, AsyncHandler<CreateOdaPrivateEndpointAttachmentRequest,CreateOdaPrivateEndpointAttachmentResponse> handler)
ManagementAsync
Starts an asynchronous job to create an ODA Private Endpoint Attachment.
To monitor the status of the job, take the `opc-work-request-id` response header value and use it to call `GET /workRequests/{workRequestID}`.
createOdaPrivateEndpointAttachment
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateOdaPrivateEndpointScanProxyResponse> createOdaPrivateEndpointScanProxy(CreateOdaPrivateEndpointScanProxyRequest request, AsyncHandler<CreateOdaPrivateEndpointScanProxyRequest,CreateOdaPrivateEndpointScanProxyResponse> handler)
ManagementAsync
Starts an asynchronous job to create an ODA Private Endpoint Scan Proxy.
To monitor the status of the job, take the `opc-work-request-id` response header value and use it to call `GET /workRequests/{workRequestID}`.
createOdaPrivateEndpointScanProxy
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateSkillResponse> createSkill(CreateSkillRequest request, AsyncHandler<CreateSkillRequest,CreateSkillResponse> handler)
ManagementAsync
Creates a new Skill from scratch.
createSkill
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateSkillParameterResponse> createSkillParameter(CreateSkillParameterRequest request, AsyncHandler<CreateSkillParameterRequest,CreateSkillParameterResponse> handler)
ManagementAsync
Creates a new Skill Parameter.
createSkillParameter
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateTranslatorResponse> createTranslator(CreateTranslatorRequest request, AsyncHandler<CreateTranslatorRequest,CreateTranslatorResponse> handler)
ManagementAsync
Creates a new Translator
createTranslator
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteAuthenticationProviderResponse> deleteAuthenticationProvider(DeleteAuthenticationProviderRequest request, AsyncHandler<DeleteAuthenticationProviderRequest,DeleteAuthenticationProviderResponse> handler)
ManagementAsync
Delete the specified Authentication Provider.
deleteAuthenticationProvider
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteChannelResponse> deleteChannel(DeleteChannelRequest request, AsyncHandler<DeleteChannelRequest,DeleteChannelResponse> handler)
ManagementAsync
Delete the specified Channel.
deleteChannel
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteDigitalAssistantResponse> deleteDigitalAssistant(DeleteDigitalAssistantRequest request, AsyncHandler<DeleteDigitalAssistantRequest,DeleteDigitalAssistantResponse> handler)
ManagementAsync
Delete the specified Digital Assistant.
deleteDigitalAssistant
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteOdaPrivateEndpointResponse> deleteOdaPrivateEndpoint(DeleteOdaPrivateEndpointRequest request, AsyncHandler<DeleteOdaPrivateEndpointRequest,DeleteOdaPrivateEndpointResponse> handler)
ManagementAsync
Starts an asynchronous job to delete the specified ODA Private Endpoint. To monitor the
status of the job, take the opc-work-request-id
response header value and use it to call
GET /workRequests/{workRequestID}
.
deleteOdaPrivateEndpoint
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteOdaPrivateEndpointAttachmentResponse> deleteOdaPrivateEndpointAttachment(DeleteOdaPrivateEndpointAttachmentRequest request, AsyncHandler<DeleteOdaPrivateEndpointAttachmentRequest,DeleteOdaPrivateEndpointAttachmentResponse> handler)
ManagementAsync
Starts an asynchronous job to delete the specified ODA Private Endpoint Attachment. To
monitor the status of the job, take the opc-work-request-id
response header value and use
it to call GET /workRequests/{workRequestID}
.
deleteOdaPrivateEndpointAttachment
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteOdaPrivateEndpointScanProxyResponse> deleteOdaPrivateEndpointScanProxy(DeleteOdaPrivateEndpointScanProxyRequest request, AsyncHandler<DeleteOdaPrivateEndpointScanProxyRequest,DeleteOdaPrivateEndpointScanProxyResponse> handler)
ManagementAsync
Starts an asynchronous job to delete the specified ODA Private Endpoint Scan Proxy. To
monitor the status of the job, take the opc-work-request-id
response header value and use
it to call GET /workRequests/{workRequestID}
.
deleteOdaPrivateEndpointScanProxy
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteSkillResponse> deleteSkill(DeleteSkillRequest request, AsyncHandler<DeleteSkillRequest,DeleteSkillResponse> handler)
ManagementAsync
Delete the specified Skill.
deleteSkill
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteSkillParameterResponse> deleteSkillParameter(DeleteSkillParameterRequest request, AsyncHandler<DeleteSkillParameterRequest,DeleteSkillParameterResponse> handler)
ManagementAsync
Delete the specified Skill Parameter.
deleteSkillParameter
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteTranslatorResponse> deleteTranslator(DeleteTranslatorRequest request, AsyncHandler<DeleteTranslatorRequest,DeleteTranslatorResponse> handler)
ManagementAsync
Delete the specified Translator.
deleteTranslator
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ExportDigitalAssistantResponse> exportDigitalAssistant(ExportDigitalAssistantRequest request, AsyncHandler<ExportDigitalAssistantRequest,ExportDigitalAssistantResponse> handler)
ManagementAsync
Exports the specified Digital Assistant as an archive to Object Storage.
exportDigitalAssistant
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ExportSkillResponse> exportSkill(ExportSkillRequest request, AsyncHandler<ExportSkillRequest,ExportSkillResponse> handler)
ManagementAsync
Exports the specified Skill as an archive to Object Storage.
exportSkill
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetAuthenticationProviderResponse> getAuthenticationProvider(GetAuthenticationProviderRequest request, AsyncHandler<GetAuthenticationProviderRequest,GetAuthenticationProviderResponse> handler)
ManagementAsync
Gets the specified Authentication Provider.
getAuthenticationProvider
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetChannelResponse> getChannel(GetChannelRequest request, AsyncHandler<GetChannelRequest,GetChannelResponse> handler)
ManagementAsync
Gets the specified Channel.
getChannel
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetDigitalAssistantResponse> getDigitalAssistant(GetDigitalAssistantRequest request, AsyncHandler<GetDigitalAssistantRequest,GetDigitalAssistantResponse> handler)
ManagementAsync
Gets the specified Digital Assistant.
getDigitalAssistant
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetDigitalAssistantParameterResponse> getDigitalAssistantParameter(GetDigitalAssistantParameterRequest request, AsyncHandler<GetDigitalAssistantParameterRequest,GetDigitalAssistantParameterResponse> handler)
ManagementAsync
Gets the specified Digital Assistant Parameter.
getDigitalAssistantParameter
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetOdaPrivateEndpointResponse> getOdaPrivateEndpoint(GetOdaPrivateEndpointRequest request, AsyncHandler<GetOdaPrivateEndpointRequest,GetOdaPrivateEndpointResponse> handler)
ManagementAsync
Gets the specified ODA Private Endpoint.
getOdaPrivateEndpoint
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetOdaPrivateEndpointAttachmentResponse> getOdaPrivateEndpointAttachment(GetOdaPrivateEndpointAttachmentRequest request, AsyncHandler<GetOdaPrivateEndpointAttachmentRequest,GetOdaPrivateEndpointAttachmentResponse> handler)
ManagementAsync
Gets the specified ODA Private Endpoint Attachment.
getOdaPrivateEndpointAttachment
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetOdaPrivateEndpointScanProxyResponse> getOdaPrivateEndpointScanProxy(GetOdaPrivateEndpointScanProxyRequest request, AsyncHandler<GetOdaPrivateEndpointScanProxyRequest,GetOdaPrivateEndpointScanProxyResponse> handler)
ManagementAsync
Gets the specified ODA Private Endpoint Scan Proxy.
getOdaPrivateEndpointScanProxy
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetSkillResponse> getSkill(GetSkillRequest request, AsyncHandler<GetSkillRequest,GetSkillResponse> handler)
ManagementAsync
Gets the specified Skill.
getSkill
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetSkillParameterResponse> getSkillParameter(GetSkillParameterRequest request, AsyncHandler<GetSkillParameterRequest,GetSkillParameterResponse> handler)
ManagementAsync
Gets the specified Skill Parameter.
getSkillParameter
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetTranslatorResponse> getTranslator(GetTranslatorRequest request, AsyncHandler<GetTranslatorRequest,GetTranslatorResponse> handler)
ManagementAsync
Gets the specified Translator.
getTranslator
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ImportBotResponse> importBot(ImportBotRequest request, AsyncHandler<ImportBotRequest,ImportBotResponse> handler)
ManagementAsync
Import a Bot archive from Object Storage.
importBot
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListAuthenticationProvidersResponse> listAuthenticationProviders(ListAuthenticationProvidersRequest request, AsyncHandler<ListAuthenticationProvidersRequest,ListAuthenticationProvidersResponse> handler)
ManagementAsync
Returns a page of Authentication Providers that belong to the specified Digital Assistant instance.
If the `opc-next-page` header appears in the response, then there are more items to retrieve. To get the next page in the subsequent GET request, include the header's value as the `page` query parameter.
listAuthenticationProviders
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListChannelsResponse> listChannels(ListChannelsRequest request, AsyncHandler<ListChannelsRequest,ListChannelsResponse> handler)
ManagementAsync
Returns a page of Channels that belong to the specified Digital Assistant instance.
If the `opc-next-page` header appears in the response, then there are more items to retrieve. To get the next page in the subsequent GET request, include the header's value as the `page` query parameter.
listChannels
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListDigitalAssistantParametersResponse> listDigitalAssistantParameters(ListDigitalAssistantParametersRequest request, AsyncHandler<ListDigitalAssistantParametersRequest,ListDigitalAssistantParametersResponse> handler)
ManagementAsync
Returns a page of Parameters that belong to the specified Digital Assistant.
If the `opc-next-page` header appears in the response, then there are more items to retrieve. To get the next page in the subsequent GET request, include the header's value as the `page` query parameter.
listDigitalAssistantParameters
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListDigitalAssistantsResponse> listDigitalAssistants(ListDigitalAssistantsRequest request, AsyncHandler<ListDigitalAssistantsRequest,ListDigitalAssistantsResponse> handler)
ManagementAsync
Returns a page of Digital Assistants that belong to the specified Digital Assistant instance.
If the `opc-next-page` header appears in the response, then there are more items to retrieve. To get the next page in the subsequent GET request, include the header's value as the `page` query parameter.
listDigitalAssistants
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListOdaPrivateEndpointAttachmentsResponse> listOdaPrivateEndpointAttachments(ListOdaPrivateEndpointAttachmentsRequest request, AsyncHandler<ListOdaPrivateEndpointAttachmentsRequest,ListOdaPrivateEndpointAttachmentsResponse> handler)
ManagementAsync
Returns a page of ODA Instances attached to this ODA Private Endpoint.
If the `opc-next-page` header appears in the response, then there are more items to retrieve. To get the next page in the subsequent GET request, include the header's value as the `page` query parameter.
listOdaPrivateEndpointAttachments
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListOdaPrivateEndpointScanProxiesResponse> listOdaPrivateEndpointScanProxies(ListOdaPrivateEndpointScanProxiesRequest request, AsyncHandler<ListOdaPrivateEndpointScanProxiesRequest,ListOdaPrivateEndpointScanProxiesResponse> handler)
ManagementAsync
Returns a page of ODA Private Endpoint Scan Proxies that belong to the specified ODA Private Endpoint.
If the `opc-next-page` header appears in the response, then there are more items to retrieve. To get the next page in the subsequent GET request, include the header's value as the `page` query parameter.
listOdaPrivateEndpointScanProxies
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListOdaPrivateEndpointsResponse> listOdaPrivateEndpoints(ListOdaPrivateEndpointsRequest request, AsyncHandler<ListOdaPrivateEndpointsRequest,ListOdaPrivateEndpointsResponse> handler)
ManagementAsync
Returns a page of ODA Private Endpoints that belong to the specified compartment.
If the `opc-next-page` header appears in the response, then there are more items to retrieve. To get the next page in the subsequent GET request, include the header's value as the `page` query parameter.
listOdaPrivateEndpoints
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListSkillParametersResponse> listSkillParameters(ListSkillParametersRequest request, AsyncHandler<ListSkillParametersRequest,ListSkillParametersResponse> handler)
ManagementAsync
Returns a page of Skill Parameters that belong to the specified Skill.
If the `opc-next-page` header appears in the response, then there are more items to retrieve. To get the next page in the subsequent GET request, include the header's value as the `page` query parameter.
listSkillParameters
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListSkillsResponse> listSkills(ListSkillsRequest request, AsyncHandler<ListSkillsRequest,ListSkillsResponse> handler)
ManagementAsync
Returns a page of Skills that belong to the specified Digital Assistant instance.
If the `opc-next-page` header appears in the response, then there are more items to retrieve. To get the next page in the subsequent GET request, include the header's value as the `page` query parameter.
listSkills
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListTranslatorsResponse> listTranslators(ListTranslatorsRequest request, AsyncHandler<ListTranslatorsRequest,ListTranslatorsResponse> handler)
ManagementAsync
Returns a page of Translators that belong to the specified Digital Assistant instance.
If the `opc-next-page` header appears in the response, then there are more items to retrieve. To get the next page in the subsequent GET request, include the header's value as the `page` query parameter.
listTranslators
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<PublishDigitalAssistantResponse> publishDigitalAssistant(PublishDigitalAssistantRequest request, AsyncHandler<PublishDigitalAssistantRequest,PublishDigitalAssistantResponse> handler)
ManagementAsync
Publish a draft Digital Assistant. Once published the Digital Assistant cannot be modified.
publishDigitalAssistant
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<PublishSkillResponse> publishSkill(PublishSkillRequest request, AsyncHandler<PublishSkillRequest,PublishSkillResponse> handler)
ManagementAsync
Publish a draft Skill. Once published it cannot be modified.
publishSkill
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<RotateChannelKeysResponse> rotateChannelKeys(RotateChannelKeysRequest request, AsyncHandler<RotateChannelKeysRequest,RotateChannelKeysResponse> handler)
ManagementAsync
This will generate new keys for any generated keys in the Channel (eg. secretKey, verifyToken). If a Channel has no generated keys then no changes will be made. Ensure that you take note of the newly generated keys in the response as they will not be returned again.
rotateChannelKeys
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<StartChannelResponse> startChannel(StartChannelRequest request, AsyncHandler<StartChannelRequest,StartChannelResponse> handler)
ManagementAsync
Starts a Channel so that it will begin accepting messages.
startChannel
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<StopChannelResponse> stopChannel(StopChannelRequest request, AsyncHandler<StopChannelRequest,StopChannelResponse> handler)
ManagementAsync
Stops a Channel so that it will no longer accept messages.
stopChannel
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<TrainSkillResponse> trainSkill(TrainSkillRequest request, AsyncHandler<TrainSkillRequest,TrainSkillResponse> handler)
ManagementAsync
Train a skill.
trainSkill
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateAuthenticationProviderResponse> updateAuthenticationProvider(UpdateAuthenticationProviderRequest request, AsyncHandler<UpdateAuthenticationProviderRequest,UpdateAuthenticationProviderResponse> handler)
ManagementAsync
Updates the specified Authentication Provider with the information in the request body.
updateAuthenticationProvider
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateChannelResponse> updateChannel(UpdateChannelRequest request, AsyncHandler<UpdateChannelRequest,UpdateChannelResponse> handler)
ManagementAsync
Updates the specified Channel with the information in the request body.
updateChannel
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateDigitalAssistantResponse> updateDigitalAssistant(UpdateDigitalAssistantRequest request, AsyncHandler<UpdateDigitalAssistantRequest,UpdateDigitalAssistantResponse> handler)
ManagementAsync
Updates the specified Digital Assistant with the information in the request body.
updateDigitalAssistant
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateDigitalAssistantParameterResponse> updateDigitalAssistantParameter(UpdateDigitalAssistantParameterRequest request, AsyncHandler<UpdateDigitalAssistantParameterRequest,UpdateDigitalAssistantParameterResponse> handler)
ManagementAsync
Updates the specified Digital Assistant Parameter with the information in the request body.
updateDigitalAssistantParameter
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateOdaPrivateEndpointResponse> updateOdaPrivateEndpoint(UpdateOdaPrivateEndpointRequest request, AsyncHandler<UpdateOdaPrivateEndpointRequest,UpdateOdaPrivateEndpointResponse> handler)
ManagementAsync
Starts an asynchronous job to update the specified ODA Private Endpoint with the information in the request body.
updateOdaPrivateEndpoint
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateSkillResponse> updateSkill(UpdateSkillRequest request, AsyncHandler<UpdateSkillRequest,UpdateSkillResponse> handler)
ManagementAsync
Updates the specified Skill with the information in the request body.
updateSkill
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateSkillParameterResponse> updateSkillParameter(UpdateSkillParameterRequest request, AsyncHandler<UpdateSkillParameterRequest,UpdateSkillParameterResponse> handler)
ManagementAsync
Updates the specified Skill Parameter with the information in the request body.
updateSkillParameter
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateTranslatorResponse> updateTranslator(UpdateTranslatorRequest request, AsyncHandler<UpdateTranslatorRequest,UpdateTranslatorResponse> handler)
ManagementAsync
Updates the specified Translator with the information in the request body.
updateTranslator
in interface ManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.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()
public Optional<String> getMinimumClientCommonLibraryVersionFromClient()
protected <REQ extends BmcRequest<?>,RESP extends BmcResponse,RESP_BUILDER extends BmcResponse.Builder<RESP>> ClientCall<REQ,RESP,RESP_BUILDER> clientCall(REQ request, Supplier<RESP_BUILDER> responseBuilder)
Copyright © 2016–2024. All rights reserved.