class Google::Apis::ReplicapoolV1beta2::InstanceGroupManager

An Instance Group Manager resource.

Attributes

auto_healing_policies[RW]

The autohealing policy for this managed instance group. You can specify only one value. Corresponds to the JSON property `autoHealingPolicies` @return [Array<Google::Apis::ReplicapoolV1beta2::ReplicaPoolAutoHealingPolicy>]

base_instance_name[RW]

The base instance name to use for instances in this group. The value must be a valid RFC1035 name. Supported characters are lowercase letters, numbers, and hyphens (-). Instances are named by appending a hyphen and a random four- character string to the base instance name. Corresponds to the JSON property `baseInstanceName` @return [String]

creation_timestamp[RW]
Output only

The time the instance group manager was created, in RFC3339 text

format. Corresponds to the JSON property `creationTimestamp` @return [String]

current_size[RW]
Output only

The number of instances that currently exist and are a part of

this group. This includes instances that are starting but are not yet RUNNING, and instances that are in the process of being deleted or abandoned. Corresponds to the JSON property `currentSize` @return [Fixnum]

description[RW]

An optional textual description of the instance group manager. Corresponds to the JSON property `description` @return [String]

fingerprint[RW]
Output only

Fingerprint of the instance group manager. This field is used

for optimistic locking. An up-to-date fingerprint must be provided in order to modify the Instance Group Manager resource. Corresponds to the JSON property `fingerprint` @return [String]

group[RW]
Output only

The full URL of the instance group created by the manager. This

group contains all of the instances being managed, and cannot contain non- managed instances. Corresponds to the JSON property `group` @return [String]

id[RW]
Output only

A server-assigned unique identifier for the resource.

Corresponds to the JSON property `id` @return [String]

instance_template[RW]

The full URL to an instance template from which all new instances will be created. Corresponds to the JSON property `instanceTemplate` @return [String]

kind[RW]
Output only

The resource type. Always replicapool#instanceGroupManager.

Corresponds to the JSON property `kind` @return [String]

name[RW]

The name of the instance group manager. Must be 1-63 characters long and comply with RFC1035. Supported characters include lowercase letters, numbers, and hyphens. Corresponds to the JSON property `name` @return [String]

target_pools[RW]

The full URL of all target pools to which new instances in the group are added. Updating the target pool values does not affect existing instances. Corresponds to the JSON property `targetPools` @return [Array<String>]

target_size[RW]
Output only

The number of instances that the manager is attempting to

maintain. Deleting or abandoning instances affects this number, as does resizing the group. Corresponds to the JSON property `targetSize` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/replicapool_v1beta2/classes.rb, line 116
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/replicapool_v1beta2/classes.rb, line 121
def update!(**args)
  @auto_healing_policies = args[:auto_healing_policies] if args.key?(:auto_healing_policies)
  @base_instance_name = args[:base_instance_name] if args.key?(:base_instance_name)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @current_size = args[:current_size] if args.key?(:current_size)
  @description = args[:description] if args.key?(:description)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @group = args[:group] if args.key?(:group)
  @id = args[:id] if args.key?(:id)
  @instance_template = args[:instance_template] if args.key?(:instance_template)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @self_link = args[:self_link] if args.key?(:self_link)
  @target_pools = args[:target_pools] if args.key?(:target_pools)
  @target_size = args[:target_size] if args.key?(:target_size)
end