The gnocchiclient.v1.resource_type_cli
Module¶
-
class
gnocchiclient.v1.resource_type_cli.
CliResourceTypeCreate
(app, app_args, cmd_name=None)¶ Bases:
cliff.show.ShowOne
Create a resource type.
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
take_action
(parsed_args)¶ Return a two-part tuple with a tuple of column names and a tuple of values.
-
-
class
gnocchiclient.v1.resource_type_cli.
CliResourceTypeDelete
(app, app_args, cmd_name=None)¶ Bases:
cliff.command.Command
Delete a resource type.
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
gnocchiclient.v1.resource_type_cli.
CliResourceTypeList
(app, app_args, cmd_name=None)¶ Bases:
cliff.lister.Lister
List resource types.
-
COLS
= ('name', 'attributes')¶
-
take_action
(parsed_args)¶ Return a tuple containing the column names and an iterable containing the data to be listed.
-
-
class
gnocchiclient.v1.resource_type_cli.
CliResourceTypeShow
(app, app_args, cmd_name=None)¶ Bases:
cliff.show.ShowOne
Show a resource type.
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
take_action
(parsed_args)¶ Return a two-part tuple with a tuple of column names and a tuple of values.
-
-
class
gnocchiclient.v1.resource_type_cli.
CliResourceTypeUpdate
(app, app_args, cmd_name=None)¶ Bases:
gnocchiclient.v1.resource_type_cli.CliResourceTypeCreate
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
take_action
(parsed_args)¶ Return a two-part tuple with a tuple of column names and a tuple of values.
-