File tree Expand file tree Collapse file tree 3 files changed +32
-2
lines changed
Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 66from setuptools import setup , find_packages
77
88NAME = "vsts"
9- VERSION = "0.1.1 "
9+ VERSION = "0.1.2 "
1010
1111# To install the library, run the following
1212#
Original file line number Diff line number Diff line change 1+ # coding=utf-8
2+ # --------------------------------------------------------------------------
3+ # Generated file, DO NOT EDIT
4+ # Changes may cause incorrect behavior and will be lost if the code is
5+ # regenerated.
6+ # --------------------------------------------------------------------------
7+
8+
9+ from msrest .pipeline import ClientRequest
10+ from .git_client_base import GitClientBase
11+
12+
13+ class GitClient (GitClientBase ):
14+ """Git
15+ :param str base_url: Service URL
16+ :param Authentication creds: Authenticated credentials.
17+ """
18+
19+ def __init__ (self , base_url = None , creds = None ):
20+ super (GitClient , self ).__init__ (base_url , creds )
21+
22+ def get_vsts_info (self , relative_remote_url ):
23+ request = ClientRequest ()
24+ request .url = self ._client .format_url (relative_remote_url .rstrip ('/' ) + '/vsts/info' )
25+ request .method = 'GET'
26+ headers = {'Accept' : 'application/json' }
27+ if self ._suppress_fedauth_redirect :
28+ headers ['X-TFS-FedAuthRedirect' ] = 'Suppress'
29+ response = self ._send_request (request , headers )
30+ return self ._deserialize ('VstsInfo' , response )
Original file line number Diff line number Diff line change 33# Licensed under the MIT License. See License.txt in the project root for license information.
44# --------------------------------------------------------------------------------------------
55
6- VERSION = "0.1.1 "
6+ VERSION = "0.1.2 "
You can’t perform that action at this time.
0 commit comments