The designateclient.cli.base Module

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]

Invoked by the application when the command is run.

Developers implementing commands should override take_action().

Developers creating new command base classes (such as Lister and ShowOne) should override this method to wrap take_action().

Return the value returned by take_action() or 0.

take_action(parsed_args)[source]

Override to do something useful.

The returned value will be returned by the program.

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]

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

Parameters:data – Whatever is returned by self.execute()
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]

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

Parameters:data – Whatever is returned by self.execute()
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]

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

Parameters:data – Whatever is returned by self.execute()
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]

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

Parameters:data – Whatever is returned by self.execute()
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]

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

Parameters:data – Whatever is returned by self.execute()
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

python-designateclient 2.10.1.dev3