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')
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)
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)
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)
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)
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)
def Args(parser): health_checks_utils.AddHttpRelatedCreationArgs(parser) health_checks_utils.AddProtocolAgnosticCreationArgs(parser, 'HTTPS')
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')