Class: Google::Apis::TpuV2alpha1::QueuedResource

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueuedResource

Returns a new instance of QueuedResource.



1105
1106
1107
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1105

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

Instance Attribute Details

#best_effortGoogle::Apis::TpuV2alpha1::BestEffort

BestEffort tier definition. Corresponds to the JSON property bestEffort



1078
1079
1080
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1078

def best_effort
  @best_effort
end

#guaranteedGoogle::Apis::TpuV2alpha1::Guaranteed

Guaranteed tier definition. Corresponds to the JSON property guaranteed



1083
1084
1085
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1083

def guaranteed
  @guaranteed
end

#nameString

Output only. Immutable. The name of the QueuedResource. Corresponds to the JSON property name

Returns:

  • (String)


1088
1089
1090
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1088

def name
  @name
end

#queueing_policyGoogle::Apis::TpuV2alpha1::QueueingPolicy

Defines the policy of the QueuedRequest. Corresponds to the JSON property queueingPolicy



1093
1094
1095
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1093

def queueing_policy
  @queueing_policy
end

#stateGoogle::Apis::TpuV2alpha1::QueuedResourceState

QueuedResourceState defines the details of the QueuedResource request. Corresponds to the JSON property state



1098
1099
1100
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1098

def state
  @state
end

#tpuGoogle::Apis::TpuV2alpha1::Tpu

Details of the TPU resource(s) being requested. Corresponds to the JSON property tpu



1103
1104
1105
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1103

def tpu
  @tpu
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1110
1111
1112
1113
1114
1115
1116
1117
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1110

def update!(**args)
  @best_effort = args[:best_effort] if args.key?(:best_effort)
  @guaranteed = args[:guaranteed] if args.key?(:guaranteed)
  @name = args[:name] if args.key?(:name)
  @queueing_policy = args[:queueing_policy] if args.key?(:queueing_policy)
  @state = args[:state] if args.key?(:state)
  @tpu = args[:tpu] if args.key?(:tpu)
end