Class: Google::Apis::ComputeBeta::InstanceConsumptionData
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::InstanceConsumptionData
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb
Instance Attribute Summary collapse
-
#consumption_info ⇒ Google::Apis::ComputeBeta::InstanceConsumptionInfo
Resources consumed by the instance.
-
#instance ⇒ String
Server-defined URL for the instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceConsumptionData
constructor
A new instance of InstanceConsumptionData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstanceConsumptionData
Returns a new instance of InstanceConsumptionData.
15290 15291 15292 |
# File 'lib/google/apis/compute_beta/classes.rb', line 15290 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consumption_info ⇒ Google::Apis::ComputeBeta::InstanceConsumptionInfo
Resources consumed by the instance.
Corresponds to the JSON property consumptionInfo
15283 15284 15285 |
# File 'lib/google/apis/compute_beta/classes.rb', line 15283 def consumption_info @consumption_info end |
#instance ⇒ String
Server-defined URL for the instance.
Corresponds to the JSON property instance
15288 15289 15290 |
# File 'lib/google/apis/compute_beta/classes.rb', line 15288 def instance @instance end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15295 15296 15297 15298 |
# File 'lib/google/apis/compute_beta/classes.rb', line 15295 def update!(**args) @consumption_info = args[:consumption_info] if args.key?(:consumption_info) @instance = args[:instance] if args.key?(:instance) end |