Google Cloud Notebooks V2 Client - Class Instance (0.6.2)

Reference documentation and code samples for the Google Cloud Notebooks V2 Client class Instance.

The definition of a notebook instance.

Generated from protobuf message google.cloud.notebooks.v2.Instance

Namespace

Google \ Cloud \ Notebooks \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The name of this notebook instance. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

↳ gce_setup Google\Cloud\Notebooks\V2\GceSetup

Optional. Compute Engine setup for the notebook. Uses notebook-defined fields.

↳ proxy_uri string

Output only. The proxy endpoint that is used to access the Jupyter notebook.

↳ instance_owners array

Optional. Input only. The owner of this instance after creation. Format: alias@example.com Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.

↳ creator string

Output only. Email address of entity that sent original CreateInstance request.

↳ state int

Output only. The state of this instance.

↳ upgrade_history array<Google\Cloud\Notebooks\V2\UpgradeHistoryEntry>

Output only. The upgrade history of this instance.

↳ id string

Output only. Unique ID of the resource.

↳ health_state int

Output only. Instance health_state.

↳ health_info array|Google\Protobuf\Internal\MapField

Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }

↳ create_time Google\Protobuf\Timestamp

Output only. Instance creation time.

↳ update_time Google\Protobuf\Timestamp

Output only. Instance update time.

↳ disable_proxy_access bool

Optional. If true, the notebook instance will not register with the proxy.

↳ labels array|Google\Protobuf\Internal\MapField

Optional. Labels to apply to this instance. These can be later modified by the UpdateInstance method.

getName

Output only. The name of this notebook instance. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

Returns
TypeDescription
string

setName

Output only. The name of this notebook instance. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGceSetup

Optional. Compute Engine setup for the notebook. Uses notebook-defined fields.

Returns
TypeDescription
Google\Cloud\Notebooks\V2\GceSetup|null

hasGceSetup

setGceSetup

Optional. Compute Engine setup for the notebook. Uses notebook-defined fields.

Parameter
NameDescription
var Google\Cloud\Notebooks\V2\GceSetup
Returns
TypeDescription
$this

getProxyUri

Output only. The proxy endpoint that is used to access the Jupyter notebook.

Returns
TypeDescription
string

setProxyUri

Output only. The proxy endpoint that is used to access the Jupyter notebook.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInstanceOwners

Optional. Input only. The owner of this instance after creation. Format: alias@example.com Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setInstanceOwners

Optional. Input only. The owner of this instance after creation. Format: alias@example.com Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getCreator

Output only. Email address of entity that sent original CreateInstance request.

Returns
TypeDescription
string

setCreator

Output only. Email address of entity that sent original CreateInstance request.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

Output only. The state of this instance.

Returns
TypeDescription
int

setState

Output only. The state of this instance.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getUpgradeHistory

Output only. The upgrade history of this instance.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setUpgradeHistory

Output only. The upgrade history of this instance.

Parameter
NameDescription
var array<Google\Cloud\Notebooks\V2\UpgradeHistoryEntry>
Returns
TypeDescription
$this

getId

Output only. Unique ID of the resource.

Returns
TypeDescription
string

setId

Output only. Unique ID of the resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getHealthState

Output only. Instance health_state.

Returns
TypeDescription
int

setHealthState

Output only. Instance health_state.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getHealthInfo

Output only. Additional information about instance health.

Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setHealthInfo

Output only. Additional information about instance health.

Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getCreateTime

Output only. Instance creation time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Instance creation time.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. Instance update time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Instance update time.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getDisableProxyAccess

Optional. If true, the notebook instance will not register with the proxy.

Returns
TypeDescription
bool

setDisableProxyAccess

Optional. If true, the notebook instance will not register with the proxy.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getLabels

Optional. Labels to apply to this instance.

These can be later modified by the UpdateInstance method.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Optional. Labels to apply to this instance.

These can be later modified by the UpdateInstance method.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getInfrastructure

Returns
TypeDescription
string