Skip to content

Commit b60351d

Browse files
committed
Update for M153 - includes released 5.1 clients
1 parent 32a619d commit b60351d

File tree

71 files changed

+2290
-2099
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+2290
-2099
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ for project in projects:
4242

4343
## API documentation
4444

45-
This Python library provides a thin wrapper around the Azure DevOps REST APIs. See the [Azure DevOps REST API reference](https://docs.microsoft.com/en-us/rest/api/vsts/?view=vsts-rest-5.0) for details on calling different APIs.
45+
This Python library provides a thin wrapper around the Azure DevOps REST APIs. See the [Azure DevOps REST API reference](https://docs.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-5.1) for details on calling different APIs.
4646

4747
## Samples
4848

azure-devops/azure/devops/released/accounts/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------------------------
88

9-
from ...v5_0.accounts.models import *
9+
from ...v5_1.accounts.models import *
1010
from .accounts_client import AccountsClient
1111

1212
__all__ = [

azure-devops/azure/devops/released/accounts/accounts_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from msrest import Serializer, Deserializer
1010
from ...client import Client
11-
from ...v5_0.accounts import models
11+
from ...v5_1.accounts import models
1212

1313

1414
class AccountsClient(Client):
@@ -42,7 +42,7 @@ def get_accounts(self, owner_id=None, member_id=None, properties=None):
4242
query_parameters['properties'] = self._serialize.query('properties', properties, 'str')
4343
response = self._send(http_method='GET',
4444
location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e',
45-
version='5.0',
45+
version='5.1',
4646
query_parameters=query_parameters)
4747
return self._deserialize('[Account]', self._unwrap_collection(response))
4848

azure-devops/azure/devops/released/build/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------------------------
88

9-
from ...v5_0.build.models import *
9+
from ...v5_1.build.models import *
1010
from .build_client import BuildClient
1111

1212
__all__ = [
1313
'AgentPoolQueue',
14+
'AgentSpecification',
1415
'AggregatedResultsAnalysis',
1516
'AggregatedResultsByOutcome',
1617
'AggregatedResultsDifference',

azure-devops/azure/devops/released/build/build_client.py

Lines changed: 64 additions & 64 deletions
Large diffs are not rendered by default.

azure-devops/azure/devops/released/client_factory.py

Lines changed: 41 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,141 +9,162 @@
99

1010
class ClientFactory(object):
1111
"""ClientFactory.
12-
A factory class to get the 5.0 released clients.
12+
A factory class to get the 5.1 released clients.
1313
"""
1414

1515
def __init__(self, connection):
1616
self._connection = connection
1717

1818
def get_accounts_client(self):
1919
"""get_accounts_client.
20-
Gets the 5.0 version of the AccountsClient
20+
Gets the 5.1 version of the AccountsClient
2121
:rtype: :class:`<AccountsClient> <azure.devops.released.accounts.accounts_client.AccountsClient>`
2222
"""
2323
return self._connection.get_client('azure.devops.released.accounts.accounts_client.AccountsClient')
2424

2525
def get_build_client(self):
2626
"""get_build_client.
27-
Gets the 5.0 version of the BuildClient
27+
Gets the 5.1 version of the BuildClient
2828
:rtype: :class:`<BuildClient> <azure.devops.released.build.build_client.BuildClient>`
2929
"""
3030
return self._connection.get_client('azure.devops.released.build.build_client.BuildClient')
3131

3232
def get_cloud_load_test_client(self):
3333
"""get_cloud_load_test_client.
34-
Gets the 5.0 version of the CloudLoadTestClient
34+
Gets the 5.1 version of the CloudLoadTestClient
3535
:rtype: :class:`<CloudLoadTestClient> <azure.devops.released.cloud_load_test.cloud_load_test_client.CloudLoadTestClient>`
3636
"""
3737
return self._connection.get_client('azure.devops.released.cloud_load_test.cloud_load_test_client.CloudLoadTestClient')
3838

3939
def get_core_client(self):
4040
"""get_core_client.
41-
Gets the 5.0 version of the CoreClient
41+
Gets the 5.1 version of the CoreClient
4242
:rtype: :class:`<CoreClient> <azure.devops.released.core.core_client.CoreClient>`
4343
"""
4444
return self._connection.get_client('azure.devops.released.core.core_client.CoreClient')
4545

4646
def get_git_client(self):
4747
"""get_git_client.
48-
Gets the 5.0 version of the GitClient
48+
Gets the 5.1 version of the GitClient
4949
:rtype: :class:`<GitClient> <azure.devops.released.git.git_client.GitClient>`
5050
"""
5151
return self._connection.get_client('azure.devops.released.git.git_client.GitClient')
5252

5353
def get_identity_client(self):
5454
"""get_identity_client.
55-
Gets the 5.0 version of the IdentityClient
55+
Gets the 5.1 version of the IdentityClient
5656
:rtype: :class:`<IdentityClient> <azure.devops.released.identity.identity_client.IdentityClient>`
5757
"""
5858
return self._connection.get_client('azure.devops.released.identity.identity_client.IdentityClient')
5959

60+
def get_notification_client(self):
61+
"""get_notification_client.
62+
Gets the 5.1 version of the NotificationClient
63+
:rtype: :class:`<NotificationClient> <azure.devops.released.notification.notification_client.NotificationClient>`
64+
"""
65+
return self._connection.get_client('azure.devops.released.notification.notification_client.NotificationClient')
66+
6067
def get_operations_client(self):
6168
"""get_operations_client.
62-
Gets the 5.0 version of the OperationsClient
69+
Gets the 5.1 version of the OperationsClient
6370
:rtype: :class:`<OperationsClient> <azure.devops.released.operations.operations_client.OperationsClient>`
6471
"""
6572
return self._connection.get_client('azure.devops.released.operations.operations_client.OperationsClient')
6673

6774
def get_policy_client(self):
6875
"""get_policy_client.
69-
Gets the 5.0 version of the PolicyClient
76+
Gets the 5.1 version of the PolicyClient
7077
:rtype: :class:`<PolicyClient> <azure.devops.released.policy.policy_client.PolicyClient>`
7178
"""
7279
return self._connection.get_client('azure.devops.released.policy.policy_client.PolicyClient')
7380

7481
def get_profile_client(self):
7582
"""get_profile_client.
76-
Gets the 5.0 version of the ProfileClient
83+
Gets the 5.1 version of the ProfileClient
7784
:rtype: :class:`<ProfileClient> <azure.devops.released.profile.profile_client.ProfileClient>`
7885
"""
7986
return self._connection.get_client('azure.devops.released.profile.profile_client.ProfileClient')
8087

8188
def get_release_client(self):
8289
"""get_release_client.
83-
Gets the 5.0 version of the ReleaseClient
90+
Gets the 5.1 version of the ReleaseClient
8491
:rtype: :class:`<ReleaseClient> <azure.devops.released.release.release_client.ReleaseClient>`
8592
"""
8693
return self._connection.get_client('azure.devops.released.release.release_client.ReleaseClient')
8794

8895
def get_security_client(self):
8996
"""get_security_client.
90-
Gets the 5.0 version of the SecurityClient
97+
Gets the 5.1 version of the SecurityClient
9198
:rtype: :class:`<SecurityClient> <azure.devops.released.security.security_client.SecurityClient>`
9299
"""
93100
return self._connection.get_client('azure.devops.released.security.security_client.SecurityClient')
94101

95102
def get_service_hooks_client(self):
96103
"""get_service_hooks_client.
97-
Gets the 5.0 version of the ServiceHooksClient
104+
Gets the 5.1 version of the ServiceHooksClient
98105
:rtype: :class:`<ServiceHooksClient> <azure.devops.released.service_hooks.service_hooks_client.ServiceHooksClient>`
99106
"""
100107
return self._connection.get_client('azure.devops.released.service_hooks.service_hooks_client.ServiceHooksClient')
101108

102109
def get_task_client(self):
103110
"""get_task_client.
104-
Gets the 5.0 version of the TaskClient
111+
Gets the 5.1 version of the TaskClient
105112
:rtype: :class:`<TaskClient> <azure.devops.released.task.task_client.TaskClient>`
106113
"""
107114
return self._connection.get_client('azure.devops.released.task.task_client.TaskClient')
108115

109116
def get_task_agent_client(self):
110117
"""get_task_agent_client.
111-
Gets the 5.0 version of the TaskAgentClient
118+
Gets the 5.1 version of the TaskAgentClient
112119
:rtype: :class:`<TaskAgentClient> <azure.devops.released.task_agent.task_agent_client.TaskAgentClient>`
113120
"""
114121
return self._connection.get_client('azure.devops.released.task_agent.task_agent_client.TaskAgentClient')
115122

116123
def get_test_client(self):
117124
"""get_test_client.
118-
Gets the 5.0 version of the TestClient
125+
Gets the 5.1 version of the TestClient
119126
:rtype: :class:`<TestClient> <azure.devops.released.test.test_client.TestClient>`
120127
"""
121128
return self._connection.get_client('azure.devops.released.test.test_client.TestClient')
122129

130+
def get_test_plan_client(self):
131+
"""get_test_plan_client.
132+
Gets the 5.1 version of the TestPlanClient
133+
:rtype: :class:`<TestPlanClient> <azure.devops.released.test_plan.test_plan_client.TestPlanClient>`
134+
"""
135+
return self._connection.get_client('azure.devops.released.test_plan.test_plan_client.TestPlanClient')
136+
137+
def get_test_results_client(self):
138+
"""get_test_results_client.
139+
Gets the 5.1 version of the TestResultsClient
140+
:rtype: :class:`<TestResultsClient> <azure.devops.released.test_results.test_results_client.TestResultsClient>`
141+
"""
142+
return self._connection.get_client('azure.devops.released.test_results.test_results_client.TestResultsClient')
143+
123144
def get_tfvc_client(self):
124145
"""get_tfvc_client.
125-
Gets the 5.0 version of the TfvcClient
146+
Gets the 5.1 version of the TfvcClient
126147
:rtype: :class:`<TfvcClient> <azure.devops.released.tfvc.tfvc_client.TfvcClient>`
127148
"""
128149
return self._connection.get_client('azure.devops.released.tfvc.tfvc_client.TfvcClient')
129150

130151
def get_wiki_client(self):
131152
"""get_wiki_client.
132-
Gets the 5.0 version of the WikiClient
153+
Gets the 5.1 version of the WikiClient
133154
:rtype: :class:`<WikiClient> <azure.devops.released.wiki.wiki_client.WikiClient>`
134155
"""
135156
return self._connection.get_client('azure.devops.released.wiki.wiki_client.WikiClient')
136157

137158
def get_work_client(self):
138159
"""get_work_client.
139-
Gets the 5.0 version of the WorkClient
160+
Gets the 5.1 version of the WorkClient
140161
:rtype: :class:`<WorkClient> <azure.devops.released.work.work_client.WorkClient>`
141162
"""
142163
return self._connection.get_client('azure.devops.released.work.work_client.WorkClient')
143164

144165
def get_work_item_tracking_client(self):
145166
"""get_work_item_tracking_client.
146-
Gets the 5.0 version of the WorkItemTrackingClient
167+
Gets the 5.1 version of the WorkItemTrackingClient
147168
:rtype: :class:`<WorkItemTrackingClient> <azure.devops.released.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient>`
148169
"""
149170
return self._connection.get_client('azure.devops.released.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient')

azure-devops/azure/devops/released/cloud_load_test/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------------------------
88

9-
from ...v5_0.cloud_load_test.models import *
9+
from ...v5_1.cloud_load_test.models import *
1010
from .cloud_load_test_client import CloudLoadTestClient
1111

1212
__all__ = [
@@ -25,6 +25,8 @@
2525
'Diagnostics',
2626
'DropAccessData',
2727
'ErrorDetails',
28+
'GraphSubjectBase',
29+
'IdentityRef',
2830
'LoadGenerationGeoLocation',
2931
'LoadTest',
3032
'LoadTestDefinition',
@@ -33,6 +35,7 @@
3335
'LoadTestRunSettings',
3436
'OverridableRunSettings',
3537
'PageSummary',
38+
'ReferenceLinks',
3639
'RequestSummary',
3740
'ScenarioSummary',
3841
'StaticAgentRunSetting',

0 commit comments

Comments
 (0)