congressclient.osc.v1.datasource module¶
Datasource action implemenations
-
class
congressclient.osc.v1.datasource.CreateDatasource(app, app_args, cmd_name=None)¶ Bases:
cliff.show.ShowOneCreate a datasource.
-
get_parser(prog_name)¶ Return an
argparse.ArgumentParser.
-
log= <KeywordArgumentAdapter congressclient.osc.v1.datasource.CreateDatasource (WARNING)>¶
-
take_action(parsed_args)¶ Return a two-part tuple with a tuple of column names and a tuple of values.
-
-
class
congressclient.osc.v1.datasource.DatasourceRequestRefresh(app, app_args, cmd_name=None)¶ Bases:
cliff.command.CommandTrigger a datasource to poll.
-
get_parser(prog_name)¶ Return an
argparse.ArgumentParser.
-
log= <KeywordArgumentAdapter congressclient.osc.v1.datasource.DatasourceRequestRefresh (WARNING)>¶
-
take_action(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
congressclient.osc.v1.datasource.DeleteDatasource(app, app_args, cmd_name=None)¶ Bases:
cliff.command.CommandDelete a datasource.
-
get_parser(prog_name)¶ Return an
argparse.ArgumentParser.
-
log= <KeywordArgumentAdapter congressclient.osc.v1.datasource.DeleteDatasource (WARNING)>¶
-
take_action(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
congressclient.osc.v1.datasource.ListDatasourceRows(app, app_args, cmd_name=None)¶ Bases:
cliff.lister.ListerList datasource rows.
-
get_parser(prog_name)¶ Return an
argparse.ArgumentParser.
-
log= <KeywordArgumentAdapter congressclient.osc.v1.datasource.ListDatasourceRows (WARNING)>¶
-
take_action(parsed_args)¶ Return a tuple containing the column names and an iterable containing the data to be listed.
-
-
class
congressclient.osc.v1.datasource.ListDatasourceTables(app, app_args, cmd_name=None)¶ Bases:
cliff.lister.ListerList datasource tables.
-
get_parser(prog_name)¶ Return an
argparse.ArgumentParser.
-
log= <KeywordArgumentAdapter congressclient.osc.v1.datasource.ListDatasourceTables (WARNING)>¶
-
take_action(parsed_args)¶ Return a tuple containing the column names and an iterable containing the data to be listed.
-
-
class
congressclient.osc.v1.datasource.ListDatasources(app, app_args, cmd_name=None)¶ Bases:
cliff.lister.ListerList Datasources.
-
get_parser(prog_name)¶ Return an
argparse.ArgumentParser.
-
log= <KeywordArgumentAdapter congressclient.osc.v1.datasource.ListDatasources (WARNING)>¶
-
take_action(parsed_args)¶ Return a tuple containing the column names and an iterable containing the data to be listed.
-
-
class
congressclient.osc.v1.datasource.ShowDatasourceActions(app, app_args, cmd_name=None)¶ Bases:
cliff.lister.ListerList supported actions for datasource.
-
get_parser(prog_name)¶ Return an
argparse.ArgumentParser.
-
log= <KeywordArgumentAdapter congressclient.osc.v1.datasource.ShowDatasourceActions (WARNING)>¶
-
take_action(parsed_args)¶ Return a tuple containing the column names and an iterable containing the data to be listed.
-
-
class
congressclient.osc.v1.datasource.ShowDatasourceSchema(app, app_args, cmd_name=None)¶ Bases:
cliff.lister.ListerShow schema for datasource.
-
get_parser(prog_name)¶ Return an
argparse.ArgumentParser.
-
log= <KeywordArgumentAdapter congressclient.osc.v1.datasource.ShowDatasourceSchema (WARNING)>¶
-
take_action(parsed_args)¶ Return a tuple containing the column names and an iterable containing the data to be listed.
-
-
class
congressclient.osc.v1.datasource.ShowDatasourceStatus(app, app_args, cmd_name=None)¶ Bases:
cliff.show.ShowOneList status for datasource.
-
get_parser(prog_name)¶ Return an
argparse.ArgumentParser.
-
log= <KeywordArgumentAdapter congressclient.osc.v1.datasource.ShowDatasourceStatus (WARNING)>¶
-
take_action(parsed_args)¶ Return a two-part tuple with a tuple of column names and a tuple of values.
-
-
class
congressclient.osc.v1.datasource.ShowDatasourceTable(app, app_args, cmd_name=None)¶ Bases:
cliff.show.ShowOneShow Datasource Table properties.
-
get_parser(prog_name)¶ Return an
argparse.ArgumentParser.
-
log= <KeywordArgumentAdapter congressclient.osc.v1.datasource.ShowDatasourceTable (WARNING)>¶
-
take_action(parsed_args)¶ Return a two-part tuple with a tuple of column names and a tuple of values.
-
-
class
congressclient.osc.v1.datasource.ShowDatasourceTableSchema(app, app_args, cmd_name=None)¶ Bases:
cliff.lister.ListerShow schema for datasource table.
-
get_parser(prog_name)¶ Return an
argparse.ArgumentParser.
-
log= <KeywordArgumentAdapter congressclient.osc.v1.datasource.ShowDatasourceTableSchema (WARNING)>¶
-
take_action(parsed_args)¶ Return a tuple containing the column names and an iterable containing the data to be listed.
-
-
class
congressclient.osc.v1.datasource.UpdateDatasourceRow(app, app_args, cmd_name=None)¶ Bases:
cliff.command.CommandUpdate rows to a datasource table.
-
get_parser(prog_name)¶ Return an
argparse.ArgumentParser.
-
log= <KeywordArgumentAdapter congressclient.osc.v1.datasource.UpdateDatasourceRow (WARNING)>¶
-
take_action(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-