From cb4c74aefb88426e5f4ec4e9f62dd050d8165eef Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 8 Jun 2018 17:42:05 -0400 Subject: [PATCH] regen 4.1 apis after fix to include 'action' in route dictionary. --- vsts/vsts/licensing/v4_1/licensing_client.py | 2 ++ vsts/vsts/test/v4_1/test_client.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/vsts/vsts/licensing/v4_1/licensing_client.py b/vsts/vsts/licensing/v4_1/licensing_client.py index 82b513ad..c94ddceb 100644 --- a/vsts/vsts/licensing/v4_1/licensing_client.py +++ b/vsts/vsts/licensing/v4_1/licensing_client.py @@ -197,6 +197,7 @@ def get_account_entitlements_batch(self, user_ids): :rtype: [AccountEntitlement] """ route_values = {} + route_values['action'] = 'GetUsersEntitlements' content = self._serialize.body(user_ids, '[str]') response = self._send(http_method='POST', location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656', @@ -213,6 +214,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', diff --git a/vsts/vsts/test/v4_1/test_client.py b/vsts/vsts/test/v4_1/test_client.py index ec6999a8..5c7dff2c 100644 --- a/vsts/vsts/test/v4_1/test_client.py +++ b/vsts/vsts/test/v4_1/test_client.py @@ -1829,6 +1829,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.1', @@ -1853,6 +1854,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.1', @@ -1873,6 +1875,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.1', @@ -1896,6 +1899,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.1',