# Class ResourcePolicy (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

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

Represents a Resource Policy resource. You can use resource
policies to schedule actions for some Compute Engine resources.
For example, you can use them toschedule persistent disk
snapshots.

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `creation_timestamp` | `str` Output only. \[Output Only\] Creation timestamp inRFC3339 text format. This field is a member of `oneof`_ `_creation_timestamp`. |
| `description` | `str` This field is a member of `oneof`_ `_description`. |
| `disk_consistency_group_policy` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.ResourcePolicyDiskConsistencyGroupPolicy` Resource policy for disk consistency groups. This field is a member of `oneof`_ `_disk_consistency_group_policy`. |
| `group_placement_policy` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.ResourcePolicyGroupPlacementPolicy` Resource policy for instances for placement configuration. This field is a member of `oneof`_ `_group_placement_policy`. |
| `id` | `int` Output only. \[Output Only\] The unique identifier for the resource. This identifier is defined by the server. This field is a member of `oneof`_ `_id`. |
| `instance_schedule_policy` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.ResourcePolicyInstanceSchedulePolicy` Resource policy for scheduling instance operations. This field is a member of `oneof`_ `_instance_schedule_policy`. |
| `kind` | `str` Output only. \[Output Only\] Type of the resource. Alwayscompute#resource_policies for resource policies. This field is a member of `oneof`_ `_kind`. |
| `name` | `str` The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. This field is a member of `oneof`_ `_name`. |
| `region` | `str` This field is a member of `oneof`_ `_region`. |
| `resource_status` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.ResourcePolicyResourceStatus` Output only. \[Output Only\] The system status of the resource policy. This field is a member of `oneof`_ `_resource_status`. |
| `self_link` | `str` Output only. \[Output Only\] Server-defined fully-qualified URL for this resource. This field is a member of `oneof`_ `_self_link`. |
| `snapshot_schedule_policy` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.ResourcePolicySnapshotSchedulePolicy` Resource policy for persistent disks for creating snapshots. This field is a member of `oneof`_ `_snapshot_schedule_policy`. |
| `status` | `str` Output only. \[Output Only\] The status of resource policy creation. Check the Status enum for the list of possible values. This field is a member of `oneof`_ `_status`. |
| `workload_policy` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.ResourcePolicyWorkloadPolicy` Resource policy for defining instance placement for MIGs. This field is a member of `oneof`_ `_workload_policy`. |

## Classes

### Status

    Status(value)

Output only. \[Output Only\] The status of resource policy creation.