# Google Cloud Net App V1 Client - Class SnapshotPolicy (1.12.0)

1.12.0 (latest) 1.11.0 1.10.2 1.9.0 1.8.1 1.7.0 1.6.1 1.4.0 1.3.1 1.2.1 1.1.1 1.0.1 0.3.1 0.2.6 0.1.1 Reference documentation and code samples for the Google Cloud Net App V1 Client class SnapshotPolicy.

Snapshot Policy for a volume.

Generated from protobuf message `google.cloud.netapp.v1.SnapshotPolicy`

## Namespace

Google \\ Cloud \\ NetApp \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ enabled` | `bool` If enabled, make snapshots automatically according to the schedules. Default is false. |
| `↳ hourly_schedule` | `https://docs.cloud.google.com/php/docs/reference/cloud-netapp/latest/V1.HourlySchedule` Hourly schedule policy. |
| `↳ daily_schedule` | `https://docs.cloud.google.com/php/docs/reference/cloud-netapp/latest/V1.DailySchedule` Daily schedule policy. |
| `↳ weekly_schedule` | `https://docs.cloud.google.com/php/docs/reference/cloud-netapp/latest/V1.WeeklySchedule` Weekly schedule policy. |
| `↳ monthly_schedule` | `https://docs.cloud.google.com/php/docs/reference/cloud-netapp/latest/V1.MonthlySchedule` Monthly schedule policy. |

### getEnabled

If enabled, make snapshots automatically according to the schedules.

Default is false.

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

### hasEnabled

### clearEnabled

### setEnabled

If enabled, make snapshots automatically according to the schedules.

Default is false.

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

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

### getHourlySchedule

Hourly schedule policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-netapp/latest/V1.HourlySchedule|null` |   |

### hasHourlySchedule

### clearHourlySchedule

### setHourlySchedule

Hourly schedule policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-netapp/latest/V1.HourlySchedule` |

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

### getDailySchedule

Daily schedule policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-netapp/latest/V1.DailySchedule|null` |   |

### hasDailySchedule

### clearDailySchedule

### setDailySchedule

Daily schedule policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-netapp/latest/V1.DailySchedule` |

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

### getWeeklySchedule

Weekly schedule policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-netapp/latest/V1.WeeklySchedule|null` |   |

### hasWeeklySchedule

### clearWeeklySchedule

### setWeeklySchedule

Weekly schedule policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-netapp/latest/V1.WeeklySchedule` |

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

### getMonthlySchedule

Monthly schedule policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-netapp/latest/V1.MonthlySchedule|null` |   |

### hasMonthlySchedule

### clearMonthlySchedule

### setMonthlySchedule

Monthly schedule policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-netapp/latest/V1.MonthlySchedule` |

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