Skip to content

Commit b712852

Browse files
authored
Merge pull request #76 from Microsoft/users/tedchamb/regen
regen 4.1 apis after fix to include 'action' in route dictionary.
2 parents a5c7ddb + cb4c74a commit b712852

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

vsts/vsts/licensing/v4_1/licensing_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ def get_account_entitlements_batch(self, user_ids):
197197
:rtype: [AccountEntitlement]
198198
"""
199199
route_values = {}
200+
route_values['action'] = 'GetUsersEntitlements'
200201
content = self._serialize.body(user_ids, '[str]')
201202
response = self._send(http_method='POST',
202203
location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656',
@@ -213,6 +214,7 @@ def obtain_available_account_entitlements(self, user_ids):
213214
:rtype: [AccountEntitlement]
214215
"""
215216
route_values = {}
217+
route_values['action'] = 'GetAvailableUsersEntitlements'
216218
content = self._serialize.body(user_ids, '[str]')
217219
response = self._send(http_method='POST',
218220
location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656',

vsts/vsts/test/v4_1/test_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,6 +1829,7 @@ def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids):
18291829
route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int')
18301830
if test_case_ids is not None:
18311831
route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str')
1832+
route_values['action'] = 'TestCases'
18321833
response = self._send(http_method='POST',
18331834
location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e',
18341835
version='4.1',
@@ -1853,6 +1854,7 @@ def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids):
18531854
route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int')
18541855
if test_case_ids is not None:
18551856
route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'int')
1857+
route_values['action'] = 'TestCases'
18561858
response = self._send(http_method='GET',
18571859
location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e',
18581860
version='4.1',
@@ -1873,6 +1875,7 @@ def get_test_cases(self, project, plan_id, suite_id):
18731875
route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int')
18741876
if suite_id is not None:
18751877
route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int')
1878+
route_values['action'] = 'TestCases'
18761879
response = self._send(http_method='GET',
18771880
location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e',
18781881
version='4.1',
@@ -1896,6 +1899,7 @@ def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case
18961899
route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int')
18971900
if test_case_ids is not None:
18981901
route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str')
1902+
route_values['action'] = 'TestCases'
18991903
self._send(http_method='DELETE',
19001904
location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e',
19011905
version='4.1',

0 commit comments

Comments
 (0)