Class CloneContext (0.1.1)

CloneContext(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Attributes

Name Description
kind str
This is always sql#cloneContext.
pitr_timestamp_ms int
Reserved for future use.
destination_instance_name str
Required. Name of the Cloud SQL instance to be created as a clone.
bin_log_coordinates google.cloud.sqladmin_v1.types.BinLogCoordinates
Binary log coordinates, if specified, identify the position up to which the source instance is cloned. If not specified, the source instance is cloned up to the most recent binary log coordinates.
point_in_time google.protobuf.timestamp_pb2.Timestamp
Timestamp, if specified, identifies the time to which the source instance is cloned.
allocated_ip_range str
The name of the allocated ip range for the private ip Cloud SQL instance. For example: "google-managed-services-default". If set, the cloned instance ip will be created in the allocated range. The range name must comply with `RFC 1035
database_names MutableSequence[str]
(SQL Server only) Clone only the specified databases from the source instance. Clone all databases if empty.
preferred_zone str
Optional. Copy clone and point-in-time recovery clone of an instance to the specified zone. If no zone is specified, clone to the same primary zone as the source instance. This field applies to all DB types. This field is a member of oneof_ _preferred_zone.
preferred_secondary_zone str
Optional. Copy clone and point-in-time recovery clone of a regional instance in the specified zones. If not specified, clone to the same secondary zone as the source instance. This value cannot be the same as the preferred_zone field. This field applies to all DB types. This field is a member of oneof_ _preferred_secondary_zone.
source_instance_deletion_time google.protobuf.timestamp_pb2.Timestamp
The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp. This field is a member of oneof_ _source_instance_deletion_time.
destination_project str
Optional. The project ID of the destination project where the cloned instance will be created. To perform a cross-project clone, this field is required. If not specified, the clone is created in the same project as the source instance. This field is a member of oneof_ _destination_project.
destination_network str
Optional. The fully qualified URI of the VPC network to which the cloned instance will be connected via private services access for private IP. For example:projects/my-network-project/global/networks/my-network. This field is only required for cross-project cloning. This field is a member of oneof_ _destination_network.