def __init__(self, username=None, password=None, resource_url=None, auth=None):
streamsx._streams._version._mismatch_check(__name__)<EOL>if auth:<EOL><INDENT>pass<EOL><DEDENT>elif username and password:<EOL><INDENT>pass<EOL><DEDENT>elif st._has_local_install:<EOL><INDENT>username = os.getenv("<STR_LIT>", "<STR_LIT>")<EOL>password = os.getenv("<STR_LIT>", "<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT>if not resource_url and '<STR_LIT>' in os.environ:<EOL><INDENT>resource_url = os.environ['<STR_LIT>']<EOL><DEDENT>self._resource_url = resource_url<EOL>if auth:<EOL><INDENT>self.rest_client = _StreamsRestClient(auth)<EOL><DEDENT>else:<EOL><INDENT>self.rest_client = _StreamsRestClient._of_basic(username, password)<EOL><DEDENT>self.rest_client._sc = self<EOL>self.session = self.rest_client.session<EOL>self._analytics_service = False<EOL>self._delegator_impl = None<EOL>self._domains = None<EOL>
specify username, password, and resource_url