Class: Google::Apis::ComputeAlpha::InstanceConsumptionData
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::InstanceConsumptionData
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
-
#consumption_info ⇒ Google::Apis::ComputeAlpha::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.
14657 14658 14659 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 14657 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consumption_info ⇒ Google::Apis::ComputeAlpha::InstanceConsumptionInfo
Resources consumed by the instance.
Corresponds to the JSON property consumptionInfo
14650 14651 14652 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 14650 def consumption_info @consumption_info end |
#instance ⇒ String
Server-defined URL for the instance.
Corresponds to the JSON property instance
14655 14656 14657 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 14655 def instance @instance end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14662 14663 14664 14665 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 14662 def update!(**args) @consumption_info = args[:consumption_info] if args.key?(:consumption_info) @instance = args[:instance] if args.key?(:instance) end |