Class: Google::Apis::ComputeAlpha::ResourceStatusLastInstanceTerminationDetails

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceStatusLastInstanceTerminationDetails

Returns a new instance of ResourceStatusLastInstanceTerminationDetails.



44630
44631
44632
# File 'lib/google/apis/compute_alpha/classes.rb', line 44630

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

Instance Attribute Details

#termination_reasonString

Reason for termination Corresponds to the JSON property terminationReason

Returns:

  • (String)


44628
44629
44630
# File 'lib/google/apis/compute_alpha/classes.rb', line 44628

def termination_reason
  @termination_reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



44635
44636
44637
# File 'lib/google/apis/compute_alpha/classes.rb', line 44635

def update!(**args)
  @termination_reason = args[:termination_reason] if args.key?(:termination_reason)
end