DatabaseInstanceClone constructor
Creates a new DatabaseInstanceClone.
allocatedIpRange The name of the allocated ip range for the private ip CloudSQL 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. Specifically, the name must be 1-63 characters long and match the regular expression a-z?.
databaseNames (SQL Server only, use with pointInTime) Clone only the specified databases from the source instance. Clone all databases if empty.
pointInTime The timestamp of the point in time that should be restored.
preferredZone (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance. clone-unavailable-instance
sourceInstanceDeletionTime The timestamp of when the source instance was deleted for a clone from a deleted instance.
sourceInstanceName Name of the source instance which will be cloned.
sourceProject Id of source project where source instances exits, required for cross project clone scenario.
Implementation
const DatabaseInstanceClone({
this.allocatedIpRange,
this.databaseNames,
this.pointInTime,
this.preferredZone,
this.sourceInstanceDeletionTime,
required this.sourceInstanceName,
this.sourceProject,
});