Class: Google::Apis::OsconfigV1::PatchJobInstanceDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/osconfig_v1/classes.rb,
lib/google/apis/osconfig_v1/representations.rb,
lib/google/apis/osconfig_v1/representations.rb

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PatchJobInstanceDetails

Returns a new instance of PatchJobInstanceDetails.



1431
1432
1433
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1431

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#attempt_countFixnum

The number of times the agent that the agent attempts to apply the patch. Corresponds to the JSON property attemptCount

Returns:

  • (Fixnum)


1408
1409
1410
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1408

def attempt_count
  @attempt_count
end

#failure_reasonString

If the patch fails, this field provides the reason. Corresponds to the JSON property failureReason

Returns:

  • (String)


1413
1414
1415
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1413

def failure_reason
  @failure_reason
end

#instance_system_idString

The unique identifier for the instance. This identifier is defined by the server. Corresponds to the JSON property instanceSystemId

Returns:

  • (String)


1419
1420
1421
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1419

def instance_system_id
  @instance_system_id
end

#nameString

The instance name in the form projects/*/zones/*/instances/* Corresponds to the JSON property name

Returns:

  • (String)


1424
1425
1426
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1424

def name
  @name
end

#stateString

Current state of instance patch. Corresponds to the JSON property state

Returns:

  • (String)


1429
1430
1431
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1429

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1436
1437
1438
1439
1440
1441
1442
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1436

def update!(**args)
  @attempt_count = args[:attempt_count] if args.key?(:attempt_count)
  @failure_reason = args[:failure_reason] if args.key?(:failure_reason)
  @instance_system_id = args[:instance_system_id] if args.key?(:instance_system_id)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
end