/// <summary> /// Initializes a new instance of the <see cref="Configuration" /> class /// </summary> public Configuration( IDictionary <string, string> defaultHeader, IDictionary <string, string> apiKey, IDictionary <string, string> apiKeyPrefix, string basePath = "https://petstore.swagger.io *_/ ' \" =end - - \\r\\n \\n \\r/v2 *_/ ' \" =end - - \\r\\n \\n \\r") : this() { if (string.IsNullOrWhiteSpace(basePath)) { throw new ArgumentException("The provided basePath is invalid.", "basePath"); } if (defaultHeader == null) { throw new ArgumentNullException("defaultHeader"); } if (apiKey == null) { throw new ArgumentNullException("apiKey"); } if (apiKeyPrefix == null) { throw new ArgumentNullException("apiKeyPrefix"); } BasePath = basePath; foreach (var keyValuePair in defaultHeader) { DefaultHeader.Add(keyValuePair); } foreach (var keyValuePair in apiKey) { ApiKey.Add(keyValuePair); } foreach (var keyValuePair in apiKeyPrefix) { ApiKeyPrefix.Add(keyValuePair); } }
/// <summary> /// Initializes a new instance of the <see cref="Configuration" /> class /// </summary> public Configuration( IDictionary <string, string> defaultHeader, IDictionary <string, string> apiKey, IDictionary <string, string> apiKeyPrefix, string basePath = "https://sedeasl-au.os-lab.inail.it") : this() { if (string.IsNullOrWhiteSpace(basePath)) { throw new ArgumentException("The provided basePath is invalid.", "basePath"); } if (defaultHeader == null) { throw new ArgumentNullException("defaultHeader"); } if (apiKey == null) { throw new ArgumentNullException("apiKey"); } if (apiKeyPrefix == null) { throw new ArgumentNullException("apiKeyPrefix"); } BasePath = basePath; foreach (var keyValuePair in defaultHeader) { DefaultHeader.Add(keyValuePair); } foreach (var keyValuePair in apiKey) { ApiKey.Add(keyValuePair); } foreach (var keyValuePair in apiKeyPrefix) { ApiKeyPrefix.Add(keyValuePair); } }
/// <summary> /// Initializes a new instance of the <see cref="Configuration" /> class /// </summary> public Configuration( IDictionary <string, string> defaultHeader, IDictionary <string, string> apiKey, IDictionary <string, string> apiKeyPrefix, string basePath = "https://api.bigcommerce.com/stores/{$$.env.store_hash}/v3") : this() { if (string.IsNullOrWhiteSpace(basePath)) { throw new ArgumentException("The provided basePath is invalid.", "basePath"); } if (defaultHeader == null) { throw new ArgumentNullException("defaultHeader"); } if (apiKey == null) { throw new ArgumentNullException("apiKey"); } if (apiKeyPrefix == null) { throw new ArgumentNullException("apiKeyPrefix"); } BasePath = basePath; foreach (var keyValuePair in defaultHeader) { DefaultHeader.Add(keyValuePair); } foreach (var keyValuePair in apiKey) { ApiKey.Add(keyValuePair); } foreach (var keyValuePair in apiKeyPrefix) { ApiKeyPrefix.Add(keyValuePair); } }
/// <summary> /// Initializes a new instance of the <see cref="Configuration" /> class /// </summary> public Configuration( IDictionary <string, string> defaultHeader, IDictionary <string, string> apiKey, IDictionary <string, string> apiKeyPrefix, string basePath = "https://virtserver.swaggerhub.com/BrambyPerspective/CheckoutPaymentGatewayAPI/V1") : this() { if (string.IsNullOrWhiteSpace(basePath)) { throw new ArgumentException("The provided basePath is invalid.", "basePath"); } if (defaultHeader == null) { throw new ArgumentNullException("defaultHeader"); } if (apiKey == null) { throw new ArgumentNullException("apiKey"); } if (apiKeyPrefix == null) { throw new ArgumentNullException("apiKeyPrefix"); } BasePath = basePath; foreach (var keyValuePair in defaultHeader) { DefaultHeader.Add(keyValuePair); } foreach (var keyValuePair in apiKey) { ApiKey.Add(keyValuePair); } foreach (var keyValuePair in apiKeyPrefix) { ApiKeyPrefix.Add(keyValuePair); } }
/// <summary> /// Initializes a new instance of the <see cref="Configuration" /> class /// </summary> public Configuration( IDictionary <string, string> defaultHeader, IDictionary <string, string> apiKey, IDictionary <string, string> apiKeyPrefix, string basePath = "https://stp-dev.epias.com.tr/stp-broadcaster-orchestrator/rest") : this() { if (string.IsNullOrWhiteSpace(basePath)) { throw new ArgumentException("The provided basePath is invalid.", "basePath"); } if (defaultHeader == null) { throw new ArgumentNullException("defaultHeader"); } if (apiKey == null) { throw new ArgumentNullException("apiKey"); } if (apiKeyPrefix == null) { throw new ArgumentNullException("apiKeyPrefix"); } BasePath = basePath; foreach (var keyValuePair in defaultHeader) { DefaultHeader.Add(keyValuePair); } foreach (var keyValuePair in apiKey) { ApiKey.Add(keyValuePair); } foreach (var keyValuePair in apiKeyPrefix) { ApiKeyPrefix.Add(keyValuePair); } }
/// <summary> /// Initializes a new instance of the <see cref="Configuration" /> class /// </summary> public Configuration( IDictionary <string, string> defaultHeader, IDictionary <string, string> apiKey, IDictionary <string, string> apiKeyPrefix, string basePath = "http://healthsuite.allocatesoftware.com/api/booking/v1") : this() { if (string.IsNullOrWhiteSpace(basePath)) { throw new ArgumentException("The provided basePath is invalid.", "basePath"); } if (defaultHeader == null) { throw new ArgumentNullException("defaultHeader"); } if (apiKey == null) { throw new ArgumentNullException("apiKey"); } if (apiKeyPrefix == null) { throw new ArgumentNullException("apiKeyPrefix"); } BasePath = basePath; foreach (var keyValuePair in defaultHeader) { DefaultHeader.Add(keyValuePair); } foreach (var keyValuePair in apiKey) { ApiKey.Add(keyValuePair); } foreach (var keyValuePair in apiKeyPrefix) { ApiKeyPrefix.Add(keyValuePair); } }
/// <summary> /// Initializes a new instance of the <see cref="Configuration" /> class /// </summary> public Configuration( IDictionary <string, string> defaultHeader, IDictionary <string, string> apiKey, IDictionary <string, string> apiKeyPrefix, string basePath = "http://104.128.226.60:7890") : this() // testBigAlice2path { if (string.IsNullOrWhiteSpace(basePath)) { throw new ArgumentException("The provided basePath is invalid.", "basePath"); } if (defaultHeader == null) { throw new ArgumentNullException("defaultHeader"); } if (apiKey == null) { throw new ArgumentNullException("apiKey"); } if (apiKeyPrefix == null) { throw new ArgumentNullException("apiKeyPrefix"); } BasePath = basePath; foreach (var keyValuePair in defaultHeader) { DefaultHeader.Add(keyValuePair); } foreach (var keyValuePair in apiKey) { ApiKey.Add(keyValuePair); } foreach (var keyValuePair in apiKeyPrefix) { ApiKeyPrefix.Add(keyValuePair); } }
/// <summary> /// Initializes a new instance of the <see cref="Configuration" /> class /// </summary> public Configuration( IDictionary <string, string> defaultHeader, IDictionary <string, string> apiKey, IDictionary <string, string> apiKeyPrefix, string basePath = "https://prod.api.appcluster01.ca-central-1.ezmax.com/rest") : this() { if (string.IsNullOrWhiteSpace(basePath)) { throw new ArgumentException("The provided basePath is invalid.", "basePath"); } if (defaultHeader == null) { throw new ArgumentNullException("defaultHeader"); } if (apiKey == null) { throw new ArgumentNullException("apiKey"); } if (apiKeyPrefix == null) { throw new ArgumentNullException("apiKeyPrefix"); } BasePath = basePath; foreach (var keyValuePair in defaultHeader) { DefaultHeader.Add(keyValuePair); } foreach (var keyValuePair in apiKey) { ApiKey.Add(keyValuePair); } foreach (var keyValuePair in apiKeyPrefix) { ApiKeyPrefix.Add(keyValuePair); } }
/// <summary> /// Initializes a new instance of the <see cref="Configuration" /> class /// </summary> public Configuration( IDictionary <string, string> defaultHeader, IDictionary <string, string> apiKey, IDictionary <string, string> apiKeyPrefix, string basePath = "https://api.bag.acceptatie.kadaster.nl/esd/huidigebevragingen/v1") : this() { if (string.IsNullOrWhiteSpace(basePath)) { throw new ArgumentException("The provided basePath is invalid.", "basePath"); } if (defaultHeader == null) { throw new ArgumentNullException("defaultHeader"); } if (apiKey == null) { throw new ArgumentNullException("apiKey"); } if (apiKeyPrefix == null) { throw new ArgumentNullException("apiKeyPrefix"); } BasePath = basePath; foreach (var keyValuePair in defaultHeader) { DefaultHeader.Add(keyValuePair); } foreach (var keyValuePair in apiKey) { ApiKey.Add(keyValuePair); } foreach (var keyValuePair in apiKeyPrefix) { ApiKeyPrefix.Add(keyValuePair); } }
/// <summary> /// Add default header. /// </summary> /// <param name="key">Header field name.</param> /// <param name="value">Header field value.</param> /// <returns></returns> public void AddDefaultHeader(string key, string value) { DefaultHeader.Add(key, value); }
/// <summary> /// Add default header. /// </summary> /// <param name="Key">Header field name.</param> /// <param name="Value">Header field value.</param> /// <returns></returns> public void AddDefaultHeader(string Key, string Value) { DefaultHeader.Add(Key, Value); }