Class: Google::Apis::ComputeAlpha::InstanceGroupManagerStatefulPolicyDiskPolicy

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) ⇒ InstanceGroupManagerStatefulPolicyDiskPolicy

Returns a new instance of InstanceGroupManagerStatefulPolicyDiskPolicy



9744
9745
9746
# File 'generated/google/apis/compute_alpha/classes.rb', line 9744

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

Instance Attribute Details

#device_nameString

Device name of the disk to be preserved Corresponds to the JSON property deviceName

Returns:

  • (String)


9742
9743
9744
# File 'generated/google/apis/compute_alpha/classes.rb', line 9742

def device_name
  @device_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9749
9750
9751
# File 'generated/google/apis/compute_alpha/classes.rb', line 9749

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