oio.cli.account package

Submodules

oio.cli.account.account module

class oio.cli.account.account.CreateAccount(app, app_args, cmd_name=None)[source]

Bases: oio.cli.Lister

Create account

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a tuple containing the column names and an iterable containing the data to be listed.

class oio.cli.account.account.DeleteAccount(app, app_args, cmd_name=None)[source]

Bases: oio.cli.Command

Delete account

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Override to do something useful.

The returned value will be returned by the program.

class oio.cli.account.account.FlushAccount(app, app_args, cmd_name=None)[source]

Bases: oio.cli.Command

Flush account by emptying the list of its containers

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Override to do something useful.

The returned value will be returned by the program.

class oio.cli.account.account.ListAccounts(app, app_args, cmd_name=None)[source]

Bases: oio.cli.Lister

List accounts of the namespace

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a tuple containing the column names and an iterable containing the data to be listed.

class oio.cli.account.account.RefreshAccount(app, app_args, cmd_name=None)[source]

Bases: oio.cli.Command

Refresh counters of an account and all its containers

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Override to do something useful.

The returned value will be returned by the program.

class oio.cli.account.account.SetAccount(app, app_args, cmd_name=None)[source]

Bases: oio.cli.Command

Set account properties.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Override to do something useful.

The returned value will be returned by the program.

class oio.cli.account.account.ShowAccount(app, app_args, cmd_name=None)[source]

Bases: oio.cli.ShowOne

Show account

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

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

class oio.cli.account.account.UnsetAccount(app, app_args, cmd_name=None)[source]

Bases: oio.cli.Command

Unset account properties.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Override to do something useful.

The returned value will be returned by the program.

oio.cli.account.client module

oio.cli.account.client.make_client(instance)[source]

Module contents