Google Cloud Net App V1 Client - Class SnapshotPolicy (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
NameDescription
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
TypeDescription
bool

hasEnabled

clearEnabled

setEnabled

If enabled, make snapshots automatically according to the schedules.

Default is false.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getHourlySchedule

Hourly schedule policy.

Returns
TypeDescription
Google\Cloud\NetApp\V1\HourlySchedule|null

hasHourlySchedule

clearHourlySchedule

setHourlySchedule

Hourly schedule policy.

Parameter
NameDescription
var Google\Cloud\NetApp\V1\HourlySchedule
Returns
TypeDescription
$this

getDailySchedule

Daily schedule policy.

Returns
TypeDescription
Google\Cloud\NetApp\V1\DailySchedule|null

hasDailySchedule

clearDailySchedule

setDailySchedule

Daily schedule policy.

Parameter
NameDescription
var Google\Cloud\NetApp\V1\DailySchedule
Returns
TypeDescription
$this

getWeeklySchedule

Weekly schedule policy.

Returns
TypeDescription
Google\Cloud\NetApp\V1\WeeklySchedule|null

hasWeeklySchedule

clearWeeklySchedule

setWeeklySchedule

Weekly schedule policy.

Parameter
NameDescription
var Google\Cloud\NetApp\V1\WeeklySchedule
Returns
TypeDescription
$this

getMonthlySchedule

Monthly schedule policy.

Returns
TypeDescription
Google\Cloud\NetApp\V1\MonthlySchedule|null

hasMonthlySchedule

clearMonthlySchedule

setMonthlySchedule

Monthly schedule policy.

Parameter
NameDescription
var Google\Cloud\NetApp\V1\MonthlySchedule
Returns
TypeDescription
$this