Class: Fog::Compute::Ecloud::TrustedNetworkGroup
Instance Attribute Summary
#loaded
Instance Method Summary
collapse
#load_unless_loaded!, #reload
Instance Method Details
#delete ⇒ Object
22
23
24
25
|
# File 'lib/fog/ecloud/models/compute/trusted_network_group.rb', line 22
def delete
data = service.trusted_network_groups_delete(href).body
task = Fog::Compute::Ecloud::Tasks.new(:service => service, :href => data[:href])[0]
end
|
#edit(options) ⇒ Object
16
17
18
19
20
|
# File 'lib/fog/ecloud/models/compute/trusted_network_group.rb', line 16
def edit(options)
options[:uri] = href
data = service.trusted_network_groups_edit(options).body
task = Fog::Compute::Ecloud::Tasks.new(:service => service, :href => data[:href])[0]
end
|
#id ⇒ Object
27
28
29
|
# File 'lib/fog/ecloud/models/compute/trusted_network_group.rb', line 27
def id
href.scan(/\d+/)[0]
end
|
#internet_services ⇒ Object
12
13
14
|
# File 'lib/fog/ecloud/models/compute/trusted_network_group.rb', line 12
def internet_services
@internet_services ||= Fog::Compute::Ecloud::InternetServices.new(:service => service, :href => href)
end
|