Use CompareNetObject for object comparison in C# client (refactor) (#1765)

* add pet, array of array test, use CompareNetObject for comparision

* add an option, should trigger ci failure

* update doc

* use useCompareNetObjects in csharp-refactor petstore

* fix project template
This commit is contained in:
William Cheng 2018-12-29 14:45:49 +08:00 committed by GitHub
parent 06a67ce6e4
commit 1db105b6f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
70 changed files with 731 additions and 1053 deletions

View File

@ -27,7 +27,7 @@ fi
# if you've executed sbt assembly previously it will use that instead. # if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties" export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="generate -t modules/openapi-generator/src/main/resources/csharp-refactor/ -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g csharp-refactor -o samples/client/petstore/csharp-refactor/OpenAPIClient --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} $@" ags="generate -t modules/openapi-generator/src/main/resources/csharp-refactor/ -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g csharp-refactor -o samples/client/petstore/csharp-refactor/OpenAPIClient --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C},useCompareNetObjects=true $@"
java $JAVA_OPTS -jar $executable $ags java $JAVA_OPTS -jar $executable $ags

View File

@ -69,4 +69,7 @@ CONFIG OPTIONS for csharp
validatable validatable
Generates self-validatable models. (Default: true) Generates self-validatable models. (Default: true)
useCompareNetObjects
Use KellermanSoftware.CompareNetObjects for deep recursive object comparison. WARNING: this option incurs potential performance impact. (Default: false)
Back to the [generators list](README.md) Back to the [generators list](README.md)

View File

@ -283,4 +283,7 @@ public class CodegenConstants {
public static final String ENABLE_POST_PROCESS_FILE_DESC = "Enable post-processing file using environment variables."; public static final String ENABLE_POST_PROCESS_FILE_DESC = "Enable post-processing file using environment variables.";
public static final String OPEN_API_SPEC_NAME = "openAPISpecName"; public static final String OPEN_API_SPEC_NAME = "openAPISpecName";
public static final String USE_COMPARE_NET_OBJECTS = "useCompareNetObjects";
public static final String USE_COMPARE_NET_OBJECTS_DESC = "Use KellermanSoftware.CompareNetObjects for deep recursive object comparison. WARNING: this option incurs potential performance impact.";
} }

View File

@ -83,6 +83,9 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
// By default, generated code is considered public // By default, generated code is considered public
protected boolean nonPublicApi = Boolean.FALSE; protected boolean nonPublicApi = Boolean.FALSE;
// use KellermanSoftware.CompareNetObjects for deep recursive object comparision
protected boolean useCompareNetObjects = Boolean.FALSE;
public CSharpClientCodegen() { public CSharpClientCodegen() {
super(); super();
supportsInheritance = true; supportsInheritance = true;
@ -196,6 +199,10 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
CodegenConstants.VALIDATABLE_DESC, CodegenConstants.VALIDATABLE_DESC,
this.validatable); this.validatable);
addSwitch(CodegenConstants.USE_COMPARE_NET_OBJECTS,
CodegenConstants.USE_COMPARE_NET_OBJECTS_DESC,
this.useCompareNetObjects);
regexModifiers = new HashMap<Character, String>(); regexModifiers = new HashMap<Character, String>();
regexModifiers.put('i', "IgnoreCase"); regexModifiers.put('i', "IgnoreCase");
regexModifiers.put('m', "Multiline"); regexModifiers.put('m', "Multiline");
@ -798,6 +805,10 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
this.generatePropertyChanged = generatePropertyChanged; this.generatePropertyChanged = generatePropertyChanged;
} }
public void setUseCompareNetObjects(final Boolean useCompareNetObjects) {
this.useCompareNetObjects = useCompareNetObjects;
}
public boolean isNonPublicApi() { public boolean isNonPublicApi() {
return nonPublicApi; return nonPublicApi;
} }

View File

@ -9,6 +9,9 @@ using System.Net;
using System.Text; using System.Text;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading.Tasks; using System.Threading.Tasks;
{{#useCompareNetObjects}}
using KellermanSoftware.CompareNetObjects;
{{/useCompareNetObjects}}
namespace {{packageName}}.Client namespace {{packageName}}.Client
{ {
@ -17,6 +20,21 @@ namespace {{packageName}}.Client
/// </summary> /// </summary>
public static class ClientUtils public static class ClientUtils
{ {
{{#useCompareNetObjects}}
/// <summary>
/// An instance of CompareLogic.
/// </summary>
public static CompareLogic compareLogic;
/// <summary>
/// Static contstructor to initialise compareLogic.
/// </summary>
static ClientUtils()
{
compareLogic = new CompareLogic();
}
{{/useCompareNetObjects}}
/// <summary> /// <summary>
/// Sanitize filename by removing the path /// Sanitize filename by removing the path
/// </summary> /// </summary>

View File

@ -84,6 +84,14 @@
<HintPath Condition="Exists('..\..\packages')">..\..\packages\RestSharp.106.5.4\lib\{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}\RestSharp.dll</HintPath> <HintPath Condition="Exists('..\..\packages')">..\..\packages\RestSharp.106.5.4\lib\{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}\RestSharp.dll</HintPath>
<HintPath Condition="Exists('{{binRelativePath}}')">{{binRelativePath}}\RestSharp.106.5.4\lib\{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}\RestSharp.dll</HintPath> <HintPath Condition="Exists('{{binRelativePath}}')">{{binRelativePath}}\RestSharp.106.5.4\lib\{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}\RestSharp.dll</HintPath>
</Reference> </Reference>
{{#useCompareNetObjects}}
<Reference Include="KellermanSoftware.Compare-NET-Objects">
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\CompareNETObjects.4.57.0\lib\{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}\KellermanSoftware.Compare-NET-Objects.dll</HintPath>
<HintPath Condition="Exists('..\packages')">..\packages\CompareNETObjects.4.57.0\lib\{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}\KellermanSoftware.Compare-NET-Objects.dll</HintPath>
<HintPath Condition="Exists('..\..\packages')">..\..\packages\CompareNETObjects.4.57.0\lib\{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}\KellermanSoftware.Compare-NET-Objects.dll</HintPath>
<HintPath Condition="Exists('{{binRelativePath}}')">{{binRelativePath}}\CompareNETObjects.4.57.0\lib\{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}\KellermanSoftware.Compare-NET-Objects.dll</HintPath>
</Reference>
{{/useCompareNetObjects}}
{{#generatePropertyChanged}} {{#generatePropertyChanged}}
<Reference Include="PropertyChanged"> <Reference Include="PropertyChanged">
<HintPath>..\..\packages\PropertyChanged.Fody.1.51.3\Lib\portable-net4+sl4+wp8+win8+wpa81+MonoAndroid16+MonoTouch40\PropertyChanged.dll</HintPath> <HintPath>..\..\packages\PropertyChanged.Fody.1.51.3\Lib\portable-net4+sl4+wp8+win8+wpa81+MonoAndroid16+MonoTouch40\PropertyChanged.dll</HintPath>

View File

@ -44,6 +44,9 @@ ${nuget_cmd} install src/{{packageName}}/packages.config -o packages;
echo "[INFO] Copy DLLs to the 'bin' folder" echo "[INFO] Copy DLLs to the 'bin' folder"
mkdir -p bin; mkdir -p bin;
{{#useCompareNetObjects}}
cp packages/CompareNETObjects.4.57.0/lib/{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}/KellermanSoftware.Compare-NET-Objects.dll bin/KellermanSoftware.Compare-NET-Objects.dll;
{{/useCompareNetObjects}}
cp packages/Newtonsoft.Json.12.0.1/lib/{{targetFrameworkNuget}}/Newtonsoft.Json.dll bin/Newtonsoft.Json.dll; cp packages/Newtonsoft.Json.12.0.1/lib/{{targetFrameworkNuget}}/Newtonsoft.Json.dll bin/Newtonsoft.Json.dll;
cp packages/RestSharp.106.5.4/lib/{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}/RestSharp.dll bin/RestSharp.dll; cp packages/RestSharp.106.5.4/lib/{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}/RestSharp.dll bin/RestSharp.dll;
cp packages/JsonSubTypes.1.5.1/lib/{{targetFrameworkNuget}}/JsonSubTypes.dll bin/JsonSubTypes.dll cp packages/JsonSubTypes.1.5.1/lib/{{targetFrameworkNuget}}/JsonSubTypes.dll bin/JsonSubTypes.dll
@ -60,6 +63,9 @@ bin/Fody.dll,\
bin/PropertyChanged.Fody.dll,\ bin/PropertyChanged.Fody.dll,\
bin/PropertyChanged.dll,\ bin/PropertyChanged.dll,\
{{/generatePropertyChanged}} {{/generatePropertyChanged}}
{{#useCompareNetObjects}}
bin/KellermanSoftware.Compare-NET-Objects.dll,\
{{/useCompareNetObjects}}
bin/RestSharp.dll,\ bin/RestSharp.dll,\
System.ComponentModel.DataAnnotations.dll,\ System.ComponentModel.DataAnnotations.dll,\
System.Runtime.Serialization.dll \ System.Runtime.Serialization.dll \

View File

@ -14,7 +14,9 @@ if not exist ".\nuget.exe" powershell -Command "(new-object System.Net.WebClient
.\nuget.exe install src\{{packageName}}\packages.config -o packages .\nuget.exe install src\{{packageName}}\packages.config -o packages
if not exist ".\bin" mkdir bin if not exist ".\bin" mkdir bin
{{#CompareNetObjects}}
copy packages\CompareNETObjects.4.57.0\lib\{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}\KellermanSoftware.Compare-NET-Objects.dll bin\KellermanSoftware.Compare-NET-Objects.dll
{{/CompareNetObjects}}
copy packages\Newtonsoft.Json.12.0.1\lib\{{targetFrameworkNuget}}\Newtonsoft.Json.dll bin\Newtonsoft.Json.dll copy packages\Newtonsoft.Json.12.0.1\lib\{{targetFrameworkNuget}}\Newtonsoft.Json.dll bin\Newtonsoft.Json.dll
copy packages\JsonSubTypes.1.5.1\lib\{{targetFrameworkNuget}}\JsonSubTypes.dll bin\JsonSubTypes.dll copy packages\JsonSubTypes.1.5.1\lib\{{targetFrameworkNuget}}\JsonSubTypes.dll bin\JsonSubTypes.dll
copy packages\RestSharp.106.5.4\lib\{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}\RestSharp.dll bin\RestSharp.dll copy packages\RestSharp.106.5.4\lib\{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}\RestSharp.dll bin\RestSharp.dll
@ -23,5 +25,5 @@ copy packages\Fody.1.29.4\Fody.dll bin\Fody.dll
copy packages\PropertyChanged.Fody.1.51.3\PropertyChanged.Fody.dll bin\PropertyChanged.Fody.dll copy packages\PropertyChanged.Fody.1.51.3\PropertyChanged.Fody.dll bin\PropertyChanged.Fody.dll
copy packages\PropertyChanged.Fody.1.51.3\Lib\dotnet\PropertyChanged.dll bin\PropertyChanged.dll copy packages\PropertyChanged.Fody.1.51.3\Lib\dotnet\PropertyChanged.dll bin\PropertyChanged.dll
{{/generatePropertyChanged}} {{/generatePropertyChanged}}
%CSCPATH%\csc /reference:bin\Newtonsoft.Json.dll;bin\JsonSubTypes.dll;bin\RestSharp.dll;System.ComponentModel.DataAnnotations.dll {{#generatePropertyChanged}}/r:bin\Fody.dll;bin\PropertyChanged.Fody.dll;bin\PropertyChanged.dll{{/generatePropertyChanged}} /target:library /out:bin\{{packageName}}.dll /recurse:src\{{packageName}}\*.cs /doc:bin\{{packageName}}.xml %CSCPATH%\csc /reference:bin\Newtonsoft.Json.dll;bin\JsonSubTypes.dll;bin\RestSharp.dll;{{#CompareNetObjects}}bin\KellermanSoftware.Compare-NET-Objects.dll;{{/CompareNetObjects}}System.ComponentModel.DataAnnotations.dll {{#generatePropertyChanged}}/r:bin\Fody.dll;bin\PropertyChanged.Fody.dll;bin\PropertyChanged.dll{{/generatePropertyChanged}} /target:library /out:bin\{{packageName}}.dll /recurse:src\{{packageName}}\*.cs /doc:bin\{{packageName}}.xml

View File

@ -28,6 +28,9 @@ using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
{{/netStandard}} {{/netStandard}}
using OpenAPIDateConverter = {{packageName}}.Client.OpenAPIDateConverter; using OpenAPIDateConverter = {{packageName}}.Client.OpenAPIDateConverter;
{{#useCompareNetObjects}}
using OpenAPIClientUtils = {{packageName}}.Client.ClientUtils;
{{/useCompareNetObjects}}
{{#models}} {{#models}}
{{#model}} {{#model}}

View File

@ -149,7 +149,12 @@
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
{{#useCompareNetObjects}}
return OpenAPIClientUtils.compareLogic.Compare(this, input as {{classname}}).AreEqual;
{{/useCompareNetObjects}}
{{^useCompareNetObjects}}
return this.Equals(input as {{classname}}); return this.Equals(input as {{classname}});
{{/useCompareNetObjects}}
} }
/// <summary> /// <summary>
@ -159,6 +164,10 @@
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals({{classname}} input) public bool Equals({{classname}} input)
{ {
{{#useCompareNetObjects}}
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
{{/useCompareNetObjects}}
{{^useCompareNetObjects}}
if (input == null) if (input == null)
return false; return false;
@ -178,6 +187,7 @@
this.{{name}} != null && this.{{name}} != null &&
this.{{name}}.SequenceEqual(input.{{name}}) this.{{name}}.SequenceEqual(input.{{name}})
){{#hasMore}} && {{/hasMore}}{{/isContainer}}{{/vars}}{{^vars}}{{#parent}}base.Equals(input){{/parent}}{{^parent}}false{{/parent}}{{/vars}}; ){{#hasMore}} && {{/hasMore}}{{/isContainer}}{{/vars}}{{^vars}}{{#parent}}base.Equals(input){{/parent}}{{^parent}}false{{/parent}}{{/vars}};
{{/useCompareNetObjects}}
} }
/// <summary> /// <summary>

View File

@ -1,10 +1,13 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
{{#useCompareNetObjects}}
<package id="CompareNETObjects" version="4.57.0" targetFramework="{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}" developmentDependency="true" />
{{/useCompareNetObjects}}
<package id="RestSharp" version="106.5.4" targetFramework="{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}" developmentDependency="true" /> <package id="RestSharp" version="106.5.4" targetFramework="{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}" developmentDependency="true" />
<package id="Newtonsoft.Json" version="12.0.1" targetFramework="{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}" developmentDependency="true" /> <package id="Newtonsoft.Json" version="12.0.1" targetFramework="{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net45{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}" developmentDependency="true" />
<package id="JsonSubTypes" version="1.5.1" targetFramework="{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}" developmentDependency="true" /> <package id="JsonSubTypes" version="1.5.1" targetFramework="{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net45{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}" developmentDependency="true" />
{{#generatePropertyChanged}} {{#generatePropertyChanged}}
<package id="Fody" version="1.29.4" targetFramework="{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}" developmentDependency="true" /> <package id="Fody" version="1.29.4" targetFramework="{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net45{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}" developmentDependency="true" />
<package id="PropertyChanged.Fody" version="1.51.3" targetFramework="{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net452{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}" developmentDependency="true" /> <package id="PropertyChanged.Fody" version="1.51.3" targetFramework="{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{#isNet452}}net45{{/isNet452}}{{^isNet452}}{{targetFrameworkNuget}}{{/isNet452}}{{/isNet40}}" developmentDependency="true" />
{{/generatePropertyChanged}} {{/generatePropertyChanged}}
</packages> </packages>

View File

@ -4,6 +4,9 @@
"FubarCoder.RestSharp.Portable.Core": "4.0.7", "FubarCoder.RestSharp.Portable.Core": "4.0.7",
"FubarCoder.RestSharp.Portable.HttpClient": "4.0.7", "FubarCoder.RestSharp.Portable.HttpClient": "4.0.7",
"Newtonsoft.Json": "12.0.1", "Newtonsoft.Json": "12.0.1",
{{#useCompareNetObjects}}
"KellermanSoftware.Compare-NET-Objects": "4.57.0",
{{/useCompareNetObjects}}
"JsonSubTypes": "1.5.1" "JsonSubTypes": "1.5.1"
}, },
"frameworks": { "frameworks": {

View File

@ -1,12 +1,15 @@
<Properties StartupConfiguration="{19F1DEBC-DE5E-4517-8062-F000CD499087}|Unit Tests"> <Properties StartupConfiguration="{19F1DEBC-DE5E-4517-8062-F000CD499087}|Unit Tests">
<MonoDevelop.Ide.Workbench ActiveDocument="src/Org.OpenAPITools.Test/Api/PetApiTests.cs"> <MonoDevelop.Ide.Workbench ActiveDocument="src/Org.OpenAPITools.Test/Model/PetTests.cs">
<Files> <Files>
<File FileName="src/Org.OpenAPITools.Test/Api/PetApiTests.cs" Line="302" Column="15" /> <File FileName="src/Org.OpenAPITools.Test/Model/PetTests.cs" Line="159" Column="29" />
<File FileName="src/Org.OpenAPITools/Client/ApiClient.cs" Line="239" Column="82" />
<File FileName="src/Org.OpenAPITools.Test/packages.config" Line="1" Column="1" />
<File FileName="src/Org.OpenAPITools/Api/PetApi.cs" Line="1583" Column="1" />
<File FileName="src/Org.OpenAPITools/Client/ClientUtils.cs" Line="1" Column="1" />
</Files> </Files>
<Pads>
<Pad Id="MonoDevelop.UnitTesting.TestPad">
<State name="__root__">
<Node name="Org.OpenAPITools" expanded="True" selected="True" />
</State>
</Pad>
</Pads>
</MonoDevelop.Ide.Workbench> </MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" /> <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
<MonoDevelop.Ide.DebuggingService.Breakpoints> <MonoDevelop.Ide.DebuggingService.Breakpoints>

View File

@ -71,12 +71,12 @@ namespace Example
{ {
var apiInstance = new AnotherFakeApi(); var apiInstance = new AnotherFakeApi();
var modelClient = new ModelClient(); // ModelClient | client model var body = new ModelClient(); // ModelClient | client model
try try
{ {
// To test special tags // To test special tags
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient); ModelClient result = apiInstance.Call123TestSpecialTags(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (Exception e)

View File

@ -9,7 +9,6 @@ if not exist ".\nuget.exe" powershell -Command "(new-object System.Net.WebClient
.\nuget.exe install src\Org.OpenAPITools\packages.config -o packages .\nuget.exe install src\Org.OpenAPITools\packages.config -o packages
if not exist ".\bin" mkdir bin if not exist ".\bin" mkdir bin
copy packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll bin\Newtonsoft.Json.dll copy packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll bin\Newtonsoft.Json.dll
copy packages\JsonSubTypes.1.5.1\lib\net45\JsonSubTypes.dll bin\JsonSubTypes.dll copy packages\JsonSubTypes.1.5.1\lib\net45\JsonSubTypes.dll bin\JsonSubTypes.dll
copy packages\RestSharp.106.5.4\lib\net452\RestSharp.dll bin\RestSharp.dll copy packages\RestSharp.106.5.4\lib\net452\RestSharp.dll bin\RestSharp.dll

View File

@ -44,12 +44,14 @@ ${nuget_cmd} install src/Org.OpenAPITools/packages.config -o packages;
echo "[INFO] Copy DLLs to the 'bin' folder" echo "[INFO] Copy DLLs to the 'bin' folder"
mkdir -p bin; mkdir -p bin;
cp packages/CompareNETObjects.4.57.0/lib/net452/KellermanSoftware.Compare-NET-Objects.dll bin/KellermanSoftware.Compare-NET-Objects.dll;
cp packages/Newtonsoft.Json.12.0.1/lib/net45/Newtonsoft.Json.dll bin/Newtonsoft.Json.dll; cp packages/Newtonsoft.Json.12.0.1/lib/net45/Newtonsoft.Json.dll bin/Newtonsoft.Json.dll;
cp packages/RestSharp.106.5.4/lib/net452/RestSharp.dll bin/RestSharp.dll; cp packages/RestSharp.106.5.4/lib/net452/RestSharp.dll bin/RestSharp.dll;
cp packages/JsonSubTypes.1.5.1/lib/net45/JsonSubTypes.dll bin/JsonSubTypes.dll cp packages/JsonSubTypes.1.5.1/lib/net45/JsonSubTypes.dll bin/JsonSubTypes.dll
echo "[INFO] Run 'mcs' to build bin/Org.OpenAPITools.dll" echo "[INFO] Run 'mcs' to build bin/Org.OpenAPITools.dll"
mcs -langversion:${langversion} -sdk:${sdk} -r:bin/Newtonsoft.Json.dll,bin/JsonSubTypes.dll,\ mcs -langversion:${langversion} -sdk:${sdk} -r:bin/Newtonsoft.Json.dll,bin/JsonSubTypes.dll,\
bin/KellermanSoftware.Compare-NET-Objects.dll,\
bin/RestSharp.dll,\ bin/RestSharp.dll,\
System.ComponentModel.DataAnnotations.dll,\ System.ComponentModel.DataAnnotations.dll,\
System.Runtime.Serialization.dll \ System.Runtime.Serialization.dll \

View File

@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="call123testspecialtags"></a> <a name="call123testspecialtags"></a>
# **Call123TestSpecialTags** # **Call123TestSpecialTags**
> ModelClient Call123TestSpecialTags (ModelClient modelClient) > ModelClient Call123TestSpecialTags (ModelClient body)
To test special tags To test special tags
@ -30,12 +30,12 @@ namespace Example
public void main() public void main()
{ {
var apiInstance = new AnotherFakeApi(); var apiInstance = new AnotherFakeApi();
var modelClient = new ModelClient(); // ModelClient | client model var body = new ModelClient(); // ModelClient | client model
try try
{ {
// To test special tags // To test special tags
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient); ModelClient result = apiInstance.Call123TestSpecialTags(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (Exception e)
@ -51,7 +51,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**modelClient** | [**ModelClient**](ModelClient.md)| client model | **body** | [**ModelClient**](ModelClient.md)| client model |
### Return type ### Return type

View File

@ -80,7 +80,7 @@ No authorization required
<a name="fakeoutercompositeserialize"></a> <a name="fakeoutercompositeserialize"></a>
# **FakeOuterCompositeSerialize** # **FakeOuterCompositeSerialize**
> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null) > OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
@ -101,11 +101,11 @@ namespace Example
public void main() public void main()
{ {
var apiInstance = new FakeApi(); var apiInstance = new FakeApi();
var outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body (optional) var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
try try
{ {
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite); OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (Exception e)
@ -121,7 +121,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
### Return type ### Return type
@ -260,7 +260,7 @@ No authorization required
<a name="testbodywithfileschema"></a> <a name="testbodywithfileschema"></a>
# **TestBodyWithFileSchema** # **TestBodyWithFileSchema**
> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass) > void TestBodyWithFileSchema (FileSchemaTestClass body)
@ -281,11 +281,11 @@ namespace Example
public void main() public void main()
{ {
var apiInstance = new FakeApi(); var apiInstance = new FakeApi();
var fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | var body = new FileSchemaTestClass(); // FileSchemaTestClass |
try try
{ {
apiInstance.TestBodyWithFileSchema(fileSchemaTestClass); apiInstance.TestBodyWithFileSchema(body);
} }
catch (Exception e) catch (Exception e)
{ {
@ -300,7 +300,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
### Return type ### Return type
@ -319,7 +319,7 @@ No authorization required
<a name="testbodywithqueryparams"></a> <a name="testbodywithqueryparams"></a>
# **TestBodyWithQueryParams** # **TestBodyWithQueryParams**
> void TestBodyWithQueryParams (string query, User user) > void TestBodyWithQueryParams (string query, User body)
@ -339,11 +339,11 @@ namespace Example
{ {
var apiInstance = new FakeApi(); var apiInstance = new FakeApi();
var query = query_example; // string | var query = query_example; // string |
var user = new User(); // User | var body = new User(); // User |
try try
{ {
apiInstance.TestBodyWithQueryParams(query, user); apiInstance.TestBodyWithQueryParams(query, body);
} }
catch (Exception e) catch (Exception e)
{ {
@ -359,7 +359,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**query** | **string**| | **query** | **string**| |
**user** | [**User**](User.md)| | **body** | [**User**](User.md)| |
### Return type ### Return type
@ -378,7 +378,7 @@ No authorization required
<a name="testclientmodel"></a> <a name="testclientmodel"></a>
# **TestClientModel** # **TestClientModel**
> ModelClient TestClientModel (ModelClient modelClient) > ModelClient TestClientModel (ModelClient body)
To test \"client\" model To test \"client\" model
@ -399,12 +399,12 @@ namespace Example
public void main() public void main()
{ {
var apiInstance = new FakeApi(); var apiInstance = new FakeApi();
var modelClient = new ModelClient(); // ModelClient | client model var body = new ModelClient(); // ModelClient | client model
try try
{ {
// To test \"client\" model // To test \"client\" model
ModelClient result = apiInstance.TestClientModel(modelClient); ModelClient result = apiInstance.TestClientModel(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (Exception e)
@ -420,7 +420,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**modelClient** | [**ModelClient**](ModelClient.md)| client model | **body** | [**ModelClient**](ModelClient.md)| client model |
### Return type ### Return type
@ -673,7 +673,7 @@ No authorization required
<a name="testinlineadditionalproperties"></a> <a name="testinlineadditionalproperties"></a>
# **TestInlineAdditionalProperties** # **TestInlineAdditionalProperties**
> void TestInlineAdditionalProperties (Dictionary<string, string> requestBody) > void TestInlineAdditionalProperties (Dictionary<string, string> param)
test inline additionalProperties test inline additionalProperties
@ -692,12 +692,12 @@ namespace Example
public void main() public void main()
{ {
var apiInstance = new FakeApi(); var apiInstance = new FakeApi();
var requestBody = new Dictionary<string, string>(); // Dictionary<string, string> | request body var param = new Dictionary<string, string>(); // Dictionary<string, string> | request body
try try
{ {
// test inline additionalProperties // test inline additionalProperties
apiInstance.TestInlineAdditionalProperties(requestBody); apiInstance.TestInlineAdditionalProperties(param);
} }
catch (Exception e) catch (Exception e)
{ {
@ -712,7 +712,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**requestBody** | [**Dictionary&lt;string, string&gt;**](string.md)| request body | **param** | [**Dictionary&lt;string, string&gt;**](string.md)| request body |
### Return type ### Return type

View File

@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="testclassname"></a> <a name="testclassname"></a>
# **TestClassname** # **TestClassname**
> ModelClient TestClassname (ModelClient modelClient) > ModelClient TestClassname (ModelClient body)
To test class name in snake case To test class name in snake case
@ -35,12 +35,12 @@ namespace Example
// Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer"); // Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer");
var apiInstance = new FakeClassnameTags123Api(); var apiInstance = new FakeClassnameTags123Api();
var modelClient = new ModelClient(); // ModelClient | client model var body = new ModelClient(); // ModelClient | client model
try try
{ {
// To test class name in snake case // To test class name in snake case
ModelClient result = apiInstance.TestClassname(modelClient); ModelClient result = apiInstance.TestClassname(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (Exception e)
@ -56,7 +56,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**modelClient** | [**ModelClient**](ModelClient.md)| client model | **body** | [**ModelClient**](ModelClient.md)| client model |
### Return type ### Return type

View File

@ -17,7 +17,7 @@ Method | HTTP request | Description
<a name="addpet"></a> <a name="addpet"></a>
# **AddPet** # **AddPet**
> void AddPet (Pet pet) > void AddPet (Pet body)
Add a new pet to the store Add a new pet to the store
@ -39,12 +39,12 @@ namespace Example
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(); var apiInstance = new PetApi();
var pet = new Pet(); // Pet | Pet object that needs to be added to the store var body = new Pet(); // Pet | Pet object that needs to be added to the store
try try
{ {
// Add a new pet to the store // Add a new pet to the store
apiInstance.AddPet(pet); apiInstance.AddPet(body);
} }
catch (Exception e) catch (Exception e)
{ {
@ -59,7 +59,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type ### Return type
@ -335,7 +335,7 @@ Name | Type | Description | Notes
<a name="updatepet"></a> <a name="updatepet"></a>
# **UpdatePet** # **UpdatePet**
> void UpdatePet (Pet pet) > void UpdatePet (Pet body)
Update an existing pet Update an existing pet
@ -357,12 +357,12 @@ namespace Example
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(); var apiInstance = new PetApi();
var pet = new Pet(); // Pet | Pet object that needs to be added to the store var body = new Pet(); // Pet | Pet object that needs to be added to the store
try try
{ {
// Update an existing pet // Update an existing pet
apiInstance.UpdatePet(pet); apiInstance.UpdatePet(body);
} }
catch (Exception e) catch (Exception e)
{ {
@ -377,7 +377,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type ### Return type

View File

@ -195,7 +195,7 @@ No authorization required
<a name="placeorder"></a> <a name="placeorder"></a>
# **PlaceOrder** # **PlaceOrder**
> Order PlaceOrder (Order order) > Order PlaceOrder (Order body)
Place an order for a pet Place an order for a pet
@ -214,12 +214,12 @@ namespace Example
public void main() public void main()
{ {
var apiInstance = new StoreApi(); var apiInstance = new StoreApi();
var order = new Order(); // Order | order placed for purchasing the pet var body = new Order(); // Order | order placed for purchasing the pet
try try
{ {
// Place an order for a pet // Place an order for a pet
Order result = apiInstance.PlaceOrder(order); Order result = apiInstance.PlaceOrder(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (Exception e)
@ -235,7 +235,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**order** | [**Order**](Order.md)| order placed for purchasing the pet | **body** | [**Order**](Order.md)| order placed for purchasing the pet |
### Return type ### Return type

View File

@ -16,7 +16,7 @@ Method | HTTP request | Description
<a name="createuser"></a> <a name="createuser"></a>
# **CreateUser** # **CreateUser**
> void CreateUser (User user) > void CreateUser (User body)
Create user Create user
@ -37,12 +37,12 @@ namespace Example
public void main() public void main()
{ {
var apiInstance = new UserApi(); var apiInstance = new UserApi();
var user = new User(); // User | Created user object var body = new User(); // User | Created user object
try try
{ {
// Create user // Create user
apiInstance.CreateUser(user); apiInstance.CreateUser(body);
} }
catch (Exception e) catch (Exception e)
{ {
@ -57,7 +57,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**User**](User.md)| Created user object | **body** | [**User**](User.md)| Created user object |
### Return type ### Return type
@ -76,7 +76,7 @@ No authorization required
<a name="createuserswitharrayinput"></a> <a name="createuserswitharrayinput"></a>
# **CreateUsersWithArrayInput** # **CreateUsersWithArrayInput**
> void CreateUsersWithArrayInput (List<User> user) > void CreateUsersWithArrayInput (List<User> body)
Creates list of users with given input array Creates list of users with given input array
@ -95,12 +95,12 @@ namespace Example
public void main() public void main()
{ {
var apiInstance = new UserApi(); var apiInstance = new UserApi();
var user = new List<User>(); // List<User> | List of user object var body = new List<User>(); // List<User> | List of user object
try try
{ {
// Creates list of users with given input array // Creates list of users with given input array
apiInstance.CreateUsersWithArrayInput(user); apiInstance.CreateUsersWithArrayInput(body);
} }
catch (Exception e) catch (Exception e)
{ {
@ -115,7 +115,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**List&lt;User&gt;**](List.md)| List of user object | **body** | [**List&lt;User&gt;**](List.md)| List of user object |
### Return type ### Return type
@ -134,7 +134,7 @@ No authorization required
<a name="createuserswithlistinput"></a> <a name="createuserswithlistinput"></a>
# **CreateUsersWithListInput** # **CreateUsersWithListInput**
> void CreateUsersWithListInput (List<User> user) > void CreateUsersWithListInput (List<User> body)
Creates list of users with given input array Creates list of users with given input array
@ -153,12 +153,12 @@ namespace Example
public void main() public void main()
{ {
var apiInstance = new UserApi(); var apiInstance = new UserApi();
var user = new List<User>(); // List<User> | List of user object var body = new List<User>(); // List<User> | List of user object
try try
{ {
// Creates list of users with given input array // Creates list of users with given input array
apiInstance.CreateUsersWithListInput(user); apiInstance.CreateUsersWithListInput(body);
} }
catch (Exception e) catch (Exception e)
{ {
@ -173,7 +173,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**List&lt;User&gt;**](List.md)| List of user object | **body** | [**List&lt;User&gt;**](List.md)| List of user object |
### Return type ### Return type
@ -426,7 +426,7 @@ No authorization required
<a name="updateuser"></a> <a name="updateuser"></a>
# **UpdateUser** # **UpdateUser**
> void UpdateUser (string username, User user) > void UpdateUser (string username, User body)
Updated user Updated user
@ -448,12 +448,12 @@ namespace Example
{ {
var apiInstance = new UserApi(); var apiInstance = new UserApi();
var username = username_example; // string | name that need to be deleted var username = username_example; // string | name that need to be deleted
var user = new User(); // User | Updated user object var body = new User(); // User | Updated user object
try try
{ {
// Updated user // Updated user
apiInstance.UpdateUser(username, user); apiInstance.UpdateUser(username, body);
} }
catch (Exception e) catch (Exception e)
{ {
@ -469,7 +469,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**username** | **string**| name that need to be deleted | **username** | **string**| name that need to be deleted |
**user** | [**User**](User.md)| Updated user object | **body** | [**User**](User.md)| Updated user object |
### Return type ### Return type

View File

@ -72,7 +72,45 @@ namespace Org.OpenAPITools.Test
[Test] [Test]
public void ArrayArrayNumberTest() public void ArrayArrayNumberTest()
{ {
// TODO unit test for the property 'ArrayArrayNumber' // 1st instance
ArrayOfArrayOfNumberOnly instance1 = new ArrayOfArrayOfNumberOnly();
List<decimal?> list1 = new List<decimal?>();
list1.Add(11.1m);
list1.Add(8.9m);
List<List<decimal?>> listOfList1 = new List<List<decimal?>>();
listOfList1.Add(list1);
instance1.ArrayArrayNumber = listOfList1;
// 2nd instance
ArrayOfArrayOfNumberOnly instance2 = new ArrayOfArrayOfNumberOnly();
List<decimal?> list2 = new List<decimal?>();
list2.Add(11.1m);
list2.Add(8.9m);
List<List<decimal?>> listOfList2 = new List<List<decimal?>>();
listOfList2.Add(list2);
instance2.ArrayArrayNumber = listOfList2;
Assert.IsTrue(instance1.Equals(instance2));
// add one more element to list2
list2.Add(183.3m);
Assert.IsFalse(instance1.Equals(instance2));
// 3rd instance
ArrayOfArrayOfNumberOnly instance3 = new ArrayOfArrayOfNumberOnly();
List<decimal?> list3 = new List<decimal?>();
list3.Add(11.1m);
list3.Add(1.1m); // not the same as 8.9
List<List<decimal?>> listOfList3 = new List<List<decimal?>>();
instance2.ArrayArrayNumber = listOfList3;
Assert.IsFalse(instance1.Equals(instance3));
} }
} }

View File

@ -33,9 +33,10 @@ namespace Org.OpenAPITools.Test
[TestFixture] [TestFixture]
public class PetTests public class PetTests
{ {
// TODO uncomment below to declare an instance variable for Pet
//private Pet instance; //private Pet instance;
private long petId = 11088;
/// <summary> /// <summary>
/// Setup before each test /// Setup before each test
/// </summary> /// </summary>
@ -115,6 +116,70 @@ namespace Org.OpenAPITools.Test
// TODO unit test for the property 'Status' // TODO unit test for the property 'Status'
} }
/// <summary>
/// Test Equal
/// </summary>
[Test()]
public void TestEqual()
{
// create pet
Pet p1 = new Pet(name: "Csharp test", photoUrls: new List<string> { "http://petstore.com/csharp_test" });
p1.Id = petId;
//p1.Name = "Csharp test";
p1.Status = Pet.StatusEnum.Available;
// create Category object
Category category1 = new Category();
category1.Id = 56;
category1.Name = "sample category name2";
List<String> photoUrls1 = new List<String>(new String[] { "sample photoUrls" });
// create Tag object
Tag tag1 = new Tag();
tag1.Id = petId;
tag1.Name = "csharp sample tag name1";
List<Tag> tags1 = new List<Tag>(new Tag[] { tag1 });
p1.Tags = tags1;
p1.Category = category1;
p1.PhotoUrls = photoUrls1;
// create pet 2
Pet p2 = new Pet(name: "Csharp test", photoUrls: new List<string> { "http://petstore.com/csharp_test" });
p2.Id = petId;
p2.Name = "Csharp test";
p2.Status = Pet.StatusEnum.Available;
// create Category object
Category category2 = new Category();
category2.Id = 56;
category2.Name = "sample category name2";
List<String> photoUrls2 = new List<String>(new String[] { "sample photoUrls" });
// create Tag object
Tag tag2 = new Tag();
tag2.Id = petId;
tag2.Name = "csharp sample tag name1";
List<Tag> tags2 = new List<Tag>(new Tag[] { tag2 });
p2.Tags = tags2;
p2.Category = category2;
p2.PhotoUrls = photoUrls2;
// p1 and p2 should be equal (both object and attribute level)
Assert.IsTrue(category1.Equals(category2));
Assert.IsTrue(tags1.SequenceEqual(tags2));
Assert.IsTrue(p1.PhotoUrls.SequenceEqual(p2.PhotoUrls));
Assert.IsTrue(p1.Equals(p2));
// update attribute to that p1 and p2 are not equal
category2.Name = "new category name";
Assert.IsFalse(category1.Equals(category2));
tags2 = new List<Tag>();
Assert.IsFalse(tags1.SequenceEqual(tags2));
// photoUrls has not changed so it should be equal
Assert.IsTrue(p1.PhotoUrls.SequenceEqual(p2.PhotoUrls));
Assert.IsFalse(p1.Equals(p2));
}
} }
} }

View File

@ -34,9 +34,9 @@ namespace Org.OpenAPITools.Api
/// To test special tags and operation ID starting with number /// To test special tags and operation ID starting with number
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>ModelClient</returns> /// <returns>ModelClient</returns>
ModelClient Call123TestSpecialTags (ModelClient modelClient); ModelClient Call123TestSpecialTags (ModelClient body);
/// <summary> /// <summary>
/// To test special tags /// To test special tags
@ -45,9 +45,9 @@ namespace Org.OpenAPITools.Api
/// To test special tags and operation ID starting with number /// To test special tags and operation ID starting with number
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>ApiResponse of ModelClient</returns> /// <returns>ApiResponse of ModelClient</returns>
ApiResponse<ModelClient> Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient); ApiResponse<ModelClient> Call123TestSpecialTagsWithHttpInfo (ModelClient body);
#endregion Synchronous Operations #endregion Synchronous Operations
} }
@ -64,9 +64,9 @@ namespace Org.OpenAPITools.Api
/// To test special tags and operation ID starting with number /// To test special tags and operation ID starting with number
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>Task of ModelClient</returns> /// <returns>Task of ModelClient</returns>
System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient modelClient); System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient body);
/// <summary> /// <summary>
/// To test special tags /// To test special tags
@ -75,9 +75,9 @@ namespace Org.OpenAPITools.Api
/// To test special tags and operation ID starting with number /// To test special tags and operation ID starting with number
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>Task of ApiResponse (ModelClient)</returns> /// <returns>Task of ApiResponse (ModelClient)</returns>
System.Threading.Tasks.Task<ApiResponse<ModelClient>> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient modelClient); System.Threading.Tasks.Task<ApiResponse<ModelClient>> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient body);
#endregion Asynchronous Operations #endregion Asynchronous Operations
} }
@ -202,11 +202,11 @@ namespace Org.OpenAPITools.Api
/// To test special tags To test special tags and operation ID starting with number /// To test special tags To test special tags and operation ID starting with number
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>ModelClient</returns> /// <returns>ModelClient</returns>
public ModelClient Call123TestSpecialTags (ModelClient modelClient) public ModelClient Call123TestSpecialTags (ModelClient body)
{ {
Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient); Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = Call123TestSpecialTagsWithHttpInfo(body);
return localVarResponse.Data; return localVarResponse.Data;
} }
@ -214,13 +214,13 @@ namespace Org.OpenAPITools.Api
/// To test special tags To test special tags and operation ID starting with number /// To test special tags To test special tags and operation ID starting with number
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>ApiResponse of ModelClient</returns> /// <returns>ApiResponse of ModelClient</returns>
public Org.OpenAPITools.Client.ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient) public Org.OpenAPITools.Client.ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient body)
{ {
// verify the required parameter 'modelClient' is set // verify the required parameter 'body' is set
if (modelClient == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -239,7 +239,7 @@ namespace Org.OpenAPITools.Api
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts); var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept); if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
requestOptions.Data = modelClient; requestOptions.Data = body;
// make the HTTP request // make the HTTP request
@ -259,11 +259,11 @@ namespace Org.OpenAPITools.Api
/// To test special tags To test special tags and operation ID starting with number /// To test special tags To test special tags and operation ID starting with number
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>Task of ModelClient</returns> /// <returns>Task of ModelClient</returns>
public async System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient modelClient) public async System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient body)
{ {
Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = await Call123TestSpecialTagsAsyncWithHttpInfo(modelClient); Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = await Call123TestSpecialTagsAsyncWithHttpInfo(body);
return localVarResponse.Data; return localVarResponse.Data;
} }
@ -272,13 +272,13 @@ namespace Org.OpenAPITools.Api
/// To test special tags To test special tags and operation ID starting with number /// To test special tags To test special tags and operation ID starting with number
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>Task of ApiResponse (ModelClient)</returns> /// <returns>Task of ApiResponse (ModelClient)</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<ModelClient>> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient modelClient) public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<ModelClient>> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient body)
{ {
// verify the required parameter 'modelClient' is set // verify the required parameter 'body' is set
if (modelClient == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -297,7 +297,7 @@ namespace Org.OpenAPITools.Api
foreach (var accept in @accepts) foreach (var accept in @accepts)
requestOptions.HeaderParameters.Add("Accept", accept); requestOptions.HeaderParameters.Add("Accept", accept);
requestOptions.Data = modelClient; requestOptions.Data = body;
// make the HTTP request // make the HTTP request

View File

@ -55,9 +55,9 @@ namespace Org.OpenAPITools.Api
/// Test serialization of object with outer number type /// Test serialization of object with outer number type
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="outerComposite">Input composite as post body (optional)</param> /// <param name="body">Input composite as post body (optional)</param>
/// <returns>OuterComposite</returns> /// <returns>OuterComposite</returns>
OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null); OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null);
/// <summary> /// <summary>
/// ///
@ -66,9 +66,9 @@ namespace Org.OpenAPITools.Api
/// Test serialization of object with outer number type /// Test serialization of object with outer number type
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="outerComposite">Input composite as post body (optional)</param> /// <param name="body">Input composite as post body (optional)</param>
/// <returns>ApiResponse of OuterComposite</returns> /// <returns>ApiResponse of OuterComposite</returns>
ApiResponse<OuterComposite> FakeOuterCompositeSerializeWithHttpInfo (OuterComposite outerComposite = null); ApiResponse<OuterComposite> FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -118,9 +118,9 @@ namespace Org.OpenAPITools.Api
/// For this test, the body for this request much reference a schema named &#x60;File&#x60;. /// For this test, the body for this request much reference a schema named &#x60;File&#x60;.
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="fileSchemaTestClass"></param> /// <param name="body"></param>
/// <returns></returns> /// <returns></returns>
void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass); void TestBodyWithFileSchema (FileSchemaTestClass body);
/// <summary> /// <summary>
/// ///
@ -129,9 +129,9 @@ namespace Org.OpenAPITools.Api
/// For this test, the body for this request much reference a schema named &#x60;File&#x60;. /// For this test, the body for this request much reference a schema named &#x60;File&#x60;.
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="fileSchemaTestClass"></param> /// <param name="body"></param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass); ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -140,9 +140,9 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param> /// <param name="query"></param>
/// <param name="user"></param> /// <param name="body"></param>
/// <returns></returns> /// <returns></returns>
void TestBodyWithQueryParams (string query, User user); void TestBodyWithQueryParams (string query, User body);
/// <summary> /// <summary>
/// ///
@ -152,9 +152,9 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param> /// <param name="query"></param>
/// <param name="user"></param> /// <param name="body"></param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User user); ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User body);
/// <summary> /// <summary>
/// To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model
/// </summary> /// </summary>
@ -162,9 +162,9 @@ namespace Org.OpenAPITools.Api
/// To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>ModelClient</returns> /// <returns>ModelClient</returns>
ModelClient TestClientModel (ModelClient modelClient); ModelClient TestClientModel (ModelClient body);
/// <summary> /// <summary>
/// To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model
@ -173,9 +173,9 @@ namespace Org.OpenAPITools.Api
/// To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>ApiResponse of ModelClient</returns> /// <returns>ApiResponse of ModelClient</returns>
ApiResponse<ModelClient> TestClientModelWithHttpInfo (ModelClient modelClient); ApiResponse<ModelClient> TestClientModelWithHttpInfo (ModelClient body);
/// <summary> /// <summary>
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
/// </summary> /// </summary>
@ -296,9 +296,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="requestBody">request body</param> /// <param name="param">request body</param>
/// <returns></returns> /// <returns></returns>
void TestInlineAdditionalProperties (Dictionary<string, string> requestBody); void TestInlineAdditionalProperties (Dictionary<string, string> param);
/// <summary> /// <summary>
/// test inline additionalProperties /// test inline additionalProperties
@ -307,9 +307,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="requestBody">request body</param> /// <param name="param">request body</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> requestBody); ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> param);
/// <summary> /// <summary>
/// test json serialization of form data /// test json serialization of form data
/// </summary> /// </summary>
@ -370,9 +370,9 @@ namespace Org.OpenAPITools.Api
/// Test serialization of object with outer number type /// Test serialization of object with outer number type
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="outerComposite">Input composite as post body (optional)</param> /// <param name="body">Input composite as post body (optional)</param>
/// <returns>Task of OuterComposite</returns> /// <returns>Task of OuterComposite</returns>
System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite outerComposite = null); System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = null);
/// <summary> /// <summary>
/// ///
@ -381,9 +381,9 @@ namespace Org.OpenAPITools.Api
/// Test serialization of object with outer number type /// Test serialization of object with outer number type
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="outerComposite">Input composite as post body (optional)</param> /// <param name="body">Input composite as post body (optional)</param>
/// <returns>Task of ApiResponse (OuterComposite)</returns> /// <returns>Task of ApiResponse (OuterComposite)</returns>
System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite outerComposite = null); System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = null);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -433,9 +433,9 @@ namespace Org.OpenAPITools.Api
/// For this test, the body for this request much reference a schema named &#x60;File&#x60;. /// For this test, the body for this request much reference a schema named &#x60;File&#x60;.
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="fileSchemaTestClass"></param> /// <param name="body"></param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass fileSchemaTestClass); System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass body);
/// <summary> /// <summary>
/// ///
@ -444,9 +444,9 @@ namespace Org.OpenAPITools.Api
/// For this test, the body for this request much reference a schema named &#x60;File&#x60;. /// For this test, the body for this request much reference a schema named &#x60;File&#x60;.
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="fileSchemaTestClass"></param> /// <param name="body"></param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass fileSchemaTestClass); System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass body);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -455,9 +455,9 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param> /// <param name="query"></param>
/// <param name="user"></param> /// <param name="body"></param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User user); System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User body);
/// <summary> /// <summary>
/// ///
@ -467,9 +467,9 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param> /// <param name="query"></param>
/// <param name="user"></param> /// <param name="body"></param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User user); System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User body);
/// <summary> /// <summary>
/// To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model
/// </summary> /// </summary>
@ -477,9 +477,9 @@ namespace Org.OpenAPITools.Api
/// To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>Task of ModelClient</returns> /// <returns>Task of ModelClient</returns>
System.Threading.Tasks.Task<ModelClient> TestClientModelAsync (ModelClient modelClient); System.Threading.Tasks.Task<ModelClient> TestClientModelAsync (ModelClient body);
/// <summary> /// <summary>
/// To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model
@ -488,9 +488,9 @@ namespace Org.OpenAPITools.Api
/// To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>Task of ApiResponse (ModelClient)</returns> /// <returns>Task of ApiResponse (ModelClient)</returns>
System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClientModelAsyncWithHttpInfo (ModelClient modelClient); System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClientModelAsyncWithHttpInfo (ModelClient body);
/// <summary> /// <summary>
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
/// </summary> /// </summary>
@ -611,9 +611,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="requestBody">request body</param> /// <param name="param">request body</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary<string, string> requestBody); System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary<string, string> param);
/// <summary> /// <summary>
/// test inline additionalProperties /// test inline additionalProperties
@ -622,9 +622,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="requestBody">request body</param> /// <param name="param">request body</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary<string, string> requestBody); System.Threading.Tasks.Task<ApiResponse<Object>> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary<string, string> param);
/// <summary> /// <summary>
/// test json serialization of form data /// test json serialization of form data
/// </summary> /// </summary>
@ -879,11 +879,11 @@ namespace Org.OpenAPITools.Api
/// Test serialization of object with outer number type /// Test serialization of object with outer number type
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="outerComposite">Input composite as post body (optional)</param> /// <param name="body">Input composite as post body (optional)</param>
/// <returns>OuterComposite</returns> /// <returns>OuterComposite</returns>
public OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null) public OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
{ {
Org.OpenAPITools.Client.ApiResponse<OuterComposite> localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite); Org.OpenAPITools.Client.ApiResponse<OuterComposite> localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(body);
return localVarResponse.Data; return localVarResponse.Data;
} }
@ -891,9 +891,9 @@ namespace Org.OpenAPITools.Api
/// Test serialization of object with outer number type /// Test serialization of object with outer number type
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="outerComposite">Input composite as post body (optional)</param> /// <param name="body">Input composite as post body (optional)</param>
/// <returns>ApiResponse of OuterComposite</returns> /// <returns>ApiResponse of OuterComposite</returns>
public Org.OpenAPITools.Client.ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite outerComposite = null) public Org.OpenAPITools.Client.ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null)
{ {
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -912,7 +912,7 @@ namespace Org.OpenAPITools.Api
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts); var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept); if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
requestOptions.Data = outerComposite; requestOptions.Data = body;
// make the HTTP request // make the HTTP request
@ -932,11 +932,11 @@ namespace Org.OpenAPITools.Api
/// Test serialization of object with outer number type /// Test serialization of object with outer number type
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="outerComposite">Input composite as post body (optional)</param> /// <param name="body">Input composite as post body (optional)</param>
/// <returns>Task of OuterComposite</returns> /// <returns>Task of OuterComposite</returns>
public async System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite outerComposite = null) public async System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = null)
{ {
Org.OpenAPITools.Client.ApiResponse<OuterComposite> localVarResponse = await FakeOuterCompositeSerializeAsyncWithHttpInfo(outerComposite); Org.OpenAPITools.Client.ApiResponse<OuterComposite> localVarResponse = await FakeOuterCompositeSerializeAsyncWithHttpInfo(body);
return localVarResponse.Data; return localVarResponse.Data;
} }
@ -945,9 +945,9 @@ namespace Org.OpenAPITools.Api
/// Test serialization of object with outer number type /// Test serialization of object with outer number type
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="outerComposite">Input composite as post body (optional)</param> /// <param name="body">Input composite as post body (optional)</param>
/// <returns>Task of ApiResponse (OuterComposite)</returns> /// <returns>Task of ApiResponse (OuterComposite)</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite outerComposite = null) public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = null)
{ {
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -966,7 +966,7 @@ namespace Org.OpenAPITools.Api
foreach (var accept in @accepts) foreach (var accept in @accepts)
requestOptions.HeaderParameters.Add("Accept", accept); requestOptions.HeaderParameters.Add("Accept", accept);
requestOptions.Data = outerComposite; requestOptions.Data = body;
// make the HTTP request // make the HTTP request
@ -1200,24 +1200,24 @@ namespace Org.OpenAPITools.Api
/// For this test, the body for this request much reference a schema named &#x60;File&#x60;. /// For this test, the body for this request much reference a schema named &#x60;File&#x60;.
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="fileSchemaTestClass"></param> /// <param name="body"></param>
/// <returns></returns> /// <returns></returns>
public void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass) public void TestBodyWithFileSchema (FileSchemaTestClass body)
{ {
TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); TestBodyWithFileSchemaWithHttpInfo(body);
} }
/// <summary> /// <summary>
/// For this test, the body for this request much reference a schema named &#x60;File&#x60;. /// For this test, the body for this request much reference a schema named &#x60;File&#x60;.
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="fileSchemaTestClass"></param> /// <param name="body"></param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public Org.OpenAPITools.Client.ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass) public Org.OpenAPITools.Client.ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body)
{ {
// verify the required parameter 'fileSchemaTestClass' is set // verify the required parameter 'body' is set
if (fileSchemaTestClass == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithFileSchema");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -1235,7 +1235,7 @@ namespace Org.OpenAPITools.Api
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts); var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept); if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
requestOptions.Data = fileSchemaTestClass; requestOptions.Data = body;
// make the HTTP request // make the HTTP request
@ -1255,11 +1255,11 @@ namespace Org.OpenAPITools.Api
/// For this test, the body for this request much reference a schema named &#x60;File&#x60;. /// For this test, the body for this request much reference a schema named &#x60;File&#x60;.
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="fileSchemaTestClass"></param> /// <param name="body"></param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass fileSchemaTestClass) public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass body)
{ {
await TestBodyWithFileSchemaAsyncWithHttpInfo(fileSchemaTestClass); await TestBodyWithFileSchemaAsyncWithHttpInfo(body);
} }
@ -1267,13 +1267,13 @@ namespace Org.OpenAPITools.Api
/// For this test, the body for this request much reference a schema named &#x60;File&#x60;. /// For this test, the body for this request much reference a schema named &#x60;File&#x60;.
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="fileSchemaTestClass"></param> /// <param name="body"></param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass fileSchemaTestClass) public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass body)
{ {
// verify the required parameter 'fileSchemaTestClass' is set // verify the required parameter 'body' is set
if (fileSchemaTestClass == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithFileSchema");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -1291,7 +1291,7 @@ namespace Org.OpenAPITools.Api
foreach (var accept in @accepts) foreach (var accept in @accepts)
requestOptions.HeaderParameters.Add("Accept", accept); requestOptions.HeaderParameters.Add("Accept", accept);
requestOptions.Data = fileSchemaTestClass; requestOptions.Data = body;
// make the HTTP request // make the HTTP request
@ -1312,11 +1312,11 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param> /// <param name="query"></param>
/// <param name="user"></param> /// <param name="body"></param>
/// <returns></returns> /// <returns></returns>
public void TestBodyWithQueryParams (string query, User user) public void TestBodyWithQueryParams (string query, User body)
{ {
TestBodyWithQueryParamsWithHttpInfo(query, user); TestBodyWithQueryParamsWithHttpInfo(query, body);
} }
/// <summary> /// <summary>
@ -1324,16 +1324,16 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param> /// <param name="query"></param>
/// <param name="user"></param> /// <param name="body"></param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public Org.OpenAPITools.Client.ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User user) public Org.OpenAPITools.Client.ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User body)
{ {
// verify the required parameter 'query' is set // verify the required parameter 'query' is set
if (query == null) if (query == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams");
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithQueryParams");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -1361,7 +1361,7 @@ namespace Org.OpenAPITools.Api
} }
} }
} }
requestOptions.Data = user; requestOptions.Data = body;
// make the HTTP request // make the HTTP request
@ -1382,11 +1382,11 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param> /// <param name="query"></param>
/// <param name="user"></param> /// <param name="body"></param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User user) public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User body)
{ {
await TestBodyWithQueryParamsAsyncWithHttpInfo(query, user); await TestBodyWithQueryParamsAsyncWithHttpInfo(query, body);
} }
@ -1395,16 +1395,16 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param> /// <param name="query"></param>
/// <param name="user"></param> /// <param name="body"></param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User user) public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User body)
{ {
// verify the required parameter 'query' is set // verify the required parameter 'query' is set
if (query == null) if (query == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams");
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithQueryParams");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -1432,7 +1432,7 @@ namespace Org.OpenAPITools.Api
} }
} }
} }
requestOptions.Data = user; requestOptions.Data = body;
// make the HTTP request // make the HTTP request
@ -1452,11 +1452,11 @@ namespace Org.OpenAPITools.Api
/// To test \&quot;client\&quot; model To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model To test \&quot;client\&quot; model
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>ModelClient</returns> /// <returns>ModelClient</returns>
public ModelClient TestClientModel (ModelClient modelClient) public ModelClient TestClientModel (ModelClient body)
{ {
Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = TestClientModelWithHttpInfo(modelClient); Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = TestClientModelWithHttpInfo(body);
return localVarResponse.Data; return localVarResponse.Data;
} }
@ -1464,13 +1464,13 @@ namespace Org.OpenAPITools.Api
/// To test \&quot;client\&quot; model To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model To test \&quot;client\&quot; model
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>ApiResponse of ModelClient</returns> /// <returns>ApiResponse of ModelClient</returns>
public Org.OpenAPITools.Client.ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient modelClient) public Org.OpenAPITools.Client.ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient body)
{ {
// verify the required parameter 'modelClient' is set // verify the required parameter 'body' is set
if (modelClient == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestClientModel");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -1489,7 +1489,7 @@ namespace Org.OpenAPITools.Api
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts); var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept); if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
requestOptions.Data = modelClient; requestOptions.Data = body;
// make the HTTP request // make the HTTP request
@ -1509,11 +1509,11 @@ namespace Org.OpenAPITools.Api
/// To test \&quot;client\&quot; model To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model To test \&quot;client\&quot; model
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>Task of ModelClient</returns> /// <returns>Task of ModelClient</returns>
public async System.Threading.Tasks.Task<ModelClient> TestClientModelAsync (ModelClient modelClient) public async System.Threading.Tasks.Task<ModelClient> TestClientModelAsync (ModelClient body)
{ {
Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = await TestClientModelAsyncWithHttpInfo(modelClient); Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = await TestClientModelAsyncWithHttpInfo(body);
return localVarResponse.Data; return localVarResponse.Data;
} }
@ -1522,13 +1522,13 @@ namespace Org.OpenAPITools.Api
/// To test \&quot;client\&quot; model To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model To test \&quot;client\&quot; model
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>Task of ApiResponse (ModelClient)</returns> /// <returns>Task of ApiResponse (ModelClient)</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<ModelClient>> TestClientModelAsyncWithHttpInfo (ModelClient modelClient) public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<ModelClient>> TestClientModelAsyncWithHttpInfo (ModelClient body)
{ {
// verify the required parameter 'modelClient' is set // verify the required parameter 'body' is set
if (modelClient == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestClientModel");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -1547,7 +1547,7 @@ namespace Org.OpenAPITools.Api
foreach (var accept in @accepts) foreach (var accept in @accepts)
requestOptions.HeaderParameters.Add("Accept", accept); requestOptions.HeaderParameters.Add("Accept", accept);
requestOptions.Data = modelClient; requestOptions.Data = body;
// make the HTTP request // make the HTTP request
@ -2332,24 +2332,24 @@ namespace Org.OpenAPITools.Api
/// test inline additionalProperties /// test inline additionalProperties
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="requestBody">request body</param> /// <param name="param">request body</param>
/// <returns></returns> /// <returns></returns>
public void TestInlineAdditionalProperties (Dictionary<string, string> requestBody) public void TestInlineAdditionalProperties (Dictionary<string, string> param)
{ {
TestInlineAdditionalPropertiesWithHttpInfo(requestBody); TestInlineAdditionalPropertiesWithHttpInfo(param);
} }
/// <summary> /// <summary>
/// test inline additionalProperties /// test inline additionalProperties
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="requestBody">request body</param> /// <param name="param">request body</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public Org.OpenAPITools.Client.ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> requestBody) public Org.OpenAPITools.Client.ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> param)
{ {
// verify the required parameter 'requestBody' is set // verify the required parameter 'param' is set
if (requestBody == null) if (param == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'param' when calling FakeApi->TestInlineAdditionalProperties");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -2367,7 +2367,7 @@ namespace Org.OpenAPITools.Api
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts); var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept); if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
requestOptions.Data = requestBody; requestOptions.Data = param;
// make the HTTP request // make the HTTP request
@ -2387,11 +2387,11 @@ namespace Org.OpenAPITools.Api
/// test inline additionalProperties /// test inline additionalProperties
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="requestBody">request body</param> /// <param name="param">request body</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary<string, string> requestBody) public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary<string, string> param)
{ {
await TestInlineAdditionalPropertiesAsyncWithHttpInfo(requestBody); await TestInlineAdditionalPropertiesAsyncWithHttpInfo(param);
} }
@ -2399,13 +2399,13 @@ namespace Org.OpenAPITools.Api
/// test inline additionalProperties /// test inline additionalProperties
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="requestBody">request body</param> /// <param name="param">request body</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary<string, string> requestBody) public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary<string, string> param)
{ {
// verify the required parameter 'requestBody' is set // verify the required parameter 'param' is set
if (requestBody == null) if (param == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'param' when calling FakeApi->TestInlineAdditionalProperties");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -2423,7 +2423,7 @@ namespace Org.OpenAPITools.Api
foreach (var accept in @accepts) foreach (var accept in @accepts)
requestOptions.HeaderParameters.Add("Accept", accept); requestOptions.HeaderParameters.Add("Accept", accept);
requestOptions.Data = requestBody; requestOptions.Data = param;
// make the HTTP request // make the HTTP request

View File

@ -34,9 +34,9 @@ namespace Org.OpenAPITools.Api
/// To test class name in snake case /// To test class name in snake case
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>ModelClient</returns> /// <returns>ModelClient</returns>
ModelClient TestClassname (ModelClient modelClient); ModelClient TestClassname (ModelClient body);
/// <summary> /// <summary>
/// To test class name in snake case /// To test class name in snake case
@ -45,9 +45,9 @@ namespace Org.OpenAPITools.Api
/// To test class name in snake case /// To test class name in snake case
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>ApiResponse of ModelClient</returns> /// <returns>ApiResponse of ModelClient</returns>
ApiResponse<ModelClient> TestClassnameWithHttpInfo (ModelClient modelClient); ApiResponse<ModelClient> TestClassnameWithHttpInfo (ModelClient body);
#endregion Synchronous Operations #endregion Synchronous Operations
} }
@ -64,9 +64,9 @@ namespace Org.OpenAPITools.Api
/// To test class name in snake case /// To test class name in snake case
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>Task of ModelClient</returns> /// <returns>Task of ModelClient</returns>
System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient modelClient); System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient body);
/// <summary> /// <summary>
/// To test class name in snake case /// To test class name in snake case
@ -75,9 +75,9 @@ namespace Org.OpenAPITools.Api
/// To test class name in snake case /// To test class name in snake case
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>Task of ApiResponse (ModelClient)</returns> /// <returns>Task of ApiResponse (ModelClient)</returns>
System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClassnameAsyncWithHttpInfo (ModelClient modelClient); System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClassnameAsyncWithHttpInfo (ModelClient body);
#endregion Asynchronous Operations #endregion Asynchronous Operations
} }
@ -202,11 +202,11 @@ namespace Org.OpenAPITools.Api
/// To test class name in snake case To test class name in snake case /// To test class name in snake case To test class name in snake case
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>ModelClient</returns> /// <returns>ModelClient</returns>
public ModelClient TestClassname (ModelClient modelClient) public ModelClient TestClassname (ModelClient body)
{ {
Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = TestClassnameWithHttpInfo(modelClient); Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = TestClassnameWithHttpInfo(body);
return localVarResponse.Data; return localVarResponse.Data;
} }
@ -214,13 +214,13 @@ namespace Org.OpenAPITools.Api
/// To test class name in snake case To test class name in snake case /// To test class name in snake case To test class name in snake case
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>ApiResponse of ModelClient</returns> /// <returns>ApiResponse of ModelClient</returns>
public Org.OpenAPITools.Client.ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient modelClient) public Org.OpenAPITools.Client.ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient body)
{ {
// verify the required parameter 'modelClient' is set // verify the required parameter 'body' is set
if (modelClient == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -239,7 +239,7 @@ namespace Org.OpenAPITools.Api
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts); var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept); if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
requestOptions.Data = modelClient; requestOptions.Data = body;
// authentication (api_key_query) required // authentication (api_key_query) required
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query"))) if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
@ -270,11 +270,11 @@ namespace Org.OpenAPITools.Api
/// To test class name in snake case To test class name in snake case /// To test class name in snake case To test class name in snake case
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>Task of ModelClient</returns> /// <returns>Task of ModelClient</returns>
public async System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient modelClient) public async System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient body)
{ {
Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = await TestClassnameAsyncWithHttpInfo(modelClient); Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = await TestClassnameAsyncWithHttpInfo(body);
return localVarResponse.Data; return localVarResponse.Data;
} }
@ -283,13 +283,13 @@ namespace Org.OpenAPITools.Api
/// To test class name in snake case To test class name in snake case /// To test class name in snake case To test class name in snake case
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="modelClient">client model</param> /// <param name="body">client model</param>
/// <returns>Task of ApiResponse (ModelClient)</returns> /// <returns>Task of ApiResponse (ModelClient)</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<ModelClient>> TestClassnameAsyncWithHttpInfo (ModelClient modelClient) public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<ModelClient>> TestClassnameAsyncWithHttpInfo (ModelClient body)
{ {
// verify the required parameter 'modelClient' is set // verify the required parameter 'body' is set
if (modelClient == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -308,7 +308,7 @@ namespace Org.OpenAPITools.Api
foreach (var accept in @accepts) foreach (var accept in @accepts)
requestOptions.HeaderParameters.Add("Accept", accept); requestOptions.HeaderParameters.Add("Accept", accept);
requestOptions.Data = modelClient; requestOptions.Data = body;
// authentication (api_key_query) required // authentication (api_key_query) required
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query"))) if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))

View File

@ -34,9 +34,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="pet">Pet object that needs to be added to the store</param> /// <param name="body">Pet object that needs to be added to the store</param>
/// <returns></returns> /// <returns></returns>
void AddPet (Pet pet); void AddPet (Pet body);
/// <summary> /// <summary>
/// Add a new pet to the store /// Add a new pet to the store
@ -45,9 +45,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="pet">Pet object that needs to be added to the store</param> /// <param name="body">Pet object that needs to be added to the store</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> AddPetWithHttpInfo (Pet pet); ApiResponse<Object> AddPetWithHttpInfo (Pet body);
/// <summary> /// <summary>
/// Deletes a pet /// Deletes a pet
/// </summary> /// </summary>
@ -141,9 +141,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="pet">Pet object that needs to be added to the store</param> /// <param name="body">Pet object that needs to be added to the store</param>
/// <returns></returns> /// <returns></returns>
void UpdatePet (Pet pet); void UpdatePet (Pet body);
/// <summary> /// <summary>
/// Update an existing pet /// Update an existing pet
@ -152,9 +152,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="pet">Pet object that needs to be added to the store</param> /// <param name="body">Pet object that needs to be added to the store</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> UpdatePetWithHttpInfo (Pet pet); ApiResponse<Object> UpdatePetWithHttpInfo (Pet body);
/// <summary> /// <summary>
/// Updates a pet in the store with form data /// Updates a pet in the store with form data
/// </summary> /// </summary>
@ -246,9 +246,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="pet">Pet object that needs to be added to the store</param> /// <param name="body">Pet object that needs to be added to the store</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
System.Threading.Tasks.Task AddPetAsync (Pet pet); System.Threading.Tasks.Task AddPetAsync (Pet body);
/// <summary> /// <summary>
/// Add a new pet to the store /// Add a new pet to the store
@ -257,9 +257,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="pet">Pet object that needs to be added to the store</param> /// <param name="body">Pet object that needs to be added to the store</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet pet); System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet body);
/// <summary> /// <summary>
/// Deletes a pet /// Deletes a pet
/// </summary> /// </summary>
@ -353,9 +353,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="pet">Pet object that needs to be added to the store</param> /// <param name="body">Pet object that needs to be added to the store</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
System.Threading.Tasks.Task UpdatePetAsync (Pet pet); System.Threading.Tasks.Task UpdatePetAsync (Pet body);
/// <summary> /// <summary>
/// Update an existing pet /// Update an existing pet
@ -364,9 +364,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="pet">Pet object that needs to be added to the store</param> /// <param name="body">Pet object that needs to be added to the store</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet pet); System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet body);
/// <summary> /// <summary>
/// Updates a pet in the store with form data /// Updates a pet in the store with form data
/// </summary> /// </summary>
@ -566,24 +566,24 @@ namespace Org.OpenAPITools.Api
/// Add a new pet to the store /// Add a new pet to the store
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="pet">Pet object that needs to be added to the store</param> /// <param name="body">Pet object that needs to be added to the store</param>
/// <returns></returns> /// <returns></returns>
public void AddPet (Pet pet) public void AddPet (Pet body)
{ {
AddPetWithHttpInfo(pet); AddPetWithHttpInfo(body);
} }
/// <summary> /// <summary>
/// Add a new pet to the store /// Add a new pet to the store
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="pet">Pet object that needs to be added to the store</param> /// <param name="body">Pet object that needs to be added to the store</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public Org.OpenAPITools.Client.ApiResponse<Object> AddPetWithHttpInfo (Pet pet) public Org.OpenAPITools.Client.ApiResponse<Object> AddPetWithHttpInfo (Pet body)
{ {
// verify the required parameter 'pet' is set // verify the required parameter 'body' is set
if (pet == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -602,7 +602,7 @@ namespace Org.OpenAPITools.Api
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts); var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept); if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
requestOptions.Data = pet; requestOptions.Data = body;
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required
@ -628,11 +628,11 @@ namespace Org.OpenAPITools.Api
/// Add a new pet to the store /// Add a new pet to the store
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="pet">Pet object that needs to be added to the store</param> /// <param name="body">Pet object that needs to be added to the store</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
public async System.Threading.Tasks.Task AddPetAsync (Pet pet) public async System.Threading.Tasks.Task AddPetAsync (Pet body)
{ {
await AddPetAsyncWithHttpInfo(pet); await AddPetAsyncWithHttpInfo(body);
} }
@ -640,13 +640,13 @@ namespace Org.OpenAPITools.Api
/// Add a new pet to the store /// Add a new pet to the store
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="pet">Pet object that needs to be added to the store</param> /// <param name="body">Pet object that needs to be added to the store</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet pet) public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet body)
{ {
// verify the required parameter 'pet' is set // verify the required parameter 'body' is set
if (pet == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -665,7 +665,7 @@ namespace Org.OpenAPITools.Api
foreach (var accept in @accepts) foreach (var accept in @accepts)
requestOptions.HeaderParameters.Add("Accept", accept); requestOptions.HeaderParameters.Add("Accept", accept);
requestOptions.Data = pet; requestOptions.Data = body;
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required
@ -1239,24 +1239,24 @@ namespace Org.OpenAPITools.Api
/// Update an existing pet /// Update an existing pet
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="pet">Pet object that needs to be added to the store</param> /// <param name="body">Pet object that needs to be added to the store</param>
/// <returns></returns> /// <returns></returns>
public void UpdatePet (Pet pet) public void UpdatePet (Pet body)
{ {
UpdatePetWithHttpInfo(pet); UpdatePetWithHttpInfo(body);
} }
/// <summary> /// <summary>
/// Update an existing pet /// Update an existing pet
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="pet">Pet object that needs to be added to the store</param> /// <param name="body">Pet object that needs to be added to the store</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo (Pet pet) public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo (Pet body)
{ {
// verify the required parameter 'pet' is set // verify the required parameter 'body' is set
if (pet == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -1275,7 +1275,7 @@ namespace Org.OpenAPITools.Api
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts); var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept); if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
requestOptions.Data = pet; requestOptions.Data = body;
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required
@ -1301,11 +1301,11 @@ namespace Org.OpenAPITools.Api
/// Update an existing pet /// Update an existing pet
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="pet">Pet object that needs to be added to the store</param> /// <param name="body">Pet object that needs to be added to the store</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
public async System.Threading.Tasks.Task UpdatePetAsync (Pet pet) public async System.Threading.Tasks.Task UpdatePetAsync (Pet body)
{ {
await UpdatePetAsyncWithHttpInfo(pet); await UpdatePetAsyncWithHttpInfo(body);
} }
@ -1313,13 +1313,13 @@ namespace Org.OpenAPITools.Api
/// Update an existing pet /// Update an existing pet
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="pet">Pet object that needs to be added to the store</param> /// <param name="body">Pet object that needs to be added to the store</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet pet) public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet body)
{ {
// verify the required parameter 'pet' is set // verify the required parameter 'body' is set
if (pet == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -1338,7 +1338,7 @@ namespace Org.OpenAPITools.Api
foreach (var accept in @accepts) foreach (var accept in @accepts)
requestOptions.HeaderParameters.Add("Accept", accept); requestOptions.HeaderParameters.Add("Accept", accept);
requestOptions.Data = pet; requestOptions.Data = body;
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required

View File

@ -95,9 +95,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="order">order placed for purchasing the pet</param> /// <param name="body">order placed for purchasing the pet</param>
/// <returns>Order</returns> /// <returns>Order</returns>
Order PlaceOrder (Order order); Order PlaceOrder (Order body);
/// <summary> /// <summary>
/// Place an order for a pet /// Place an order for a pet
@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="order">order placed for purchasing the pet</param> /// <param name="body">order placed for purchasing the pet</param>
/// <returns>ApiResponse of Order</returns> /// <returns>ApiResponse of Order</returns>
ApiResponse<Order> PlaceOrderWithHttpInfo (Order order); ApiResponse<Order> PlaceOrderWithHttpInfo (Order body);
#endregion Synchronous Operations #endregion Synchronous Operations
} }
@ -186,9 +186,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="order">order placed for purchasing the pet</param> /// <param name="body">order placed for purchasing the pet</param>
/// <returns>Task of Order</returns> /// <returns>Task of Order</returns>
System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order order); System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order body);
/// <summary> /// <summary>
/// Place an order for a pet /// Place an order for a pet
@ -197,9 +197,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="order">order placed for purchasing the pet</param> /// <param name="body">order placed for purchasing the pet</param>
/// <returns>Task of ApiResponse (Order)</returns> /// <returns>Task of ApiResponse (Order)</returns>
System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order order); System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order body);
#endregion Asynchronous Operations #endregion Asynchronous Operations
} }
@ -663,11 +663,11 @@ namespace Org.OpenAPITools.Api
/// Place an order for a pet /// Place an order for a pet
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="order">order placed for purchasing the pet</param> /// <param name="body">order placed for purchasing the pet</param>
/// <returns>Order</returns> /// <returns>Order</returns>
public Order PlaceOrder (Order order) public Order PlaceOrder (Order body)
{ {
Org.OpenAPITools.Client.ApiResponse<Order> localVarResponse = PlaceOrderWithHttpInfo(order); Org.OpenAPITools.Client.ApiResponse<Order> localVarResponse = PlaceOrderWithHttpInfo(body);
return localVarResponse.Data; return localVarResponse.Data;
} }
@ -675,13 +675,13 @@ namespace Org.OpenAPITools.Api
/// Place an order for a pet /// Place an order for a pet
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="order">order placed for purchasing the pet</param> /// <param name="body">order placed for purchasing the pet</param>
/// <returns>ApiResponse of Order</returns> /// <returns>ApiResponse of Order</returns>
public Org.OpenAPITools.Client.ApiResponse< Order > PlaceOrderWithHttpInfo (Order order) public Org.OpenAPITools.Client.ApiResponse< Order > PlaceOrderWithHttpInfo (Order body)
{ {
// verify the required parameter 'order' is set // verify the required parameter 'body' is set
if (order == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -700,7 +700,7 @@ namespace Org.OpenAPITools.Api
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts); var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept); if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
requestOptions.Data = order; requestOptions.Data = body;
// make the HTTP request // make the HTTP request
@ -720,11 +720,11 @@ namespace Org.OpenAPITools.Api
/// Place an order for a pet /// Place an order for a pet
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="order">order placed for purchasing the pet</param> /// <param name="body">order placed for purchasing the pet</param>
/// <returns>Task of Order</returns> /// <returns>Task of Order</returns>
public async System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order order) public async System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order body)
{ {
Org.OpenAPITools.Client.ApiResponse<Order> localVarResponse = await PlaceOrderAsyncWithHttpInfo(order); Org.OpenAPITools.Client.ApiResponse<Order> localVarResponse = await PlaceOrderAsyncWithHttpInfo(body);
return localVarResponse.Data; return localVarResponse.Data;
} }
@ -733,13 +733,13 @@ namespace Org.OpenAPITools.Api
/// Place an order for a pet /// Place an order for a pet
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="order">order placed for purchasing the pet</param> /// <param name="body">order placed for purchasing the pet</param>
/// <returns>Task of ApiResponse (Order)</returns> /// <returns>Task of ApiResponse (Order)</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order order) public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order body)
{ {
// verify the required parameter 'order' is set // verify the required parameter 'body' is set
if (order == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -758,7 +758,7 @@ namespace Org.OpenAPITools.Api
foreach (var accept in @accepts) foreach (var accept in @accepts)
requestOptions.HeaderParameters.Add("Accept", accept); requestOptions.HeaderParameters.Add("Accept", accept);
requestOptions.Data = order; requestOptions.Data = body;
// make the HTTP request // make the HTTP request

View File

@ -34,9 +34,9 @@ namespace Org.OpenAPITools.Api
/// This can only be done by the logged in user. /// This can only be done by the logged in user.
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">Created user object</param> /// <param name="body">Created user object</param>
/// <returns></returns> /// <returns></returns>
void CreateUser (User user); void CreateUser (User body);
/// <summary> /// <summary>
/// Create user /// Create user
@ -45,9 +45,9 @@ namespace Org.OpenAPITools.Api
/// This can only be done by the logged in user. /// This can only be done by the logged in user.
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">Created user object</param> /// <param name="body">Created user object</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> CreateUserWithHttpInfo (User user); ApiResponse<Object> CreateUserWithHttpInfo (User body);
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
@ -55,9 +55,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">List of user object</param> /// <param name="body">List of user object</param>
/// <returns></returns> /// <returns></returns>
void CreateUsersWithArrayInput (List<User> user); void CreateUsersWithArrayInput (List<User> body);
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
@ -66,9 +66,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">List of user object</param> /// <param name="body">List of user object</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> user); ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> body);
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
@ -76,9 +76,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">List of user object</param> /// <param name="body">List of user object</param>
/// <returns></returns> /// <returns></returns>
void CreateUsersWithListInput (List<User> user); void CreateUsersWithListInput (List<User> body);
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
@ -87,9 +87,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">List of user object</param> /// <param name="body">List of user object</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> user); ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> body);
/// <summary> /// <summary>
/// Delete user /// Delete user
/// </summary> /// </summary>
@ -182,9 +182,9 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">name that need to be deleted</param> /// <param name="username">name that need to be deleted</param>
/// <param name="user">Updated user object</param> /// <param name="body">Updated user object</param>
/// <returns></returns> /// <returns></returns>
void UpdateUser (string username, User user); void UpdateUser (string username, User body);
/// <summary> /// <summary>
/// Updated user /// Updated user
@ -194,9 +194,9 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">name that need to be deleted</param> /// <param name="username">name that need to be deleted</param>
/// <param name="user">Updated user object</param> /// <param name="body">Updated user object</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> UpdateUserWithHttpInfo (string username, User user); ApiResponse<Object> UpdateUserWithHttpInfo (string username, User body);
#endregion Synchronous Operations #endregion Synchronous Operations
} }
@ -213,9 +213,9 @@ namespace Org.OpenAPITools.Api
/// This can only be done by the logged in user. /// This can only be done by the logged in user.
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">Created user object</param> /// <param name="body">Created user object</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
System.Threading.Tasks.Task CreateUserAsync (User user); System.Threading.Tasks.Task CreateUserAsync (User body);
/// <summary> /// <summary>
/// Create user /// Create user
@ -224,9 +224,9 @@ namespace Org.OpenAPITools.Api
/// This can only be done by the logged in user. /// This can only be done by the logged in user.
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">Created user object</param> /// <param name="body">Created user object</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User user); System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User body);
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
@ -234,9 +234,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">List of user object</param> /// <param name="body">List of user object</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> user); System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> body);
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
@ -245,9 +245,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">List of user object</param> /// <param name="body">List of user object</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> user); System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> body);
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
@ -255,9 +255,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">List of user object</param> /// <param name="body">List of user object</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> user); System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> body);
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
@ -266,9 +266,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">List of user object</param> /// <param name="body">List of user object</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> user); System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> body);
/// <summary> /// <summary>
/// Delete user /// Delete user
/// </summary> /// </summary>
@ -361,9 +361,9 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">name that need to be deleted</param> /// <param name="username">name that need to be deleted</param>
/// <param name="user">Updated user object</param> /// <param name="body">Updated user object</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
System.Threading.Tasks.Task UpdateUserAsync (string username, User user); System.Threading.Tasks.Task UpdateUserAsync (string username, User body);
/// <summary> /// <summary>
/// Updated user /// Updated user
@ -373,9 +373,9 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">name that need to be deleted</param> /// <param name="username">name that need to be deleted</param>
/// <param name="user">Updated user object</param> /// <param name="body">Updated user object</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User user); System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User body);
#endregion Asynchronous Operations #endregion Asynchronous Operations
} }
@ -500,24 +500,24 @@ namespace Org.OpenAPITools.Api
/// Create user This can only be done by the logged in user. /// Create user This can only be done by the logged in user.
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">Created user object</param> /// <param name="body">Created user object</param>
/// <returns></returns> /// <returns></returns>
public void CreateUser (User user) public void CreateUser (User body)
{ {
CreateUserWithHttpInfo(user); CreateUserWithHttpInfo(body);
} }
/// <summary> /// <summary>
/// Create user This can only be done by the logged in user. /// Create user This can only be done by the logged in user.
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">Created user object</param> /// <param name="body">Created user object</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public Org.OpenAPITools.Client.ApiResponse<Object> CreateUserWithHttpInfo (User user) public Org.OpenAPITools.Client.ApiResponse<Object> CreateUserWithHttpInfo (User body)
{ {
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -534,7 +534,7 @@ namespace Org.OpenAPITools.Api
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts); var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept); if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
requestOptions.Data = user; requestOptions.Data = body;
// make the HTTP request // make the HTTP request
@ -554,11 +554,11 @@ namespace Org.OpenAPITools.Api
/// Create user This can only be done by the logged in user. /// Create user This can only be done by the logged in user.
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">Created user object</param> /// <param name="body">Created user object</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
public async System.Threading.Tasks.Task CreateUserAsync (User user) public async System.Threading.Tasks.Task CreateUserAsync (User body)
{ {
await CreateUserAsyncWithHttpInfo(user); await CreateUserAsyncWithHttpInfo(body);
} }
@ -566,13 +566,13 @@ namespace Org.OpenAPITools.Api
/// Create user This can only be done by the logged in user. /// Create user This can only be done by the logged in user.
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">Created user object</param> /// <param name="body">Created user object</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User user) public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User body)
{ {
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -589,7 +589,7 @@ namespace Org.OpenAPITools.Api
foreach (var accept in @accepts) foreach (var accept in @accepts)
requestOptions.HeaderParameters.Add("Accept", accept); requestOptions.HeaderParameters.Add("Accept", accept);
requestOptions.Data = user; requestOptions.Data = body;
// make the HTTP request // make the HTTP request
@ -609,24 +609,24 @@ namespace Org.OpenAPITools.Api
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">List of user object</param> /// <param name="body">List of user object</param>
/// <returns></returns> /// <returns></returns>
public void CreateUsersWithArrayInput (List<User> user) public void CreateUsersWithArrayInput (List<User> body)
{ {
CreateUsersWithArrayInputWithHttpInfo(user); CreateUsersWithArrayInputWithHttpInfo(body);
} }
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">List of user object</param> /// <param name="body">List of user object</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public Org.OpenAPITools.Client.ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> user) public Org.OpenAPITools.Client.ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> body)
{ {
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -643,7 +643,7 @@ namespace Org.OpenAPITools.Api
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts); var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept); if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
requestOptions.Data = user; requestOptions.Data = body;
// make the HTTP request // make the HTTP request
@ -663,11 +663,11 @@ namespace Org.OpenAPITools.Api
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">List of user object</param> /// <param name="body">List of user object</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> user) public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> body)
{ {
await CreateUsersWithArrayInputAsyncWithHttpInfo(user); await CreateUsersWithArrayInputAsyncWithHttpInfo(body);
} }
@ -675,13 +675,13 @@ namespace Org.OpenAPITools.Api
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">List of user object</param> /// <param name="body">List of user object</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> user) public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> body)
{ {
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -698,7 +698,7 @@ namespace Org.OpenAPITools.Api
foreach (var accept in @accepts) foreach (var accept in @accepts)
requestOptions.HeaderParameters.Add("Accept", accept); requestOptions.HeaderParameters.Add("Accept", accept);
requestOptions.Data = user; requestOptions.Data = body;
// make the HTTP request // make the HTTP request
@ -718,24 +718,24 @@ namespace Org.OpenAPITools.Api
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">List of user object</param> /// <param name="body">List of user object</param>
/// <returns></returns> /// <returns></returns>
public void CreateUsersWithListInput (List<User> user) public void CreateUsersWithListInput (List<User> body)
{ {
CreateUsersWithListInputWithHttpInfo(user); CreateUsersWithListInputWithHttpInfo(body);
} }
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">List of user object</param> /// <param name="body">List of user object</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public Org.OpenAPITools.Client.ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> user) public Org.OpenAPITools.Client.ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> body)
{ {
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -752,7 +752,7 @@ namespace Org.OpenAPITools.Api
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts); var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept); if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
requestOptions.Data = user; requestOptions.Data = body;
// make the HTTP request // make the HTTP request
@ -772,11 +772,11 @@ namespace Org.OpenAPITools.Api
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">List of user object</param> /// <param name="body">List of user object</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
public async System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> user) public async System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> body)
{ {
await CreateUsersWithListInputAsyncWithHttpInfo(user); await CreateUsersWithListInputAsyncWithHttpInfo(body);
} }
@ -784,13 +784,13 @@ namespace Org.OpenAPITools.Api
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="user">List of user object</param> /// <param name="body">List of user object</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> user) public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> body)
{ {
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -807,7 +807,7 @@ namespace Org.OpenAPITools.Api
foreach (var accept in @accepts) foreach (var accept in @accepts)
requestOptions.HeaderParameters.Add("Accept", accept); requestOptions.HeaderParameters.Add("Accept", accept);
requestOptions.Data = user; requestOptions.Data = body;
// make the HTTP request // make the HTTP request
@ -1316,11 +1316,11 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">name that need to be deleted</param> /// <param name="username">name that need to be deleted</param>
/// <param name="user">Updated user object</param> /// <param name="body">Updated user object</param>
/// <returns></returns> /// <returns></returns>
public void UpdateUser (string username, User user) public void UpdateUser (string username, User body)
{ {
UpdateUserWithHttpInfo(username, user); UpdateUserWithHttpInfo(username, body);
} }
/// <summary> /// <summary>
@ -1328,16 +1328,16 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">name that need to be deleted</param> /// <param name="username">name that need to be deleted</param>
/// <param name="user">Updated user object</param> /// <param name="body">Updated user object</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public Org.OpenAPITools.Client.ApiResponse<Object> UpdateUserWithHttpInfo (string username, User user) public Org.OpenAPITools.Client.ApiResponse<Object> UpdateUserWithHttpInfo (string username, User body)
{ {
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username == null) if (username == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -1356,7 +1356,7 @@ namespace Org.OpenAPITools.Api
if (username != null) if (username != null)
requestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter requestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
requestOptions.Data = user; requestOptions.Data = body;
// make the HTTP request // make the HTTP request
@ -1377,11 +1377,11 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">name that need to be deleted</param> /// <param name="username">name that need to be deleted</param>
/// <param name="user">Updated user object</param> /// <param name="body">Updated user object</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
public async System.Threading.Tasks.Task UpdateUserAsync (string username, User user) public async System.Threading.Tasks.Task UpdateUserAsync (string username, User body)
{ {
await UpdateUserAsyncWithHttpInfo(username, user); await UpdateUserAsyncWithHttpInfo(username, body);
} }
@ -1390,16 +1390,16 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">name that need to be deleted</param> /// <param name="username">name that need to be deleted</param>
/// <param name="user">Updated user object</param> /// <param name="body">Updated user object</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User user) public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User body)
{ {
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username == null) if (username == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser"); throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions(); Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
@ -1418,7 +1418,7 @@ namespace Org.OpenAPITools.Api
if (username != null) if (username != null)
requestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter requestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
requestOptions.Data = user; requestOptions.Data = body;
// make the HTTP request // make the HTTP request

View File

@ -18,6 +18,7 @@ using System.Net;
using System.Text; using System.Text;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading.Tasks; using System.Threading.Tasks;
using KellermanSoftware.CompareNetObjects;
namespace Org.OpenAPITools.Client namespace Org.OpenAPITools.Client
{ {
@ -26,6 +27,19 @@ namespace Org.OpenAPITools.Client
/// </summary> /// </summary>
public static class ClientUtils public static class ClientUtils
{ {
/// <summary>
/// An instance of CompareLogic.
/// </summary>
public static CompareLogic compareLogic;
/// <summary>
/// Static contstructor to initialise compareLogic.
/// </summary>
static ClientUtils()
{
compareLogic = new CompareLogic();
}
/// <summary> /// <summary>
/// Sanitize filename by removing the path /// Sanitize filename by removing the path
/// </summary> /// </summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -84,7 +85,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as AdditionalPropertiesClass); return OpenAPIClientUtils.compareLogic.Compare(this, input as AdditionalPropertiesClass).AreEqual;
} }
/// <summary> /// <summary>
@ -94,20 +95,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(AdditionalPropertiesClass input) public bool Equals(AdditionalPropertiesClass input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.MapProperty == input.MapProperty ||
this.MapProperty != null &&
this.MapProperty.SequenceEqual(input.MapProperty)
) &&
(
this.MapOfMapProperty == input.MapOfMapProperty ||
this.MapOfMapProperty != null &&
this.MapOfMapProperty.SequenceEqual(input.MapOfMapProperty)
);
} }
/// <summary> /// <summary>

View File

@ -23,6 +23,7 @@ using Newtonsoft.Json.Converters;
using JsonSubTypes; using JsonSubTypes;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -30,7 +31,7 @@ namespace Org.OpenAPITools.Model
/// Animal /// Animal
/// </summary> /// </summary>
[DataContract] [DataContract]
[JsonConverter(typeof(JsonSubtypes), "className")] [JsonConverter(typeof(JsonSubtypes), "ClassName")]
[JsonSubtypes.KnownSubType(typeof(Dog), "Dog")] [JsonSubtypes.KnownSubType(typeof(Dog), "Dog")]
[JsonSubtypes.KnownSubType(typeof(Cat), "Cat")] [JsonSubtypes.KnownSubType(typeof(Cat), "Cat")]
public partial class Animal : IEquatable<Animal>, IValidatableObject public partial class Animal : IEquatable<Animal>, IValidatableObject
@ -109,7 +110,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as Animal); return OpenAPIClientUtils.compareLogic.Compare(this, input as Animal).AreEqual;
} }
/// <summary> /// <summary>
@ -119,20 +120,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(Animal input) public bool Equals(Animal input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.ClassName == input.ClassName ||
(this.ClassName != null &&
this.ClassName.Equals(input.ClassName))
) &&
(
this.Color == input.Color ||
(this.Color != null &&
this.Color.Equals(input.Color))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -93,7 +94,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as ApiResponse); return OpenAPIClientUtils.compareLogic.Compare(this, input as ApiResponse).AreEqual;
} }
/// <summary> /// <summary>
@ -103,25 +104,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(ApiResponse input) public bool Equals(ApiResponse input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.Code == input.Code ||
(this.Code != null &&
this.Code.Equals(input.Code))
) &&
(
this.Type == input.Type ||
(this.Type != null &&
this.Type.Equals(input.Type))
) &&
(
this.Message == input.Message ||
(this.Message != null &&
this.Message.Equals(input.Message))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -75,7 +76,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as ArrayOfArrayOfNumberOnly); return OpenAPIClientUtils.compareLogic.Compare(this, input as ArrayOfArrayOfNumberOnly).AreEqual;
} }
/// <summary> /// <summary>
@ -85,15 +86,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(ArrayOfArrayOfNumberOnly input) public bool Equals(ArrayOfArrayOfNumberOnly input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.ArrayArrayNumber == input.ArrayArrayNumber ||
this.ArrayArrayNumber != null &&
this.ArrayArrayNumber.SequenceEqual(input.ArrayArrayNumber)
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -75,7 +76,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as ArrayOfNumberOnly); return OpenAPIClientUtils.compareLogic.Compare(this, input as ArrayOfNumberOnly).AreEqual;
} }
/// <summary> /// <summary>
@ -85,15 +86,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(ArrayOfNumberOnly input) public bool Equals(ArrayOfNumberOnly input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.ArrayNumber == input.ArrayNumber ||
this.ArrayNumber != null &&
this.ArrayNumber.SequenceEqual(input.ArrayNumber)
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -93,7 +94,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as ArrayTest); return OpenAPIClientUtils.compareLogic.Compare(this, input as ArrayTest).AreEqual;
} }
/// <summary> /// <summary>
@ -103,25 +104,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(ArrayTest input) public bool Equals(ArrayTest input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.ArrayOfString == input.ArrayOfString ||
this.ArrayOfString != null &&
this.ArrayOfString.SequenceEqual(input.ArrayOfString)
) &&
(
this.ArrayArrayOfInteger == input.ArrayArrayOfInteger ||
this.ArrayArrayOfInteger != null &&
this.ArrayArrayOfInteger.SequenceEqual(input.ArrayArrayOfInteger)
) &&
(
this.ArrayArrayOfModel == input.ArrayArrayOfModel ||
this.ArrayArrayOfModel != null &&
this.ArrayArrayOfModel.SequenceEqual(input.ArrayArrayOfModel)
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -121,7 +122,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as Capitalization); return OpenAPIClientUtils.compareLogic.Compare(this, input as Capitalization).AreEqual;
} }
/// <summary> /// <summary>
@ -131,40 +132,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(Capitalization input) public bool Equals(Capitalization input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.SmallCamel == input.SmallCamel ||
(this.SmallCamel != null &&
this.SmallCamel.Equals(input.SmallCamel))
) &&
(
this.CapitalCamel == input.CapitalCamel ||
(this.CapitalCamel != null &&
this.CapitalCamel.Equals(input.CapitalCamel))
) &&
(
this.SmallSnake == input.SmallSnake ||
(this.SmallSnake != null &&
this.SmallSnake.Equals(input.SmallSnake))
) &&
(
this.CapitalSnake == input.CapitalSnake ||
(this.CapitalSnake != null &&
this.CapitalSnake.Equals(input.CapitalSnake))
) &&
(
this.SCAETHFlowPoints == input.SCAETHFlowPoints ||
(this.SCAETHFlowPoints != null &&
this.SCAETHFlowPoints.Equals(input.SCAETHFlowPoints))
) &&
(
this.ATT_NAME == input.ATT_NAME ||
(this.ATT_NAME != null &&
this.ATT_NAME.Equals(input.ATT_NAME))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -83,7 +84,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as Cat); return OpenAPIClientUtils.compareLogic.Compare(this, input as Cat).AreEqual;
} }
/// <summary> /// <summary>
@ -93,15 +94,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(Cat input) public bool Equals(Cat input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return base.Equals(input) &&
(
this.Declawed == input.Declawed ||
(this.Declawed != null &&
this.Declawed.Equals(input.Declawed))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -97,7 +98,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as Category); return OpenAPIClientUtils.compareLogic.Compare(this, input as Category).AreEqual;
} }
/// <summary> /// <summary>
@ -107,20 +108,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(Category input) public bool Equals(Category input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -75,7 +76,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as ClassModel); return OpenAPIClientUtils.compareLogic.Compare(this, input as ClassModel).AreEqual;
} }
/// <summary> /// <summary>
@ -85,15 +86,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(ClassModel input) public bool Equals(ClassModel input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.Class == input.Class ||
(this.Class != null &&
this.Class.Equals(input.Class))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -83,7 +84,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as Dog); return OpenAPIClientUtils.compareLogic.Compare(this, input as Dog).AreEqual;
} }
/// <summary> /// <summary>
@ -93,15 +94,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(Dog input) public bool Equals(Dog input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return base.Equals(input) &&
(
this.Breed == input.Breed ||
(this.Breed != null &&
this.Breed.Equals(input.Breed))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -123,7 +124,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as EnumArrays); return OpenAPIClientUtils.compareLogic.Compare(this, input as EnumArrays).AreEqual;
} }
/// <summary> /// <summary>
@ -133,19 +134,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(EnumArrays input) public bool Equals(EnumArrays input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.JustSymbol == input.JustSymbol ||
this.JustSymbol.Equals(input.JustSymbol)
) &&
(
this.ArrayEnum == input.ArrayEnum ||
this.ArrayEnum != null &&
this.ArrayEnum.SequenceEqual(input.ArrayEnum)
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -201,7 +202,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as EnumTest); return OpenAPIClientUtils.compareLogic.Compare(this, input as EnumTest).AreEqual;
} }
/// <summary> /// <summary>
@ -211,31 +212,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(EnumTest input) public bool Equals(EnumTest input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.EnumString == input.EnumString ||
this.EnumString.Equals(input.EnumString)
) &&
(
this.EnumStringRequired == input.EnumStringRequired ||
this.EnumStringRequired.Equals(input.EnumStringRequired)
) &&
(
this.EnumInteger == input.EnumInteger ||
this.EnumInteger.Equals(input.EnumInteger)
) &&
(
this.EnumNumber == input.EnumNumber ||
this.EnumNumber.Equals(input.EnumNumber)
) &&
(
this.OuterEnum == input.OuterEnum ||
(this.OuterEnum != null &&
this.OuterEnum.Equals(input.OuterEnum))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -76,7 +77,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as File); return OpenAPIClientUtils.compareLogic.Compare(this, input as File).AreEqual;
} }
/// <summary> /// <summary>
@ -86,15 +87,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(File input) public bool Equals(File input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.SourceURI == input.SourceURI ||
(this.SourceURI != null &&
this.SourceURI.Equals(input.SourceURI))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -84,7 +85,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as FileSchemaTestClass); return OpenAPIClientUtils.compareLogic.Compare(this, input as FileSchemaTestClass).AreEqual;
} }
/// <summary> /// <summary>
@ -94,20 +95,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(FileSchemaTestClass input) public bool Equals(FileSchemaTestClass input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.File == input.File ||
(this.File != null &&
this.File.Equals(input.File))
) &&
(
this.Files == input.Files ||
this.Files != null &&
this.Files.SequenceEqual(input.Files)
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -221,7 +222,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as FormatTest); return OpenAPIClientUtils.compareLogic.Compare(this, input as FormatTest).AreEqual;
} }
/// <summary> /// <summary>
@ -231,75 +232,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(FormatTest input) public bool Equals(FormatTest input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.Integer == input.Integer ||
(this.Integer != null &&
this.Integer.Equals(input.Integer))
) &&
(
this.Int32 == input.Int32 ||
(this.Int32 != null &&
this.Int32.Equals(input.Int32))
) &&
(
this.Int64 == input.Int64 ||
(this.Int64 != null &&
this.Int64.Equals(input.Int64))
) &&
(
this.Number == input.Number ||
(this.Number != null &&
this.Number.Equals(input.Number))
) &&
(
this.Float == input.Float ||
(this.Float != null &&
this.Float.Equals(input.Float))
) &&
(
this.Double == input.Double ||
(this.Double != null &&
this.Double.Equals(input.Double))
) &&
(
this.String == input.String ||
(this.String != null &&
this.String.Equals(input.String))
) &&
(
this.Byte == input.Byte ||
(this.Byte != null &&
this.Byte.Equals(input.Byte))
) &&
(
this.Binary == input.Binary ||
(this.Binary != null &&
this.Binary.Equals(input.Binary))
) &&
(
this.Date == input.Date ||
(this.Date != null &&
this.Date.Equals(input.Date))
) &&
(
this.DateTime == input.DateTime ||
(this.DateTime != null &&
this.DateTime.Equals(input.DateTime))
) &&
(
this.Uuid == input.Uuid ||
(this.Uuid != null &&
this.Uuid.Equals(input.Uuid))
) &&
(
this.Password == input.Password ||
(this.Password != null &&
this.Password.Equals(input.Password))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -81,7 +82,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as HasOnlyReadOnly); return OpenAPIClientUtils.compareLogic.Compare(this, input as HasOnlyReadOnly).AreEqual;
} }
/// <summary> /// <summary>
@ -91,20 +92,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(HasOnlyReadOnly input) public bool Equals(HasOnlyReadOnly input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.Bar == input.Bar ||
(this.Bar != null &&
this.Bar.Equals(input.Bar))
) &&
(
this.Foo == input.Foo ||
(this.Foo != null &&
this.Foo.Equals(input.Foo))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -75,7 +76,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as List); return OpenAPIClientUtils.compareLogic.Compare(this, input as List).AreEqual;
} }
/// <summary> /// <summary>
@ -85,15 +86,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(List input) public bool Equals(List input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this._123List == input._123List ||
(this._123List != null &&
this._123List.Equals(input._123List))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -122,7 +123,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as MapTest); return OpenAPIClientUtils.compareLogic.Compare(this, input as MapTest).AreEqual;
} }
/// <summary> /// <summary>
@ -132,30 +133,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(MapTest input) public bool Equals(MapTest input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.MapMapOfString == input.MapMapOfString ||
this.MapMapOfString != null &&
this.MapMapOfString.SequenceEqual(input.MapMapOfString)
) &&
(
this.MapOfEnumString == input.MapOfEnumString ||
this.MapOfEnumString != null &&
this.MapOfEnumString.SequenceEqual(input.MapOfEnumString)
) &&
(
this.DirectMap == input.DirectMap ||
this.DirectMap != null &&
this.DirectMap.SequenceEqual(input.DirectMap)
) &&
(
this.IndirectMap == input.IndirectMap ||
this.IndirectMap != null &&
this.IndirectMap.SequenceEqual(input.IndirectMap)
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -93,7 +94,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as MixedPropertiesAndAdditionalPropertiesClass); return OpenAPIClientUtils.compareLogic.Compare(this, input as MixedPropertiesAndAdditionalPropertiesClass).AreEqual;
} }
/// <summary> /// <summary>
@ -103,25 +104,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(MixedPropertiesAndAdditionalPropertiesClass input) public bool Equals(MixedPropertiesAndAdditionalPropertiesClass input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.Uuid == input.Uuid ||
(this.Uuid != null &&
this.Uuid.Equals(input.Uuid))
) &&
(
this.DateTime == input.DateTime ||
(this.DateTime != null &&
this.DateTime.Equals(input.DateTime))
) &&
(
this.Map == input.Map ||
this.Map != null &&
this.Map.SequenceEqual(input.Map)
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -84,7 +85,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as Model200Response); return OpenAPIClientUtils.compareLogic.Compare(this, input as Model200Response).AreEqual;
} }
/// <summary> /// <summary>
@ -94,20 +95,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(Model200Response input) public bool Equals(Model200Response input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.Class == input.Class ||
(this.Class != null &&
this.Class.Equals(input.Class))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -75,7 +76,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as ModelClient); return OpenAPIClientUtils.compareLogic.Compare(this, input as ModelClient).AreEqual;
} }
/// <summary> /// <summary>
@ -85,15 +86,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(ModelClient input) public bool Equals(ModelClient input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.__Client == input.__Client ||
(this.__Client != null &&
this.__Client.Equals(input.__Client))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -111,7 +112,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as Name); return OpenAPIClientUtils.compareLogic.Compare(this, input as Name).AreEqual;
} }
/// <summary> /// <summary>
@ -121,30 +122,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(Name input) public bool Equals(Name input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this._Name == input._Name ||
(this._Name != null &&
this._Name.Equals(input._Name))
) &&
(
this.SnakeCase == input.SnakeCase ||
(this.SnakeCase != null &&
this.SnakeCase.Equals(input.SnakeCase))
) &&
(
this.Property == input.Property ||
(this.Property != null &&
this.Property.Equals(input.Property))
) &&
(
this._123Number == input._123Number ||
(this._123Number != null &&
this._123Number.Equals(input._123Number))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -75,7 +76,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as NumberOnly); return OpenAPIClientUtils.compareLogic.Compare(this, input as NumberOnly).AreEqual;
} }
/// <summary> /// <summary>
@ -85,15 +86,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(NumberOnly input) public bool Equals(NumberOnly input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.JustNumber == input.JustNumber ||
(this.JustNumber != null &&
this.JustNumber.Equals(input.JustNumber))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -155,7 +156,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as Order); return OpenAPIClientUtils.compareLogic.Compare(this, input as Order).AreEqual;
} }
/// <summary> /// <summary>
@ -165,39 +166,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(Order input) public bool Equals(Order input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.PetId == input.PetId ||
(this.PetId != null &&
this.PetId.Equals(input.PetId))
) &&
(
this.Quantity == input.Quantity ||
(this.Quantity != null &&
this.Quantity.Equals(input.Quantity))
) &&
(
this.ShipDate == input.ShipDate ||
(this.ShipDate != null &&
this.ShipDate.Equals(input.ShipDate))
) &&
(
this.Status == input.Status ||
this.Status.Equals(input.Status)
) &&
(
this.Complete == input.Complete ||
(this.Complete != null &&
this.Complete.Equals(input.Complete))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -93,7 +94,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as OuterComposite); return OpenAPIClientUtils.compareLogic.Compare(this, input as OuterComposite).AreEqual;
} }
/// <summary> /// <summary>
@ -103,25 +104,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(OuterComposite input) public bool Equals(OuterComposite input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.MyNumber == input.MyNumber ||
(this.MyNumber != null &&
this.MyNumber.Equals(input.MyNumber))
) &&
(
this.MyString == input.MyString ||
(this.MyString != null &&
this.MyString.Equals(input.MyString))
) &&
(
this.MyBoolean == input.MyBoolean ||
(this.MyBoolean != null &&
this.MyBoolean.Equals(input.MyBoolean))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -168,7 +169,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as Pet); return OpenAPIClientUtils.compareLogic.Compare(this, input as Pet).AreEqual;
} }
/// <summary> /// <summary>
@ -178,39 +179,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(Pet input) public bool Equals(Pet input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.Category == input.Category ||
(this.Category != null &&
this.Category.Equals(input.Category))
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.PhotoUrls == input.PhotoUrls ||
this.PhotoUrls != null &&
this.PhotoUrls.SequenceEqual(input.PhotoUrls)
) &&
(
this.Tags == input.Tags ||
this.Tags != null &&
this.Tags.SequenceEqual(input.Tags)
) &&
(
this.Status == input.Status ||
this.Status.Equals(input.Status)
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -82,7 +83,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as ReadOnlyFirst); return OpenAPIClientUtils.compareLogic.Compare(this, input as ReadOnlyFirst).AreEqual;
} }
/// <summary> /// <summary>
@ -92,20 +93,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(ReadOnlyFirst input) public bool Equals(ReadOnlyFirst input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.Bar == input.Bar ||
(this.Bar != null &&
this.Bar.Equals(input.Bar))
) &&
(
this.Baz == input.Baz ||
(this.Baz != null &&
this.Baz.Equals(input.Baz))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -75,7 +76,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as Return); return OpenAPIClientUtils.compareLogic.Compare(this, input as Return).AreEqual;
} }
/// <summary> /// <summary>
@ -85,15 +86,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(Return input) public bool Equals(Return input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this._Return == input._Return ||
(this._Return != null &&
this._Return.Equals(input._Return))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -75,7 +76,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as SpecialModelName); return OpenAPIClientUtils.compareLogic.Compare(this, input as SpecialModelName).AreEqual;
} }
/// <summary> /// <summary>
@ -85,15 +86,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(SpecialModelName input) public bool Equals(SpecialModelName input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.SpecialPropertyName == input.SpecialPropertyName ||
(this.SpecialPropertyName != null &&
this.SpecialPropertyName.Equals(input.SpecialPropertyName))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -84,7 +85,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as Tag); return OpenAPIClientUtils.compareLogic.Compare(this, input as Tag).AreEqual;
} }
/// <summary> /// <summary>
@ -94,20 +95,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(Tag input) public bool Equals(Tag input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
);
} }
/// <summary> /// <summary>

View File

@ -22,6 +22,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model namespace Org.OpenAPITools.Model
{ {
@ -139,7 +140,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public override bool Equals(object input) public override bool Equals(object input)
{ {
return this.Equals(input as User); return OpenAPIClientUtils.compareLogic.Compare(this, input as User).AreEqual;
} }
/// <summary> /// <summary>
@ -149,50 +150,7 @@ namespace Org.OpenAPITools.Model
/// <returns>Boolean</returns> /// <returns>Boolean</returns>
public bool Equals(User input) public bool Equals(User input)
{ {
if (input == null) return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
return false;
return
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.Username == input.Username ||
(this.Username != null &&
this.Username.Equals(input.Username))
) &&
(
this.FirstName == input.FirstName ||
(this.FirstName != null &&
this.FirstName.Equals(input.FirstName))
) &&
(
this.LastName == input.LastName ||
(this.LastName != null &&
this.LastName.Equals(input.LastName))
) &&
(
this.Email == input.Email ||
(this.Email != null &&
this.Email.Equals(input.Email))
) &&
(
this.Password == input.Password ||
(this.Password != null &&
this.Password.Equals(input.Password))
) &&
(
this.Phone == input.Phone ||
(this.Phone != null &&
this.Phone.Equals(input.Phone))
) &&
(
this.UserStatus == input.UserStatus ||
(this.UserStatus != null &&
this.UserStatus.Equals(input.UserStatus))
);
} }
/// <summary> /// <summary>

View File

@ -65,6 +65,12 @@ OpenAPI spec version: 1.0.0
<HintPath Condition="Exists('..\..\packages')">..\..\packages\RestSharp.106.5.4\lib\net452\RestSharp.dll</HintPath> <HintPath Condition="Exists('..\..\packages')">..\..\packages\RestSharp.106.5.4\lib\net452\RestSharp.dll</HintPath>
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\RestSharp.106.5.4\lib\net452\RestSharp.dll</HintPath> <HintPath Condition="Exists('..\..\vendor')">..\..\vendor\RestSharp.106.5.4\lib\net452\RestSharp.dll</HintPath>
</Reference> </Reference>
<Reference Include="KellermanSoftware.Compare-NET-Objects">
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\CompareNETObjects.4.57.0\lib\net452\KellermanSoftware.Compare-NET-Objects.dll</HintPath>
<HintPath Condition="Exists('..\packages')">..\packages\CompareNETObjects.4.57.0\lib\net452\KellermanSoftware.Compare-NET-Objects.dll</HintPath>
<HintPath Condition="Exists('..\..\packages')">..\..\packages\CompareNETObjects.4.57.0\lib\net452\KellermanSoftware.Compare-NET-Objects.dll</HintPath>
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\CompareNETObjects.4.57.0\lib\net452\KellermanSoftware.Compare-NET-Objects.dll</HintPath>
</Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="**\*.cs" <Compile Include="**\*.cs"

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
<package id="CompareNETObjects" version="4.57.0" targetFramework="net452" developmentDependency="true" />
<package id="RestSharp" version="106.5.4" targetFramework="net452" developmentDependency="true" /> <package id="RestSharp" version="106.5.4" targetFramework="net452" developmentDependency="true" />
<package id="Newtonsoft.Json" version="12.0.1" targetFramework="net452" developmentDependency="true" /> <package id="Newtonsoft.Json" version="12.0.1" targetFramework="net45" developmentDependency="true" />
<package id="JsonSubTypes" version="1.5.1" targetFramework="net452" developmentDependency="true" /> <package id="JsonSubTypes" version="1.5.1" targetFramework="net45" developmentDependency="true" />
</packages> </packages>