# Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::PatchJobInstanceDetails (v1.9.0)

1.9.0 (latest) 1.8.1 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.16.0 0.15.2 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.1 Reference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::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](https://cloud.google.com/compute/docs/os-patch-management/manage-patch-jobs#list-instance-details).

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #attempt_count

    def attempt_count() -> ::Integer

**Returns**

- (::Integer) --- The number of times the agent that the agent attempts to apply the patch.

### #attempt_count=

    def attempt_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The number of times the agent that the agent attempts to apply the patch.
**Returns**

- (::Integer) --- The number of times the agent that the agent attempts to apply the patch.

### #failure_reason

    def failure_reason() -> ::String

**Returns**

- (::String) --- If the patch fails, this field provides the reason.

### #failure_reason=

    def failure_reason=(value) -> ::String

**Parameter**

- **value** (::String) --- If the patch fails, this field provides the reason.
**Returns**

- (::String) --- If the patch fails, this field provides the reason.

### #instance_system_id

    def instance_system_id() -> ::String

**Returns**

- (::String) --- The unique identifier for the instance. This identifier is defined by the server.

### #instance_system_id=

    def instance_system_id=(value) -> ::String

**Parameter**

- **value** (::String) --- The unique identifier for the instance. This identifier is defined by the server.
**Returns**

- (::String) --- The unique identifier for the instance. This identifier is defined by the server.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The instance name in the form `projects/*/zones/*/instances/*`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The instance name in the form `projects/*/zones/*/instances/*`
**Returns**

- (::String) --- The instance name in the form `projects/*/zones/*/instances/*`

### #state

    def state() -> ::Google::Cloud::OsConfig::V1::Instance::PatchState

**Returns**

- ([::Google::Cloud::OsConfig::V1::Instance::PatchState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-Instance-PatchState)) --- Current state of instance patch.

### #state=

    def state=(value) -> ::Google::Cloud::OsConfig::V1::Instance::PatchState

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1::Instance::PatchState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-Instance-PatchState)) --- Current state of instance patch.
**Returns**

- ([::Google::Cloud::OsConfig::V1::Instance::PatchState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-Instance-PatchState)) --- Current state of instance patch.