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.



1920
1921
1922
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1920

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>)


1911
1912
1913
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1911

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)


1918
1919
1920
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1918

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1925
1926
1927
1928
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1925

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