Ejemplo n.º 1
0
def _Args(parser, include_l7_internal_load_balancing, include_log_config):
    health_check_arg = flags.HealthCheckArgument(
        'TCP',
        include_l7_internal_load_balancing=include_l7_internal_load_balancing)
    health_check_arg.AddArgument(parser, operation_type='update')
    health_checks_utils.AddTcpRelatedUpdateArgs(parser)
    health_checks_utils.AddProtocolAgnosticUpdateArgs(parser, 'TCP')
    if include_log_config:
        health_checks_utils.AddHealthCheckLoggingRelatedArgs(parser)
Ejemplo n.º 2
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)
def _Args(parser, include_l7_internal_load_balancing, include_log_config,
          include_weighted_load_balancing):
    """Adds all the args in the parser."""
    health_check_arg = flags.HealthCheckArgument(
        'HTTP2',
        include_l7_internal_load_balancing=include_l7_internal_load_balancing)
    health_check_arg.AddArgument(parser, operation_type='update')
    health_checks_utils.AddHttpRelatedUpdateArgs(
        parser, include_weighted_load_balancing)
    health_checks_utils.AddHttpRelatedResponseArg(parser)
    health_checks_utils.AddProtocolAgnosticUpdateArgs(parser, 'HTTP2')
    if include_log_config:
        health_checks_utils.AddHealthCheckLoggingRelatedArgs(parser)
Ejemplo n.º 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(
        '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')
    if include_log_config:
        health_checks_utils.AddHealthCheckLoggingRelatedArgs(parser)
    parser.display_info.AddCacheUpdater(completers.HealthChecksCompleterAlpha
                                        if include_l7_internal_load_balancing
                                        else completers.HealthChecksCompleter)