Sha256: 96e9b39eae53522ed512c1fc47cff54c6767fb21d2430b36a0364be0b7eb35da

Contents?: true

Size: 1.47 KB

Versions: 27

Compression:

Stored size: 1.47 KB

Contents

unless Fog.mocking?

  module Fog
    module AWS
      class SimpleDB

        # Put item attributes into 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 '.'.
        # * item_name<~String> - Name of the item.  May use any UTF-8 characters valid
        #   in xml.  Control characters and sequences not allowed in xml are not
        #   valid.  Can be up to 1024 bytes long.
        # * attributes<~Hash> - Name/value pairs to add to the item.  Attribute names
        #   and values may use any UTF-8 characters valid in xml. Control characters
        #   and sequences not allowed in xml are not valid.  Each name and value can
        #   be up to 1024 bytes long.
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'BoxUsage'
        #     * 'RequestId'
        def put_attributes(domain_name, item_name, attributes, replace_attributes = [])
          batch_put_attributes(domain_name, { item_name => attributes }, { item_name => replace_attributes })
        end

      end
    end
  end

else

  module Fog
    module AWS
      class SimpleDb

        def put_attributes(domain_name, item_name, attributes, replace_attributes = [])
          batch_put_attributes(domain_name, { item_name => attributes }, { item_name => replace_attributes })
        end

      end
    end
  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
fog-0.0.56 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.55 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.54 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.53 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.52 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.51 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.50 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.49 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.48 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.47 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.46 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.45 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.44 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.43 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.42 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.41 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.40 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.39 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.38 lib/fog/aws/requests/simpledb/put_attributes.rb
fog-0.0.37 lib/fog/aws/requests/simpledb/put_attributes.rb