Class BackupPlan (0.1.4)

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

A BackupPlan specifies some common fields, such as description as well as one or more BackupRule messages. Each BackupRule has a retention policy and defines a schedule by which the system is to perform backup workloads.

Attributes

Name Description
name str
Output only. Identifier. The resource name of the BackupPlan. Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}
description str
Optional. The description of the BackupPlan resource. The description allows for additional details about BackupPlan and its use cases to be provided. An example description is the following: "This is a backup plan that performs a daily backup at 6pm and retains data for 3 months". The description must be at most 2048 characters.
labels MutableMapping[str, str]
Optional. This collection of key/value pairs allows for custom labels to be supplied by the user. Example, {"tag": "Weekly"}.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. When the BackupPlan was created.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. When the BackupPlan was last updated.
backup_rules MutableSequence[google.cloud.backupdr_v1.types.BackupRule]
Required. The backup rules for this BackupPlan. There must be at least one BackupRule message.
state google.cloud.backupdr_v1.types.BackupPlan.State
Output only. The State for the BackupPlan.
resource_type str
Required. The resource type to which the BackupPlan will be applied. Examples include, "compute.googleapis.com/Instance" and "storage.googleapis.com/Bucket".
etag str
Optional. etag is returned from the service in the response. As a user of the service, you may provide an etag value in this field to prevent stale resources.
backup_vault str
Required. Resource name of backup vault which will be used as storage location for backups. Format: projects/{project}/locations/{location}/backupVaults/{backupvault}
backup_vault_service_account str
Output only. The Google Cloud Platform Service Account to be used by the BackupVault for taking backups. Specify the email address of the Backup Vault Service Account.

Classes

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)

State enumerates the possible states for a BackupPlan.