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"
[[["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-09 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eEnvironment\u003c/code\u003e class in the Google.Cloud.Notebooks.V1 API defines a software environment used to start a notebook instance, with the latest version being 2.5.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEnvironment\u003c/code\u003e class supports starting a notebook instance using either a container image, as defined by the \u003ccode\u003eContainerImage\u003c/code\u003e property, or a Compute Engine VM image, specified by the \u003ccode\u003eVmImage\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties like \u003ccode\u003eCreateTime\u003c/code\u003e to track when the environment was created, \u003ccode\u003eDisplayName\u003c/code\u003e for UI purposes, and \u003ccode\u003eDescription\u003c/code\u003e for a textual overview.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003ePostStartupScript\u003c/code\u003e property allows users to specify a Bash script URL or Cloud Storage path to be run automatically after the notebook instance boots up.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eEnvironment\u003c/code\u003e implements several interfaces, such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e which are used for working with the class, while also inheriting properties from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,["# AI Platform Notebooks v1 API - Class Environment (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1.Environment)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.4.0/Google.Cloud.Notebooks.V1.Environment)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.3.0/Google.Cloud.Notebooks.V1.Environment)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.2.0/Google.Cloud.Notebooks.V1.Environment)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.1.0/Google.Cloud.Notebooks.V1.Environment)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.0.0/Google.Cloud.Notebooks.V1.Environment)\n- [1.0.0-beta04](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/1.0.0-beta04/Google.Cloud.Notebooks.V1.Environment) \n\n public sealed class Environment : IMessage\u003cEnvironment\u003e, IEquatable\u003cEnvironment\u003e, IDeepCloneable\u003cEnvironment\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the AI Platform Notebooks v1 API class Environment.\n\nDefinition of a software environment that is used to start a notebook\ninstance. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Environment \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Environment](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1.Environment), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Environment](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1.Environment), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Environment](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1.Environment), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Notebooks.V1](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Notebooks.V1.dll\n\nConstructors\n------------\n\n### Environment()\n\n public Environment()\n\n### Environment(Environment)\n\n public Environment(Environment other)\n\nProperties\n----------\n\n### ContainerImage\n\n public ContainerImage ContainerImage { get; set; }\n\nUse a container image to start the notebook instance.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. The time at which this environment was created.\n\n### Description\n\n public string Description { get; set; }\n\nA brief description of this environment.\n\n### DisplayName\n\n public string DisplayName { get; set; }\n\nDisplay name of this environment for the UI.\n\n### EnvironmentName\n\n public EnvironmentName EnvironmentName { get; set; }\n\n[EnvironmentName](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1.EnvironmentName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1.Environment#Google_Cloud_Notebooks_V1_Environment_Name) resource name property.\n\n### ImageTypeCase\n\n public Environment.ImageTypeOneofCase ImageTypeCase { get; }\n\n### Name\n\n public string Name { get; set; }\n\nOutput only. Name of this environment.\nFormat:\n`projects/{project_id}/locations/{location}/environments/{environment_id}`\n\n### PostStartupScript\n\n public string PostStartupScript { get; set; }\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### VmImage\n\n public VmImage VmImage { get; set; }\n\nUse a Compute Engine VM image to start the notebook instance."]]