Class ResourcePolicy (0.7.0)

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 to schedule persistent disk snapshots.

Attributes

NameDescription
creation_timestamp str
[Output Only] Creation timestamp in RFC3339 text format.
group_placement_policy google.cloud.compute_v1.types.ResourcePolicyGroupPlacementPolicy
Resource policy for instances for placement configuration.
id int
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
instance_schedule_policy google.cloud.compute_v1.types.ResourcePolicyInstanceSchedulePolicy
Resource policy for scheduling instance operations.
kind str
[Output Only] Type of the resource. Always compute#resource_policies for resource policies.
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 with RFC1035. 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.
resource_status google.cloud.compute_v1.types.ResourcePolicyResourceStatus
[Output Only] The system status of the resource policy.
self_link str
[Output Only] Server-defined fully-qualified URL for this resource.
snapshot_schedule_policy google.cloud.compute_v1.types.ResourcePolicySnapshotSchedulePolicy
Resource policy for persistent disks for creating snapshots.
status google.cloud.compute_v1.types.ResourcePolicy.Status
[Output Only] The status of resource policy creation.

Classes

Status

Status(value)

[Output Only] The status of resource policy creation.