Class: MMS::Resource::RestoreJob
- Inherits:
-
MMS::Resource
- Object
- MMS::Resource
- MMS::Resource::RestoreJob
- Defined in:
- lib/mms/resource/restore_job.rb
Instance Attribute Summary collapse
-
#cluster ⇒ Object
Returns the value of attribute cluster.
-
#created ⇒ Object
Returns the value of attribute created.
-
#delivery_method_name ⇒ Object
Returns the value of attribute delivery_method_name.
-
#delivery_status_name ⇒ Object
Returns the value of attribute delivery_status_name.
-
#delivery_url ⇒ Object
Returns the value of attribute delivery_url.
-
#name ⇒ Object
Returns the value of attribute name.
-
#point_in_time ⇒ Object
Returns the value of attribute point_in_time.
-
#snapshot_id ⇒ Object
Returns the value of attribute snapshot_id.
-
#status_name ⇒ Object
Returns the value of attribute status_name.
Attributes inherited from MMS::Resource
Instance Method Summary collapse
- #_from_hash(data) ⇒ Object
- #_load(id) ⇒ Object
-
#initialize(id, cluster_id, group_id, data = nil) ⇒ RestoreJob
constructor
A new instance of RestoreJob.
Methods inherited from MMS::Resource
Constructor Details
#initialize(id, cluster_id, group_id, data = nil) ⇒ RestoreJob
Returns a new instance of RestoreJob.
16 17 18 19 20 |
# File 'lib/mms/resource/restore_job.rb', line 16 def initialize(id, cluster_id, group_id, data = nil) @cluster = MMS::Resource::Cluster.new cluster_id, group_id super id, data end |
Instance Attribute Details
#cluster ⇒ Object
Returns the value of attribute cluster.
6 7 8 |
# File 'lib/mms/resource/restore_job.rb', line 6 def cluster @cluster end |
#created ⇒ Object
Returns the value of attribute created.
9 10 11 |
# File 'lib/mms/resource/restore_job.rb', line 9 def created @created end |
#delivery_method_name ⇒ Object
Returns the value of attribute delivery_method_name.
12 13 14 |
# File 'lib/mms/resource/restore_job.rb', line 12 def delivery_method_name @delivery_method_name end |
#delivery_status_name ⇒ Object
Returns the value of attribute delivery_status_name.
13 14 15 |
# File 'lib/mms/resource/restore_job.rb', line 13 def delivery_status_name @delivery_status_name end |
#delivery_url ⇒ Object
Returns the value of attribute delivery_url.
14 15 16 |
# File 'lib/mms/resource/restore_job.rb', line 14 def delivery_url @delivery_url end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/mms/resource/restore_job.rb', line 5 def name @name end |
#point_in_time ⇒ Object
Returns the value of attribute point_in_time.
11 12 13 |
# File 'lib/mms/resource/restore_job.rb', line 11 def point_in_time @point_in_time end |
#snapshot_id ⇒ Object
Returns the value of attribute snapshot_id.
8 9 10 |
# File 'lib/mms/resource/restore_job.rb', line 8 def snapshot_id @snapshot_id end |
#status_name ⇒ Object
Returns the value of attribute status_name.
10 11 12 |
# File 'lib/mms/resource/restore_job.rb', line 10 def status_name @status_name end |
Instance Method Details
#_from_hash(data) ⇒ Object
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/mms/resource/restore_job.rb', line 26 def _from_hash(data) @snapshot_id = data['snapshotId'] @created = data['created'] @status_name = data['statusName'] @point_in_time = data['pointInTime'] @delivery_method_name = data['delivery']['methodName'] @delivery_status_name = data['delivery']['statusName'] @delivery_url = data['delivery']['url'] @name = @created end |