Class: Google::Apis::ComputeBeta::ResourceCommitment
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::ResourceCommitment
- Defined in:
- generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb
Overview
Commitment for a particular resource (a Commitment is composed of one or more of these).
Instance Attribute Summary collapse
-
#amount ⇒ String
The amount of the resource purchased (in a type-dependent unit, such as bytes).
-
#type ⇒ String
Type of resource for which this commitment applies.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceCommitment
constructor
A new instance of ResourceCommitment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ResourceCommitment
Returns a new instance of ResourceCommitment
9131 9132 9133 |
# File 'generated/google/apis/compute_beta/classes.rb', line 9131 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount ⇒ String
The amount of the resource purchased (in a type-dependent unit, such as bytes).
Corresponds to the JSON property amount
9124 9125 9126 |
# File 'generated/google/apis/compute_beta/classes.rb', line 9124 def amount @amount end |
#type ⇒ String
Type of resource for which this commitment applies.
Corresponds to the JSON property type
9129 9130 9131 |
# File 'generated/google/apis/compute_beta/classes.rb', line 9129 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9136 9137 9138 9139 |
# File 'generated/google/apis/compute_beta/classes.rb', line 9136 def update!(**args) @amount = args[:amount] if args.key?(:amount) @type = args[:type] if args.key?(:type) end |