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.



1068
1069
1070
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1068

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

Instance Attribute Details

#best_effortGoogle::Apis::TpuV2alpha1::BestEffort

BestEffort tier definition. Corresponds to the JSON property bestEffort



1041
1042
1043
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1041

def best_effort
  @best_effort
end

#guaranteedGoogle::Apis::TpuV2alpha1::Guaranteed

Guaranteed tier definition. Corresponds to the JSON property guaranteed



1046
1047
1048
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1046

def guaranteed
  @guaranteed
end

#nameString

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

Returns:

  • (String)


1051
1052
1053
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1051

def name
  @name
end

#queueing_policyGoogle::Apis::TpuV2alpha1::QueueingPolicy

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



1056
1057
1058
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1056

def queueing_policy
  @queueing_policy
end

#stateGoogle::Apis::TpuV2alpha1::QueuedResourceState

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



1061
1062
1063
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1061

def state
  @state
end

#tpuGoogle::Apis::TpuV2alpha1::Tpu

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



1066
1067
1068
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1066

def tpu
  @tpu
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1073
1074
1075
1076
1077
1078
1079
1080
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1073

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