< Summary

Information
Class: /home/wethinkcode/student_work/csharp/GroupProject/super-cool-group/weshare-qa/GeneratedApiCode/src/Applications.WeShare.Swagger/Client/Configuration.cs
Assembly: Default
File(s): /home/wethinkcode/student_work/csharp/GroupProject/super-cool-group/weshare-qa/GeneratedApiCode/src/Applications.WeShare.Swagger/Client/Configuration.cs
Line coverage
50%
Covered lines: 111
Uncovered lines: 111
Coverable lines: 222
Total lines: 587
Line coverage: 50%
Branch coverage
35%
Covered branches: 29
Total branches: 82
Branch coverage: 35.3%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

File(s)

/home/wethinkcode/student_work/csharp/GroupProject/super-cool-group/weshare-qa/GeneratedApiCode/src/Applications.WeShare.Swagger/Client/Configuration.cs

#LineLine coverage
 1/*
 2 * WeShare API
 3 *
 4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 5 *
 6 * The version of the OpenAPI document: 1.0
 7 * Generated by: https://github.com/openapitools/openapi-generator.git
 8 */
 9
 10
 11using System;
 12using System.Collections.Concurrent;
 13using System.Collections.Generic;
 14using System.IO;
 15using System.Linq;
 16using System.Net;
 17using System.Reflection;
 18using System.Security.Cryptography.X509Certificates;
 19using System.Text;
 20using System.Net.Http;
 21
 22namespace Applications.WeShare.Swagger.Client
 23{
 24    /// <summary>
 25    /// Represents a set of configuration settings
 26    /// </summary>
 27    public class Configuration : IReadableConfiguration
 28    {
 29        #region Constants
 30
 31        /// <summary>
 32        /// Version of the package.
 33        /// </summary>
 34        /// <value>Version of the package.</value>
 35        public const string Version = "1.0.0";
 36
 37        /// <summary>
 38        /// Identifier for ISO 8601 DateTime Format
 39        /// </summary>
 40        /// <remarks>See https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 for more information.
 41        // ReSharper disable once InconsistentNaming
 42        public const string ISO8601_DATETIME_FORMAT = "o";
 43
 44        #endregion Constants
 45
 46        #region Static Members
 47
 48        /// <summary>
 49        /// Default creation of exceptions for a given method name and response object
 50        /// </summary>
 151        public static readonly ExceptionFactory DefaultExceptionFactory = (methodName, response) =>
 3452        {
 3453            var status = (int)response.StatusCode;
 3454            if (status >= 400)
 2155            {
 2156                return new ApiException(status,
 2157                    string.Format("Error calling {0}: {1}", methodName, response.RawContent),
 2158                    response.RawContent, response.Headers);
 159            }
 1360            return null;
 3561        };
 62
 63        #endregion Static Members
 64
 65        #region Private Members
 66
 67        /// <summary>
 68        /// Defines the base path of the target API server.
 69        /// Example: http://localhost:3000/v1/
 70        /// </summary>
 71        private string _basePath;
 72
 73        /// <summary>
 74        /// Gets or sets the API key based on the authentication name.
 75        /// This is the key and value comprising the "secret" for accessing an API.
 76        /// </summary>
 77        /// <value>The API key.</value>
 78        private IDictionary<string, string> _apiKey;
 79
 80        /// <summary>
 81        /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name.
 82        /// </summary>
 83        /// <value>The prefix of the API key.</value>
 84        private IDictionary<string, string> _apiKeyPrefix;
 85
 1586        private string _dateTimeFormat = ISO8601_DATETIME_FORMAT;
 1587        private string _tempFolderPath = Path.GetTempPath();
 88
 89        /// <summary>
 90        /// Gets or sets the servers defined in the OpenAPI spec.
 91        /// </summary>
 92        /// <value>The servers</value>
 93        private IList<IReadOnlyDictionary<string, object>> _servers;
 94
 95        /// <summary>
 96        /// Gets or sets the operation servers defined in the OpenAPI spec.
 97        /// </summary>
 98        /// <value>The operation servers</value>
 99        private IReadOnlyDictionary<string, List<IReadOnlyDictionary<string, object>>> _operationServers;
 100
 101        #endregion Private Members
 102
 103        #region Constructors
 104
 105        /// <summary>
 106        /// Initializes a new instance of the <see cref="Configuration" /> class
 107        /// </summary>
 108        [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")]
 15109        public Configuration()
 15110        {
 15111            Proxy = null;
 15112            UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/1.0.0/csharp");
 15113            BasePath = "http://localhost";
 15114            DefaultHeaders = new ConcurrentDictionary<string, string>();
 15115            ApiKey = new ConcurrentDictionary<string, string>();
 15116            ApiKeyPrefix = new ConcurrentDictionary<string, string>();
 15117            Servers = new List<IReadOnlyDictionary<string, object>>()
 15118            {
 15119                {
 15120                    new Dictionary<string, object> {
 15121                        {"url", ""},
 15122                        {"description", "No description provided"},
 15123                    }
 15124                }
 15125            };
 15126            OperationServers = new Dictionary<string, List<IReadOnlyDictionary<string, object>>>()
 15127            {
 15128            };
 129
 130            // Setting Timeout has side effects (forces ApiClient creation).
 15131            Timeout = 100000;
 15132        }
 133
 134        /// <summary>
 135        /// Initializes a new instance of the <see cref="Configuration" /> class
 136        /// </summary>
 137        [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")]
 138        public Configuration(
 139            IDictionary<string, string> defaultHeaders,
 140            IDictionary<string, string> apiKey,
 141            IDictionary<string, string> apiKeyPrefix,
 0142            string basePath = "http://localhost") : this()
 0143        {
 0144            if (string.IsNullOrWhiteSpace(basePath))
 0145                throw new ArgumentException("The provided basePath is invalid.", "basePath");
 0146            if (defaultHeaders == null)
 0147                throw new ArgumentNullException("defaultHeaders");
 0148            if (apiKey == null)
 0149                throw new ArgumentNullException("apiKey");
 0150            if (apiKeyPrefix == null)
 0151                throw new ArgumentNullException("apiKeyPrefix");
 152
 0153            BasePath = basePath;
 154
 0155            foreach (var keyValuePair in defaultHeaders)
 0156            {
 0157                DefaultHeaders.Add(keyValuePair);
 0158            }
 159
 0160            foreach (var keyValuePair in apiKey)
 0161            {
 0162                ApiKey.Add(keyValuePair);
 0163            }
 164
 0165            foreach (var keyValuePair in apiKeyPrefix)
 0166            {
 0167                ApiKeyPrefix.Add(keyValuePair);
 0168            }
 0169        }
 170
 171        #endregion Constructors
 172
 173        #region Properties
 174
 175        /// <summary>
 176        /// Gets or sets the base path for API access.
 177        /// </summary>
 178        public virtual string BasePath {
 63179            get { return _basePath; }
 87180            set { _basePath = value; }
 181        }
 182
 183        /// <summary>
 184        /// Gets or sets the default header.
 185        /// </summary>
 186        [Obsolete("Use DefaultHeaders instead.")]
 187        public virtual IDictionary<string, string> DefaultHeader
 188        {
 189            get
 0190            {
 0191                return DefaultHeaders;
 0192            }
 193            set
 0194            {
 0195                DefaultHeaders = value;
 0196            }
 197        }
 198
 199        /// <summary>
 200        /// Gets or sets the default headers.
 201        /// </summary>
 104202        public virtual IDictionary<string, string> DefaultHeaders { get; set; }
 203
 204        /// <summary>
 205        /// Gets or sets the HTTP timeout (milliseconds) of ApiClient. Default to 100000 milliseconds.
 206        /// </summary>
 63207        public virtual int Timeout { get; set; }
 208
 209        /// <summary>
 210        /// Gets or sets the proxy
 211        /// </summary>
 212        /// <value>Proxy.</value>
 70213        public virtual WebProxy Proxy { get; set; }
 214
 215        /// <summary>
 216        /// Gets or sets the HTTP user agent.
 217        /// </summary>
 218        /// <value>Http user agent.</value>
 63219        public virtual string UserAgent { get; set; }
 220
 221        /// <summary>
 222        /// Gets or sets the username (HTTP basic authentication).
 223        /// </summary>
 224        /// <value>The username.</value>
 21225        public virtual string Username { get; set; }
 226
 227        /// <summary>
 228        /// Gets or sets the password (HTTP basic authentication).
 229        /// </summary>
 230        /// <value>The password.</value>
 21231        public virtual string Password { get; set; }
 232
 233        /// <summary>
 234        /// Gets the API key with prefix.
 235        /// </summary>
 236        /// <param name="apiKeyIdentifier">API key identifier (authentication scheme).</param>
 237        /// <returns>API key with prefix.</returns>
 238        public string GetApiKeyWithPrefix(string apiKeyIdentifier)
 0239        {
 240            string apiKeyValue;
 0241            ApiKey.TryGetValue(apiKeyIdentifier, out apiKeyValue);
 242            string apiKeyPrefix;
 0243            if (ApiKeyPrefix.TryGetValue(apiKeyIdentifier, out apiKeyPrefix))
 0244            {
 0245                return apiKeyPrefix + " " + apiKeyValue;
 246            }
 247
 0248            return apiKeyValue;
 0249        }
 250
 251        /// <summary>
 252        /// Gets or sets certificate collection to be sent with requests.
 253        /// </summary>
 254        /// <value>X509 Certificate collection.</value>
 55255        public X509CertificateCollection ClientCertificates { get; set; }
 256
 257        /// <summary>
 258        /// Gets or sets the access token for OAuth2 authentication.
 259        ///
 260        /// This helper property simplifies code generation.
 261        /// </summary>
 262        /// <value>The access token.</value>
 21263        public virtual string AccessToken { get; set; }
 264
 265        /// <summary>
 266        /// Gets or sets the temporary folder path to store the files downloaded from the server.
 267        /// </summary>
 268        /// <value>Folder path.</value>
 269        public virtual string TempFolderPath
 270        {
 21271            get { return _tempFolderPath; }
 272
 273            set
 7274            {
 7275                if (string.IsNullOrEmpty(value))
 0276                {
 0277                    _tempFolderPath = Path.GetTempPath();
 0278                    return;
 279                }
 280
 281                // create the directory if it does not exist
 7282                if (!Directory.Exists(value))
 0283                {
 0284                    Directory.CreateDirectory(value);
 0285                }
 286
 287                // check if the path contains directory separator at the end
 7288                if (value[value.Length - 1] == Path.DirectorySeparatorChar)
 7289                {
 7290                    _tempFolderPath = value;
 7291                }
 292                else
 0293                {
 0294                    _tempFolderPath = value + Path.DirectorySeparatorChar;
 0295                }
 7296            }
 297        }
 298
 299        /// <summary>
 300        /// Gets or sets the date time format used when serializing in the ApiClient
 301        /// By default, it's set to ISO 8601 - "o", for others see:
 302        /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx
 303        /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
 304        /// No validation is done to ensure that the string you're providing is valid
 305        /// </summary>
 306        /// <value>The DateTimeFormat string</value>
 307        public virtual string DateTimeFormat
 308        {
 21309            get { return _dateTimeFormat; }
 310            set
 7311            {
 7312                if (string.IsNullOrEmpty(value))
 0313                {
 314                    // Never allow a blank or null string, go back to the default
 0315                    _dateTimeFormat = ISO8601_DATETIME_FORMAT;
 0316                    return;
 317                }
 318
 319                // Caution, no validation when you choose date time format other than ISO 8601
 320                // Take a look at the above links
 7321                _dateTimeFormat = value;
 7322            }
 323        }
 324
 325        /// <summary>
 326        /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name.
 327        ///
 328        /// Whatever you set here will be prepended to the value defined in AddApiKey.
 329        ///
 330        /// An example invocation here might be:
 331        /// <example>
 332        /// ApiKeyPrefix["Authorization"] = "Bearer";
 333        /// </example>
 334        /// â€¦ where ApiKey["Authorization"] would then be used to set the value of your bearer token.
 335        ///
 336        /// <remarks>
 337        /// OAuth2 workflows should set tokens via AccessToken.
 338        /// </remarks>
 339        /// </summary>
 340        /// <value>The prefix of the API key.</value>
 341        public virtual IDictionary<string, string> ApiKeyPrefix
 342        {
 42343            get { return _apiKeyPrefix; }
 344            set
 22345            {
 22346                if (value == null)
 0347                {
 0348                    throw new InvalidOperationException("ApiKeyPrefix collection may not be null.");
 349                }
 22350                _apiKeyPrefix = value;
 22351            }
 352        }
 353
 354        /// <summary>
 355        /// Gets or sets the API key based on the authentication name.
 356        /// </summary>
 357        /// <value>The API key.</value>
 358        public virtual IDictionary<string, string> ApiKey
 359        {
 42360            get { return _apiKey; }
 361            set
 22362            {
 22363                if (value == null)
 0364                {
 0365                    throw new InvalidOperationException("ApiKey collection may not be null.");
 366                }
 22367                _apiKey = value;
 22368            }
 369        }
 370
 371        /// <summary>
 372        /// Gets or sets the servers.
 373        /// </summary>
 374        /// <value>The servers.</value>
 375        public virtual IList<IReadOnlyDictionary<string, object>> Servers
 376        {
 0377            get { return _servers; }
 378            set
 15379            {
 15380                if (value == null)
 0381                {
 0382                    throw new InvalidOperationException("Servers may not be null.");
 383                }
 15384                _servers = value;
 15385            }
 386        }
 387
 388        /// <summary>
 389        /// Gets or sets the operation servers.
 390        /// </summary>
 391        /// <value>The operation servers.</value>
 392        public virtual IReadOnlyDictionary<string, List<IReadOnlyDictionary<string, object>>> OperationServers
 393        {
 102394            get { return _operationServers; }
 395            set
 15396            {
 15397                if (value == null)
 0398                {
 0399                    throw new InvalidOperationException("Operation servers may not be null.");
 400                }
 15401                _operationServers = value;
 15402            }
 403        }
 404
 405        /// <summary>
 406        /// Returns URL based on server settings without providing values
 407        /// for the variables
 408        /// </summary>
 409        /// <param name="index">Array index of the server settings.</param>
 410        /// <return>The server URL.</return>
 411        public string GetServerUrl(int index)
 0412        {
 0413            return GetServerUrl(Servers, index, null);
 0414        }
 415
 416        /// <summary>
 417        /// Returns URL based on server settings.
 418        /// </summary>
 419        /// <param name="index">Array index of the server settings.</param>
 420        /// <param name="inputVariables">Dictionary of the variables and the corresponding values.</param>
 421        /// <return>The server URL.</return>
 422        public string GetServerUrl(int index, Dictionary<string, string> inputVariables)
 0423        {
 0424            return GetServerUrl(Servers, index, inputVariables);
 0425        }
 426
 427        /// <summary>
 428        /// Returns URL based on operation server settings.
 429        /// </summary>
 430        /// <param name="operation">Operation associated with the request path.</param>
 431        /// <param name="index">Array index of the server settings.</param>
 432        /// <return>The operation server URL.</return>
 433        public string GetOperationServerUrl(string operation, int index)
 34434        {
 34435            return GetOperationServerUrl(operation, index, null);
 34436        }
 437
 438        /// <summary>
 439        /// Returns URL based on operation server settings.
 440        /// </summary>
 441        /// <param name="operation">Operation associated with the request path.</param>
 442        /// <param name="index">Array index of the server settings.</param>
 443        /// <param name="inputVariables">Dictionary of the variables and the corresponding values.</param>
 444        /// <return>The operation server URL.</return>
 445        public string GetOperationServerUrl(string operation, int index, Dictionary<string, string> inputVariables)
 34446        {
 34447            if (OperationServers.TryGetValue(operation, out var operationServer))
 0448            {
 0449                return GetServerUrl(operationServer, index, inputVariables);
 450            }
 451
 34452            return null;
 34453        }
 454
 455        /// <summary>
 456        /// Returns URL based on server settings.
 457        /// </summary>
 458        /// <param name="servers">Dictionary of server settings.</param>
 459        /// <param name="index">Array index of the server settings.</param>
 460        /// <param name="inputVariables">Dictionary of the variables and the corresponding values.</param>
 461        /// <return>The server URL.</return>
 462        private string GetServerUrl(IList<IReadOnlyDictionary<string, object>> servers, int index, Dictionary<string, st
 0463        {
 0464            if (index < 0 || index >= servers.Count)
 0465            {
 0466                throw new InvalidOperationException($"Invalid index {index} when selecting the server. Must be less than
 467            }
 468
 0469            if (inputVariables == null)
 0470            {
 0471                inputVariables = new Dictionary<string, string>();
 0472            }
 473
 0474            IReadOnlyDictionary<string, object> server = servers[index];
 0475            string url = (string)server["url"];
 476
 0477            if (server.ContainsKey("variables"))
 0478            {
 479                // go through each variable and assign a value
 0480                foreach (KeyValuePair<string, object> variable in (IReadOnlyDictionary<string, object>)server["variables
 0481                {
 482
 0483                    IReadOnlyDictionary<string, object> serverVariables = (IReadOnlyDictionary<string, object>)(variable
 484
 0485                    if (inputVariables.ContainsKey(variable.Key))
 0486                    {
 0487                        if (((List<string>)serverVariables["enum_values"]).Contains(inputVariables[variable.Key]))
 0488                        {
 0489                            url = url.Replace("{" + variable.Key + "}", inputVariables[variable.Key]);
 0490                        }
 491                        else
 0492                        {
 0493                            throw new InvalidOperationException($"The variable `{variable.Key}` in the server URL has in
 494                        }
 0495                    }
 496                    else
 0497                    {
 498                        // use default value
 0499                        url = url.Replace("{" + variable.Key + "}", (string)serverVariables["default_value"]);
 0500                    }
 0501                }
 0502            }
 503
 0504            return url;
 0505        }
 506
 507        #endregion Properties
 508
 509        #region Methods
 510
 511        /// <summary>
 512        /// Returns a string with essential information for debugging.
 513        /// </summary>
 514        public static string ToDebugReport()
 0515        {
 0516            string report = "C# SDK (Applications.WeShare.Swagger) Debug Report:\n";
 0517            report += "    OS: " + System.Environment.OSVersion + "\n";
 0518            report += "    .NET Framework Version: " + System.Environment.Version  + "\n";
 0519            report += "    Version of the API: 1.0\n";
 0520            report += "    SDK Package Version: 1.0.0\n";
 521
 0522            return report;
 0523        }
 524
 525        /// <summary>
 526        /// Add Api Key Header.
 527        /// </summary>
 528        /// <param name="key">Api Key name.</param>
 529        /// <param name="value">Api Key value.</param>
 530        /// <returns></returns>
 531        public void AddApiKey(string key, string value)
 0532        {
 0533            ApiKey[key] = value;
 0534        }
 535
 536        /// <summary>
 537        /// Sets the API key prefix.
 538        /// </summary>
 539        /// <param name="key">Api Key name.</param>
 540        /// <param name="value">Api Key value.</param>
 541        public void AddApiKeyPrefix(string key, string value)
 0542        {
 0543            ApiKeyPrefix[key] = value;
 0544        }
 545
 546        #endregion Methods
 547
 548        #region Static Members
 549        /// <summary>
 550        /// Merge configurations.
 551        /// </summary>
 552        /// <param name="first">First configuration.</param>
 553        /// <param name="second">Second configuration.</param>
 554        /// <return>Merged configuration.</return>
 555        public static IReadableConfiguration MergeConfigurations(IReadableConfiguration first, IReadableConfiguration se
 7556        {
 7557            if (second == null) return first ?? GlobalConfiguration.Instance;
 558
 7559            Dictionary<string, string> apiKey = first.ApiKey.ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
 7560            Dictionary<string, string> apiKeyPrefix = first.ApiKeyPrefix.ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
 7561            Dictionary<string, string> defaultHeaders = first.DefaultHeaders.ToDictionary(kvp => kvp.Key, kvp => kvp.Val
 562
 21563            foreach (var kvp in second.ApiKey) apiKey[kvp.Key] = kvp.Value;
 21564            foreach (var kvp in second.ApiKeyPrefix) apiKeyPrefix[kvp.Key] = kvp.Value;
 21565            foreach (var kvp in second.DefaultHeaders) defaultHeaders[kvp.Key] = kvp.Value;
 566
 7567            var config = new Configuration
 7568            {
 7569                ApiKey = apiKey,
 7570                ApiKeyPrefix = apiKeyPrefix,
 7571                DefaultHeaders = defaultHeaders,
 7572                BasePath = second.BasePath ?? first.BasePath,
 7573                Timeout = second.Timeout,
 7574                Proxy = second.Proxy ?? first.Proxy,
 7575                UserAgent = second.UserAgent ?? first.UserAgent,
 7576                Username = second.Username ?? first.Username,
 7577                Password = second.Password ?? first.Password,
 7578                AccessToken = second.AccessToken ?? first.AccessToken,
 7579                TempFolderPath = second.TempFolderPath ?? first.TempFolderPath,
 7580                DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat,
 7581                ClientCertificates = second.ClientCertificates ?? first.ClientCertificates,
 7582            };
 7583            return config;
 7584        }
 585        #endregion Static Members
 586    }
 587}

Methods/Properties

System.Void Applications.WeShare.Swagger.Client.Configuration::.cctor()
System.Void Applications.WeShare.Swagger.Client.Configuration::.ctor()
System.Void Applications.WeShare.Swagger.Client.Configuration::.ctor(System.Collections.Generic.IDictionary`2<System.String,System.String>,System.Collections.Generic.IDictionary`2<System.String,System.String>,System.Collections.Generic.IDictionary`2<System.String,System.String>,System.String)
System.String Applications.WeShare.Swagger.Client.Configuration::get_BasePath()
System.Void Applications.WeShare.Swagger.Client.Configuration::set_BasePath(System.String)
System.Collections.Generic.IDictionary`2<System.String,System.String> Applications.WeShare.Swagger.Client.Configuration::get_DefaultHeader()
System.Void Applications.WeShare.Swagger.Client.Configuration::set_DefaultHeader(System.Collections.Generic.IDictionary`2<System.String,System.String>)
System.Collections.Generic.IDictionary`2<System.String,System.String> Applications.WeShare.Swagger.Client.Configuration::get_DefaultHeaders()
System.Int32 Applications.WeShare.Swagger.Client.Configuration::get_Timeout()
System.Net.WebProxy Applications.WeShare.Swagger.Client.Configuration::get_Proxy()
System.String Applications.WeShare.Swagger.Client.Configuration::get_UserAgent()
System.String Applications.WeShare.Swagger.Client.Configuration::get_Username()
System.String Applications.WeShare.Swagger.Client.Configuration::get_Password()
System.String Applications.WeShare.Swagger.Client.Configuration::GetApiKeyWithPrefix(System.String)
System.Security.Cryptography.X509Certificates.X509CertificateCollection Applications.WeShare.Swagger.Client.Configuration::get_ClientCertificates()
System.String Applications.WeShare.Swagger.Client.Configuration::get_AccessToken()
System.String Applications.WeShare.Swagger.Client.Configuration::get_TempFolderPath()
System.Void Applications.WeShare.Swagger.Client.Configuration::set_TempFolderPath(System.String)
System.String Applications.WeShare.Swagger.Client.Configuration::get_DateTimeFormat()
System.Void Applications.WeShare.Swagger.Client.Configuration::set_DateTimeFormat(System.String)
System.Collections.Generic.IDictionary`2<System.String,System.String> Applications.WeShare.Swagger.Client.Configuration::get_ApiKeyPrefix()
System.Void Applications.WeShare.Swagger.Client.Configuration::set_ApiKeyPrefix(System.Collections.Generic.IDictionary`2<System.String,System.String>)
System.Collections.Generic.IDictionary`2<System.String,System.String> Applications.WeShare.Swagger.Client.Configuration::get_ApiKey()
System.Void Applications.WeShare.Swagger.Client.Configuration::set_ApiKey(System.Collections.Generic.IDictionary`2<System.String,System.String>)
System.Collections.Generic.IList`1<System.Collections.Generic.IReadOnlyDictionary`2<System.String,System.Object>> Applications.WeShare.Swagger.Client.Configuration::get_Servers()
System.Void Applications.WeShare.Swagger.Client.Configuration::set_Servers(System.Collections.Generic.IList`1<System.Collections.Generic.IReadOnlyDictionary`2<System.String,System.Object>>)
System.Collections.Generic.IReadOnlyDictionary`2<System.String,System.Collections.Generic.List`1<System.Collections.Generic.IReadOnlyDictionary`2<System.String,System.Object>>> Applications.WeShare.Swagger.Client.Configuration::get_OperationServers()
System.Void Applications.WeShare.Swagger.Client.Configuration::set_OperationServers(System.Collections.Generic.IReadOnlyDictionary`2<System.String,System.Collections.Generic.List`1<System.Collections.Generic.IReadOnlyDictionary`2<System.String,System.Object>>>)
System.String Applications.WeShare.Swagger.Client.Configuration::GetServerUrl(System.Int32)
System.String Applications.WeShare.Swagger.Client.Configuration::GetServerUrl(System.Int32,System.Collections.Generic.Dictionary`2<System.String,System.String>)
System.String Applications.WeShare.Swagger.Client.Configuration::GetOperationServerUrl(System.String,System.Int32)
System.String Applications.WeShare.Swagger.Client.Configuration::GetOperationServerUrl(System.String,System.Int32,System.Collections.Generic.Dictionary`2<System.String,System.String>)
System.String Applications.WeShare.Swagger.Client.Configuration::GetServerUrl(System.Collections.Generic.IList`1<System.Collections.Generic.IReadOnlyDictionary`2<System.String,System.Object>>,System.Int32,System.Collections.Generic.Dictionary`2<System.String,System.String>)
System.String Applications.WeShare.Swagger.Client.Configuration::ToDebugReport()
System.Void Applications.WeShare.Swagger.Client.Configuration::AddApiKey(System.String,System.String)
System.Void Applications.WeShare.Swagger.Client.Configuration::AddApiKeyPrefix(System.String,System.String)
Applications.WeShare.Swagger.Client.IReadableConfiguration Applications.WeShare.Swagger.Client.Configuration::MergeConfigurations(Applications.WeShare.Swagger.Client.IReadableConfiguration,Applications.WeShare.Swagger.Client.IReadableConfiguration)