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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Usage

Returns a new instance of Usage.



1812
1813
1814
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1812

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)


1810
1811
1812
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1810

def total
  @total
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1817
1818
1819
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1817

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