Compute V1 Client - Class PeriodicPartialMaintenanceSchedule (2.11.0)

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

The periodic partial maintenance schedule includes 52 weeks worth of maintenance windows.

LINT.IfChange(PeriodicPartialMaintenanceSchedule)

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ sub_type string

The maintenance type in which the zone is during the given window. Check the SubType enum for the list of possible values.

↳ target_resource string

The target resource that the maintenance window is for. For example, "projects/my-project/zones/us-central1-a".

↳ type string

Check the Type enum for the list of possible values.

↳ window_end_time DateTime

The end civil timestamp of the window (not inclusive). This contains a time zone.

↳ window_start_time DateTime

The start civil timestamp of the window. This contains a time zone.

getSubType

The maintenance type in which the zone is during the given window.

Check the SubType enum for the list of possible values.

Returns
Type Description
string

hasSubType

clearSubType

setSubType

The maintenance type in which the zone is during the given window.

Check the SubType enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this

getTargetResource

The target resource that the maintenance window is for.

For example, "projects/my-project/zones/us-central1-a".

Returns
Type Description
string

hasTargetResource

clearTargetResource

setTargetResource

The target resource that the maintenance window is for.

For example, "projects/my-project/zones/us-central1-a".

Parameter
Name Description
var string
Returns
Type Description
$this

getType

Check the Type enum for the list of possible values.

Returns
Type Description
string

hasType

clearType

setType

Check the Type enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this

getWindowEndTime

The end civil timestamp of the window (not inclusive).

This contains a time zone.

Returns
Type Description
DateTime|null

hasWindowEndTime

clearWindowEndTime

setWindowEndTime

The end civil timestamp of the window (not inclusive).

This contains a time zone.

Parameter
Name Description
var DateTime
Returns
Type Description
$this

getWindowStartTime

The start civil timestamp of the window.

This contains a time zone.

Returns
Type Description
DateTime|null

hasWindowStartTime

clearWindowStartTime

setWindowStartTime

The start civil timestamp of the window.

This contains a time zone.

Parameter
Name Description
var DateTime
Returns
Type Description
$this