Compute V1 Client - Class InstancesReportHostAsFaultyRequest (1.27.0)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ disruption_schedule string

The disruption schedule for the VM. Default to IMMEDIATE. Check the DisruptionSchedule enum for the list of possible values.

↳ fault_reasons array<InstancesReportHostAsFaultyRequestFaultReason>

getDisruptionSchedule

The disruption schedule for the VM. Default to IMMEDIATE.

Check the DisruptionSchedule enum for the list of possible values.

Returns
Type Description
string

hasDisruptionSchedule

clearDisruptionSchedule

setDisruptionSchedule

The disruption schedule for the VM. Default to IMMEDIATE.

Check the DisruptionSchedule enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this

getFaultReasons

Generated from protobuf field repeated .google.cloud.compute.v1.InstancesReportHostAsFaultyRequestFaultReason fault_reasons = 168056210;

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setFaultReasons

Generated from protobuf field repeated .google.cloud.compute.v1.InstancesReportHostAsFaultyRequestFaultReason fault_reasons = 168056210;

Parameter
Name Description
var array<InstancesReportHostAsFaultyRequestFaultReason>
Returns
Type Description
$this