Google Cloud AlloyDB for PostgreSQL V1alpha Client - Class Backup (0.2.1)

Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1alpha Client class Backup.

Message describing Backup object

Generated from protobuf message google.cloud.alloydb.v1alpha.Backup

Namespace

Google \ Cloud \ AlloyDb \ V1alpha

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id} where the cluster and backup ID segments should satisfy the regex expression [a-z]([a-z0-9-]{0,61}[a-z0-9])?, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122. The prefix of the backup resource name is the name of the parent resource: * projects/{project}/locations/{region}

↳ display_name string

User-settable and human-readable display name for the Backup.

↳ uid string

Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.

↳ create_time Google\Protobuf\Timestamp

Output only. Create time stamp

↳ update_time Google\Protobuf\Timestamp

Output only. Update time stamp

↳ delete_time Google\Protobuf\Timestamp

Output only. Delete time stamp

↳ labels array|Google\Protobuf\Internal\MapField

Labels as key value pairs

↳ state int

Output only. The current state of the backup.

↳ type int

The backup type, which suggests the trigger for the backup.

↳ description string

User-provided description of the backup.

↳ cluster_uid string

Output only. The system-generated UID of the cluster which was used to create this resource.

↳ cluster_name string

Required. The full resource name of the backup source cluster (e.g., projects/

↳ reconciling bool

Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.

↳ encryption_config Google\Cloud\AlloyDb\V1alpha\EncryptionConfig

Optional. The encryption config can be specified to encrypt the backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.

↳ encryption_info Google\Cloud\AlloyDb\V1alpha\EncryptionInfo

Output only. The encryption information for the backup.

↳ etag string

For Resource freshness validation (https://google.aip.dev/154)

↳ annotations array|Google\Protobuf\Internal\MapField

Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128

↳ size_bytes int|string

Output only. The size of the backup in bytes.

↳ expiry_time Google\Protobuf\Timestamp

Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's create_time.

getName

Output only. The name of the backup resource with the format:

  • projects/{project}/locations/{region}/backups/{backup_id} where the cluster and backup ID segments should satisfy the regex expression [a-z]([a-z0-9-]{0,61}[a-z0-9])?, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122.

The prefix of the backup resource name is the name of the parent resource:

  • projects/{project}/locations/{region}
Returns
TypeDescription
string

setName

Output only. The name of the backup resource with the format:

  • projects/{project}/locations/{region}/backups/{backup_id} where the cluster and backup ID segments should satisfy the regex expression [a-z]([a-z0-9-]{0,61}[a-z0-9])?, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122.

The prefix of the backup resource name is the name of the parent resource:

  • projects/{project}/locations/{region}
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

User-settable and human-readable display name for the Backup.

Returns
TypeDescription
string

setDisplayName

User-settable and human-readable display name for the Backup.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUid

Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.

Returns
TypeDescription
string

setUid

Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. Create time stamp

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Create time stamp

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

getUpdateTime

Output only. Update time stamp

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Update time stamp

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

getDeleteTime

Output only. Delete time stamp

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasDeleteTime

clearDeleteTime

setDeleteTime

Output only. Delete time stamp

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

getLabels

Labels as key value pairs

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Labels as key value pairs

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getState

Output only. The current state of the backup.

Returns
TypeDescription
int

setState

Output only. The current state of the backup.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getType

The backup type, which suggests the trigger for the backup.

Returns
TypeDescription
int

setType

The backup type, which suggests the trigger for the backup.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDescription

User-provided description of the backup.

Returns
TypeDescription
string

setDescription

User-provided description of the backup.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getClusterUid

Output only. The system-generated UID of the cluster which was used to create this resource.

Returns
TypeDescription
string

setClusterUid

Output only. The system-generated UID of the cluster which was used to create this resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getClusterName

Required. The full resource name of the backup source cluster (e.g., projects/

Returns
TypeDescription
string

setClusterName

Required. The full resource name of the backup source cluster (e.g., projects/

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getReconciling

Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.

Returns
TypeDescription
bool

setReconciling

Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getEncryptionConfig

Optional. The encryption config can be specified to encrypt the backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.

Returns
TypeDescription
Google\Cloud\AlloyDb\V1alpha\EncryptionConfig|null

hasEncryptionConfig

clearEncryptionConfig

setEncryptionConfig

Optional. The encryption config can be specified to encrypt the backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.

Parameter
NameDescription
var Google\Cloud\AlloyDb\V1alpha\EncryptionConfig
Returns
TypeDescription
$this

getEncryptionInfo

Output only. The encryption information for the backup.

Returns
TypeDescription
Google\Cloud\AlloyDb\V1alpha\EncryptionInfo|null

hasEncryptionInfo

clearEncryptionInfo

setEncryptionInfo

Output only. The encryption information for the backup.

Parameter
NameDescription
var Google\Cloud\AlloyDb\V1alpha\EncryptionInfo
Returns
TypeDescription
$this

getEtag

For Resource freshness validation (https://google.aip.dev/154)

Returns
TypeDescription
string

setEtag

For Resource freshness validation (https://google.aip.dev/154)

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAnnotations

Annotations to allow client tools to store small amount of arbitrary data.

This is distinct from labels. https://google.aip.dev/128

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setAnnotations

Annotations to allow client tools to store small amount of arbitrary data.

This is distinct from labels. https://google.aip.dev/128

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getSizeBytes

Output only. The size of the backup in bytes.

Returns
TypeDescription
int|string

setSizeBytes

Output only. The size of the backup in bytes.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getExpiryTime

Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's create_time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasExpiryTime

clearExpiryTime

setExpiryTime

Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's create_time.

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