def _ExtractProxyConfig(product_yaml_key, proxy_config_data):
 cafile = proxy_config_data.get('cafile', None)
 disable_certificate_validation = proxy_config_data.get('disable_certificate_validation', False)
 http_proxy = _ExtractProxy(_HTTP_PROXY_YAML_KEY, proxy_config_data)
 https_proxy = _ExtractProxy(_HTTPS_PROXY_YAML_KEY, proxy_config_data)
 proxy_config = ProxyConfig(http_proxy=http_proxy, https_proxy=https_proxy, cafile=cafile, disable_certificate_validation=disable_certificate_validation)
 return proxy_config

def _ExtractProxyConfig ( product_yaml_key , proxy_config_data ) : cafile = proxy_config_data . get ( 'cafile' , None ) disable_certificate_validation = proxy_config_data . get ( 'disable_certificate_validation' , False ) http_proxy = _ExtractProxy ( _HTTP_PROXY_YAML_KEY , proxy_config_data ) https_proxy = _ExtractProxy ( _HTTPS_PROXY_YAML_KEY , proxy_config_data ) proxy_config = ProxyConfig ( http_proxy = http_proxy , https_proxy = https_proxy , cafile = cafile , disable_certificate_validation = disable_certificate_validation ) return proxy_config
returns an initialized proxyconfig using the given proxy_config_data .