def __init__(self, protocol, host, port, base_resource=None):
        """
        Class constructor. Init default headers
        :param protocol: API Protocol
        :param host: API Host
        :param port: API Port
        :param base_resource: base uri resource (if exists)
        :return: None
        """

        self.init_headers()
        self.rest_client = RestClient(protocol, host, port, base_resource)
Esempio n. 2
0
    def __init__(self,
                 protocol,
                 host,
                 port,
                 base_resource=None,
                 auth_token=None):
        """
        Class constructor. Init default headers
        :param protocol: API Protocol
        :param host: API Host
        :param port: API Port
        :param base_resource: base uri resource (if exists)
        :param auth_token: Pep Proxy auth token (only if required)
        :return: None
        """

        self.init_headers(auth_token=auth_token)
        self.rest_client = RestClient(protocol, host, port, base_resource)