Class: Google::Apis::ComputeBeta::Http2HealthCheck

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Http2HealthCheck

Returns a new instance of Http2HealthCheck.



2749
2750
2751
# File 'generated/google/apis/compute_beta/classes.rb', line 2749

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)


2725
2726
2727
# File 'generated/google/apis/compute_beta/classes.rb', line 2725

def host
  @host
end

#portFixnum

The TCP port number for the health check request. The default value is 443. Corresponds to the JSON property port

Returns:

  • (Fixnum)


2730
2731
2732
# File 'generated/google/apis/compute_beta/classes.rb', line 2730

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)


2736
2737
2738
# File 'generated/google/apis/compute_beta/classes.rb', line 2736

def port_name
  @port_name
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)


2742
2743
2744
# File 'generated/google/apis/compute_beta/classes.rb', line 2742

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)


2747
2748
2749
# File 'generated/google/apis/compute_beta/classes.rb', line 2747

def request_path
  @request_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2754
2755
2756
2757
2758
2759
2760
# File 'generated/google/apis/compute_beta/classes.rb', line 2754

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