Class: Fog::Compute::Ecloud::BackupInternetService
- Inherits:
-
Ecloud::Model
- Object
- Model
- Ecloud::Model
- Fog::Compute::Ecloud::BackupInternetService
- Defined in:
- lib/rackspace-fog/ecloud/models/compute/backup_internet_service.rb
Instance Attribute Summary
Attributes inherited from Ecloud::Model
Attributes inherited from Model
Instance Method Summary collapse
- #delete ⇒ Object
- #edit(options) ⇒ Object
- #id ⇒ Object
- #internet_services ⇒ Object
- #node_services ⇒ Object
- #tasks ⇒ Object
Methods inherited from Ecloud::Model
Methods inherited from Model
#initialize, #inspect, #reload, #symbolize_keys, #to_json, #wait_for
Methods included from Attributes::ClassMethods
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
Methods included from Attributes::InstanceMethods
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #requires, #requires_one
Constructor Details
This class inherits a constructor from Fog::Model
Instance Method Details
#delete ⇒ Object
34 35 36 37 |
# File 'lib/rackspace-fog/ecloud/models/compute/backup_internet_service.rb', line 34 def delete data = connection.backup_internet_service_delete(href).body task = Fog::Compute::Ecloud::Tasks.new(:connection => connection, :href => data[:href])[0] end |
#edit(options) ⇒ Object
28 29 30 31 32 |
# File 'lib/rackspace-fog/ecloud/models/compute/backup_internet_service.rb', line 28 def edit() [:uri] = href data = connection.backup_internet_service_edit().body object = collection.from_data(data) end |
#id ⇒ Object
39 40 41 |
# File 'lib/rackspace-fog/ecloud/models/compute/backup_internet_service.rb', line 39 def id href.scan(/\d+/)[0] end |
#internet_services ⇒ Object
20 21 22 |
# File 'lib/rackspace-fog/ecloud/models/compute/backup_internet_service.rb', line 20 def internet_services @internet_services = Fog::Compute::Ecloud::InternetServices.new(:connection => connection, :href => href) end |