Compute V1 Client - Class HealthSourceHealth (2.9.0)

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

Response message for RegionHealthSources.GetHealth

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ health_state string

Health state of the HealthSource. Check the HealthState enum for the list of possible values.

↳ kind string

Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.

↳ sources array<HealthSourcesGetHealthResponseSourceInfo>

Health state details of the sources.

getHealthState

Health state of the HealthSource.

Check the HealthState enum for the list of possible values.

Returns
Type Description
string

hasHealthState

clearHealthState

setHealthState

Health state of the HealthSource.

Check the HealthState enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this

getKind

Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.

Returns
Type Description
string

hasKind

clearKind

setKind

Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.

Parameter
Name Description
var string
Returns
Type Description
$this

getSources

Health state details of the sources.

Returns
Type Description
Google\Protobuf\RepeatedField<HealthSourcesGetHealthResponseSourceInfo>

setSources

Health state details of the sources.

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