Class: Vcloud::Walker::Resource::Organization
- Defined in:
- lib/vcloud/walker/resource/organization.rb
Class Method Summary collapse
Methods inherited from Entity
Class Method Details
.catalogs ⇒ Object
5 6 7 8 |
# File 'lib/vcloud/walker/resource/organization.rb', line 5 def self.catalogs fog_catalogs = FogInterface.get_catalogs Catalogs.new(fog_catalogs).to_summary end |
.edgegateways ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/vcloud/walker/resource/organization.rb', line 15 def self.edgegateways fog_edge_gateways = FogInterface.get_edge_gateways fog_edge_gateways.collect do |edge_gw| edge_gw[:id] = edge_gw[:href].split('/').last edgegw_service_configuration = edge_gw[:Configuration][:EdgeGatewayServiceConfiguration] if edgegw_service_configuration[:GatewayIpsecVpnService] edgegw_service_configuration[:GatewayIpsecVpnService] = GatewayIpsecVpnService.new(edgegw_service_configuration[:GatewayIpsecVpnService]).to_summary end edge_gw end end |
.networks ⇒ Object
27 28 29 30 |
# File 'lib/vcloud/walker/resource/organization.rb', line 27 def self.networks fog_networks = FogInterface.get_networks Networks.new(fog_networks).to_summary end |
.organization ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/vcloud/walker/resource/organization.rb', line 32 def self.organization { :vdcs => vdcs, :networks => networks, :catalogs => catalogs, :edgegateways => edgegateways, } end |
.vdcs ⇒ Object
10 11 12 13 |
# File 'lib/vcloud/walker/resource/organization.rb', line 10 def self.vdcs fog_vdcs = FogInterface.get_vdcs Vdcs.new(fog_vdcs).to_summary end |