Class: Google::Apis::NotebooksV1::VmImage

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 custom Compute Engine virtual machine image for starting a notebook instance with the environment installed directly on the VM.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmImage

Returns a new instance of VmImage.



1885
1886
1887
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1885

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#image_familyString

Use this VM image family to find the image; the newest image in this family will be used. Corresponds to the JSON property imageFamily

Returns:

  • (String)


1872
1873
1874
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1872

def image_family
  @image_family
end

#image_nameString

Use VM image name to find the image. Corresponds to the JSON property imageName

Returns:

  • (String)


1877
1878
1879
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1877

def image_name
  @image_name
end

#projectString

Required. The name of the Google Cloud project that this VM image belongs to. Format: projects/project_id` Corresponds to the JSON propertyproject`

Returns:

  • (String)


1883
1884
1885
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1883

def project
  @project
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1890
1891
1892
1893
1894
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1890

def update!(**args)
  @image_family = args[:image_family] if args.key?(:image_family)
  @image_name = args[:image_name] if args.key?(:image_name)
  @project = args[:project] if args.key?(:project)
end