Class SnapshotRecycleBinPolicy (0.12.7)

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

Represents the singleton resource Snapshot Recycle Bin Policy that configures the retention duration for snapshots in the recycle bin.

You can configure the retention duration for snapshots in the recycle bin at the project or organization level. If you configure the policy at the organization level, all projects in that organization will share the same policy. If you configure the policy at the project level it will be merged with org level policy (if any) and the snapshots in that project will use that policy.

Attributes

Name Description
rules MutableMapping[str, google.cloud.compute_v1beta.types.SnapshotRecycleBinPolicyRule]
The rules for the snapshot recycle bin policy. The key is either 'default' or namespacedName of the TagValue which can be in the format: {organization_id}/{tag_key_short_name}/{tag_value_short_name} or {project_id}/{tag_key_short_name}/{tag_value_short_name} or {project_number}/{tag_key_short_name}/{tag_value_short_name}. The default rule is applied if snapshots do not have any of these tags. The value is the rule for the key.
system_rules MutableMapping[str, google.cloud.compute_v1beta.types.SnapshotRecycleBinPolicyRule]
Output only. The system rules for snapshot recycle bin policy. Defines the default rule that applies if no customer-defined rule matches.

Classes

RulesEntry

RulesEntry(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.

SystemRulesEntry

SystemRulesEntry(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.