Class: Google::Apis::ComputeV1::InstanceConsumptionData

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceConsumptionData

Returns a new instance of InstanceConsumptionData.



15007
15008
15009
# File 'lib/google/apis/compute_v1/classes.rb', line 15007

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#consumption_infoGoogle::Apis::ComputeV1::InstanceConsumptionInfo

Resources consumed by the instance. Corresponds to the JSON property consumptionInfo



15000
15001
15002
# File 'lib/google/apis/compute_v1/classes.rb', line 15000

def consumption_info
  @consumption_info
end

#instanceString

Server-defined URL for the instance. Corresponds to the JSON property instance

Returns:

  • (String)


15005
15006
15007
# File 'lib/google/apis/compute_v1/classes.rb', line 15005

def instance
  @instance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15012
15013
15014
15015
# File 'lib/google/apis/compute_v1/classes.rb', line 15012

def update!(**args)
  @consumption_info = args[:consumption_info] if args.key?(:consumption_info)
  @instance = args[:instance] if args.key?(:instance)
end