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.



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

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)


1913
1914
1915
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1913

def total
  @total
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1920
1921
1922
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1920

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