Google Cloud Redis V1 Client - Class WeeklyMaintenanceWindow (2.1.0)

Reference documentation and code samples for the Google Cloud Redis V1 Client class WeeklyMaintenanceWindow.

Time window in which disruptive maintenance updates occur. Non-disruptive updates can occur inside or outside this window.

Generated from protobuf message google.cloud.redis.v1.WeeklyMaintenanceWindow

Namespace

Google \ Cloud \ Redis \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ day int

Required. The day of week that maintenance updates occur.

↳ start_time Google\Type\TimeOfDay

Required. Start time of the window in UTC time.

↳ duration Google\Protobuf\Duration

Output only. Duration of the maintenance window. The current window is fixed at 1 hour.

getDay

Required. The day of week that maintenance updates occur.

Returns
Type Description
int

setDay

Required. The day of week that maintenance updates occur.

Parameter
Name Description
var int
Returns
Type Description
$this

getStartTime

Required. Start time of the window in UTC time.

Returns
Type Description
Google\Type\TimeOfDay|null

hasStartTime

clearStartTime

setStartTime

Required. Start time of the window in UTC time.

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

getDuration

Output only. Duration of the maintenance window. The current window is fixed at 1 hour.

Returns
Type Description
Google\Protobuf\Duration|null

hasDuration

clearDuration

setDuration

Output only. Duration of the maintenance window. The current window is fixed at 1 hour.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this