Sha256: a7b26e5923c0611dfd16e8a1162399d25e2fa3a6301e764063b5ead303acd29c

Contents?: true

Size: 1.39 KB

Versions: 38

Compression:

Stored size: 1.39 KB

Contents

module Fog
  module AWS
    class Redshift
      class Real
        require 'fog/aws/parsers/redshift/purchase_reserved_node_offering'

        # ==== Parameters
        # 
        # @param [Hash] options
        # * :reserved_node_offering_id - required - (String)
        #    The unique identifier of the reserved node offering you want to purchase.
        # * :node_count - (Integer) 
        #    The number of reserved nodes you want to purchase. Default: 1
        #
        # ==== See Also
        # http://docs.aws.amazon.com/redshift/latest/APIReference/API_PurchaseReservedNodeOffering.html               
        def purchase_reserved_node_offering(options = {})
          reserved_node_offering_id = options[:reserved_node_offering_id]
          node_count                = options[:node_count]

          path = "/"
          params = {
            :headers    => {},
            :path       => path,
            :method     => :put,
            :query      => {},
            :parser     => Fog::Parsers::Redshift::AWS::PurchaseReservedNodeOffering.new
          }

          params[:query]['Action']                   = 'PurchaseReservedNodeOffering'
          params[:query]['ReservedNodeOfferingId']   = reserved_node_offering_id if reserved_node_offering_id
          params[:query]['NodeCount']                = node_count if node_count

          request(params)
        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/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-1.20.0 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-1.19.0 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb