예제 #1
0
    def Args(cls, parser):
        target_proxies_utils.AddProxyHeaderRelatedUpdateArgs(parser)

        cls.BACKEND_SERVICE_ARG = (
            backend_service_flags.BackendServiceArgumentForTargetTcpProxy(
                required=False))
        cls.BACKEND_SERVICE_ARG.AddArgument(parser)
        cls.TARGET_TCP_PROXY_ARG = flags.TargetTcpProxyArgument()
        cls.TARGET_TCP_PROXY_ARG.AddArgument(parser, operation_type='update')
예제 #2
0
    def Args(cls, parser):
        cls.TARGET_TCP_PROXY_ARG = flags.TargetTcpProxyArgument(
            plural=True, allow_regional=cls._enable_region_target_tcp_proxy)
        cls.TARGET_TCP_PROXY_ARG.AddArgument(parser, operation_type='delete')

        if cls._enable_region_target_tcp_proxy:
            parser.display_info.AddCacheUpdater(
                flags.TargetTcpProxiesCompleter)
        else:
            parser.display_info.AddCacheUpdater(
                flags.GATargetTcpProxiesCompleter)
예제 #3
0
  def Args(cls, parser):
    target_proxies_utils.AddProxyHeaderRelatedCreateArgs(parser)

    cls.BACKEND_SERVICE_ARG = (
        backend_service_flags.BackendServiceArgumentForTargetTcpProxy())
    cls.BACKEND_SERVICE_ARG.AddArgument(parser)
    cls.TARGET_TCP_PROXY_ARG = flags.TargetTcpProxyArgument()
    cls.TARGET_TCP_PROXY_ARG.AddArgument(parser, operation_type='create')

    parser.add_argument(
        '--description',
        help='An optional, textual description for the target TCP proxy.')
예제 #4
0
  def Args(cls, parser):
    target_proxies_utils.AddProxyHeaderRelatedCreateArgs(parser)

    cls.BACKEND_SERVICE_ARG = (
        backend_service_flags.BackendServiceArgumentForTargetTcpProxy())
    cls.BACKEND_SERVICE_ARG.AddArgument(parser)
    cls.TARGET_TCP_PROXY_ARG = flags.TargetTcpProxyArgument()
    cls.TARGET_TCP_PROXY_ARG.AddArgument(parser, operation_type='create')

    if cls._support_tcp_in_td:
      flags.AddProxyBind(parser)

    parser.add_argument(
        '--description',
        help='An optional, textual description for the target TCP proxy.')

    parser.display_info.AddCacheUpdater(flags.TargetTcpProxiesCompleter)
예제 #5
0
 def Args(parser):
     Describe.TARGET_TCP_PROXY_ARG = flags.TargetTcpProxyArgument()
     Describe.TARGET_TCP_PROXY_ARG.AddArgument(parser,
                                               operation_type='describe')
예제 #6
0
 def Args(parser):
     Delete.TARGET_TCP_PROXY_ARG = flags.TargetTcpProxyArgument(plural=True)
     Delete.TARGET_TCP_PROXY_ARG.AddArgument(parser)
예제 #7
0
 def Args(parser):
     Delete.TARGET_TCP_PROXY_ARG = flags.TargetTcpProxyArgument(plural=True)
     Delete.TARGET_TCP_PROXY_ARG.AddArgument(parser,
                                             operation_type='delete')
     parser.display_info.AddCacheUpdater(flags.TargetTcpProxiesCompleter)
 def Args(cls, parser):
     cls.TARGET_TCP_PROXY_ARG = flags.TargetTcpProxyArgument(
         allow_regional=cls._enable_region_target_tcp_proxy)
     cls.TARGET_TCP_PROXY_ARG.AddArgument(parser, operation_type='describe')
예제 #9
0
 def Args(parser):
     Describe.TARGET_TCP_PROXY_ARG = flags.TargetTcpProxyArgument()
     Describe.TARGET_TCP_PROXY_ARG.AddArgument(parser)