Google Cloud Tpu V2 Client - Class QueuedResource (2.2.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

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time when the QueuedResource was created.

Parameter
Name
Description
Returns
Type
Description
$this

getTpu

Optional. Defines a TPU resource.

Returns
Type
Description

hasTpu

setTpu

Optional. Defines a TPU resource.

Parameter
Name
Description
Returns
Type
Description
$this

getSpot

Optional. The Spot tier.

Returns
Type
Description

hasSpot

setSpot

Optional. The Spot tier.

Parameter
Name
Description
Returns
Type
Description
$this

getGuaranteed

Optional. The Guaranteed tier

Returns
Type
Description

hasGuaranteed

setGuaranteed

Optional. The Guaranteed tier

Parameter
Name
Description
Returns
Type
Description
$this

getQueueingPolicy

Optional. The queueing policy of the QueuedRequest.

Returns
Type
Description

hasQueueingPolicy

clearQueueingPolicy

setQueueingPolicy

Optional. The queueing policy of the QueuedRequest.

Parameter
Name
Description
Returns
Type
Description
$this

getState

Output only. State of the QueuedResource request.

Returns
Type
Description

hasState

clearState

setState

Output only. State of the QueuedResource request.

Parameter
Name
Description
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
Design a Mobile Site
View Site in Mobile | Classic
Share by: