Class: Google::Compute::Data::HealChecHttpHealChecApi

Inherits:
HealChecHttpHealChec show all
Defined in:
lib/google/compute/property/healthcheck_http_health_check.rb,
lib/google/compute/property/healthcheck_https_health_check.rb

Overview

Manages a HealChecHttpHealChec nested object Data is coming from the GCP API

Instance Attribute Summary

Attributes inherited from HealChecHttpHealChec

#host, #port, #port_name, #proxy_header, #request_path

Instance Method Summary collapse

Methods inherited from HealChecHttpHealChec

#<=>, #==, #to_json, #to_s

Constructor Details

#initialize(args) ⇒ HealChecHttpHealChecApi

Returns a new instance of HealChecHttpHealChecApi.



98
99
100
101
102
103
104
105
106
107
# File 'lib/google/compute/property/healthcheck_http_health_check.rb', line 98

def initialize(args)
  @host = Google::Compute::Property::String.api_munge(args['host'])
  @request_path =
    Google::Compute::Property::String.api_munge(args['requestPath'])
  @port = Google::Compute::Property::Integer.api_munge(args['port'])
  @port_name =
    Google::Compute::Property::String.api_munge(args['portName'])
  @proxy_header =
    Google::Compute::Property::Enum.api_munge(args['proxyHeader'])
end