Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::ResourcePolicy (v2.12.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::ResourcePolicy.

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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#creation_timestamp

def creation_timestamp() -> ::String
Returns
  • (::String) — [Output Only] Creation timestamp in RFC3339 text format.

#creation_timestamp=

def creation_timestamp=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Creation timestamp in RFC3339 text format.
Returns
  • (::String) — [Output Only] Creation timestamp in RFC3339 text format.

#description

def description() -> ::String
Returns
  • (::String)

#description=

def description=(value) -> ::String
Parameter
  • value (::String)
Returns
  • (::String)

#disk_consistency_group_policy

def disk_consistency_group_policy() -> ::Google::Cloud::Compute::V1::ResourcePolicyDiskConsistencyGroupPolicy
Returns

#disk_consistency_group_policy=

def disk_consistency_group_policy=(value) -> ::Google::Cloud::Compute::V1::ResourcePolicyDiskConsistencyGroupPolicy
Parameter
Returns

#group_placement_policy

def group_placement_policy() -> ::Google::Cloud::Compute::V1::ResourcePolicyGroupPlacementPolicy
Returns

#group_placement_policy=

def group_placement_policy=(value) -> ::Google::Cloud::Compute::V1::ResourcePolicyGroupPlacementPolicy
Parameter
Returns

#id

def id() -> ::Integer
Returns
  • (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.

#id=

def id=(value) -> ::Integer
Parameter
  • value (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Returns
  • (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.

#instance_schedule_policy

def instance_schedule_policy() -> ::Google::Cloud::Compute::V1::ResourcePolicyInstanceSchedulePolicy
Returns

#instance_schedule_policy=

def instance_schedule_policy=(value) -> ::Google::Cloud::Compute::V1::ResourcePolicyInstanceSchedulePolicy
Parameter
Returns

#kind

def kind() -> ::String
Returns
  • (::String) — [Output Only] Type of the resource. Always compute#resource_policies for resource policies.

#kind=

def kind=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Type of the resource. Always compute#resource_policies for resource policies.
Returns
  • (::String) — [Output Only] Type of the resource. Always compute#resource_policies for resource policies.

#name

def name() -> ::String
Returns
  • (::String) — 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.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — 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.
Returns
  • (::String) — 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.

#region

def region() -> ::String
Returns
  • (::String)

#region=

def region=(value) -> ::String
Parameter
  • value (::String)
Returns
  • (::String)

#resource_status

def resource_status() -> ::Google::Cloud::Compute::V1::ResourcePolicyResourceStatus
Returns

#resource_status=

def resource_status=(value) -> ::Google::Cloud::Compute::V1::ResourcePolicyResourceStatus
Parameter
Returns
def self_link() -> ::String
Returns
  • (::String) — [Output Only] Server-defined fully-qualified URL for this resource.
def self_link=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Server-defined fully-qualified URL for this resource.
Returns
  • (::String) — [Output Only] Server-defined fully-qualified URL for this resource.

#snapshot_schedule_policy

def snapshot_schedule_policy() -> ::Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicy
Returns

#snapshot_schedule_policy=

def snapshot_schedule_policy=(value) -> ::Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicy
Parameter
Returns

#status

def status() -> ::String
Returns
  • (::String) — [Output Only] The status of resource policy creation. Check the Status enum for the list of possible values.

#status=

def status=(value) -> ::String
Parameter
  • value (::String) — [Output Only] The status of resource policy creation. Check the Status enum for the list of possible values.
Returns
  • (::String) — [Output Only] The status of resource policy creation. Check the Status enum for the list of possible values.