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): 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)