Class: Humidifier::Lightsail::Disk
- Defined in:
- lib/humidifier/magic.rb
Overview
A dynamically-defined class that represents an AWS::Lightsail::Disk resource
Constant Summary
Constants inherited from Resource
Instance Method Summary collapse
-
#add_ons ⇒ Object
returns the AddOns property.
-
#add_ons=(value) ⇒ Object
sets the AddOns property (List).
-
#availability_zone ⇒ Object
returns the AvailabilityZone property.
-
#availability_zone=(value) ⇒ Object
sets the AvailabilityZone property (String).
-
#disk_name ⇒ Object
returns the DiskName property.
-
#disk_name=(value) ⇒ Object
sets the DiskName property (String).
-
#size_in_gb ⇒ Object
returns the SizeInGb property.
-
#size_in_gb=(value) ⇒ Object
sets the SizeInGb property (Integer).
-
#tags ⇒ Object
returns the Tags property.
-
#tags=(value) ⇒ Object
sets the Tags property (List).
Methods inherited from Resource
#initialize, #method_missing, prop?, #respond_to_missing?, #to_cf, #update, #update_attributes, #update_property
Constructor Details
This class inherits a constructor from Humidifier::Resource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Humidifier::Resource
Instance Method Details
#add_ons ⇒ Object
returns the AddOns property
10 11 12 |
# File 'lib/humidifier/magic.rb', line 10 def add_ons properties['add_ons'] end |
#add_ons=(value) ⇒ Object
sets the AddOns property (List)
15 16 17 |
# File 'lib/humidifier/magic.rb', line 15 def add_ons=(value) update_property('add_ons', value) end |
#availability_zone ⇒ Object
returns the AvailabilityZone property
20 21 22 |
# File 'lib/humidifier/magic.rb', line 20 def availability_zone properties['availability_zone'] end |
#availability_zone=(value) ⇒ Object
sets the AvailabilityZone property (String)
25 26 27 |
# File 'lib/humidifier/magic.rb', line 25 def availability_zone=(value) update_property('availability_zone', value) end |
#disk_name ⇒ Object
returns the DiskName property
30 31 32 |
# File 'lib/humidifier/magic.rb', line 30 def disk_name properties['disk_name'] end |
#disk_name=(value) ⇒ Object
sets the DiskName property (String)
35 36 37 |
# File 'lib/humidifier/magic.rb', line 35 def disk_name=(value) update_property('disk_name', value) end |
#size_in_gb ⇒ Object
returns the SizeInGb property
40 41 42 |
# File 'lib/humidifier/magic.rb', line 40 def size_in_gb properties['size_in_gb'] end |
#size_in_gb=(value) ⇒ Object
sets the SizeInGb property (Integer)
45 46 47 |
# File 'lib/humidifier/magic.rb', line 45 def size_in_gb=(value) update_property('size_in_gb', value) end |
#tags ⇒ Object
returns the Tags property
50 51 52 |
# File 'lib/humidifier/magic.rb', line 50 def properties['tags'] end |
#tags=(value) ⇒ Object
sets the Tags property (List)
55 56 57 |
# File 'lib/humidifier/magic.rb', line 55 def (value) update_property('tags', value) end |