Google Cloud Notebooks V1 Client - Class CreateEnvironmentRequest (0.4.1)

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
NameDescription
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
TypeDescription
string

setParent

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

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getEnvironment

Required. The environment to be created.

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

hasEnvironment

clearEnvironment

setEnvironment

Required. The environment to be created.

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

static::build

Parameters
NameDescription
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
TypeDescription
Google\Cloud\Notebooks\V1\CreateEnvironmentRequest