Sha256: 9fb10297441feaf3e80e1fd26c898f713dafa7253b5b49a809e78bf563d49374

Contents?: true

Size: 957 Bytes

Versions: 16

Compression:

Stored size: 957 Bytes

Contents

unless Fog.mocking?

  module Fog
    class Terremark

      # 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::GetVdc.new,
          :path     => "vdc/#{vdc_id}"
        )
      end

    end
  end

else

  module Fog
    class Terremark

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

    end
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fog-0.0.58 lib/fog/terremark/requests/get_vdc.rb
fog-0.0.57 lib/fog/terremark/requests/get_vdc.rb
fog-0.0.56 lib/fog/terremark/requests/get_vdc.rb
fog-0.0.55 lib/fog/terremark/requests/get_vdc.rb
fog-0.0.54 lib/fog/terremark/requests/get_vdc.rb
fog-0.0.53 lib/fog/terremark/requests/get_vdc.rb
fog-0.0.52 lib/fog/terremark/requests/get_vdc.rb
fog-0.0.51 lib/fog/terremark/requests/get_vdc.rb
fog-0.0.50 lib/fog/terremark/requests/get_vdc.rb
fog-0.0.49 lib/fog/terremark/requests/get_vdc.rb
fog-0.0.48 lib/fog/terremark/requests/get_vdc.rb
fog-0.0.47 lib/fog/terremark/requests/get_vdc.rb
fog-0.0.46 lib/fog/terremark/requests/get_vdc.rb
fog-0.0.45 lib/fog/terremark/requests/get_vdc.rb
fog-0.0.44 lib/fog/terremark/requests/get_vdc.rb
fog-0.0.43 lib/fog/terremark/requests/get_vdc.rb