forked from loafle/openapi-generator-original
[C#][netcore] replace tabs with 4-space (#7456)
* replace tab with 4-space * add space after if
This commit is contained in:
+4
-1
@@ -23,6 +23,7 @@ import io.swagger.v3.oas.models.media.Schema;
|
||||
import org.openapitools.codegen.*;
|
||||
import org.openapitools.codegen.meta.features.*;
|
||||
import org.openapitools.codegen.utils.ModelUtils;
|
||||
import org.openapitools.codegen.utils.ProcessUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@@ -610,7 +611,9 @@ public class CSharpNetCoreClientCodegen extends AbstractCSharpCodegen {
|
||||
supportingFiles.add(new SupportingFile("OpenAPIDateConverter.mustache", clientPackageDir, "OpenAPIDateConverter.cs"));
|
||||
supportingFiles.add(new SupportingFile("ClientUtils.mustache", clientPackageDir, "ClientUtils.cs"));
|
||||
supportingFiles.add(new SupportingFile("HttpMethod.mustache", clientPackageDir, "HttpMethod.cs"));
|
||||
supportingFiles.add(new SupportingFile("HTTPSigningConfiguration.mustache",clientPackageDir,"HTTPSigningConfiguration.cs"));
|
||||
if (ProcessUtils.hasHttpSignatureMethods(openAPI)) {
|
||||
supportingFiles.add(new SupportingFile("HTTPSigningConfiguration.mustache", clientPackageDir, "HTTPSigningConfiguration.cs"));
|
||||
}
|
||||
if (supportsAsync) {
|
||||
supportingFiles.add(new SupportingFile("IAsynchronousClient.mustache", clientPackageDir, "IAsynchronousClient.cs"));
|
||||
}
|
||||
|
||||
+10
-10
@@ -94,9 +94,9 @@ namespace {{packageName}}.Client
|
||||
{{/servers.0}}
|
||||
|
||||
/// <summary>
|
||||
/// HTTPSigning configuration
|
||||
/// </summary>
|
||||
private HTTPSigningConfiguration _HTTPSigningConfiguration = null;
|
||||
/// HTTPSigning configuration
|
||||
/// </summary>
|
||||
private HTTPSigningConfiguration _HTTPSigningConfiguration = null;
|
||||
#endregion Private Members
|
||||
|
||||
#region Constructors
|
||||
@@ -469,13 +469,13 @@ namespace {{packageName}}.Client
|
||||
{{/servers.0}}
|
||||
|
||||
/// <summary>
|
||||
/// Gets and Sets the HTTPSigningConfiuration
|
||||
/// </summary>
|
||||
public HTTPSigningConfiguration HTTPSigningConfiguration
|
||||
{
|
||||
get { return _HTTPSigningConfiguration; }
|
||||
set { _HTTPSigningConfiguration = value; }
|
||||
}
|
||||
/// Gets and Sets the HTTPSigningConfiuration
|
||||
/// </summary>
|
||||
public HTTPSigningConfiguration HTTPSigningConfiguration
|
||||
{
|
||||
get { return _HTTPSigningConfiguration; }
|
||||
set { _HTTPSigningConfiguration = value; }
|
||||
}
|
||||
|
||||
#endregion Properties
|
||||
|
||||
|
||||
Vendored
+601
-606
File diff suppressed because it is too large
Load Diff
Vendored
+4
-4
@@ -98,8 +98,8 @@ namespace {{packageName}}.Client
|
||||
X509CertificateCollection ClientCertificates { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the HTTPSigning configuration
|
||||
/// </summary>
|
||||
HTTPSigningConfiguration HTTPSigningConfiguration { get; }
|
||||
/// Gets the HTTPSigning configuration
|
||||
/// </summary>
|
||||
HTTPSigningConfiguration HTTPSigningConfiguration { get; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -370,21 +370,21 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
}
|
||||
{{/isOAuth}}
|
||||
{{#isHttpSignature}}
|
||||
if(this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "{{{httpMethod}}}", "{{{path}}}", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "{{{httpMethod}}}", "{{{path}}}", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
{{/isHttpSignature}}
|
||||
{{/authMethods}}
|
||||
|
||||
@@ -564,22 +564,22 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
{{/isOAuth}}
|
||||
{{#isHttpSignature}}
|
||||
if(this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "{{{httpMethod}}}", "{{{path}}}", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
{{#isHttpSignature}}
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "{{{httpMethod}}}", "{{{path}}}", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
{{/isHttpSignature}}
|
||||
{{/authMethods}}
|
||||
|
||||
|
||||
+30
-30
@@ -1084,21 +1084,21 @@ namespace Org.OpenAPITools.Api
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if(this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "GET", "/fake/http-signature-test", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "GET", "/fake/http-signature-test", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<Object>("/fake/http-signature-test", localVarRequestOptions, this.Configuration);
|
||||
@@ -1171,21 +1171,21 @@ namespace Org.OpenAPITools.Api
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if(this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "GET", "/fake/http-signature-test", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "GET", "/fake/http-signature-test", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
|
||||
+10
-10
@@ -91,9 +91,9 @@ namespace Org.OpenAPITools.Client
|
||||
private IList<IReadOnlyDictionary<string, object>> _servers;
|
||||
|
||||
/// <summary>
|
||||
/// HTTPSigning configuration
|
||||
/// </summary>
|
||||
private HTTPSigningConfiguration _HTTPSigningConfiguration = null;
|
||||
/// HTTPSigning configuration
|
||||
/// </summary>
|
||||
private HTTPSigningConfiguration _HTTPSigningConfiguration = null;
|
||||
#endregion Private Members
|
||||
|
||||
#region Constructors
|
||||
@@ -482,13 +482,13 @@ namespace Org.OpenAPITools.Client
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets and Sets the HTTPSigningConfiuration
|
||||
/// </summary>
|
||||
public HTTPSigningConfiguration HTTPSigningConfiguration
|
||||
{
|
||||
get { return _HTTPSigningConfiguration; }
|
||||
set { _HTTPSigningConfiguration = value; }
|
||||
}
|
||||
/// Gets and Sets the HTTPSigningConfiuration
|
||||
/// </summary>
|
||||
public HTTPSigningConfiguration HTTPSigningConfiguration
|
||||
{
|
||||
get { return _HTTPSigningConfiguration; }
|
||||
set { _HTTPSigningConfiguration = value; }
|
||||
}
|
||||
|
||||
#endregion Properties
|
||||
|
||||
|
||||
+601
-606
File diff suppressed because it is too large
Load Diff
+4
-4
@@ -106,8 +106,8 @@ namespace Org.OpenAPITools.Client
|
||||
X509CertificateCollection ClientCertificates { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the HTTPSigning configuration
|
||||
/// </summary>
|
||||
HTTPSigningConfiguration HTTPSigningConfiguration { get; }
|
||||
/// Gets the HTTPSigning configuration
|
||||
/// </summary>
|
||||
HTTPSigningConfiguration HTTPSigningConfiguration { get; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+120
-120
@@ -604,21 +604,21 @@ namespace Org.OpenAPITools.Api
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if(this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "POST", "/pet", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "POST", "/pet", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
@@ -685,21 +685,21 @@ namespace Org.OpenAPITools.Api
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if(this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "POST", "/pet", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "POST", "/pet", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
@@ -891,21 +891,21 @@ namespace Org.OpenAPITools.Api
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "status", status));
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if(this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "GET", "/pet/findByStatus", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "GET", "/pet/findByStatus", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
@@ -973,21 +973,21 @@ namespace Org.OpenAPITools.Api
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "status", status));
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if(this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "GET", "/pet/findByStatus", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "GET", "/pet/findByStatus", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
@@ -1052,21 +1052,21 @@ namespace Org.OpenAPITools.Api
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "tags", tags));
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if(this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "GET", "/pet/findByTags", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "GET", "/pet/findByTags", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
@@ -1134,21 +1134,21 @@ namespace Org.OpenAPITools.Api
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "tags", tags));
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if(this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "GET", "/pet/findByTags", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "GET", "/pet/findByTags", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
@@ -1331,21 +1331,21 @@ namespace Org.OpenAPITools.Api
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if(this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "PUT", "/pet", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "PUT", "/pet", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
@@ -1412,21 +1412,21 @@ namespace Org.OpenAPITools.Api
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
// authentication (http_signature_test) required
|
||||
if(this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "PUT", "/pet", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.Configuration.HTTPSigningConfiguration != null)
|
||||
{
|
||||
var HttpSigningHeaders = this.Configuration.HTTPSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "PUT", "/pet", localVarRequestOptions);
|
||||
foreach (var headerItem in HttpSigningHeaders)
|
||||
{
|
||||
if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters[headerItem.Key] = new List<string>() { headerItem.Value };
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
|
||||
+10
-10
@@ -96,9 +96,9 @@ namespace Org.OpenAPITools.Client
|
||||
private IList<IReadOnlyDictionary<string, object>> _servers;
|
||||
|
||||
/// <summary>
|
||||
/// HTTPSigning configuration
|
||||
/// </summary>
|
||||
private HTTPSigningConfiguration _HTTPSigningConfiguration = null;
|
||||
/// HTTPSigning configuration
|
||||
/// </summary>
|
||||
private HTTPSigningConfiguration _HTTPSigningConfiguration = null;
|
||||
#endregion Private Members
|
||||
|
||||
#region Constructors
|
||||
@@ -487,13 +487,13 @@ namespace Org.OpenAPITools.Client
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets and Sets the HTTPSigningConfiuration
|
||||
/// </summary>
|
||||
public HTTPSigningConfiguration HTTPSigningConfiguration
|
||||
{
|
||||
get { return _HTTPSigningConfiguration; }
|
||||
set { _HTTPSigningConfiguration = value; }
|
||||
}
|
||||
/// Gets and Sets the HTTPSigningConfiuration
|
||||
/// </summary>
|
||||
public HTTPSigningConfiguration HTTPSigningConfiguration
|
||||
{
|
||||
get { return _HTTPSigningConfiguration; }
|
||||
set { _HTTPSigningConfiguration = value; }
|
||||
}
|
||||
|
||||
#endregion Properties
|
||||
|
||||
|
||||
+601
-606
File diff suppressed because it is too large
Load Diff
+4
-4
@@ -106,8 +106,8 @@ namespace Org.OpenAPITools.Client
|
||||
X509CertificateCollection ClientCertificates { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the HTTPSigning configuration
|
||||
/// </summary>
|
||||
HTTPSigningConfiguration HTTPSigningConfiguration { get; }
|
||||
/// Gets the HTTPSigning configuration
|
||||
/// </summary>
|
||||
HTTPSigningConfiguration HTTPSigningConfiguration { get; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user