# Google Cloud Vm Migration V1 Client - Class SchedulePolicy (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 SchedulePolicy.

A policy for scheduling replications.

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

## Namespace

Google \\ Cloud \\ VMMigration \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ idle_duration` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` The idle duration between replication stages. |
| `↳ skip_os_adaptation` | `bool` A flag to indicate whether to skip OS adaptation during the replication sync. OS adaptation is a process where the VM's operating system undergoes changes and adaptations to fully function on Compute Engine. |

### getIdleDuration

The idle duration between replication stages.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasIdleDuration

### clearIdleDuration

### setIdleDuration

The idle duration between replication stages.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

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

### getSkipOsAdaptation

A flag to indicate whether to skip OS adaptation during the replication
sync. OS adaptation is a process where the VM's operating system undergoes
changes and adaptations to fully function on Compute Engine.

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

### setSkipOsAdaptation

A flag to indicate whether to skip OS adaptation during the replication
sync. OS adaptation is a process where the VM's operating system undergoes
changes and adaptations to fully function on Compute Engine.

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

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