Sha256: 0f8112cbfb957c2f29c17c36e7d70b9a0da1803fafc1c3cf4e8fde09a29b08b7

Contents?: true

Size: 1.09 KB

Versions: 110

Compression:

Stored size: 1.09 KB

Contents

module Fog
  module AWS
    class SimpleDB
      class Real

        # Create a SimpleDB domain
        #
        # ==== Parameters
        # * domain_name<~String>:: Name of domain. Must be between 3 and 255 of the
        # following characters: a-z, A-Z, 0-9, '_', '-' and '.'.
        # 
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'BoxUsage'
        #     * 'RequestId'
        def create_domain(domain_name)
          request(
            'Action'      => 'CreateDomain',
            'DomainName'  => domain_name,
            :idempotent   => true,
            :parser       => Fog::Parsers::AWS::SimpleDB::Basic.new(@nil_string)
          )
        end

      end

      class Mock

        def create_domain(domain_name)
          response = Excon::Response.new
          self.data[:domains][domain_name] = {}
          response.status = 200
          response.body = {
            'BoxUsage'  => Fog::AWS::Mock.box_usage,
            'RequestId' => Fog::AWS::Mock.request_id
          }
          response
        end

      end
    end
  end
end

Version data entries

110 entries across 110 versions & 19 rubygems

Version Path
fog-maestrodev-1.20.0.20140305101839 lib/fog/aws/requests/simpledb/create_domain.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/aws/requests/simpledb/create_domain.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/aws/requests/simpledb/create_domain.rb
fog-1.20.0 lib/fog/aws/requests/simpledb/create_domain.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/aws/requests/simpledb/create_domain.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/aws/requests/simpledb/create_domain.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/aws/requests/simpledb/create_domain.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/aws/requests/simpledb/create_domain.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/aws/requests/simpledb/create_domain.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/aws/requests/simpledb/create_domain.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/aws/requests/simpledb/create_domain.rb
fog-1.19.0 lib/fog/aws/requests/simpledb/create_domain.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/aws/requests/simpledb/create_domain.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/aws/requests/simpledb/create_domain.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/aws/requests/simpledb/create_domain.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/aws/requests/simpledb/create_domain.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/aws/requests/simpledb/create_domain.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/aws/requests/simpledb/create_domain.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/aws/requests/simpledb/create_domain.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/aws/requests/simpledb/create_domain.rb