Exemplo n.º 1
0
 def _Args(cls, parser, support_keepalive_interval=False):
     cls.ROUTER_ARG = flags.RouterArgument()
     cls.ROUTER_ARG.AddArgument(parser, operation_type='update')
     base.ASYNC_FLAG.AddToParser(parser)
     if support_keepalive_interval:
         flags.AddKeepaliveIntervalArg(parser)
     flags.AddUpdateCustomAdvertisementArgs(parser, 'router')
Exemplo n.º 2
0
 def _Args(cls, parser, support_keepalive_interval=False):
   parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
   cls.NETWORK_ARG = network_flags.NetworkArgumentForOtherResource(
       'The network for this router')
   cls.NETWORK_ARG.AddArgument(parser)
   cls.ROUTER_ARG = flags.RouterArgument()
   cls.ROUTER_ARG.AddArgument(parser, operation_type='create')
   base.ASYNC_FLAG.AddToParser(parser)
   flags.AddCreateRouterArgs(parser)
   if support_keepalive_interval:
     flags.AddKeepaliveIntervalArg(parser)
   flags.AddReplaceCustomAdvertisementArgs(parser, 'router')
   parser.display_info.AddCacheUpdater(flags.RoutersCompleter)