Google Cloud OsConfig V1 Client - Class MonthlySchedule (1.1.1)

Reference documentation and code samples for the Google Cloud OsConfig V1 Client class MonthlySchedule.

Represents a monthly schedule. An example of a valid monthly schedule is "on the third Tuesday of the month" or "on the 15th of the month".

Generated from protobuf message google.cloud.osconfig.v1.MonthlySchedule

Namespace

Google \ Cloud \ OsConfig \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ week_day_of_month Google\Cloud\OsConfig\V1\WeekDayOfMonth

Required. Week day in a month.

↳ month_day int

Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run "every month on the 31st" will not run in February, April, June, etc.

getWeekDayOfMonth

Required. Week day in a month.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\WeekDayOfMonth|null

hasWeekDayOfMonth

setWeekDayOfMonth

Required. Week day in a month.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\WeekDayOfMonth
Returns
TypeDescription
$this

getMonthDay

Required. One day of the month. 1-31 indicates the 1st to the 31st day.

-1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run "every month on the 31st" will not run in February, April, June, etc.

Returns
TypeDescription
int

hasMonthDay

setMonthDay

Required. One day of the month. 1-31 indicates the 1st to the 31st day.

-1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run "every month on the 31st" will not run in February, April, June, etc.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDayOfMonth

Returns
TypeDescription
string