Google Cloud Deploy V1 Client - Class WeeklyWindow (1.5.1)

Reference documentation and code samples for the Google Cloud Deploy V1 Client class WeeklyWindow.

Weekly windows. For example, blocking actions every Saturday and Sunday.

Another example would be blocking actions every weekday from 5pm to midnight.

Generated from protobuf message google.cloud.deploy.v1.WeeklyWindow

Namespace

Google \ Cloud \ Deploy \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ days_of_week array

Optional. Days of week. If left empty, all days of the week will be included.

↳ start_time Google\Type\TimeOfDay

Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.

↳ end_time Google\Type\TimeOfDay

Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.

getDaysOfWeek

Optional. Days of week. If left empty, all days of the week will be included.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setDaysOfWeek

Optional. Days of week. If left empty, all days of the week will be included.

Parameter
Name Description
var int[]
Returns
Type Description
$this

getStartTime

Optional. Start time (inclusive). Use 00:00 for the beginning of the day.

If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.

Returns
Type Description
Google\Type\TimeOfDay|null

hasStartTime

clearStartTime

setStartTime

Optional. Start time (inclusive). Use 00:00 for the beginning of the day.

If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.

Parameter
Name Description
var Google\Type\TimeOfDay
Returns
Type Description
$this

getEndTime

Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.

Returns
Type Description
Google\Type\TimeOfDay|null

hasEndTime

clearEndTime

setEndTime

Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.

Parameter
Name Description
var Google\Type\TimeOfDay
Returns
Type Description
$this