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:
parent
529178ad79
commit
762d8f57d5
2 changed files with 7 additions and 2 deletions
|
@ -9,7 +9,7 @@ module Fog
|
||||||
|
|
||||||
request_path 'fog/aws/requests/dynamodb'
|
request_path 'fog/aws/requests/dynamodb'
|
||||||
request :batch_get_item
|
request :batch_get_item
|
||||||
request :batch_put_item
|
request :batch_write_item
|
||||||
request :create_table
|
request :create_table
|
||||||
request :delete_item
|
request :delete_item
|
||||||
request :delete_table
|
request :delete_table
|
||||||
|
|
|
@ -3,6 +3,11 @@ module Fog
|
||||||
class DynamoDB
|
class DynamoDB
|
||||||
class Real
|
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:
|
#request_items has form:
|
||||||
#{"table_name"=>
|
#{"table_name"=>
|
||||||
# [{"PutRequest"=>
|
# [{"PutRequest"=>
|
||||||
|
@ -13,7 +18,7 @@ module Fog
|
||||||
# }}}, ... ]}
|
# }}}, ... ]}
|
||||||
# For more information:
|
# For more information:
|
||||||
# http://docs.amazonwebservices.com/amazondynamodb/latest/developerguide/API_BatchWriteItems.html
|
# http://docs.amazonwebservices.com/amazondynamodb/latest/developerguide/API_BatchWriteItems.html
|
||||||
def batch_put_item(request_items)
|
def batch_write_item(request_items)
|
||||||
body = {
|
body = {
|
||||||
'RequestItems' => request_items
|
'RequestItems' => request_items
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue