Sha256: d96f47df522047afa5eae4f99f41bc72aad30a5d964bfec460adb2aa08796da4

Contents?: true

Size: 1.05 KB

Versions: 14

Compression:

Stored size: 1.05 KB

Contents

module Fog
  module Terremark
    class Real

      require 'fog/terremark/parsers/get_vapp_template'

      # Get details of a vapp template
      #
      # ==== Parameters
      # * vapp_template_id<~Integer> - Id of vapp template 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_vapp_template(vapp_template_id)
        request(
          :expects  => 200,
          :method   => 'GET',
          :parser   => Fog::Parsers::Terremark::GetVappTemplate.new,
          :path     => "vAppTemplate/#{vapp_template_id}"
        )
      end

    end

    class Mock

      def get_vapp_template(vapp_template_id)
        raise MockNotImplemented.new("Contributions welcome!")
      end

    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-0.0.72 lib/fog/terremark/requests/get_vapp_template.rb
fog-0.0.71 lib/fog/terremark/requests/get_vapp_template.rb
fog-0.0.70 lib/fog/terremark/requests/get_vapp_template.rb
fog-0.0.69 lib/fog/terremark/requests/get_vapp_template.rb
fog-0.0.68 lib/fog/terremark/requests/get_vapp_template.rb
fog-0.0.67 lib/fog/terremark/requests/get_vapp_template.rb
fog-0.0.66 lib/fog/terremark/requests/get_vapp_template.rb
fog-0.0.65 lib/fog/terremark/requests/get_vapp_template.rb
fog-0.0.64 lib/fog/terremark/requests/get_vapp_template.rb
fog-0.0.63 lib/fog/terremark/requests/get_vapp_template.rb
fog-0.0.62 lib/fog/terremark/requests/get_vapp_template.rb
fog-0.0.61 lib/fog/terremark/requests/get_vapp_template.rb
fog-0.0.60 lib/fog/terremark/requests/get_vapp_template.rb
fog-0.0.59 lib/fog/terremark/requests/get_vapp_template.rb