public static function fromMap()

in php/src/Models/Config.php [328:460]


  public static function fromMap($map = [])
  {
    $model = new self();
    if (isset($map['accessKeyId'])) {
      $model->accessKeyId = $map['accessKeyId'];
    }

    if (isset($map['accessKeySecret'])) {
      $model->accessKeySecret = $map['accessKeySecret'];
    }

    if (isset($map['securityToken'])) {
      $model->securityToken = $map['securityToken'];
    }

    if (isset($map['bearerToken'])) {
      $model->bearerToken = $map['bearerToken'];
    }

    if (isset($map['protocol'])) {
      $model->protocol = $map['protocol'];
    }

    if (isset($map['method'])) {
      $model->method = $map['method'];
    }

    if (isset($map['regionId'])) {
      $model->regionId = $map['regionId'];
    }

    if (isset($map['readTimeout'])) {
      $model->readTimeout = $map['readTimeout'];
    }

    if (isset($map['connectTimeout'])) {
      $model->connectTimeout = $map['connectTimeout'];
    }

    if (isset($map['httpProxy'])) {
      $model->httpProxy = $map['httpProxy'];
    }

    if (isset($map['httpsProxy'])) {
      $model->httpsProxy = $map['httpsProxy'];
    }

    if (isset($map['credential'])) {
      $model->credential = $map['credential'];
    }

    if (isset($map['endpoint'])) {
      $model->endpoint = $map['endpoint'];
    }

    if (isset($map['noProxy'])) {
      $model->noProxy = $map['noProxy'];
    }

    if (isset($map['maxIdleConns'])) {
      $model->maxIdleConns = $map['maxIdleConns'];
    }

    if (isset($map['network'])) {
      $model->network = $map['network'];
    }

    if (isset($map['userAgent'])) {
      $model->userAgent = $map['userAgent'];
    }

    if (isset($map['suffix'])) {
      $model->suffix = $map['suffix'];
    }

    if (isset($map['socks5Proxy'])) {
      $model->socks5Proxy = $map['socks5Proxy'];
    }

    if (isset($map['socks5NetWork'])) {
      $model->socks5NetWork = $map['socks5NetWork'];
    }

    if (isset($map['endpointType'])) {
      $model->endpointType = $map['endpointType'];
    }

    if (isset($map['openPlatformEndpoint'])) {
      $model->openPlatformEndpoint = $map['openPlatformEndpoint'];
    }

    if (isset($map['type'])) {
      $model->type = $map['type'];
    }

    if (isset($map['signatureVersion'])) {
      $model->signatureVersion = $map['signatureVersion'];
    }

    if (isset($map['signatureAlgorithm'])) {
      $model->signatureAlgorithm = $map['signatureAlgorithm'];
    }

    if (isset($map['globalParameters'])) {
      $model->globalParameters = GlobalParameters::fromMap($map['globalParameters']);
    }

    if (isset($map['key'])) {
      $model->key = $map['key'];
    }

    if (isset($map['cert'])) {
      $model->cert = $map['cert'];
    }

    if (isset($map['ca'])) {
      $model->ca = $map['ca'];
    }

    if (isset($map['disableHttp2'])) {
      $model->disableHttp2 = $map['disableHttp2'];
    }

    if (isset($map['tlsMinVersion'])) {
      $model->tlsMinVersion = $map['tlsMinVersion'];
    }

    if (isset($map['retryOptions'])) {
      $model->retryOptions = RetryOptions::fromMap($map['retryOptions']);
    }

    return $model;
  }