Compute V1 Client - Class ResourceStatus (1.23.0)

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

Contains output only fields. Use this sub-message for actual values set on Instance attributes as compared to the value requested by the user (intent) in their instance CRUD calls.

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ physical_hoststring

[Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId.

↳ schedulingResourceStatusScheduling
↳ upcoming_maintenanceUpcomingMaintenance

getPhysicalHost

[Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId.

Returns
TypeDescription
string

hasPhysicalHost

clearPhysicalHost

setPhysicalHost

[Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getScheduling

Generated from protobuf field optional .google.cloud.compute.v1.ResourceStatusScheduling scheduling = 386688404;

Returns
TypeDescription
ResourceStatusScheduling|null

hasScheduling

clearScheduling

setScheduling

Generated from protobuf field optional .google.cloud.compute.v1.ResourceStatusScheduling scheduling = 386688404;

Parameter
NameDescription
varResourceStatusScheduling
Returns
TypeDescription
$this

getUpcomingMaintenance

Generated from protobuf field optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_maintenance = 227348592;

Returns
TypeDescription
UpcomingMaintenance|null

hasUpcomingMaintenance

clearUpcomingMaintenance

setUpcomingMaintenance

Generated from protobuf field optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_maintenance = 227348592;

Parameter
NameDescription
varUpcomingMaintenance
Returns
TypeDescription
$this