public function toArray()

in php/src/Models/Config.php [189:321]


  public function toArray($noStream = false)
  {
    $res = [];
    if (null !== $this->accessKeyId) {
      $res['accessKeyId'] = $this->accessKeyId;
    }

    if (null !== $this->accessKeySecret) {
      $res['accessKeySecret'] = $this->accessKeySecret;
    }

    if (null !== $this->securityToken) {
      $res['securityToken'] = $this->securityToken;
    }

    if (null !== $this->bearerToken) {
      $res['bearerToken'] = $this->bearerToken;
    }

    if (null !== $this->protocol) {
      $res['protocol'] = $this->protocol;
    }

    if (null !== $this->method) {
      $res['method'] = $this->method;
    }

    if (null !== $this->regionId) {
      $res['regionId'] = $this->regionId;
    }

    if (null !== $this->readTimeout) {
      $res['readTimeout'] = $this->readTimeout;
    }

    if (null !== $this->connectTimeout) {
      $res['connectTimeout'] = $this->connectTimeout;
    }

    if (null !== $this->httpProxy) {
      $res['httpProxy'] = $this->httpProxy;
    }

    if (null !== $this->httpsProxy) {
      $res['httpsProxy'] = $this->httpsProxy;
    }

    if (null !== $this->credential) {
      $res['credential'] = $this->credential;
    }

    if (null !== $this->endpoint) {
      $res['endpoint'] = $this->endpoint;
    }

    if (null !== $this->noProxy) {
      $res['noProxy'] = $this->noProxy;
    }

    if (null !== $this->maxIdleConns) {
      $res['maxIdleConns'] = $this->maxIdleConns;
    }

    if (null !== $this->network) {
      $res['network'] = $this->network;
    }

    if (null !== $this->userAgent) {
      $res['userAgent'] = $this->userAgent;
    }

    if (null !== $this->suffix) {
      $res['suffix'] = $this->suffix;
    }

    if (null !== $this->socks5Proxy) {
      $res['socks5Proxy'] = $this->socks5Proxy;
    }

    if (null !== $this->socks5NetWork) {
      $res['socks5NetWork'] = $this->socks5NetWork;
    }

    if (null !== $this->endpointType) {
      $res['endpointType'] = $this->endpointType;
    }

    if (null !== $this->openPlatformEndpoint) {
      $res['openPlatformEndpoint'] = $this->openPlatformEndpoint;
    }

    if (null !== $this->type) {
      $res['type'] = $this->type;
    }

    if (null !== $this->signatureVersion) {
      $res['signatureVersion'] = $this->signatureVersion;
    }

    if (null !== $this->signatureAlgorithm) {
      $res['signatureAlgorithm'] = $this->signatureAlgorithm;
    }

    if (null !== $this->globalParameters) {
      $res['globalParameters'] = null !== $this->globalParameters ? $this->globalParameters->toArray($noStream) : $this->globalParameters;
    }

    if (null !== $this->key) {
      $res['key'] = $this->key;
    }

    if (null !== $this->cert) {
      $res['cert'] = $this->cert;
    }

    if (null !== $this->ca) {
      $res['ca'] = $this->ca;
    }

    if (null !== $this->disableHttp2) {
      $res['disableHttp2'] = $this->disableHttp2;
    }

    if (null !== $this->tlsMinVersion) {
      $res['tlsMinVersion'] = $this->tlsMinVersion;
    }

    if (null !== $this->retryOptions) {
      $res['retryOptions'] = null !== $this->retryOptions ? $this->retryOptions->toArray($noStream) : $this->retryOptions;
    }

    return $res;
  }