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:
parent
a19433687c
commit
3ea1eb7e89
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue