Skip to content

Commit 7400d52

Browse files
authored
Reinstate use of continuation token when retrieving pipeline list
This functionality was present in v5.1, but removed afterwards. See microsoft#461
1 parent 2cd2d0f commit 7400d52

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

azure-devops/azure/devops/v7_1/pipelines/pipelines_client.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,22 @@ def list_pipelines(self, project, order_by=None, top=None, continuation_token=No
174174
version='7.1-preview.1',
175175
route_values=route_values,
176176
query_parameters=query_parameters)
177-
return self._deserialize('[Pipeline]', self._unwrap_collection(response))
177+
response_value = self._deserialize('[Pipeline]', self._unwrap_collection(response))
178+
continuation_token = self._get_continuation_token(response)
179+
return self.ListPipelinesResponseValue(response_value, continuation_token)
180+
181+
class ListPipelinesResponseValue(object):
182+
def __init__(self, value, continuation_token):
183+
"""
184+
Response for the list_pipelines method
185+
186+
:param value:
187+
:type value: :class:`<[Pipeline]> <azure.devops.v5_1.pipelines.models.[Pipeline]>`
188+
:param continuation_token: The continuation token to be used to get the next page of results.
189+
:type continuation_token: str
190+
"""
191+
self.value = value
192+
self.continuation_token = continuation_token
178193

179194
def preview(self, run_parameters, project, pipeline_id, pipeline_version=None):
180195
"""Preview.

0 commit comments

Comments
 (0)