def __init__(
        self,
        resource: str,
        endpoint: str,
        cacert: Optional[str] = None,
        debug: bool = False,
        basic_auth: Optional[Tuple[str, str]] = None,
    ):
        """
        :param resource: Name of the resource to operate on.
        :param endpoint: API endpoint URL.
        :param cacert: Optional path to CA cert to use to validate the server side cert.
        :param debug: True to enable debug mode where additional debug information will be logged.
        :param basic_auth: Optional additional basic auth credentials in tuple(username, password)
                           notation.
        """
        self.resource = resource
        self.endpoint = endpoint
        self.cacert = cacert
        self.debug = debug
        self.basic_auth = basic_auth
        self.client = httpclient.HTTPClient(
            endpoint, cacert=cacert, debug=debug, basic_auth=basic_auth
        )

        :param resource: Name of the resource to operate on.
        :param endpoint: API endpoint URL.
        :param cacert: Optional path to CA cert to use to validate the server side cert.
        :param debug: True to enable debug mode where additional debug information will be logged.
        :param basic_auth: Optional additional basic auth credentials in tuple(username, password)
                           notation.
        
st2client/st2client/models/core.py