Class: Google::Apis::IntegrationsV1::GoogleCloudConnectorsV1ResourceLimits
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1::GoogleCloudConnectorsV1ResourceLimits
- 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
-
#cpu ⇒ String
Output only.
-
#memory ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudConnectorsV1ResourceLimits
constructor
A new instance of GoogleCloudConnectorsV1ResourceLimits.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#cpu ⇒ String
Output only. CPU limit.
Corresponds to the JSON property cpu
6211 6212 6213 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 6211 def cpu @cpu end |
#memory ⇒ String
Output only. Memory limit.
Corresponds to the JSON property memory
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 |