Class: Google::Apis::GkehubV1beta::ConfigManagementContainerOverride

Inherits:
Object
  • Object
show all
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

Configuration for a container override.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigManagementContainerOverride

Returns a new instance of ConfigManagementContainerOverride.



1285
1286
1287
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1285

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#container_nameString

Required. The name of the container. Corresponds to the JSON property containerName

Returns:

  • (String)


1263
1264
1265
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1263

def container_name
  @container_name
end

#cpu_limitString

Optional. The cpu limit of the container. Corresponds to the JSON property cpuLimit

Returns:

  • (String)


1268
1269
1270
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1268

def cpu_limit
  @cpu_limit
end

#cpu_requestString

Optional. The cpu request of the container. Corresponds to the JSON property cpuRequest

Returns:

  • (String)


1273
1274
1275
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1273

def cpu_request
  @cpu_request
end

#memory_limitString

Optional. The memory limit of the container. Corresponds to the JSON property memoryLimit

Returns:

  • (String)


1278
1279
1280
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1278

def memory_limit
  @memory_limit
end

#memory_requestString

Optional. The memory request of the container. Corresponds to the JSON property memoryRequest

Returns:

  • (String)


1283
1284
1285
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1283

def memory_request
  @memory_request
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1290
1291
1292
1293
1294
1295
1296
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1290

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