Google Cloud Sql Admin V1 Client - Class CloneContext (0.7.0)

Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class CloneContext.

Database instance clone context.

Generated from protobuf message google.cloud.sql.v1.CloneContext

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ kind string

This is always sql#cloneContext.

↳ pitr_timestamp_ms int|string

Reserved for future use.

↳ destination_instance_name string

Name of the Cloud SQL instance to be created as a clone.

↳ bin_log_coordinates Google\Cloud\Sql\V1\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

Timestamp, if specified, identifies the time to which the source instance is cloned.

↳ allocated_ip_range string

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. Specifically, the name must be 1-63 characters long and match the regular expression a-z?. Reserved for future use.

↳ database_names array

(SQL Server only) Clone only the specified databases from the source instance. Clone all databases if empty.

↳ preferred_zone string

Optional. (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.

getKind

This is always sql#cloneContext.

Returns
TypeDescription
string

setKind

This is always sql#cloneContext.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPitrTimestampMs

Reserved for future use.

Returns
TypeDescription
int|string

setPitrTimestampMs

Reserved for future use.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getDestinationInstanceName

Name of the Cloud SQL instance to be created as a clone.

Returns
TypeDescription
string

setDestinationInstanceName

Name of the Cloud SQL instance to be created as a clone.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBinLogCoordinates

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.

Returns
TypeDescription
Google\Cloud\Sql\V1\BinLogCoordinates|null

hasBinLogCoordinates

clearBinLogCoordinates

setBinLogCoordinates

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.

Parameter
NameDescription
var Google\Cloud\Sql\V1\BinLogCoordinates
Returns
TypeDescription
$this

getPointInTime

Timestamp, if specified, identifies the time to which the source instance is cloned.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasPointInTime

clearPointInTime

setPointInTime

Timestamp, if specified, identifies the time to which the source instance is cloned.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getAllocatedIpRange

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. Specifically, the name must be 1-63 characters long and match the regular expression a-z?. Reserved for future use.

Returns
TypeDescription
string

setAllocatedIpRange

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. Specifically, the name must be 1-63 characters long and match the regular expression a-z?. Reserved for future use.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDatabaseNames

(SQL Server only) Clone only the specified databases from the source instance. Clone all databases if empty.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDatabaseNames

(SQL Server only) Clone only the specified databases from the source instance. Clone all databases if empty.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getPreferredZone

Optional. (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.

Returns
TypeDescription
string

hasPreferredZone

clearPreferredZone

setPreferredZone

Optional. (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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this