@@ -372,12 +372,13 @@ def get_proxies(self, proxy_url=None):
372372 query_parameters = query_parameters )
373373 return self ._deserialize ('[Proxy]' , self ._unwrap_collection (response ))
374374
375- def get_all_teams (self , mine = None , top = None , skip = None ):
375+ def get_all_teams (self , mine = None , top = None , skip = None , expand_identity = None ):
376376 """GetAllTeams.
377377 [Preview API] Get a list of all teams.
378- :param bool mine: If true return all the teams requesting user is member, otherwise return all the teams user has read access
378+ :param bool mine: If true, then return all teams requesting user is member. Otherwise return all teams user has read access.
379379 :param int top: Maximum number of teams to return.
380380 :param int skip: Number of teams to skip.
381+ :param bool expand_identity: A value indicating whether or not to expand Identity information in the result WebApiTeam object.
381382 :rtype: [WebApiTeam]
382383 """
383384 query_parameters = {}
@@ -387,9 +388,11 @@ def get_all_teams(self, mine=None, top=None, skip=None):
387388 query_parameters ['$top' ] = self ._serialize .query ('top' , top , 'int' )
388389 if skip is not None :
389390 query_parameters ['$skip' ] = self ._serialize .query ('skip' , skip , 'int' )
391+ if expand_identity is not None :
392+ query_parameters ['$expandIdentity' ] = self ._serialize .query ('expand_identity' , expand_identity , 'bool' )
390393 response = self ._send (http_method = 'GET' ,
391394 location_id = '7a4d9ee9-3433-4347-b47a-7a80f1cf307e' ,
392- version = '5.1-preview.2 ' ,
395+ version = '5.1-preview.3 ' ,
393396 query_parameters = query_parameters )
394397 return self ._deserialize ('[WebApiTeam]' , self ._unwrap_collection (response ))
395398
@@ -406,7 +409,7 @@ def create_team(self, team, project_id):
406409 content = self ._serialize .body (team , 'WebApiTeam' )
407410 response = self ._send (http_method = 'POST' ,
408411 location_id = 'd30a3dd1-f8ba-442a-b86a-bd0c0c383e59' ,
409- version = '5.1-preview.2 ' ,
412+ version = '5.1-preview.3 ' ,
410413 route_values = route_values ,
411414 content = content )
412415 return self ._deserialize ('WebApiTeam' , response )
@@ -424,34 +427,40 @@ def delete_team(self, project_id, team_id):
424427 route_values ['teamId' ] = self ._serialize .url ('team_id' , team_id , 'str' )
425428 self ._send (http_method = 'DELETE' ,
426429 location_id = 'd30a3dd1-f8ba-442a-b86a-bd0c0c383e59' ,
427- version = '5.1-preview.2 ' ,
430+ version = '5.1-preview.3 ' ,
428431 route_values = route_values )
429432
430- def get_team (self , project_id , team_id ):
433+ def get_team (self , project_id , team_id , expand_identity = None ):
431434 """GetTeam.
432435 [Preview API] Get a specific team.
433436 :param str project_id: The name or ID (GUID) of the team project containing the team.
434437 :param str team_id: The name or ID (GUID) of the team.
438+ :param bool expand_identity: A value indicating whether or not to expand Identity information in the result WebApiTeam object.
435439 :rtype: :class:`<WebApiTeam> <azure.devops.v5_1.core.models.WebApiTeam>`
436440 """
437441 route_values = {}
438442 if project_id is not None :
439443 route_values ['projectId' ] = self ._serialize .url ('project_id' , project_id , 'str' )
440444 if team_id is not None :
441445 route_values ['teamId' ] = self ._serialize .url ('team_id' , team_id , 'str' )
446+ query_parameters = {}
447+ if expand_identity is not None :
448+ query_parameters ['$expandIdentity' ] = self ._serialize .query ('expand_identity' , expand_identity , 'bool' )
442449 response = self ._send (http_method = 'GET' ,
443450 location_id = 'd30a3dd1-f8ba-442a-b86a-bd0c0c383e59' ,
444- version = '5.1-preview.2' ,
445- route_values = route_values )
451+ version = '5.1-preview.3' ,
452+ route_values = route_values ,
453+ query_parameters = query_parameters )
446454 return self ._deserialize ('WebApiTeam' , response )
447455
448- def get_teams (self , project_id , mine = None , top = None , skip = None ):
456+ def get_teams (self , project_id , mine = None , top = None , skip = None , expand_identity = None ):
449457 """GetTeams.
450458 [Preview API] Get a list of teams.
451459 :param str project_id:
452- :param bool mine: If true return all the teams requesting user is member, otherwise return all the teams user has read access
460+ :param bool mine: If true return all the teams requesting user is member, otherwise return all the teams user has read access.
453461 :param int top: Maximum number of teams to return.
454462 :param int skip: Number of teams to skip.
463+ :param bool expand_identity: A value indicating whether or not to expand Identity information in the result WebApiTeam object.
455464 :rtype: [WebApiTeam]
456465 """
457466 route_values = {}
@@ -464,9 +473,11 @@ def get_teams(self, project_id, mine=None, top=None, skip=None):
464473 query_parameters ['$top' ] = self ._serialize .query ('top' , top , 'int' )
465474 if skip is not None :
466475 query_parameters ['$skip' ] = self ._serialize .query ('skip' , skip , 'int' )
476+ if expand_identity is not None :
477+ query_parameters ['$expandIdentity' ] = self ._serialize .query ('expand_identity' , expand_identity , 'bool' )
467478 response = self ._send (http_method = 'GET' ,
468479 location_id = 'd30a3dd1-f8ba-442a-b86a-bd0c0c383e59' ,
469- version = '5.1-preview.2 ' ,
480+ version = '5.1-preview.3 ' ,
470481 route_values = route_values ,
471482 query_parameters = query_parameters )
472483 return self ._deserialize ('[WebApiTeam]' , self ._unwrap_collection (response ))
@@ -487,7 +498,7 @@ def update_team(self, team_data, project_id, team_id):
487498 content = self ._serialize .body (team_data , 'WebApiTeam' )
488499 response = self ._send (http_method = 'PATCH' ,
489500 location_id = 'd30a3dd1-f8ba-442a-b86a-bd0c0c383e59' ,
490- version = '5.1-preview.2 ' ,
501+ version = '5.1-preview.3 ' ,
491502 route_values = route_values ,
492503 content = content )
493504 return self ._deserialize ('WebApiTeam' , response )
0 commit comments