watcherclient.v1.audit_template_shell module

class watcherclient.v1.audit_template_shell.CreateAuditTemplate(app, app_args, cmd_name=None)[source]

Bases: watcherclient.common.command.ShowOne

Create new audit template.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger watcherclient.v1.audit_template_shell.CreateAuditTemplate (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_template_shell.DeleteAuditTemplate(app, app_args, cmd_name=None)[source]

Bases: watcherclient.common.command.Command

Delete audit template command.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

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

Override to do something useful.

The returned value will be returned by the program.

class watcherclient.v1.audit_template_shell.ListAuditTemplate(app, app_args, cmd_name=None)[source]

Bases: watcherclient.common.command.Lister

List information on retrieved audit templates.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger watcherclient.v1.audit_template_shell.ListAuditTemplate (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_template_shell.ShowAuditTemplate(app, app_args, cmd_name=None)[source]

Bases: watcherclient.common.command.ShowOne

Show detailed information about a given audit template.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger watcherclient.v1.audit_template_shell.ShowAuditTemplate (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_template_shell.UpdateAuditTemplate(app, app_args, cmd_name=None)[source]

Bases: watcherclient.common.command.ShowOne

Update audit template command.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

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

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