watcherclient.v1.audit_shell module

class watcherclient.v1.audit_shell.CreateAudit(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Create new audit.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger watcherclient.v1.audit_shell.CreateAudit (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class watcherclient.v1.audit_shell.DeleteAudit(app, app_args, cmd_name=None)[source]

Bases: Command

Delete audit command.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger watcherclient.v1.audit_shell.DeleteAudit (WARNING)>
take_action(parsed_args)[source]

Override to do something useful.

The returned value will be returned by the program.

class watcherclient.v1.audit_shell.ListAudit(app, app_args, cmd_name=None)[source]

Bases: Lister

List information on retrieved audits.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger watcherclient.v1.audit_shell.ListAudit (WARNING)>
take_action(parsed_args)[source]

Run command.

Return a tuple containing the column names and an iterable containing the data to be listed.

class watcherclient.v1.audit_shell.ShowAudit(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Show detailed information about a given audit.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger watcherclient.v1.audit_shell.ShowAudit (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class watcherclient.v1.audit_shell.UpdateAudit(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Update audit command.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger watcherclient.v1.audit_shell.UpdateAudit (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

watcherclient.v1.audit_shell.drop_unsupported_field(app_args, fields, field_labels)[source]