Class: Google::Apis::NotebooksV1::Environment

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_imageGoogle::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_timeString

Output only. The time at which this environment was created. Corresponds to the JSON property createTime

Returns:

  • (String)


468
469
470
# File 'lib/google/apis/notebooks_v1/classes.rb', line 468

def create_time
  @create_time
end

#descriptionString

A brief description of this environment. Corresponds to the JSON property description

Returns:

  • (String)


473
474
475
# File 'lib/google/apis/notebooks_v1/classes.rb', line 473

def description
  @description
end

#display_nameString

Display name of this environment for the UI. Corresponds to the JSON property displayName

Returns:

  • (String)


478
479
480
# File 'lib/google/apis/notebooks_v1/classes.rb', line 478

def display_name
  @display_name
end

#nameString

Output only. Name of this environment. Format: projects/project_id/ locations/location/environments/environment_id` Corresponds to the JSON propertyname`

Returns:

  • (String)


484
485
486
# File 'lib/google/apis/notebooks_v1/classes.rb', line 484

def name
  @name
end

#post_startup_scriptString

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

Returns:

  • (String)


491
492
493
# File 'lib/google/apis/notebooks_v1/classes.rb', line 491

def post_startup_script
  @post_startup_script
end

#vm_imageGoogle::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