Exemplo n.º 1
0
    def Args(parser):
        resource_args.AddLocationResourceArg(parser,
                                             'apis will be listed from',
                                             default='global')

        # Remove unneeded list-related flags from parser
        base.URI_FLAG.RemoveFromParser(parser)
        parser.display_info.AddFormat(List.LIST_FORMAT)
Exemplo n.º 2
0
 def Args(parser):
   # --sort-by and --uri are inherited for all ListCommands but are not
   # implemented here.
   base.SORT_BY_FLAG.RemoveFromParser(parser)
   base.URI_FLAG.RemoveFromParser(parser)
   resource_args.AddLocationResourceArg(parser,
                                        'operations will be listed from')
   parser.display_info.AddFormat("""
     table(
       name,
       done,
       metadata.requestedCancellation:label=CANCELLED,
       metadata.createTime.date(),
       metadata.verb,
       metadata.target
     )
   """)
   parser.display_info.AddCacheUpdater(None)