diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/modelOneOf.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/modelOneOf.mustache index f60d3cf10f3..2a22ad49259 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/modelOneOf.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/modelOneOf.mustache @@ -1,3 +1,4 @@ +{{#model}} /// /// {{description}}{{^description}}{{classname}}{{/description}} /// @@ -16,20 +17,22 @@ } {{/isNullable}} - {{#oneOf}} + {{#composedSchemas.oneOf}} + {{^isNull}} /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of {{{.}}}. - public {{classname}}({{{.}}} actualInstance) + /// An instance of {{dataType}}. + public {{classname}}({{{dataType}}} actualInstance) { - this.IsNullable = {{#isNullable}}true{{/isNullable}}{{^isNullable}}false{{/isNullable}}; + this.IsNullable = {{#model.isNullable}}true{{/model.isNullable}}{{^model.isNullable}}false{{/model.isNullable}}; this.SchemaType= "oneOf"; - this.ActualInstance = actualInstance{{^isNullable}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isNullable}}; + this.ActualInstance = actualInstance{{^model.isNullable}}{{^isPrimitiveType}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isPrimitiveType}}{{#isPrimitiveType}}{{#isArray}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isArray}}{{/isPrimitiveType}}{{#isPrimitiveType}}{{#isFreeFormObject}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isFreeFormObject}}{{/isPrimitiveType}}{{#isPrimitiveType}}{{#isString}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isString}}{{/isPrimitiveType}}{{/model.isNullable}}; } - {{/oneOf}} + {{/isNull}} + {{/composedSchemas.oneOf}} private Object _actualInstance; @@ -56,18 +59,20 @@ } } } - {{#oneOf}} + {{#composedSchemas.oneOf}} + {{^isNull}} /// - /// Get the actual instance of `{{{.}}}`. If the actual instance is not `{{{.}}}`, + /// Get the actual instance of `{{dataType}}`. If the actual instance is not `{{dataType}}`, /// the InvalidClassException will be thrown /// - /// An instance of {{{.}}} - public {{{.}}} Get{{{.}}}() + /// An instance of {{dataType}} + public {{{dataType}}} Get{{#lambda.titlecase}}{{baseType}}{{/lambda.titlecase}}{{#isArray}}{{#lambda.titlecase}}{{{dataFormat}}}{{/lambda.titlecase}}{{/isArray}}() { - return ({{{.}}})this.ActualInstance; + return ({{{dataType}}})this.ActualInstance; } - {{/oneOf}} + {{/isNull}} + {{/composedSchemas.oneOf}} /// /// Returns the string presentation of the object @@ -272,3 +277,4 @@ return false; } } +{{/model}} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Mammal.cs index 841b9ba43e9..8630f21bba4 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Mammal.cs @@ -35,18 +35,6 @@ namespace Org.OpenAPITools.Model [DataContract(Name = "mammal")] public partial class Mammal : AbstractOpenAPISchema, IEquatable, IValidatableObject { - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of Pig. - public Mammal(Pig actualInstance) - { - this.IsNullable = false; - this.SchemaType= "oneOf"; - this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - /// /// Initializes a new instance of the class /// with the class @@ -71,6 +59,18 @@ namespace Org.OpenAPITools.Model this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of Pig. + public Mammal(Pig actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + private Object _actualInstance; @@ -104,16 +104,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Pig`. If the actual instance is not `Pig`, - /// the InvalidClassException will be thrown - /// - /// An instance of Pig - public Pig GetPig() - { - return (Pig)this.ActualInstance; - } - /// /// Get the actual instance of `Whale`. If the actual instance is not `Whale`, /// the InvalidClassException will be thrown @@ -134,6 +124,16 @@ namespace Org.OpenAPITools.Model return (Zebra)this.ActualInstance; } + /// + /// Get the actual instance of `Pig`. If the actual instance is not `Pig`, + /// the InvalidClassException will be thrown + /// + /// An instance of Pig + public Pig GetPig() + { + return (Pig)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/NullableShape.cs index ab311baedd6..01cedb8807b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/NullableShape.cs @@ -46,10 +46,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Quadrilateral. - public NullableShape(Quadrilateral actualInstance) + /// An instance of Triangle. + public NullableShape(Triangle actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -58,10 +58,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Triangle. - public NullableShape(Triangle actualInstance) + /// An instance of Quadrilateral. + public NullableShape(Quadrilateral actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -97,16 +97,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of Quadrilateral - public Quadrilateral GetQuadrilateral() - { - return (Quadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, /// the InvalidClassException will be thrown @@ -117,6 +107,16 @@ namespace Org.OpenAPITools.Model return (Triangle)this.ActualInstance; } + /// + /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of Quadrilateral + public Quadrilateral GetQuadrilateral() + { + return (Quadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Quadrilateral.cs index 7e232c39f0a..2e4fc5cb041 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -37,10 +37,10 @@ namespace Org.OpenAPITools.Model { /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of ComplexQuadrilateral. - public Quadrilateral(ComplexQuadrilateral actualInstance) + /// An instance of SimpleQuadrilateral. + public Quadrilateral(SimpleQuadrilateral actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -49,10 +49,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of SimpleQuadrilateral. - public Quadrilateral(SimpleQuadrilateral actualInstance) + /// An instance of ComplexQuadrilateral. + public Quadrilateral(ComplexQuadrilateral actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -88,16 +88,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `ComplexQuadrilateral`. If the actual instance is not `ComplexQuadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of ComplexQuadrilateral - public ComplexQuadrilateral GetComplexQuadrilateral() - { - return (ComplexQuadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `SimpleQuadrilateral`. If the actual instance is not `SimpleQuadrilateral`, /// the InvalidClassException will be thrown @@ -108,6 +98,16 @@ namespace Org.OpenAPITools.Model return (SimpleQuadrilateral)this.ActualInstance; } + /// + /// Get the actual instance of `ComplexQuadrilateral`. If the actual instance is not `ComplexQuadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of ComplexQuadrilateral + public ComplexQuadrilateral GetComplexQuadrilateral() + { + return (ComplexQuadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Shape.cs index fd3d6cb439f..bc73c0d68a7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Shape.cs @@ -37,10 +37,10 @@ namespace Org.OpenAPITools.Model { /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Quadrilateral. - public Shape(Quadrilateral actualInstance) + /// An instance of Triangle. + public Shape(Triangle actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -49,10 +49,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Triangle. - public Shape(Triangle actualInstance) + /// An instance of Quadrilateral. + public Shape(Quadrilateral actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -88,16 +88,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of Quadrilateral - public Quadrilateral GetQuadrilateral() - { - return (Quadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, /// the InvalidClassException will be thrown @@ -108,6 +98,16 @@ namespace Org.OpenAPITools.Model return (Triangle)this.ActualInstance; } + /// + /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of Quadrilateral + public Quadrilateral GetQuadrilateral() + { + return (Quadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/ShapeOrNull.cs index f378c1e3b7b..a6d3624c26f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -46,10 +46,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Quadrilateral. - public ShapeOrNull(Quadrilateral actualInstance) + /// An instance of Triangle. + public ShapeOrNull(Triangle actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -58,10 +58,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Triangle. - public ShapeOrNull(Triangle actualInstance) + /// An instance of Quadrilateral. + public ShapeOrNull(Quadrilateral actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -97,16 +97,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of Quadrilateral - public Quadrilateral GetQuadrilateral() - { - return (Quadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, /// the InvalidClassException will be thrown @@ -117,6 +107,16 @@ namespace Org.OpenAPITools.Model return (Triangle)this.ActualInstance; } + /// + /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of Quadrilateral + public Quadrilateral GetQuadrilateral() + { + return (Quadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Mammal.cs index 299b4907521..54658b77542 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Mammal.cs @@ -36,18 +36,6 @@ namespace Org.OpenAPITools.Model [DataContract(Name = "mammal")] public partial class Mammal : AbstractOpenAPISchema, IEquatable, IValidatableObject { - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of Pig. - public Mammal(Pig actualInstance) - { - this.IsNullable = false; - this.SchemaType= "oneOf"; - this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - /// /// Initializes a new instance of the class /// with the class @@ -72,6 +60,18 @@ namespace Org.OpenAPITools.Model this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of Pig. + public Mammal(Pig actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + private Object _actualInstance; @@ -105,16 +105,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Pig`. If the actual instance is not `Pig`, - /// the InvalidClassException will be thrown - /// - /// An instance of Pig - public Pig GetPig() - { - return (Pig)this.ActualInstance; - } - /// /// Get the actual instance of `Whale`. If the actual instance is not `Whale`, /// the InvalidClassException will be thrown @@ -135,6 +125,16 @@ namespace Org.OpenAPITools.Model return (Zebra)this.ActualInstance; } + /// + /// Get the actual instance of `Pig`. If the actual instance is not `Pig`, + /// the InvalidClassException will be thrown + /// + /// An instance of Pig + public Pig GetPig() + { + return (Pig)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/NullableShape.cs index 9a8c9a1bbd1..c834e87cb48 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/NullableShape.cs @@ -47,10 +47,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Quadrilateral. - public NullableShape(Quadrilateral actualInstance) + /// An instance of Triangle. + public NullableShape(Triangle actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -59,10 +59,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Triangle. - public NullableShape(Triangle actualInstance) + /// An instance of Quadrilateral. + public NullableShape(Quadrilateral actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -98,16 +98,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of Quadrilateral - public Quadrilateral GetQuadrilateral() - { - return (Quadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, /// the InvalidClassException will be thrown @@ -118,6 +108,16 @@ namespace Org.OpenAPITools.Model return (Triangle)this.ActualInstance; } + /// + /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of Quadrilateral + public Quadrilateral GetQuadrilateral() + { + return (Quadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Quadrilateral.cs index 8be0ba50610..6eccb8dc5bf 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -38,10 +38,10 @@ namespace Org.OpenAPITools.Model { /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of ComplexQuadrilateral. - public Quadrilateral(ComplexQuadrilateral actualInstance) + /// An instance of SimpleQuadrilateral. + public Quadrilateral(SimpleQuadrilateral actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -50,10 +50,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of SimpleQuadrilateral. - public Quadrilateral(SimpleQuadrilateral actualInstance) + /// An instance of ComplexQuadrilateral. + public Quadrilateral(ComplexQuadrilateral actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -89,16 +89,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `ComplexQuadrilateral`. If the actual instance is not `ComplexQuadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of ComplexQuadrilateral - public ComplexQuadrilateral GetComplexQuadrilateral() - { - return (ComplexQuadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `SimpleQuadrilateral`. If the actual instance is not `SimpleQuadrilateral`, /// the InvalidClassException will be thrown @@ -109,6 +99,16 @@ namespace Org.OpenAPITools.Model return (SimpleQuadrilateral)this.ActualInstance; } + /// + /// Get the actual instance of `ComplexQuadrilateral`. If the actual instance is not `ComplexQuadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of ComplexQuadrilateral + public ComplexQuadrilateral GetComplexQuadrilateral() + { + return (ComplexQuadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Shape.cs index efff624cb7f..c4e07ffc29a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Shape.cs @@ -38,10 +38,10 @@ namespace Org.OpenAPITools.Model { /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Quadrilateral. - public Shape(Quadrilateral actualInstance) + /// An instance of Triangle. + public Shape(Triangle actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -50,10 +50,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Triangle. - public Shape(Triangle actualInstance) + /// An instance of Quadrilateral. + public Shape(Quadrilateral actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -89,16 +89,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of Quadrilateral - public Quadrilateral GetQuadrilateral() - { - return (Quadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, /// the InvalidClassException will be thrown @@ -109,6 +99,16 @@ namespace Org.OpenAPITools.Model return (Triangle)this.ActualInstance; } + /// + /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of Quadrilateral + public Quadrilateral GetQuadrilateral() + { + return (Quadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/ShapeOrNull.cs index eaf1f574b41..e76229e9e61 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -47,10 +47,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Quadrilateral. - public ShapeOrNull(Quadrilateral actualInstance) + /// An instance of Triangle. + public ShapeOrNull(Triangle actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -59,10 +59,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Triangle. - public ShapeOrNull(Triangle actualInstance) + /// An instance of Quadrilateral. + public ShapeOrNull(Quadrilateral actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -98,16 +98,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of Quadrilateral - public Quadrilateral GetQuadrilateral() - { - return (Quadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, /// the InvalidClassException will be thrown @@ -118,6 +108,16 @@ namespace Org.OpenAPITools.Model return (Triangle)this.ActualInstance; } + /// + /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of Quadrilateral + public Quadrilateral GetQuadrilateral() + { + return (Quadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Mammal.cs index 841b9ba43e9..8630f21bba4 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Mammal.cs @@ -35,18 +35,6 @@ namespace Org.OpenAPITools.Model [DataContract(Name = "mammal")] public partial class Mammal : AbstractOpenAPISchema, IEquatable, IValidatableObject { - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of Pig. - public Mammal(Pig actualInstance) - { - this.IsNullable = false; - this.SchemaType= "oneOf"; - this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - /// /// Initializes a new instance of the class /// with the class @@ -71,6 +59,18 @@ namespace Org.OpenAPITools.Model this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of Pig. + public Mammal(Pig actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + private Object _actualInstance; @@ -104,16 +104,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Pig`. If the actual instance is not `Pig`, - /// the InvalidClassException will be thrown - /// - /// An instance of Pig - public Pig GetPig() - { - return (Pig)this.ActualInstance; - } - /// /// Get the actual instance of `Whale`. If the actual instance is not `Whale`, /// the InvalidClassException will be thrown @@ -134,6 +124,16 @@ namespace Org.OpenAPITools.Model return (Zebra)this.ActualInstance; } + /// + /// Get the actual instance of `Pig`. If the actual instance is not `Pig`, + /// the InvalidClassException will be thrown + /// + /// An instance of Pig + public Pig GetPig() + { + return (Pig)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/NullableShape.cs index ab311baedd6..01cedb8807b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/NullableShape.cs @@ -46,10 +46,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Quadrilateral. - public NullableShape(Quadrilateral actualInstance) + /// An instance of Triangle. + public NullableShape(Triangle actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -58,10 +58,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Triangle. - public NullableShape(Triangle actualInstance) + /// An instance of Quadrilateral. + public NullableShape(Quadrilateral actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -97,16 +97,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of Quadrilateral - public Quadrilateral GetQuadrilateral() - { - return (Quadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, /// the InvalidClassException will be thrown @@ -117,6 +107,16 @@ namespace Org.OpenAPITools.Model return (Triangle)this.ActualInstance; } + /// + /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of Quadrilateral + public Quadrilateral GetQuadrilateral() + { + return (Quadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Quadrilateral.cs index 7e232c39f0a..2e4fc5cb041 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -37,10 +37,10 @@ namespace Org.OpenAPITools.Model { /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of ComplexQuadrilateral. - public Quadrilateral(ComplexQuadrilateral actualInstance) + /// An instance of SimpleQuadrilateral. + public Quadrilateral(SimpleQuadrilateral actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -49,10 +49,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of SimpleQuadrilateral. - public Quadrilateral(SimpleQuadrilateral actualInstance) + /// An instance of ComplexQuadrilateral. + public Quadrilateral(ComplexQuadrilateral actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -88,16 +88,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `ComplexQuadrilateral`. If the actual instance is not `ComplexQuadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of ComplexQuadrilateral - public ComplexQuadrilateral GetComplexQuadrilateral() - { - return (ComplexQuadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `SimpleQuadrilateral`. If the actual instance is not `SimpleQuadrilateral`, /// the InvalidClassException will be thrown @@ -108,6 +98,16 @@ namespace Org.OpenAPITools.Model return (SimpleQuadrilateral)this.ActualInstance; } + /// + /// Get the actual instance of `ComplexQuadrilateral`. If the actual instance is not `ComplexQuadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of ComplexQuadrilateral + public ComplexQuadrilateral GetComplexQuadrilateral() + { + return (ComplexQuadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Shape.cs index fd3d6cb439f..bc73c0d68a7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Shape.cs @@ -37,10 +37,10 @@ namespace Org.OpenAPITools.Model { /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Quadrilateral. - public Shape(Quadrilateral actualInstance) + /// An instance of Triangle. + public Shape(Triangle actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -49,10 +49,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Triangle. - public Shape(Triangle actualInstance) + /// An instance of Quadrilateral. + public Shape(Quadrilateral actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -88,16 +88,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of Quadrilateral - public Quadrilateral GetQuadrilateral() - { - return (Quadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, /// the InvalidClassException will be thrown @@ -108,6 +98,16 @@ namespace Org.OpenAPITools.Model return (Triangle)this.ActualInstance; } + /// + /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of Quadrilateral + public Quadrilateral GetQuadrilateral() + { + return (Quadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/ShapeOrNull.cs index f378c1e3b7b..a6d3624c26f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -46,10 +46,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Quadrilateral. - public ShapeOrNull(Quadrilateral actualInstance) + /// An instance of Triangle. + public ShapeOrNull(Triangle actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -58,10 +58,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Triangle. - public ShapeOrNull(Triangle actualInstance) + /// An instance of Quadrilateral. + public ShapeOrNull(Quadrilateral actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -97,16 +97,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of Quadrilateral - public Quadrilateral GetQuadrilateral() - { - return (Quadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, /// the InvalidClassException will be thrown @@ -117,6 +107,16 @@ namespace Org.OpenAPITools.Model return (Triangle)this.ActualInstance; } + /// + /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of Quadrilateral + public Quadrilateral GetQuadrilateral() + { + return (Quadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Mammal.cs index 841b9ba43e9..8630f21bba4 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Mammal.cs @@ -35,18 +35,6 @@ namespace Org.OpenAPITools.Model [DataContract(Name = "mammal")] public partial class Mammal : AbstractOpenAPISchema, IEquatable, IValidatableObject { - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of Pig. - public Mammal(Pig actualInstance) - { - this.IsNullable = false; - this.SchemaType= "oneOf"; - this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - /// /// Initializes a new instance of the class /// with the class @@ -71,6 +59,18 @@ namespace Org.OpenAPITools.Model this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of Pig. + public Mammal(Pig actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + private Object _actualInstance; @@ -104,16 +104,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Pig`. If the actual instance is not `Pig`, - /// the InvalidClassException will be thrown - /// - /// An instance of Pig - public Pig GetPig() - { - return (Pig)this.ActualInstance; - } - /// /// Get the actual instance of `Whale`. If the actual instance is not `Whale`, /// the InvalidClassException will be thrown @@ -134,6 +124,16 @@ namespace Org.OpenAPITools.Model return (Zebra)this.ActualInstance; } + /// + /// Get the actual instance of `Pig`. If the actual instance is not `Pig`, + /// the InvalidClassException will be thrown + /// + /// An instance of Pig + public Pig GetPig() + { + return (Pig)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/NullableShape.cs index ab311baedd6..01cedb8807b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/NullableShape.cs @@ -46,10 +46,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Quadrilateral. - public NullableShape(Quadrilateral actualInstance) + /// An instance of Triangle. + public NullableShape(Triangle actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -58,10 +58,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Triangle. - public NullableShape(Triangle actualInstance) + /// An instance of Quadrilateral. + public NullableShape(Quadrilateral actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -97,16 +97,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of Quadrilateral - public Quadrilateral GetQuadrilateral() - { - return (Quadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, /// the InvalidClassException will be thrown @@ -117,6 +107,16 @@ namespace Org.OpenAPITools.Model return (Triangle)this.ActualInstance; } + /// + /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of Quadrilateral + public Quadrilateral GetQuadrilateral() + { + return (Quadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Quadrilateral.cs index 7e232c39f0a..2e4fc5cb041 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -37,10 +37,10 @@ namespace Org.OpenAPITools.Model { /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of ComplexQuadrilateral. - public Quadrilateral(ComplexQuadrilateral actualInstance) + /// An instance of SimpleQuadrilateral. + public Quadrilateral(SimpleQuadrilateral actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -49,10 +49,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of SimpleQuadrilateral. - public Quadrilateral(SimpleQuadrilateral actualInstance) + /// An instance of ComplexQuadrilateral. + public Quadrilateral(ComplexQuadrilateral actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -88,16 +88,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `ComplexQuadrilateral`. If the actual instance is not `ComplexQuadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of ComplexQuadrilateral - public ComplexQuadrilateral GetComplexQuadrilateral() - { - return (ComplexQuadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `SimpleQuadrilateral`. If the actual instance is not `SimpleQuadrilateral`, /// the InvalidClassException will be thrown @@ -108,6 +98,16 @@ namespace Org.OpenAPITools.Model return (SimpleQuadrilateral)this.ActualInstance; } + /// + /// Get the actual instance of `ComplexQuadrilateral`. If the actual instance is not `ComplexQuadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of ComplexQuadrilateral + public ComplexQuadrilateral GetComplexQuadrilateral() + { + return (ComplexQuadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Shape.cs index fd3d6cb439f..bc73c0d68a7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Shape.cs @@ -37,10 +37,10 @@ namespace Org.OpenAPITools.Model { /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Quadrilateral. - public Shape(Quadrilateral actualInstance) + /// An instance of Triangle. + public Shape(Triangle actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -49,10 +49,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Triangle. - public Shape(Triangle actualInstance) + /// An instance of Quadrilateral. + public Shape(Quadrilateral actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -88,16 +88,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of Quadrilateral - public Quadrilateral GetQuadrilateral() - { - return (Quadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, /// the InvalidClassException will be thrown @@ -108,6 +98,16 @@ namespace Org.OpenAPITools.Model return (Triangle)this.ActualInstance; } + /// + /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of Quadrilateral + public Quadrilateral GetQuadrilateral() + { + return (Quadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/ShapeOrNull.cs index f378c1e3b7b..a6d3624c26f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -46,10 +46,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Quadrilateral. - public ShapeOrNull(Quadrilateral actualInstance) + /// An instance of Triangle. + public ShapeOrNull(Triangle actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -58,10 +58,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Triangle. - public ShapeOrNull(Triangle actualInstance) + /// An instance of Quadrilateral. + public ShapeOrNull(Quadrilateral actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -97,16 +97,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of Quadrilateral - public Quadrilateral GetQuadrilateral() - { - return (Quadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, /// the InvalidClassException will be thrown @@ -117,6 +107,16 @@ namespace Org.OpenAPITools.Model return (Triangle)this.ActualInstance; } + /// + /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of Quadrilateral + public Quadrilateral GetQuadrilateral() + { + return (Quadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Mammal.cs index 841b9ba43e9..8630f21bba4 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Mammal.cs @@ -35,18 +35,6 @@ namespace Org.OpenAPITools.Model [DataContract(Name = "mammal")] public partial class Mammal : AbstractOpenAPISchema, IEquatable, IValidatableObject { - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of Pig. - public Mammal(Pig actualInstance) - { - this.IsNullable = false; - this.SchemaType= "oneOf"; - this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - /// /// Initializes a new instance of the class /// with the class @@ -71,6 +59,18 @@ namespace Org.OpenAPITools.Model this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of Pig. + public Mammal(Pig actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + private Object _actualInstance; @@ -104,16 +104,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Pig`. If the actual instance is not `Pig`, - /// the InvalidClassException will be thrown - /// - /// An instance of Pig - public Pig GetPig() - { - return (Pig)this.ActualInstance; - } - /// /// Get the actual instance of `Whale`. If the actual instance is not `Whale`, /// the InvalidClassException will be thrown @@ -134,6 +124,16 @@ namespace Org.OpenAPITools.Model return (Zebra)this.ActualInstance; } + /// + /// Get the actual instance of `Pig`. If the actual instance is not `Pig`, + /// the InvalidClassException will be thrown + /// + /// An instance of Pig + public Pig GetPig() + { + return (Pig)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/NullableShape.cs index ab311baedd6..01cedb8807b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/NullableShape.cs @@ -46,10 +46,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Quadrilateral. - public NullableShape(Quadrilateral actualInstance) + /// An instance of Triangle. + public NullableShape(Triangle actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -58,10 +58,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Triangle. - public NullableShape(Triangle actualInstance) + /// An instance of Quadrilateral. + public NullableShape(Quadrilateral actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -97,16 +97,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of Quadrilateral - public Quadrilateral GetQuadrilateral() - { - return (Quadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, /// the InvalidClassException will be thrown @@ -117,6 +107,16 @@ namespace Org.OpenAPITools.Model return (Triangle)this.ActualInstance; } + /// + /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of Quadrilateral + public Quadrilateral GetQuadrilateral() + { + return (Quadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Quadrilateral.cs index 7e232c39f0a..2e4fc5cb041 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -37,10 +37,10 @@ namespace Org.OpenAPITools.Model { /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of ComplexQuadrilateral. - public Quadrilateral(ComplexQuadrilateral actualInstance) + /// An instance of SimpleQuadrilateral. + public Quadrilateral(SimpleQuadrilateral actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -49,10 +49,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of SimpleQuadrilateral. - public Quadrilateral(SimpleQuadrilateral actualInstance) + /// An instance of ComplexQuadrilateral. + public Quadrilateral(ComplexQuadrilateral actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -88,16 +88,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `ComplexQuadrilateral`. If the actual instance is not `ComplexQuadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of ComplexQuadrilateral - public ComplexQuadrilateral GetComplexQuadrilateral() - { - return (ComplexQuadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `SimpleQuadrilateral`. If the actual instance is not `SimpleQuadrilateral`, /// the InvalidClassException will be thrown @@ -108,6 +98,16 @@ namespace Org.OpenAPITools.Model return (SimpleQuadrilateral)this.ActualInstance; } + /// + /// Get the actual instance of `ComplexQuadrilateral`. If the actual instance is not `ComplexQuadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of ComplexQuadrilateral + public ComplexQuadrilateral GetComplexQuadrilateral() + { + return (ComplexQuadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Shape.cs index fd3d6cb439f..bc73c0d68a7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Shape.cs @@ -37,10 +37,10 @@ namespace Org.OpenAPITools.Model { /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Quadrilateral. - public Shape(Quadrilateral actualInstance) + /// An instance of Triangle. + public Shape(Triangle actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -49,10 +49,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Triangle. - public Shape(Triangle actualInstance) + /// An instance of Quadrilateral. + public Shape(Quadrilateral actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -88,16 +88,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of Quadrilateral - public Quadrilateral GetQuadrilateral() - { - return (Quadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, /// the InvalidClassException will be thrown @@ -108,6 +98,16 @@ namespace Org.OpenAPITools.Model return (Triangle)this.ActualInstance; } + /// + /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of Quadrilateral + public Quadrilateral GetQuadrilateral() + { + return (Quadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/ShapeOrNull.cs index f378c1e3b7b..a6d3624c26f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -46,10 +46,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Quadrilateral. - public ShapeOrNull(Quadrilateral actualInstance) + /// An instance of Triangle. + public ShapeOrNull(Triangle actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -58,10 +58,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Triangle. - public ShapeOrNull(Triangle actualInstance) + /// An instance of Quadrilateral. + public ShapeOrNull(Quadrilateral actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -97,16 +97,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of Quadrilateral - public Quadrilateral GetQuadrilateral() - { - return (Quadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, /// the InvalidClassException will be thrown @@ -117,6 +107,16 @@ namespace Org.OpenAPITools.Model return (Triangle)this.ActualInstance; } + /// + /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of Quadrilateral + public Quadrilateral GetQuadrilateral() + { + return (Quadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Mammal.cs index 68ac3161992..2319eee19d7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Mammal.cs @@ -35,18 +35,6 @@ namespace Org.OpenAPITools.Model [DataContract(Name = "mammal")] public partial class Mammal : AbstractOpenAPISchema, IEquatable, IValidatableObject { - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of Pig. - public Mammal(Pig actualInstance) - { - this.IsNullable = false; - this.SchemaType= "oneOf"; - this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - /// /// Initializes a new instance of the class /// with the class @@ -71,6 +59,18 @@ namespace Org.OpenAPITools.Model this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of Pig. + public Mammal(Pig actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + private Object _actualInstance; @@ -104,16 +104,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Pig`. If the actual instance is not `Pig`, - /// the InvalidClassException will be thrown - /// - /// An instance of Pig - public Pig GetPig() - { - return (Pig)this.ActualInstance; - } - /// /// Get the actual instance of `Whale`. If the actual instance is not `Whale`, /// the InvalidClassException will be thrown @@ -134,6 +124,16 @@ namespace Org.OpenAPITools.Model return (Zebra)this.ActualInstance; } + /// + /// Get the actual instance of `Pig`. If the actual instance is not `Pig`, + /// the InvalidClassException will be thrown + /// + /// An instance of Pig + public Pig GetPig() + { + return (Pig)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/NullableShape.cs index 5dd73a56ef7..fe2057b6bad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/NullableShape.cs @@ -46,10 +46,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Quadrilateral. - public NullableShape(Quadrilateral actualInstance) + /// An instance of Triangle. + public NullableShape(Triangle actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -58,10 +58,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Triangle. - public NullableShape(Triangle actualInstance) + /// An instance of Quadrilateral. + public NullableShape(Quadrilateral actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -97,16 +97,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of Quadrilateral - public Quadrilateral GetQuadrilateral() - { - return (Quadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, /// the InvalidClassException will be thrown @@ -117,6 +107,16 @@ namespace Org.OpenAPITools.Model return (Triangle)this.ActualInstance; } + /// + /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of Quadrilateral + public Quadrilateral GetQuadrilateral() + { + return (Quadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Quadrilateral.cs index a1a850f169e..c140a82d6cc 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -37,10 +37,10 @@ namespace Org.OpenAPITools.Model { /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of ComplexQuadrilateral. - public Quadrilateral(ComplexQuadrilateral actualInstance) + /// An instance of SimpleQuadrilateral. + public Quadrilateral(SimpleQuadrilateral actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -49,10 +49,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of SimpleQuadrilateral. - public Quadrilateral(SimpleQuadrilateral actualInstance) + /// An instance of ComplexQuadrilateral. + public Quadrilateral(ComplexQuadrilateral actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -88,16 +88,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `ComplexQuadrilateral`. If the actual instance is not `ComplexQuadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of ComplexQuadrilateral - public ComplexQuadrilateral GetComplexQuadrilateral() - { - return (ComplexQuadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `SimpleQuadrilateral`. If the actual instance is not `SimpleQuadrilateral`, /// the InvalidClassException will be thrown @@ -108,6 +98,16 @@ namespace Org.OpenAPITools.Model return (SimpleQuadrilateral)this.ActualInstance; } + /// + /// Get the actual instance of `ComplexQuadrilateral`. If the actual instance is not `ComplexQuadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of ComplexQuadrilateral + public ComplexQuadrilateral GetComplexQuadrilateral() + { + return (ComplexQuadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Shape.cs index dd74fa4b718..3e719b226cb 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Shape.cs @@ -37,10 +37,10 @@ namespace Org.OpenAPITools.Model { /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Quadrilateral. - public Shape(Quadrilateral actualInstance) + /// An instance of Triangle. + public Shape(Triangle actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -49,10 +49,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Triangle. - public Shape(Triangle actualInstance) + /// An instance of Quadrilateral. + public Shape(Quadrilateral actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -88,16 +88,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of Quadrilateral - public Quadrilateral GetQuadrilateral() - { - return (Quadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, /// the InvalidClassException will be thrown @@ -108,6 +98,16 @@ namespace Org.OpenAPITools.Model return (Triangle)this.ActualInstance; } + /// + /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of Quadrilateral + public Quadrilateral GetQuadrilateral() + { + return (Quadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index c6b87c89751..b615fc43dd8 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -46,10 +46,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Quadrilateral. - public ShapeOrNull(Quadrilateral actualInstance) + /// An instance of Triangle. + public ShapeOrNull(Triangle actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -58,10 +58,10 @@ namespace Org.OpenAPITools.Model /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of Triangle. - public ShapeOrNull(Triangle actualInstance) + /// An instance of Quadrilateral. + public ShapeOrNull(Quadrilateral actualInstance) { this.IsNullable = true; this.SchemaType= "oneOf"; @@ -97,16 +97,6 @@ namespace Org.OpenAPITools.Model } } - /// - /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, - /// the InvalidClassException will be thrown - /// - /// An instance of Quadrilateral - public Quadrilateral GetQuadrilateral() - { - return (Quadrilateral)this.ActualInstance; - } - /// /// Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, /// the InvalidClassException will be thrown @@ -117,6 +107,16 @@ namespace Org.OpenAPITools.Model return (Triangle)this.ActualInstance; } + /// + /// Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, + /// the InvalidClassException will be thrown + /// + /// An instance of Quadrilateral + public Quadrilateral GetQuadrilateral() + { + return (Quadrilateral)this.ActualInstance; + } + /// /// Returns the string presentation of the object ///