Compute V1 Client - Class NodeGroupMaintenanceWindow (1.26.0)

Reference documentation and code samples for the Compute V1 Client class NodeGroupMaintenanceWindow.

Time window specified for daily maintenance operations. GCE's internal maintenance will be performed within this window.

Generated from protobuf message google.cloud.compute.v1.NodeGroupMaintenanceWindow

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ maintenance_durationDuration

[Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.

↳ start_timestring

Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.

getMaintenanceDuration

[Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.

Returns
TypeDescription
Duration|null

hasMaintenanceDuration

clearMaintenanceDuration

setMaintenanceDuration

[Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.

Parameter
NameDescription
varDuration
Returns
TypeDescription
$this

getStartTime

Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.

Returns
TypeDescription
string

hasStartTime

clearStartTime

setStartTime

Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this