-
Notifications
You must be signed in to change notification settings - Fork 218
Expand file tree
/
Copy pathclient_factory.py
More file actions
171 lines (145 loc) · 8.1 KB
/
client_factory.py
File metadata and controls
171 lines (145 loc) · 8.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# Generated file, DO NOT EDIT
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------
class ClientFactory(object):
"""ClientFactory.
A factory class to get the 5.1 released clients.
"""
def __init__(self, connection):
self._connection = connection
def get_accounts_client(self):
"""get_accounts_client.
Gets the 5.1 version of the AccountsClient
:rtype: :class:`<AccountsClient> <azure.devops.released.accounts.accounts_client.AccountsClient>`
"""
return self._connection.get_client('azure.devops.released.accounts.accounts_client.AccountsClient')
def get_build_client(self):
"""get_build_client.
Gets the 5.1 version of the BuildClient
:rtype: :class:`<BuildClient> <azure.devops.released.build.build_client.BuildClient>`
"""
return self._connection.get_client('azure.devops.released.build.build_client.BuildClient')
def get_cloud_load_test_client(self):
"""get_cloud_load_test_client.
Gets the 5.1 version of the CloudLoadTestClient
:rtype: :class:`<CloudLoadTestClient> <azure.devops.released.cloud_load_test.cloud_load_test_client.CloudLoadTestClient>`
"""
return self._connection.get_client('azure.devops.released.cloud_load_test.cloud_load_test_client.CloudLoadTestClient')
def get_core_client(self):
"""get_core_client.
Gets the 5.1 version of the CoreClient
:rtype: :class:`<CoreClient> <azure.devops.released.core.core_client.CoreClient>`
"""
return self._connection.get_client('azure.devops.released.core.core_client.CoreClient')
def get_git_client(self):
"""get_git_client.
Gets the 5.1 version of the GitClient
:rtype: :class:`<GitClient> <azure.devops.released.git.git_client.GitClient>`
"""
return self._connection.get_client('azure.devops.released.git.git_client.GitClient')
def get_identity_client(self):
"""get_identity_client.
Gets the 5.1 version of the IdentityClient
:rtype: :class:`<IdentityClient> <azure.devops.released.identity.identity_client.IdentityClient>`
"""
return self._connection.get_client('azure.devops.released.identity.identity_client.IdentityClient')
def get_notification_client(self):
"""get_notification_client.
Gets the 5.1 version of the NotificationClient
:rtype: :class:`<NotificationClient> <azure.devops.released.notification.notification_client.NotificationClient>`
"""
return self._connection.get_client('azure.devops.released.notification.notification_client.NotificationClient')
def get_operations_client(self):
"""get_operations_client.
Gets the 5.1 version of the OperationsClient
:rtype: :class:`<OperationsClient> <azure.devops.released.operations.operations_client.OperationsClient>`
"""
return self._connection.get_client('azure.devops.released.operations.operations_client.OperationsClient')
def get_policy_client(self):
"""get_policy_client.
Gets the 5.1 version of the PolicyClient
:rtype: :class:`<PolicyClient> <azure.devops.released.policy.policy_client.PolicyClient>`
"""
return self._connection.get_client('azure.devops.released.policy.policy_client.PolicyClient')
def get_profile_client(self):
"""get_profile_client.
Gets the 5.1 version of the ProfileClient
:rtype: :class:`<ProfileClient> <azure.devops.released.profile.profile_client.ProfileClient>`
"""
return self._connection.get_client('azure.devops.released.profile.profile_client.ProfileClient')
def get_release_client(self):
"""get_release_client.
Gets the 5.1 version of the ReleaseClient
:rtype: :class:`<ReleaseClient> <azure.devops.released.release.release_client.ReleaseClient>`
"""
return self._connection.get_client('azure.devops.released.release.release_client.ReleaseClient')
def get_security_client(self):
"""get_security_client.
Gets the 5.1 version of the SecurityClient
:rtype: :class:`<SecurityClient> <azure.devops.released.security.security_client.SecurityClient>`
"""
return self._connection.get_client('azure.devops.released.security.security_client.SecurityClient')
def get_service_hooks_client(self):
"""get_service_hooks_client.
Gets the 5.1 version of the ServiceHooksClient
:rtype: :class:`<ServiceHooksClient> <azure.devops.released.service_hooks.service_hooks_client.ServiceHooksClient>`
"""
return self._connection.get_client('azure.devops.released.service_hooks.service_hooks_client.ServiceHooksClient')
def get_task_client(self):
"""get_task_client.
Gets the 5.1 version of the TaskClient
:rtype: :class:`<TaskClient> <azure.devops.released.task.task_client.TaskClient>`
"""
return self._connection.get_client('azure.devops.released.task.task_client.TaskClient')
def get_task_agent_client(self):
"""get_task_agent_client.
Gets the 5.1 version of the TaskAgentClient
:rtype: :class:`<TaskAgentClient> <azure.devops.released.task_agent.task_agent_client.TaskAgentClient>`
"""
return self._connection.get_client('azure.devops.released.task_agent.task_agent_client.TaskAgentClient')
def get_test_client(self):
"""get_test_client.
Gets the 5.1 version of the TestClient
:rtype: :class:`<TestClient> <azure.devops.released.test.test_client.TestClient>`
"""
return self._connection.get_client('azure.devops.released.test.test_client.TestClient')
def get_test_plan_client(self):
"""get_test_plan_client.
Gets the 5.1 version of the TestPlanClient
:rtype: :class:`<TestPlanClient> <azure.devops.released.test_plan.test_plan_client.TestPlanClient>`
"""
return self._connection.get_client('azure.devops.released.test_plan.test_plan_client.TestPlanClient')
def get_test_results_client(self):
"""get_test_results_client.
Gets the 5.1 version of the TestResultsClient
:rtype: :class:`<TestResultsClient> <azure.devops.released.test_results.test_results_client.TestResultsClient>`
"""
return self._connection.get_client('azure.devops.released.test_results.test_results_client.TestResultsClient')
def get_tfvc_client(self):
"""get_tfvc_client.
Gets the 5.1 version of the TfvcClient
:rtype: :class:`<TfvcClient> <azure.devops.released.tfvc.tfvc_client.TfvcClient>`
"""
return self._connection.get_client('azure.devops.released.tfvc.tfvc_client.TfvcClient')
def get_wiki_client(self):
"""get_wiki_client.
Gets the 5.1 version of the WikiClient
:rtype: :class:`<WikiClient> <azure.devops.released.wiki.wiki_client.WikiClient>`
"""
return self._connection.get_client('azure.devops.released.wiki.wiki_client.WikiClient')
def get_work_client(self):
"""get_work_client.
Gets the 5.1 version of the WorkClient
:rtype: :class:`<WorkClient> <azure.devops.released.work.work_client.WorkClient>`
"""
return self._connection.get_client('azure.devops.released.work.work_client.WorkClient')
def get_work_item_tracking_client(self):
"""get_work_item_tracking_client.
Gets the 5.1 version of the WorkItemTrackingClient
:rtype: :class:`<WorkItemTrackingClient> <azure.devops.released.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient>`
"""
return self._connection.get_client('azure.devops.released.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient')