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 \ V1Methods
__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 |
Google\Cloud\NetApp\V1\HourlySchedule
Hourly schedule policy. |
↳ daily_schedule |
Google\Cloud\NetApp\V1\DailySchedule
Daily schedule policy. |
↳ weekly_schedule |
Google\Cloud\NetApp\V1\WeeklySchedule
Weekly schedule policy. |
↳ monthly_schedule |
Google\Cloud\NetApp\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 |
Google\Cloud\NetApp\V1\HourlySchedule|null |
hasHourlySchedule
clearHourlySchedule
setHourlySchedule
Hourly schedule policy.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\NetApp\V1\HourlySchedule
|
Returns | |
---|---|
Type | Description |
$this |
getDailySchedule
Daily schedule policy.
Returns | |
---|---|
Type | Description |
Google\Cloud\NetApp\V1\DailySchedule|null |
hasDailySchedule
clearDailySchedule
setDailySchedule
Daily schedule policy.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\NetApp\V1\DailySchedule
|
Returns | |
---|---|
Type | Description |
$this |
getWeeklySchedule
Weekly schedule policy.
Returns | |
---|---|
Type | Description |
Google\Cloud\NetApp\V1\WeeklySchedule|null |
hasWeeklySchedule
clearWeeklySchedule
setWeeklySchedule
Weekly schedule policy.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\NetApp\V1\WeeklySchedule
|
Returns | |
---|---|
Type | Description |
$this |
getMonthlySchedule
Monthly schedule policy.
Returns | |
---|---|
Type | Description |
Google\Cloud\NetApp\V1\MonthlySchedule|null |
hasMonthlySchedule
clearMonthlySchedule
setMonthlySchedule
Monthly schedule policy.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\NetApp\V1\MonthlySchedule
|
Returns | |
---|---|
Type | Description |
$this |