Class: Google::Apis::OsconfigV1::PatchJobInstanceDetails
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1::PatchJobInstanceDetails
- 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
-
#attempt_count ⇒ Fixnum
The number of times the agent that the agent attempts to apply the patch.
-
#failure_reason ⇒ String
If the patch fails, this field provides the reason.
-
#instance_system_id ⇒ String
The unique identifier for the instance.
-
#name ⇒ String
The instance name in the form
projects/*/zones/*/instances/*Corresponds to the JSON propertyname. -
#state ⇒ String
Current state of instance patch.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PatchJobInstanceDetails
constructor
A new instance of PatchJobInstanceDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PatchJobInstanceDetails
Returns a new instance of PatchJobInstanceDetails.
1311 1312 1313 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1311 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attempt_count ⇒ Fixnum
The number of times the agent that the agent attempts to apply the patch.
Corresponds to the JSON property attemptCount
1288 1289 1290 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1288 def attempt_count @attempt_count end |
#failure_reason ⇒ String
If the patch fails, this field provides the reason.
Corresponds to the JSON property failureReason
1293 1294 1295 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1293 def failure_reason @failure_reason end |
#instance_system_id ⇒ String
The unique identifier for the instance. This identifier is defined by the
server.
Corresponds to the JSON property instanceSystemId
1299 1300 1301 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1299 def instance_system_id @instance_system_id end |
#name ⇒ String
The instance name in the form projects/*/zones/*/instances/*
Corresponds to the JSON property name
1304 1305 1306 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1304 def name @name end |
#state ⇒ String
Current state of instance patch.
Corresponds to the JSON property state
1309 1310 1311 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1309 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1316 1317 1318 1319 1320 1321 1322 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1316 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 |