def service_client_config(service_client_name=None):
 _parameters = {'disable_ssl_certificate_validation': CONF.identity.disable_ssl_certificate_validation, 'ca_certs': CONF.identity.ca_certificates_file, 'trace_requests': CONF.debug.trace_requests, 'http_timeout': CONF.service_clients.http_timeout}
 if (service_client_name is None):
  return _parameters
 config_group = service_client_name.replace('-', '_')
 try:
  options = getattr(CONF, config_group)
 except cfg.NoSuchOptError:
  raise exceptions.UnknownServiceClient(services=service_client_name)
 if (service_client_name != 'identity'):
  _parameters['endpoint_type'] = getattr(options, 'endpoint_type')
 for setting in ['build_timeout', 'build_interval']:
  if ((not hasattr(options, setting)) or (not getattr(options, setting))):
   _parameters[setting] = getattr(CONF.compute, setting)
  else:
   _parameters[setting] = getattr(options, setting)
 if ((not hasattr(options, 'region')) or (not getattr(options, 'region'))):
  _parameters['region'] = CONF.identity.region
 else:
  _parameters['region'] = getattr(options, 'region')
 _parameters['service'] = getattr(options, 'catalog_type')
 return _parameters

def service_client_config ( service_client_name = None ) : _parameters = { 'disable_ssl_certificate_validation' : CONF . identity . disable_ssl_certificate_validation , 'ca_certs' : CONF . identity . ca_certificates_file , 'trace_requests' : CONF . debug . trace_requests , 'http_timeout' : CONF . service_clients . http_timeout } if ( service_client_name is None ) : return _parameters config_group = service_client_name . replace ( '-' , '_' ) try : options = getattr ( CONF , config_group ) except cfg . NoSuchOptError : raise exceptions . UnknownServiceClient ( services = service_client_name ) if ( service_client_name != 'identity' ) : _parameters [ 'endpoint_type' ] = getattr ( options , 'endpoint_type' ) for setting in [ 'build_timeout' , 'build_interval' ] : if ( ( not hasattr ( options , setting ) ) or ( not getattr ( options , setting ) ) ) : _parameters [ setting ] = getattr ( CONF . compute , setting ) else : _parameters [ setting ] = getattr ( options , setting ) if ( ( not hasattr ( options , 'region' ) ) or ( not getattr ( options , 'region' ) ) ) : _parameters [ 'region' ] = CONF . identity . region else : _parameters [ 'region' ] = getattr ( options , 'region' ) _parameters [ 'service' ] = getattr ( options , 'catalog_type' ) return _parameters
return a dict with the parameters to init service clients extracts from conf the settings specific to the service_client_name and api_version .