Class: Google::Apis::GkehubV1alpha::ConfigManagementContainerOverride
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1alpha::ConfigManagementContainerOverride
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/representations.rb
Overview
Configuration for a container override.
Instance Attribute Summary collapse
-
#container_name ⇒ String
Required.
-
#cpu_limit ⇒ String
Optional.
-
#cpu_request ⇒ String
Optional.
-
#memory_limit ⇒ String
Optional.
-
#memory_request ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConfigManagementContainerOverride
constructor
A new instance of ConfigManagementContainerOverride.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConfigManagementContainerOverride
Returns a new instance of ConfigManagementContainerOverride.
1536 1537 1538 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1536 def initialize(**args) update!(**args) end |
Instance Attribute Details
#container_name ⇒ String
Required. The name of the container.
Corresponds to the JSON property containerName
1506 1507 1508 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1506 def container_name @container_name end |
#cpu_limit ⇒ String
Optional. The cpu limit of the container. Use the following CPU resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
meaning-of-cpu.
Corresponds to the JSON property cpuLimit
1513 1514 1515 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1513 def cpu_limit @cpu_limit end |
#cpu_request ⇒ String
Optional. The cpu request of the container. Use the following CPU resource
units: https://kubernetes.io/docs/concepts/configuration/manage-resources-
containers/#meaning-of-cpu.
Corresponds to the JSON property cpuRequest
1520 1521 1522 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1520 def cpu_request @cpu_request end |
#memory_limit ⇒ String
Optional. The memory limit of the container. Use the following memory resource
units: https://kubernetes.io/docs/concepts/configuration/manage-resources-
containers/#meaning-of-memory.
Corresponds to the JSON property memoryLimit
1527 1528 1529 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1527 def memory_limit @memory_limit end |
#memory_request ⇒ String
Optional. The memory request of the container. Use the following memory
resource units: https://kubernetes.io/docs/concepts/configuration/manage-
resources-containers/#meaning-of-memory.
Corresponds to the JSON property memoryRequest
1534 1535 1536 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1534 def memory_request @memory_request end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1541 1542 1543 1544 1545 1546 1547 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1541 def update!(**args) @container_name = args[:container_name] if args.key?(:container_name) @cpu_limit = args[:cpu_limit] if args.key?(:cpu_limit) @cpu_request = args[:cpu_request] if args.key?(:cpu_request) @memory_limit = args[:memory_limit] if args.key?(:memory_limit) @memory_request = args[:memory_request] if args.key?(:memory_request) end |