Class: Google::Apis::TpuV2alpha1::QueueingPolicy
- Inherits:
-
Object
- Object
- Google::Apis::TpuV2alpha1::QueueingPolicy
- 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
Overview
Defines the policy of the QueuedRequest.
Instance Attribute Summary collapse
-
#valid_after_duration ⇒ String
A relative time after which resources may be created.
-
#valid_after_time ⇒ String
An absolute time at which resources may be created.
-
#valid_interval ⇒ Google::Apis::TpuV2alpha1::Interval
Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).
-
#valid_until_duration ⇒ String
A relative time after which resources should not be created.
-
#valid_until_time ⇒ String
An absolute time after which resources should not be created.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueueingPolicy
constructor
A new instance of QueueingPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QueueingPolicy
Returns a new instance of QueueingPolicy.
1235 1236 1237 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1235 def initialize(**args) update!(**args) end |
Instance Attribute Details
#valid_after_duration ⇒ String
A relative time after which resources may be created.
Corresponds to the JSON property validAfterDuration
1208 1209 1210 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1208 def valid_after_duration @valid_after_duration end |
#valid_after_time ⇒ String
An absolute time at which resources may be created.
Corresponds to the JSON property validAfterTime
1213 1214 1215 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1213 def valid_after_time @valid_after_time end |
#valid_interval ⇒ Google::Apis::TpuV2alpha1::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
1221 1222 1223 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1221 def valid_interval @valid_interval end |
#valid_until_duration ⇒ String
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
1227 1228 1229 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1227 def valid_until_duration @valid_until_duration end |
#valid_until_time ⇒ String
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
1233 1234 1235 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1233 def valid_until_time @valid_until_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1240 1241 1242 1243 1244 1245 1246 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1240 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 |