Skip to content
Merged
2 changes: 1 addition & 1 deletion vsts/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from setuptools import setup, find_packages

NAME = "vsts"
VERSION = "0.1.20"
VERSION = "0.1.21"

# To install the library, run the following
#
Expand Down
10 changes: 4 additions & 6 deletions vsts/vsts/accounts/v4_0/accounts_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ def get_accounts(self, owner_id=None, member_id=None, properties=None):
response = self._send(http_method='GET',
location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e',
version='4.0',
query_parameters=query_parameters,
returns_collection=True)
return self._deserialize('[Account]', response)
query_parameters=query_parameters)
return self._deserialize('[Account]', self._unwrap_collection(response))

def get_account_settings(self):
"""GetAccountSettings.
Expand All @@ -85,7 +84,6 @@ def get_account_settings(self):
"""
response = self._send(http_method='GET',
location_id='4e012dd4-f8e1-485d-9bb3-c50d83c5b71b',
version='4.0-preview.1',
returns_collection=True)
return self._deserialize('{str}', response)
version='4.0-preview.1')
return self._deserialize('{str}', self._unwrap_collection(response))

7 changes: 3 additions & 4 deletions vsts/vsts/accounts/v4_1/accounts_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# --------------------------------------------------------------------------------------------
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -43,7 +43,6 @@ def get_accounts(self, owner_id=None, member_id=None, properties=None):
response = self._send(http_method='GET',
location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e',
version='4.1',
query_parameters=query_parameters,
returns_collection=True)
return self._deserialize('[Account]', response)
query_parameters=query_parameters)
return self._deserialize('[Account]', self._unwrap_collection(response))

135 changes: 54 additions & 81 deletions vsts/vsts/build/v4_0/build_client.py

Large diffs are not rendered by default.

162 changes: 65 additions & 97 deletions vsts/vsts/build/v4_1/build_client.py

Large diffs are not rendered by default.

32 changes: 13 additions & 19 deletions vsts/vsts/cloud_load_test/v4_1/cloud_load_test_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# --------------------------------------------------------------------------------------------
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -128,9 +128,8 @@ def get_applications(self, type=None):
response = self._send(http_method='GET',
location_id='2c986dce-8e8d-4142-b541-d016d5aff764',
version='4.1',
query_parameters=query_parameters,
returns_collection=True)
return self._deserialize('[Application]', response)
query_parameters=query_parameters)
return self._deserialize('[Application]', self._unwrap_collection(response))

def get_counters(self, test_run_id, group_names, include_summary=None):
"""GetCounters.
Expand All @@ -151,9 +150,8 @@ def get_counters(self, test_run_id, group_names, include_summary=None):
location_id='29265ea4-b5a5-4b2e-b054-47f5f6f00183',
version='4.1',
route_values=route_values,
query_parameters=query_parameters,
returns_collection=True)
return self._deserialize('[TestRunCounterInstance]', response)
query_parameters=query_parameters)
return self._deserialize('[TestRunCounterInstance]', self._unwrap_collection(response))

def get_application_counters(self, application_id=None, plugintype=None):
"""GetApplicationCounters.
Expand All @@ -169,9 +167,8 @@ def get_application_counters(self, application_id=None, plugintype=None):
response = self._send(http_method='GET',
location_id='c1275ce9-6d26-4bc6-926b-b846502e812d',
version='4.1',
query_parameters=query_parameters,
returns_collection=True)
return self._deserialize('[ApplicationCounters]', response)
query_parameters=query_parameters)
return self._deserialize('[ApplicationCounters]', self._unwrap_collection(response))

def get_counter_samples(self, counter_sample_query_details, test_run_id):
"""GetCounterSamples.
Expand Down Expand Up @@ -226,9 +223,8 @@ def get_test_run_messages(self, test_run_id):
response = self._send(http_method='GET',
location_id='2e7ba122-f522-4205-845b-2d270e59850a',
version='4.1',
route_values=route_values,
returns_collection=True)
return self._deserialize('[Microsoft.VisualStudio.TestService.WebApiModel.TestRunMessage]', response)
route_values=route_values)
return self._deserialize('[Microsoft.VisualStudio.TestService.WebApiModel.TestRunMessage]', self._unwrap_collection(response))

def get_plugin(self, type):
"""GetPlugin.
Expand All @@ -250,9 +246,8 @@ def get_plugins(self):
"""
response = self._send(http_method='GET',
location_id='7dcb0bb2-42d5-4729-9958-c0401d5e7693',
version='4.1',
returns_collection=True)
return self._deserialize('[ApplicationType]', response)
version='4.1')
return self._deserialize('[ApplicationType]', self._unwrap_collection(response))

def get_load_test_result(self, test_run_id):
"""GetLoadTestResult.
Expand Down Expand Up @@ -311,9 +306,8 @@ def get_test_definitions(self, from_date=None, to_date=None, top=None):
response = self._send(http_method='GET',
location_id='a8f9b135-f604-41ea-9d74-d9a5fd32fcd8',
version='4.1',
query_parameters=query_parameters,
returns_collection=True)
return self._deserialize('[TestDefinitionBasic]', response)
query_parameters=query_parameters)
return self._deserialize('[TestDefinitionBasic]', self._unwrap_collection(response))

def update_test_definition(self, test_definition):
"""UpdateTestDefinition.
Expand Down
5 changes: 2 additions & 3 deletions vsts/vsts/contributions/v4_0/contributions_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ def get_installed_extensions(self, contribution_ids=None, include_disabled_apps=
response = self._send(http_method='GET',
location_id='2648442b-fd63-4b9a-902f-0c913510f139',
version='4.0-preview.1',
query_parameters=query_parameters,
returns_collection=True)
return self._deserialize('[InstalledExtension]', response)
query_parameters=query_parameters)
return self._deserialize('[InstalledExtension]', self._unwrap_collection(response))

def get_installed_extension_by_name(self, publisher_name, extension_name, asset_types=None):
"""GetInstalledExtensionByName.
Expand Down
7 changes: 3 additions & 4 deletions vsts/vsts/contributions/v4_1/contributions_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# --------------------------------------------------------------------------------------------
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -79,9 +79,8 @@ def get_installed_extensions(self, contribution_ids=None, include_disabled_apps=
response = self._send(http_method='GET',
location_id='2648442b-fd63-4b9a-902f-0c913510f139',
version='4.1-preview.1',
query_parameters=query_parameters,
returns_collection=True)
return self._deserialize('[InstalledExtension]', response)
query_parameters=query_parameters)
return self._deserialize('[InstalledExtension]', self._unwrap_collection(response))

def get_installed_extension_by_name(self, publisher_name, extension_name, asset_types=None):
"""GetInstalledExtensionByName.
Expand Down
50 changes: 20 additions & 30 deletions vsts/vsts/core/v4_0/core_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ def get_connected_services(self, project_id, kind=None):
location_id='b4f70219-e18b-42c5-abe3-98b07d35525e',
version='4.0-preview.1',
route_values=route_values,
query_parameters=query_parameters,
returns_collection=True)
return self._deserialize('[WebApiConnectedService]', response)
query_parameters=query_parameters)
return self._deserialize('[WebApiConnectedService]', self._unwrap_collection(response))

def create_identity_mru(self, mru_data, mru_name):
"""CreateIdentityMru.
Expand Down Expand Up @@ -110,9 +109,8 @@ def get_identity_mru(self, mru_name):
response = self._send(http_method='GET',
location_id='5ead0b70-2572-4697-97e9-f341069a783a',
version='4.0-preview.1',
route_values=route_values,
returns_collection=True)
return self._deserialize('[IdentityRef]', response)
route_values=route_values)
return self._deserialize('[IdentityRef]', self._unwrap_collection(response))

def update_identity_mru(self, mru_data, mru_name):
"""UpdateIdentityMru.
Expand Down Expand Up @@ -152,9 +150,8 @@ def get_team_members(self, project_id, team_id, top=None, skip=None):
location_id='294c494c-2600-4d7e-b76c-3dd50c3c95be',
version='4.0',
route_values=route_values,
query_parameters=query_parameters,
returns_collection=True)
return self._deserialize('[IdentityRef]', response)
query_parameters=query_parameters)
return self._deserialize('[IdentityRef]', self._unwrap_collection(response))

def get_process_by_id(self, process_id):
"""GetProcessById.
Expand All @@ -178,9 +175,8 @@ def get_processes(self):
"""
response = self._send(http_method='GET',
location_id='93878975-88c5-4e6a-8abb-7ddd77a8a7d8',
version='4.0',
returns_collection=True)
return self._deserialize('[Process]', response)
version='4.0')
return self._deserialize('[Process]', self._unwrap_collection(response))

def get_project_collection(self, collection_id):
"""GetProjectCollection.
Expand Down Expand Up @@ -212,9 +208,8 @@ def get_project_collections(self, top=None, skip=None):
response = self._send(http_method='GET',
location_id='8031090f-ef1d-4af6-85fc-698cd75d42bf',
version='4.0',
query_parameters=query_parameters,
returns_collection=True)
return self._deserialize('[TeamProjectCollectionReference]', response)
query_parameters=query_parameters)
return self._deserialize('[TeamProjectCollectionReference]', self._unwrap_collection(response))

def get_project_history_entries(self, min_revision=None):
"""GetProjectHistoryEntries.
Expand All @@ -228,9 +223,8 @@ def get_project_history_entries(self, min_revision=None):
response = self._send(http_method='GET',
location_id='6488a877-4749-4954-82ea-7340d36be9f2',
version='4.0-preview.2',
query_parameters=query_parameters,
returns_collection=True)
return self._deserialize('[ProjectInfo]', response)
query_parameters=query_parameters)
return self._deserialize('[ProjectInfo]', self._unwrap_collection(response))

def get_project(self, project_id, include_capabilities=None, include_history=None):
"""GetProject.
Expand Down Expand Up @@ -276,9 +270,8 @@ def get_projects(self, state_filter=None, top=None, skip=None, continuation_toke
response = self._send(http_method='GET',
location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1',
version='4.0',
query_parameters=query_parameters,
returns_collection=True)
return self._deserialize('[TeamProjectReference]', response)
query_parameters=query_parameters)
return self._deserialize('[TeamProjectReference]', self._unwrap_collection(response))

def queue_create_project(self, project_to_create):
"""QueueCreateProject.
Expand Down Expand Up @@ -344,9 +337,8 @@ def get_project_properties(self, project_id, keys=None):
location_id='4976a71a-4487-49aa-8aab-a1eda469037a',
version='4.0-preview.1',
route_values=route_values,
query_parameters=query_parameters,
returns_collection=True)
return self._deserialize('[ProjectProperty]', response)
query_parameters=query_parameters)
return self._deserialize('[ProjectProperty]', self._unwrap_collection(response))

def set_project_properties(self, project_id, patch_document):
"""SetProjectProperties.
Expand Down Expand Up @@ -406,9 +398,8 @@ def get_proxies(self, proxy_url=None):
response = self._send(http_method='GET',
location_id='ec1f4311-f2b4-4c15-b2b8-8990b80d2908',
version='4.0-preview.2',
query_parameters=query_parameters,
returns_collection=True)
return self._deserialize('[Proxy]', response)
query_parameters=query_parameters)
return self._deserialize('[Proxy]', self._unwrap_collection(response))

def create_team(self, team, project_id):
"""CreateTeam.
Expand Down Expand Up @@ -481,9 +472,8 @@ def get_teams(self, project_id, top=None, skip=None):
location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59',
version='4.0',
route_values=route_values,
query_parameters=query_parameters,
returns_collection=True)
return self._deserialize('[WebApiTeam]', response)
query_parameters=query_parameters)
return self._deserialize('[WebApiTeam]', self._unwrap_collection(response))

def update_team(self, team_data, project_id, team_id):
"""UpdateTeam.
Expand Down
Loading