def __init__(self, credentials,<EOL>accepted_codes=ACCEPTED_CODES,<EOL>scheme=DEFAULT_SCHEME,<EOL>timeout=<NUM_LIT:30>,<EOL>max_retries=<NUM_LIT:2>,<EOL>request_cookie=True):
self.format = '<STR_LIT>'<EOL>self.accepted_codes = accepted_codes<EOL>self.action_prefix = DEFAULT_SCHEME + '<STR_LIT>'<EOL>self.scheme = scheme<EOL>self.status = requests.codes.OK<EOL>self.time_stats = {}<EOL>self.timeout = timeout<EOL>self.max_retries = max_retries<EOL>self.session = requests.Session()<EOL>self.credentials = credentials<EOL>self.request_cookie = request_cookie<EOL>
Initialize the rest api client for Nexus.