Google Cloud Deploy V1 Client - Class OneTimeWindow (1.4.0)

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

One-time window within which actions are restricted. For example, blocking actions over New Year's Eve from December 31st at 5pm to January 1st at 9am.

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

Namespace

Google \ Cloud \ Deploy \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ start_date Google\Type\Date

Required. Start date.

↳ start_time Google\Type\TimeOfDay

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

↳ end_date Google\Type\Date

Required. End date.

↳ end_time Google\Type\TimeOfDay

Required. End time (exclusive). You may use 24:00 for the end of the day.

getStartDate

Required. Start date.

Returns
Type Description
Google\Type\Date|null

hasStartDate

clearStartDate

setStartDate

Required. Start date.

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

getStartTime

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

Returns
Type Description
Google\Type\TimeOfDay|null

hasStartTime

clearStartTime

setStartTime

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

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

getEndDate

Required. End date.

Returns
Type Description
Google\Type\Date|null

hasEndDate

clearEndDate

setEndDate

Required. End date.

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

getEndTime

Required. End time (exclusive). You may use 24:00 for the end of the day.

Returns
Type Description
Google\Type\TimeOfDay|null

hasEndTime

clearEndTime

setEndTime

Required. End time (exclusive). You may use 24:00 for the end of the day.

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