88
99from msrest import Serializer , Deserializer
1010from ...client import Client
11- from ...v5_1 .core import models
11+ from ...v6_0 .core import models
1212
1313
1414class CoreClient (Client ):
@@ -46,7 +46,7 @@ def get_team_members_with_extended_properties(self, project_id, team_id, top=Non
4646 query_parameters ['$skip' ] = self ._serialize .query ('skip' , skip , 'int' )
4747 response = self ._send (http_method = 'GET' ,
4848 location_id = '294c494c-2600-4d7e-b76c-3dd50c3c95be' ,
49- version = '5.1 ' ,
49+ version = '6.0 ' ,
5050 route_values = route_values ,
5151 query_parameters = query_parameters )
5252 return self ._deserialize ('[TeamMember]' , self ._unwrap_collection (response ))
@@ -55,14 +55,14 @@ def get_process_by_id(self, process_id):
5555 """GetProcessById.
5656 Get a process by ID.
5757 :param str process_id: ID for a process.
58- :rtype: :class:`<Process> <azure.devops.v5_1 .core.models.Process>`
58+ :rtype: :class:`<Process> <azure.devops.v6_0 .core.models.Process>`
5959 """
6060 route_values = {}
6161 if process_id is not None :
6262 route_values ['processId' ] = self ._serialize .url ('process_id' , process_id , 'str' )
6363 response = self ._send (http_method = 'GET' ,
6464 location_id = '93878975-88c5-4e6a-8abb-7ddd77a8a7d8' ,
65- version = '5.1 ' ,
65+ version = '6.0 ' ,
6666 route_values = route_values )
6767 return self ._deserialize ('Process' , response )
6868
@@ -73,21 +73,21 @@ def get_processes(self):
7373 """
7474 response = self ._send (http_method = 'GET' ,
7575 location_id = '93878975-88c5-4e6a-8abb-7ddd77a8a7d8' ,
76- version = '5.1 ' )
76+ version = '6.0 ' )
7777 return self ._deserialize ('[Process]' , self ._unwrap_collection (response ))
7878
7979 def get_project_collection (self , collection_id ):
8080 """GetProjectCollection.
8181 Get project collection with the specified id or name.
8282 :param str collection_id:
83- :rtype: :class:`<TeamProjectCollection> <azure.devops.v5_1 .core.models.TeamProjectCollection>`
83+ :rtype: :class:`<TeamProjectCollection> <azure.devops.v6_0 .core.models.TeamProjectCollection>`
8484 """
8585 route_values = {}
8686 if collection_id is not None :
8787 route_values ['collectionId' ] = self ._serialize .url ('collection_id' , collection_id , 'str' )
8888 response = self ._send (http_method = 'GET' ,
8989 location_id = '8031090f-ef1d-4af6-85fc-698cd75d42bf' ,
90- version = '5.1 ' ,
90+ version = '6.0 ' ,
9191 route_values = route_values )
9292 return self ._deserialize ('TeamProjectCollection' , response )
9393
@@ -105,7 +105,7 @@ def get_project_collections(self, top=None, skip=None):
105105 query_parameters ['$skip' ] = self ._serialize .query ('skip' , skip , 'int' )
106106 response = self ._send (http_method = 'GET' ,
107107 location_id = '8031090f-ef1d-4af6-85fc-698cd75d42bf' ,
108- version = '5.1 ' ,
108+ version = '6.0 ' ,
109109 query_parameters = query_parameters )
110110 return self ._deserialize ('[TeamProjectCollectionReference]' , self ._unwrap_collection (response ))
111111
@@ -115,7 +115,7 @@ def get_project(self, project_id, include_capabilities=None, include_history=Non
115115 :param str project_id:
116116 :param bool include_capabilities: Include capabilities (such as source control) in the team project result (default: false).
117117 :param bool include_history: Search within renamed projects (that had such name in the past).
118- :rtype: :class:`<TeamProject> <azure.devops.v5_1 .core.models.TeamProject>`
118+ :rtype: :class:`<TeamProject> <azure.devops.v6_0 .core.models.TeamProject>`
119119 """
120120 route_values = {}
121121 if project_id is not None :
@@ -127,7 +127,7 @@ def get_project(self, project_id, include_capabilities=None, include_history=Non
127127 query_parameters ['includeHistory' ] = self ._serialize .query ('include_history' , include_history , 'bool' )
128128 response = self ._send (http_method = 'GET' ,
129129 location_id = '603fe2ac-9723-48b9-88ad-09305aa6c6e1' ,
130- version = '5.1 ' ,
130+ version = '6.0 ' ,
131131 route_values = route_values ,
132132 query_parameters = query_parameters )
133133 return self ._deserialize ('TeamProject' , response )
@@ -140,7 +140,7 @@ def get_projects(self, state_filter=None, top=None, skip=None, continuation_toke
140140 :param int skip:
141141 :param str continuation_token:
142142 :param bool get_default_team_image_url:
143- :rtype: :class:`<GetProjectsResponseValue >`
143+ :rtype: :class:`<[TeamProjectReference]> <azure.devops.v6_0.core.models.[TeamProjectReference] >`
144144 """
145145 query_parameters = {}
146146 if state_filter is not None :
@@ -155,85 +155,70 @@ def get_projects(self, state_filter=None, top=None, skip=None, continuation_toke
155155 query_parameters ['getDefaultTeamImageUrl' ] = self ._serialize .query ('get_default_team_image_url' , get_default_team_image_url , 'bool' )
156156 response = self ._send (http_method = 'GET' ,
157157 location_id = '603fe2ac-9723-48b9-88ad-09305aa6c6e1' ,
158- version = '5.1 ' ,
158+ version = '6.0 ' ,
159159 query_parameters = query_parameters )
160- response_value = self ._deserialize ('[TeamProjectReference]' , self ._unwrap_collection (response ))
161- continuation_token = self ._get_continuation_token (response )
162- return self .GetProjectsResponseValue (response_value , continuation_token )
163-
164- class GetProjectsResponseValue (object ):
165- def __init__ (self , value , continuation_token ):
166- """
167- Response for the get_projects method
168-
169- :param value:
170- :type value: :class:`<[TeamProjectReference]> <azure.devops.v5_1.core.models.[TeamProjectReference]>`
171- :param continuation_token: The continuation token to be used to get the next page of results.
172- :type continuation_token: str
173- """
174- self .value = value
175- self .continuation_token = continuation_token
160+ return self ._deserialize ('[TeamProjectReference]' , self ._unwrap_collection (response ))
176161
177162 def queue_create_project (self , project_to_create ):
178163 """QueueCreateProject.
179164 Queues a project to be created. Use the [GetOperation](../../operations/operations/get) to periodically check for create project status.
180- :param :class:`<TeamProject> <azure.devops.v5_1 .core.models.TeamProject>` project_to_create: The project to create.
181- :rtype: :class:`<OperationReference> <azure.devops.v5_1 .core.models.OperationReference>`
165+ :param :class:`<TeamProject> <azure.devops.v6_0 .core.models.TeamProject>` project_to_create: The project to create.
166+ :rtype: :class:`<OperationReference> <azure.devops.v6_0 .core.models.OperationReference>`
182167 """
183168 content = self ._serialize .body (project_to_create , 'TeamProject' )
184169 response = self ._send (http_method = 'POST' ,
185170 location_id = '603fe2ac-9723-48b9-88ad-09305aa6c6e1' ,
186- version = '5.1 ' ,
171+ version = '6.0 ' ,
187172 content = content )
188173 return self ._deserialize ('OperationReference' , response )
189174
190175 def queue_delete_project (self , project_id ):
191176 """QueueDeleteProject.
192177 Queues a project to be deleted. Use the [GetOperation](../../operations/operations/get) to periodically check for delete project status.
193178 :param str project_id: The project id of the project to delete.
194- :rtype: :class:`<OperationReference> <azure.devops.v5_1 .core.models.OperationReference>`
179+ :rtype: :class:`<OperationReference> <azure.devops.v6_0 .core.models.OperationReference>`
195180 """
196181 route_values = {}
197182 if project_id is not None :
198183 route_values ['projectId' ] = self ._serialize .url ('project_id' , project_id , 'str' )
199184 response = self ._send (http_method = 'DELETE' ,
200185 location_id = '603fe2ac-9723-48b9-88ad-09305aa6c6e1' ,
201- version = '5.1 ' ,
186+ version = '6.0 ' ,
202187 route_values = route_values )
203188 return self ._deserialize ('OperationReference' , response )
204189
205190 def update_project (self , project_update , project_id ):
206191 """UpdateProject.
207192 Update an existing project's name, abbreviation, description, or restore a project.
208- :param :class:`<TeamProject> <azure.devops.v5_1 .core.models.TeamProject>` project_update: The updates for the project. The state must be set to wellFormed to restore the project.
193+ :param :class:`<TeamProject> <azure.devops.v6_0 .core.models.TeamProject>` project_update: The updates for the project. The state must be set to wellFormed to restore the project.
209194 :param str project_id: The project id of the project to update.
210- :rtype: :class:`<OperationReference> <azure.devops.v5_1 .core.models.OperationReference>`
195+ :rtype: :class:`<OperationReference> <azure.devops.v6_0 .core.models.OperationReference>`
211196 """
212197 route_values = {}
213198 if project_id is not None :
214199 route_values ['projectId' ] = self ._serialize .url ('project_id' , project_id , 'str' )
215200 content = self ._serialize .body (project_update , 'TeamProject' )
216201 response = self ._send (http_method = 'PATCH' ,
217202 location_id = '603fe2ac-9723-48b9-88ad-09305aa6c6e1' ,
218- version = '5.1 ' ,
203+ version = '6.0 ' ,
219204 route_values = route_values ,
220205 content = content )
221206 return self ._deserialize ('OperationReference' , response )
222207
223208 def create_team (self , team , project_id ):
224209 """CreateTeam.
225210 Create a team in a team project.
226- :param :class:`<WebApiTeam> <azure.devops.v5_1 .core.models.WebApiTeam>` team: The team data used to create the team.
211+ :param :class:`<WebApiTeam> <azure.devops.v6_0 .core.models.WebApiTeam>` team: The team data used to create the team.
227212 :param str project_id: The name or ID (GUID) of the team project in which to create the team.
228- :rtype: :class:`<WebApiTeam> <azure.devops.v5_1 .core.models.WebApiTeam>`
213+ :rtype: :class:`<WebApiTeam> <azure.devops.v6_0 .core.models.WebApiTeam>`
229214 """
230215 route_values = {}
231216 if project_id is not None :
232217 route_values ['projectId' ] = self ._serialize .url ('project_id' , project_id , 'str' )
233218 content = self ._serialize .body (team , 'WebApiTeam' )
234219 response = self ._send (http_method = 'POST' ,
235220 location_id = 'd30a3dd1-f8ba-442a-b86a-bd0c0c383e59' ,
236- version = '5.1 ' ,
221+ version = '6.0 ' ,
237222 route_values = route_values ,
238223 content = content )
239224 return self ._deserialize ('WebApiTeam' , response )
@@ -251,7 +236,7 @@ def delete_team(self, project_id, team_id):
251236 route_values ['teamId' ] = self ._serialize .url ('team_id' , team_id , 'str' )
252237 self ._send (http_method = 'DELETE' ,
253238 location_id = 'd30a3dd1-f8ba-442a-b86a-bd0c0c383e59' ,
254- version = '5.1 ' ,
239+ version = '6.0 ' ,
255240 route_values = route_values )
256241
257242 def get_team (self , project_id , team_id , expand_identity = None ):
@@ -260,7 +245,7 @@ def get_team(self, project_id, team_id, expand_identity=None):
260245 :param str project_id: The name or ID (GUID) of the team project containing the team.
261246 :param str team_id: The name or ID (GUID) of the team.
262247 :param bool expand_identity: A value indicating whether or not to expand Identity information in the result WebApiTeam object.
263- :rtype: :class:`<WebApiTeam> <azure.devops.v5_1 .core.models.WebApiTeam>`
248+ :rtype: :class:`<WebApiTeam> <azure.devops.v6_0 .core.models.WebApiTeam>`
264249 """
265250 route_values = {}
266251 if project_id is not None :
@@ -272,7 +257,7 @@ def get_team(self, project_id, team_id, expand_identity=None):
272257 query_parameters ['$expandIdentity' ] = self ._serialize .query ('expand_identity' , expand_identity , 'bool' )
273258 response = self ._send (http_method = 'GET' ,
274259 location_id = 'd30a3dd1-f8ba-442a-b86a-bd0c0c383e59' ,
275- version = '5.1 ' ,
260+ version = '6.0 ' ,
276261 route_values = route_values ,
277262 query_parameters = query_parameters )
278263 return self ._deserialize ('WebApiTeam' , response )
@@ -301,18 +286,18 @@ def get_teams(self, project_id, mine=None, top=None, skip=None, expand_identity=
301286 query_parameters ['$expandIdentity' ] = self ._serialize .query ('expand_identity' , expand_identity , 'bool' )
302287 response = self ._send (http_method = 'GET' ,
303288 location_id = 'd30a3dd1-f8ba-442a-b86a-bd0c0c383e59' ,
304- version = '5.1 ' ,
289+ version = '6.0 ' ,
305290 route_values = route_values ,
306291 query_parameters = query_parameters )
307292 return self ._deserialize ('[WebApiTeam]' , self ._unwrap_collection (response ))
308293
309294 def update_team (self , team_data , project_id , team_id ):
310295 """UpdateTeam.
311296 Update a team's name and/or description.
312- :param :class:`<WebApiTeam> <azure.devops.v5_1 .core.models.WebApiTeam>` team_data:
297+ :param :class:`<WebApiTeam> <azure.devops.v6_0 .core.models.WebApiTeam>` team_data:
313298 :param str project_id: The name or ID (GUID) of the team project containing the team to update.
314299 :param str team_id: The name of ID of the team to update.
315- :rtype: :class:`<WebApiTeam> <azure.devops.v5_1 .core.models.WebApiTeam>`
300+ :rtype: :class:`<WebApiTeam> <azure.devops.v6_0 .core.models.WebApiTeam>`
316301 """
317302 route_values = {}
318303 if project_id is not None :
@@ -322,7 +307,7 @@ def update_team(self, team_data, project_id, team_id):
322307 content = self ._serialize .body (team_data , 'WebApiTeam' )
323308 response = self ._send (http_method = 'PATCH' ,
324309 location_id = 'd30a3dd1-f8ba-442a-b86a-bd0c0c383e59' ,
325- version = '5.1 ' ,
310+ version = '6.0 ' ,
326311 route_values = route_values ,
327312 content = content )
328313 return self ._deserialize ('WebApiTeam' , response )
0 commit comments