Google Cloud OsConfig V1 Client - Class PatchJobInstanceDetails (1.0.5)

Reference documentation and code samples for the Google Cloud OsConfig V1 Client class PatchJobInstanceDetails.

Patch details for a VM instance. For more information about reviewing VM instance details, see Listing all VM instance details for a specific patch job.

Generated from protobuf message google.cloud.osconfig.v1.PatchJobInstanceDetails

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The instance name in the form projects/*/zones/*/instances/*

↳ instance_system_id string

The unique identifier for the instance. This identifier is defined by the server.

↳ state int

Current state of instance patch.

↳ failure_reason string

If the patch fails, this field provides the reason.

↳ attempt_count int|string

The number of times the agent that the agent attempts to apply the patch.

getName

The instance name in the form projects/*/zones/*/instances/*

Returns
TypeDescription
string

setName

The instance name in the form projects/*/zones/*/instances/*

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInstanceSystemId

The unique identifier for the instance. This identifier is defined by the server.

Returns
TypeDescription
string

setInstanceSystemId

The unique identifier for the instance. This identifier is defined by the server.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

Current state of instance patch.

Returns
TypeDescription
int

setState

Current state of instance patch.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getFailureReason

If the patch fails, this field provides the reason.

Returns
TypeDescription
string

setFailureReason

If the patch fails, this field provides the reason.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAttemptCount

The number of times the agent that the agent attempts to apply the patch.

Returns
TypeDescription
int|string

setAttemptCount

The number of times the agent that the agent attempts to apply the patch.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this