Google Cloud Sql Admin V1 Client - Class MaintenanceWindow (1.2.0)

Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class MaintenanceWindow.

Maintenance window. This specifies when a Cloud SQL instance is restarted for system maintenance purposes.

Generated from protobuf message google.cloud.sql.v1.MaintenanceWindow

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ hour Google\Protobuf\Int32Value

Hour of day - 0 to 23. Specify in the UTC time zone.

↳ day Google\Protobuf\Int32Value

Day of week - MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, or SUNDAY. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where 1 equals Monday.

↳ update_track int

Maintenance timing settings: canary, stable, or week5. For more information, see About maintenance on Cloud SQL instances.

↳ kind string

This is always sql#maintenanceWindow.

getHour

Hour of day - 0 to 23. Specify in the UTC time zone.

Returns
Type Description
Google\Protobuf\Int32Value|null

hasHour

clearHour

getHourUnwrapped

Returns the unboxed value from getHour()

Hour of day - 0 to 23. Specify in the UTC time zone.

Returns
Type Description
int|null

setHour

Hour of day - 0 to 23. Specify in the UTC time zone.

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

setHourUnwrapped

Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.

Hour of day - 0 to 23. Specify in the UTC time zone.

Parameter
Name Description
var int|null
Returns
Type Description
$this

getDay

Day of week - MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, or SUNDAY. Specify in the UTC time zone.

Returned in output as an integer, 1 to 7, where 1 equals Monday.

Returns
Type Description
Google\Protobuf\Int32Value|null

hasDay

clearDay

getDayUnwrapped

Returns the unboxed value from getDay()

Day of week - MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, or SUNDAY. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where 1 equals Monday.

Returns
Type Description
int|null

setDay

Day of week - MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, or SUNDAY. Specify in the UTC time zone.

Returned in output as an integer, 1 to 7, where 1 equals Monday.

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

setDayUnwrapped

Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.

Day of week - MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, or SUNDAY. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where 1 equals Monday.

Parameter
Name Description
var int|null
Returns
Type Description
$this

getUpdateTrack

Maintenance timing settings: canary, stable, or week5.

For more information, see About maintenance on Cloud SQL instances.

Returns
Type Description
int

setUpdateTrack

Maintenance timing settings: canary, stable, or week5.

For more information, see About maintenance on Cloud SQL instances.

Parameter
Name Description
var int
Returns
Type Description
$this

getKind

This is always sql#maintenanceWindow.

Returns
Type Description
string

setKind

This is always sql#maintenanceWindow.

Parameter
Name Description
var string
Returns
Type Description
$this