Class: Google::Apis::TpuV2::Guaranteed

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_durationString

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

Returns:

  • (String)


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