Class: Google::Apis::NotebooksV2::VmImage

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/notebooks_v2/classes.rb,
lib/google/apis/notebooks_v2/representations.rb,
lib/google/apis/notebooks_v2/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.



1718
1719
1720
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1718

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

Instance Attribute Details

#familyString

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

Returns:

  • (String)


1705
1706
1707
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1705

def family
  @family
end

#nameString

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

Returns:

  • (String)


1710
1711
1712
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1710

def name
  @name
end

#projectString

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

Returns:

  • (String)


1716
1717
1718
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1716

def project
  @project
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1723
1724
1725
1726
1727
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1723

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