Class: Google::Apis::TpuV2alpha1::Usage

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/tpu_v2alpha1/classes.rb,
lib/google/apis/tpu_v2alpha1/representations.rb,
lib/google/apis/tpu_v2alpha1/representations.rb

Overview

Usage details of a reservation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Usage

Returns a new instance of Usage.



2076
2077
2078
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 2076

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

Instance Attribute Details

#totalFixnum

The real-time value of usage within the reservation, with the unit specified in field capacity_units. Corresponds to the JSON property total

Returns:

  • (Fixnum)


2074
2075
2076
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 2074

def total
  @total
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2081
2082
2083
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 2081

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