dataMigration
import { dataMigration } from "https://googleapis.deno.dev/v1/datamigration:v1.ts";
Manage Cloud Database Migration Service resources on Google Cloud Platform.
§Properties
Fetches a set of static IP addresses that need to be allowlisted by the customer when using the static-IP connectivity method.
§Methods
Creates a new connection profile in a given project and location.
Required. The parent which owns this collection of connection profiles.
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.
Required. Name of the connection profile resource to delete.
Gets details of a single connection profile.
Required. Name of the connection profile resource to get.
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Retrieves a list of all connection profiles in a given project and location.
Required. The parent which owns this collection of connection profiles.
Update the configuration of a single connection profile.
The name of this connection profile resource in the form of projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
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.
REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Applies draft tree onto a specific destination database.
Required. The name of the conversion workspace resource for which to apply the draft tree. Must be in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Marks all the data in the conversion workspace as committed.
Required. Name of the conversion workspace resource to commit.
Creates a draft tree schema for the destination database.
Name of the conversion workspace resource to convert in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Creates a new conversion workspace in a given project and location.
Required. The parent which owns this collection of conversion workspaces.
Deletes a single conversion workspace.
Required. Name of the conversion workspace resource to delete.
Retrieves a list of committed revisions of a specific conversion workspace.
Required. Name of the conversion workspace resource whose revisions are listed. Must be in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Describes the database entities tree for a specific conversion workspace and a specific tree type. Database entities are not resources like conversion workspaces or mapping rules, and they can't be created, updated or deleted. Instead, they are simple data objects describing the structure of the client database.
Required. Name of the conversion workspace resource whose database entities are described. Must be in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Gets details of a single conversion workspace.
Required. Name of the conversion workspace resource to get.
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Lists conversion workspaces in a given project and location.
Required. The parent which owns this collection of conversion workspaces.
Creates a new mapping rule for a given conversion workspace.
Required. The parent which owns this collection of mapping rules.
Deletes a single mapping rule.
Required. Name of the mapping rule resource to delete.
Gets the details of a mapping rule.
Required. Name of the mapping rule resource to get. Example: conversionWorkspaces/123/mappingRules/rule123 In order to retrieve a previous revision of the mapping rule, also provide the revision ID. Example: conversionWorkspace/123/mappingRules/rule123@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8
Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files.
Required. Name of the conversion workspace resource to import the rules to in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Lists the mapping rules for a specific conversion workspace.
Required. Name of the conversion workspace resource whose mapping rules are listed in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Updates the parameters of a single conversion workspace.
Full name of the workspace resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Rolls back a conversion workspace to the last committed snapshot.
Required. Name of the conversion workspace resource to roll back to.
Searches/lists the background jobs for a specific conversion workspace. The background jobs are not resources like conversion workspaces or mapping rules, and they can't be created, updated or deleted. Instead, they are a way to expose the data plane jobs log.
Required. Name of the conversion workspace resource whose jobs are listed, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Imports a snapshot of the source database into the conversion workspace.
Name of the conversion workspace resource to seed with new database structure, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
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.
REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Lists information about the supported locations for this service.
The resource that owns the locations collection, if applicable.
Creates a new migration job in a given project and location.
Required. The parent which owns this collection of migration jobs.
Deletes a single migration job.
Required. Name of the migration job resource to 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 2. PostgreSQL to Cloud SQL for PostgreSQL 3. PostgreSQL to AlloyDB for PostgreSQL.
Name of the migration job resource to demote its destination.
Generate a SSH configuration script to configure the reverse SSH connectivity.
Name of the migration job resource to generate the SSH script.
Generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy.
Name of the migration job resource to generate the TCP Proxy script.
Gets details of a single migration job.
Required. Name of the migration job resource to get.
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Lists migration jobs in a given project and location.
Required. The parent which owns this collection of migrationJobs.
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
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.
REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Updates the parameters of a single migration job.
The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
Promote a migration job, stopping replication to the destination and promoting the destination to be a standalone database.
Name of the migration job resource to promote.
Restart a stopped or failed migration job, resetting the destination instance to its original state and starting the migration process from scratch.
Name of the migration job resource to restart.
Resume a migration job that is currently stopped and is resumable (was stopped during CDC phase).
Name of the migration job resource to resume.
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Start an already created migration job.
Name of the migration job resource to start.
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.
REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Verify a migration job, making sure the destination can reach the source and that all configuration and prerequisites are met.
Name of the migration job resource to verify.
Starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not guaranteed.
If the server doesn't support this method, it returns
google.rpc.Code.UNIMPLEMENTED
. Clients can use Operations.GetOperation or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation, the
operation is not deleted; instead, it becomes an operation with an
Operation.error value with a google.rpc.Status.code of 1, corresponding to
Code.CANCELLED
.
The name of the operation resource to be cancelled.
Deletes a long-running operation. This method indicates that the client is
no longer interested in the operation result. It does not cancel the
operation. If the server doesn't support this method, it returns
google.rpc.Code.UNIMPLEMENTED
.
The name of the operation resource to be deleted.
Lists operations that match the specified filter in the request. If the
server doesn't support this method, it returns UNIMPLEMENTED
.
The name of the operation's parent resource.
Creates a new private connection in a given project and location.
Required. The parent that owns the collection of PrivateConnections.
Deletes a single Database Migration Service private connection.
Required. The name of the private connection to delete.
Gets details of a single private connection.
Required. The name of the private connection to get.
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Retrieves a list of private connections in a given project and location.
Required. The parent that owns the collection of private connections.
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
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.
REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.