@Generated(value="OracleSDKGenerator", comments="API Version: 20220919") public interface MigrationAsync extends AutoCloseable
A description of the Oracle Cloud Migrations API.
close
void refreshClient()
Rebuilds the client from scratch. Useful to refresh certificates.
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the serice.String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
void setRegion(Region region)
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.
region
- The region of the service.void setRegion(String regionId)
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
.
regionId
- The public region ID.void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)
Determines whether realm specific endpoint should be used or not. Set realmSpecificEndpointTemplateEnabled to “true” if the user wants to enable use of realm specific endpoint template, otherwise set it to “false”
realmSpecificEndpointTemplateEnabled
- flag to enable the use of realm specific endpoint
templateFuture<CancelWorkRequestResponse> cancelWorkRequest(CancelWorkRequestRequest request, AsyncHandler<CancelWorkRequestRequest,CancelWorkRequestResponse> handler)
Cancels work request with the given ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeMigrationCompartmentResponse> changeMigrationCompartment(ChangeMigrationCompartmentRequest request, AsyncHandler<ChangeMigrationCompartmentRequest,ChangeMigrationCompartmentResponse> handler)
Moves a migration resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeMigrationPlanCompartmentResponse> changeMigrationPlanCompartment(ChangeMigrationPlanCompartmentRequest request, AsyncHandler<ChangeMigrationPlanCompartmentRequest,ChangeMigrationPlanCompartmentResponse> handler)
Moves a resource into a different compartment. When provided, If-Match is checked against ETag values of the resource.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeReplicationScheduleCompartmentResponse> changeReplicationScheduleCompartment(ChangeReplicationScheduleCompartmentRequest request, AsyncHandler<ChangeReplicationScheduleCompartmentRequest,ChangeReplicationScheduleCompartmentResponse> handler)
Moves a resource into a different compartment. When provided, If-Match is checked against ETag values of the resource.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateMigrationResponse> createMigration(CreateMigrationRequest request, AsyncHandler<CreateMigrationRequest,CreateMigrationResponse> handler)
Creates a migration.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateMigrationAssetResponse> createMigrationAsset(CreateMigrationAssetRequest request, AsyncHandler<CreateMigrationAssetRequest,CreateMigrationAssetResponse> handler)
Creates a migration asset.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateMigrationPlanResponse> createMigrationPlan(CreateMigrationPlanRequest request, AsyncHandler<CreateMigrationPlanRequest,CreateMigrationPlanResponse> handler)
Creates a migration plan.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateReplicationScheduleResponse> createReplicationSchedule(CreateReplicationScheduleRequest request, AsyncHandler<CreateReplicationScheduleRequest,CreateReplicationScheduleResponse> handler)
Creates a replication schedule.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateTargetAssetResponse> createTargetAsset(CreateTargetAssetRequest request, AsyncHandler<CreateTargetAssetRequest,CreateTargetAssetResponse> handler)
Creates a target asset.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteMigrationResponse> deleteMigration(DeleteMigrationRequest request, AsyncHandler<DeleteMigrationRequest,DeleteMigrationResponse> handler)
Deletes a migration resource by identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteMigrationAssetResponse> deleteMigrationAsset(DeleteMigrationAssetRequest request, AsyncHandler<DeleteMigrationAssetRequest,DeleteMigrationAssetResponse> handler)
Deletes a migration asset resource by an identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteMigrationPlanResponse> deleteMigrationPlan(DeleteMigrationPlanRequest request, AsyncHandler<DeleteMigrationPlanRequest,DeleteMigrationPlanResponse> handler)
Deletes a migration plan resource by an identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteReplicationScheduleResponse> deleteReplicationSchedule(DeleteReplicationScheduleRequest request, AsyncHandler<DeleteReplicationScheduleRequest,DeleteReplicationScheduleResponse> handler)
Deletes a replication schedule resource by identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteTargetAssetResponse> deleteTargetAsset(DeleteTargetAssetRequest request, AsyncHandler<DeleteTargetAssetRequest,DeleteTargetAssetResponse> handler)
Deletes a target asset resource by identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ExecuteMigrationPlanResponse> executeMigrationPlan(ExecuteMigrationPlanRequest request, AsyncHandler<ExecuteMigrationPlanRequest,ExecuteMigrationPlanResponse> handler)
Executes the migration plan with the migration plan ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ExportMigrationPlanResponse> exportMigrationPlan(ExportMigrationPlanRequest request, AsyncHandler<ExportMigrationPlanRequest,ExportMigrationPlanResponse> handler)
Exports the migration plan to a csv file.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetMigrationResponse> getMigration(GetMigrationRequest request, AsyncHandler<GetMigrationRequest,GetMigrationResponse> handler)
Gets a migration by identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetMigrationAssetResponse> getMigrationAsset(GetMigrationAssetRequest request, AsyncHandler<GetMigrationAssetRequest,GetMigrationAssetResponse> handler)
Gets a migration asset by identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetMigrationPlanResponse> getMigrationPlan(GetMigrationPlanRequest request, AsyncHandler<GetMigrationPlanRequest,GetMigrationPlanResponse> handler)
Gets a migration plan by identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetReplicationProgressResponse> getReplicationProgress(GetReplicationProgressRequest request, AsyncHandler<GetReplicationProgressRequest,GetReplicationProgressResponse> handler)
Gets the progress percentage of a migration asset’s replication process.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetReplicationScheduleResponse> getReplicationSchedule(GetReplicationScheduleRequest request, AsyncHandler<GetReplicationScheduleRequest,GetReplicationScheduleResponse> handler)
Gets a replication schedule by identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetTargetAssetResponse> getTargetAsset(GetTargetAssetRequest request, AsyncHandler<GetTargetAssetRequest,GetTargetAssetResponse> handler)
Gets a target asset by identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
Gets the status of the work request with the given ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ImportMigrationPlanResponse> importMigrationPlan(ImportMigrationPlanRequest request, AsyncHandler<ImportMigrationPlanRequest,ImportMigrationPlanResponse> handler)
Imports a migration plan from a csv file.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListAvailableShapesResponse> listAvailableShapes(ListAvailableShapesRequest request, AsyncHandler<ListAvailableShapesRequest,ListAvailableShapesResponse> handler)
List of shapes by parameters.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListMigrationAssetsResponse> listMigrationAssets(ListMigrationAssetsRequest request, AsyncHandler<ListMigrationAssetsRequest,ListMigrationAssetsResponse> handler)
Returns a list of migration assets.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListMigrationPlansResponse> listMigrationPlans(ListMigrationPlansRequest request, AsyncHandler<ListMigrationPlansRequest,ListMigrationPlansResponse> handler)
Returns a list of migration plans.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListMigrationsResponse> listMigrations(ListMigrationsRequest request, AsyncHandler<ListMigrationsRequest,ListMigrationsResponse> handler)
Returns a list of migrations.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListReplicationSchedulesResponse> listReplicationSchedules(ListReplicationSchedulesRequest request, AsyncHandler<ListReplicationSchedulesRequest,ListReplicationSchedulesResponse> handler)
Returns a list of replication schedules.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListTargetAssetsResponse> listTargetAssets(ListTargetAssetsRequest request, AsyncHandler<ListTargetAssetsRequest,ListTargetAssetsResponse> handler)
Returns a list of target assets.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
Returns a paginated list of errors for a given work request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
Returns a paginated list of logs for a given work request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
List of work requests in a compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<RefreshMigrationResponse> refreshMigration(RefreshMigrationRequest request, AsyncHandler<RefreshMigrationRequest,RefreshMigrationResponse> handler)
Refreshes migration based on the migration ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<RefreshMigrationAssetResponse> refreshMigrationAsset(RefreshMigrationAssetRequest request, AsyncHandler<RefreshMigrationAssetRequest,RefreshMigrationAssetResponse> handler)
Refreshes the migration asset with the migration asset ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<RefreshMigrationPlanResponse> refreshMigrationPlan(RefreshMigrationPlanRequest request, AsyncHandler<RefreshMigrationPlanRequest,RefreshMigrationPlanResponse> handler)
Refreshes the migration plan with the migration plan ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<StartAssetReplicationResponse> startAssetReplication(StartAssetReplicationRequest request, AsyncHandler<StartAssetReplicationRequest,StartAssetReplicationResponse> handler)
Starts replication for the asset with the migration asset ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<StartMigrationReplicationResponse> startMigrationReplication(StartMigrationReplicationRequest request, AsyncHandler<StartMigrationReplicationRequest,StartMigrationReplicationResponse> handler)
Starts replication for a migration or for some asset.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateMigrationResponse> updateMigration(UpdateMigrationRequest request, AsyncHandler<UpdateMigrationRequest,UpdateMigrationResponse> handler)
Updates the migration.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateMigrationAssetResponse> updateMigrationAsset(UpdateMigrationAssetRequest request, AsyncHandler<UpdateMigrationAssetRequest,UpdateMigrationAssetResponse> handler)
Updates the migration asset.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateMigrationPlanResponse> updateMigrationPlan(UpdateMigrationPlanRequest request, AsyncHandler<UpdateMigrationPlanRequest,UpdateMigrationPlanResponse> handler)
Updates the migration plan.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateReplicationScheduleResponse> updateReplicationSchedule(UpdateReplicationScheduleRequest request, AsyncHandler<UpdateReplicationScheduleRequest,UpdateReplicationScheduleResponse> handler)
Updates the replication schedule.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateTargetAssetResponse> updateTargetAsset(UpdateTargetAssetRequest request, AsyncHandler<UpdateTargetAssetRequest,UpdateTargetAssetResponse> handler)
Updates the target asset.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2024. All rights reserved.