Skip to content

Commit 5182bbd

Browse files
authored
Merge pull request #79 from Microsoft/dev
0.1.8 - regen apis after fix to include 'action' in route dictionary.
2 parents 58c69ca + 9adde97 commit 5182bbd

File tree

6 files changed

+13
-2
lines changed

6 files changed

+13
-2
lines changed

vsts/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from setuptools import setup, find_packages
77

88
NAME = "vsts"
9-
VERSION = "0.1.7"
9+
VERSION = "0.1.8"
1010

1111
# To install the library, run the following
1212
#

vsts/vsts/licensing/v4_0/licensing_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ def obtain_available_account_entitlements(self, user_ids):
164164
:rtype: [AccountEntitlement]
165165
"""
166166
route_values = {}
167+
route_values['action'] = 'GetAvailableUsersEntitlements'
167168
content = self._serialize.body(user_ids, '[str]')
168169
response = self._send(http_method='POST',
169170
location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656',

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_0/test_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,6 +1747,7 @@ def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids):
17471747
route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int')
17481748
if test_case_ids is not None:
17491749
route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str')
1750+
route_values['action'] = 'TestCases'
17501751
response = self._send(http_method='POST',
17511752
location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e',
17521753
version='4.0',
@@ -1771,6 +1772,7 @@ def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids):
17711772
route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int')
17721773
if test_case_ids is not None:
17731774
route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'int')
1775+
route_values['action'] = 'TestCases'
17741776
response = self._send(http_method='GET',
17751777
location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e',
17761778
version='4.0',
@@ -1791,6 +1793,7 @@ def get_test_cases(self, project, plan_id, suite_id):
17911793
route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int')
17921794
if suite_id is not None:
17931795
route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int')
1796+
route_values['action'] = 'TestCases'
17941797
response = self._send(http_method='GET',
17951798
location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e',
17961799
version='4.0',
@@ -1814,6 +1817,7 @@ def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case
18141817
route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int')
18151818
if test_case_ids is not None:
18161819
route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str')
1820+
route_values['action'] = 'TestCases'
18171821
self._send(http_method='DELETE',
18181822
location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e',
18191823
version='4.0',

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',

vsts/vsts/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
55

6-
VERSION = "0.1.7"
6+
VERSION = "0.1.8"

0 commit comments

Comments
 (0)