forked from loafle/openapi-generator-original
[C#][netcore] minor code improvement (#10951)
* minor code improvement * better code format
This commit is contained in:
parent
2e47f3e84c
commit
1953e70661
@ -259,7 +259,9 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
{{^vendorExtensions.x-csharp-value-type}}
|
||||
// verify the required parameter '{{paramName}}' is set
|
||||
if ({{paramName}} == null)
|
||||
{
|
||||
throw new {{packageName}}.Client.ApiException(400, "Missing required parameter '{{paramName}}' when calling {{classname}}->{{operationId}}");
|
||||
}
|
||||
|
||||
{{/vendorExtensions.x-csharp-value-type}}
|
||||
{{/required}}
|
||||
@ -280,10 +282,16 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
};
|
||||
|
||||
var localVarContentType = {{packageName}}.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = {{packageName}}.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
{{#pathParams}}
|
||||
{{#required}}
|
||||
@ -345,7 +353,8 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
{{#required}}
|
||||
{{#isFile}}
|
||||
{{#isArray}}
|
||||
foreach (var file in {{paramName}}) {
|
||||
foreach (var file in {{paramName}})
|
||||
{
|
||||
localVarRequestOptions.FileParameters.Add("{{baseName}}", file);
|
||||
}
|
||||
{{/isArray}}
|
||||
@ -362,7 +371,8 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
{
|
||||
{{#isFile}}
|
||||
{{#isArray}}
|
||||
foreach (var file in {{paramName}}) {
|
||||
foreach (var file in {{paramName}})
|
||||
{
|
||||
localVarRequestOptions.FileParameters.Add("{{baseName}}", file);
|
||||
}
|
||||
{{/isArray}}
|
||||
@ -445,11 +455,13 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.{{#lambda.titlecase}}{{#lambda.lowercase}}{{httpMethod}}{{/lambda.lowercase}}{{/lambda.titlecase}}<{{{returnType}}}{{^returnType}}Object{{/returnType}}>("{{{path}}}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("{{operationId}}", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -493,7 +505,9 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
{{^vendorExtensions.x-csharp-value-type}}
|
||||
// verify the required parameter '{{paramName}}' is set
|
||||
if ({{paramName}} == null)
|
||||
{
|
||||
throw new {{packageName}}.Client.ApiException(400, "Missing required parameter '{{paramName}}' when calling {{classname}}->{{operationId}}");
|
||||
}
|
||||
|
||||
{{/vendorExtensions.x-csharp-value-type}}
|
||||
{{/required}}
|
||||
@ -514,12 +528,17 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
{{/produces}}
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = {{packageName}}.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = {{packageName}}.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
{{#pathParams}}
|
||||
{{#required}}
|
||||
@ -558,7 +577,8 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
{{#required}}
|
||||
{{#isFile}}
|
||||
{{#isArray}}
|
||||
foreach (var file in {{paramName}}) {
|
||||
foreach (var file in {{paramName}})
|
||||
{
|
||||
localVarRequestOptions.FileParameters.Add("{{baseName}}", file);
|
||||
}
|
||||
{{/isArray}}
|
||||
@ -575,7 +595,8 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
{
|
||||
{{#isFile}}
|
||||
{{#isArray}}
|
||||
foreach (var file in {{paramName}}) {
|
||||
foreach (var file in {{paramName}})
|
||||
{
|
||||
localVarRequestOptions.FileParameters.Add("{{baseName}}", file);
|
||||
}
|
||||
{{/isArray}}
|
||||
@ -659,13 +680,15 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
{{/authMethods}}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.{{#lambda.titlecase}}{{#lambda.lowercase}}{{httpMethod}}{{/lambda.lowercase}}{{/lambda.titlecase}}Async<{{{returnType}}}{{^returnType}}Object{{/returnType}}>("{{{path}}}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("{{operationId}}", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
|
@ -284,7 +284,7 @@
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class {{classname}} {\n");
|
||||
{{#parent}}
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
@ -335,8 +335,9 @@
|
||||
{{/useCompareNetObjects}}
|
||||
{{^useCompareNetObjects}}
|
||||
if (input == null)
|
||||
{
|
||||
return false;
|
||||
|
||||
}
|
||||
return {{#vars}}{{#parent}}base.Equals(input) && {{/parent}}{{^isContainer}}
|
||||
(
|
||||
this.{{name}} == input.{{name}} ||
|
||||
@ -377,15 +378,19 @@
|
||||
{{#vars}}
|
||||
{{^vendorExtensions.x-is-value-type}}
|
||||
if (this.{{name}} != null)
|
||||
hashCode = hashCode * 59 + this.{{name}}.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.{{name}}.GetHashCode();
|
||||
}
|
||||
{{/vendorExtensions.x-is-value-type}}
|
||||
{{#vendorExtensions.x-is-value-type}}
|
||||
hashCode = hashCode * 59 + this.{{name}}.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.{{name}}.GetHashCode();
|
||||
{{/vendorExtensions.x-is-value-type}}
|
||||
{{/vars}}
|
||||
{{#isAdditionalPropertiesTrue}}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
{{/isAdditionalPropertiesTrue}}
|
||||
return hashCode;
|
||||
}
|
||||
@ -423,7 +428,10 @@
|
||||
{{#parent}}
|
||||
{{^isArray}}
|
||||
{{^isMap}}
|
||||
foreach(var x in BaseValidate(validationContext)) yield return x;
|
||||
foreach (var x in BaseValidate(validationContext))
|
||||
{
|
||||
yield return x;
|
||||
}
|
||||
{{/isMap}}
|
||||
{{/isArray}}
|
||||
{{/parent}}
|
||||
|
@ -321,14 +321,21 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
if (files != null)
|
||||
{
|
||||
foreach (var file in files) {
|
||||
foreach (var file in files)
|
||||
{
|
||||
localVarRequestOptions.FileParameters.Add("files", file);
|
||||
}
|
||||
}
|
||||
@ -336,11 +343,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<Object>("/multipart-array", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("MultipartArray", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -378,29 +387,37 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
if (files != null)
|
||||
{
|
||||
foreach (var file in files) {
|
||||
foreach (var file in files)
|
||||
{
|
||||
localVarRequestOptions.FileParameters.Add("files", file);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/multipart-array", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("MultipartArray", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -429,7 +446,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'file' is set
|
||||
if (file == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'file' when calling MultipartApi->MultipartMixed");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@ -442,10 +461,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
if (marker != null)
|
||||
{
|
||||
@ -456,11 +481,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<Object>("/multipart-mixed", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("MultipartMixed", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -491,7 +518,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'file' is set
|
||||
if (file == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'file' when calling MultipartApi->MultipartMixed");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@ -504,12 +533,17 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
if (marker != null)
|
||||
{
|
||||
@ -519,13 +553,15 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/multipart-mixed", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("MultipartMixed", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -561,10 +597,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
if (file != null)
|
||||
{
|
||||
@ -574,11 +616,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<Object>("/multipart-single", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("MultipartSingle", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -616,12 +660,17 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
if (file != null)
|
||||
{
|
||||
@ -630,13 +679,15 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/multipart-single", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("MultipartSingle", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
|
@ -54,7 +54,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class InlineObject {\n");
|
||||
sb.Append(" Files: ").Append(Files).Append("\n");
|
||||
sb.Append("}\n");
|
||||
@ -100,7 +100,9 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Files != null)
|
||||
hashCode = hashCode * 59 + this.Files.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Files.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class InlineObject1 {\n");
|
||||
sb.Append(" File: ").Append(File).Append("\n");
|
||||
sb.Append("}\n");
|
||||
@ -100,7 +100,9 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.File != null)
|
||||
hashCode = hashCode * 59 + this.File.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.File.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class InlineObject2 {\n");
|
||||
sb.Append(" Marker: ").Append(Marker).Append("\n");
|
||||
sb.Append(" File: ").Append(File).Append("\n");
|
||||
@ -118,9 +118,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Marker != null)
|
||||
hashCode = hashCode * 59 + this.Marker.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Marker.GetHashCode();
|
||||
}
|
||||
if (this.File != null)
|
||||
hashCode = hashCode * 59 + this.File.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.File.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class MultipartMixedMarker {\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append("}\n");
|
||||
@ -99,7 +99,9 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -221,7 +221,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@ -235,21 +237,29 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = modelClient;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Patch<ModelClient>("/another-fake/dummy", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("Call123TestSpecialTags", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -279,7 +289,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@ -293,24 +305,31 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = modelClient;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PatchAsync<ModelClient>("/another-fake/dummy", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("Call123TestSpecialTags", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
|
@ -221,20 +221,28 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<InlineResponseDefault>("/foo", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("FooGet", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -271,23 +279,30 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<InlineResponseDefault>("/foo", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("FooGet", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -221,7 +221,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@ -235,10 +237,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = modelClient;
|
||||
|
||||
@ -250,11 +258,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Patch<ModelClient>("/fake_classname_test", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("TestClassname", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -284,7 +294,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@ -298,12 +310,17 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = modelClient;
|
||||
|
||||
@ -314,13 +331,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PatchAsync<ModelClient>("/fake_classname_test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("TestClassname", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
|
@ -586,7 +586,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@ -600,10 +602,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
@ -632,11 +640,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<Object>("/pet", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("AddPet", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -665,7 +675,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@ -679,12 +691,17 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
@ -712,13 +729,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/pet", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("AddPet", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -755,10 +774,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
if (apiKey != null)
|
||||
@ -775,11 +800,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Delete<Object>("/pet/{petId}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("DeletePet", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -818,12 +845,17 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
if (apiKey != null)
|
||||
@ -839,13 +871,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.DeleteAsync<Object>("/pet/{petId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("DeletePet", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -873,7 +907,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'status' is set
|
||||
if (status == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'status' when calling PetApi->FindPetsByStatus");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@ -887,10 +923,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "status", status));
|
||||
|
||||
@ -919,11 +961,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<List<Pet>>("/pet/findByStatus", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("FindPetsByStatus", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -953,7 +997,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'status' is set
|
||||
if (status == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'status' when calling PetApi->FindPetsByStatus");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@ -967,12 +1013,17 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "status", status));
|
||||
|
||||
@ -1000,13 +1051,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<List<Pet>>("/pet/findByStatus", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("FindPetsByStatus", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1036,7 +1089,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'tags' is set
|
||||
if (tags == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'tags' when calling PetApi->FindPetsByTags");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@ -1050,10 +1105,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "tags", tags));
|
||||
|
||||
@ -1082,11 +1143,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<List<Pet>>("/pet/findByTags", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("FindPetsByTags", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1118,7 +1181,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'tags' is set
|
||||
if (tags == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'tags' when calling PetApi->FindPetsByTags");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@ -1132,12 +1197,17 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "tags", tags));
|
||||
|
||||
@ -1165,13 +1235,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<List<Pet>>("/pet/findByTags", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("FindPetsByTags", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1209,10 +1281,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
|
||||
@ -1224,11 +1302,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<Pet>("/pet/{petId}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("GetPetById", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1268,12 +1348,17 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
|
||||
@ -1284,13 +1369,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<Pet>("/pet/{petId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("GetPetById", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1317,7 +1404,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@ -1331,10 +1420,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
@ -1363,11 +1458,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Put<Object>("/pet", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UpdatePet", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1396,7 +1493,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@ -1410,12 +1509,17 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
@ -1443,13 +1547,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PutAsync<Object>("/pet", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UpdatePet", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1489,10 +1595,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
if (name != null)
|
||||
@ -1513,11 +1625,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<Object>("/pet/{petId}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UpdatePetWithForm", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1559,12 +1673,17 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
if (name != null)
|
||||
@ -1584,13 +1703,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/pet/{petId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UpdatePetWithForm", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1632,10 +1753,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
if (additionalMetadata != null)
|
||||
@ -1656,11 +1783,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<ApiResponse>("/pet/{petId}/uploadImage", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UploadFile", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1704,12 +1833,17 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
if (additionalMetadata != null)
|
||||
@ -1729,13 +1863,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<ApiResponse>("/pet/{petId}/uploadImage", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UploadFile", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1767,7 +1903,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'requiredFile' is set
|
||||
if (requiredFile == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredFile' when calling PetApi->UploadFileWithRequiredFile");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@ -1781,10 +1919,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
if (additionalMetadata != null)
|
||||
@ -1802,11 +1946,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<ApiResponse>("/fake/{petId}/uploadImageWithRequiredFile", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UploadFileWithRequiredFile", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1840,7 +1986,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'requiredFile' is set
|
||||
if (requiredFile == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredFile' when calling PetApi->UploadFileWithRequiredFile");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@ -1854,12 +2002,17 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
if (additionalMetadata != null)
|
||||
@ -1876,13 +2029,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<ApiResponse>("/fake/{petId}/uploadImageWithRequiredFile", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UploadFileWithRequiredFile", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
|
@ -345,7 +345,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'orderId' is set
|
||||
if (orderId == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@ -357,21 +359,29 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Delete<Object>("/store/order/{order_id}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("DeleteOrder", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -400,7 +410,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'orderId' is set
|
||||
if (orderId == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@ -412,24 +424,31 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.DeleteAsync<Object>("/store/order/{order_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("DeleteOrder", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -464,10 +483,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
@ -478,11 +503,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<Dictionary<string, int>>("/store/inventory", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("GetInventory", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -519,12 +546,17 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
@ -534,13 +566,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<Dictionary<string, int>>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("GetInventory", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -578,21 +612,29 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<Order>("/store/order/{order_id}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("GetOrderById", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -632,24 +674,31 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<Order>("/store/order/{order_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("GetOrderById", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -677,7 +726,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@ -692,21 +743,29 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = order;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<Order>("/store/order", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("PlaceOrder", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -736,7 +795,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@ -751,24 +812,31 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = order;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Order>("/store/order", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("PlaceOrder", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
|
@ -517,7 +517,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@ -530,21 +532,29 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<Object>("/user", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("CreateUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -573,7 +583,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@ -586,24 +598,31 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/user", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("CreateUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -630,7 +649,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@ -643,21 +664,29 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<Object>("/user/createWithArray", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("CreateUsersWithArrayInput", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -686,7 +715,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@ -699,24 +730,31 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/user/createWithArray", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("CreateUsersWithArrayInput", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -743,7 +781,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@ -756,21 +796,29 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<Object>("/user/createWithList", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("CreateUsersWithListInput", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -799,7 +847,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@ -812,24 +862,31 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/user/createWithList", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("CreateUsersWithListInput", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -856,7 +913,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->DeleteUser");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@ -868,21 +927,29 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Delete<Object>("/user/{username}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("DeleteUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -911,7 +978,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->DeleteUser");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@ -923,24 +992,31 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.DeleteAsync<Object>("/user/{username}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("DeleteUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -968,7 +1044,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->GetUserByName");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@ -982,21 +1060,29 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<User>("/user/{username}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("GetUserByName", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1026,7 +1112,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->GetUserByName");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@ -1040,24 +1128,31 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<User>("/user/{username}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("GetUserByName", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1087,11 +1182,15 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->LoginUser");
|
||||
}
|
||||
|
||||
// verify the required parameter 'password' is set
|
||||
if (password == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'password' when calling UserApi->LoginUser");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@ -1105,10 +1204,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "username", username));
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "password", password));
|
||||
@ -1116,11 +1221,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<string>("/user/login", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("LoginUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1152,11 +1259,15 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->LoginUser");
|
||||
}
|
||||
|
||||
// verify the required parameter 'password' is set
|
||||
if (password == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'password' when calling UserApi->LoginUser");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@ -1170,25 +1281,32 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "username", username));
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "password", password));
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<string>("/user/login", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("LoginUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1221,20 +1339,28 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<Object>("/user/logout", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("LogoutUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1269,23 +1395,30 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<Object>("/user/logout", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("LogoutUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1314,11 +1447,15 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
|
||||
}
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@ -1331,10 +1468,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
localVarRequestOptions.Data = user;
|
||||
@ -1342,11 +1485,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Put<Object>("/user/{username}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UpdateUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@ -1377,11 +1522,15 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
|
||||
}
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@ -1394,25 +1543,32 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PutAsync<Object>("/user/{username}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UpdateUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
|
@ -261,7 +261,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class AdditionalPropertiesClass {\n");
|
||||
sb.Append(" MapProperty: ").Append(MapProperty).Append("\n");
|
||||
sb.Append(" MapOfMapProperty: ").Append(MapOfMapProperty).Append("\n");
|
||||
@ -315,23 +315,41 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.MapProperty != null)
|
||||
hashCode = hashCode * 59 + this.MapProperty.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapProperty.GetHashCode();
|
||||
}
|
||||
if (this.MapOfMapProperty != null)
|
||||
hashCode = hashCode * 59 + this.MapOfMapProperty.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapOfMapProperty.GetHashCode();
|
||||
}
|
||||
if (this.Anytype1 != null)
|
||||
hashCode = hashCode * 59 + this.Anytype1.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Anytype1.GetHashCode();
|
||||
}
|
||||
if (this.MapWithUndeclaredPropertiesAnytype1 != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesAnytype1.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapWithUndeclaredPropertiesAnytype1.GetHashCode();
|
||||
}
|
||||
if (this.MapWithUndeclaredPropertiesAnytype2 != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesAnytype2.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapWithUndeclaredPropertiesAnytype2.GetHashCode();
|
||||
}
|
||||
if (this.MapWithUndeclaredPropertiesAnytype3 != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesAnytype3.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapWithUndeclaredPropertiesAnytype3.GetHashCode();
|
||||
}
|
||||
if (this.EmptyMap != null)
|
||||
hashCode = hashCode * 59 + this.EmptyMap.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.EmptyMap.GetHashCode();
|
||||
}
|
||||
if (this.MapWithUndeclaredPropertiesString != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesString.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapWithUndeclaredPropertiesString.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Animal {\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" Color: ").Append(Color).Append("\n");
|
||||
@ -167,11 +167,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ClassName.GetHashCode();
|
||||
}
|
||||
if (this.Color != null)
|
||||
hashCode = hashCode * 59 + this.Color.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Color.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ApiResponse {\n");
|
||||
sb.Append(" Code: ").Append(Code).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
@ -178,13 +178,19 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Code.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Code.GetHashCode();
|
||||
if (this.Type != null)
|
||||
hashCode = hashCode * 59 + this.Type.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Type.GetHashCode();
|
||||
}
|
||||
if (this.Message != null)
|
||||
hashCode = hashCode * 59 + this.Message.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Message.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Apple {\n");
|
||||
sb.Append(" Cultivar: ").Append(Cultivar).Append("\n");
|
||||
sb.Append(" Origin: ").Append(Origin).Append("\n");
|
||||
@ -152,11 +152,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Cultivar != null)
|
||||
hashCode = hashCode * 59 + this.Cultivar.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Cultivar.GetHashCode();
|
||||
}
|
||||
if (this.Origin != null)
|
||||
hashCode = hashCode * 59 + this.Origin.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Origin.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class AppleReq {\n");
|
||||
sb.Append(" Cultivar: ").Append(Cultivar).Append("\n");
|
||||
sb.Append(" Mealy: ").Append(Mealy).Append("\n");
|
||||
@ -153,8 +153,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Cultivar != null)
|
||||
hashCode = hashCode * 59 + this.Cultivar.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Mealy.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Cultivar.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.Mealy.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ArrayOfArrayOfNumberOnly {\n");
|
||||
sb.Append(" ArrayArrayNumber: ").Append(ArrayArrayNumber).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -125,9 +125,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ArrayArrayNumber != null)
|
||||
hashCode = hashCode * 59 + this.ArrayArrayNumber.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayArrayNumber.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ArrayOfNumberOnly {\n");
|
||||
sb.Append(" ArrayNumber: ").Append(ArrayNumber).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -125,9 +125,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ArrayNumber != null)
|
||||
hashCode = hashCode * 59 + this.ArrayNumber.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayNumber.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ArrayTest {\n");
|
||||
sb.Append(" ArrayOfString: ").Append(ArrayOfString).Append("\n");
|
||||
sb.Append(" ArrayArrayOfInteger: ").Append(ArrayArrayOfInteger).Append("\n");
|
||||
@ -179,13 +179,21 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ArrayOfString != null)
|
||||
hashCode = hashCode * 59 + this.ArrayOfString.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayOfString.GetHashCode();
|
||||
}
|
||||
if (this.ArrayArrayOfInteger != null)
|
||||
hashCode = hashCode * 59 + this.ArrayArrayOfInteger.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayArrayOfInteger.GetHashCode();
|
||||
}
|
||||
if (this.ArrayArrayOfModel != null)
|
||||
hashCode = hashCode * 59 + this.ArrayArrayOfModel.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayArrayOfModel.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Banana {\n");
|
||||
sb.Append(" LengthCm: ").Append(LengthCm).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -124,9 +124,11 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.LengthCm.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.LengthCm.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class BananaReq {\n");
|
||||
sb.Append(" LengthCm: ").Append(LengthCm).Append("\n");
|
||||
sb.Append(" Sweet: ").Append(Sweet).Append("\n");
|
||||
@ -148,8 +148,8 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.LengthCm.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Sweet.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.LengthCm.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Sweet.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class BasquePig {\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -137,9 +137,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ClassName.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -209,7 +209,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Capitalization {\n");
|
||||
sb.Append(" SmallCamel: ").Append(SmallCamel).Append("\n");
|
||||
sb.Append(" CapitalCamel: ").Append(CapitalCamel).Append("\n");
|
||||
@ -261,19 +261,33 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.SmallCamel != null)
|
||||
hashCode = hashCode * 59 + this.SmallCamel.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SmallCamel.GetHashCode();
|
||||
}
|
||||
if (this.CapitalCamel != null)
|
||||
hashCode = hashCode * 59 + this.CapitalCamel.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.CapitalCamel.GetHashCode();
|
||||
}
|
||||
if (this.SmallSnake != null)
|
||||
hashCode = hashCode * 59 + this.SmallSnake.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SmallSnake.GetHashCode();
|
||||
}
|
||||
if (this.CapitalSnake != null)
|
||||
hashCode = hashCode * 59 + this.CapitalSnake.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.CapitalSnake.GetHashCode();
|
||||
}
|
||||
if (this.SCAETHFlowPoints != null)
|
||||
hashCode = hashCode * 59 + this.SCAETHFlowPoints.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SCAETHFlowPoints.GetHashCode();
|
||||
}
|
||||
if (this.ATT_NAME != null)
|
||||
hashCode = hashCode * 59 + this.ATT_NAME.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ATT_NAME.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Cat {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Declawed: ").Append(Declawed).Append("\n");
|
||||
@ -137,9 +137,11 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Declawed.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Declawed.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
@ -161,7 +163,10 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
foreach(var x in BaseValidate(validationContext)) yield return x;
|
||||
foreach (var x in BaseValidate(validationContext))
|
||||
{
|
||||
yield return x;
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class CatAllOf {\n");
|
||||
sb.Append(" Declawed: ").Append(Declawed).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -124,9 +124,11 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Declawed.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Declawed.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Category {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
@ -163,11 +163,15 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Id.GetHashCode();
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ChildCat {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
@ -179,10 +179,14 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.PetType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.PetType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
@ -204,7 +208,10 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
foreach(var x in BaseValidate(validationContext)) yield return x;
|
||||
foreach (var x in BaseValidate(validationContext))
|
||||
{
|
||||
yield return x;
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ChildCatAllOf {\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" PetType: ").Append(PetType).Append("\n");
|
||||
@ -167,10 +167,14 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.PetType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.PetType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ClassModel {\n");
|
||||
sb.Append(" Class: ").Append(Class).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -125,9 +125,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Class != null)
|
||||
hashCode = hashCode * 59 + this.Class.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Class.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ComplexQuadrilateral {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" QuadrilateralType: ").Append(QuadrilateralType).Append("\n");
|
||||
@ -168,11 +168,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeType.GetHashCode();
|
||||
}
|
||||
if (this.QuadrilateralType != null)
|
||||
hashCode = hashCode * 59 + this.QuadrilateralType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.QuadrilateralType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class DanishPig {\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -137,9 +137,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ClassName.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class DeprecatedObject {\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -125,9 +125,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Dog {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Breed: ").Append(Breed).Append("\n");
|
||||
@ -138,9 +138,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.Breed != null)
|
||||
hashCode = hashCode * 59 + this.Breed.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Breed.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
@ -162,7 +166,10 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
foreach(var x in BaseValidate(validationContext)) yield return x;
|
||||
foreach (var x in BaseValidate(validationContext))
|
||||
{
|
||||
yield return x;
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class DogAllOf {\n");
|
||||
sb.Append(" Breed: ").Append(Breed).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -125,9 +125,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Breed != null)
|
||||
hashCode = hashCode * 59 + this.Breed.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Breed.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -149,7 +149,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Drawing {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" MainShape: ").Append(MainShape).Append("\n");
|
||||
@ -199,13 +199,21 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.MainShape != null)
|
||||
hashCode = hashCode * 59 + this.MainShape.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MainShape.GetHashCode();
|
||||
}
|
||||
if (this.ShapeOrNull != null)
|
||||
hashCode = hashCode * 59 + this.ShapeOrNull.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeOrNull.GetHashCode();
|
||||
}
|
||||
if (this.NullableShape != null)
|
||||
hashCode = hashCode * 59 + this.NullableShape.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.NullableShape.GetHashCode();
|
||||
}
|
||||
if (this.Shapes != null)
|
||||
hashCode = hashCode * 59 + this.Shapes.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Shapes.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -149,7 +149,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class EnumArrays {\n");
|
||||
sb.Append(" JustSymbol: ").Append(JustSymbol).Append("\n");
|
||||
sb.Append(" ArrayEnum: ").Append(ArrayEnum).Append("\n");
|
||||
@ -196,10 +196,12 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.JustSymbol.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.ArrayEnum.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.JustSymbol.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -418,7 +418,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class EnumTest {\n");
|
||||
sb.Append(" EnumString: ").Append(EnumString).Append("\n");
|
||||
sb.Append(" EnumStringRequired: ").Append(EnumStringRequired).Append("\n");
|
||||
@ -472,17 +472,19 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.EnumString.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.EnumStringRequired.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.EnumInteger.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.EnumIntegerOnly.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.EnumNumber.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.OuterEnum.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.OuterEnumInteger.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.OuterEnumDefaultValue.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.OuterEnumIntegerDefaultValue.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.EnumString.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.EnumStringRequired.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.EnumInteger.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.EnumIntegerOnly.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.EnumNumber.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.OuterEnum.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.OuterEnumInteger.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.OuterEnumDefaultValue.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.OuterEnumIntegerDefaultValue.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class EquilateralTriangle {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" TriangleType: ").Append(TriangleType).Append("\n");
|
||||
@ -168,11 +168,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeType.GetHashCode();
|
||||
}
|
||||
if (this.TriangleType != null)
|
||||
hashCode = hashCode * 59 + this.TriangleType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.TriangleType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class File {\n");
|
||||
sb.Append(" SourceURI: ").Append(SourceURI).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -126,9 +126,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.SourceURI != null)
|
||||
hashCode = hashCode * 59 + this.SourceURI.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SourceURI.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class FileSchemaTestClass {\n");
|
||||
sb.Append(" File: ").Append(File).Append("\n");
|
||||
sb.Append(" Files: ").Append(Files).Append("\n");
|
||||
@ -152,11 +152,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.File != null)
|
||||
hashCode = hashCode * 59 + this.File.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.File.GetHashCode();
|
||||
}
|
||||
if (this.Files != null)
|
||||
hashCode = hashCode * 59 + this.Files.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Files.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Foo {\n");
|
||||
sb.Append(" Bar: ").Append(Bar).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -124,9 +124,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Bar != null)
|
||||
hashCode = hashCode * 59 + this.Bar.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Bar.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -487,7 +487,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class FormatTest {\n");
|
||||
sb.Append(" Integer: ").Append(Integer).Append("\n");
|
||||
sb.Append(" Int32: ").Append(Int32).Append("\n");
|
||||
@ -548,33 +548,53 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Integer.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Int32.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Int64.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Number.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Float.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Double.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Decimal.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Integer.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int32.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int64.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Number.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Float.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Double.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Decimal.GetHashCode();
|
||||
if (this.String != null)
|
||||
hashCode = hashCode * 59 + this.String.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.String.GetHashCode();
|
||||
}
|
||||
if (this.Byte != null)
|
||||
hashCode = hashCode * 59 + this.Byte.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Byte.GetHashCode();
|
||||
}
|
||||
if (this.Binary != null)
|
||||
hashCode = hashCode * 59 + this.Binary.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Binary.GetHashCode();
|
||||
}
|
||||
if (this.Date != null)
|
||||
hashCode = hashCode * 59 + this.Date.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Date.GetHashCode();
|
||||
}
|
||||
if (this.DateTime != null)
|
||||
hashCode = hashCode * 59 + this.DateTime.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.DateTime.GetHashCode();
|
||||
}
|
||||
if (this.Uuid != null)
|
||||
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Uuid.GetHashCode();
|
||||
}
|
||||
if (this.Password != null)
|
||||
hashCode = hashCode * 59 + this.Password.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Password.GetHashCode();
|
||||
}
|
||||
if (this.PatternWithDigits != null)
|
||||
hashCode = hashCode * 59 + this.PatternWithDigits.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.PatternWithDigits.GetHashCode();
|
||||
}
|
||||
if (this.PatternWithDigitsAndDelimiter != null)
|
||||
hashCode = hashCode * 59 + this.PatternWithDigitsAndDelimiter.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.PatternWithDigitsAndDelimiter.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class GrandparentAnimal {\n");
|
||||
sb.Append(" PetType: ").Append(PetType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -141,9 +141,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.PetType != null)
|
||||
hashCode = hashCode * 59 + this.PetType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.PetType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class HasOnlyReadOnly {\n");
|
||||
sb.Append(" Bar: ").Append(Bar).Append("\n");
|
||||
sb.Append(" Foo: ").Append(Foo).Append("\n");
|
||||
@ -129,11 +129,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Bar != null)
|
||||
hashCode = hashCode * 59 + this.Bar.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Bar.GetHashCode();
|
||||
}
|
||||
if (this.Foo != null)
|
||||
hashCode = hashCode * 59 + this.Foo.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Foo.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class HealthCheckResult {\n");
|
||||
sb.Append(" NullableMessage: ").Append(NullableMessage).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -125,9 +125,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.NullableMessage != null)
|
||||
hashCode = hashCode * 59 + this.NullableMessage.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.NullableMessage.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class InlineResponseDefault {\n");
|
||||
sb.Append(" String: ").Append(String).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -125,9 +125,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.String != null)
|
||||
hashCode = hashCode * 59 + this.String.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.String.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class IsoscelesTriangle {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" TriangleType: ").Append(TriangleType).Append("\n");
|
||||
@ -157,9 +157,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeType.GetHashCode();
|
||||
}
|
||||
if (this.TriangleType != null)
|
||||
hashCode = hashCode * 59 + this.TriangleType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.TriangleType.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class List {\n");
|
||||
sb.Append(" _123List: ").Append(_123List).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -125,9 +125,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this._123List != null)
|
||||
hashCode = hashCode * 59 + this._123List.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this._123List.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -179,7 +179,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class MapTest {\n");
|
||||
sb.Append(" MapMapOfString: ").Append(MapMapOfString).Append("\n");
|
||||
sb.Append(" MapOfEnumString: ").Append(MapOfEnumString).Append("\n");
|
||||
@ -229,14 +229,22 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.MapMapOfString != null)
|
||||
hashCode = hashCode * 59 + this.MapMapOfString.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.MapOfEnumString.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapMapOfString.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
|
||||
if (this.DirectMap != null)
|
||||
hashCode = hashCode * 59 + this.DirectMap.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.DirectMap.GetHashCode();
|
||||
}
|
||||
if (this.IndirectMap != null)
|
||||
hashCode = hashCode * 59 + this.IndirectMap.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.IndirectMap.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class MixedPropertiesAndAdditionalPropertiesClass {\n");
|
||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||
@ -179,13 +179,21 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Uuid != null)
|
||||
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Uuid.GetHashCode();
|
||||
}
|
||||
if (this.DateTime != null)
|
||||
hashCode = hashCode * 59 + this.DateTime.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.DateTime.GetHashCode();
|
||||
}
|
||||
if (this.Map != null)
|
||||
hashCode = hashCode * 59 + this.Map.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Map.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Model200Response {\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" Class: ").Append(Class).Append("\n");
|
||||
@ -151,11 +151,15 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
if (this.Class != null)
|
||||
hashCode = hashCode * 59 + this.Class.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Class.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ModelClient {\n");
|
||||
sb.Append(" _Client: ").Append(_Client).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -125,9 +125,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this._Client != null)
|
||||
hashCode = hashCode * 59 + this._Client.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this._Client.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Name {\n");
|
||||
sb.Append(" _Name: ").Append(_Name).Append("\n");
|
||||
sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n");
|
||||
@ -189,13 +189,17 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this._Name.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.SnakeCase.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this._Name.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode();
|
||||
if (this.Property != null)
|
||||
hashCode = hashCode * 59 + this.Property.GetHashCode();
|
||||
hashCode = hashCode * 59 + this._123Number.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Property.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this._123Number.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -358,7 +358,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class NullableClass {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" IntegerProp: ").Append(IntegerProp).Append("\n");
|
||||
@ -416,29 +416,53 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.IntegerProp != null)
|
||||
hashCode = hashCode * 59 + this.IntegerProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.IntegerProp.GetHashCode();
|
||||
}
|
||||
if (this.NumberProp != null)
|
||||
hashCode = hashCode * 59 + this.NumberProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.NumberProp.GetHashCode();
|
||||
}
|
||||
if (this.BooleanProp != null)
|
||||
hashCode = hashCode * 59 + this.BooleanProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.BooleanProp.GetHashCode();
|
||||
}
|
||||
if (this.StringProp != null)
|
||||
hashCode = hashCode * 59 + this.StringProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.StringProp.GetHashCode();
|
||||
}
|
||||
if (this.DateProp != null)
|
||||
hashCode = hashCode * 59 + this.DateProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.DateProp.GetHashCode();
|
||||
}
|
||||
if (this.DatetimeProp != null)
|
||||
hashCode = hashCode * 59 + this.DatetimeProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.DatetimeProp.GetHashCode();
|
||||
}
|
||||
if (this.ArrayNullableProp != null)
|
||||
hashCode = hashCode * 59 + this.ArrayNullableProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayNullableProp.GetHashCode();
|
||||
}
|
||||
if (this.ArrayAndItemsNullableProp != null)
|
||||
hashCode = hashCode * 59 + this.ArrayAndItemsNullableProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayAndItemsNullableProp.GetHashCode();
|
||||
}
|
||||
if (this.ArrayItemsNullable != null)
|
||||
hashCode = hashCode * 59 + this.ArrayItemsNullable.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayItemsNullable.GetHashCode();
|
||||
}
|
||||
if (this.ObjectNullableProp != null)
|
||||
hashCode = hashCode * 59 + this.ObjectNullableProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ObjectNullableProp.GetHashCode();
|
||||
}
|
||||
if (this.ObjectAndItemsNullableProp != null)
|
||||
hashCode = hashCode * 59 + this.ObjectAndItemsNullableProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ObjectAndItemsNullableProp.GetHashCode();
|
||||
}
|
||||
if (this.ObjectItemsNullable != null)
|
||||
hashCode = hashCode * 59 + this.ObjectItemsNullable.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ObjectItemsNullable.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class NumberOnly {\n");
|
||||
sb.Append(" JustNumber: ").Append(JustNumber).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -124,9 +124,11 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.JustNumber.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.JustNumber.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -159,7 +159,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ObjectWithDeprecatedFields {\n");
|
||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
@ -209,14 +209,22 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Uuid != null)
|
||||
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Uuid.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.Id.GetHashCode();
|
||||
if (this.DeprecatedRef != null)
|
||||
hashCode = hashCode * 59 + this.DeprecatedRef.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.DeprecatedRef.GetHashCode();
|
||||
}
|
||||
if (this.Bars != null)
|
||||
hashCode = hashCode * 59 + this.Bars.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Bars.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -237,7 +237,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Order {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" PetId: ").Append(PetId).Append("\n");
|
||||
@ -288,15 +288,19 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.PetId.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Quantity.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Id.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.PetId.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Quantity.GetHashCode();
|
||||
if (this.ShipDate != null)
|
||||
hashCode = hashCode * 59 + this.ShipDate.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Status.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Complete.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShipDate.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.Status.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Complete.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class OuterComposite {\n");
|
||||
sb.Append(" MyNumber: ").Append(MyNumber).Append("\n");
|
||||
sb.Append(" MyString: ").Append(MyString).Append("\n");
|
||||
@ -178,12 +178,16 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.MyNumber.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.MyNumber.GetHashCode();
|
||||
if (this.MyString != null)
|
||||
hashCode = hashCode * 59 + this.MyString.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.MyBoolean.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MyString.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ParentPet {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -111,7 +111,9 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
@ -133,7 +135,10 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
foreach(var x in BaseValidate(validationContext)) yield return x;
|
||||
foreach (var x in BaseValidate(validationContext))
|
||||
{
|
||||
yield return x;
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
@ -254,7 +254,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Pet {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Category: ").Append(Category).Append("\n");
|
||||
@ -305,18 +305,28 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Id.GetHashCode();
|
||||
if (this.Category != null)
|
||||
hashCode = hashCode * 59 + this.Category.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Category.GetHashCode();
|
||||
}
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
if (this.PhotoUrls != null)
|
||||
hashCode = hashCode * 59 + this.PhotoUrls.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.PhotoUrls.GetHashCode();
|
||||
}
|
||||
if (this.Tags != null)
|
||||
hashCode = hashCode * 59 + this.Tags.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Status.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Tags.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.Status.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class QuadrilateralInterface {\n");
|
||||
sb.Append(" QuadrilateralType: ").Append(QuadrilateralType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -137,9 +137,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.QuadrilateralType != null)
|
||||
hashCode = hashCode * 59 + this.QuadrilateralType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.QuadrilateralType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ReadOnlyFirst {\n");
|
||||
sb.Append(" Bar: ").Append(Bar).Append("\n");
|
||||
sb.Append(" Baz: ").Append(Baz).Append("\n");
|
||||
@ -140,11 +140,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Bar != null)
|
||||
hashCode = hashCode * 59 + this.Bar.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Bar.GetHashCode();
|
||||
}
|
||||
if (this.Baz != null)
|
||||
hashCode = hashCode * 59 + this.Baz.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Baz.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Return {\n");
|
||||
sb.Append(" _Return: ").Append(_Return).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -124,9 +124,11 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this._Return.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this._Return.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ScaleneTriangle {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" TriangleType: ").Append(TriangleType).Append("\n");
|
||||
@ -168,11 +168,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeType.GetHashCode();
|
||||
}
|
||||
if (this.TriangleType != null)
|
||||
hashCode = hashCode * 59 + this.TriangleType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.TriangleType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ShapeInterface {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -137,9 +137,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class SimpleQuadrilateral {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" QuadrilateralType: ").Append(QuadrilateralType).Append("\n");
|
||||
@ -168,11 +168,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeType.GetHashCode();
|
||||
}
|
||||
if (this.QuadrilateralType != null)
|
||||
hashCode = hashCode * 59 + this.QuadrilateralType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.QuadrilateralType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class SpecialModelName {\n");
|
||||
sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n");
|
||||
sb.Append(" _SpecialModelName: ").Append(_SpecialModelName).Append("\n");
|
||||
@ -151,11 +151,15 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.SpecialPropertyName.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode();
|
||||
if (this._SpecialModelName != null)
|
||||
hashCode = hashCode * 59 + this._SpecialModelName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this._SpecialModelName.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Tag {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
@ -151,11 +151,15 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Id.GetHashCode();
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class TriangleInterface {\n");
|
||||
sb.Append(" TriangleType: ").Append(TriangleType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -137,9 +137,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.TriangleType != null)
|
||||
hashCode = hashCode * 59 + this.TriangleType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.TriangleType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -369,7 +369,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class User {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Username: ").Append(Username).Append("\n");
|
||||
@ -426,30 +426,52 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Id.GetHashCode();
|
||||
if (this.Username != null)
|
||||
hashCode = hashCode * 59 + this.Username.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Username.GetHashCode();
|
||||
}
|
||||
if (this.FirstName != null)
|
||||
hashCode = hashCode * 59 + this.FirstName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.FirstName.GetHashCode();
|
||||
}
|
||||
if (this.LastName != null)
|
||||
hashCode = hashCode * 59 + this.LastName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.LastName.GetHashCode();
|
||||
}
|
||||
if (this.Email != null)
|
||||
hashCode = hashCode * 59 + this.Email.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Email.GetHashCode();
|
||||
}
|
||||
if (this.Password != null)
|
||||
hashCode = hashCode * 59 + this.Password.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Password.GetHashCode();
|
||||
}
|
||||
if (this.Phone != null)
|
||||
hashCode = hashCode * 59 + this.Phone.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.UserStatus.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Phone.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.UserStatus.GetHashCode();
|
||||
if (this.ObjectWithNoDeclaredProps != null)
|
||||
hashCode = hashCode * 59 + this.ObjectWithNoDeclaredProps.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredProps.GetHashCode();
|
||||
}
|
||||
if (this.ObjectWithNoDeclaredPropsNullable != null)
|
||||
hashCode = hashCode * 59 + this.ObjectWithNoDeclaredPropsNullable.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredPropsNullable.GetHashCode();
|
||||
}
|
||||
if (this.AnyTypeProp != null)
|
||||
hashCode = hashCode * 59 + this.AnyTypeProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AnyTypeProp.GetHashCode();
|
||||
}
|
||||
if (this.AnyTypePropNullable != null)
|
||||
hashCode = hashCode * 59 + this.AnyTypePropNullable.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AnyTypePropNullable.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Whale {\n");
|
||||
sb.Append(" HasBaleen: ").Append(HasBaleen).Append("\n");
|
||||
sb.Append(" HasTeeth: ").Append(HasTeeth).Append("\n");
|
||||
@ -190,12 +190,16 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.HasBaleen.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.HasTeeth.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode();
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ClassName.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -144,7 +144,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Zebra {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
@ -192,11 +192,15 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Type.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Type.GetHashCode();
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ClassName.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class AdditionalPropertiesClass {\n");
|
||||
sb.Append(" MapProperty: ").Append(MapProperty).Append("\n");
|
||||
sb.Append(" MapOfMapProperty: ").Append(MapOfMapProperty).Append("\n");
|
||||
@ -172,23 +172,41 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.MapProperty != null)
|
||||
hashCode = hashCode * 59 + this.MapProperty.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapProperty.GetHashCode();
|
||||
}
|
||||
if (this.MapOfMapProperty != null)
|
||||
hashCode = hashCode * 59 + this.MapOfMapProperty.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapOfMapProperty.GetHashCode();
|
||||
}
|
||||
if (this.Anytype1 != null)
|
||||
hashCode = hashCode * 59 + this.Anytype1.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Anytype1.GetHashCode();
|
||||
}
|
||||
if (this.MapWithUndeclaredPropertiesAnytype1 != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesAnytype1.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapWithUndeclaredPropertiesAnytype1.GetHashCode();
|
||||
}
|
||||
if (this.MapWithUndeclaredPropertiesAnytype2 != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesAnytype2.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapWithUndeclaredPropertiesAnytype2.GetHashCode();
|
||||
}
|
||||
if (this.MapWithUndeclaredPropertiesAnytype3 != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesAnytype3.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapWithUndeclaredPropertiesAnytype3.GetHashCode();
|
||||
}
|
||||
if (this.EmptyMap != null)
|
||||
hashCode = hashCode * 59 + this.EmptyMap.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.EmptyMap.GetHashCode();
|
||||
}
|
||||
if (this.MapWithUndeclaredPropertiesString != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesString.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapWithUndeclaredPropertiesString.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Animal {\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" Color: ").Append(Color).Append("\n");
|
||||
@ -134,11 +134,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ClassName.GetHashCode();
|
||||
}
|
||||
if (this.Color != null)
|
||||
hashCode = hashCode * 59 + this.Color.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Color.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ApiResponse {\n");
|
||||
sb.Append(" Code: ").Append(Code).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
@ -125,13 +125,19 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Code.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Code.GetHashCode();
|
||||
if (this.Type != null)
|
||||
hashCode = hashCode * 59 + this.Type.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Type.GetHashCode();
|
||||
}
|
||||
if (this.Message != null)
|
||||
hashCode = hashCode * 59 + this.Message.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Message.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Apple {\n");
|
||||
sb.Append(" Cultivar: ").Append(Cultivar).Append("\n");
|
||||
sb.Append(" Origin: ").Append(Origin).Append("\n");
|
||||
@ -117,11 +117,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Cultivar != null)
|
||||
hashCode = hashCode * 59 + this.Cultivar.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Cultivar.GetHashCode();
|
||||
}
|
||||
if (this.Origin != null)
|
||||
hashCode = hashCode * 59 + this.Origin.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Origin.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class AppleReq {\n");
|
||||
sb.Append(" Cultivar: ").Append(Cultivar).Append("\n");
|
||||
sb.Append(" Mealy: ").Append(Mealy).Append("\n");
|
||||
@ -118,8 +118,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Cultivar != null)
|
||||
hashCode = hashCode * 59 + this.Cultivar.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Mealy.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Cultivar.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.Mealy.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ArrayOfArrayOfNumberOnly {\n");
|
||||
sb.Append(" ArrayArrayNumber: ").Append(ArrayArrayNumber).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -108,9 +108,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ArrayArrayNumber != null)
|
||||
hashCode = hashCode * 59 + this.ArrayArrayNumber.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayArrayNumber.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ArrayOfNumberOnly {\n");
|
||||
sb.Append(" ArrayNumber: ").Append(ArrayNumber).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -108,9 +108,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ArrayNumber != null)
|
||||
hashCode = hashCode * 59 + this.ArrayNumber.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayNumber.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ArrayTest {\n");
|
||||
sb.Append(" ArrayOfString: ").Append(ArrayOfString).Append("\n");
|
||||
sb.Append(" ArrayArrayOfInteger: ").Append(ArrayArrayOfInteger).Append("\n");
|
||||
@ -126,13 +126,21 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ArrayOfString != null)
|
||||
hashCode = hashCode * 59 + this.ArrayOfString.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayOfString.GetHashCode();
|
||||
}
|
||||
if (this.ArrayArrayOfInteger != null)
|
||||
hashCode = hashCode * 59 + this.ArrayArrayOfInteger.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayArrayOfInteger.GetHashCode();
|
||||
}
|
||||
if (this.ArrayArrayOfModel != null)
|
||||
hashCode = hashCode * 59 + this.ArrayArrayOfModel.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayArrayOfModel.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Banana {\n");
|
||||
sb.Append(" LengthCm: ").Append(LengthCm).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -107,9 +107,11 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.LengthCm.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.LengthCm.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class BananaReq {\n");
|
||||
sb.Append(" LengthCm: ").Append(LengthCm).Append("\n");
|
||||
sb.Append(" Sweet: ").Append(Sweet).Append("\n");
|
||||
@ -113,8 +113,8 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.LengthCm.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Sweet.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.LengthCm.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Sweet.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class BasquePig {\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -120,9 +120,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ClassName.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Capitalization {\n");
|
||||
sb.Append(" SmallCamel: ").Append(SmallCamel).Append("\n");
|
||||
sb.Append(" CapitalCamel: ").Append(CapitalCamel).Append("\n");
|
||||
@ -154,19 +154,33 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.SmallCamel != null)
|
||||
hashCode = hashCode * 59 + this.SmallCamel.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SmallCamel.GetHashCode();
|
||||
}
|
||||
if (this.CapitalCamel != null)
|
||||
hashCode = hashCode * 59 + this.CapitalCamel.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.CapitalCamel.GetHashCode();
|
||||
}
|
||||
if (this.SmallSnake != null)
|
||||
hashCode = hashCode * 59 + this.SmallSnake.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SmallSnake.GetHashCode();
|
||||
}
|
||||
if (this.CapitalSnake != null)
|
||||
hashCode = hashCode * 59 + this.CapitalSnake.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.CapitalSnake.GetHashCode();
|
||||
}
|
||||
if (this.SCAETHFlowPoints != null)
|
||||
hashCode = hashCode * 59 + this.SCAETHFlowPoints.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SCAETHFlowPoints.GetHashCode();
|
||||
}
|
||||
if (this.ATT_NAME != null)
|
||||
hashCode = hashCode * 59 + this.ATT_NAME.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ATT_NAME.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Cat {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Declawed: ").Append(Declawed).Append("\n");
|
||||
@ -120,9 +120,11 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Declawed.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Declawed.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
@ -144,7 +146,10 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
foreach(var x in BaseValidate(validationContext)) yield return x;
|
||||
foreach (var x in BaseValidate(validationContext))
|
||||
{
|
||||
yield return x;
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class CatAllOf {\n");
|
||||
sb.Append(" Declawed: ").Append(Declawed).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -107,9 +107,11 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Declawed.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Declawed.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Category {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
@ -128,11 +128,15 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Id.GetHashCode();
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ChildCat {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
@ -142,10 +142,14 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.PetType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.PetType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
@ -167,7 +171,10 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
foreach(var x in BaseValidate(validationContext)) yield return x;
|
||||
foreach (var x in BaseValidate(validationContext))
|
||||
{
|
||||
yield return x;
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ChildCatAllOf {\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" PetType: ").Append(PetType).Append("\n");
|
||||
@ -131,10 +131,14 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.PetType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.PetType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ClassModel {\n");
|
||||
sb.Append(" Class: ").Append(Class).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -108,9 +108,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Class != null)
|
||||
hashCode = hashCode * 59 + this.Class.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Class.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ComplexQuadrilateral {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" QuadrilateralType: ").Append(QuadrilateralType).Append("\n");
|
||||
@ -133,11 +133,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeType.GetHashCode();
|
||||
}
|
||||
if (this.QuadrilateralType != null)
|
||||
hashCode = hashCode * 59 + this.QuadrilateralType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.QuadrilateralType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class DanishPig {\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -120,9 +120,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ClassName.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class DeprecatedObject {\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -108,9 +108,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Dog {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Breed: ").Append(Breed).Append("\n");
|
||||
@ -121,9 +121,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.Breed != null)
|
||||
hashCode = hashCode * 59 + this.Breed.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Breed.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
@ -145,7 +149,10 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
foreach(var x in BaseValidate(validationContext)) yield return x;
|
||||
foreach (var x in BaseValidate(validationContext))
|
||||
{
|
||||
yield return x;
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class DogAllOf {\n");
|
||||
sb.Append(" Breed: ").Append(Breed).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -108,9 +108,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Breed != null)
|
||||
hashCode = hashCode * 59 + this.Breed.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Breed.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Drawing {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" MainShape: ").Append(MainShape).Append("\n");
|
||||
@ -128,13 +128,21 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.MainShape != null)
|
||||
hashCode = hashCode * 59 + this.MainShape.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MainShape.GetHashCode();
|
||||
}
|
||||
if (this.ShapeOrNull != null)
|
||||
hashCode = hashCode * 59 + this.ShapeOrNull.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeOrNull.GetHashCode();
|
||||
}
|
||||
if (this.NullableShape != null)
|
||||
hashCode = hashCode * 59 + this.NullableShape.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.NullableShape.GetHashCode();
|
||||
}
|
||||
if (this.Shapes != null)
|
||||
hashCode = hashCode * 59 + this.Shapes.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Shapes.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class EnumArrays {\n");
|
||||
sb.Append(" JustSymbol: ").Append(JustSymbol).Append("\n");
|
||||
sb.Append(" ArrayEnum: ").Append(ArrayEnum).Append("\n");
|
||||
@ -157,10 +157,12 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.JustSymbol.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.ArrayEnum.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.JustSymbol.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user