def __init__(self, server_url, project="DefaultCollection", user=None, password=None, verify=False,
auth_type=HTTPBasicAuth,
connect_timeout=20, read_timeout=180, ):
"""
:param server_url: url to TFS server, e.g. https://tfs.example.com/
:param project: Collection or Collection\\Project
:param user: username, or DOMAIN\\username
:param password: password
:param verify: True|False - verify HTTPS cert
:param connect_timeout: Requests CONNECTION timeout, sec or None
:param read_timeout: Requests READ timeout, sec or None
"""
if user is None or password is None:
raise ValueError('User name and api-key must be specified!')
self.rest_client = TFSHTTPClient(server_url,
project=project,
user=user, password=password,
verify=verify,
timeout=(connect_timeout, read_timeout),
auth_type=auth_type,
)
评论列表
文章目录