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.



1940
1941
1942
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1940

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


1931
1932
1933
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1931

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)


1938
1939
1940
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1938

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1945
1946
1947
1948
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1945

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