Google Cloud Notebooks V1 Client - Class SetInstanceAcceleratorRequest (0.5.0)

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

Request for setting instance accelerator.

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

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}/instances/{instance_id}

↳ type int

Required. Type of this accelerator.

↳ core_count int|string

Required. Count of cores of this accelerator. Note that not all combinations of type and core_count are valid. Check GPUs on Compute Engine to find a valid combination. TPUs are not supported.

getName

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

Returns
TypeDescription
string

setName

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

Required. Type of this accelerator.

Returns
TypeDescription
int

setType

Required. Type of this accelerator.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCoreCount

Required. Count of cores of this accelerator. Note that not all combinations of type and core_count are valid. Check GPUs on Compute Engine to find a valid combination. TPUs are not supported.

Returns
TypeDescription
int|string

setCoreCount

Required. Count of cores of this accelerator. Note that not all combinations of type and core_count are valid. Check GPUs on Compute Engine to find a valid combination. TPUs are not supported.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this