예제 #1
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')
예제 #2
0
 def Args(cls, parser):
   parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
   cls.HEALTH_CHECK_ARG = flags.HealthCheckArgument(
       'UDP', include_l7_internal_load_balancing=True)
   cls.HEALTH_CHECK_ARG.AddArgument(parser, operation_type='create')
   health_checks_utils.AddUdpRelatedArgs(parser)
   health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'UDP')
예제 #3
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')
예제 #4
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')
예제 #5
0
파일: http.py 프로젝트: barber223/AudioApp
 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)
예제 #6
0
def _Args(parser, include_l7_internal_load_balancing=False):
    parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
    flags.HealthCheckArgument(
        'UDP',
        include_l7_internal_load_balancing=include_l7_internal_load_balancing
    ).AddArgument(parser, operation_type='create')
    health_checks_utils.AddUdpRelatedArgs(parser)
    health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'UDP')
예제 #7
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')
예제 #8
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)
예제 #9
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)
예제 #10
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)
예제 #11
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)
예제 #12
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)
예제 #13
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')
예제 #14
0
def _Args(parser, include_l7_internal_load_balancing, include_log_config):
    """Set up arguments to create a gRPC HealthCheck."""
    parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
    flags.HealthCheckArgument(
        'gRPC',
        include_l7_internal_load_balancing=include_l7_internal_load_balancing
    ).AddArgument(parser, operation_type='create')
    health_checks_utils.AddGrpcRelatedCreationArgs(parser)
    health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'gRPC')
    if include_log_config:
        health_checks_utils.AddHealthCheckLoggingRelatedArgs(parser)

    parser.display_info.AddCacheUpdater(completers.HealthChecksCompleterAlpha
                                        if include_l7_internal_load_balancing
                                        else completers.HealthChecksCompleter)
예제 #15
0
파일: ssl.py 프로젝트: barber223/AudioApp
 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')
예제 #16
0
 def Args(parser):
     health_checks_utils.AddUdpRelatedArgs(parser)
     health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'UDP')
예제 #17
0
 def Args(parser):
   health_checks_utils.AddHttpRelatedCreationArgs(parser)
   health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'HTTPS')
예제 #18
0
 def Args(parser):
     health_checks_utils.AddTcpRelatedCreationArgs(parser)
     health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'TCP')
예제 #19
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')