Compute V1 Client - Class NodeGroupMaintenanceWindow (1.16.2)

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
Name Description
data array

Optional. Data for populating the Message object.

↳ maintenance_duration Google\Cloud\Compute\V1\Duration

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

↳ start_time string

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
Type Description
Google\Cloud\Compute\V1\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
Name Description
var Google\Cloud\Compute\V1\Duration
Returns
Type Description
$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
Type Description
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
Name Description
var string
Returns
Type Description
$this