Google Cloud Sql Admin V1beta4 Client - Class MaintenanceWindow (0.7.0)

Reference documentation and code samples for the Google Cloud Sql Admin V1beta4 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.v1beta4.MaintenanceWindow

Namespace

Google \ Cloud \ Sql \ V1beta4

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ hour Google\Protobuf\Int32Value

hour of day - 0 to 23.

↳ day Google\Protobuf\Int32Value

day of week (1-7), starting on Monday.

↳ update_track int

Maintenance timing setting: canary (Earlier) or stable (Later). Learn more.

↳ kind string

This is always sql#maintenanceWindow.

getHour

hour of day - 0 to 23.

Returns
TypeDescription
Google\Protobuf\Int32Value|null

hasHour

clearHour

getHourValue

Returns the unboxed value from getHour()

hour of day - 0 to 23.

Returns
TypeDescription
int|null

setHour

hour of day - 0 to 23.

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

setHourValue

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

hour of day - 0 to 23.

Parameter
NameDescription
var int|null
Returns
TypeDescription
$this

getDay

day of week (1-7), starting on Monday.

Returns
TypeDescription
Google\Protobuf\Int32Value|null

hasDay

clearDay

getDayValue

Returns the unboxed value from getDay()

day of week (1-7), starting on Monday.

Returns
TypeDescription
int|null

setDay

day of week (1-7), starting on Monday.

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

setDayValue

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

day of week (1-7), starting on Monday.

Parameter
NameDescription
var int|null
Returns
TypeDescription
$this

getUpdateTrack

Maintenance timing setting: canary (Earlier) or stable (Later).

Learn more.

Returns
TypeDescription
int

setUpdateTrack

Maintenance timing setting: canary (Earlier) or stable (Later).

Learn more.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getKind

This is always sql#maintenanceWindow.

Returns
TypeDescription
string

setKind

This is always sql#maintenanceWindow.

Parameter
NameDescription
var string
Returns
TypeDescription
$this