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

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

setName

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

Parameter
Name Description
var string
Returns
Type Description
$this

getType

Required. Type of this accelerator.

Returns
Type Description
int

setType

Required. Type of this accelerator.

Parameter
Name Description
var int
Returns
Type Description
$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
Type Description
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
Name Description
var int|string
Returns
Type Description
$this