Class: Google::Apis::ComputeV1::InstanceConsumptionData
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::InstanceConsumptionData
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb
Instance Attribute Summary collapse
-
#consumption_info ⇒ Google::Apis::ComputeV1::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.
13063 13064 13065 |
# File 'lib/google/apis/compute_v1/classes.rb', line 13063 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consumption_info ⇒ Google::Apis::ComputeV1::InstanceConsumptionInfo
Resources consumed by the instance.
Corresponds to the JSON property consumptionInfo
13056 13057 13058 |
# File 'lib/google/apis/compute_v1/classes.rb', line 13056 def consumption_info @consumption_info end |
#instance ⇒ String
Server-defined URL for the instance.
Corresponds to the JSON property instance
13061 13062 13063 |
# File 'lib/google/apis/compute_v1/classes.rb', line 13061 def instance @instance end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13068 13069 13070 13071 |
# File 'lib/google/apis/compute_v1/classes.rb', line 13068 def update!(**args) @consumption_info = args[:consumption_info] if args.key?(:consumption_info) @instance = args[:instance] if args.key?(:instance) end |