Class: Google::Apis::NotebooksV1::Environment
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV1::Environment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/notebooks_v1/classes.rb,
lib/google/apis/notebooks_v1/representations.rb,
lib/google/apis/notebooks_v1/representations.rb
Overview
Definition of a software environment that is used to start a notebook instance.
Instance Attribute Summary collapse
-
#container_image ⇒ Google::Apis::NotebooksV1::ContainerImage
Definition of a container image for starting a notebook instance with the environment installed in a container.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
A brief description of this environment.
-
#display_name ⇒ String
Display name of this environment for the UI.
-
#name ⇒ String
Output only.
-
#post_startup_script ⇒ String
Path to a Bash script that automatically runs after a notebook instance fully boots up.
-
#vm_image ⇒ Google::Apis::NotebooksV1::VmImage
Definition of a custom Compute Engine virtual machine image for starting a notebook instance with the environment installed directly on the VM.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Environment
constructor
A new instance of Environment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Environment
Returns a new instance of Environment.
499 500 501 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 499 def initialize(**args) update!(**args) end |
Instance Attribute Details
#container_image ⇒ Google::Apis::NotebooksV1::ContainerImage
Definition of a container image for starting a notebook instance with the
environment installed in a container.
Corresponds to the JSON property containerImage
463 464 465 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 463 def container_image @container_image end |
#create_time ⇒ String
Output only. The time at which this environment was created.
Corresponds to the JSON property createTime
468 469 470 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 468 def create_time @create_time end |
#description ⇒ String
A brief description of this environment.
Corresponds to the JSON property description
473 474 475 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 473 def description @description end |
#display_name ⇒ String
Display name of this environment for the UI.
Corresponds to the JSON property displayName
478 479 480 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 478 def display_name @display_name end |
#name ⇒ String
Output only. Name of this environment. Format: projects/
project_id/
locations/
location/environments/
environment_id`
Corresponds to the JSON property
name`
484 485 486 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 484 def name @name end |
#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"
Corresponds to the JSON property postStartupScript
491 492 493 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 491 def post_startup_script @post_startup_script end |
#vm_image ⇒ Google::Apis::NotebooksV1::VmImage
Definition of a custom Compute Engine virtual machine image for starting a
notebook instance with the environment installed directly on the VM.
Corresponds to the JSON property vmImage
497 498 499 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 497 def vm_image @vm_image end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
504 505 506 507 508 509 510 511 512 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 504 def update!(**args) @container_image = args[:container_image] if args.key?(:container_image) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @post_startup_script = args[:post_startup_script] if args.key?(:post_startup_script) @vm_image = args[:vm_image] if args.key?(:vm_image) end |