Sha256: d7c98a759bf4c636176acb9fb795aa8454f870dc429ee8353840afa5dc975e79

Contents?: true

Size: 930 Bytes

Versions: 32

Compression:

Stored size: 930 Bytes

Contents

module Fog
  module Compute
    class Linode
      class Real

        # Creates a linode and assigns you full privileges
        #
        # ==== Parameters 	
        # * datacenter_id<~Integer>: id of datacenter to place new linode in
        # * plan_id<~Integer>: id of plan to boot new linode with        
        # * payment_term<~Integer>: Subscription term in months, in [1, 12, 24]
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Array>:
        # TODO: docs
        def linode_create(datacenter_id, plan_id, payment_term)
          request(
            :expects  => 200,
            :method   => 'GET',
            :query    => {
              :api_action   => 'linode.create',
              :datacenterId => datacenter_id,
              :paymentTerm  => payment_term,
              :planId       => plan_id
            }
          )
        end

      end
    end
  end
end

Version data entries

32 entries across 32 versions & 8 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/linode/requests/compute/linode_create.rb
michiels-fog-1.3.1 lib/fog/linode/requests/compute/linode_create.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/linode/requests/compute/linode_create.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/linode/requests/compute/linode_create.rb
fog-1.3.1 lib/fog/linode/requests/compute/linode_create.rb
fog-1.3.0 lib/fog/linode/requests/compute/linode_create.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/linode/requests/compute/linode_create.rb
fog-1.2.0 lib/fog/linode/requests/compute/linode_create.rb
ktheory-fog-1.1.2 lib/fog/linode/requests/compute/linode_create.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/linode/requests/compute/linode_create.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/linode/requests/compute/linode_create.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/linode/requests/compute/linode_create.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/linode/requests/compute/linode_create.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/linode/requests/compute/linode_create.rb
fog-1.1.2 lib/fog/linode/requests/compute/linode_create.rb
fog_tractical-1.1.4 lib/fog/linode/requests/compute/linode_create.rb
fog_tractical-1.1.3 lib/fog/linode/requests/compute/linode_create.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/linode/requests/compute/linode_create.rb
fog-1.1.1 lib/fog/linode/requests/compute/linode_create.rb
fog-1.1.0 lib/fog/linode/requests/compute/linode_create.rb