Class: Google::Apis::TpuV2alpha1::Usage
- Inherits:
-
Object
- Object
- Google::Apis::TpuV2alpha1::Usage
- 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
-
#total ⇒ Fixnum
The real-time value of usage within the reservation, with the unit specified in field capacity_units.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Usage
constructor
A new instance of Usage.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#total ⇒ Fixnum
The real-time value of usage within the reservation, with the unit specified
in field capacity_units.
Corresponds to the JSON property total
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 |