@Generated(value="OracleSDKGenerator", comments="API Version: 20200129") public class DataFlowClient extends BaseSyncClient implements DataFlow
Modifier and Type | Class and Description |
---|---|
static class |
DataFlowClient.Builder
Builder class for this client.
|
Modifier and Type | Field and Description |
---|---|
static Service |
SERVICE
Service instance for DataFlow.
|
Constructor and Description |
---|
DataFlowClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Deprecated.
Use the
builder instead. |
DataFlowClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Deprecated.
Use the
builder instead. |
DataFlowClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
DataFlowClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
DataFlowClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
ExecutorService executorService)
Deprecated.
Use the
builder instead. |
DataFlowClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.
Use the
builder instead. |
DataFlowClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Deprecated.
Use the
builder instead. |
DataFlowClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Deprecated.
Use the
builder instead. |
Modifier and Type | Method and Description |
---|---|
static DataFlowClient.Builder |
builder()
Create a builder for this client.
|
ChangeApplicationCompartmentResponse |
changeApplicationCompartment(ChangeApplicationCompartmentRequest request)
Moves an application into a different compartment.
|
ChangePrivateEndpointCompartmentResponse |
changePrivateEndpointCompartment(ChangePrivateEndpointCompartmentRequest request)
Moves a private endpoint into a different compartment.
|
ChangeRunCompartmentResponse |
changeRunCompartment(ChangeRunCompartmentRequest request)
Moves a run into a different compartment.
|
void |
close() |
CreateApplicationResponse |
createApplication(CreateApplicationRequest request)
Creates an application.
|
CreatePrivateEndpointResponse |
createPrivateEndpoint(CreatePrivateEndpointRequest request)
Creates a private endpoint to be used by applications.
|
CreateRunResponse |
createRun(CreateRunRequest request)
Creates a run for an application.
|
CreateStatementResponse |
createStatement(CreateStatementRequest request)
Executes a statement for a Session run.
|
DeleteApplicationResponse |
deleteApplication(DeleteApplicationRequest request)
Deletes an application using an
applicationId . |
DeletePrivateEndpointResponse |
deletePrivateEndpoint(DeletePrivateEndpointRequest request)
Deletes a private endpoint using a
privateEndpointId . |
DeleteRunResponse |
deleteRun(DeleteRunRequest request)
Cancels the specified run if it has not already completed or was previously cancelled.
|
DeleteStatementResponse |
deleteStatement(DeleteStatementRequest request)
Cancels the specified statement for a Session run.
|
GetApplicationResponse |
getApplication(GetApplicationRequest request)
Retrieves an application using an
applicationId . |
protected ClientConfigurator |
getDefaultConfigurator() |
String |
getEndpoint() |
DataFlowPaginators |
getPaginators()
Gets the pre-configured paginators available for list operations in this service which may
return multiple pages of data.
|
GetPrivateEndpointResponse |
getPrivateEndpoint(GetPrivateEndpointRequest request)
Retrieves an private endpoint using a
privateEndpointId . |
GetRunResponse |
getRun(GetRunRequest request)
Retrieves the run for the specified
runId . |
GetRunLogResponse |
getRunLog(GetRunLogRequest request)
Retrieves the content of an run log.
|
GetStatementResponse |
getStatement(GetStatementRequest request)
Retrieves the statement corresponding to the
statementId for a Session run specified by
runId . |
DataFlowWaiters |
getWaiters()
Gets the pre-configured waiters available for resources for this service.
|
GetWorkRequestResponse |
getWorkRequest(GetWorkRequestRequest request)
Gets the status of the work request with the given OCID.
|
ListApplicationsResponse |
listApplications(ListApplicationsRequest request)
Lists all applications in the specified compartment.
|
ListPrivateEndpointsResponse |
listPrivateEndpoints(ListPrivateEndpointsRequest request)
Lists all private endpoints in the specified compartment.
|
ListRunLogsResponse |
listRunLogs(ListRunLogsRequest request)
Retrieves summaries of the run’s logs.
|
ListRunsResponse |
listRuns(ListRunsRequest request)
Lists all runs of an application in the specified compartment.
|
ListStatementsResponse |
listStatements(ListStatementsRequest request)
Lists all statements for a Session run.
|
ListWorkRequestErrorsResponse |
listWorkRequestErrors(ListWorkRequestErrorsRequest request)
Return a (paginated) list of errors for a given work request.
|
ListWorkRequestLogsResponse |
listWorkRequestLogs(ListWorkRequestLogsRequest request)
Return a paginated list of logs for a given work request.
|
ListWorkRequestsResponse |
listWorkRequests(ListWorkRequestsRequest request)
Lists the work requests in a compartment.
|
void |
populateServiceParametersInEndpoint(String endpoint,
Map<String,Object> requiredParametersMap)
Populate the parameters in the endpoint with its corresponding value and update the base
endpoint.
|
void |
refreshClient()
Rebuild the backing
HttpClient . |
void |
setEndpoint(String endpoint) |
void |
setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
|
void |
setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
|
UpdateApplicationResponse |
updateApplication(UpdateApplicationRequest request)
Updates an application using an
applicationId . |
void |
updateBaseEndpoint(String endpoint)
This method should be used for parameterized endpoint templates only.
|
UpdatePrivateEndpointResponse |
updatePrivateEndpoint(UpdatePrivateEndpointRequest request)
Updates a private endpoint using a
privateEndpointId . |
UpdateRunResponse |
updateRun(UpdateRunRequest request)
Updates a run using a
runId . |
void |
useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
This method should be used to enable or disable the use of realm-specific endpoint template.
|
clientCall
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
close
public static final Service SERVICE
Service instance for DataFlow.
@Deprecated public DataFlowClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see DataFlowClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)@Deprecated public DataFlowClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see DataFlowClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
@Deprecated public DataFlowClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see DataFlowClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
@Deprecated public DataFlowClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see DataFlowClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
@Deprecated public DataFlowClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see DataFlowClient.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 DataFlowClient(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 DataFlowClient.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 DataFlowClient(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 DataFlowClient.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 DataFlowClient(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 DataFlowClient.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
- DataFlowClient.Builder.executorService
public static DataFlowClient.Builder builder()
Create a builder for this client.
public void setRegion(Region region)
DataFlow
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.
public void setRegion(String regionId)
DataFlow
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
.
public ChangeApplicationCompartmentResponse changeApplicationCompartment(ChangeApplicationCompartmentRequest request)
DataFlow
Moves an application into a different compartment. When provided, If-Match is checked against ETag values of the resource. Associated resources, like runs, will not be automatically moved.
changeApplicationCompartment
in interface DataFlow
request
- The request object containing the details to sendpublic ChangePrivateEndpointCompartmentResponse changePrivateEndpointCompartment(ChangePrivateEndpointCompartmentRequest request)
DataFlow
Moves a private endpoint into a different compartment. When provided, If-Match is checked against ETag values of the resource.
changePrivateEndpointCompartment
in interface DataFlow
request
- The request object containing the details to sendpublic ChangeRunCompartmentResponse changeRunCompartment(ChangeRunCompartmentRequest request)
DataFlow
Moves a run into a different compartment. When provided, If-Match is checked against ETag values of the resource. Associated resources, like historical metrics, will not be automatically moved. The run must be in a terminal state (CANCELED, FAILED, SUCCEEDED) in order for it to be moved to a different compartment
changeRunCompartment
in interface DataFlow
request
- The request object containing the details to sendpublic CreateApplicationResponse createApplication(CreateApplicationRequest request)
DataFlow
Creates an application.
createApplication
in interface DataFlow
request
- The request object containing the details to sendpublic CreatePrivateEndpointResponse createPrivateEndpoint(CreatePrivateEndpointRequest request)
DataFlow
Creates a private endpoint to be used by applications.
createPrivateEndpoint
in interface DataFlow
request
- The request object containing the details to sendpublic CreateRunResponse createRun(CreateRunRequest request)
DataFlow
Creates a run for an application.
public CreateStatementResponse createStatement(CreateStatementRequest request)
DataFlow
Executes a statement for a Session run.
createStatement
in interface DataFlow
request
- The request object containing the details to sendpublic DeleteApplicationResponse deleteApplication(DeleteApplicationRequest request)
DataFlow
Deletes an application using an applicationId
.
deleteApplication
in interface DataFlow
request
- The request object containing the details to sendpublic DeletePrivateEndpointResponse deletePrivateEndpoint(DeletePrivateEndpointRequest request)
DataFlow
Deletes a private endpoint using a privateEndpointId
.
deletePrivateEndpoint
in interface DataFlow
request
- The request object containing the details to sendpublic DeleteRunResponse deleteRun(DeleteRunRequest request)
DataFlow
Cancels the specified run if it has not already completed or was previously cancelled. If a run is in progress, the executing job will be killed.
public DeleteStatementResponse deleteStatement(DeleteStatementRequest request)
DataFlow
Cancels the specified statement for a Session run.
deleteStatement
in interface DataFlow
request
- The request object containing the details to sendpublic GetApplicationResponse getApplication(GetApplicationRequest request)
DataFlow
Retrieves an application using an applicationId
.
getApplication
in interface DataFlow
request
- The request object containing the details to sendpublic GetPrivateEndpointResponse getPrivateEndpoint(GetPrivateEndpointRequest request)
DataFlow
Retrieves an private endpoint using a privateEndpointId
.
getPrivateEndpoint
in interface DataFlow
request
- The request object containing the details to sendpublic GetRunResponse getRun(GetRunRequest request)
DataFlow
Retrieves the run for the specified runId
.
public GetRunLogResponse getRunLog(GetRunLogRequest request)
DataFlow
Retrieves the content of an run log.
public GetStatementResponse getStatement(GetStatementRequest request)
DataFlow
Retrieves the statement corresponding to the statementId
for a Session run specified by
runId
.
getStatement
in interface DataFlow
request
- The request object containing the details to sendpublic GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
DataFlow
Gets the status of the work request with the given OCID.
getWorkRequest
in interface DataFlow
request
- The request object containing the details to sendpublic ListApplicationsResponse listApplications(ListApplicationsRequest request)
DataFlow
Lists all applications in the specified compartment. Only one parameter other than compartmentId may also be included in a query. The query must include compartmentId. If the query does not include compartmentId, or includes compartmentId but two or more other parameters an error is returned.
listApplications
in interface DataFlow
request
- The request object containing the details to sendpublic ListPrivateEndpointsResponse listPrivateEndpoints(ListPrivateEndpointsRequest request)
DataFlow
Lists all private endpoints in the specified compartment. The query must include compartmentId. The query may also include one other parameter. If the query does not include compartmentId, or includes compartmentId, but with two or more other parameters, an error is returned.
listPrivateEndpoints
in interface DataFlow
request
- The request object containing the details to sendpublic ListRunLogsResponse listRunLogs(ListRunLogsRequest request)
DataFlow
Retrieves summaries of the run’s logs.
listRunLogs
in interface DataFlow
request
- The request object containing the details to sendpublic ListRunsResponse listRuns(ListRunsRequest request)
DataFlow
Lists all runs of an application in the specified compartment. Only one parameter other than compartmentId may also be included in a query. The query must include compartmentId. If the query does not include compartmentId, or includes compartmentId but two or more other parameters an error is returned.
public ListStatementsResponse listStatements(ListStatementsRequest request)
DataFlow
Lists all statements for a Session run.
listStatements
in interface DataFlow
request
- The request object containing the details to sendpublic ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
DataFlow
Return a (paginated) list of errors for a given work request.
listWorkRequestErrors
in interface DataFlow
request
- The request object containing the details to sendpublic ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
DataFlow
Return a paginated list of logs for a given work request.
listWorkRequestLogs
in interface DataFlow
request
- The request object containing the details to sendpublic ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
DataFlow
Lists the work requests in a compartment.
listWorkRequests
in interface DataFlow
request
- The request object containing the details to sendpublic UpdateApplicationResponse updateApplication(UpdateApplicationRequest request)
DataFlow
Updates an application using an applicationId
.
updateApplication
in interface DataFlow
request
- The request object containing the details to sendpublic UpdatePrivateEndpointResponse updatePrivateEndpoint(UpdatePrivateEndpointRequest request)
DataFlow
Updates a private endpoint using a privateEndpointId
. If changes to a private endpoint
match a previously defined private endpoint, then a 409 status code will be returned. This
indicates that a conflict has been detected.
updatePrivateEndpoint
in interface DataFlow
request
- The request object containing the details to sendpublic UpdateRunResponse updateRun(UpdateRunRequest request)
DataFlow
Updates a run using a runId
.
public DataFlowWaiters getWaiters()
DataFlow
Gets the pre-configured waiters available for resources for this service.
getWaiters
in interface DataFlow
public DataFlowPaginators getPaginators()
DataFlow
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 DataFlow
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
Copyright © 2016–2023. All rights reserved.