Class: Google::Apis::ComputeV1::Http2HealthCheck
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::Http2HealthCheck
- Defined in:
- generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/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.
-
#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.
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.
2631 2632 2633 |
# File 'generated/google/apis/compute_v1/classes.rb', line 2631 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
2607 2608 2609 |
# File 'generated/google/apis/compute_v1/classes.rb', line 2607 def host @host end |
#port ⇒ Fixnum
The TCP port number for the health check request. The default value is 443.
Corresponds to the JSON property port
2612 2613 2614 |
# File 'generated/google/apis/compute_v1/classes.rb', line 2612 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
2618 2619 2620 |
# File 'generated/google/apis/compute_v1/classes.rb', line 2618 def port_name @port_name 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
2624 2625 2626 |
# File 'generated/google/apis/compute_v1/classes.rb', line 2624 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
2629 2630 2631 |
# File 'generated/google/apis/compute_v1/classes.rb', line 2629 def request_path @request_path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2636 2637 2638 2639 2640 2641 2642 |
# File 'generated/google/apis/compute_v1/classes.rb', line 2636 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) @proxy_header = args[:proxy_header] if args.key?(:proxy_header) @request_path = args[:request_path] if args.key?(:request_path) end |