Exemplo n.º 1
0
        public Configuration(
            IDictionary <string, string> defaultHeaders,
            IDictionary <string, string> apiKey,
            IDictionary <string, string> apiKeyPrefix,
            string basePath = "http://petstore.swagger.io:80/v2") : this()
        {
            if (string.IsNullOrWhiteSpace(basePath))
            {
                throw new ArgumentException("The provided basePath is invalid.", "basePath");
            }
            if (defaultHeaders == null)
            {
                throw new ArgumentNullException("defaultHeaders");
            }
            if (apiKey == null)
            {
                throw new ArgumentNullException("apiKey");
            }
            if (apiKeyPrefix == null)
            {
                throw new ArgumentNullException("apiKeyPrefix");
            }

            BasePath = basePath;

            foreach (var keyValuePair in defaultHeaders)
            {
                DefaultHeaders.Add(keyValuePair);
            }

            foreach (var keyValuePair in apiKey)
            {
                ApiKey.Add(keyValuePair);
            }

            foreach (var keyValuePair in apiKeyPrefix)
            {
                ApiKeyPrefix.Add(keyValuePair);
            }
        }
Exemplo n.º 2
0
        /// <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/VNG-sandbox/Kadasterpersonen-bevragen/1.0.0") : 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);
            }
        }
Exemplo n.º 3
0
        /// <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.clever.com/v2.0") : 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);
            }
        }
Exemplo n.º 4
0
        public Configuration(
            IDictionary <string, string> defaultHeaders,
            IDictionary <string, string> apiKey,
            IDictionary <string, string> apiKeyPrefix,
            string basePath = "https://demo.tenants.oryapis.com/api/kratos/public") : this()
        {
            if (string.IsNullOrWhiteSpace(basePath))
            {
                throw new ArgumentException("The provided basePath is invalid.", "basePath");
            }
            if (defaultHeaders == null)
            {
                throw new ArgumentNullException("defaultHeaders");
            }
            if (apiKey == null)
            {
                throw new ArgumentNullException("apiKey");
            }
            if (apiKeyPrefix == null)
            {
                throw new ArgumentNullException("apiKeyPrefix");
            }

            BasePath = basePath;

            foreach (var keyValuePair in defaultHeaders)
            {
                DefaultHeaders.Add(keyValuePair);
            }

            foreach (var keyValuePair in apiKey)
            {
                ApiKey.Add(keyValuePair);
            }

            foreach (var keyValuePair in apiKeyPrefix)
            {
                ApiKeyPrefix.Add(keyValuePair);
            }
        }
        public Configuration(
            IDictionary <string, string> defaultHeaders,
            IDictionary <string, string> apiKey,
            IDictionary <string, string> apiKeyPrefix,
            string basePath = "https://virtserver.swaggerhub.com/VNGRealisatie/api/landelijke_tabellen") : this()
        {
            if (string.IsNullOrWhiteSpace(basePath))
            {
                throw new ArgumentException("The provided basePath is invalid.", "basePath");
            }
            if (defaultHeaders == null)
            {
                throw new ArgumentNullException("defaultHeaders");
            }
            if (apiKey == null)
            {
                throw new ArgumentNullException("apiKey");
            }
            if (apiKeyPrefix == null)
            {
                throw new ArgumentNullException("apiKeyPrefix");
            }

            BasePath = basePath;

            foreach (var keyValuePair in defaultHeaders)
            {
                DefaultHeaders.Add(keyValuePair);
            }

            foreach (var keyValuePair in apiKey)
            {
                ApiKey.Add(keyValuePair);
            }

            foreach (var keyValuePair in apiKeyPrefix)
            {
                ApiKeyPrefix.Add(keyValuePair);
            }
        }
Exemplo n.º 6
0
        /// <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://jsapi-integration.us-east-1.elasticbeanstalk.com") : this()
        {
            if (string.IsNullOrEmpty(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);
            }
        }
        public Configuration(
            IDictionary <string, string> defaultHeaders,
            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 (defaultHeaders == null)
            {
                throw new ArgumentNullException("defaultHeaders");
            }
            if (apiKey == null)
            {
                throw new ArgumentNullException("apiKey");
            }
            if (apiKeyPrefix == null)
            {
                throw new ArgumentNullException("apiKeyPrefix");
            }

            BasePath = basePath;

            foreach (var keyValuePair in defaultHeaders)
            {
                DefaultHeaders.Add(keyValuePair);
            }

            foreach (var keyValuePair in apiKey)
            {
                ApiKey.Add(keyValuePair);
            }

            foreach (var keyValuePair in apiKeyPrefix)
            {
                ApiKeyPrefix.Add(keyValuePair);
            }
        }
Exemplo n.º 8
0
        public Configuration(
            IDictionary <string, string> defaultHeaders,
            IDictionary <string, string> apiKey,
            IDictionary <string, string> apiKeyPrefix,
            string basePath = "https://13d16e9d-d8b1-4ef4-bc4a-ed8156b2b159.mock.pstmn.io") : this()
        {
            if (string.IsNullOrWhiteSpace(basePath))
            {
                throw new ArgumentException("The provided basePath is invalid.", "basePath");
            }
            if (defaultHeaders == null)
            {
                throw new ArgumentNullException("defaultHeaders");
            }
            if (apiKey == null)
            {
                throw new ArgumentNullException("apiKey");
            }
            if (apiKeyPrefix == null)
            {
                throw new ArgumentNullException("apiKeyPrefix");
            }

            BasePath = basePath;

            foreach (var keyValuePair in defaultHeaders)
            {
                DefaultHeaders.Add(keyValuePair);
            }

            foreach (var keyValuePair in apiKey)
            {
                ApiKey.Add(keyValuePair);
            }

            foreach (var keyValuePair in apiKeyPrefix)
            {
                ApiKeyPrefix.Add(keyValuePair);
            }
        }
Exemplo n.º 9
0
        /// <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);
            }
        }
Exemplo n.º 10
0
        public Configuration(
            IDictionary <string, string> defaultHeaders,
            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 (defaultHeaders == null)
            {
                throw new ArgumentNullException("defaultHeaders");
            }
            if (apiKey == null)
            {
                throw new ArgumentNullException("apiKey");
            }
            if (apiKeyPrefix == null)
            {
                throw new ArgumentNullException("apiKeyPrefix");
            }

            BasePath = basePath;

            foreach (var keyValuePair in defaultHeaders)
            {
                DefaultHeaders.Add(keyValuePair);
            }

            foreach (var keyValuePair in apiKey)
            {
                ApiKey.Add(keyValuePair);
            }

            foreach (var keyValuePair in apiKeyPrefix)
            {
                ApiKeyPrefix.Add(keyValuePair);
            }
        }