The gnocchiclient.v1.resource_type_cli Module

class gnocchiclient.v1.resource_type_cli.CliResourceTypeCreate(app, app_args, cmd_name=None)

Bases: 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: 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: Lister

List resource types.

COLS = ('name', 'attributes')
take_action(parsed_args)

Run command.

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: 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: 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.