Module ImportFrom alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore BinOpMod Call NameLoad Str Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad BoolOpOr AttributeLoad NameLoad attr ListLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice BinOpSub Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Return CompareIsNot Call NameLoad NameLoad Str NameLoad NameLoad decorator_list If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Num Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareNotIn NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice Call NameLoad NameLoad If NameLoad body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr ListLoad If CompareNotIn TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad Dict Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore BoolOpOr NameLoad NameLoad If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad Call NameLoad Str Dict Str Str NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Dict orelse Assign NameStore Dict Str SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str For NameStore NameLoad body Assign NameStore ListLoad For NameStore NameLoad body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call SubscriptLoad NameLoad Index NameLoad NameLoad orelse If CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str orelse Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Str Assign NameStore Call NameLoad NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad attr orelse Expr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body Return Call NameLoad NameLoad orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call NameLoad NameLoad orelse Return NameLoad decorator_list Return Call NameLoad GeneratorExp TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad Str Assign AttributeStore NameLoad attr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareGt NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpAnd NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr CompareIn Str NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Assign NameStore NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Assign NameStore Str orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr orelse Expr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Assign NameStore NameLoad If BoolOpAnd Call NameLoad AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr body TryExcept body For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore NameLoad If BoolOpAnd CompareEq NameLoad NameLoad NameLoad body Assign NameStore NameLoad Break handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr GeneratorExp BinOpMod Str NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults Str body If NameLoad body Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num decorator_list
N/A __future__ print_function N/A getpass N/A inspect N/A os N/A sys N/A textwrap oslo_utils encodeutils oslo_utils strutils N/A prettytable N/A six six moves magnumclient.openstack.common._i18n _ MissingArgs N/A Exception N/A N/A Supplied arguments are not sufficient for calling a function. __init__ N/A N/A self missing N/A N/A N/A N/A self missing missing N/A msg N/A N/A _ Missing arguments: %s N/A N/A ,  join missing N/A N/A N/A N/A super MissingArgs self __init__ msg N/A N/A validate_args N/A N/A fn N/A args kwargs N/A N/A Check that the supplied args are sufficient for calling a function.

    >>> validate_args(lambda a: None)
    Traceback (most recent call last):
        ...
    MissingArgs: Missing argument(s): a
    >>> validate_args(lambda a, b, c, d: None, 0, c=1)
    Traceback (most recent call last):
        ...
    MissingArgs: Missing argument(s): b, d

    :param fn: the function to check
    :param arg: the positional arguments supplied
    :param kwargs: the keyword arguments supplied
     N/A argspec N/A N/A inspect getargspec fn N/A num_defaults N/A len N/A N/A argspec defaults N/A N/A required_args N/A N/A argspec args N/A N/A N/A len N/A argspec args num_defaults isbound N/A N/A method N/A N/A N/A N/A N/A getattr method __self__ None None N/A N/A N/A isbound fn N/A N/A N/A N/A required_args pop 0 N/A missing N/A arg N/A arg required_args N/A arg kwargs N/A missing N/A missing N/A N/A len args N/A missing N/A N/A N/A MissingArgs missing N/A arg N/A N/A N/A args kwargs N/A N/A Decorator for CLI args.

    Example:

    >>> @arg("name", help="Name of the new entity")
    ... def entity_create(args):
    ...     pass
     _decorator N/A N/A func N/A N/A N/A N/A add_arg func args kwargs N/A func N/A N/A _decorator N/A env N/A N/A N/A args kwargs N/A N/A Returns the first environment variable set.

    If all are empty, defaults to '' or keyword arg `default`.
     N/A arg args N/A N/A value N/A N/A N/A os environ get arg N/A value N/A N/A value N/A N/A N/A kwargs get default N/A add_arg N/A N/A func N/A args kwargs N/A N/A Bind CLI arguments to a shell.py `do_foo` function. N/A N/A N/A hasattr func arguments N/A N/A N/A func arguments N/A N/A N/A N/A args kwargs N/A func arguments N/A N/A N/A N/A N/A func arguments insert 0 N/A args kwargs N/A unauthenticated N/A N/A func N/A N/A N/A Adds 'unauthenticated' attribute to decorated function.

    Usage:

    >>> @unauthenticated
    ... def mymethod(f):
    ...     pass
     N/A N/A func unauthenticated True N/A func N/A isunauthenticated N/A N/A func N/A N/A N/A Checks if the function does not require authentication.

    Mark such functions with the `@unauthenticated` decorator.

    :returns: bool
     N/A N/A getattr func unauthenticated False N/A print_list N/A N/A objs fields formatters sortby_index mixed_case_fields field_labels N/A None 0 None None N/A N/A Print a list or objects as a table, one row per object.

    :param objs: iterable of :class:`Resource`
    :param fields: attributes that correspond to columns, in order
    :param formatters: `dict` of callables for field formatting
    :param sortby_index: index of the field for sorting table rows
    :param mixed_case_fields: fields corresponding to object attributes that
        have mixed case names (e.g., 'serverId')
    :param field_labels: Labels to use in the heading of the table, default to
        fields.
     N/A formatters N/A formatters N/A N/A mixed_case_fields N/A mixed_case_fields N/A N/A field_labels N/A field_labels fields N/A N/A N/A len field_labels N/A len fields N/A N/A N/A ValueError N/A _ Field labels list %(labels)s has different number of elements than fields list %(fields)s N/A labels fields field_labels fields N/A N/A sortby_index None N/A N/A kwargs N/A N/A N/A kwargs N/A sortby N/A field_labels N/A sortby_index N/A pt N/A N/A prettytable PrettyTable field_labels N/A N/A pt align l N/A o objs N/A N/A row N/A N/A field fields N/A N/A N/A field formatters N/A N/A N/A N/A row append N/A N/A formatters N/A field o N/A N/A N/A field mixed_case_fields N/A N/A field_name N/A N/A field replace _ N/A N/A field_name N/A N/A N/A N/A field lower replace _ N/A data N/A getattr o field_name N/A N/A N/A row append data N/A N/A N/A pt add_row row N/A N/A six PY3 N/A N/A N/A print N/A N/A N/A N/A encodeutils safe_encode N/A N/A pt get_string kwargs decode N/A N/A N/A print N/A N/A encodeutils safe_encode N/A N/A pt get_string kwargs N/A keys_and_vals_to_strs N/A N/A dictionary N/A N/A N/A Recursively convert a dictionary's keys and values to strings.

    :param dictionary: dictionary whose keys/vals are to be converted to strs
     to_str N/A N/A k_or_v N/A N/A N/A N/A isinstance k_or_v dict N/A N/A N/A keys_and_vals_to_strs k_or_v N/A N/A N/A isinstance k_or_v N/A six text_type N/A N/A N/A str k_or_v N/A N/A k_or_v N/A N/A N/A dict N/A N/A N/A to_str k N/A to_str v N/A N/A k v N/A N/A dictionary items N/A print_dict N/A N/A dct dict_property wrap N/A Property 0 N/A N/A Print a `dict` as a table of two columns.

    :param dct: `dict` to print
    :param dict_property: name of the first column
    :param wrap: wrapping for the second column
     N/A pt N/A N/A prettytable PrettyTable N/A dict_property Value N/A N/A pt align l N/A N/A k v N/A N/A dct items N/A N/A N/A isinstance v dict N/A N/A v N/A N/A six text_type N/A keys_and_vals_to_strs v N/A N/A wrap 0 N/A N/A v N/A N/A textwrap fill N/A N/A six text_type v wrap N/A N/A v N/A isinstance v N/A six string_types N/A \n v N/A N/A lines N/A N/A N/A N/A v strip split \n N/A col1 k N/A line lines N/A N/A N/A N/A pt add_row N/A col1 line N/A col1 N/A N/A N/A isinstance v list N/A N/A val N/A str N/A N/A str i N/A i v N/A N/A N/A pt add_row N/A k val N/A N/A N/A N/A pt add_row N/A k v N/A N/A six PY3 N/A N/A N/A print N/A N/A N/A N/A encodeutils safe_encode N/A N/A pt get_string decode N/A N/A N/A print N/A N/A encodeutils safe_encode N/A N/A pt get_string N/A get_password N/A N/A max_password_prompts N/A 3 N/A N/A Read password from TTY. N/A verify N/A N/A strutils bool_from_string N/A env OS_VERIFY_PASSWORD N/A pw None N/A N/A N/A hasattr N/A sys stdin isatty N/A N/A N/A sys stdin isatty N/A N/A N/A N/A __ N/A N/A moves range max_password_prompts N/A N/A pw1 N/A N/A getpass getpass OS Password:  N/A verify N/A N/A pw2 N/A N/A getpass getpass Please verify:  N/A N/A pw2 pw1 N/A N/A N/A pw1 pw2 pw1 N/A N/A pw pw1 N/A N/A N/A N/A EOFError N/A N/A N/A pw N/A service_type N/A N/A stype N/A N/A N/A Adds 'service_type' attribute to decorated function.

    Usage:

    .. code-block:: python

       @service_type('volume')
       def mymethod(f):
       ...
     inner N/A N/A f N/A N/A N/A N/A f service_type stype N/A f N/A N/A inner N/A get_service_type N/A N/A f N/A N/A N/A Retrieves service type from function. N/A N/A getattr f service_type None N/A pretty_choice_list N/A N/A l N/A N/A N/A N/A N/A ,  join N/A N/A '%s' i N/A i l N/A exit N/A N/A msg N/A N/A N/A msg N/A N/A N/A print msg file N/A sys stderr N/A N/A N/A sys exit 1 N/A