Google Cloud Tpu V2 Client - Class QueuedResource (2.1.0)

Reference documentation and code samples for the Google Cloud Tpu V2 Client class QueuedResource.

A QueuedResource represents a request for resources that will be placed in a queue and fulfilled when the necessary resources are available.

Generated from protobuf message google.cloud.tpu.v2.QueuedResource

Namespace

Google \ Cloud \ Tpu \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Output only. Immutable. The name of the QueuedResource.

↳ create_time Google\Protobuf\Timestamp

Output only. The time when the QueuedResource was created.

↳ tpu QueuedResource\Tpu

Optional. Defines a TPU resource.

↳ spot QueuedResource\Spot

Optional. The Spot tier.

↳ guaranteed QueuedResource\Guaranteed

Optional. The Guaranteed tier

↳ queueing_policy QueuedResource\QueueingPolicy

Optional. The queueing policy of the QueuedRequest.

↳ state QueuedResourceState

Output only. State of the QueuedResource request.

↳ reservation_name string

Optional. Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}

getName

Output only. Immutable. The name of the QueuedResource.

Returns
Type Description
string

setName

Output only. Immutable. The name of the QueuedResource.

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Output only. The time when the QueuedResource was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time when the QueuedResource was created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getTpu

Optional. Defines a TPU resource.

Returns
Type Description
QueuedResource\Tpu|null

hasTpu

setTpu

Optional. Defines a TPU resource.

Parameter
Name Description
var QueuedResource\Tpu
Returns
Type Description
$this

getSpot

Optional. The Spot tier.

Returns
Type Description
QueuedResource\Spot|null

hasSpot

setSpot

Optional. The Spot tier.

Parameter
Name Description
var QueuedResource\Spot
Returns
Type Description
$this

getGuaranteed

Optional. The Guaranteed tier

Returns
Type Description
QueuedResource\Guaranteed|null

hasGuaranteed

setGuaranteed

Optional. The Guaranteed tier

Parameter
Name Description
var QueuedResource\Guaranteed
Returns
Type Description
$this

getQueueingPolicy

Optional. The queueing policy of the QueuedRequest.

Returns
Type Description
QueuedResource\QueueingPolicy|null

hasQueueingPolicy

clearQueueingPolicy

setQueueingPolicy

Optional. The queueing policy of the QueuedRequest.

Parameter
Name Description
var QueuedResource\QueueingPolicy
Returns
Type Description
$this

getState

Output only. State of the QueuedResource request.

Returns
Type Description
QueuedResourceState|null

hasState

clearState

setState

Output only. State of the QueuedResource request.

Parameter
Name Description
var QueuedResourceState
Returns
Type Description
$this

getReservationName

Optional. Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}

Returns
Type Description
string

setReservationName

Optional. Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}

Parameter
Name Description
var string
Returns
Type Description
$this

getResource

Returns
Type Description
string

getTier

Returns
Type Description
string