class Google::Apis::ComputeBeta::InstanceGroupManagersResizeAdvancedRequest

Attributes

no_creation_retries[RW]

If this flag is true, we will attempt to create all instances resized up with this request only once. In case of an error during creation, we will not create this instance, and we will decrease the target_size. If the flag is false, we will keep trying to create each instance until we succeed. This flag matters only in the first attempt of creation of an instance. If an instance creation with this flag succeeds, the instance behaves the same way as all the other instances created with the flag set to false. In particular, consecutive instance creations (in case an instance dies and needs to be recreated) will not fail after the first attempt. This flag is applicable only to the current resize request. It does not influence other resize requests in any way. You can see which instances is being creating in which mode by calling the listManagedInstances API. Corresponds to the JSON property `noCreationRetries` @return [Boolean]

no_creation_retries?[RW]

If this flag is true, we will attempt to create all instances resized up with this request only once. In case of an error during creation, we will not create this instance, and we will decrease the target_size. If the flag is false, we will keep trying to create each instance until we succeed. This flag matters only in the first attempt of creation of an instance. If an instance creation with this flag succeeds, the instance behaves the same way as all the other instances created with the flag set to false. In particular, consecutive instance creations (in case an instance dies and needs to be recreated) will not fail after the first attempt. This flag is applicable only to the current resize request. It does not influence other resize requests in any way. You can see which instances is being creating in which mode by calling the listManagedInstances API. Corresponds to the JSON property `noCreationRetries` @return [Boolean]

target_size[RW]

The number of running instances that the managed instance group should maintain at any given time. The group automatically adds or removes instances to maintain the number of instances specified by this parameter. Corresponds to the JSON property `targetSize` @return [Fixnum]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/compute_beta/classes.rb, line 4025
def update!(**args)
  @no_creation_retries = args[:no_creation_retries] if args.key?(:no_creation_retries)
  @target_size = args[:target_size] if args.key?(:target_size)
end