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

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
NameDescription
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
TypeDescription
string

setCrontabSpec

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRetentionCount

The maximum number of snapshots to retain in this schedule.

Returns
TypeDescription
int

setRetentionCount

The maximum number of snapshots to retain in this schedule.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPrefix

A list of snapshot names created in this schedule.

Returns
TypeDescription
string

setPrefix

A list of snapshot names created in this schedule.

Parameter
NameDescription
var string
Returns
TypeDescription
$this