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.
1247 1248 1249 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1247 def initialize(**args) update!(**args) end |
Instance Attribute Details
#best_effort ⇒ Google::Apis::TpuV2alpha1::BestEffort
BestEffort tier definition.
Corresponds to the JSON property bestEffort
1204 1205 1206 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1204 def best_effort @best_effort end |
#create_time ⇒ String
Output only. The time when the QueuedResource was created.
Corresponds to the JSON property createTime
1209 1210 1211 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1209 def create_time @create_time end |
#guaranteed ⇒ Google::Apis::TpuV2alpha1::Guaranteed
Guaranteed tier definition.
Corresponds to the JSON property guaranteed
1214 1215 1216 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1214 def guaranteed @guaranteed end |
#name ⇒ String
Output only. Immutable. The name of the QueuedResource.
Corresponds to the JSON property name
1219 1220 1221 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1219 def name @name end |
#queueing_policy ⇒ Google::Apis::TpuV2alpha1::QueueingPolicy
Defines the policy of the QueuedRequest.
Corresponds to the JSON property queueingPolicy
1224 1225 1226 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1224 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
1230 1231 1232 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1230 def reservation_name @reservation_name end |
#spot ⇒ Google::Apis::TpuV2alpha1::Spot
Spot tier definition.
Corresponds to the JSON property spot
1235 1236 1237 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1235 def spot @spot end |
#state ⇒ Google::Apis::TpuV2alpha1::QueuedResourceState
QueuedResourceState defines the details of the QueuedResource request.
Corresponds to the JSON property state
1240 1241 1242 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1240 def state @state end |
#tpu ⇒ Google::Apis::TpuV2alpha1::Tpu
Details of the TPU resource(s) being requested.
Corresponds to the JSON property tpu
1245 1246 1247 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1245 def tpu @tpu end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1252 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 |