Class: Fog::Compute::Ecloud::TrustedNetworkGroup

Inherits:
Ecloud::Model
  • Object
show all
Defined in:
lib/fog/compute/ecloud/models/trusted_network_group.rb

Instance Attribute Summary

Attributes inherited from Ecloud::Model

#loaded

Instance Method Summary collapse

Methods inherited from Ecloud::Model

#load_unless_loaded!

Instance Method Details

#deleteObject



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(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

#idObject



27
28
29
# File 'lib/fog/compute/ecloud/models/trusted_network_group.rb', line 27

def id
  href.scan(/\d+/)[0]
end

#internet_servicesObject



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

#reloadObject



31
32
33
34
# File 'lib/fog/compute/ecloud/models/trusted_network_group.rb', line 31

def reload
  @internet_services = nil
  super
end