0.10.4 (latest) 0.10.3 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.5 0.1.7

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

An AutoprotectionPolicy is a policy resource designed to
automate backup management, moving from manual per-resource
protection to a bulk approach. The policy dynamically discovers
and applies a specified backup plan to all eligible resources
that match its defined scope and criteria.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Output only. Identifier. The resource name of the AutoprotectionPolicy. Format: `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}` |
| `description` | `str` Optional. A description of the policy. The description must be at most 2048 characters. |
| `backup_plan_details` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1beta.types.BackupPlanDetail]` Required. The backup plan details for matching resources. |
| `criteria` | `https://docs.cloud.google.com/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1beta.types.Criteria` Required. The criteria for matching resources. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1beta.types.AutoProtectionPolicy.State` Output only. The current state of the AutoprotectionPolicy. |
| `etag` | `str` Output only. The etag for the policy. If this is provided on update, it must match the server's etag, otherwise the request will be rejected with an ABORTED error. |
| `binding_summary` | `https://docs.cloud.google.com/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1beta.types.BindingSummary` Output only. Summary of total count of different containers covered through this policy. |
| `policy_evaluation_summary` | `https://docs.cloud.google.com/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1beta.types.PolicyEvaluationSummary` Output only. Summary of last policy application when job was run per workload type. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The timestamp when the policy was created. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The timestamp when the policy was last updated. |

## Classes

### State

    State(value)

The state of an AutoprotectionPolicy.