@Generated(value="OracleSDKGenerator", comments="API Version: 20210101") public class AnomalyDetectionClient extends BaseSyncClient implements AnomalyDetection
Modifier and Type | Class and Description |
---|---|
static class |
AnomalyDetectionClient.Builder
Builder class for this client.
|
Modifier and Type | Field and Description |
---|---|
static Service |
SERVICE
Service instance for AnomalyDetection.
|
Constructor and Description |
---|
AnomalyDetectionClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Deprecated.
Use the
builder instead. |
AnomalyDetectionClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Deprecated.
Use the
builder instead. |
AnomalyDetectionClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
AnomalyDetectionClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
AnomalyDetectionClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
ExecutorService executorService)
Deprecated.
Use the
builder instead. |
AnomalyDetectionClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.
Use the
builder instead. |
AnomalyDetectionClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Deprecated.
Use the
builder instead. |
AnomalyDetectionClient(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
close
public static final Service SERVICE
Service instance for AnomalyDetection.
@Deprecated public AnomalyDetectionClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AnomalyDetectionClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)@Deprecated public AnomalyDetectionClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AnomalyDetectionClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
@Deprecated public AnomalyDetectionClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AnomalyDetectionClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
@Deprecated public AnomalyDetectionClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AnomalyDetectionClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
@Deprecated public AnomalyDetectionClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AnomalyDetectionClient.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 AnomalyDetectionClient(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 AnomalyDetectionClient.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 AnomalyDetectionClient(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 AnomalyDetectionClient.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 AnomalyDetectionClient(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 AnomalyDetectionClient.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
- AnomalyDetectionClient.Builder.executorService
public static AnomalyDetectionClient.Builder builder()
Create a builder for this client.
public void setRegion(Region region)
AnomalyDetection
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 AnomalyDetection
region
- The region of the service.public void setRegion(String regionId)
AnomalyDetection
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 AnomalyDetection
regionId
- The public region ID.public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request)
AnomalyDetection
Cancel work request with the given ID.
cancelWorkRequest
in interface AnomalyDetection
request
- The request object containing the details to sendpublic ChangeAiPrivateEndpointCompartmentResponse changeAiPrivateEndpointCompartment(ChangeAiPrivateEndpointCompartmentRequest request)
AnomalyDetection
Moves a resource into a different compartment. When provided, ‘If-Match’ is checked against ‘ETag’ values of the resource.
changeAiPrivateEndpointCompartment
in interface AnomalyDetection
request
- The request object containing the details to sendpublic ChangeDataAssetCompartmentResponse changeDataAssetCompartment(ChangeDataAssetCompartmentRequest request)
AnomalyDetection
Changing the compartment of a data asset.
changeDataAssetCompartment
in interface AnomalyDetection
request
- The request object containing the details to sendpublic ChangeDetectAnomalyJobCompartmentResponse changeDetectAnomalyJobCompartment(ChangeDetectAnomalyJobCompartmentRequest request)
AnomalyDetection
Moves a asynchronous anomaly detect job resource from one compartment to another. When provided, If-Match is checked against ETag values of the resource.
changeDetectAnomalyJobCompartment
in interface AnomalyDetection
request
- The request object containing the details to sendpublic ChangeModelCompartmentResponse changeModelCompartment(ChangeModelCompartmentRequest request)
AnomalyDetection
Moves a Model resource from one compartment to another. When provided, If-Match is checked against ETag values of the resource.
changeModelCompartment
in interface AnomalyDetection
request
- The request object containing the details to sendpublic ChangeProjectCompartmentResponse changeProjectCompartment(ChangeProjectCompartmentRequest request)
AnomalyDetection
Moves a Project resource from one compartment to another. When provided, If-Match is checked against ETag values of the resource.
changeProjectCompartment
in interface AnomalyDetection
request
- The request object containing the details to sendpublic CreateAiPrivateEndpointResponse createAiPrivateEndpoint(CreateAiPrivateEndpointRequest request)
AnomalyDetection
Create a new private reverse connection endpoint.
createAiPrivateEndpoint
in interface AnomalyDetection
request
- The request object containing the details to sendpublic CreateDataAssetResponse createDataAsset(CreateDataAssetRequest request)
AnomalyDetection
Creates a new DataAsset.
createDataAsset
in interface AnomalyDetection
request
- The request object containing the details to sendpublic CreateDetectAnomalyJobResponse createDetectAnomalyJob(CreateDetectAnomalyJobRequest request)
AnomalyDetection
Creates a job to perform anomaly detection.
createDetectAnomalyJob
in interface AnomalyDetection
request
- The request object containing the details to sendpublic CreateModelResponse createModel(CreateModelRequest request)
AnomalyDetection
Creates a new Model.
createModel
in interface AnomalyDetection
request
- The request object containing the details to sendpublic CreateProjectResponse createProject(CreateProjectRequest request)
AnomalyDetection
Creates a new Project.
createProject
in interface AnomalyDetection
request
- The request object containing the details to sendpublic DeleteAiPrivateEndpointResponse deleteAiPrivateEndpoint(DeleteAiPrivateEndpointRequest request)
AnomalyDetection
Deletes a private reverse connection endpoint by identifier.
deleteAiPrivateEndpoint
in interface AnomalyDetection
request
- The request object containing the details to sendpublic DeleteDataAssetResponse deleteDataAsset(DeleteDataAssetRequest request)
AnomalyDetection
Deletes a DataAsset resource by identifier
deleteDataAsset
in interface AnomalyDetection
request
- The request object containing the details to sendpublic DeleteDetectAnomalyJobResponse deleteDetectAnomalyJob(DeleteDetectAnomalyJobRequest request)
AnomalyDetection
Deletes an accepted, but not started detect anomaly asynchronous job.
deleteDetectAnomalyJob
in interface AnomalyDetection
request
- The request object containing the details to sendpublic DeleteModelResponse deleteModel(DeleteModelRequest request)
AnomalyDetection
Deletes an ai model resource by identifier. This operation fails with a 409 error unless all associated resources are in a DELETED state. You must delete all associated resources before deleting a project.
deleteModel
in interface AnomalyDetection
request
- The request object containing the details to sendpublic DeleteProjectResponse deleteProject(DeleteProjectRequest request)
AnomalyDetection
Deletes a Project resource by identifier. This operation fails with a 409 error unless all associated resources (models deployments or data assets) are in a DELETED state. You must delete all associated resources before deleting a project.
deleteProject
in interface AnomalyDetection
request
- The request object containing the details to sendpublic DetectAnomaliesResponse detectAnomalies(DetectAnomaliesRequest request)
AnomalyDetection
Make a detect call with an anomaly model and detection data
detectAnomalies
in interface AnomalyDetection
request
- The request object containing the details to sendpublic GetAiPrivateEndpointResponse getAiPrivateEndpoint(GetAiPrivateEndpointRequest request)
AnomalyDetection
Gets a specific private reverse connection by identifier.
getAiPrivateEndpoint
in interface AnomalyDetection
request
- The request object containing the details to sendpublic GetDataAssetResponse getDataAsset(GetDataAssetRequest request)
AnomalyDetection
Gets a DataAsset by identifier
getDataAsset
in interface AnomalyDetection
request
- The request object containing the details to sendpublic GetDetectAnomalyJobResponse getDetectAnomalyJob(GetDetectAnomalyJobRequest request)
AnomalyDetection
Gets a detect anomaly asynchronous job by identifier.
getDetectAnomalyJob
in interface AnomalyDetection
request
- The request object containing the details to sendpublic GetModelResponse getModel(GetModelRequest request)
AnomalyDetection
Gets a Model by identifier
getModel
in interface AnomalyDetection
request
- The request object containing the details to sendpublic GetProjectResponse getProject(GetProjectRequest request)
AnomalyDetection
Gets a Project by identifier
getProject
in interface AnomalyDetection
request
- The request object containing the details to sendpublic GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
AnomalyDetection
Gets the status of the work request with the given ID.
getWorkRequest
in interface AnomalyDetection
request
- The request object containing the details to sendpublic ListAiPrivateEndpointsResponse listAiPrivateEndpoints(ListAiPrivateEndpointsRequest request)
AnomalyDetection
Returns a list of all the AI private endpoints in the specified compartment.
listAiPrivateEndpoints
in interface AnomalyDetection
request
- The request object containing the details to sendpublic ListDataAssetsResponse listDataAssets(ListDataAssetsRequest request)
AnomalyDetection
Returns a list of DataAssets.
listDataAssets
in interface AnomalyDetection
request
- The request object containing the details to sendpublic ListDetectAnomalyJobsResponse listDetectAnomalyJobs(ListDetectAnomalyJobsRequest request)
AnomalyDetection
Returns a list of all the Anomaly Detection jobs in the specified compartment.
listDetectAnomalyJobs
in interface AnomalyDetection
request
- The request object containing the details to sendpublic ListModelsResponse listModels(ListModelsRequest request)
AnomalyDetection
Returns a list of Models.
listModels
in interface AnomalyDetection
request
- The request object containing the details to sendpublic ListProjectsResponse listProjects(ListProjectsRequest request)
AnomalyDetection
Returns a list of Projects.
listProjects
in interface AnomalyDetection
request
- The request object containing the details to sendpublic ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
AnomalyDetection
Return a (paginated) list of errors for a given work request.
listWorkRequestErrors
in interface AnomalyDetection
request
- The request object containing the details to sendpublic ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
AnomalyDetection
Return a (paginated) list of logs for a given work request.
listWorkRequestLogs
in interface AnomalyDetection
request
- The request object containing the details to sendpublic ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
AnomalyDetection
Lists the work requests in a compartment.
listWorkRequests
in interface AnomalyDetection
request
- The request object containing the details to sendpublic UpdateAiPrivateEndpointResponse updateAiPrivateEndpoint(UpdateAiPrivateEndpointRequest request)
AnomalyDetection
Updates the private reverse connection endpoint.
updateAiPrivateEndpoint
in interface AnomalyDetection
request
- The request object containing the details to sendpublic UpdateDataAssetResponse updateDataAsset(UpdateDataAssetRequest request)
AnomalyDetection
Updates the DataAsset
updateDataAsset
in interface AnomalyDetection
request
- The request object containing the details to sendpublic UpdateDetectAnomalyJobResponse updateDetectAnomalyJob(UpdateDetectAnomalyJobRequest request)
AnomalyDetection
Updates the detect anomaly asynchronous job by identifier.
updateDetectAnomalyJob
in interface AnomalyDetection
request
- The request object containing the details to sendpublic UpdateModelResponse updateModel(UpdateModelRequest request)
AnomalyDetection
Updates the Model
updateModel
in interface AnomalyDetection
request
- The request object containing the details to sendpublic UpdateProjectResponse updateProject(UpdateProjectRequest request)
AnomalyDetection
Updates the Project
updateProject
in interface AnomalyDetection
request
- The request object containing the details to sendpublic AnomalyDetectionWaiters getWaiters()
AnomalyDetection
Gets the pre-configured waiters available for resources for this service.
getWaiters
in interface AnomalyDetection
public AnomalyDetectionPaginators getPaginators()
AnomalyDetection
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 AnomalyDetection
protected ClientConfigurator getDefaultConfigurator()
public 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
Copyright © 2016–2023. All rights reserved.