@Generated(value="OracleSDKGenerator", comments="API Version: 20190101") public class DataScienceClient extends Object implements DataScience
| Modifier and Type | Class and Description |
|---|---|
static class |
DataScienceClient.Builder
Builder class for this client.
|
| Modifier and Type | Field and Description |
|---|---|
static Service |
SERVICE
Service instance for DataScience.
|
| Modifier | Constructor and Description |
|---|---|
|
DataScienceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Creates a new service instance using the given authentication provider and client configuration.
|
|
DataScienceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Creates a new service instance using the given authentication provider and client configuration.
|
|
DataScienceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Creates a new service instance using the given authentication provider and client configuration.
|
|
DataScienceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Creates a new service instance using the given authentication provider and client configuration.
|
|
DataScienceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
ExecutorService executorService)
Creates a new service instance using the given authentication provider and client configuration.
|
protected |
DataScienceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
ExecutorService executorService,
com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder)
Creates a new service instance using the given authentication provider and client configuration.
|
|
DataScienceClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Creates a new service instance using the given authentication provider.
|
|
DataScienceClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Creates a new service instance using the given authentication provider and client configuration.
|
|
DataScienceClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Creates a new service instance using the given authentication provider and client configuration.
|
public static final Service SERVICE
Service instance for DataScience.
public DataScienceClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Creates a new service instance using the given authentication provider.
authenticationDetailsProvider - The authentication details provider, required.public DataScienceClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Creates a new service instance using the given authentication provider and client configuration.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.public DataScienceClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.public DataScienceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.public DataScienceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.additionalClientConfigurators - Additional client configurators to be run after the primary configurator.public DataScienceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.additionalClientConfigurators - Additional client configurators to be run after the primary configurator.endpoint - Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider)public DataScienceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.signingStrategyRequestSignerFactories - The request signer factories for each signing strategy used to create the request signeradditionalClientConfigurators - Additional client configurators to be run after the primary configurator.endpoint - Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider)public DataScienceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.signingStrategyRequestSignerFactories - The request signer factories for each signing strategy used to create the request signeradditionalClientConfigurators - Additional client configurators to be run after the primary configurator.endpoint - Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider)executorService - ExecutorService used by the client, or null to use the default configured ThreadPoolExecutorprotected DataScienceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService, com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
Use the DataScienceClient.Builder to get access to all these parameters.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.signingStrategyRequestSignerFactories - The request signer factories for each signing strategy used to create the request signeradditionalClientConfigurators - Additional client configurators to be run after the primary configurator.endpoint - Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider)executorService - ExecutorService used by the client, or null to use the default configured ThreadPoolExecutorrestClientFactoryBuilder - the builder for the RestClientFactorypublic static DataScienceClient.Builder builder()
Create a builder for this client.
public void setEndpoint(String endpoint)
DataScienceSets the endpoint to call (ex, https://www.example.com).
setEndpoint in interface DataScienceendpoint - The endpoint of the service.public String getEndpoint()
DataScienceGets the set endpoint for REST call (ex, https://www.example.com)
getEndpoint in interface DataSciencepublic void setRegion(Region region)
DataScienceSets 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 DataScienceregion - The region of the service.public void setRegion(String regionId)
DataScienceSets 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 DataScienceregionId - The public region ID.public void close()
close in interface AutoCloseablepublic ActivateModelResponse activateModel(ActivateModelRequest request)
DataScienceActivates the model.
activateModel in interface DataSciencerequest - The request object containing the details to sendpublic ActivateNotebookSessionResponse activateNotebookSession(ActivateNotebookSessionRequest request)
DataScienceActivates the notebook session.
activateNotebookSession in interface DataSciencerequest - The request object containing the details to sendpublic CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request)
DataScienceCancels a work request that has not started.
cancelWorkRequest in interface DataSciencerequest - The request object containing the details to sendpublic ChangeModelCompartmentResponse changeModelCompartment(ChangeModelCompartmentRequest request)
DataScienceMoves a model resource into a different compartment.
changeModelCompartment in interface DataSciencerequest - The request object containing the details to sendpublic ChangeNotebookSessionCompartmentResponse changeNotebookSessionCompartment(ChangeNotebookSessionCompartmentRequest request)
DataScienceMoves a notebook session resource into a different compartment.
changeNotebookSessionCompartment in interface DataSciencerequest - The request object containing the details to sendpublic ChangeProjectCompartmentResponse changeProjectCompartment(ChangeProjectCompartmentRequest request)
DataScienceMoves a project resource into a different compartment.
changeProjectCompartment in interface DataSciencerequest - The request object containing the details to sendpublic CreateModelResponse createModel(CreateModelRequest request)
DataScienceCreates a new model.
createModel in interface DataSciencerequest - The request object containing the details to sendpublic CreateModelArtifactResponse createModelArtifact(CreateModelArtifactRequest request)
DataScienceCreates model artifact for specified model.
Note: This operation consumes a stream.
If the stream supports InputStream.mark(int) and InputStream.reset(), when a retry is
necessary, the stream is reset so it starts at the beginning (or whatever the stream’s position was at the time this
operation is called}.
Note this means that if the caller has used InputStream.mark(int) before, then the mark
will not be the same anymore after this operation, and a subsequent call to InputStream.reset() by
the caller will reset the stream not to the caller’s mark, but to the position the stream was in when this operation
was called.
If the stream is a FileInputStream, and the stream’s FileChannel position
can be changed (like for a regular file), the stream will be wrapped in such a way that it does provide
support for InputStream.mark(int) and InputStream.reset(). Then the same procedure as
above is followed. If the stream’s FileChannel position cannot be changed (like for a
named pipe), then the stream’s contents will be buffered in memory, as described below.
If the stream does not support InputStream.mark(int) and InputStream.reset(), then
the stream is wrapped in a BufferedInputStream, which means the entire contents may
be buffered in memory. Then the same procedure as above is followed.
The contents of the stream, except when the stream is a FileInputStream whose
FileChannel position can be changed, should be less than 2 GiB in size if retries are used.
This is because streams 2 GiB in size or larger do no guarantee that mark-and-reset can be performed. If the stream
is larger, do not use built-in retries and manage retries yourself.
createModelArtifact in interface DataSciencerequest - The request object containing the details to sendpublic CreateModelProvenanceResponse createModelProvenance(CreateModelProvenanceRequest request)
DataScienceCreates provenance information for the specified model.
createModelProvenance in interface DataSciencerequest - The request object containing the details to sendpublic CreateNotebookSessionResponse createNotebookSession(CreateNotebookSessionRequest request)
DataScienceCreates a new notebook session.
createNotebookSession in interface DataSciencerequest - The request object containing the details to sendpublic CreateProjectResponse createProject(CreateProjectRequest request)
DataScienceCreates a new project.
createProject in interface DataSciencerequest - The request object containing the details to sendpublic DeactivateModelResponse deactivateModel(DeactivateModelRequest request)
DataScienceDeactivates the model.
deactivateModel in interface DataSciencerequest - The request object containing the details to sendpublic DeactivateNotebookSessionResponse deactivateNotebookSession(DeactivateNotebookSessionRequest request)
DataScienceDeactivates the notebook session.
deactivateNotebookSession in interface DataSciencerequest - The request object containing the details to sendpublic DeleteModelResponse deleteModel(DeleteModelRequest request)
DataScienceDeletes the specified model.
deleteModel in interface DataSciencerequest - The request object containing the details to sendpublic DeleteNotebookSessionResponse deleteNotebookSession(DeleteNotebookSessionRequest request)
DataScienceDeletes the specified notebook session. Any unsaved work in this notebook session will be lost.
deleteNotebookSession in interface DataSciencerequest - The request object containing the details to sendpublic DeleteProjectResponse deleteProject(DeleteProjectRequest request)
DataScienceDeletes the specified project. This operation will fail unless all associated resources (such as notebook sessions or models) are in a DELETED state. You must delete all associated resources before deleting a project.
deleteProject in interface DataSciencerequest - The request object containing the details to sendpublic GetModelResponse getModel(GetModelRequest request)
DataScienceGets the specified model’s information.
getModel in interface DataSciencerequest - The request object containing the details to sendpublic GetModelArtifactContentResponse getModelArtifactContent(GetModelArtifactContentRequest request)
DataScienceDownloads model artifact content for specified model.
getModelArtifactContent in interface DataSciencerequest - The request object containing the details to sendpublic GetModelProvenanceResponse getModelProvenance(GetModelProvenanceRequest request)
DataScienceGets provenance information for specified model.
getModelProvenance in interface DataSciencerequest - The request object containing the details to sendpublic GetNotebookSessionResponse getNotebookSession(GetNotebookSessionRequest request)
DataScienceGets the specified notebook session’s information.
getNotebookSession in interface DataSciencerequest - The request object containing the details to sendpublic GetProjectResponse getProject(GetProjectRequest request)
DataScienceGets the specified project’s information.
getProject in interface DataSciencerequest - The request object containing the details to sendpublic GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
DataScienceGets the specified work request’s information.
getWorkRequest in interface DataSciencerequest - The request object containing the details to sendpublic HeadModelArtifactResponse headModelArtifact(HeadModelArtifactRequest request)
DataScienceGets model artifact metadata for specified model.
headModelArtifact in interface DataSciencerequest - The request object containing the details to sendpublic ListModelsResponse listModels(ListModelsRequest request)
DataScienceLists models in the specified compartment.
listModels in interface DataSciencerequest - The request object containing the details to sendpublic ListNotebookSessionShapesResponse listNotebookSessionShapes(ListNotebookSessionShapesRequest request)
DataScienceLists the valid notebook session shapes.
listNotebookSessionShapes in interface DataSciencerequest - The request object containing the details to sendpublic ListNotebookSessionsResponse listNotebookSessions(ListNotebookSessionsRequest request)
DataScienceLists notebook sessions in the specified compartment.
listNotebookSessions in interface DataSciencerequest - The request object containing the details to sendpublic ListProjectsResponse listProjects(ListProjectsRequest request)
DataScienceLists projects in the specified compartment.
listProjects in interface DataSciencerequest - The request object containing the details to sendpublic ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
DataScienceLists work request errors for the specified work request.
listWorkRequestErrors in interface DataSciencerequest - The request object containing the details to sendpublic ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
DataScienceLists work request logs for the specified work request.
listWorkRequestLogs in interface DataSciencerequest - The request object containing the details to sendpublic ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
DataScienceLists work requests in the specified compartment.
listWorkRequests in interface DataSciencerequest - The request object containing the details to sendpublic UpdateModelResponse updateModel(UpdateModelRequest request)
DataScienceUpdates the properties of a model. You can update the displayName, description, freeformTags, and definedTags properties.
updateModel in interface DataSciencerequest - The request object containing the details to sendpublic UpdateModelProvenanceResponse updateModelProvenance(UpdateModelProvenanceRequest request)
DataScienceUpdates provenance information for the specified model.
updateModelProvenance in interface DataSciencerequest - The request object containing the details to sendpublic UpdateNotebookSessionResponse updateNotebookSession(UpdateNotebookSessionRequest request)
DataScienceUpdates the properties of a notebook session. You can update the displayName, freeformTags, and definedTags properties.
When the notebook session is in the INACTIVE lifecycle state, you can update notebookSessionConfigurationDetails and change shape, subnetId, and blockStorageSizeInGBs.
Changes to the notebookSessionConfigurationDetails will take effect the next time the ActivateNotebookSession action is invoked on the notebook session resource.
updateNotebookSession in interface DataSciencerequest - The request object containing the details to sendpublic UpdateProjectResponse updateProject(UpdateProjectRequest request)
DataScienceUpdates the properties of a project. You can update the displayName, description, freeformTags, and definedTags properties.
updateProject in interface DataSciencerequest - The request object containing the details to sendpublic DataScienceWaiters getWaiters()
DataScienceGets the pre-configured waiters available for resources for this service.
getWaiters in interface DataSciencepublic DataSciencePaginators getPaginators()
DataScienceGets 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 DataScienceCopyright © 2016–2021. All rights reserved.