Class: Google::Apis::ComputeAlpha::Http2HealthCheck
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ComputeAlpha::Http2HealthCheck
 
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
 generated/google/apis/compute_alpha/representations.rb,
 generated/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #host  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The value of the host header in the HTTP/2 health check request. 
- 
  
    
      #port  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The TCP port number for the health check request. 
- 
  
    
      #port_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Port name as defined in InstanceGroup#NamedPort#name. 
- 
  
    
      #port_specification  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. 
- 
  
    
      #proxy_header  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. 
- 
  
    
      #request_path  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The request path of the HTTP/2 health check request. 
- 
  
    
      #response  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The string to match anywhere in the first 1024 bytes of the response body. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Http2HealthCheck 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Http2HealthCheck. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Http2HealthCheck
Returns a new instance of Http2HealthCheck
| 6393 6394 6395 | # File 'generated/google/apis/compute_alpha/classes.rb', line 6393 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#host ⇒ String
The value of the host header in the HTTP/2 health check request. If left empty
(default value), the IP on behalf of which this health check is performed will
be used.
Corresponds to the JSON property host
| 6341 6342 6343 | # File 'generated/google/apis/compute_alpha/classes.rb', line 6341 def host @host end | 
#port ⇒ Fixnum
The TCP port number for the health check request. The default value is 443.
Valid values are 1 through 65535.
Corresponds to the JSON property port
| 6347 6348 6349 | # File 'generated/google/apis/compute_alpha/classes.rb', line 6347 def port @port end | 
#port_name ⇒ String
Port name as defined in InstanceGroup#NamedPort#name. If both port and
port_name are defined, port takes precedence.
Corresponds to the JSON property portName
| 6353 6354 6355 | # File 'generated/google/apis/compute_alpha/classes.rb', line 6353 def port_name @port_name end | 
#port_specification ⇒ String
Specifies how port is selected for health checking, can be one of following
values:
USE_FIXED_PORT: The port number in
port
is used for health checking.
USE_NAMED_PORT: The
portName
is used for health checking.
USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each
network endpoint is used for health checking. For other backends, the port or
named port specified in the Backend Service is used for health checking.
If not specified, HTTP2 health check follows behavior specified in
port
and
portName
fields.
Corresponds to the JSON property portSpecification
| 6373 6374 6375 | # File 'generated/google/apis/compute_alpha/classes.rb', line 6373 def port_specification @port_specification end | 
#proxy_header ⇒ String
Specifies the type of proxy header to append before sending data to the
backend, either NONE or PROXY_V1. The default is NONE.
Corresponds to the JSON property proxyHeader
| 6379 6380 6381 | # File 'generated/google/apis/compute_alpha/classes.rb', line 6379 def proxy_header @proxy_header end | 
#request_path ⇒ String
The request path of the HTTP/2 health check request. The default value is /.
Corresponds to the JSON property requestPath
| 6384 6385 6386 | # File 'generated/google/apis/compute_alpha/classes.rb', line 6384 def request_path @request_path end | 
#response ⇒ String
The string to match anywhere in the first 1024 bytes of the response body. If
left empty (the default value), the status code determines health. The
response data can only be ASCII.
Corresponds to the JSON property response
| 6391 6392 6393 | # File 'generated/google/apis/compute_alpha/classes.rb', line 6391 def response @response end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 6398 6399 6400 6401 6402 6403 6404 6405 6406 | # File 'generated/google/apis/compute_alpha/classes.rb', line 6398 def update!(**args) @host = args[:host] if args.key?(:host) @port = args[:port] if args.key?(:port) @port_name = args[:port_name] if args.key?(:port_name) @port_specification = args[:port_specification] if args.key?(:port_specification) @proxy_header = args[:proxy_header] if args.key?(:proxy_header) @request_path = args[:request_path] if args.key?(:request_path) @response = args[:response] if args.key?(:response) end |