Class: Google::Apis::TpuV2::QueueingPolicy

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

Defines the policy of the QueuedRequest.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueueingPolicy

Returns a new instance of QueueingPolicy.



1272
1273
1274
# File 'lib/google/apis/tpu_v2/classes.rb', line 1272

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#valid_after_durationString

Optional. A relative time after which resources may be created. Corresponds to the JSON property validAfterDuration

Returns:

  • (String)


1245
1246
1247
# File 'lib/google/apis/tpu_v2/classes.rb', line 1245

def valid_after_duration
  @valid_after_duration
end

#valid_after_timeString

Optional. An absolute time after which resources may be created. Corresponds to the JSON property validAfterTime

Returns:

  • (String)


1250
1251
1252
# File 'lib/google/apis/tpu_v2/classes.rb', line 1250

def valid_after_time
  @valid_after_time
end

#valid_intervalGoogle::Apis::TpuV2::Interval

Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. Corresponds to the JSON property validInterval



1258
1259
1260
# File 'lib/google/apis/tpu_v2/classes.rb', line 1258

def valid_interval
  @valid_interval
end

#valid_until_durationString

Optional. A relative time after which resources should not be created. If the request cannot be fulfilled by this time the request will be failed. Corresponds to the JSON property validUntilDuration

Returns:

  • (String)


1264
1265
1266
# File 'lib/google/apis/tpu_v2/classes.rb', line 1264

def valid_until_duration
  @valid_until_duration
end

#valid_until_timeString

Optional. An absolute time after which resources should not be created. If the request cannot be fulfilled by this time the request will be failed. Corresponds to the JSON property validUntilTime

Returns:

  • (String)


1270
1271
1272
# File 'lib/google/apis/tpu_v2/classes.rb', line 1270

def valid_until_time
  @valid_until_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1277
1278
1279
1280
1281
1282
1283
# File 'lib/google/apis/tpu_v2/classes.rb', line 1277

def update!(**args)
  @valid_after_duration = args[:valid_after_duration] if args.key?(:valid_after_duration)
  @valid_after_time = args[:valid_after_time] if args.key?(:valid_after_time)
  @valid_interval = args[:valid_interval] if args.key?(:valid_interval)
  @valid_until_duration = args[:valid_until_duration] if args.key?(:valid_until_duration)
  @valid_until_time = args[:valid_until_time] if args.key?(:valid_until_time)
end