예제 #1
0
 def Args(parser):
     """Set up arguments for this command."""
     parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
     _SSL_POLICY_ARG.AddArgument(parser, operation_type='create')
     flags.GetDescriptionFlag().AddToParser(parser)
     flags.GetProfileFlag(default='COMPATIBLE').AddToParser(parser)
     flags.GetMinTlsVersionFlag(default='1.0').AddToParser(parser)
     flags.GetCustomFeaturesFlag().AddToParser(parser)
예제 #2
0
 def Args(cls, parser):
     parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
     if cls._regional_ssl_policies:
         cls.SSL_POLICY_ARG = flags.GetSslPolicyMultiScopeArgument()
     else:
         cls.SSL_POLICY_ARG = flags.GetSslPolicyArgument()
     cls.SSL_POLICY_ARG.AddArgument(parser, operation_type='patch')
     flags.GetProfileFlag().AddToParser(parser)
     flags.GetMinTlsVersionFlag().AddToParser(parser)
     flags.GetCustomFeaturesFlag().AddToParser(parser)
 def Args(cls, parser):
     """Set up arguments for this command."""
     parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
     if cls._regional_ssl_policies:
         parser.display_info.AddCacheUpdater(flags.SslPoliciesCompleter)
         cls.SSL_POLICY_ARG = flags.GetSslPolicyMultiScopeArgument()
     else:
         parser.display_info.AddCacheUpdater(
             flags.LegacySslPoliciesCompleter)
         cls.SSL_POLICY_ARG = flags.GetSslPolicyArgument()
     cls.SSL_POLICY_ARG.AddArgument(parser, operation_type='create')
     flags.GetDescriptionFlag().AddToParser(parser)
     flags.GetProfileFlag(default='COMPATIBLE').AddToParser(parser)
     flags.GetMinTlsVersionFlag(default='1.0').AddToParser(parser)
     flags.GetCustomFeaturesFlag().AddToParser(parser)
예제 #4
0
 def Args(parser):
     parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
     _SSL_POLICY_ARG.AddArgument(parser, operation_type='patch')
     flags.GetProfileFlag().AddToParser(parser)
     flags.GetMinTlsVersionFlag().AddToParser(parser)
     flags.GetCustomFeaturesFlag().AddToParser(parser)