designateclient.v2.cli.tsigkeys module

class designateclient.v2.cli.tsigkeys.CreateTSIGKeyCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Create new tsigkey

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.tsigkeys.CreateTSIGKeyCommand (WARNING)>
take_action(parsed_args)[source]

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

class designateclient.v2.cli.tsigkeys.DeleteTSIGKeyCommand(app, app_args, cmd_name=None)[source]

Bases: Command

Delete tsigkey

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.tsigkeys.DeleteTSIGKeyCommand (WARNING)>
take_action(parsed_args)[source]

Override to do something useful.

The returned value will be returned by the program.

class designateclient.v2.cli.tsigkeys.ListTSIGKeysCommand(app, app_args, cmd_name=None)[source]

Bases: Lister

List tsigkeys

columns = ['id', 'name', 'algorithm', 'secret', 'scope', 'resource_id']
get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.tsigkeys.ListTSIGKeysCommand (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 designateclient.v2.cli.tsigkeys.SetTSIGKeyCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Set tsigkey properties

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.tsigkeys.SetTSIGKeyCommand (WARNING)>
take_action(parsed_args)[source]

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

class designateclient.v2.cli.tsigkeys.ShowTSIGKeyCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Show tsigkey details

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.tsigkeys.ShowTSIGKeyCommand (WARNING)>
take_action(parsed_args)[source]

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