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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
Google\Protobuf\Int32Value|null |
hasHour
clearHour
getHourValue
Returns the unboxed value from getHour()
hour of day - 0 to 23.
Returns | |
---|---|
Type | Description |
int|null |
setHour
hour of day - 0 to 23.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Int32Value
|
Returns | |
---|---|
Type | Description |
$this |
setHourValue
Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.
hour of day - 0 to 23.
Parameter | |
---|---|
Name | Description |
var |
int|null
|
Returns | |
---|---|
Type | Description |
$this |
getDay
day of week (1-7), starting on Monday.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Int32Value|null |
hasDay
clearDay
getDayValue
Returns the unboxed value from getDay()
day of week (1-7), starting on Monday.
Returns | |
---|---|
Type | Description |
int|null |
setDay
day of week (1-7), starting on Monday.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Int32Value
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Name | Description |
var |
int|null
|
Returns | |
---|---|
Type | Description |
$this |
getUpdateTrack
Maintenance timing setting: canary (Earlier) or stable (Later).
Returns | |
---|---|
Type | Description |
int |
setUpdateTrack
Maintenance timing setting: canary (Earlier) or stable (Later).
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 |