Class: Google::Apis::TpuV2::Guaranteed
- Inherits:
-
Object
- Object
- Google::Apis::TpuV2::Guaranteed
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/tpu_v2/classes.rb,
lib/google/apis/tpu_v2/representations.rb,
lib/google/apis/tpu_v2/representations.rb
Overview
Guaranteed tier definition.
Instance Attribute Summary collapse
-
#min_duration ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Guaranteed
constructor
A new instance of Guaranteed.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Guaranteed
Returns a new instance of Guaranteed.
307 308 309 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 307 def initialize(**args) update!(**args) end |
Instance Attribute Details
#min_duration ⇒ String
Optional. Defines the minimum duration of the guarantee. If specified, the
requested resources will only be provisioned if they can be allocated for at
least the given duration.
Corresponds to the JSON property minDuration
305 306 307 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 305 def min_duration @min_duration end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
312 313 314 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 312 def update!(**args) @min_duration = args[:min_duration] if args.key?(:min_duration) end |