Google Cloud Net App V1 Client - Class BackupConfig (0.2.5)

Reference documentation and code samples for the Google Cloud Net App V1 Client class BackupConfig.

BackupConfig contains backup related config on a volume.

Generated from protobuf message google.cloud.netapp.v1.BackupConfig

Namespace

Google \ Cloud \ NetApp \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ backup_policies array

Optional. When specified, schedule backups will be created based on the policy configuration.

↳ backup_vault string

Optional. Name of backup vault. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

↳ scheduled_backup_enabled bool

Optional. When set to true, scheduled backup is enabled on the volume. This field should be nil when there's no backup policy attached.

getBackupPolicies

Optional. When specified, schedule backups will be created based on the policy configuration.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setBackupPolicies

Optional. When specified, schedule backups will be created based on the policy configuration.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getBackupVault

Optional. Name of backup vault.

Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

Returns
Type Description
string

setBackupVault

Optional. Name of backup vault.

Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

Parameter
Name Description
var string
Returns
Type Description
$this

getScheduledBackupEnabled

Optional. When set to true, scheduled backup is enabled on the volume.

This field should be nil when there's no backup policy attached.

Returns
Type Description
bool

hasScheduledBackupEnabled

clearScheduledBackupEnabled

setScheduledBackupEnabled

Optional. When set to true, scheduled backup is enabled on the volume.

This field should be nil when there's no backup policy attached.

Parameter
Name Description
var bool
Returns
Type Description
$this