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

Add the ability to pass an options Hash to DataPipeline#describe_objects

This is useful for paging through the results of the API calls.
This commit is contained in:
Tom Hulihan 2014-04-07 10:57:33 -04:00
parent a19433687c
commit 3ea1eb7e89

View file

@ -11,14 +11,15 @@ module Fog
# * ObjectIds <~Array> - Identifiers of the pipeline objects that contain the definitions
# to be described. You can pass as many as 25 identifiers in a
# single call to DescribeObjects.
# * Options <~Hash> - A Hash of additional options desrcibed in the API docs.
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
def describe_objects(id, objectIds)
params = {
def describe_objects(id, objectIds, options={})
params = options.merge({
'pipelineId' => id,
'objectIds' => objectIds,
}
})
response = request({
:body => Fog::JSON.encode(params),
@ -31,7 +32,7 @@ module Fog
end
class Mock
def describe_objects(id, objects)
def describe_objects(id, objects, options={})
Fog::Mock.not_implemented
end
end