Google Cloud Notebooks V1 Client - Class CreateEnvironmentRequest (1.0.0)

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

Request for creating a notebook environment.

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

Namespace

Google \ Cloud \ Notebooks \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

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

↳ environment_id string

Required. User-defined unique ID of this environment. The environment_id must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.

↳ environment Google\Cloud\Notebooks\V1\Environment

Required. The environment to be created.

getParent

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

Returns
Type Description
string

setParent

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

Parameter
Name Description
var string
Returns
Type Description
$this

getEnvironmentId

Required. User-defined unique ID of this environment. The environment_id must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.

Returns
Type Description
string

setEnvironmentId

Required. User-defined unique ID of this environment. The environment_id must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.

Parameter
Name Description
var string
Returns
Type Description
$this

getEnvironment

Required. The environment to be created.

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

hasEnvironment

clearEnvironment

setEnvironment

Required. The environment to be created.

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

static::build

Parameters
Name Description
parent string

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

environment Google\Cloud\Notebooks\V1\Environment

Required. The environment to be created.

environmentId string

Required. User-defined unique ID of this environment. The environment_id must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.

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