コード例 #1
0
ファイル: tcp.py プロジェクト: adambengis/TraderGrows
 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
ファイル: udp.py プロジェクト: Guliux10/bchacks_deepbreath
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
ファイル: http2.py プロジェクト: adambengis/TraderGrows
 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
ファイル: http2.py プロジェクト: bopopescu/GCP-speedtest
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
ファイル: tcp.py プロジェクト: bopopescu/google-cloud-sdk-3
 def Args(parser):
     health_checks_utils.AddTcpRelatedCreationArgs(parser)
     health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'TCP')
コード例 #19
0
ファイル: http.py プロジェクト: eduardofacanha/Robin
 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')