# Notebooks V2 API - Class Google::Cloud::Notebooks::V2::VmImage (v1.5.0)

1.5.0 (latest) 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.6.0 0.5.0 0.4.2 0.3.2 0.2.0 0.1.0 Reference documentation and code samples for the Notebooks V2 API class Google::Cloud::Notebooks::V2::VmImage.

Definition of a custom Compute Engine virtual machine image for starting a
notebook instance with the environment installed directly on the VM.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #family

    def family() -> ::String

**Returns**

- (::String) --- Optional. Use this VM image family to find the image; the newest image in this family will be used.

  Note: The following fields are mutually exclusive: `family`, `name`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #family=

    def family=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Use this VM image family to find the image; the newest image in this family will be used.


  Note: The following fields are mutually exclusive: `family`, `name`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- Optional. Use this VM image family to find the image; the newest image in this family will be used.

  Note: The following fields are mutually exclusive: `family`, `name`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Optional. Use VM image name to find the image.

  Note: The following fields are mutually exclusive: `name`, `family`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Use VM image name to find the image.


  Note: The following fields are mutually exclusive: `name`, `family`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- Optional. Use VM image name to find the image.

  Note: The following fields are mutually exclusive: `name`, `family`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #project

    def project() -> ::String

**Returns**

- (::String) --- Required. The name of the Google Cloud project that this VM image belongs to. Format: `{project_id}`

### #project=

    def project=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The name of the Google Cloud project that this VM image belongs to. Format: `{project_id}`
**Returns**

- (::String) --- Required. The name of the Google Cloud project that this VM image belongs to. Format: `{project_id}`