Reference documentation and code samples for the Google Cloud Container V1 Client class RecurringMaintenanceWindow.
Represents an arbitrary window of time that recurs.
Will replace RecurringTimeWindow.
Generated from protobuf message google.container.v1.RecurringMaintenanceWindow
Namespace
Google \ Cloud \ Container \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ delay_until |
Google\Type\Date
Optional. Specifies the date before which will not be scheduled. Depending on the recurrence, this may be the date the first window appears. Days are measured in the UTC timezone. This setting must be used when INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified. |
↳ window_start_time |
Google\Type\TimeOfDay
Required. Start time of the window on days that it is scheduled, assuming UTC timezone. |
↳ window_duration |
Google\Protobuf\Duration
Required. Duration of the window. |
↳ recurrence |
string
Required. An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how this window recurs. For example, to have something repeat every weekday, you'd use: |
getDelayUntil
Optional. Specifies the date before which will not be scheduled.
Depending on the recurrence, this may be the date the first window appears. Days are measured in the UTC timezone. This setting must be used when INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified.
| Returns | |
|---|---|
| Type | Description |
Google\Type\Date|null |
|
hasDelayUntil
clearDelayUntil
setDelayUntil
Optional. Specifies the date before which will not be scheduled.
Depending on the recurrence, this may be the date the first window appears. Days are measured in the UTC timezone. This setting must be used when INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Type\Date
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getWindowStartTime
Required. Start time of the window on days that it is scheduled, assuming UTC timezone.
| Returns | |
|---|---|
| Type | Description |
Google\Type\TimeOfDay|null |
|
hasWindowStartTime
clearWindowStartTime
setWindowStartTime
Required. Start time of the window on days that it is scheduled, assuming UTC timezone.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Type\TimeOfDay
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getWindowDuration
Required. Duration of the window.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Duration|null |
|
hasWindowDuration
clearWindowDuration
setWindowDuration
Required. Duration of the window.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Duration
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRecurrence
Required. An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how this window recurs.
For example, to have something repeat every weekday, you'd use:
FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
To repeat some window daily (equivalent to the DailyMaintenanceWindow):
FREQ=DAILY
For the first weekend of every month:
FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU
The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
| Returns | |
|---|---|
| Type | Description |
string |
|
setRecurrence
Required. An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how this window recurs.
For example, to have something repeat every weekday, you'd use:
FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
To repeat some window daily (equivalent to the DailyMaintenanceWindow):
FREQ=DAILY
For the first weekend of every month:
FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU
The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|