def __init__(self, *, environment: Optional[str]=None, base_url: Optional[str]=None, authorizer: Optional[GlobusAuthorizer]=None, app_name: Optional[str]=None, transport_params: Optional[Dict[(str, Any)]]=None):
    if (self.service_name == '_base'):
        raise NotImplementedError("Cannot instantiate clients which do not set a 'service_name'")
    log.info(f'Creating client of type {type(self)} for service "{self.service_name}"')
    self.environment = config.get_environment_name(environment)
    self.transport = self.transport_class(**(transport_params or {}))
    log.debug(f'initialized transport of type {type(self.transport)}')
    if ((not self.service_name) and (not base_url)):
        raise ValueError('Either service_name or base_url must be set')
    self.base_url = utils.slash_join((config.get_service_url(self.service_name, environment=self.environment) if (base_url is None) else base_url), self.base_path)
    self.authorizer = authorizer
    self._app_name = None
    if (app_name is not None):
        self.app_name = app_name
    self.paginated = PaginatorTable(self)
def __init__(self, *, environment: Optional[str]=None, base_url: Optional[str]=None, authorizer: Optional[GlobusAuthorizer]=None, app_name: Optional[str]=None, transport_params: Optional[Dict[(str, Any)]]=None):
    if (self.service_name == '_base'):
        raise NotImplementedError("Cannot instantiate clients which do not set a 'service_name'")
    log.info(f'Creating client of type {type(self)} for service "{self.service_name}"')
    self.environment = config.get_environment_name(environment)
    self.transport = self.transport_class(**(transport_params or {}))
    log.debug(f'initialized transport of type {type(self.transport)}')
    if ((not self.service_name) and (not base_url)):
        raise ValueError('Either service_name or base_url must be set')
    self.base_url = utils.slash_join((config.get_service_url(self.service_name, environment=self.environment) if (base_url is None) else base_url), self.base_path)
    self.authorizer = authorizer
    self._app_name = None
    if (app_name is not None):
        self.app_name = app_name
    self.paginated = PaginatorTable(self)