@Generated(value="OracleSDKGenerator", comments="API Version: 20220919") public class MigrationClient extends BaseSyncClient implements Migration
Modifier and Type | Class and Description |
---|---|
static class |
MigrationClient.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 Migration.
|
Constructor and Description |
---|
MigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Deprecated.
Use the
builder instead. |
MigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Deprecated.
Use the
builder instead. |
MigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
MigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
MigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
ExecutorService executorService)
Deprecated.
Use the
builder instead. |
MigrationClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.
Use the
builder instead. |
MigrationClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Deprecated.
Use the
builder instead. |
MigrationClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Deprecated.
Use the
builder instead. |
clientCall
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
close
public static final Service SERVICE
Service instance for Migration.
public final String clientCommonLibraryVersion
@Deprecated public MigrationClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see MigrationClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)@Deprecated public MigrationClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see MigrationClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
@Deprecated public MigrationClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see MigrationClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
@Deprecated public MigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see MigrationClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
@Deprecated public MigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see MigrationClient.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 MigrationClient(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 MigrationClient.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 MigrationClient(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 MigrationClient.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 MigrationClient(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 MigrationClient.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
- MigrationClient.Builder.executorService
public static MigrationClient.Builder builder()
Create a builder for this client.
public void setRegion(Region region)
Migration
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)
Migration
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 CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request)
Migration
Cancels work request with the given ID.
cancelWorkRequest
in interface Migration
request
- The request object containing the details to sendpublic ChangeMigrationCompartmentResponse changeMigrationCompartment(ChangeMigrationCompartmentRequest request)
Migration
Moves a migration resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
changeMigrationCompartment
in interface Migration
request
- The request object containing the details to sendpublic ChangeMigrationPlanCompartmentResponse changeMigrationPlanCompartment(ChangeMigrationPlanCompartmentRequest request)
Migration
Moves a resource into a different compartment. When provided, If-Match is checked against ETag values of the resource.
changeMigrationPlanCompartment
in interface Migration
request
- The request object containing the details to sendpublic ChangeReplicationScheduleCompartmentResponse changeReplicationScheduleCompartment(ChangeReplicationScheduleCompartmentRequest request)
Migration
Moves a resource into a different compartment. When provided, If-Match is checked against ETag values of the resource.
changeReplicationScheduleCompartment
in interface Migration
request
- The request object containing the details to sendpublic CreateMigrationResponse createMigration(CreateMigrationRequest request)
Migration
Creates a migration.
createMigration
in interface Migration
request
- The request object containing the details to sendpublic CreateMigrationAssetResponse createMigrationAsset(CreateMigrationAssetRequest request)
Migration
Creates a migration asset.
createMigrationAsset
in interface Migration
request
- The request object containing the details to sendpublic CreateMigrationPlanResponse createMigrationPlan(CreateMigrationPlanRequest request)
Migration
Creates a migration plan.
createMigrationPlan
in interface Migration
request
- The request object containing the details to sendpublic CreateReplicationScheduleResponse createReplicationSchedule(CreateReplicationScheduleRequest request)
Migration
Creates a replication schedule.
createReplicationSchedule
in interface Migration
request
- The request object containing the details to sendpublic CreateTargetAssetResponse createTargetAsset(CreateTargetAssetRequest request)
Migration
Creates a target asset.
createTargetAsset
in interface Migration
request
- The request object containing the details to sendpublic DeleteMigrationResponse deleteMigration(DeleteMigrationRequest request)
Migration
Deletes a migration resource by identifier.
deleteMigration
in interface Migration
request
- The request object containing the details to sendpublic DeleteMigrationAssetResponse deleteMigrationAsset(DeleteMigrationAssetRequest request)
Migration
Deletes a migration asset resource by an identifier.
deleteMigrationAsset
in interface Migration
request
- The request object containing the details to sendpublic DeleteMigrationPlanResponse deleteMigrationPlan(DeleteMigrationPlanRequest request)
Migration
Deletes a migration plan resource by an identifier.
deleteMigrationPlan
in interface Migration
request
- The request object containing the details to sendpublic DeleteReplicationScheduleResponse deleteReplicationSchedule(DeleteReplicationScheduleRequest request)
Migration
Deletes a replication schedule resource by identifier.
deleteReplicationSchedule
in interface Migration
request
- The request object containing the details to sendpublic DeleteTargetAssetResponse deleteTargetAsset(DeleteTargetAssetRequest request)
Migration
Deletes a target asset resource by identifier.
deleteTargetAsset
in interface Migration
request
- The request object containing the details to sendpublic ExecuteMigrationPlanResponse executeMigrationPlan(ExecuteMigrationPlanRequest request)
Migration
Executes the migration plan with the migration plan ID.
executeMigrationPlan
in interface Migration
request
- The request object containing the details to sendpublic ExportMigrationPlanResponse exportMigrationPlan(ExportMigrationPlanRequest request)
Migration
Exports the migration plan to a csv file.
exportMigrationPlan
in interface Migration
request
- The request object containing the details to sendpublic GetMigrationResponse getMigration(GetMigrationRequest request)
Migration
Gets a migration by identifier.
getMigration
in interface Migration
request
- The request object containing the details to sendpublic GetMigrationAssetResponse getMigrationAsset(GetMigrationAssetRequest request)
Migration
Gets a migration asset by identifier.
getMigrationAsset
in interface Migration
request
- The request object containing the details to sendpublic GetMigrationPlanResponse getMigrationPlan(GetMigrationPlanRequest request)
Migration
Gets a migration plan by identifier.
getMigrationPlan
in interface Migration
request
- The request object containing the details to sendpublic GetReplicationProgressResponse getReplicationProgress(GetReplicationProgressRequest request)
Migration
Gets the progress percentage of a migration asset’s replication process.
getReplicationProgress
in interface Migration
request
- The request object containing the details to sendpublic GetReplicationScheduleResponse getReplicationSchedule(GetReplicationScheduleRequest request)
Migration
Gets a replication schedule by identifier.
getReplicationSchedule
in interface Migration
request
- The request object containing the details to sendpublic GetTargetAssetResponse getTargetAsset(GetTargetAssetRequest request)
Migration
Gets a target asset by identifier.
getTargetAsset
in interface Migration
request
- The request object containing the details to sendpublic GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
Migration
Gets the status of the work request with the given ID.
getWorkRequest
in interface Migration
request
- The request object containing the details to sendpublic ImportMigrationPlanResponse importMigrationPlan(ImportMigrationPlanRequest request)
Migration
Imports a migration plan from a csv file.
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.
importMigrationPlan
in interface Migration
request
- The request object containing the details to sendpublic ListAvailableShapesResponse listAvailableShapes(ListAvailableShapesRequest request)
Migration
List of shapes by parameters.
listAvailableShapes
in interface Migration
request
- The request object containing the details to sendpublic ListMigrationAssetsResponse listMigrationAssets(ListMigrationAssetsRequest request)
Migration
Returns a list of migration assets.
listMigrationAssets
in interface Migration
request
- The request object containing the details to sendpublic ListMigrationPlansResponse listMigrationPlans(ListMigrationPlansRequest request)
Migration
Returns a list of migration plans.
listMigrationPlans
in interface Migration
request
- The request object containing the details to sendpublic ListMigrationsResponse listMigrations(ListMigrationsRequest request)
Migration
Returns a list of migrations.
listMigrations
in interface Migration
request
- The request object containing the details to sendpublic ListReplicationSchedulesResponse listReplicationSchedules(ListReplicationSchedulesRequest request)
Migration
Returns a list of replication schedules.
listReplicationSchedules
in interface Migration
request
- The request object containing the details to sendpublic ListTargetAssetsResponse listTargetAssets(ListTargetAssetsRequest request)
Migration
Returns a list of target assets.
listTargetAssets
in interface Migration
request
- The request object containing the details to sendpublic ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
Migration
Returns a paginated list of errors for a given work request.
listWorkRequestErrors
in interface Migration
request
- The request object containing the details to sendpublic ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
Migration
Returns a paginated list of logs for a given work request.
listWorkRequestLogs
in interface Migration
request
- The request object containing the details to sendpublic ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
Migration
List of work requests in a compartment.
listWorkRequests
in interface Migration
request
- The request object containing the details to sendpublic RefreshMigrationResponse refreshMigration(RefreshMigrationRequest request)
Migration
Refreshes migration based on the migration ID.
refreshMigration
in interface Migration
request
- The request object containing the details to sendpublic RefreshMigrationAssetResponse refreshMigrationAsset(RefreshMigrationAssetRequest request)
Migration
Refreshes the migration asset with the migration asset ID.
refreshMigrationAsset
in interface Migration
request
- The request object containing the details to sendpublic RefreshMigrationPlanResponse refreshMigrationPlan(RefreshMigrationPlanRequest request)
Migration
Refreshes the migration plan with the migration plan ID.
refreshMigrationPlan
in interface Migration
request
- The request object containing the details to sendpublic StartAssetReplicationResponse startAssetReplication(StartAssetReplicationRequest request)
Migration
Starts replication for the asset with the migration asset ID.
startAssetReplication
in interface Migration
request
- The request object containing the details to sendpublic StartMigrationReplicationResponse startMigrationReplication(StartMigrationReplicationRequest request)
Migration
Starts replication for a migration or for some asset.
startMigrationReplication
in interface Migration
request
- The request object containing the details to sendpublic UpdateMigrationResponse updateMigration(UpdateMigrationRequest request)
Migration
Updates the migration.
updateMigration
in interface Migration
request
- The request object containing the details to sendpublic UpdateMigrationAssetResponse updateMigrationAsset(UpdateMigrationAssetRequest request)
Migration
Updates the migration asset.
updateMigrationAsset
in interface Migration
request
- The request object containing the details to sendpublic UpdateMigrationPlanResponse updateMigrationPlan(UpdateMigrationPlanRequest request)
Migration
Updates the migration plan.
updateMigrationPlan
in interface Migration
request
- The request object containing the details to sendpublic UpdateReplicationScheduleResponse updateReplicationSchedule(UpdateReplicationScheduleRequest request)
Migration
Updates the replication schedule.
updateReplicationSchedule
in interface Migration
request
- The request object containing the details to sendpublic UpdateTargetAssetResponse updateTargetAsset(UpdateTargetAssetRequest request)
Migration
Updates the target asset.
updateTargetAsset
in interface Migration
request
- The request object containing the details to sendpublic MigrationWaiters getWaiters()
Migration
Gets the pre-configured waiters available for resources for this service.
getWaiters
in interface Migration
public MigrationPaginators getPaginators()
Migration
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 Migration
protected ClientConfigurator getDefaultConfigurator()
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
useOfRealmSpecificEndpointTemplateEnabled
- This flag can be set to true or false to
enable or disable the use of realm-specific endpoint template respectivelypublic final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
endpoint
- The endpoint template in userequiredParametersMap
- Map of parameter name as key and value set in request path or
query parameter as valuepublic final void updateBaseEndpoint(String endpoint)
endpoint
- The updated endpoint to usepublic final void setEndpoint(String endpoint)
public final String getEndpoint()
public final void refreshClient()
HttpClient
. This will call ClientConfigurator
s again, and
can be used to e.g. refresh the SSL certificate.public final void close()
close
in interface AutoCloseable
public String getClientCommonLibraryVersion()
Copyright © 2016–2024. All rights reserved.