Sha256: d83ec541f22b81ac2d4982341c246f20c8b1b7f351310480ebb3c5a5cdd0d747

Contents?: true

Size: 742 Bytes

Versions: 38

Compression:

Stored size: 742 Bytes

Contents

require 'fog/core/collection'
require 'fog/vcloud_director/models/compute/network'

module Fog
  module Compute
    class VcloudDirector

      class Networks < Collection
        model Fog::Compute::VcloudDirector::Network

        attribute :organization

        private

        def get_by_id(item_id)
          item = service.get_network(item_id).body
          service.add_id_from_href!(item)
          item
        end

        def item_list
          data = service.get_organization(organization.id).body
          items = data[:Link].select { |link| link[:type] == "application/vnd.vmware.vcloud.orgNetwork+xml" }
          items.each{|item| service.add_id_from_href!(item) }
          items
        end

      end
    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
fog-maestrodev-1.20.0.20140305101839 lib/fog/vcloud_director/models/compute/networks.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/vcloud_director/models/compute/networks.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/vcloud_director/models/compute/networks.rb
fog-1.20.0 lib/fog/vcloud_director/models/compute/networks.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/vcloud_director/models/compute/networks.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/vcloud_director/models/compute/networks.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/vcloud_director/models/compute/networks.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/vcloud_director/models/compute/networks.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/vcloud_director/models/compute/networks.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/vcloud_director/models/compute/networks.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/vcloud_director/models/compute/networks.rb
fog-1.19.0 lib/fog/vcloud_director/models/compute/networks.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/vcloud_director/models/compute/networks.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/vcloud_director/models/compute/networks.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/vcloud_director/models/compute/networks.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/vcloud_director/models/compute/networks.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/vcloud_director/models/compute/networks.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/vcloud_director/models/compute/networks.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/vcloud_director/models/compute/networks.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/vcloud_director/models/compute/networks.rb