def Args(cls, parser): cls.SSL_CERTIFICATES_ARG = ( ssl_certificates_flags.SslCertificatesArgumentForOtherResource( 'target HTTPS proxy', required=False, include_alpha=cls._include_l7_internal_load_balancing)) cls.SSL_CERTIFICATES_ARG.AddArgument(parser, cust_metavar='SSL_CERTIFICATE') cls.TARGET_HTTPS_PROXY_ARG = flags.TargetHttpsProxyArgument( include_l7_internal_load_balancing=cls. _include_l7_internal_load_balancing) cls.TARGET_HTTPS_PROXY_ARG.AddArgument(parser, operation_type='update') cls.URL_MAP_ARG = url_map_flags.UrlMapArgumentForTargetProxy( required=False, proxy_type='HTTPS', include_l7_internal_load_balancing=cls. _include_l7_internal_load_balancing) cls.URL_MAP_ARG.AddArgument(parser) group = parser.add_mutually_exclusive_group() cls.SSL_POLICY_ARG = ( ssl_policies_flags.GetSslPolicyArgumentForOtherResource( 'HTTPS', required=False)) cls.SSL_POLICY_ARG.AddArgument(group) ssl_policies_flags.GetClearSslPolicyArgumentForOtherResource( 'HTTPS', required=False).AddToParser(group) target_proxies_utils.AddQuicOverrideUpdateArgs(parser)
def Args(cls, parser): super(UpdateAlpha, cls).Args(parser) target_proxies_utils.AddQuicOverrideUpdateArgs(parser) group = parser.add_mutually_exclusive_group() cls.SSL_POLICY_ARG = ( ssl_policies_flags.GetSslPolicyArgumentForOtherResource( 'HTTPS', required=False)) cls.SSL_POLICY_ARG.AddArgument(group) ssl_policies_flags.GetClearSslPolicyArgumentForOtherResource( 'HTTPS', required=False).AddToParser(group)
def Args(cls, parser): cls.SSL_CERTIFICATES_ARG = ( ssl_certificates_flags.SslCertificatesArgumentForOtherResource( 'target HTTPS proxy', required=False, include_l7_internal_load_balancing=cls. _include_l7_internal_load_balancing)) if not cls._certificate_map: cls.SSL_CERTIFICATES_ARG.AddArgument( parser, cust_metavar='SSL_CERTIFICATE') cls.TARGET_HTTPS_PROXY_ARG = flags.TargetHttpsProxyArgument( include_l7_internal_load_balancing=cls. _include_l7_internal_load_balancing) cls.TARGET_HTTPS_PROXY_ARG.AddArgument(parser, operation_type='update') cls.URL_MAP_ARG = url_map_flags.UrlMapArgumentForTargetProxy( required=False, proxy_type='HTTPS', include_l7_internal_load_balancing=cls. _include_l7_internal_load_balancing) cls.URL_MAP_ARG.AddArgument(parser) if cls._certificate_map: group = parser.add_mutually_exclusive_group() cert_group = group.add_argument_group() cls.SSL_CERTIFICATES_ARG.AddArgument( cert_group, cust_metavar='SSL_CERTIFICATE') map_group = group.add_mutually_exclusive_group() resource_args.AddCertificateMapResourceArg(map_group, 'to attach', name='certificate-map', positional=False, required=False, with_location=False) resource_args.GetClearCertificateMapArgumentForOtherResource( 'HTTPS proxy').AddToParser(map_group) if cls._regional_ssl_policies: cls.SSL_POLICY_ARG = ssl_policies_flags.GetSslPolicyMultiScopeArgumentForOtherResource( 'HTTPS', required=False) else: cls.SSL_POLICY_ARG = ssl_policies_flags.GetSslPolicyArgumentForOtherResource( 'HTTPS', required=False) group = parser.add_mutually_exclusive_group() ssl_policy_group = group.add_argument_group() cls.SSL_POLICY_ARG.AddArgument(ssl_policy_group) ssl_policies_flags.GetClearSslPolicyArgumentForOtherResource( 'HTTPS', required=False).AddToParser(group) target_proxies_utils.AddQuicOverrideUpdateArgs(parser)
def Args(cls, parser): super(UpdateBeta, cls).Args(parser) target_proxies_utils.AddQuicOverrideUpdateArgs(parser)