Class: Google::Apis::ContainerV1::SoleTenantConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::SoleTenantConfig
- 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
SoleTenantConfig contains the NodeAffinities to specify what shared sole tenant node groups should back the node pool.
Instance Attribute Summary collapse
-
#min_node_cpus ⇒ Fixnum
Optional.
-
#node_affinities ⇒ Array<Google::Apis::ContainerV1::NodeAffinity>
NodeAffinities used to match to a shared sole tenant node group.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SoleTenantConfig
constructor
A new instance of SoleTenantConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SoleTenantConfig
Returns a new instance of SoleTenantConfig.
8385 8386 8387 |
# File 'lib/google/apis/container_v1/classes.rb', line 8385 def initialize(**args) update!(**args) end |
Instance Attribute Details
#min_node_cpus ⇒ Fixnum
Optional. The minimum number of virtual CPUs this instance will consume when
running on a sole-tenant node. This field can only be set if the node pool is
created in a shared sole-tenant node group.
Corresponds to the JSON property minNodeCpus
8378 8379 8380 |
# File 'lib/google/apis/container_v1/classes.rb', line 8378 def min_node_cpus @min_node_cpus end |
#node_affinities ⇒ Array<Google::Apis::ContainerV1::NodeAffinity>
NodeAffinities used to match to a shared sole tenant node group.
Corresponds to the JSON property nodeAffinities
8383 8384 8385 |
# File 'lib/google/apis/container_v1/classes.rb', line 8383 def node_affinities @node_affinities end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8390 8391 8392 8393 |
# File 'lib/google/apis/container_v1/classes.rb', line 8390 def update!(**args) @min_node_cpus = args[:min_node_cpus] if args.key?(:min_node_cpus) @node_affinities = args[:node_affinities] if args.key?(:node_affinities) end |