Class: Google::Apis::AndroidmanagementV1::ProxyInfo

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

Overview

Configuration info for an HTTP proxy. For a direct proxy, set the host, port, and excluded_hosts fields. For a PAC script proxy, set the pac_uri field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ProxyInfo

Returns a new instance of ProxyInfo.



2920
2921
2922
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2920

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

Instance Attribute Details

#excluded_hostsArray<String>

For a direct proxy, the hosts for which the proxy is bypassed. The host names may contain wildcards such as *.example.com. Corresponds to the JSON property excludedHosts

Returns:

  • (Array<String>)


2903
2904
2905
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2903

def excluded_hosts
  @excluded_hosts
end

#hostString

The host of the direct proxy. Corresponds to the JSON property host

Returns:

  • (String)


2908
2909
2910
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2908

def host
  @host
end

#pac_uriString

The URI of the PAC script used to configure the proxy. Corresponds to the JSON property pacUri

Returns:

  • (String)


2913
2914
2915
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2913

def pac_uri
  @pac_uri
end

#portFixnum

The port of the direct proxy. Corresponds to the JSON property port

Returns:

  • (Fixnum)


2918
2919
2920
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2918

def port
  @port
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2925
2926
2927
2928
2929
2930
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2925

def update!(**args)
  @excluded_hosts = args[:excluded_hosts] if args.key?(:excluded_hosts)
  @host = args[:host] if args.key?(:host)
  @pac_uri = args[:pac_uri] if args.key?(:pac_uri)
  @port = args[:port] if args.key?(:port)
end