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')
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)
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.')
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)
def Args(parser): Describe.TARGET_TCP_PROXY_ARG = flags.TargetTcpProxyArgument() Describe.TARGET_TCP_PROXY_ARG.AddArgument(parser, operation_type='describe')
def Args(parser): Delete.TARGET_TCP_PROXY_ARG = flags.TargetTcpProxyArgument(plural=True) Delete.TARGET_TCP_PROXY_ARG.AddArgument(parser)
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')
def Args(parser): Describe.TARGET_TCP_PROXY_ARG = flags.TargetTcpProxyArgument() Describe.TARGET_TCP_PROXY_ARG.AddArgument(parser)