#NEWLINE# def __init__( self , resource , * args , **kwargs ) : #NEWLINE# #INDENT# super ( RuleEnforcementListCommand , self ) . __init__ ( args , 'list' , ( 'Get the list of the 50 most recent %s.' % resource . get_plural_display_name ( ) . lower ( ) ) , * args , ** kwargs ) #NEWLINE# self . group = self . parser . add_argument_group ( ) #NEWLINE# self . parser . add_argument ( '-n' , '--last' , type = int , dest = 'last' , default = 50 , help = ( 'List N most recent %s; list all if 0.' % resource . get_plural_display_name ( ) . lower ( ) ) ) #NEWLINE# self . group . add_argument ( '--trigger-instance' , help = 'Trigger instance id to filter the list.' ) #NEWLINE# self . group . add_argument ( '--execution' , help = 'Execution id to filter the list.' ) #NEWLINE# self . group . add_argument ( '--rule' , help = 'Rule ref to filter the list.' ) #NEWLINE# self . parser . add_argument ( '-tg' , '--timestamp-gt' , type = str , dest = 'timestamp_gt' , default = None , help = 'Only return enforcements with enforced_at greater than the one provided. Use time in the format 2000-01-01T12:00:00.000Z' ) #NEWLINE# self . parser . add_argument ( '-tl' , '--timestamp-lt' , type = str , dest = 'timestamp_lt' , default = None , help = 'Only return enforcements with enforced_at lower than the one provided. Use time in the format 2000-01-01T12:00:00.000Z' ) #NEWLINE# self . parser . add_argument ( '-a' , '--attr' , nargs = '+' , default = self . display_attributes , help = 'List of attributes to include in the output. "all" will return all attributes.' ) #NEWLINE# self . parser . add_argument ( '-w' , '--width' , nargs = '+' , type = int , default = None , help = 'Set the width of columns in output.' )