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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
Google\Cloud\OsConfig\V1\WeekDayOfMonth|null |
hasWeekDayOfMonth
setWeekDayOfMonth
Required. Week day in a month.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\OsConfig\V1\WeekDayOfMonth
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getDayOfMonth
Returns | |
---|---|
Type | Description |
string |