Class: Google::Apis::OsconfigV1beta::PatchJobInstanceDetails
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::PatchJobInstanceDetails
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/osconfig_v1beta/classes.rb,
generated/google/apis/osconfig_v1beta/representations.rb,
generated/google/apis/osconfig_v1beta/representations.rb
Overview
Patch details for a VM instance.
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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PatchJobInstanceDetails
Returns a new instance of PatchJobInstanceDetails.
1347 1348 1349 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1347 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
1324 1325 1326 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1324 def attempt_count @attempt_count end |
#failure_reason ⇒ String
If the patch fails, this field provides the reason.
Corresponds to the JSON property failureReason
1329 1330 1331 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1329 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
1335 1336 1337 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1335 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
1340 1341 1342 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1340 def name @name end |
#state ⇒ String
Current state of instance patch.
Corresponds to the JSON property state
1345 1346 1347 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1345 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1352 1353 1354 1355 1356 1357 1358 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1352 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 |