The designateclient.cli.base Module

class designateclient.cli.base.Command(app, app_args, cmd_name=None)[source]

Bases: osc_lib.command.command.Command

error_output(parsed_args, column_names, data)[source]
execute(parsed_args)[source]

Execute something, this is since we overload self.take_action() in order to format the data

This method __NEEDS__ to be overloaded!

Parameters:parsed_args – The parsed args that are given by take_action()
find_resourceid_by_name_or_id(resource_plural, name_or_id)[source]
log = <logging.Logger object>
post_execute(data)[source]

Format the results locally if needed, by default we just return data

Parameters:data – Whatever is returned by self.execute()
run(parsed_args)[source]
take_action(parsed_args)[source]
class designateclient.cli.base.CreateCommand(app, app_args, cmd_name=None)[source]

Bases: designateclient.cli.base.Command, osc_lib.command.command.ShowOne

log = <logging.Logger object>
post_execute(results)[source]
class designateclient.cli.base.DeleteCommand(app, app_args, cmd_name=None)[source]

Bases: designateclient.cli.base.Command, osc_lib.command.command.ShowOne

log = <logging.Logger object>
post_execute(results)[source]
class designateclient.cli.base.GetCommand(app, app_args, cmd_name=None)[source]

Bases: designateclient.cli.base.Command, osc_lib.command.command.ShowOne

log = <logging.Logger object>
post_execute(results)[source]
class designateclient.cli.base.ListCommand(app, app_args, cmd_name=None)[source]

Bases: designateclient.cli.base.Command, osc_lib.command.command.Lister

columns = None
log = <logging.Logger object>
post_execute(results)[source]
class designateclient.cli.base.UpdateCommand(app, app_args, cmd_name=None)[source]

Bases: designateclient.cli.base.Command, osc_lib.command.command.ShowOne

log = <logging.Logger object>
post_execute(results)[source]