The gnocchiclient.v1.resource_type_cli Module

class gnocchiclient.v1.resource_type_cli.CliResourceTypeCreate(app: App, app_args: Namespace | None, cmd_name: str | None = 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.App, app_args: Namespace | None, cmd_name: str | None = 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, app_args: Namespace | None, cmd_name: str | None = 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, app_args: Namespace | None, cmd_name: str | None = 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, app_args: Namespace | None, cmd_name: str | None = 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.