Use a container image to start the notebook instance.
↳ post_startup_script
string
Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path. Example:"gs://path-to-file/file-name"
Path to a Bash script that automatically runs after a notebook instance
fully boots up. The path must be a URL or
Cloud Storage path. Example:"gs://path-to-file/file-name"
Returns
Type
Description
string
setPostStartupScript
Path to a Bash script that automatically runs after a notebook instance
fully boots up. The path must be a URL or
Cloud Storage path. Example:"gs://path-to-file/file-name"
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCreateTime
Output only. The time at which this environment was created.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Notebooks V1 Client - Class Environment (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-notebooks/latest/V1.Environment)\n- [1.0.4](/php/docs/reference/cloud-notebooks/1.0.4/V1.Environment)\n- [0.7.5](/php/docs/reference/cloud-notebooks/0.7.5/V1.Environment)\n- [0.6.2](/php/docs/reference/cloud-notebooks/0.6.2/V1.Environment)\n- [0.5.0](/php/docs/reference/cloud-notebooks/0.5.0/V1.Environment)\n- [0.4.1](/php/docs/reference/cloud-notebooks/0.4.1/V1.Environment)\n- [0.3.6](/php/docs/reference/cloud-notebooks/0.3.6/V1.Environment) \nReference documentation and code samples for the Google Cloud Notebooks V1 Client class Environment.\n\nDefinition of a software environment that is used to start a notebook\ninstance.\n\nGenerated from protobuf message `google.cloud.notebooks.v1.Environment`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Notebooks \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. Name of this environment.\n\nFormat:\n`projects/{project_id}/locations/{location}/environments/{environment_id}`\n\n### setName\n\nOutput only. Name of this environment.\n\nFormat:\n`projects/{project_id}/locations/{location}/environments/{environment_id}`\n\n### getDisplayName\n\nDisplay name of this environment for the UI.\n\n### setDisplayName\n\nDisplay name of this environment for the UI.\n\n### getDescription\n\nA brief description of this environment.\n\n### setDescription\n\nA brief description of this environment.\n\n### getVmImage\n\nUse a Compute Engine VM image to start the notebook instance.\n\n### hasVmImage\n\n### setVmImage\n\nUse a Compute Engine VM image to start the notebook instance.\n\n### getContainerImage\n\nUse a container image to start the notebook instance.\n\n### hasContainerImage\n\n### setContainerImage\n\nUse a container image to start the notebook instance.\n\n### getPostStartupScript\n\nPath to a Bash script that automatically runs after a notebook instance\nfully boots up. The path must be a URL or\nCloud Storage path. Example: `\"gs://path-to-file/file-name\"`\n\n### setPostStartupScript\n\nPath to a Bash script that automatically runs after a notebook instance\nfully boots up. The path must be a URL or\nCloud Storage path. Example: `\"gs://path-to-file/file-name\"`\n\n### getCreateTime\n\nOutput only. The time at which this environment was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. The time at which this environment was created.\n\n### getImageType"]]