Google Cloud Notebooks V1 Client - Class SwitchRuntimeRequest (1.0.0-RC1)

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
Name Description
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
Type Description
string

setName

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

Parameter
Name Description
var string
Returns
Type Description
$this

getMachineType

machine type.

Returns
Type Description
string

setMachineType

machine type.

Parameter
Name Description
var string
Returns
Type Description
$this

getAcceleratorConfig

accelerator config.

Returns
Type Description
Google\Cloud\Notebooks\V1\RuntimeAcceleratorConfig|null

hasAcceleratorConfig

clearAcceleratorConfig

setAcceleratorConfig

accelerator config.

Parameter
Name Description
var Google\Cloud\Notebooks\V1\RuntimeAcceleratorConfig
Returns
Type Description
$this

getRequestId

Idempotent request UUID.

Returns
Type Description
string

setRequestId

Idempotent request UUID.

Parameter
Name Description
var string
Returns
Type Description
$this

static::build

Parameter
Name Description
name string

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

Returns
Type Description
Google\Cloud\Notebooks\V1\SwitchRuntimeRequest