Class: Google::Apis::GkehubV1::ConfigManagementContainerOverride
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1::ConfigManagementContainerOverride
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1/classes.rb,
lib/google/apis/gkehub_v1/representations.rb,
lib/google/apis/gkehub_v1/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.
1221 1222 1223 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1221 def initialize(**args) update!(**args) end |
Instance Attribute Details
#container_name ⇒ String
Required. The name of the container.
Corresponds to the JSON property containerName
1199 1200 1201 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1199 def container_name @container_name end |
#cpu_limit ⇒ String
Optional. The cpu limit of the container.
Corresponds to the JSON property cpuLimit
1204 1205 1206 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1204 def cpu_limit @cpu_limit end |
#cpu_request ⇒ String
Optional. The cpu request of the container.
Corresponds to the JSON property cpuRequest
1209 1210 1211 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1209 def cpu_request @cpu_request end |
#memory_limit ⇒ String
Optional. The memory limit of the container.
Corresponds to the JSON property memoryLimit
1214 1215 1216 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1214 def memory_limit @memory_limit end |
#memory_request ⇒ String
Optional. The memory request of the container.
Corresponds to the JSON property memoryRequest
1219 1220 1221 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1219 def memory_request @memory_request end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1226 1227 1228 1229 1230 1231 1232 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1226 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 |