Class: Google::Apis::GkeonpremV1::BareMetalProxyConfig

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

Overview

Specifies the cluster proxy configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalProxyConfig

Returns a new instance of BareMetalProxyConfig.



1841
1842
1843
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1841

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

Instance Attribute Details

#no_proxyArray<String>

A list of IPs, hostnames, and domains that should skip the proxy. Examples: [" 127.0.0.1", "example.com", ".corp", "localhost"]. Corresponds to the JSON property noProxy

Returns:

  • (Array<String>)


1832
1833
1834
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1832

def no_proxy
  @no_proxy
end

#uriString

Required. Specifies the address of your proxy server. Examples: http://domain Do not provide credentials in the format http://(username:password@)domain these will be rejected by the server. Corresponds to the JSON property uri

Returns:

  • (String)


1839
1840
1841
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1839

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1846
1847
1848
1849
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1846

def update!(**args)
  @no_proxy = args[:no_proxy] if args.key?(:no_proxy)
  @uri = args[:uri] if args.key?(:uri)
end