Class: Fog::Compute::Ecloud::TrustedNetworkGroup
- Inherits:
-
Ecloud::Model
- Object
- Model
- Ecloud::Model
- Fog::Compute::Ecloud::TrustedNetworkGroup
- Defined in:
- lib/fog/compute/ecloud/models/trusted_network_group.rb
Instance Attribute Summary
Attributes inherited from Ecloud::Model
Instance Method Summary collapse
Methods inherited from Ecloud::Model
Instance Method Details
#delete ⇒ Object
22 23 24 25 |
# File 'lib/fog/compute/ecloud/models/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/compute/ecloud/models/trusted_network_group.rb', line 16 def edit() [:uri] = href data = service.trusted_network_groups_edit().body task = Fog::Compute::Ecloud::Tasks.new(:service => service, :href => data[:href])[0] end |
#id ⇒ Object
27 28 29 |
# File 'lib/fog/compute/ecloud/models/trusted_network_group.rb', line 27 def id href.scan(/\d+/)[0] end |
#internet_services ⇒ Object
12 13 14 |
# File 'lib/fog/compute/ecloud/models/trusted_network_group.rb', line 12 def internet_services @internet_services ||= Fog::Compute::Ecloud::InternetServices.new(:service => service, :href => href) end |
#reload ⇒ Object
31 32 33 34 |
# File 'lib/fog/compute/ecloud/models/trusted_network_group.rb', line 31 def reload @internet_services = nil super end |