Skip to content

Commit d607952

Browse files
committed
fix microsoft#366 return continuation token from get_environment_deployment_execution_records
1 parent 451cade commit d607952

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

azure-devops/azure/devops/v6_0/task_agent/task_agent_client.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@
1010
from ...client import Client
1111
from . import models
1212

13+
class GetDeploymentExecutionResponseValue(object):
14+
def __init__(self, value, continuation_token):
15+
"""
16+
Response for the get_build_changes method
17+
:param value:
18+
:type value: :class:`<[Change]> <azure.devops.v5_1.build.models.[Change]>`
19+
:param continuation_token: The continuation token to be used to get the next page of results.
20+
:type continuation_token: str
21+
"""
22+
self.value = value
23+
self.continuation_token = continuation_token
1324

1425
class TaskAgentClient(Client):
1526
"""TaskAgent
@@ -358,7 +369,7 @@ def get_environment_deployment_execution_records(self, project, environment_id,
358369
:param int environment_id:
359370
:param str continuation_token:
360371
:param int top:
361-
:rtype: :class:`<[EnvironmentDeploymentExecutionRecord]> <azure.devops.v6_0.task_agent.models.[EnvironmentDeploymentExecutionRecord]>`
372+
:rtype: : class: `<GetDeploymentExecutionResponseValue>`
362373
"""
363374
route_values = {}
364375
if project is not None:
@@ -375,7 +386,9 @@ def get_environment_deployment_execution_records(self, project, environment_id,
375386
version='6.0-preview.1',
376387
route_values=route_values,
377388
query_parameters=query_parameters)
378-
return self._deserialize('[EnvironmentDeploymentExecutionRecord]', self._unwrap_collection(response))
389+
response_value = self._deserialize('[EnvironmentDeploymentExecutionRecord]', self._unwrap_collection(response))
390+
continuation_token = self._get_continuation_token(response)
391+
return self.GetDeploymentExecutionResponseValue(response_value, continuation_token)
379392

380393
def add_environment(self, environment_create_parameter, project):
381394
"""AddEnvironment.

0 commit comments

Comments
 (0)