Ejemplo n.º 1
0
 def Args(parser):
   """Register flags for this command."""
   arguments.AddInstancesResourceArg(parser, 'to list clusters for')
   parser.display_info.AddFormat("""
         table(
           name.segment(3):sort=1:label=INSTANCE,
           name.basename():sort=2:label=NAME,
           location.basename():label=ZONE,
           serveNodes:label=NODES,
           defaultStorageType:label=STORAGE,
           state
         )
       """)
   parser.display_info.AddUriFunc(_GetUriFunction)
   parser.display_info.AddCacheUpdater(arguments.InstanceCompleter)
Ejemplo n.º 2
0
 def Args(parser):
     """Register flags for this command."""
     arguments.AddInstancesResourceArg(parser, 'to delete', positional=True)
     parser.display_info.AddCacheUpdater(arguments.InstanceCompleter)