Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::VmExtensionPolicy (v3.6.0)

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

Represents a VM extension policy.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#creation_timestamp

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

#creation_timestamp=

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

#description

def description() -> ::String
Returns
  • (::String) — An optional description of this resource.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — An optional description of this resource.
Returns
  • (::String) — An optional description of this resource.

#extension_policies

def extension_policies() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Compute::V1::VmExtensionPolicyExtensionPolicy}
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::Compute::V1::VmExtensionPolicyExtensionPolicy}) — Required. A map of extension names (for example, "ops-agent") to their corresponding policy configurations.

#extension_policies=

def extension_policies=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Compute::V1::VmExtensionPolicyExtensionPolicy}
Parameter
  • value (::Google::Protobuf::Map{::String => ::Google::Cloud::Compute::V1::VmExtensionPolicyExtensionPolicy}) — Required. A map of extension names (for example, "ops-agent") to their corresponding policy configurations.
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::Compute::V1::VmExtensionPolicyExtensionPolicy}) — Required. A map of extension names (for example, "ops-agent") to their corresponding policy configurations.
def global_resource_link() -> ::String
Returns
  • (::String) — Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if applicable.
def global_resource_link=(value) -> ::String
Parameter
  • value (::String) — Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if applicable.
Returns
  • (::String) — Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if applicable.

#id

def id() -> ::Integer
Returns
  • (::Integer) — Output only. [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. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Returns
  • (::Integer) — Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.

#instance_selectors

def instance_selectors() -> ::Array<::Google::Cloud::Compute::V1::VmExtensionPolicyInstanceSelector>
Returns

#instance_selectors=

def instance_selectors=(value) -> ::Array<::Google::Cloud::Compute::V1::VmExtensionPolicyInstanceSelector>
Parameter
Returns

#kind

def kind() -> ::String
Returns
  • (::String) — Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.

#kind=

def kind=(value) -> ::String
Parameter
  • value (::String) — Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
Returns
  • (::String) — Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.

#managed_by_global

def managed_by_global() -> ::Boolean
Returns
  • (::Boolean) — Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.

#managed_by_global=

def managed_by_global=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.
Returns
  • (::Boolean) — Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.

#name

def name() -> ::String
Returns
  • (::String) — Name of the resource. Provided by the client when the resource is created. The 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.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Name of the resource. Provided by the client when the resource is created. The 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.
Returns
  • (::String) — Name of the resource. Provided by the client when the resource is created. The 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.

#priority

def priority() -> ::Integer
Returns
  • (::Integer) — Optional. Priority of this policy. Used to resolve conflicts when multiple policies apply to the same extension. The policy priority is an integer from 0 to 65535, inclusive. Lower integers indicate higher priorities. If you do not specify a priority when creating a rule, it is assigned a priority of 1000. If priorities are equal, the policy with the most recent creation timestamp takes precedence.

#priority=

def priority=(value) -> ::Integer
Parameter
  • value (::Integer) — Optional. Priority of this policy. Used to resolve conflicts when multiple policies apply to the same extension. The policy priority is an integer from 0 to 65535, inclusive. Lower integers indicate higher priorities. If you do not specify a priority when creating a rule, it is assigned a priority of 1000. If priorities are equal, the policy with the most recent creation timestamp takes precedence.
Returns
  • (::Integer) — Optional. Priority of this policy. Used to resolve conflicts when multiple policies apply to the same extension. The policy priority is an integer from 0 to 65535, inclusive. Lower integers indicate higher priorities. If you do not specify a priority when creating a rule, it is assigned a priority of 1000. If priorities are equal, the policy with the most recent creation timestamp takes precedence.
def self_link() -> ::String
Returns
  • (::String) — Output only. [Output Only] Server-defined fully-qualified URL for this resource.
def self_link=(value) -> ::String
Parameter
  • value (::String) — Output only. [Output Only] Server-defined fully-qualified URL for this resource.
Returns
  • (::String) — Output only. [Output Only] Server-defined fully-qualified URL for this resource.
def self_link_with_id() -> ::String
Returns
  • (::String) — Output only. [Output Only] Server-defined URL for this resource's resource id.
def self_link_with_id=(value) -> ::String
Parameter
  • value (::String) — Output only. [Output Only] Server-defined URL for this resource's resource id.
Returns
  • (::String) — Output only. [Output Only] Server-defined URL for this resource's resource id.

#state

def state() -> ::String
Returns
  • (::String) — Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. Check the State enum for the list of possible values.

#state=

def state=(value) -> ::String
Parameter
  • value (::String) — Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. Check the State enum for the list of possible values.
Returns
  • (::String) — Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. Check the State enum for the list of possible values.

#update_timestamp

def update_timestamp() -> ::String
Returns
  • (::String) — Output only. [Output Only] Update timestamp inRFC3339 text format.

#update_timestamp=

def update_timestamp=(value) -> ::String
Parameter
  • value (::String) — Output only. [Output Only] Update timestamp inRFC3339 text format.
Returns
  • (::String) — Output only. [Output Only] Update timestamp inRFC3339 text format.