Google Cloud Net App V1 Client - Class Backup (0.3.1)

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 \ V1

Methods

__construct

Constructor.

Parameters
Name Description
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 Google\Protobuf\Timestamp

Output only. The time when the backup was created.

↳ labels array|Google\Protobuf\Internal\MapField

Resource labels to represent user provided metadata.

↳ 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}.

Returns
Type Description
string

setName

Identifier. The resource name of the backup.

Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}.

Parameter
Name Description
var string
Returns
Type Description
$this

getState

Output only. The backup state.

Returns
Type Description
int

setState

Output only. The backup state.

Parameter
Name Description
var int
Returns
Type Description
$this

getDescription

A description of the backup with 2048 characters or less.

Requests with longer descriptions will be rejected.

Returns
Type Description
string

setDescription

A description of the backup with 2048 characters or less.

Requests with longer descriptions will be rejected.

Parameter
Name Description
var string
Returns
Type Description
$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.

Returns
Type Description
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.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getBackupType

Output only. Type of backup, manually created or created by a backup policy.

Returns
Type Description
int

setBackupType

Output only. Type of backup, manually created or created by a backup policy.

Parameter
Name Description
var int
Returns
Type Description
$this

getSourceVolume

Volume full name of this backup belongs to.

Format: projects/{projects_id}/locations/{location}/volumes/{volume_id}

Returns
Type Description
string

setSourceVolume

Volume full name of this backup belongs to.

Format: projects/{projects_id}/locations/{location}/volumes/{volume_id}

Parameter
Name Description
var string
Returns
Type Description
$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}

Returns
Type Description
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}

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Output only. The time when the backup was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time when the backup was created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getLabels

Resource labels to represent user provided metadata.

Returns
Type Description
Google\Protobuf\Internal\MapField

setLabels

Resource labels to represent user provided metadata.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getChainStorageBytes

Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size)

Returns
Type Description
int|string

setChainStorageBytes

Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size)

Parameter
Name Description
var int|string
Returns
Type Description
$this