Class: Google::Apis::ContainerV1::MaxPodsConstraint
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::MaxPodsConstraint
- 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
-
#max_pods_per_node ⇒ Fixnum
Constraint enforced on the max num of pods per node.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MaxPodsConstraint
constructor
A new instance of MaxPodsConstraint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MaxPodsConstraint
Returns a new instance of MaxPodsConstraint.
3651 3652 3653 |
# File 'lib/google/apis/container_v1/classes.rb', line 3651 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_pods_per_node ⇒ Fixnum
Constraint enforced on the max num of pods per node.
Corresponds to the JSON property maxPodsPerNode
3649 3650 3651 |
# File 'lib/google/apis/container_v1/classes.rb', line 3649 def max_pods_per_node @max_pods_per_node end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3656 3657 3658 |
# File 'lib/google/apis/container_v1/classes.rb', line 3656 def update!(**args) @max_pods_per_node = args[:max_pods_per_node] if args.key?(:max_pods_per_node) end |