Beispiel #1
0
 def Args(cls, parser, supports_port_specification=False):
     parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
     flags.HealthCheckArgument('TCP').AddArgument(parser,
                                                  operation_type='create')
     health_checks_utils.AddTcpRelatedCreationArgs(
         parser, port_specification=supports_port_specification)
     health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'TCP')
Beispiel #2
0
 def Args(cls, parser, regionalized=False):
     parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
     flags.HealthCheckArgument('TCP',
                               include_alpha=regionalized).AddArgument(
                                   parser, operation_type='create')
     health_checks_utils.AddTcpRelatedCreationArgs(parser)
     health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'TCP')
Beispiel #3
0
def _Args(parser, include_l7_internal_load_balancing=False):
    """Set up arguments to create an SSL HealthCheck."""
    parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
    flags.HealthCheckArgument(
        'SSL',
        include_l7_internal_load_balancing=include_l7_internal_load_balancing
    ).AddArgument(parser, operation_type='create')
    health_checks_utils.AddTcpRelatedCreationArgs(parser)
    health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'SSL')
Beispiel #4
0
def _Args(parser, include_l7_internal_load_balancing, include_log_config):
    """Set up arguments to create an HTTP2 HealthCheck."""
    parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
    flags.HealthCheckArgument(
        'TCP',
        include_l7_internal_load_balancing=include_l7_internal_load_balancing
    ).AddArgument(parser, operation_type='create')
    health_checks_utils.AddTcpRelatedCreationArgs(parser)
    health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'TCP')
    if include_log_config:
        health_checks_utils.AddHealthCheckLoggingRelatedArgs(parser)
Beispiel #5
0
 def Args(cls,
          parser,
          supports_port_specification=False,
          supports_use_serving_port=False,
          regionalized=False):
     parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
     flags.HealthCheckArgument('SSL',
                               include_alpha=regionalized).AddArgument(
                                   parser, operation_type='create')
     health_checks_utils.AddTcpRelatedCreationArgs(
         parser,
         port_specification=supports_port_specification,
         use_serving_port=supports_use_serving_port)
     health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'SSL')
Beispiel #6
0
 def Args(cls, parser):
     parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
     flags.HealthCheckArgument('SSL').AddArgument(parser,
                                                  operation_type='create')
     health_checks_utils.AddTcpRelatedCreationArgs(parser)
     health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'SSL')
Beispiel #7
0
 def Args(parser):
     health_checks_utils.AddTcpRelatedCreationArgs(parser)
     health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'TCP')
Beispiel #8
0
 def Args(cls, parser):
     cls.HEALTH_CHECK_ARG = flags.HealthCheckArgument('TCP')
     cls.HEALTH_CHECK_ARG.AddArgument(parser)
     health_checks_utils.AddTcpRelatedCreationArgs(parser)
     health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'TCP')
Beispiel #9
0
 def Args(cls, parser):
     parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
     cls.HEALTH_CHECK_ARG = flags.HealthCheckArgument('SSL')
     cls.HEALTH_CHECK_ARG.AddArgument(parser)
     health_checks_utils.AddTcpRelatedCreationArgs(parser)
     health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'SSL')