def run_script(self, client: ExabelClient, args: argparse.Namespace) -> None:
    if ((args.signal is None) == (args.entity is None)):
        raise ValueError('Specify either signal or entity, but not both.')
    page_token = None
    all_time_series: List[str] = []
    while True:
        if (args.signal is not None):
            result = client.time_series_api.get_signal_time_series(args.signal, page_size=1000, page_token=page_token)
        else:
            result = client.time_series_api.get_entity_time_series(args.entity, page_size=1000, page_token=page_token)
        all_time_series.extend(result.results)
        page_token = result.next_page_token
        if (len(all_time_series) == result.total_size):
            break
    if (not all_time_series):
        print('No time series.')
    for time_series in all_time_series:
        print(time_series)
def run_script(self, client: ExabelClient, args: argparse.Namespace) -> None:
    if ((args.signal is None) == (args.entity is None)):
        raise ValueError('Specify either signal or entity, but not both.')
    page_token = None
    all_time_series: List[str] = []
    while True:
        if (args.signal is not None):
            result = client.time_series_api.get_signal_time_series(args.signal, page_size=1000, page_token=page_token)
        else:
            result = client.time_series_api.get_entity_time_series(args.entity, page_size=1000, page_token=page_token)
        all_time_series.extend(result.results)
        page_token = result.next_page_token
        if (len(all_time_series) == result.total_size):
            break
    if (not all_time_series):
        print('No time series.')
    for time_series in all_time_series:
        print(time_series)