Class BackupVault (0.5.0)

BackupVault(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Attributes

Name Description
name str
Output only. Identifier. Name of the backup vault to create. It must have the format\ "projects/{project}/locations/{location}/backupVaults/{backupvault}". {backupvault} cannot be changed after creation. It must be between 3-63 characters long and must be unique within the project and location.
description str
Optional. The description of the BackupVault instance (2048 characters or less). This field is a member of oneof_ _description.
labels MutableMapping[str, str]
Optional. Resource labels to represent user provided metadata. No labels currently defined:
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. The time when the instance was created. This field is a member of oneof_ _create_time.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. The time when the instance was updated. This field is a member of oneof_ _update_time.
backup_minimum_enforced_retention_duration google.protobuf.duration_pb2.Duration
Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended. This field is a member of oneof_ _backup_minimum_enforced_retention_duration.
backup_retention_inheritance google.cloud.backupdr_v1.types.BackupVault.BackupRetentionInheritance
Optional. Setting for how a backup's enforced retention end time is inherited. This field is a member of oneof_ _backup_retention_inheritance.
deletable bool
Output only. Set to true when there are no backups nested under this resource. This field is a member of oneof_ _deletable.
etag str
Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other. This field is a member of oneof_ _etag.
state google.cloud.backupdr_v1.types.BackupVault.State
Output only. The BackupVault resource instance state.
effective_time google.protobuf.timestamp_pb2.Timestamp
Optional. Time after which the BackupVault resource is locked. This field is a member of oneof_ _effective_time.
backup_count int
Output only. The number of backups in this backup vault.
service_account str
Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.
total_stored_bytes int
Output only. Total size of the storage used by all backup resources.
uid str
Output only. Immutable after resource creation until resource deletion.
annotations MutableMapping[str, str]
Optional. User annotations. See https://google.aip.dev/128#annotations Stores small amounts of arbitrary data.
access_restriction google.cloud.backupdr_v1.types.BackupVault.AccessRestriction
Optional. Note: This field is added for future use case and will not be supported in the current release. Access restriction for the backup vault. Default value is WITHIN_ORGANIZATION if not provided during creation.
encryption_config google.cloud.backupdr_v1.types.BackupVault.EncryptionConfig
Optional. The encryption config of the backup vault. This field is a member of oneof_ _encryption_config.

Classes

AccessRestriction

AccessRestriction(value)

Holds the access restriction for the backup vault.

AnnotationsEntry

AnnotationsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
Name Description
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

BackupRetentionInheritance

BackupRetentionInheritance(value)

How a backup's enforced retention end time is inherited.

    This is the default behavior.
MATCH_BACKUP_EXPIRE_TIME (2):
    The enforced retention end time of a backup
    will always match the expire time of the backup.

    If this is set, the backup's enforced retention
    end time will be set to match the expire time
    during creation of the backup. When updating,
    the ERET and expire time must be updated
    together and have the same value. Invalid update
    requests will be rejected by the server.

EncryptionConfig

EncryptionConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Message describing the EncryptionConfig of backup vault. This determines how data within the vault is encrypted at rest.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

LabelsEntry

LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
Name Description
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

State

State(value)

Holds the state of the backup vault resource.