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 \ V1Methods
__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. |
↳ backup_chain_bytes |
int|string
Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size). |
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 |
|
getBackupChainBytes
Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size).
| Returns | |
|---|---|
| Type | Description |
int|string |
|
hasBackupChainBytes
clearBackupChainBytes
setBackupChainBytes
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 |
|