Google Cloud Notebooks V1 Client - Class SwitchRuntimeRequest (0.6.2)

Reference documentation and code samples for the Google Cloud Notebooks V1 Client class SwitchRuntimeRequest.

Request for switching a Managed Notebook Runtime.

Generated from protobuf message google.cloud.notebooks.v1.SwitchRuntimeRequest

Namespace

Google \ Cloud \ Notebooks \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. Format: projects/{project_id}/locations/{location}/runtimes/{runtime_id}

↳ machine_type string

machine type.

↳ accelerator_config Google\Cloud\Notebooks\V1\RuntimeAcceleratorConfig

accelerator config.

↳ request_id string

Idempotent request UUID.

getName

Required. Format: projects/{project_id}/locations/{location}/runtimes/{runtime_id}

Returns
TypeDescription
string

setName

Required. Format: projects/{project_id}/locations/{location}/runtimes/{runtime_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMachineType

machine type.

Returns
TypeDescription
string

setMachineType

machine type.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAcceleratorConfig

accelerator config.

Returns
TypeDescription
Google\Cloud\Notebooks\V1\RuntimeAcceleratorConfig|null

hasAcceleratorConfig

clearAcceleratorConfig

setAcceleratorConfig

accelerator config.

Parameter
NameDescription
var Google\Cloud\Notebooks\V1\RuntimeAcceleratorConfig
Returns
TypeDescription
$this

getRequestId

Idempotent request UUID.

Returns
TypeDescription
string

setRequestId

Idempotent request UUID.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
name string

Required. Format: projects/{project_id}/locations/{location}/runtimes/{runtime_id}

Returns
TypeDescription
Google\Cloud\Notebooks\V1\SwitchRuntimeRequest