func mergeInConfig()

in cluster-autoscaler/cloudprovider/volcengine/volcengine-go-sdk/volcengine/config.go [505:655]


func mergeInConfig(dst *Config, other *Config) {
	if other == nil {
		return
	}

	if other.CredentialsChainVerboseErrors != nil {
		dst.CredentialsChainVerboseErrors = other.CredentialsChainVerboseErrors
	}

	if other.Credentials != nil {
		dst.Credentials = other.Credentials
	}

	if other.Endpoint != nil {
		dst.Endpoint = other.Endpoint
	}

	if other.EndpointResolver != nil {
		dst.EndpointResolver = other.EndpointResolver
	}

	if other.Region != nil {
		dst.Region = other.Region
	}

	if other.DisableSSL != nil {
		dst.DisableSSL = other.DisableSSL
	}

	if other.HTTPClient != nil {
		dst.HTTPClient = other.HTTPClient
	}

	if other.LogLevel != nil {
		dst.LogLevel = other.LogLevel
	}

	if other.Logger != nil {
		dst.Logger = other.Logger
	}

	if other.MaxRetries != nil {
		dst.MaxRetries = other.MaxRetries
	}

	if other.Retryer != nil {
		dst.Retryer = other.Retryer
	}

	if other.ForceJsonNumberDecode != nil {
		dst.ForceJsonNumberDecode = other.ForceJsonNumberDecode
	}
	// Temporary notes by xuyaming@bytedance.com because some validate field is relation.
	//if other.DisableParamValidation != nil {
	//	dst.DisableParamValidation = other.DisableParamValidation
	//}

	//if other.DisableComputeChecksums != nil {
	//	dst.DisableComputeChecksums = other.DisableComputeChecksums
	//}

	//if other.S3UseAccelerate != nil {
	//	dst.S3UseAccelerate = other.S3UseAccelerate
	//}
	//
	//if other.S3DisableContentMD5Validation != nil {
	//	dst.S3DisableContentMD5Validation = other.S3DisableContentMD5Validation
	//}
	//
	//if other.UseDualStack != nil {
	//	dst.UseDualStack = other.UseDualStack
	//}
	//
	//if other.EC2MetadataDisableTimeoutOverride != nil {
	//	dst.EC2MetadataDisableTimeoutOverride = other.EC2MetadataDisableTimeoutOverride
	//}
	//
	if other.SleepDelay != nil {
		dst.SleepDelay = other.SleepDelay
	}
	//
	if other.DisableRestProtocolURICleaning != nil {
		dst.DisableRestProtocolURICleaning = other.DisableRestProtocolURICleaning
	}
	//
	//if other.EnforceShouldRetryCheck != nil {
	//	dst.EnforceShouldRetryCheck = other.EnforceShouldRetryCheck
	//}
	//
	//if other.EnableEndpointDiscovery != nil {
	//	dst.EnableEndpointDiscovery = other.EnableEndpointDiscovery
	//}
	//
	//if other.DisableEndpointHostPrefix != nil {
	//	dst.DisableEndpointHostPrefix = other.DisableEndpointHostPrefix
	//}

	if other.LogSensitives != nil {
		dst.LogSensitives = other.LogSensitives
	}

	if other.LogAccount != nil {
		dst.LogAccount = other.LogAccount
	}

	if other.DynamicCredentials != nil {
		dst.DynamicCredentials = other.DynamicCredentials
	}

	if other.DynamicCredentialsIncludeError != nil {
		dst.DynamicCredentialsIncludeError = other.DynamicCredentialsIncludeError
	}

	if other.ExtendHttpRequest != nil {
		dst.ExtendHttpRequest = other.ExtendHttpRequest
	}

	if other.ExtendHttpRequestWithMeta != nil {
		dst.ExtendHttpRequestWithMeta = other.ExtendHttpRequestWithMeta
	}

	if other.ExtraHttpParameters != nil {
		dst.ExtraHttpParameters = other.ExtraHttpParameters
	}

	if other.ExtraHttpParametersWithMeta != nil {
		dst.ExtraHttpParametersWithMeta = other.ExtraHttpParametersWithMeta
	}

	if other.ExtraUserAgent != nil {
		dst.ExtraUserAgent = other.ExtraUserAgent
	}

	if other.SimpleError != nil {
		dst.SimpleError = other.SimpleError
	}

	if other.ExtraHttpJsonBody != nil {
		dst.ExtraHttpJsonBody = other.ExtraHttpJsonBody
	}

	if other.CustomerUnmarshalError != nil {
		dst.CustomerUnmarshalError = other.CustomerUnmarshalError
	}

	if other.CustomerUnmarshalData != nil {
		dst.CustomerUnmarshalData = other.CustomerUnmarshalData
	}

	dst.Interceptors = other.Interceptors
}