designateclient.cli.base
Module¶designateclient.cli.base.
Command
(app, app_args, cmd_name=None)[source]¶Bases: osc_lib.command.command.Command
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() |
---|
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.
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>¶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>¶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>¶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>¶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>¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.