# Google Cloud Bare Metal Solution V2 Client - Class OSImage (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.6.5 0.5.2 0.4.0 0.3.2 0.2.8 Reference documentation and code samples for the Google Cloud Bare Metal Solution V2 Client class OSImage.

Operation System image.

Generated from protobuf message `google.cloud.baremetalsolution.v2.OSImage`

## Namespace

Google \\ Cloud \\ BareMetalSolution \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. OS Image's unique name. |
| `↳ code` | `string` OS Image code. |
| `↳ description` | `string` OS Image description. |
| `↳ applicable_instance_types` | `string[]` Instance types this image is applicable to. [Available types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations) |
| `↳ supported_network_templates` | `string[]` Network templates that can be used with this OS Image. |

### getName

Output only. OS Image's unique name.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Output only. OS Image's unique name.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCode

OS Image code.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCode

OS Image code.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDescription

OS Image description.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDescription

OS Image description.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getApplicableInstanceTypes

Instance types this image is applicable to.

[Available
types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setApplicableInstanceTypes

Instance types this image is applicable to.

[Available
types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSupportedNetworkTemplates

Network templates that can be used with this OS Image.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setSupportedNetworkTemplates

Network templates that can be used with this OS Image.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |