Class: Google::Apis::NotebooksV1::VmImage
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV1::VmImage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/notebooks_v1/classes.rb,
generated/google/apis/notebooks_v1/representations.rb,
generated/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
-
#image_family ⇒ String
Use this VM image family to find the image; the newest image in this family will be used.
-
#image_name ⇒ String
Use VM image name to find the image.
-
#project ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VmImage
constructor
A new instance of VmImage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VmImage
Returns a new instance of VmImage.
1455 1456 1457 |
# File 'generated/google/apis/notebooks_v1/classes.rb', line 1455 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_family ⇒ String
Use this VM image family to find the image; the newest image in this family
will be used.
Corresponds to the JSON property imageFamily
1442 1443 1444 |
# File 'generated/google/apis/notebooks_v1/classes.rb', line 1442 def image_family @image_family end |
#image_name ⇒ String
Use VM image name to find the image.
Corresponds to the JSON property imageName
1447 1448 1449 |
# File 'generated/google/apis/notebooks_v1/classes.rb', line 1447 def image_name @image_name end |
#project ⇒ String
Required. The name of the Google Cloud project that this VM image belongs to.
Format: projects/
project_id`
Corresponds to the JSON property
project`
1453 1454 1455 |
# File 'generated/google/apis/notebooks_v1/classes.rb', line 1453 def project @project end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1460 1461 1462 1463 1464 |
# File 'generated/google/apis/notebooks_v1/classes.rb', line 1460 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 |