Class: Google::Apis::GkehubV1::ConfigManagementContainerOverride

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigManagementContainerOverride

Returns a new instance of ConfigManagementContainerOverride.



1251
1252
1253
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1251

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)


1221
1222
1223
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1221

def container_name
  @container_name
end

#cpu_limitString

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

Returns:

  • (String)


1228
1229
1230
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1228

def cpu_limit
  @cpu_limit
end

#cpu_requestString

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

Returns:

  • (String)


1235
1236
1237
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1235

def cpu_request
  @cpu_request
end

#memory_limitString

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

Returns:

  • (String)


1242
1243
1244
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1242

def memory_limit
  @memory_limit
end

#memory_requestString

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

Returns:

  • (String)


1249
1250
1251
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1249

def memory_request
  @memory_request
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1256
1257
1258
1259
1260
1261
1262
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1256

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