Google Cloud Bare Metal Solution V2 Client - Class Schedule (0.6.5)

Reference documentation and code samples for the Google Cloud Bare Metal Solution V2 Client class Schedule.

A snapshot schedule.

Generated from protobuf message google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule

Namespace

Google \ Cloud \ BareMetalSolution \ V2 \ SnapshotSchedulePolicy

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ crontab_spec string

A crontab-like specification that the schedule uses to take snapshots.

↳ retention_count int

The maximum number of snapshots to retain in this schedule.

↳ prefix string

A list of snapshot names created in this schedule.

getCrontabSpec

A crontab-like specification that the schedule uses to take snapshots.

Returns
Type Description
string

setCrontabSpec

A crontab-like specification that the schedule uses to take snapshots.

Parameter
Name Description
var string
Returns
Type Description
$this

getRetentionCount

The maximum number of snapshots to retain in this schedule.

Returns
Type Description
int

setRetentionCount

The maximum number of snapshots to retain in this schedule.

Parameter
Name Description
var int
Returns
Type Description
$this

getPrefix

A list of snapshot names created in this schedule.

Returns
Type Description
string

setPrefix

A list of snapshot names created in this schedule.

Parameter
Name Description
var string
Returns
Type Description
$this