Sha256: 0cdd5cfe70ff82be09e5e91dd4404d7c19774747989920587e10e0745f96361a

Contents?: true

Size: 1013 Bytes

Versions: 7

Compression:

Stored size: 1013 Bytes

Contents

module Fog
  module Terremark
    module Shared
      module Real

        # Get details of a vdc
        #
        # ==== Parameters
        # * vdc_id<~Integer> - Id of vdc to lookup
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:

        # FIXME

        #     * 'CatalogItems'<~Array>
        #       * 'href'<~String> - linke to item
        #       * 'name'<~String> - name of item
        #       * 'type'<~String> - type of item
        #     * 'description'<~String> - Description of catalog
        #     * 'name'<~String> - Name of catalog
        def get_vdc(vdc_id)
          request(
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::Parsers::Terremark::Shared::GetVdc.new,
            :path     => "vdc/#{vdc_id}"
          )
        end

      end

      module Mock

        def get_vdc(vdc_id)
          raise MockNotImplemented.new("Contributions welcome!")
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fog-0.0.84 lib/fog/terremark/requests/shared/get_vdc.rb
fog-0.0.83 lib/fog/terremark/requests/shared/get_vdc.rb
fog-0.0.82 lib/fog/terremark/requests/shared/get_vdc.rb
fog-0.0.81 lib/fog/terremark/requests/shared/get_vdc.rb
fog-0.0.80 lib/fog/terremark/requests/shared/get_vdc.rb
fog-0.0.79 lib/fog/terremark/requests/shared/get_vdc.rb
fog-0.0.78 lib/fog/terremark/requests/shared/get_vdc.rb