Skip to content

Commit 05ce5d3

Browse files
committed
remove debug message
1 parent 4c1db12 commit 05ce5d3

3 files changed

Lines changed: 41 additions & 12 deletions

File tree

vsts/vsts/build/v4_1/models/change.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class Change(Model):
2424
:type message: str
2525
:param message_truncated: Indicates whether the message was truncated.
2626
:type message_truncated: bool
27+
:param pusher: The person or process that pushed the change.
28+
:type pusher: str
2729
:param timestamp: The timestamp for the change.
2830
:type timestamp: datetime
2931
:param type: The type of change. "commit", "changeset", etc.
@@ -37,17 +39,19 @@ class Change(Model):
3739
'location': {'key': 'location', 'type': 'str'},
3840
'message': {'key': 'message', 'type': 'str'},
3941
'message_truncated': {'key': 'messageTruncated', 'type': 'bool'},
42+
'pusher': {'key': 'pusher', 'type': 'str'},
4043
'timestamp': {'key': 'timestamp', 'type': 'iso-8601'},
4144
'type': {'key': 'type', 'type': 'str'}
4245
}
4346

44-
def __init__(self, author=None, display_uri=None, id=None, location=None, message=None, message_truncated=None, timestamp=None, type=None):
47+
def __init__(self, author=None, display_uri=None, id=None, location=None, message=None, message_truncated=None, pusher=None, timestamp=None, type=None):
4548
super(Change, self).__init__()
4649
self.author = author
4750
self.display_uri = display_uri
4851
self.id = id
4952
self.location = location
5053
self.message = message
5154
self.message_truncated = message_truncated
55+
self.pusher = pusher
5256
self.timestamp = timestamp
5357
self.type = type

vsts/vsts/core/v4_1/core_client.py

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def get_team_members_with_extended_properties(self, project_id, team_id, top=Non
149149
query_parameters['$skip'] = self._serialize.query('skip', skip, 'int')
150150
response = self._send(http_method='GET',
151151
location_id='294c494c-2600-4d7e-b76c-3dd50c3c95be',
152-
version='4.1-preview.1',
152+
version='4.1-preview.2',
153153
route_values=route_values,
154154
query_parameters=query_parameters,
155155
returns_collection=True)
@@ -409,6 +409,28 @@ def get_proxies(self, proxy_url=None):
409409
returns_collection=True)
410410
return self._deserialize('[Proxy]', response)
411411

412+
def get_all_teams(self, mine=None, top=None, skip=None):
413+
"""GetAllTeams.
414+
[Preview API] Get a list of all teams.
415+
:param bool mine: If true return all the teams requesting user is member, otherwise return all the teams user has read access
416+
:param int top: Maximum number of teams to return.
417+
:param int skip: Number of teams to skip.
418+
:rtype: [WebApiTeam]
419+
"""
420+
query_parameters = {}
421+
if mine is not None:
422+
query_parameters['$mine'] = self._serialize.query('mine', mine, 'bool')
423+
if top is not None:
424+
query_parameters['$top'] = self._serialize.query('top', top, 'int')
425+
if skip is not None:
426+
query_parameters['$skip'] = self._serialize.query('skip', skip, 'int')
427+
response = self._send(http_method='GET',
428+
location_id='7a4d9ee9-3433-4347-b47a-7a80f1cf307e',
429+
version='4.1-preview.2',
430+
query_parameters=query_parameters,
431+
returns_collection=True)
432+
return self._deserialize('[WebApiTeam]', response)
433+
412434
def create_team(self, team, project_id):
413435
"""CreateTeam.
414436
[Preview API] Create a team in a team project.
@@ -422,7 +444,7 @@ def create_team(self, team, project_id):
422444
content = self._serialize.body(team, 'WebApiTeam')
423445
response = self._send(http_method='POST',
424446
location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59',
425-
version='4.1-preview.1',
447+
version='4.1-preview.2',
426448
route_values=route_values,
427449
content=content)
428450
return self._deserialize('WebApiTeam', response)
@@ -439,7 +461,7 @@ def delete_team(self, project_id, team_id):
439461
}
440462
self._send(http_method='DELETE',
441463
location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59',
442-
version='4.1-preview.1',
464+
version='4.1-preview.2',
443465
route_values=route_values)
444466

445467
def get_team(self, project_id, team_id):
@@ -455,14 +477,15 @@ def get_team(self, project_id, team_id):
455477
}
456478
response = self._send(http_method='GET',
457479
location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59',
458-
version='4.1-preview.1',
480+
version='4.1-preview.2',
459481
route_values=route_values)
460482
return self._deserialize('WebApiTeam', response)
461483

462-
def get_teams(self, project_id, top=None, skip=None):
484+
def get_teams(self, project_id, mine=None, top=None, skip=None):
463485
"""GetTeams.
464486
[Preview API] Get a list of teams.
465487
:param str project_id:
488+
:param bool mine: If true return all the teams requesting user is member, otherwise return all the teams user has read access
466489
:param int top: Maximum number of teams to return.
467490
:param int skip: Number of teams to skip.
468491
:rtype: [WebApiTeam]
@@ -471,13 +494,15 @@ def get_teams(self, project_id, top=None, skip=None):
471494
'projectId': self._serialize.url('project_id', project_id, 'str')
472495
}
473496
query_parameters = {}
497+
if mine is not None:
498+
query_parameters['$mine'] = self._serialize.query('mine', mine, 'bool')
474499
if top is not None:
475500
query_parameters['$top'] = self._serialize.query('top', top, 'int')
476501
if skip is not None:
477502
query_parameters['$skip'] = self._serialize.query('skip', skip, 'int')
478503
response = self._send(http_method='GET',
479504
location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59',
480-
version='4.1-preview.1',
505+
version='4.1-preview.2',
481506
route_values=route_values,
482507
query_parameters=query_parameters,
483508
returns_collection=True)
@@ -498,7 +523,7 @@ def update_team(self, team_data, project_id, team_id):
498523
content = self._serialize.body(team_data, 'WebApiTeam')
499524
response = self._send(http_method='PATCH',
500525
location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59',
501-
version='4.1-preview.1',
526+
version='4.1-preview.2',
502527
route_values=route_values,
503528
content=content)
504529
return self._deserialize('WebApiTeam', response)

vsts/vsts/git/v4_1/git_client_base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ def update_import_request(self, import_request_to_update, project, repository_id
720720

721721
def get_item(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None):
722722
"""GetItem.
723-
[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.
723+
[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
724724
:param str repository_id: The Id of the repository.
725725
:param str path: The item path.
726726
:param str project: Project ID or project name
@@ -765,7 +765,7 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion
765765

766766
def get_item_content(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None):
767767
"""GetItemContent.
768-
[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.
768+
[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
769769
:param str repository_id: The Id of the repository.
770770
:param str path: The item path.
771771
:param str project: Project ID or project name
@@ -856,7 +856,7 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve
856856

857857
def get_item_text(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None):
858858
"""GetItemText.
859-
[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.
859+
[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
860860
:param str repository_id: The Id of the repository.
861861
:param str path: The item path.
862862
:param str project: Project ID or project name
@@ -901,7 +901,7 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu
901901

902902
def get_item_zip(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None):
903903
"""GetItemZip.
904-
[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.
904+
[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
905905
:param str repository_id: The Id of the repository.
906906
:param str path: The item path.
907907
:param str project: Project ID or project name

0 commit comments

Comments
 (0)