示例#1
0
 def Args(cls, parser):
     parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
     cls.HEALTH_CHECK_ARG = flags.HealthCheckArgument('HTTP2')
     cls.HEALTH_CHECK_ARG.AddArgument(parser)
     health_checks_utils.AddHttpRelatedCreationArgs(parser)
     health_checks_utils.AddHttpRelatedResponseArg(parser)
     health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'HTTP2')
示例#2
0
 def Args(cls, parser):
     parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
     flags.HealthCheckArgument('HTTP').AddArgument(parser,
                                                   operation_type='create')
     health_checks_utils.AddHttpRelatedCreationArgs(parser)
     health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'HTTP')
     parser.display_info.AddCacheUpdater(completers.HealthChecksCompleter)
示例#3
0
 def Args(parser, supports_use_serving_port=True, regionalized=False):
     parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
     flags.HealthCheckArgument('HTTP2',
                               include_alpha=regionalized).AddArgument(
                                   parser, operation_type='create')
     health_checks_utils.AddHttpRelatedCreationArgs(parser)
     health_checks_utils.AddHttpRelatedResponseArg(parser)
     health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'HTTP2')
     parser.display_info.AddCacheUpdater(
         completers.HealthChecksCompleterAlpha
         if regionalized else completers.HealthChecksCompleter)
示例#4
0
 def Args(cls, parser, regionalized=False):
     parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
     flags.HealthCheckArgument(
         'HTTPS',
         include_l7_internal_load_balancing=regionalized).AddArgument(
             parser, operation_type='create')
     health_checks_utils.AddHttpRelatedCreationArgs(parser)
     health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'HTTPS')
     health_checks_utils.AddHttpRelatedResponseArg(parser)
     parser.display_info.AddCacheUpdater(
         completers.HealthChecksCompleterAlpha
         if regionalized else completers.HttpsHealthChecksCompleter)
示例#5
0
def _Args(parser, include_l7_internal_load_balancing=False):
    """Set up arguments to create an HTTP2 HealthCheck."""
    parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
    flags.HealthCheckArgument(
        'HTTP2',
        include_l7_internal_load_balancing=include_l7_internal_load_balancing
    ).AddArgument(parser, operation_type='create')
    health_checks_utils.AddHttpRelatedCreationArgs(parser)
    health_checks_utils.AddHttpRelatedResponseArg(parser)
    health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'HTTP2')
    parser.display_info.AddCacheUpdater(completers.HealthChecksCompleterAlpha
                                        if include_l7_internal_load_balancing
                                        else completers.HealthChecksCompleter)
示例#6
0
 def Args(cls,
          parser,
          supports_port_specification=False,
          supports_use_serving_port=False):
     parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
     flags.HealthCheckArgument('HTTP').AddArgument(parser,
                                                   operation_type='create')
     health_checks_utils.AddHttpRelatedCreationArgs(
         parser,
         port_specification=supports_port_specification,
         use_serving_port=supports_use_serving_port)
     health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'HTTP')
     parser.display_info.AddCacheUpdater(completers.HealthChecksCompleter)
示例#7
0
 def Args(parser):
   health_checks_utils.AddHttpRelatedCreationArgs(parser)
   health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'HTTPS')
示例#8
0
 def Args(cls, parser):
     cls.HEALTH_CHECK_ARG = flags.HealthCheckArgument('HTTP')
     cls.HEALTH_CHECK_ARG.AddArgument(parser)
     health_checks_utils.AddHttpRelatedCreationArgs(parser)
     health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'HTTP')