Class: Google::Apis::ComputeAlpha::StatefulPolicy

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ StatefulPolicy

Returns a new instance of StatefulPolicy



26942
26943
26944
# File 'generated/google/apis/compute_alpha/classes.rb', line 26942

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

Instance Attribute Details

#preserved_resourcesGoogle::Apis::ComputeAlpha::StatefulPolicyPreservedResources

Configuration of all preserved resources. Corresponds to the JSON property preservedResources



26935
26936
26937
# File 'generated/google/apis/compute_alpha/classes.rb', line 26935

def preserved_resources
  @preserved_resources
end

#preserved_stateGoogle::Apis::ComputeAlpha::StatefulPolicyPreservedState

Configuration of preserved resources. Corresponds to the JSON property preservedState



26940
26941
26942
# File 'generated/google/apis/compute_alpha/classes.rb', line 26940

def preserved_state
  @preserved_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



26947
26948
26949
26950
# File 'generated/google/apis/compute_alpha/classes.rb', line 26947

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