Class: Google::Apis::IntegrationsV1::GoogleCloudConnectorsV1ResourceLimits

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/integrations_v1/classes.rb,
lib/google/apis/integrations_v1/representations.rb,
lib/google/apis/integrations_v1/representations.rb

Overview

Resource limits defined for connection pods of a given connector type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudConnectorsV1ResourceLimits

Returns a new instance of GoogleCloudConnectorsV1ResourceLimits.



6218
6219
6220
# File 'lib/google/apis/integrations_v1/classes.rb', line 6218

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

Instance Attribute Details

#cpuString

Output only. CPU limit. Corresponds to the JSON property cpu

Returns:

  • (String)


6211
6212
6213
# File 'lib/google/apis/integrations_v1/classes.rb', line 6211

def cpu
  @cpu
end

#memoryString

Output only. Memory limit. Corresponds to the JSON property memory

Returns:

  • (String)


6216
6217
6218
# File 'lib/google/apis/integrations_v1/classes.rb', line 6216

def memory
  @memory
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6223
6224
6225
6226
# File 'lib/google/apis/integrations_v1/classes.rb', line 6223

def update!(**args)
  @cpu = args[:cpu] if args.key?(:cpu)
  @memory = args[:memory] if args.key?(:memory)
end