Exemple #1
0
 class type(
     _SchemaEnumMaker(
         enum_value_to_name={
             "plains": "PLAINS",
             "mountain": "MOUNTAIN",
             "grevys": "GREVYS",
         }
     ),
     StrSchema
 ):
     
     @classmethod
     @property
     def PLAINS(cls):
         return cls._enum_by_value["plains"]("plains")
     
     @classmethod
     @property
     def MOUNTAIN(cls):
         return cls._enum_by_value["mountain"]("mountain")
     
     @classmethod
     @property
     def GREVYS(cls):
         return cls._enum_by_value["grevys"]("grevys")
class StringEnumWithDefaultValue(
    _SchemaEnumMaker(
        enum_value_to_name={
            "placed": "PLACED",
            "approved": "APPROVED",
            "delivered": "DELIVERED",
        }
    ),
    StrSchema
):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """
    
    @classmethod
    @property
    def PLACED(cls):
        return cls("placed")
    
    @classmethod
    @property
    def APPROVED(cls):
        return cls("approved")
    
    @classmethod
    @property
    def DELIVERED(cls):
        return cls("delivered")
class IntegerEnumWithDefaultValue(
        _SchemaEnumMaker(enum_value_to_name={
            0: "POSITIVE_0",
            1: "POSITIVE_1",
            2: "POSITIVE_2",
        }), IntSchema):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """
    @classmethod
    @property
    def POSITIVE_0(cls):
        return cls._enum_by_value[0](0)

    @classmethod
    @property
    def POSITIVE_1(cls):
        return cls._enum_by_value[1](1)

    @classmethod
    @property
    def POSITIVE_2(cls):
        return cls._enum_by_value[2](2)
class EnumClass(
    _SchemaEnumMaker(
        enum_value_to_name={
            "_abc": "_ABC",
            "-efg": "EFG",
            "(xyz)": "XYZ",
        }
    ),
    StrSchema
):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.

    Attributes:
    """
    
    @classmethod
    @property
    def _ABC(cls):
        return cls._enum_by_value["_abc"]("_abc")
    
    @classmethod
    @property
    def EFG(cls):
        return cls._enum_by_value["-efg"]("-efg")
    
    @classmethod
    @property
    def XYZ(cls):
        return cls._enum_by_value["(xyz)"]("(xyz)")
Exemple #5
0
 class className(_SchemaEnumMaker(enum_value_to_name={
         "zebra": "ZEBRA",
 }), StrSchema):
     @classmethod
     @property
     def ZEBRA(cls):
         return cls("zebra")
class IntegerEnumBig(
        _SchemaEnumMaker(enum_value_to_name={
            10: "POSITIVE_10",
            11: "POSITIVE_11",
            12: "POSITIVE_12",
        }), IntSchema):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """
    @classmethod
    @property
    def POSITIVE_10(cls):
        return cls._enum_by_value[10](10)

    @classmethod
    @property
    def POSITIVE_11(cls):
        return cls._enum_by_value[11](11)

    @classmethod
    @property
    def POSITIVE_12(cls):
        return cls._enum_by_value[12](12)
Exemple #7
0
 class className(_SchemaEnumMaker(enum_value_to_name={
         "whale": "WHALE",
 }), StrSchema):
     @classmethod
     @property
     def WHALE(cls):
         return cls._enum_by_value["whale"]("whale")
 class _items(
     _SchemaEnumMaker(
         enum_value_to_name={
             "available": "AVAILABLE",
             "pending": "PENDING",
             "sold": "SOLD",
         }
     ),
     StrSchema
 ):
     
     @classmethod
     @property
     def AVAILABLE(cls):
         return cls("available")
     
     @classmethod
     @property
     def PENDING(cls):
         return cls("pending")
     
     @classmethod
     @property
     def SOLD(cls):
         return cls("sold")
Exemple #9
0
class EnumQueryStringSchema(
    _SchemaEnumMaker(
        enum_value_to_name={
            "_abc": "_ABC",
            "-efg": "EFG",
            "(xyz)": "XYZ",
        }
    ),
    StrSchema
):
    
    @classmethod
    @property
    def _ABC(cls):
        return cls._enum_by_value["_abc"]("_abc")
    
    @classmethod
    @property
    def EFG(cls):
        return cls._enum_by_value["-efg"]("-efg")
    
    @classmethod
    @property
    def XYZ(cls):
        return cls._enum_by_value["(xyz)"]("(xyz)")
Exemple #10
0
 class status(
     _SchemaEnumMaker(
         enum_value_to_name={
             "placed": "PLACED",
             "approved": "APPROVED",
             "delivered": "DELIVERED",
         }
     ),
     StrSchema
 ):
     
     @classmethod
     @property
     def PLACED(cls):
         return cls._enum_by_value["placed"]("placed")
     
     @classmethod
     @property
     def APPROVED(cls):
         return cls._enum_by_value["approved"]("approved")
     
     @classmethod
     @property
     def DELIVERED(cls):
         return cls._enum_by_value["delivered"]("delivered")
Exemple #11
0
 class shapeType(
         _SchemaEnumMaker(enum_value_to_name={
             "Triangle": "TRIANGLE",
         }), StrSchema):
     @classmethod
     @property
     def TRIANGLE(cls):
         return cls("Triangle")
 class triangleType(
         _SchemaEnumMaker(enum_value_to_name={
             "EquilateralTriangle": "EQUILATERALTRIANGLE",
         }), StrSchema):
     @classmethod
     @property
     def EQUILATERALTRIANGLE(cls):
         return cls("EquilateralTriangle")
 class triangleType(
         _SchemaEnumMaker(enum_value_to_name={
             "IsoscelesTriangle": "ISOSCELESTRIANGLE",
         }), StrSchema):
     @classmethod
     @property
     def ISOSCELESTRIANGLE(cls):
         return cls._enum_by_value["IsoscelesTriangle"]("IsoscelesTriangle")
 class triangleType(
         _SchemaEnumMaker(enum_value_to_name={
             "ScaleneTriangle": "SCALENETRIANGLE",
         }), StrSchema):
     @classmethod
     @property
     def SCALENETRIANGLE(cls):
         return cls._enum_by_value["ScaleneTriangle"]("ScaleneTriangle")
 class quadrilateralType(
         _SchemaEnumMaker(enum_value_to_name={
             "ComplexQuadrilateral": "COMPLEXQUADRILATERAL",
         }), StrSchema):
     @classmethod
     @property
     def COMPLEXQUADRILATERAL(cls):
         return cls("ComplexQuadrilateral")
 class quadrilateralType(
         _SchemaEnumMaker(enum_value_to_name={
             "SimpleQuadrilateral": "SIMPLEQUADRILATERAL",
         }), StrSchema):
     @classmethod
     @property
     def SIMPLEQUADRILATERAL(cls):
         return cls("SimpleQuadrilateral")
 class shapeType(
         _SchemaEnumMaker(enum_value_to_name={
             "Quadrilateral": "QUADRILATERAL",
         }), StrSchema):
     @classmethod
     @property
     def QUADRILATERAL(cls):
         return cls._enum_by_value["Quadrilateral"]("Quadrilateral")
Exemple #18
0
 class className(
         _SchemaEnumMaker(enum_value_to_name={
             "DanishPig": "DANISHPIG",
         }), StrSchema):
     @classmethod
     @property
     def DANISHPIG(cls):
         return cls._enum_by_value["DanishPig"]("DanishPig")
 class className(
         _SchemaEnumMaker(enum_value_to_name={
             "BasquePig": "BASQUEPIG",
         }), StrSchema):
     @classmethod
     @property
     def BASQUEPIG(cls):
         return cls("BasquePig")
Exemple #20
0
class BooleanEnum(_SchemaEnumMaker(enum_value_to_name={
        True: "TRUE",
}), BoolSchema):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """
    @classmethod
    @property
    def TRUE(cls):
        return cls._enum_by_value[True](True)
class IntegerEnumOneValue(
        _SchemaEnumMaker(enum_value_to_name={
            0: "POSITIVE_0",
        }), IntSchema):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """
    @classmethod
    @property
    def POSITIVE_0(cls):
        return cls(0)
    class just_symbol(
            _SchemaEnumMaker(enum_value_to_name={
                ">=": "GREATER_THAN_EQUALS",
                "$": "DOLLAR",
            }), StrSchema):
        @classmethod
        @property
        def GREATER_THAN_EQUALS(cls):
            return cls._enum_by_value[">="](">=")

        @classmethod
        @property
        def DOLLAR(cls):
            return cls._enum_by_value["$"]("$")
        class _items(
                _SchemaEnumMaker(enum_value_to_name={
                    "fish": "FISH",
                    "crab": "CRAB",
                }), StrSchema):
            @classmethod
            @property
            def FISH(cls):
                return cls._enum_by_value["fish"]("fish")

            @classmethod
            @property
            def CRAB(cls):
                return cls._enum_by_value["crab"]("crab")
Exemple #24
0
    class enum_number(
            _SchemaEnumMaker(enum_value_to_name={
                1.1: "POSITIVE_1_PT_1",
                -1.2: "NEGATIVE_1_PT_2",
            }), Float64Schema):
        @classmethod
        @property
        def POSITIVE_1_PT_1(cls):
            return cls(1.1)

        @classmethod
        @property
        def NEGATIVE_1_PT_2(cls):
            return cls(-1.2)
Exemple #25
0
    class enum_integer(
            _SchemaEnumMaker(enum_value_to_name={
                1: "POSITIVE_1",
                -1: "NEGATIVE_1",
            }), Int32Schema):
        @classmethod
        @property
        def POSITIVE_1(cls):
            return cls._enum_by_value[1](1)

        @classmethod
        @property
        def NEGATIVE_1(cls):
            return cls._enum_by_value[-1](-1)
Exemple #26
0
    class _items(
            _SchemaEnumMaker(enum_value_to_name={
                ">": "GREATER_THAN",
                "$": "DOLLAR",
            }), StrSchema):
        @classmethod
        @property
        def GREATER_THAN(cls):
            return cls._enum_by_value[">"](">")

        @classmethod
        @property
        def DOLLAR(cls):
            return cls._enum_by_value["$"]("$")
Exemple #27
0
class EnumQueryIntegerSchema(
        _SchemaEnumMaker(enum_value_to_name={
            1: "POSITIVE_1",
            -2: "NEGATIVE_2",
        }), Int32Schema):
    @classmethod
    @property
    def POSITIVE_1(cls):
        return cls._enum_by_value[1](1)

    @classmethod
    @property
    def NEGATIVE_2(cls):
        return cls._enum_by_value[-2](-2)
Exemple #28
0
        class _additional_properties(
                _SchemaEnumMaker(enum_value_to_name={
                    "UPPER": "UPPER",
                    "lower": "LOWER",
                }), StrSchema):
            @classmethod
            @property
            def UPPER(cls):
                return cls._enum_by_value["UPPER"]("UPPER")

            @classmethod
            @property
            def LOWER(cls):
                return cls._enum_by_value["lower"]("lower")
Exemple #29
0
class EnumQueryDoubleSchema(
        _SchemaEnumMaker(enum_value_to_name={
            1.1: "POSITIVE_1_PT_1",
            -1.2: "NEGATIVE_1_PT_2",
        }), Float64Schema):
    @classmethod
    @property
    def POSITIVE_1_PT_1(cls):
        return cls._enum_by_value[1.1](1.1)

    @classmethod
    @property
    def NEGATIVE_1_PT_2(cls):
        return cls._enum_by_value[-1.2](-1.2)
Exemple #30
0
class Currency(
        _SchemaEnumMaker(enum_value_to_name={
            "eur": "EUR",
            "usd": "USD",
        }), StrSchema):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """
    @classmethod
    @property
    def EUR(cls):
        return cls._enum_by_value["eur"]("eur")

    @classmethod
    @property
    def USD(cls):
        return cls._enum_by_value["usd"]("usd")