Class: Google::Apis::ContainerV1beta1::UpgradeSettings

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpgradeSettings

Returns a new instance of UpgradeSettings.



5651
5652
5653
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5651

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

Instance Attribute Details

#max_surgeFixnum

The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process. Corresponds to the JSON property maxSurge

Returns:

  • (Fixnum)


5643
5644
5645
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5643

def max_surge
  @max_surge
end

#max_unavailableFixnum

The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready. Corresponds to the JSON property maxUnavailable

Returns:

  • (Fixnum)


5649
5650
5651
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5649

def max_unavailable
  @max_unavailable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5656
5657
5658
5659
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5656

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