Class: Google::Apis::ComputeAlpha::Http2HealthCheck

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Http2HealthCheck

Returns a new instance of Http2HealthCheck.



10241
10242
10243
# File 'lib/google/apis/compute_alpha/classes.rb', line 10241

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#hostString

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

Returns:

  • (String)


10191
10192
10193
# File 'lib/google/apis/compute_alpha/classes.rb', line 10191

def host
  @host
end

#portFixnum

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

Returns:

  • (Fixnum)


10197
10198
10199
# File 'lib/google/apis/compute_alpha/classes.rb', line 10197

def port
  @port
end

#port_nameString

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

Returns:

  • (String)


10203
10204
10205
# File 'lib/google/apis/compute_alpha/classes.rb', line 10203

def port_name
  @port_name
end

#port_specificationString

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

Returns:

  • (String)


10216
10217
10218
# File 'lib/google/apis/compute_alpha/classes.rb', line 10216

def port_specification
  @port_specification
end

#proxy_headerString

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

Returns:

  • (String)


10222
10223
10224
# File 'lib/google/apis/compute_alpha/classes.rb', line 10222

def proxy_header
  @proxy_header
end

#request_pathString

The request path of the HTTP/2 health check request. The default value is /. Corresponds to the JSON property requestPath

Returns:

  • (String)


10227
10228
10229
# File 'lib/google/apis/compute_alpha/classes.rb', line 10227

def request_path
  @request_path
end

#responseString

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

Returns:

  • (String)


10234
10235
10236
# File 'lib/google/apis/compute_alpha/classes.rb', line 10234

def response
  @response
end

#weight_report_modeString

Weight report mode. used for weighted Load Balancing. Corresponds to the JSON property weightReportMode

Returns:

  • (String)


10239
10240
10241
# File 'lib/google/apis/compute_alpha/classes.rb', line 10239

def weight_report_mode
  @weight_report_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
# File 'lib/google/apis/compute_alpha/classes.rb', line 10246

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)
  @weight_report_mode = args[:weight_report_mode] if args.key?(:weight_report_mode)
end