Reference documentation and code samples for the Google Cloud Net App V1 Client class Backup.
A NetApp Backup.
Generated from protobuf message google.cloud.netapp.v1.Backup
Namespace
Google \ Cloud \ NetApp \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The resource name of the backup. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
.
↳ state
int
Output only. The backup state.
↳ description
string
A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.
↳ volume_usage_bytes
int|string
Output only. Size of the file system when the backup was created. When creating a new volume from the backup, the volume capacity will have to be at least as big.
↳ backup_type
int
Output only. Type of backup, manually created or created by a backup policy.
↳ source_volume
string
Volume full name of this backup belongs to. Format: projects/{projects_id}/locations/{location}/volumes/{volume_id}
↳ source_snapshot
string
If specified, backup will be created from the given snapshot. If not specified, there will be a new snapshot taken to initiate the backup creation. Format: projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}
↳ create_time
↳ labels
↳ chain_storage_bytes
int|string
Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size)
getName
Identifier. The resource name of the backup.
Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
.
string
setName
Identifier. The resource name of the backup.
Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
.
var
string
$this
getState
Output only. The backup state.
int
setState
Output only. The backup state.
var
int
$this
getDescription
A description of the backup with 2048 characters or less.
Requests with longer descriptions will be rejected.
string
setDescription
A description of the backup with 2048 characters or less.
Requests with longer descriptions will be rejected.
var
string
$this
getVolumeUsageBytes
Output only. Size of the file system when the backup was created. When creating a new volume from the backup, the volume capacity will have to be at least as big.
int|string
setVolumeUsageBytes
Output only. Size of the file system when the backup was created. When creating a new volume from the backup, the volume capacity will have to be at least as big.
var
int|string
$this
getBackupType
Output only. Type of backup, manually created or created by a backup policy.
int
setBackupType
Output only. Type of backup, manually created or created by a backup policy.
var
int
$this
getSourceVolume
Volume full name of this backup belongs to.
Format: projects/{projects_id}/locations/{location}/volumes/{volume_id}
string
setSourceVolume
Volume full name of this backup belongs to.
Format: projects/{projects_id}/locations/{location}/volumes/{volume_id}
var
string
$this
getSourceSnapshot
If specified, backup will be created from the given snapshot.
If not specified, there will be a new snapshot taken to initiate the backup
creation. Format: projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}
string
hasSourceSnapshot
clearSourceSnapshot
setSourceSnapshot
If specified, backup will be created from the given snapshot.
If not specified, there will be a new snapshot taken to initiate the backup
creation. Format: projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}
var
string
$this
getCreateTime
Output only. The time when the backup was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time when the backup was created.
$this
getLabels
Resource labels to represent user provided metadata.
setLabels
Resource labels to represent user provided metadata.
$this
getChainStorageBytes
Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size)
int|string
setChainStorageBytes
Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size)
var
int|string
$this