ProjectsLocationsMigrationJobs
class ProjectsLocationsMigrationJobs extends Resource (View source)
The "migrationJobs" collection of methods.
Typical usage is:
$datamigrationService = new Google\Service\DatabaseMigrationService(...);
$migrationJobs = $datamigrationService->projects_locations_migrationJobs;
Methods
Creates a new migration job in a given project and location.
Deletes a single migration job. (migrationJobs.delete)
Demotes the destination database to become a read replica of the source. This is applicable for the following migrations: 1. MySQL to Cloud SQL for MySQL
- PostgreSQL to Cloud SQL for PostgreSQL 3. PostgreSQL to AlloyDB for PostgreSQL. (migrationJobs.demoteDestination)
Generate a SSH configuration script to configure the reverse SSH connectivity. (migrationJobs.generateSshScript)
Generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy. (migrationJobs.generateTcpProxyScript)
Gets details of a single migration job. (migrationJobs.get)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (migrationJobs.getIamPolicy)
Lists migration jobs in a given project and location.
Updates the parameters of a single migration job. (migrationJobs.patch)
Promote a migration job, stopping replication to the destination and promoting the destination to be a standalone database.
Restart a stopped or failed migration job, resetting the destination instance to its original state and starting the migration process from scratch.
Resume a migration job that is currently stopped and is resumable (was stopped during CDC phase). (migrationJobs.resume)
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (migrationJobs.setIamPolicy)
Start an already created migration job. (migrationJobs.start)
Stops a running migration job. (migrationJobs.stop)
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
Verify a migration job, making sure the destination can reach the source and that all configuration and prerequisites are met. (migrationJobs.verify)
Details
Operation
create(string $parent, MigrationJob $postBody, array $optParams = [])
Creates a new migration job in a given project and location.
(migrationJobs.create)
Operation
delete(string $name, array $optParams = [])
Deletes a single migration job. (migrationJobs.delete)
Operation
demoteDestination(string $name, DemoteDestinationRequest $postBody, array $optParams = [])
Demotes the destination database to become a read replica of the source. This is applicable for the following migrations: 1. MySQL to Cloud SQL for MySQL
- PostgreSQL to Cloud SQL for PostgreSQL 3. PostgreSQL to AlloyDB for PostgreSQL. (migrationJobs.demoteDestination)
SshScript
generateSshScript(string $migrationJob, GenerateSshScriptRequest $postBody, array $optParams = [])
Generate a SSH configuration script to configure the reverse SSH connectivity. (migrationJobs.generateSshScript)
TcpProxyScript
generateTcpProxyScript(string $migrationJob, GenerateTcpProxyScriptRequest $postBody, array $optParams = [])
Generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy. (migrationJobs.generateTcpProxyScript)
MigrationJob
get(string $name, array $optParams = [])
Gets details of a single migration job. (migrationJobs.get)
Policy
getIamPolicy(string $resource, array $optParams = [])
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (migrationJobs.getIamPolicy)
ListMigrationJobsResponse
listProjectsLocationsMigrationJobs(string $parent, array $optParams = [])
Lists migration jobs in a given project and location.
(migrationJobs.listProjectsLocationsMigrationJobs)
Operation
patch(string $name, MigrationJob $postBody, array $optParams = [])
Updates the parameters of a single migration job. (migrationJobs.patch)
Operation
promote(string $name, PromoteMigrationJobRequest $postBody, array $optParams = [])
Promote a migration job, stopping replication to the destination and promoting the destination to be a standalone database.
(migrationJobs.promote)
Operation
restart(string $name, RestartMigrationJobRequest $postBody, array $optParams = [])
Restart a stopped or failed migration job, resetting the destination instance to its original state and starting the migration process from scratch.
(migrationJobs.restart)
Operation
resume(string $name, ResumeMigrationJobRequest $postBody, array $optParams = [])
Resume a migration job that is currently stopped and is resumable (was stopped during CDC phase). (migrationJobs.resume)
Policy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (migrationJobs.setIamPolicy)
Operation
start(string $name, StartMigrationJobRequest $postBody, array $optParams = [])
Start an already created migration job. (migrationJobs.start)
Operation
stop(string $name, StopMigrationJobRequest $postBody, array $optParams = [])
Stops a running migration job. (migrationJobs.stop)
TestIamPermissionsResponse
testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning. (migrationJobs.testIamPermissions)
Operation
verify(string $name, VerifyMigrationJobRequest $postBody, array $optParams = [])
Verify a migration job, making sure the destination can reach the source and that all configuration and prerequisites are met. (migrationJobs.verify)