designateclient.v2.cli.tlds module

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

Bases: ShowOne

Create new tld

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

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

Bases: Command

Delete tld

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

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

Override to do something useful.

The returned value will be returned by the program.

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

Bases: Lister

List tlds

columns = ['id', 'name', 'description']
get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

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

Bases: ShowOne

Set tld properties

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

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

Bases: ShowOne

Show tld details

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

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

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