Example #1
0
class Apple(
    _SchemaTypeChecker(typing.Union[frozendict, none_type, ]),
    DictBase,
    NoneBase,
    Schema
):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.

    Attributes:
    cultivar (str,): 
    origin (str,): 
    _additional_properties (Schema): the definition used for additional properties
        that are not defined in _properties
    """
    _required_property_names = set((
        'cultivar',
    ))
    
    
    class cultivar(
        _SchemaValidator(
            regex=[{
                'pattern': r'^[a-zA-Z\s]*$',  # noqa: E501
            }],
        ),
        StrSchema
    ):
        pass
    
    
    class origin(
        _SchemaValidator(
            regex=[{
                'pattern': r'^[A-Z\s]*$',  # noqa: E501
                'flags': (
                    re.IGNORECASE
                )
            }],
        ),
        StrSchema
    ):
        pass

    def __new__(
        cls,
        *args: typing.Union[dict, frozendict, None, ],
        origin: typing.Union[origin, Unset] = unset,
        _instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
        **kwargs: typing.Type[Schema],
    ):
        return super().__new__(
            cls,
            *args,
            origin=origin,
            _instantiation_metadata=_instantiation_metadata,
            **kwargs,
        )
Example #2
0
    class object_and_items_nullable_prop(
            _SchemaTypeChecker(typing.Union[frozendict, none_type, ]),
            DictBase, NoneBase, Schema):
        class _additional_properties(
                _SchemaTypeChecker(typing.Union[frozendict, none_type, ]),
                DictBase, NoneBase, Schema):
            def __new__(
                cls,
                *args: typing.Union[dict, frozendict, None, ],
                _instantiation_metadata: typing.
                Optional[InstantiationMetadata] = None,
                **kwargs: typing.Type[Schema],
            ) -> '_additional_properties':
                return super().__new__(
                    cls,
                    *args,
                    _instantiation_metadata=_instantiation_metadata,
                    **kwargs,
                )

        def __new__(
            cls,
            *args: typing.Union[dict, frozendict, None, ],
            _instantiation_metadata: typing.
            Optional[InstantiationMetadata] = None,
            **kwargs: typing.Type[Schema],
        ) -> 'object_and_items_nullable_prop':
            return super().__new__(
                cls,
                *args,
                _instantiation_metadata=_instantiation_metadata,
                **kwargs,
            )
Example #3
0
    class object_and_items_nullable_prop(
            _SchemaTypeChecker(typing.Union[frozendict, none_type, ]),
            DictBase, NoneBase, Schema):
        class _additional_properties(
                _SchemaTypeChecker(typing.Union[frozendict, none_type, ]),
                DictBase, NoneBase, Schema):
            def __new__(
                cls,
                *args: typing.Union[dict, frozendict, None, ],
                _configuration: typing.Optional[Configuration] = None,
                **kwargs: typing.Type[Schema],
            ) -> '_additional_properties':
                return super().__new__(
                    cls,
                    *args,
                    _configuration=_configuration,
                    **kwargs,
                )

        def __new__(
            cls,
            *args: typing.Union[dict, frozendict, None, ],
            _configuration: typing.Optional[Configuration] = None,
            **kwargs: typing.Type[Schema],
        ) -> 'object_and_items_nullable_prop':
            return super().__new__(
                cls,
                *args,
                _configuration=_configuration,
                **kwargs,
            )
Example #4
0
class Apple(
    _SchemaTypeChecker(typing.Union[frozendict, none_type, ]),
    DictBase,
    NoneBase,
    Schema
):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """
    _required_property_names = set((
        'cultivar',
    ))
    
    
    class cultivar(
        _SchemaValidator(
            regex=[{
                'pattern': r'^[a-zA-Z\s]*$',  # noqa: E501
            }],
        ),
        StrSchema
    ):
        pass
    
    
    class origin(
        _SchemaValidator(
            regex=[{
                'pattern': r'^[A-Z\s]*$',  # noqa: E501
                'flags': (
                    re.IGNORECASE
                )
            }],
        ),
        StrSchema
    ):
        pass

    def __new__(
        cls,
        *args: typing.Union[dict, frozendict, None, ],
        origin: typing.Union[origin, Unset] = unset,
        _configuration: typing.Optional[Configuration] = None,
        **kwargs: typing.Type[Schema],
    ) -> 'Apple':
        return super().__new__(
            cls,
            *args,
            origin=origin,
            _configuration=_configuration,
            **kwargs,
        )
Example #5
0
 class NullableMessage(_SchemaTypeChecker(typing.Union[none_type, str, ]),
                       StrBase, NoneBase, Schema):
     def __new__(
         cls,
         *args: typing.Union[str, None, ],
         _configuration: typing.Optional[Configuration] = None,
     ) -> 'NullableMessage':
         return super().__new__(
             cls,
             *args,
             _configuration=_configuration,
         )
Example #6
0
 class date_prop(_SchemaTypeChecker(typing.Union[none_type, str, ]),
                 DateBase, NoneBase, Schema):
     def __new__(
         cls,
         *args: typing.Union[None, ],
         _configuration: typing.Optional[Configuration] = None,
     ) -> 'date_prop':
         return super().__new__(
             cls,
             *args,
             _configuration=_configuration,
         )
Example #7
0
 class boolean_prop(_SchemaTypeChecker(typing.Union[none_type, bool, ]),
                    BoolBase, NoneBase, Schema):
     def __new__(
         cls,
         *args: typing.Union[bool, None, ],
         _configuration: typing.Optional[Configuration] = None,
     ) -> 'boolean_prop':
         return super().__new__(
             cls,
             *args,
             _configuration=_configuration,
         )
 class NullableMessage(_SchemaTypeChecker(typing.Union[none_type, str, ]),
                       StrBase, NoneBase, Schema):
     def __new__(
         cls,
         *args: typing.Union[str, None, ],
         _instantiation_metadata: typing.
         Optional[InstantiationMetadata] = None,
     ) -> 'NullableMessage':
         return super().__new__(
             cls,
             *args,
             _instantiation_metadata=_instantiation_metadata,
         )
Example #9
0
 class number_prop(
         _SchemaTypeChecker(typing.Union[none_type, decimal.Decimal, ]),
         NumberBase, NoneBase, Schema):
     def __new__(
         cls,
         *args: typing.Union[float, None, ],
         _configuration: typing.Optional[Configuration] = None,
     ) -> 'number_prop':
         return super().__new__(
             cls,
             *args,
             _configuration=_configuration,
         )
Example #10
0
 class date_prop(_SchemaTypeChecker(typing.Union[none_type, str, ]),
                 DateBase, NoneBase, Schema):
     def __new__(
         cls,
         *args: typing.Union[None, ],
         _instantiation_metadata: typing.
         Optional[InstantiationMetadata] = None,
     ) -> 'date_prop':
         return super().__new__(
             cls,
             *args,
             _instantiation_metadata=_instantiation_metadata,
         )
Example #11
0
 class array_and_items_nullable_prop(
         _SchemaTypeChecker(typing.Union[tuple, none_type, ]), ListBase,
         NoneBase, Schema):
     def __new__(
         cls,
         *args: typing.Union[list, tuple, None, ],
         _configuration: typing.Optional[Configuration] = None,
     ) -> 'array_and_items_nullable_prop':
         return super().__new__(
             cls,
             *args,
             _configuration=_configuration,
         )
Example #12
0
 class boolean_prop(_SchemaTypeChecker(typing.Union[none_type, bool, ]),
                    BoolBase, NoneBase, Schema):
     def __new__(
         cls,
         *args: typing.Union[bool, None, ],
         _instantiation_metadata: typing.
         Optional[InstantiationMetadata] = None,
     ) -> 'boolean_prop':
         return super().__new__(
             cls,
             *args,
             _instantiation_metadata=_instantiation_metadata,
         )
Example #13
0
 class array_and_items_nullable_prop(
         _SchemaTypeChecker(typing.Union[tuple, none_type, ]), ListBase,
         NoneBase, Schema):
     def __new__(
         cls,
         *args: typing.Union[list, tuple, None, ],
         _instantiation_metadata: typing.
         Optional[InstantiationMetadata] = None,
     ) -> 'array_and_items_nullable_prop':
         return super().__new__(
             cls,
             *args,
             _instantiation_metadata=_instantiation_metadata,
         )
Example #14
0
 class _items(_SchemaTypeChecker(typing.Union[frozendict, none_type, ]),
              DictBase, NoneBase, Schema):
     def __new__(
         cls,
         *args: typing.Union[dict, frozendict, None, ],
         _configuration: typing.Optional[Configuration] = None,
         **kwargs: typing.Type[Schema],
     ) -> '_items':
         return super().__new__(
             cls,
             *args,
             _configuration=_configuration,
             **kwargs,
         )
Example #15
0
 class number_prop(
         _SchemaTypeChecker(typing.Union[none_type, decimal.Decimal, ]),
         NumberBase, NoneBase, Schema):
     def __new__(
         cls,
         *args: typing.Union[float, None, ],
         _instantiation_metadata: typing.
         Optional[InstantiationMetadata] = None,
     ) -> 'number_prop':
         return super().__new__(
             cls,
             *args,
             _instantiation_metadata=_instantiation_metadata,
         )
Example #16
0
 class objectWithNoDeclaredPropsNullable(
         _SchemaTypeChecker(typing.Union[frozendict, none_type, ]),
         DictBase, NoneBase, Schema):
     def __new__(
         cls,
         *args: typing.Union[dict, frozendict, None, ],
         _configuration: typing.Optional[Configuration] = None,
         **kwargs: typing.Type[Schema],
     ) -> 'objectWithNoDeclaredPropsNullable':
         return super().__new__(
             cls,
             *args,
             _configuration=_configuration,
             **kwargs,
         )
Example #17
0
 class _items(_SchemaTypeChecker(typing.Union[frozendict, none_type, ]),
              DictBase, NoneBase, Schema):
     def __new__(
         cls,
         *args: typing.Union[dict, frozendict, None, ],
         _instantiation_metadata: typing.
         Optional[InstantiationMetadata] = None,
         **kwargs: typing.Type[Schema],
     ) -> '_items':
         return super().__new__(
             cls,
             *args,
             _instantiation_metadata=_instantiation_metadata,
             **kwargs,
         )
Example #18
0
 class objectWithNoDeclaredPropsNullable(
         _SchemaTypeChecker(typing.Union[frozendict, none_type, ]),
         DictBase, NoneBase, Schema):
     def __new__(
         cls,
         *args: typing.Union[dict, frozendict, None, ],
         _instantiation_metadata: typing.
         Optional[InstantiationMetadata] = None,
         **kwargs: typing.Type[Schema],
     ):
         return super().__new__(
             cls,
             *args,
             _instantiation_metadata=_instantiation_metadata,
             **kwargs,
         )
class NullableString(_SchemaTypeChecker(typing.Union[none_type, str, ]),
                     StrBase, NoneBase, Schema):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """
    def __new__(
        cls,
        *args: typing.Union[str, None, ],
        _configuration: typing.Optional[Configuration] = None,
    ) -> 'NullableString':
        return super().__new__(
            cls,
            *args,
            _configuration=_configuration,
        )
class NullableString(_SchemaTypeChecker(typing.Union[none_type, str, ]),
                     StrBase, NoneBase, Schema):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.

    Attributes:
    """
    def __new__(
        cls,
        *args: typing.Union[str, None, ],
        _instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
    ):
        return super().__new__(
            cls,
            *args,
            _instantiation_metadata=_instantiation_metadata,
        )
class StringEnum(
        _SchemaTypeChecker(typing.Union[none_type, str, ]),
        _SchemaEnumMaker(
            enum_value_to_name={
                None: "NONE",
                "placed": "PLACED",
                "approved": "APPROVED",
                "delivered": "DELIVERED",
                "single quoted": "SINGLE_QUOTED",
                '''multiple
lines''': "MULTIPLE_LINES",
                '''double quote 
 with newline''': "DOUBLE_QUOTE_WITH_NEWLINE",
            }), StrBase, NoneBase, Schema):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

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

    @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")

    @classmethod
    @property
    def SINGLE_QUOTED(cls):
        return cls._enum_by_value["single quoted"]("single quoted")

    @classmethod
    @property
    def MULTIPLE_LINES(cls):
        return cls._enum_by_value['''multiple
lines''']('''multiple
lines''')

    @classmethod
    @property
    def DOUBLE_QUOTE_WITH_NEWLINE(cls):
        return cls._enum_by_value['''double quote 
 with newline''']('''double quote 
 with newline''')

    def __new__(
        cls,
        *args: typing.Union[str, None, ],
        _configuration: typing.Optional[Configuration] = None,
    ) -> 'StringEnum':
        return super().__new__(
            cls,
            *args,
            _configuration=_configuration,
        )