Class: Google::Apis::ComputeAlpha::NodeGroupAutoscalingPolicy

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/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) ⇒ NodeGroupAutoscalingPolicy

Returns a new instance of NodeGroupAutoscalingPolicy



18846
18847
18848
# File 'generated/google/apis/compute_alpha/classes.rb', line 18846

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

Instance Attribute Details

#max_sizeFixnum

Corresponds to the JSON property maxSize

Returns:

  • (Fixnum)


18839
18840
18841
# File 'generated/google/apis/compute_alpha/classes.rb', line 18839

def max_size
  @max_size
end

#min_sizeFixnum

Corresponds to the JSON property minSize

Returns:

  • (Fixnum)


18844
18845
18846
# File 'generated/google/apis/compute_alpha/classes.rb', line 18844

def min_size
  @min_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18851
18852
18853
18854
# File 'generated/google/apis/compute_alpha/classes.rb', line 18851

def update!(**args)
  @max_size = args[:max_size] if args.key?(:max_size)
  @min_size = args[:min_size] if args.key?(:min_size)
end