Google Cloud Notebooks V1 Client - Class UpdateRuntimeRequest (0.6.2)

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

Request for updating a Managed Notebook configuration.

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

Namespace

Google \ Cloud \ Notebooks \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ runtime Google\Cloud\Notebooks\V1\Runtime

Required. The Runtime to be updated.

↳ update_mask Google\Protobuf\FieldMask

Required. Specifies the path, relative to Runtime, of the field to update. For example, to change the software configuration kernels, the update_mask parameter would be specified as software_config.kernels, and the PATCH request body would specify the new value, as follows: { "software_config":{ "kernels": [{ 'repository': 'gcr.io/deeplearning-platform-release/pytorch-gpu', 'tag': 'latest' }], } } Currently, only the following fields can be updated: - software_config.kernels - software_config.post_startup_script - software_config.custom_gpu_driver_path - software_config.idle_shutdown - software_config.idle_shutdown_timeout - software_config.disable_terminal

↳ request_id string

Idempotent request UUID.

getRuntime

Required. The Runtime to be updated.

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

hasRuntime

clearRuntime

setRuntime

Required. The Runtime to be updated.

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

getUpdateMask

Required. Specifies the path, relative to Runtime, of the field to update. For example, to change the software configuration kernels, the update_mask parameter would be specified as software_config.kernels, and the PATCH request body would specify the new value, as follows: { "software_config":{ "kernels": [{ 'repository': 'gcr.io/deeplearning-platform-release/pytorch-gpu', 'tag': 'latest' }], } } Currently, only the following fields can be updated:

  • software_config.kernels
  • software_config.post_startup_script
  • software_config.custom_gpu_driver_path
  • software_config.idle_shutdown
  • software_config.idle_shutdown_timeout
  • software_config.disable_terminal
Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Required. Specifies the path, relative to Runtime, of the field to update. For example, to change the software configuration kernels, the update_mask parameter would be specified as software_config.kernels, and the PATCH request body would specify the new value, as follows: { "software_config":{ "kernels": [{ 'repository': 'gcr.io/deeplearning-platform-release/pytorch-gpu', 'tag': 'latest' }], } } Currently, only the following fields can be updated:

  • software_config.kernels
  • software_config.post_startup_script
  • software_config.custom_gpu_driver_path
  • software_config.idle_shutdown
  • software_config.idle_shutdown_timeout
  • software_config.disable_terminal
Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this

getRequestId

Idempotent request UUID.

Returns
TypeDescription
string

setRequestId

Idempotent request UUID.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
runtime Google\Cloud\Notebooks\V1\Runtime

Required. The Runtime to be updated.

updateMask Google\Protobuf\FieldMask

Required. Specifies the path, relative to Runtime, of the field to update. For example, to change the software configuration kernels, the update_mask parameter would be specified as software_config.kernels, and the PATCH request body would specify the new value, as follows:

{ "software_config":{ "kernels": [{ 'repository': 'gcr.io/deeplearning-platform-release/pytorch-gpu', 'tag': 'latest' }], } }

Currently, only the following fields can be updated:

  • software_config.kernels
  • software_config.post_startup_script
  • software_config.custom_gpu_driver_path
  • software_config.idle_shutdown
  • software_config.idle_shutdown_timeout
  • software_config.disable_terminal
Returns
TypeDescription
Google\Cloud\Notebooks\V1\UpdateRuntimeRequest