Class: Google::Apis::GkehubV1beta::ConfigManagementContainerResourceRequirements
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1beta::ConfigManagementContainerResourceRequirements
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1beta/classes.rb,
lib/google/apis/gkehub_v1beta/representations.rb,
lib/google/apis/gkehub_v1beta/representations.rb
Overview
ResourceRequirements allows to override the CPU and memory resource requirements of a container.
Instance Attribute Summary collapse
-
#container_name ⇒ String
Name of the container Corresponds to the JSON property
containerName. -
#cpu_limit ⇒ Google::Apis::GkehubV1beta::ConfigManagementQuantity
The view model of a single quantity, e.g.
-
#memory_limit ⇒ Google::Apis::GkehubV1beta::ConfigManagementQuantity
The view model of a single quantity, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConfigManagementContainerResourceRequirements
constructor
A new instance of ConfigManagementContainerResourceRequirements.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConfigManagementContainerResourceRequirements
Returns a new instance of ConfigManagementContainerResourceRequirements.
482 483 484 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 482 def initialize(**args) update!(**args) end |
Instance Attribute Details
#container_name ⇒ String
Name of the container
Corresponds to the JSON property containerName
466 467 468 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 466 def container_name @container_name end |
#cpu_limit ⇒ Google::Apis::GkehubV1beta::ConfigManagementQuantity
The view model of a single quantity, e.g. "800 MiB". Corresponds to https://
github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/
pkg/api/resource/generated.proto
Corresponds to the JSON property cpuLimit
473 474 475 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 473 def cpu_limit @cpu_limit end |
#memory_limit ⇒ Google::Apis::GkehubV1beta::ConfigManagementQuantity
The view model of a single quantity, e.g. "800 MiB". Corresponds to https://
github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/
pkg/api/resource/generated.proto
Corresponds to the JSON property memoryLimit
480 481 482 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 480 def memory_limit @memory_limit end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
487 488 489 490 491 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 487 def update!(**args) @container_name = args[:container_name] if args.key?(:container_name) @cpu_limit = args[:cpu_limit] if args.key?(:cpu_limit) @memory_limit = args[:memory_limit] if args.key?(:memory_limit) end |