1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[aws|dynamodb] correct batch_put_item to batch_write_item for consistency with API

This commit is contained in:
geemus 2012-04-29 16:31:28 -05:00
parent 529178ad79
commit 762d8f57d5
2 changed files with 7 additions and 2 deletions

View file

@ -9,7 +9,7 @@ module Fog
request_path 'fog/aws/requests/dynamodb'
request :batch_get_item
request :batch_put_item
request :batch_write_item
request :create_table
request :delete_item
request :delete_table

View file

@ -3,6 +3,11 @@ module Fog
class DynamoDB
class Real
def batch_put_item(request_items)
Fog::Logger.deprecation("batch_put_item is deprecated, use batch_write_item instead")
batch_write_item(request_items)
end
#request_items has form:
#{"table_name"=>
# [{"PutRequest"=>
@ -13,7 +18,7 @@ module Fog
# }}}, ... ]}
# For more information:
# http://docs.amazonwebservices.com/amazondynamodb/latest/developerguide/API_BatchWriteItems.html
def batch_put_item(request_items)
def batch_write_item(request_items)
body = {
'RequestItems' => request_items
}