Class: Google::Apis::TpuV2alpha1::QueuedResource
- Inherits:
-
Object
- Object
- Google::Apis::TpuV2alpha1::QueuedResource
- 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
A QueuedResource represents a request for resources that will be placed in a queue and fulfilled when the necessary resources are available.
Instance Attribute Summary collapse
-
#best_effort ⇒ Google::Apis::TpuV2alpha1::BestEffort
BestEffort tier definition.
-
#create_time ⇒ String
Output only.
-
#guaranteed ⇒ Google::Apis::TpuV2alpha1::Guaranteed
Guaranteed tier definition.
-
#name ⇒ String
Output only.
-
#queueing_policy ⇒ Google::Apis::TpuV2alpha1::QueueingPolicy
Defines the policy of the QueuedRequest.
-
#reservation_name ⇒ String
Name of the reservation in which the resource should be provisioned.
-
#spot ⇒ Google::Apis::TpuV2alpha1::Spot
Spot tier definition.
-
#state ⇒ Google::Apis::TpuV2alpha1::QueuedResourceState
QueuedResourceState defines the details of the QueuedResource request.
-
#tpu ⇒ Google::Apis::TpuV2alpha1::Tpu
Details of the TPU resource(s) being requested.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueuedResource
constructor
A new instance of QueuedResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QueuedResource
Returns a new instance of QueuedResource.
1311 1312 1313 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1311 def initialize(**args) update!(**args) end |
Instance Attribute Details
#best_effort ⇒ Google::Apis::TpuV2alpha1::BestEffort
BestEffort tier definition.
Corresponds to the JSON property bestEffort
1268 1269 1270 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1268 def best_effort @best_effort end |
#create_time ⇒ String
Output only. The time when the QueuedResource was created.
Corresponds to the JSON property createTime
1273 1274 1275 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1273 def create_time @create_time end |
#guaranteed ⇒ Google::Apis::TpuV2alpha1::Guaranteed
Guaranteed tier definition.
Corresponds to the JSON property guaranteed
1278 1279 1280 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1278 def guaranteed @guaranteed end |
#name ⇒ String
Output only. Immutable. The name of the QueuedResource.
Corresponds to the JSON property name
1283 1284 1285 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1283 def name @name end |
#queueing_policy ⇒ Google::Apis::TpuV2alpha1::QueueingPolicy
Defines the policy of the QueuedRequest.
Corresponds to the JSON property queueingPolicy
1288 1289 1290 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1288 def queueing_policy @queueing_policy end |
#reservation_name ⇒ String
Name of the reservation in which the resource should be provisioned. Format:
projects/project/locations/zone/reservations/reservation
Corresponds to the JSON property reservationName
1294 1295 1296 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1294 def reservation_name @reservation_name end |
#spot ⇒ Google::Apis::TpuV2alpha1::Spot
Spot tier definition.
Corresponds to the JSON property spot
1299 1300 1301 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1299 def spot @spot end |
#state ⇒ Google::Apis::TpuV2alpha1::QueuedResourceState
QueuedResourceState defines the details of the QueuedResource request.
Corresponds to the JSON property state
1304 1305 1306 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1304 def state @state end |
#tpu ⇒ Google::Apis::TpuV2alpha1::Tpu
Details of the TPU resource(s) being requested.
Corresponds to the JSON property tpu
1309 1310 1311 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1309 def tpu @tpu end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1316 def update!(**args) @best_effort = args[:best_effort] if args.key?(:best_effort) @create_time = args[:create_time] if args.key?(:create_time) @guaranteed = args[:guaranteed] if args.key?(:guaranteed) @name = args[:name] if args.key?(:name) @queueing_policy = args[:queueing_policy] if args.key?(:queueing_policy) @reservation_name = args[:reservation_name] if args.key?(:reservation_name) @spot = args[:spot] if args.key?(:spot) @state = args[:state] if args.key?(:state) @tpu = args[:tpu] if args.key?(:tpu) end |