in python/alibabacloud_tea_openapi/utils_models/_config.py [0:0]
def from_map(self, m: dict = None):
m = m or dict()
if m.get('accessKeyId') is not None:
self.access_key_id = m.get('accessKeyId')
if m.get('accessKeySecret') is not None:
self.access_key_secret = m.get('accessKeySecret')
if m.get('securityToken') is not None:
self.security_token = m.get('securityToken')
if m.get('bearerToken') is not None:
self.bearer_token = m.get('bearerToken')
if m.get('protocol') is not None:
self.protocol = m.get('protocol')
if m.get('method') is not None:
self.method = m.get('method')
if m.get('regionId') is not None:
self.region_id = m.get('regionId')
if m.get('readTimeout') is not None:
self.read_timeout = m.get('readTimeout')
if m.get('connectTimeout') is not None:
self.connect_timeout = m.get('connectTimeout')
if m.get('httpProxy') is not None:
self.http_proxy = m.get('httpProxy')
if m.get('httpsProxy') is not None:
self.https_proxy = m.get('httpsProxy')
if m.get('credential') is not None:
self.credential = m.get('credential')
if m.get('endpoint') is not None:
self.endpoint = m.get('endpoint')
if m.get('noProxy') is not None:
self.no_proxy = m.get('noProxy')
if m.get('maxIdleConns') is not None:
self.max_idle_conns = m.get('maxIdleConns')
if m.get('network') is not None:
self.network = m.get('network')
if m.get('userAgent') is not None:
self.user_agent = m.get('userAgent')
if m.get('suffix') is not None:
self.suffix = m.get('suffix')
if m.get('socks5Proxy') is not None:
self.socks_5proxy = m.get('socks5Proxy')
if m.get('socks5NetWork') is not None:
self.socks_5net_work = m.get('socks5NetWork')
if m.get('endpointType') is not None:
self.endpoint_type = m.get('endpointType')
if m.get('openPlatformEndpoint') is not None:
self.open_platform_endpoint = m.get('openPlatformEndpoint')
if m.get('type') is not None:
self.type = m.get('type')
if m.get('signatureVersion') is not None:
self.signature_version = m.get('signatureVersion')
if m.get('signatureAlgorithm') is not None:
self.signature_algorithm = m.get('signatureAlgorithm')
if m.get('globalParameters') is not None:
temp_model = main_models.GlobalParameters()
self.global_parameters = temp_model.from_map(m.get('globalParameters'))
if m.get('key') is not None:
self.key = m.get('key')
if m.get('cert') is not None:
self.cert = m.get('cert')
if m.get('ca') is not None:
self.ca = m.get('ca')
if m.get('disableHttp2') is not None:
self.disable_http_2 = m.get('disableHttp2')
if m.get('retryOptions') is not None:
temp_model = RetryOptions()
self.retry_options = temp_model.from_map(m.get('retryOptions'))
if m.get('tlsMinVersion') is not None:
self.tls_min_version = m.get('tlsMinVersion')
return self