The gnocchiclient.v1.archive_policy_cli Module

class gnocchiclient.v1.archive_policy_cli.CliArchivePolicyCreate(app, app_args, cmd_name=None)

Bases: CliArchivePolicyWriteBase

Create an archive policy.

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.archive_policy_cli.CliArchivePolicyDelete(app, app_args, cmd_name=None)

Bases: Command

Delete an archive policy.

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.archive_policy_cli.CliArchivePolicyList(app, app_args, cmd_name=None)

Bases: Lister

List archive policies.

COLS = ('name', 'back_window', 'definition', 'aggregation_methods')
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.archive_policy_cli.CliArchivePolicyShow(app, app_args, cmd_name=None)

Bases: ShowOne

Show an archive policy.

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.archive_policy_cli.CliArchivePolicyUpdate(app, app_args, cmd_name=None)

Bases: CliArchivePolicyWriteBase

Update an archive policy.

take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class gnocchiclient.v1.archive_policy_cli.CliArchivePolicyWriteBase(app, app_args, cmd_name=None)

Bases: ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

gnocchiclient.v1.archive_policy_cli.archive_policy_definition(string)