Class: Google::Apis::ComputeBeta::InstanceGroupManagerActionsSummary

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ InstanceGroupManagerActionsSummary


4523
4524
4525
# File 'generated/google/apis/compute_beta/classes.rb', line 4523

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#abandoningFixnum

[Output Only] The total number of instances in the managed instance group that are scheduled to be abandoned. Abandoning an instance removes it from the managed instance group without deleting it. Corresponds to the JSON property abandoning


4470
4471
4472
# File 'generated/google/apis/compute_beta/classes.rb', line 4470

def abandoning
  @abandoning
end

#creatingFixnum

[Output Only] The number of instances in the managed instance group that are scheduled to be created or are currently being created. If the group fails to create any of these instances, it tries again until it creates the instance successfully. If you have disabled creation retries, this field will not be populated; instead, the creatingWithoutRetries field will be populated. Corresponds to the JSON property creating


4480
4481
4482
# File 'generated/google/apis/compute_beta/classes.rb', line 4480

def creating
  @creating
end

#creating_without_retriesFixnum

[Output Only] The number of instances that the managed instance group will attempt to create. The group attempts to create each instance only once. If the group fails to create any of these instances, it decreases the group's targetSize value accordingly. Corresponds to the JSON property creatingWithoutRetries


4488
4489
4490
# File 'generated/google/apis/compute_beta/classes.rb', line 4488

def creating_without_retries
  @creating_without_retries
end

#deletingFixnum

[Output Only] The number of instances in the managed instance group that are scheduled to be deleted or are currently being deleted. Corresponds to the JSON property deleting


4494
4495
4496
# File 'generated/google/apis/compute_beta/classes.rb', line 4494

def deleting
  @deleting
end

#noneFixnum

[Output Only] The number of instances in the managed instance group that are running and have no scheduled actions. Corresponds to the JSON property none


4500
4501
4502
# File 'generated/google/apis/compute_beta/classes.rb', line 4500

def none
  @none
end

#recreatingFixnum

[Output Only] The number of instances in the managed instance group that are scheduled to be recreated or are currently being being recreated. Recreating an instance deletes the existing root persistent disk and creates a new disk from the image that is defined in the instance template. Corresponds to the JSON property recreating


4508
4509
4510
# File 'generated/google/apis/compute_beta/classes.rb', line 4508

def recreating
  @recreating
end

#refreshingFixnum

[Output Only] The number of instances in the managed instance group that are being reconfigured with properties that do not require a restart or a recreate action. For example, setting or removing target pools for the instance. Corresponds to the JSON property refreshing


4515
4516
4517
# File 'generated/google/apis/compute_beta/classes.rb', line 4515

def refreshing
  @refreshing
end

#restartingFixnum

[Output Only] The number of instances in the managed instance group that are scheduled to be restarted or are currently being restarted. Corresponds to the JSON property restarting


4521
4522
4523
# File 'generated/google/apis/compute_beta/classes.rb', line 4521

def restarting
  @restarting
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
# File 'generated/google/apis/compute_beta/classes.rb', line 4528

def update!(**args)
  @abandoning = args[:abandoning] if args.key?(:abandoning)
  @creating = args[:creating] if args.key?(:creating)
  @creating_without_retries = args[:creating_without_retries] if args.key?(:creating_without_retries)
  @deleting = args[:deleting] if args.key?(:deleting)
  @none = args[:none] if args.key?(:none)
  @recreating = args[:recreating] if args.key?(:recreating)
  @refreshing = args[:refreshing] if args.key?(:refreshing)
  @restarting = args[:restarting] if args.key?(:restarting)
end