Class: Google::Apis::ComputeBeta::InstanceConsumptionData

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceConsumptionData

Returns a new instance of InstanceConsumptionData.



15489
15490
15491
# File 'lib/google/apis/compute_beta/classes.rb', line 15489

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

Instance Attribute Details

#consumption_infoGoogle::Apis::ComputeBeta::InstanceConsumptionInfo

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



15482
15483
15484
# File 'lib/google/apis/compute_beta/classes.rb', line 15482

def consumption_info
  @consumption_info
end

#instanceString

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

Returns:

  • (String)


15487
15488
15489
# File 'lib/google/apis/compute_beta/classes.rb', line 15487

def instance
  @instance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15494
15495
15496
15497
# File 'lib/google/apis/compute_beta/classes.rb', line 15494

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