Skip to content

Commit

Permalink
Merge pull request #77 from Microsoft/users/tedchamb/dev
Browse files Browse the repository at this point in the history
regen 4.0 apis after fix to include 'action' in route dictionary.
  • Loading branch information
tedchamb authored Jun 8, 2018
2 parents b712852 + 0437278 commit 224659a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions vsts/vsts/licensing/v4_0/licensing_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def obtain_available_account_entitlements(self, user_ids):
:rtype: [AccountEntitlement]
"""
route_values = {}
route_values['action'] = 'GetAvailableUsersEntitlements'
content = self._serialize.body(user_ids, '[str]')
response = self._send(http_method='POST',
location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656',
Expand Down
4 changes: 4 additions & 0 deletions vsts/vsts/test/v4_0/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1747,6 +1747,7 @@ def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids):
route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int')
if test_case_ids is not None:
route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str')
route_values['action'] = 'TestCases'
response = self._send(http_method='POST',
location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e',
version='4.0',
Expand All @@ -1771,6 +1772,7 @@ def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids):
route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int')
if test_case_ids is not None:
route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'int')
route_values['action'] = 'TestCases'
response = self._send(http_method='GET',
location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e',
version='4.0',
Expand All @@ -1791,6 +1793,7 @@ def get_test_cases(self, project, plan_id, suite_id):
route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int')
if suite_id is not None:
route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int')
route_values['action'] = 'TestCases'
response = self._send(http_method='GET',
location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e',
version='4.0',
Expand All @@ -1814,6 +1817,7 @@ def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case
route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int')
if test_case_ids is not None:
route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str')
route_values['action'] = 'TestCases'
self._send(http_method='DELETE',
location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e',
version='4.0',
Expand Down

0 comments on commit 224659a

Please sign in to comment.