Compute V1 Client - Class GroupMaintenanceInfo (1.30.0)

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

Maintenance Info for ReservationBlocks.

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ maintenance_ongoing_count int

Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.

↳ maintenance_pending_count int

Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.

↳ scheduling_type string

The type of maintenance for the reservation. Check the SchedulingType enum for the list of possible values.

↳ upcoming_group_maintenance UpcomingMaintenance

Maintenance information on this group of VMs.

getMaintenanceOngoingCount

Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.

Returns
Type Description
int

hasMaintenanceOngoingCount

clearMaintenanceOngoingCount

setMaintenanceOngoingCount

Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.

Parameter
Name Description
var int
Returns
Type Description
$this

getMaintenancePendingCount

Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.

Returns
Type Description
int

hasMaintenancePendingCount

clearMaintenancePendingCount

setMaintenancePendingCount

Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.

Parameter
Name Description
var int
Returns
Type Description
$this

getSchedulingType

The type of maintenance for the reservation.

Check the SchedulingType enum for the list of possible values.

Returns
Type Description
string

hasSchedulingType

clearSchedulingType

setSchedulingType

The type of maintenance for the reservation.

Check the SchedulingType enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this

getUpcomingGroupMaintenance

Maintenance information on this group of VMs.

Returns
Type Description
UpcomingMaintenance|null

hasUpcomingGroupMaintenance

clearUpcomingGroupMaintenance

setUpcomingGroupMaintenance

Maintenance information on this group of VMs.

Parameter
Name Description
var UpcomingMaintenance
Returns
Type Description
$this