Google Cloud OsConfig V1 Client - Class RecurringSchedule (1.2.2)

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

Sets the time for recurring patch deployments.

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

Namespace

Google \ Cloud \ OsConfig \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ time_zone Google\Type\TimeZone

Required. Defines the time zone that time_of_day is relative to. The rules for daylight saving time are determined by the chosen time zone.

↳ start_time Google\Protobuf\Timestamp

Optional. The time that the recurring schedule becomes effective. Defaults to create_time of the patch deployment.

↳ end_time Google\Protobuf\Timestamp

Optional. The end time at which a recurring patch deployment schedule is no longer active.

↳ time_of_day Google\Type\TimeOfDay

Required. Time of the day to run a recurring deployment.

↳ frequency int

Required. The frequency unit of this recurring schedule.

↳ weekly Google\Cloud\OsConfig\V1\WeeklySchedule

Required. Schedule with weekly executions.

↳ monthly Google\Cloud\OsConfig\V1\MonthlySchedule

Required. Schedule with monthly executions.

↳ last_execute_time Google\Protobuf\Timestamp

Output only. The time the last patch job ran successfully.

↳ next_execute_time Google\Protobuf\Timestamp

Output only. The time the next patch job is scheduled to run.

getTimeZone

Required. Defines the time zone that time_of_day is relative to.

The rules for daylight saving time are determined by the chosen time zone.

Returns
TypeDescription
Google\Type\TimeZone|null

hasTimeZone

clearTimeZone

setTimeZone

Required. Defines the time zone that time_of_day is relative to.

The rules for daylight saving time are determined by the chosen time zone.

Parameter
NameDescription
var Google\Type\TimeZone
Returns
TypeDescription
$this

getStartTime

Optional. The time that the recurring schedule becomes effective.

Defaults to create_time of the patch deployment.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

Optional. The time that the recurring schedule becomes effective.

Defaults to create_time of the patch deployment.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getEndTime

Optional. The end time at which a recurring patch deployment schedule is no longer active.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

Optional. The end time at which a recurring patch deployment schedule is no longer active.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getTimeOfDay

Required. Time of the day to run a recurring deployment.

Returns
TypeDescription
Google\Type\TimeOfDay|null

hasTimeOfDay

clearTimeOfDay

setTimeOfDay

Required. Time of the day to run a recurring deployment.

Parameter
NameDescription
var Google\Type\TimeOfDay
Returns
TypeDescription
$this

getFrequency

Required. The frequency unit of this recurring schedule.

Returns
TypeDescription
int

setFrequency

Required. The frequency unit of this recurring schedule.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getWeekly

Required. Schedule with weekly executions.

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

hasWeekly

setWeekly

Required. Schedule with weekly executions.

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

getMonthly

Required. Schedule with monthly executions.

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

hasMonthly

setMonthly

Required. Schedule with monthly executions.

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

getLastExecuteTime

Output only. The time the last patch job ran successfully.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasLastExecuteTime

clearLastExecuteTime

setLastExecuteTime

Output only. The time the last patch job ran successfully.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getNextExecuteTime

Output only. The time the next patch job is scheduled to run.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasNextExecuteTime

clearNextExecuteTime

setNextExecuteTime

Output only. The time the next patch job is scheduled to run.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getScheduleConfig

Returns
TypeDescription
string