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 \ V1Methods
__construct
Constructor.
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
↳ 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}.
string
hasDatasource
clearDatasource
setDatasource
The Backup and Disaster Recovery (DR) Service Datasource URI.
Format: projects/{project}/locations/{region}/backupVaults/{backupvault}/dataSources/{datasource}.
var
string
$this
getPointInTime
Required. The date and time to which you want to restore the instance.
hasPointInTime
clearPointInTime
setPointInTime
Required. The date and time to which you want to restore the instance.
$this
getTargetInstance
Target instance name.
string
hasTargetInstance
clearTargetInstance
setTargetInstance
Target instance name.
var
string
$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
.
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
.
var
string
$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.
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.
var
string
$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.
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.
var
string
$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.
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.
var
string
$this

