Google Cloud Sql Admin V1 Client - Class PointInTimeRestoreContext (1.6.0)

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

The context to perform a point-in-time recovery of an instance managed by Backup and Disaster Recovery (DR) Service.

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

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ datasource
string

The Backup and Disaster Recovery (DR) Service Datasource URI. Format: projects/{project}/locations/{region}/backupVaults/{backupvault}/dataSources/{datasource}.

↳ point_in_time
Google\Protobuf\Timestamp

Required. The date and time to which you want to restore the instance.

↳ target_instance
string

Target instance name.

↳ private_network
string

Optional. The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, /projects/myProject/global/networks/default .

↳ allocated_ip_range
string

Optional. The name of the allocated IP range for the internal IP Cloud SQL instance. For example: "google-managed-services-default". If you set this, then Cloud SQL creates the IP address for the cloned instance in the allocated range. This range must comply with RFC 1035 standards. Specifically, the name must be 1-63 characters long and match the regular expression a-z ?. Reserved for future use.

↳ preferred_zone
string

Optional. Point-in-time recovery of an instance to the specified zone. If no zone is specified, then clone to the same primary zone as the source instance.

↳ preferred_secondary_zone
string

Optional. Point-in-time recovery 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.

getDatasource

The Backup and Disaster Recovery (DR) Service Datasource URI.

Format: projects/{project}/locations/{region}/backupVaults/{backupvault}/dataSources/{datasource}.

Returns
Type
Description
string

hasDatasource

clearDatasource

setDatasource

The Backup and Disaster Recovery (DR) Service Datasource URI.

Format: projects/{project}/locations/{region}/backupVaults/{backupvault}/dataSources/{datasource}.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getPointInTime

Required. The date and time to which you want to restore the instance.

Returns
Type
Description

hasPointInTime

clearPointInTime

setPointInTime

Required. The date and time to which you want to restore the instance.

Parameter
Name
Description
Returns
Type
Description
$this

getTargetInstance

Target instance name.

Returns
Type
Description
string

hasTargetInstance

clearTargetInstance

setTargetInstance

Target instance name.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getPrivateNetwork

Optional. The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, /projects/myProject/global/networks/default .

Returns
Type
Description
string

hasPrivateNetwork

clearPrivateNetwork

setPrivateNetwork

Optional. The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, /projects/myProject/global/networks/default .

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getAllocatedIpRange

Optional. The name of the allocated IP range for the internal IP Cloud SQL instance. For example: "google-managed-services-default". If you set this, then Cloud SQL creates the IP address for the cloned instance in the allocated range. This range must comply with RFC 1035 standards. Specifically, the name must be 1-63 characters long and match the regular expression a-z ?. Reserved for future use.

Returns
Type
Description
string

hasAllocatedIpRange

clearAllocatedIpRange

setAllocatedIpRange

Optional. The name of the allocated IP range for the internal IP Cloud SQL instance. For example: "google-managed-services-default". If you set this, then Cloud SQL creates the IP address for the cloned instance in the allocated range. This range must comply with RFC 1035 standards. Specifically, the name must be 1-63 characters long and match the regular expression a-z ?. Reserved for future use.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getPreferredZone

Optional. Point-in-time recovery of an instance to the specified zone. If no zone is specified, then clone to the same primary zone as the source instance.

Returns
Type
Description
string

hasPreferredZone

clearPreferredZone

setPreferredZone

Optional. Point-in-time recovery of an instance to the specified zone. If no zone is specified, then clone to the same primary zone as the source instance.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getPreferredSecondaryZone

Optional. Point-in-time recovery 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.

Returns
Type
Description
string

hasPreferredSecondaryZone

clearPreferredSecondaryZone

setPreferredSecondaryZone

Optional. Point-in-time recovery 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.

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: