# Google Cloud Vm Migration V1 Client - Class ImageImportOsAdaptationParameters (1.4.0)

1.4.0 (latest) 1.3.0 1.2.1 1.1.0 1.0.5 0.6.5 0.5.2 0.4.2 0.3.2 0.2.3 Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class ImageImportOsAdaptationParameters.

Parameters affecting the OS adaptation process.

Generated from protobuf message `google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters`

## Namespace

Google \\ Cloud \\ VMMigration \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ generalize` | `bool` Optional. Set to true in order to generalize the imported image. The generalization process enables co-existence of multiple VMs created from the same image. For Windows, generalizing the image removes computer-specific information such as installed drivers and the computer security identifier (SID). |
| `↳ license_type` | `int` Optional. Choose which type of license to apply to the imported image. |
| `↳ boot_conversion` | `int` Optional. By default the image will keep its existing boot option. Setting this property will trigger an internal process which will convert the image from using the existing boot option to another. The size of the boot disk might be increased to allow the conversion |
| `↳ adaptation_modifiers` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AdaptationModifier>` Optional. Modifiers to be used as configuration of the OS adaptation process. |

### getGeneralize

Optional. Set to true in order to generalize the imported image.

The generalization process enables co-existence of multiple VMs created
from the same image.
For Windows, generalizing the image removes computer-specific information
such as installed drivers and the computer security identifier (SID).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setGeneralize

Optional. Set to true in order to generalize the imported image.

The generalization process enables co-existence of multiple VMs created
from the same image.
For Windows, generalizing the image removes computer-specific information
such as installed drivers and the computer security identifier (SID).

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

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

### getLicenseType

Optional. Choose which type of license to apply to the imported image.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ComputeEngineLicenseType](https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.ComputeEngineLicenseType). |

### setLicenseType

Optional. Choose which type of license to apply to the imported image.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ComputeEngineLicenseType](https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.ComputeEngineLicenseType). |

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

### getBootConversion

Optional. By default the image will keep its existing boot option. Setting
this property will trigger an internal process which will convert the
image from using the existing boot option to another.

The size of the boot disk might be increased to allow the conversion

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [BootConversion](https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.BootConversion). |

### setBootConversion

Optional. By default the image will keep its existing boot option. Setting
this property will trigger an internal process which will convert the
image from using the existing boot option to another.

The size of the boot disk might be increased to allow the conversion

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [BootConversion](https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.BootConversion). |

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

### getAdaptationModifiers

Optional. Modifiers to be used as configuration of the OS adaptation
process.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AdaptationModifier>` |   |

### setAdaptationModifiers

Optional. Modifiers to be used as configuration of the OS adaptation
process.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AdaptationModifier>` |

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