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 6
6
from setuptools import setup , find_packages
7
7
8
8
NAME = "vsts"
9
- VERSION = "0.1.1 "
9
+ VERSION = "0.1.2 "
10
10
11
11
# To install the library, run the following
12
12
#
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 3
3
# Licensed under the MIT License. See License.txt in the project root for license information.
4
4
# --------------------------------------------------------------------------------------------
5
5
6
- VERSION = "0.1.1 "
6
+ VERSION = "0.1.2 "
You can’t perform that action at this time.
0 commit comments