Google Cloud Net App V1 Client - Class SnapshotPolicy (1.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 HourlySchedule

Hourly schedule policy.

↳ daily_schedule DailySchedule

Daily schedule policy.

↳ weekly_schedule WeeklySchedule

Weekly schedule policy.

↳ monthly_schedule 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
HourlySchedule|null

hasHourlySchedule

clearHourlySchedule

setHourlySchedule

Hourly schedule policy.

Parameter
Name Description
var HourlySchedule
Returns
Type Description
$this

getDailySchedule

Daily schedule policy.

Returns
Type Description
DailySchedule|null

hasDailySchedule

clearDailySchedule

setDailySchedule

Daily schedule policy.

Parameter
Name Description
var DailySchedule
Returns
Type Description
$this

getWeeklySchedule

Weekly schedule policy.

Returns
Type Description
WeeklySchedule|null

hasWeeklySchedule

clearWeeklySchedule

setWeeklySchedule

Weekly schedule policy.

Parameter
Name Description
var WeeklySchedule
Returns
Type Description
$this

getMonthlySchedule

Monthly schedule policy.

Returns
Type Description
MonthlySchedule|null

hasMonthlySchedule

clearMonthlySchedule

setMonthlySchedule

Monthly schedule policy.

Parameter
Name Description
var MonthlySchedule
Returns
Type Description
$this