Database Migration service.
Equality
Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection>
objects compare equal. Objects that compare equal share the same underlying resources.
Performance
Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.
Thread Safety
Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.
Constructors
DataMigrationServiceClient(DataMigrationServiceClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
DataMigrationServiceClient const &
|
DataMigrationServiceClient(DataMigrationServiceClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
DataMigrationServiceClient &&
|
DataMigrationServiceClient(std::shared_ptr< DataMigrationServiceConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< DataMigrationServiceConnection >
|
opts |
Options
|
Operators
operator=(DataMigrationServiceClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
DataMigrationServiceClient const &
|
Returns | |
---|---|
Type | Description |
DataMigrationServiceClient & |
operator=(DataMigrationServiceClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
DataMigrationServiceClient &&
|
Returns | |
---|---|
Type | Description |
DataMigrationServiceClient & |
Functions
ListMigrationJobs(std::string const &, Options)
Lists migration jobs in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent which owns this collection of migrationJobs. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::clouddms::v1::MigrationJob > | a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListMigrationJobs(google::cloud::clouddms::v1::ListMigrationJobsRequest, Options)
Lists migration jobs in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::ListMigrationJobsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::clouddms::v1::MigrationJob > | a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetMigrationJob(std::string const &, Options)
Gets details of a single migration job.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Name of the migration job resource to get. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::clouddms::v1::MigrationJob > | the result of the RPC. The response message type (google.cloud.clouddms.v1.MigrationJob) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetMigrationJob(google::cloud::clouddms::v1::GetMigrationJobRequest const &, Options)
Gets details of a single migration job.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::GetMigrationJobRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::clouddms::v1::MigrationJob > | the result of the RPC. The response message type (google.cloud.clouddms.v1.MigrationJob) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateMigrationJob(std::string const &, google::cloud::clouddms::v1::MigrationJob const &, std::string const &, Options)
Creates a new migration job in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent which owns this collection of migration jobs. |
migration_job |
google::cloud::clouddms::v1::MigrationJob const &
Required. Represents a migration job object. |
migration_job_id |
std::string const &
Required. The ID of the instance to create. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::MigrationJob > > | A |
CreateMigrationJob(google::cloud::clouddms::v1::CreateMigrationJobRequest const &, Options)
Creates a new migration job in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::CreateMigrationJobRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::MigrationJob > > | A |
UpdateMigrationJob(google::cloud::clouddms::v1::MigrationJob const &, google::protobuf::FieldMask const &, Options)
Updates the parameters of a single migration job.
Parameters | |
---|---|
Name | Description |
migration_job |
google::cloud::clouddms::v1::MigrationJob const &
Required. The migration job parameters to update. |
update_mask |
google::protobuf::FieldMask const &
Required. Field mask is used to specify the fields to be overwritten by the update in the conversion workspace resource. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::MigrationJob > > | A |
UpdateMigrationJob(google::cloud::clouddms::v1::UpdateMigrationJobRequest const &, Options)
Updates the parameters of a single migration job.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::UpdateMigrationJobRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::MigrationJob > > | A |
DeleteMigrationJob(std::string const &, Options)
Deletes a single migration job.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Name of the migration job resource to delete. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::OperationMetadata > > | A |
DeleteMigrationJob(google::cloud::clouddms::v1::DeleteMigrationJobRequest const &, Options)
Deletes a single migration job.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::DeleteMigrationJobRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::OperationMetadata > > | A |
StartMigrationJob(google::cloud::clouddms::v1::StartMigrationJobRequest const &, Options)
Start an already created migration job.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::StartMigrationJobRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::MigrationJob > > | A |
StopMigrationJob(google::cloud::clouddms::v1::StopMigrationJobRequest const &, Options)
Stops a running migration job.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::StopMigrationJobRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::MigrationJob > > | A |
ResumeMigrationJob(google::cloud::clouddms::v1::ResumeMigrationJobRequest const &, Options)
Resume a migration job that is currently stopped and is resumable (was stopped during CDC phase).
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::ResumeMigrationJobRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::MigrationJob > > | A |
PromoteMigrationJob(google::cloud::clouddms::v1::PromoteMigrationJobRequest const &, Options)
Promote a migration job, stopping replication to the destination and promoting the destination to be a standalone database.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::PromoteMigrationJobRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::MigrationJob > > | A |
VerifyMigrationJob(google::cloud::clouddms::v1::VerifyMigrationJobRequest const &, Options)
Verify a migration job, making sure the destination can reach the source and that all configuration and prerequisites are met.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::VerifyMigrationJobRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::MigrationJob > > | A |
RestartMigrationJob(google::cloud::clouddms::v1::RestartMigrationJobRequest const &, Options)
Restart a stopped or failed migration job, resetting the destination instance to its original state and starting the migration process from scratch.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::RestartMigrationJobRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::MigrationJob > > | A |
GenerateSshScript(google::cloud::clouddms::v1::GenerateSshScriptRequest const &, Options)
Generate a SSH configuration script to configure the reverse SSH connectivity.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::GenerateSshScriptRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::clouddms::v1::SshScript > | the result of the RPC. The response message type (google.cloud.clouddms.v1.SshScript) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GenerateTcpProxyScript(google::cloud::clouddms::v1::GenerateTcpProxyScriptRequest const &, Options)
Generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::GenerateTcpProxyScriptRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::clouddms::v1::TcpProxyScript > | the result of the RPC. The response message type (google.cloud.clouddms.v1.TcpProxyScript) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListConnectionProfiles(std::string const &, Options)
Retrieves a list of all connection profiles in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent which owns this collection of connection profiles. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::clouddms::v1::ConnectionProfile > | a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListConnectionProfiles(google::cloud::clouddms::v1::ListConnectionProfilesRequest, Options)
Retrieves a list of all connection profiles in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::ListConnectionProfilesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::clouddms::v1::ConnectionProfile > | a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetConnectionProfile(std::string const &, Options)
Gets details of a single connection profile.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Name of the connection profile resource to get. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::clouddms::v1::ConnectionProfile > | the result of the RPC. The response message type (google.cloud.clouddms.v1.ConnectionProfile) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetConnectionProfile(google::cloud::clouddms::v1::GetConnectionProfileRequest const &, Options)
Gets details of a single connection profile.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::GetConnectionProfileRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::clouddms::v1::ConnectionProfile > | the result of the RPC. The response message type (google.cloud.clouddms.v1.ConnectionProfile) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateConnectionProfile(std::string const &, google::cloud::clouddms::v1::ConnectionProfile const &, std::string const &, Options)
Creates a new connection profile in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent which owns this collection of connection profiles. |
connection_profile |
google::cloud::clouddms::v1::ConnectionProfile const &
Required. The create request body including the connection profile data |
connection_profile_id |
std::string const &
Required. The connection profile identifier. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::ConnectionProfile > > | A |
CreateConnectionProfile(google::cloud::clouddms::v1::CreateConnectionProfileRequest const &, Options)
Creates a new connection profile in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::CreateConnectionProfileRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::ConnectionProfile > > | A |
UpdateConnectionProfile(google::cloud::clouddms::v1::ConnectionProfile const &, google::protobuf::FieldMask const &, Options)
Update the configuration of a single connection profile.
Parameters | |
---|---|
Name | Description |
connection_profile |
google::cloud::clouddms::v1::ConnectionProfile const &
Required. The connection profile parameters to update. |
update_mask |
google::protobuf::FieldMask const &
Required. Field mask is used to specify the fields to be overwritten by the update in the conversion workspace resource. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::ConnectionProfile > > | A |
UpdateConnectionProfile(google::cloud::clouddms::v1::UpdateConnectionProfileRequest const &, Options)
Update the configuration of a single connection profile.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::UpdateConnectionProfileRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::ConnectionProfile > > | A |
DeleteConnectionProfile(std::string const &, Options)
Deletes a single Database Migration Service connection profile.
A connection profile can only be deleted if it is not in use by any active migration jobs.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Name of the connection profile resource to delete. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::OperationMetadata > > | A |
DeleteConnectionProfile(google::cloud::clouddms::v1::DeleteConnectionProfileRequest const &, Options)
Deletes a single Database Migration Service connection profile.
A connection profile can only be deleted if it is not in use by any active migration jobs.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::DeleteConnectionProfileRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::OperationMetadata > > | A |
CreatePrivateConnection(std::string const &, google::cloud::clouddms::v1::PrivateConnection const &, std::string const &, Options)
Creates a new private connection in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent that owns the collection of PrivateConnections. |
private_connection |
google::cloud::clouddms::v1::PrivateConnection const &
Required. The private connection resource to create. |
private_connection_id |
std::string const &
Required. The private connection identifier. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::PrivateConnection > > | A |
CreatePrivateConnection(google::cloud::clouddms::v1::CreatePrivateConnectionRequest const &, Options)
Creates a new private connection in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::CreatePrivateConnectionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::clouddms::v1::PrivateConnection > > | A |
GetPrivateConnection(std::string const &, Options)
Gets details of a single private connection.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the private connection to get. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::clouddms::v1::PrivateConnection > | the result of the RPC. The response message type (google.cloud.clouddms.v1.PrivateConnection) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetPrivateConnection(google::cloud::clouddms::v1::GetPrivateConnectionRequest const &, Options)
Gets details of a single private connection.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::GetPrivateConnectionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::clouddms::v1::PrivateConnection > | the result of the RPC. The response message type (google.cloud.clouddms.v1.PrivateConnection) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListPrivateConnections(std::string const &, Options)
Retrieves a list of private connections in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent that owns the collection of private connections. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::clouddms::v1::PrivateConnection > | a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListPrivateConnections(google::cloud::clouddms::v1::ListPrivateConnectionsRequest, Options)
Retrieves a list of private connections in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::clouddms::v1::ListPrivateConnectionsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
|