Class: Fog::Compute::Ecloud::BackupInternetService
- Inherits:
-
Ecloud::Model
- Object
- Model
- Ecloud::Model
- Fog::Compute::Ecloud::BackupInternetService
show all
- Defined in:
- lib/fog/ecloud/models/compute/backup_internet_service.rb
Instance Attribute Summary
#loaded
Instance Method Summary
collapse
#load_unless_loaded!, #reload
Instance Method Details
#delete ⇒ Object
34
35
36
37
|
# File 'lib/fog/ecloud/models/compute/backup_internet_service.rb', line 34
def delete
data = service.backup_internet_service_delete(href).body
task = Fog::Compute::Ecloud::Tasks.new(:service => service, :href => data[:href])[0]
end
|
#edit(options) ⇒ Object
28
29
30
31
32
|
# File 'lib/fog/ecloud/models/compute/backup_internet_service.rb', line 28
def edit(options)
options[:uri] = href
data = service.backup_internet_service_edit(options).body
object = collection.from_data(data)
end
|
#id ⇒ Object
39
40
41
|
# File 'lib/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/fog/ecloud/models/compute/backup_internet_service.rb', line 20
def internet_services
@internet_services = Fog::Compute::Ecloud::InternetServices.new(:service => service, :href => href)
end
|
#node_services ⇒ Object
24
25
26
|
# File 'lib/fog/ecloud/models/compute/backup_internet_service.rb', line 24
def node_services
@node_services = Fog::Compute::Ecloud::NodeServices.new(:service => service, :href => href)
end
|
#tasks ⇒ Object
16
17
18
|
# File 'lib/fog/ecloud/models/compute/backup_internet_service.rb', line 16
def tasks
@tasks = Fog::Compute::Ecloud::Tasks.new(:service => service, :href => href)
end
|