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.



1918
1919
1920
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1918

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)


1916
1917
1918
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1916

def total
  @total
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1923
1924
1925
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1923

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