Ejemplo n.º 1
0
 def Args(parser):
     base.URI_FLAG.RemoveFromParser(parser)
     flags.AddIdOptions(parser, 'logpoint', 'logpoints', 'listed')
     parser.add_argument('--all-users',
                         action='store_true',
                         default=True,
                         help="""\
         If false, display only logpoints created by the current user.
     """)
     parser.add_argument('--include-inactive',
                         default=300,
                         type=arg_parsers.BoundedInt(lower_bound=0,
                                                     unlimited=True),
                         help="""\
         Include logpoints which failed or expired in the last
         INCLUDE_INACTIVE seconds. If the value is "unlimited", all failed
         or expired logpoints will be included.
     """)
     parser.display_info.AddFormat("""
       table(
         userEmail.if(all_users),
         location,
         condition,
         logLevel,
         logMessageFormat,
         id,
         full_status():label=STATUS)
         :(isFinalState:sort=1, createTime:sort=2)
 """)
Ejemplo n.º 2
0
 def Args(parser):
   flags.AddIdOptions(parser, 'snapshot', 'snapshots', 'deleted')
   parser.add_argument(
       '--all-users', action='store_true', default=False,
       help="""\
           If set, matching snapshots from all users will be deleted, rather
           than only snapshots created by the current user.
       """)
   parser.add_argument(
       '--include-inactive', action='store_true', default=False,
       help="""\
           If set, also delete snapshots which have been completed. By default,
           only pending snapshots will be deleted.
       """)
Ejemplo n.º 3
0
 def Args(parser):
   base.URI_FLAG.RemoveFromParser(parser)
   flags.AddIdOptions(parser, 'logpoint', 'logpoints', 'listed')
   parser.add_argument(
       '--all-users', action='store_true', default=True,
       help="""\
           If false, display only logpoints created by the current user.
       """)
   parser.add_argument(
       '--include-inactive', default=300,
       type=arg_parsers.BoundedInt(lower_bound=0, unlimited=True),
       help="""\
           Include logpoints which failed or expired in the last
           INCLUDE_INACTIVE seconds. If the value is "unlimited", all failed
           or expired logpoints will be included.
       """)
Ejemplo n.º 4
0
 def Args(parser):
   flags.AddIdOptions(parser, 'logpoint', 'logpoints', 'deleted')
   parser.add_argument(
       '--all-users', action='store_true', default=False,
       help="""\
           If set, any location regexp will match logpoints from all users,
           rather than only logpoints created by the current user. This flag is
           not required when specifying the exact ID of a logpoint created by
           another user.
       """)
   parser.add_argument(
       '--include-inactive', action='store_true', default=False,
       help="""\
           If set, any location regexp will also match inactive logpoints,
           rather than only logpoints which have not expired. This flag is
           not required when specifying the exact ID of an inactive logpoint.
       """)
Ejemplo n.º 5
0
 def Args(parser):
   base.URI_FLAG.RemoveFromParser(parser)
   base.PAGE_SIZE_FLAG.RemoveFromParser(parser)
   flags.AddIdOptions(parser, 'snapshot', 'snapshots', 'displayed')
   parser.add_argument(
       '--all-users', action='store_true', default=False,
       help="""\
           If set, display snapshots from all users, rather than only the
           current user.
       """)
   parser.add_argument(
       '--include-inactive', default=300,
       type=arg_parsers.BoundedInt(lower_bound=0, unlimited=True),
       help="""\
           Include snapshots which have completed in the last INCLUDE_INACTIVE
           seconds. If the value is "unlimited", all inactive snapshots will
           be included.
       """)
   parser.display_info.AddFormat(flags.SNAPSHOT_LIST_FORMAT)
Ejemplo n.º 6
0
 def Args(parser):
   flags.AddIdOptions(parser, 'snapshot', 'snapshots', 'displayed')