From 0437278685892c78f058da06d96aa8146ad3ce74 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 8 Jun 2018 17:43:39 -0400 Subject: [PATCH] regen 4.0 apis after fix to include 'action' in route dictionary. --- vsts/vsts/licensing/v4_0/licensing_client.py | 1 + vsts/vsts/test/v4_0/test_client.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/vsts/vsts/licensing/v4_0/licensing_client.py b/vsts/vsts/licensing/v4_0/licensing_client.py index e35642b0..932169b0 100644 --- a/vsts/vsts/licensing/v4_0/licensing_client.py +++ b/vsts/vsts/licensing/v4_0/licensing_client.py @@ -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', diff --git a/vsts/vsts/test/v4_0/test_client.py b/vsts/vsts/test/v4_0/test_client.py index bb1a27bf..2101cb25 100644 --- a/vsts/vsts/test/v4_0/test_client.py +++ b/vsts/vsts/test/v4_0/test_client.py @@ -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', @@ -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', @@ -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', @@ -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',