Class: Google::Apis::ContainerV1::MaxPodsConstraint

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

Overview

Constraints applied to pods.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MaxPodsConstraint

Returns a new instance of MaxPodsConstraint.



3757
3758
3759
# File 'lib/google/apis/container_v1/classes.rb', line 3757

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)


3755
3756
3757
# File 'lib/google/apis/container_v1/classes.rb', line 3755

def max_pods_per_node
  @max_pods_per_node
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3762
3763
3764
# File 'lib/google/apis/container_v1/classes.rb', line 3762

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