Class: Google::Apis::ContainerV1beta1::MaxPodsConstraint

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

Overview

Constraints applied to pods.

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) ⇒ MaxPodsConstraint

Returns a new instance of MaxPodsConstraint



1810
1811
1812
# File 'generated/google/apis/container_v1beta1/classes.rb', line 1810

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

Instance Attribute Details

#max_pods_per_nodeFixnum

Constraint enforced on the max num of pods per node. Corresponds to the JSON property maxPodsPerNode

Returns:

  • (Fixnum)


1808
1809
1810
# File 'generated/google/apis/container_v1beta1/classes.rb', line 1808

def max_pods_per_node
  @max_pods_per_node
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1815
1816
1817
# File 'generated/google/apis/container_v1beta1/classes.rb', line 1815

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