<s> from neutronclient . _i18n import _ <EOL> from neutronclient . neutron import v2_0 as neutronv20 <EOL> from neutronclient . neutron . v2_0 . qos import policy as qos_policy <EOL> def add_policy_argument ( parser ) : <EOL> parser . add_argument ( <EOL> '<STR_LIT>' , metavar = '<STR_LIT>' , <EOL> help = _ ( '<STR_LIT>' ) ) <EOL> def add_rule_argument ( parser ) : <EOL> parser . add_argument ( <EOL> '<STR_LIT>' , metavar = '<STR_LIT>' , <EOL> help = _ ( '<STR_LIT>' ) ) <EOL> def update_policy_args2body ( parsed_args , body ) : <EOL> neutronv20 . update_dict ( parsed_args , body , [ '<STR_LIT>' ] ) <EOL> def update_rule_args2body ( parsed_args , body ) : <EOL> neutronv20 . update_dict ( parsed_args , body , [ '<STR_LIT>' ] ) <EOL> class QosRuleMixin ( object ) : <EOL> def add_known_arguments ( self , parser ) : <EOL> add_policy_argument ( parser ) <EOL> def set_extra_attrs ( self , parsed_args ) : <EOL> self . parent_id = qos_policy . get_qos_policy_id ( self . get_client ( ) , <EOL> parsed_args . policy ) <EOL> def args2body ( self , parsed_args ) : <EOL> body = { } <EOL> update_policy_args2body ( parsed_args , body ) <EOL> return { '<STR_LIT>' : body } <EOL> class ListQoSRuleTypes ( neutronv20 . ListCommand ) : <EOL> """<STR_LIT>""" <EOL> resource = '<STR_LIT>' <EOL> shadow_resource = '<STR_LIT>' <EOL> pagination_support = True <EOL> sorting_support = True </s>
