Ejemplo n.º 1
0
    def __init__(self, array_of_string=None, array_array_of_integer=None, array_array_of_model=None, local_vars_configuration=None):  # noqa: E501
        """ArrayTest - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._array_of_string = None
        self._array_array_of_integer = None
        self._array_array_of_model = None
        self.discriminator = None

        if array_of_string is not None:
            self.array_of_string = array_of_string
        if array_array_of_integer is not None:
            self.array_array_of_integer = array_array_of_integer
        if array_array_of_model is not None:
            self.array_array_of_model = array_array_of_model
Ejemplo n.º 2
0
    def __init__(self,
                 configuration=None,
                 header_name=None,
                 header_value=None,
                 cookie=None):
        if configuration is None:
            configuration = Configuration()
        self.configuration = configuration

        self.pool = ThreadPool()
        self.rest_client = rest.RESTClientObject(configuration)
        self.default_headers = {}
        if header_name is not None:
            self.default_headers[header_name] = header_value
        self.cookie = cookie
        # Set default User-Agent.
        self.user_agent = 'OpenAPI-Generator/1.0.0/python'
Ejemplo n.º 3
0
    def __init__(self, code=None, type=None, message=None, local_vars_configuration=None):  # noqa: E501
        """ApiResponse - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._code = None
        self._type = None
        self._message = None
        self.discriminator = None

        if code is not None:
            self.code = code
        if type is not None:
            self.type = type
        if message is not None:
            self.message = message
Ejemplo n.º 4
0
    def __init__(self,
                 additional_metadata=None,
                 file=None,
                 local_vars_configuration=None):  # noqa: E501
        """InlineObject1 - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._additional_metadata = None
        self._file = None
        self.discriminator = None

        if additional_metadata is not None:
            self.additional_metadata = additional_metadata
        if file is not None:
            self.file = file
    def __init__(self,
                 map_property=None,
                 map_of_map_property=None,
                 local_vars_configuration=None):  # noqa: E501
        """AdditionalPropertiesClass - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._map_property = None
        self._map_of_map_property = None
        self.discriminator = None

        if map_property is not None:
            self.map_property = map_property
        if map_of_map_property is not None:
            self.map_of_map_property = map_of_map_property
Ejemplo n.º 6
0
    def __init__(self,
                 id=None,
                 name=None,
                 local_vars_configuration=None):  # noqa: E501
        """Tag - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self._name = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
    def __init__(self,
                 just_symbol=None,
                 array_enum=None,
                 local_vars_configuration=None):  # noqa: E501
        """EnumArrays - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._just_symbol = None
        self._array_enum = None
        self.discriminator = None

        if just_symbol is not None:
            self.just_symbol = just_symbol
        if array_enum is not None:
            self.array_enum = array_enum
Ejemplo n.º 8
0
    def __init__(self,
                 name=None,
                 _class=None,
                 local_vars_configuration=None):  # noqa: E501
        """Model200Response - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._name = None
        self.__class = None
        self.discriminator = None

        if name is not None:
            self.name = name
        if _class is not None:
            self._class = _class
Ejemplo n.º 9
0
    def __init__(self,
                 name=None,
                 status=None,
                 local_vars_configuration=None):  # noqa: E501
        """InlineObject - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._name = None
        self._status = None
        self.discriminator = None

        if name is not None:
            self.name = name
        if status is not None:
            self.status = status
Ejemplo n.º 10
0
    def __init__(self,
                 bar=None,
                 baz=None,
                 local_vars_configuration=None):  # noqa: E501
        """ReadOnlyFirst - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._bar = None
        self._baz = None
        self.discriminator = None

        if bar is not None:
            self.bar = bar
        if baz is not None:
            self.baz = baz
    def __init__(self, string_item='what', number_item=None, integer_item=None, bool_item=True, array_item=None, local_vars_configuration=None):  # noqa: E501
        """TypeHolderDefault - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._string_item = None
        self._number_item = None
        self._integer_item = None
        self._bool_item = None
        self._array_item = None
        self.discriminator = None

        self.string_item = string_item
        self.number_item = number_item
        self.integer_item = integer_item
        self.bool_item = bool_item
        self.array_item = array_item
    def __init__(self,
                 configuration=None,
                 header_name=None,
                 header_value=None,
                 cookie=None):
        if configuration is None:
            configuration = Configuration()
        self.configuration = configuration

        # Use the pool property to lazily initialize the ThreadPool.
        self._pool = None
        self.rest_client = rest.RESTClientObject(configuration)
        self.default_headers = {}
        if header_name is not None:
            self.default_headers[header_name] = header_value
        self.cookie = cookie
        # Set default User-Agent.
        self.user_agent = 'Swagger-Codegen/1.0.0/python'
Ejemplo n.º 13
0
    def __init__(self,
                 configuration=None,
                 header_name=None,
                 header_value=None,
                 cookie=None,
                 pool_threads=1):
        if configuration is None:
            configuration = Configuration.get_default_copy()
        self.configuration = configuration
        self.pool_threads = pool_threads

        self.rest_client = rest.RESTClientObject(configuration)
        self.default_headers = {}
        if header_name is not None:
            self.default_headers[header_name] = header_value
        self.cookie = cookie
        # Set default User-Agent.
        self.user_agent = 'OpenAPI-Generator/1.0.0/python'
        self.client_side_validation = configuration.client_side_validation
Ejemplo n.º 14
0
    def __init__(self, map_map_of_string=None, map_of_enum_string=None, direct_map=None, indirect_map=None, local_vars_configuration=None):  # noqa: E501
        """MapTest - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._map_map_of_string = None
        self._map_of_enum_string = None
        self._direct_map = None
        self._indirect_map = None
        self.discriminator = None

        if map_map_of_string is not None:
            self.map_map_of_string = map_map_of_string
        if map_of_enum_string is not None:
            self.map_of_enum_string = map_of_enum_string
        if direct_map is not None:
            self.direct_map = direct_map
        if indirect_map is not None:
            self.indirect_map = indirect_map
Ejemplo n.º 15
0
    def __init__(self,
                 id=None,
                 username=None,
                 first_name=None,
                 last_name=None,
                 email=None,
                 password=None,
                 phone=None,
                 user_status=None,
                 local_vars_configuration=None):  # noqa: E501
        """User - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self._username = None
        self._first_name = None
        self._last_name = None
        self._email = None
        self._password = None
        self._phone = None
        self._user_status = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if username is not None:
            self.username = username
        if first_name is not None:
            self.first_name = first_name
        if last_name is not None:
            self.last_name = last_name
        if email is not None:
            self.email = email
        if password is not None:
            self.password = password
        if phone is not None:
            self.phone = phone
        if user_status is not None:
            self.user_status = user_status
Ejemplo n.º 16
0
    def __init__(self, map_string=None, map_number=None, map_integer=None, map_boolean=None, map_array_integer=None, map_array_anytype=None, map_map_string=None, map_map_anytype=None, anytype_1=None, anytype_2=None, anytype_3=None, local_vars_configuration=None):  # noqa: E501
        """AdditionalPropertiesClass - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._map_string = None
        self._map_number = None
        self._map_integer = None
        self._map_boolean = None
        self._map_array_integer = None
        self._map_array_anytype = None
        self._map_map_string = None
        self._map_map_anytype = None
        self._anytype_1 = None
        self._anytype_2 = None
        self._anytype_3 = None
        self.discriminator = None

        if map_string is not None:
            self.map_string = map_string
        if map_number is not None:
            self.map_number = map_number
        if map_integer is not None:
            self.map_integer = map_integer
        if map_boolean is not None:
            self.map_boolean = map_boolean
        if map_array_integer is not None:
            self.map_array_integer = map_array_integer
        if map_array_anytype is not None:
            self.map_array_anytype = map_array_anytype
        if map_map_string is not None:
            self.map_map_string = map_map_string
        if map_map_anytype is not None:
            self.map_map_anytype = map_map_anytype
        if anytype_1 is not None:
            self.anytype_1 = anytype_1
        if anytype_2 is not None:
            self.anytype_2 = anytype_2
        if anytype_3 is not None:
            self.anytype_3 = anytype_3
Ejemplo n.º 17
0
    def __init__(self,
                 array_of_string=None,
                 array_array_of_integer=None,
                 array_array_of_model=None,
                 _configuration=None):  # noqa: E501
        """ArrayTest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._array_of_string = None
        self._array_array_of_integer = None
        self._array_array_of_model = None
        self.discriminator = None

        if array_of_string is not None:
            self.array_of_string = array_of_string
        if array_array_of_integer is not None:
            self.array_array_of_integer = array_array_of_integer
        if array_array_of_model is not None:
            self.array_array_of_model = array_array_of_model
Ejemplo n.º 18
0
    def __init__(self,
                 my_number=None,
                 my_string=None,
                 my_boolean=None,
                 _configuration=None):  # noqa: E501
        """OuterComposite - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._my_number = None
        self._my_string = None
        self._my_boolean = None
        self.discriminator = None

        if my_number is not None:
            self.my_number = my_number
        if my_string is not None:
            self.my_string = my_string
        if my_boolean is not None:
            self.my_boolean = my_boolean
Ejemplo n.º 19
0
    def __init__(self,
                 code=None,
                 type=None,
                 message=None,
                 _configuration=None):  # noqa: E501
        """ApiResponse - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._code = None
        self._type = None
        self._message = None
        self.discriminator = None

        if code is not None:
            self.code = code
        if type is not None:
            self.type = type
        if message is not None:
            self.message = message
Ejemplo n.º 20
0
    def __init__(self,
                 my_number=None,
                 my_string=None,
                 my_boolean=None,
                 local_vars_configuration=None):  # noqa: E501
        """OuterComposite - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._my_number = None
        self._my_string = None
        self._my_boolean = None
        self.discriminator = None

        if my_number is not None:
            self.my_number = my_number
        if my_string is not None:
            self.my_string = my_string
        if my_boolean is not None:
            self.my_boolean = my_boolean
    def __init__(self,
                 uuid=None,
                 date_time=None,
                 map=None,
                 local_vars_configuration=None):  # noqa: E501
        """MixedPropertiesAndAdditionalPropertiesClass - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._uuid = None
        self._date_time = None
        self._map = None
        self.discriminator = None

        if uuid is not None:
            self.uuid = uuid
        if date_time is not None:
            self.date_time = date_time
        if map is not None:
            self.map = map
    def __init__(self,
                 enum_string=None,
                 enum_string_required=None,
                 enum_integer=None,
                 enum_number=None,
                 outer_enum=None,
                 outer_enum_integer=None,
                 outer_enum_default_value=None,
                 outer_enum_integer_default_value=None,
                 local_vars_configuration=None):  # noqa: E501
        """EnumTest - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._enum_string = None
        self._enum_string_required = None
        self._enum_integer = None
        self._enum_number = None
        self._outer_enum = None
        self._outer_enum_integer = None
        self._outer_enum_default_value = None
        self._outer_enum_integer_default_value = None
        self.discriminator = None

        if enum_string is not None:
            self.enum_string = enum_string
        self.enum_string_required = enum_string_required
        if enum_integer is not None:
            self.enum_integer = enum_integer
        if enum_number is not None:
            self.enum_number = enum_number
        self.outer_enum = outer_enum
        if outer_enum_integer is not None:
            self.outer_enum_integer = outer_enum_integer
        if outer_enum_default_value is not None:
            self.outer_enum_default_value = outer_enum_default_value
        if outer_enum_integer_default_value is not None:
            self.outer_enum_integer_default_value = outer_enum_integer_default_value
Ejemplo n.º 23
0
    def __init__(self, id=None, category=None, name=None, photo_urls=None, tags=None, status=None, local_vars_configuration=None):  # noqa: E501
        """Pet - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self._category = None
        self._name = None
        self._photo_urls = None
        self._tags = None
        self._status = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if category is not None:
            self.category = category
        self.name = name
        self.photo_urls = photo_urls
        if tags is not None:
            self.tags = tags
        if status is not None:
            self.status = status
Ejemplo n.º 24
0
    def __init__(self,
                 name=None,
                 snake_case=None,
                 _property=None,
                 _123_number=None,
                 local_vars_configuration=None):  # noqa: E501
        """Name - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._name = None
        self._snake_case = None
        self.__property = None
        self.__123_number = None
        self.discriminator = None

        self.name = name
        if snake_case is not None:
            self.snake_case = snake_case
        if _property is not None:
            self._property = _property
        if _123_number is not None:
            self._123_number = _123_number
Ejemplo n.º 25
0
    def __init__(self,
                 name=None,
                 snake_case=None,
                 _property=None,
                 _123_number=None,
                 _configuration=None):  # noqa: E501
        """Name - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._name = None
        self._snake_case = None
        self.__property = None
        self.__123_number = None
        self.discriminator = None

        self.name = name
        if snake_case is not None:
            self.snake_case = snake_case
        if _property is not None:
            self._property = _property
        if _123_number is not None:
            self._123_number = _123_number
Ejemplo n.º 26
0
    def __init__(self,
                 attribute_string=None,
                 attribute_number=None,
                 attribute_integer=None,
                 attribute_boolean=None,
                 wrapped_array=None,
                 name_string=None,
                 name_number=None,
                 name_integer=None,
                 name_boolean=None,
                 name_array=None,
                 name_wrapped_array=None,
                 prefix_string=None,
                 prefix_number=None,
                 prefix_integer=None,
                 prefix_boolean=None,
                 prefix_array=None,
                 prefix_wrapped_array=None,
                 namespace_string=None,
                 namespace_number=None,
                 namespace_integer=None,
                 namespace_boolean=None,
                 namespace_array=None,
                 namespace_wrapped_array=None,
                 prefix_ns_string=None,
                 prefix_ns_number=None,
                 prefix_ns_integer=None,
                 prefix_ns_boolean=None,
                 prefix_ns_array=None,
                 prefix_ns_wrapped_array=None,
                 local_vars_configuration=None):  # noqa: E501
        """XmlItem - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._attribute_string = None
        self._attribute_number = None
        self._attribute_integer = None
        self._attribute_boolean = None
        self._wrapped_array = None
        self._name_string = None
        self._name_number = None
        self._name_integer = None
        self._name_boolean = None
        self._name_array = None
        self._name_wrapped_array = None
        self._prefix_string = None
        self._prefix_number = None
        self._prefix_integer = None
        self._prefix_boolean = None
        self._prefix_array = None
        self._prefix_wrapped_array = None
        self._namespace_string = None
        self._namespace_number = None
        self._namespace_integer = None
        self._namespace_boolean = None
        self._namespace_array = None
        self._namespace_wrapped_array = None
        self._prefix_ns_string = None
        self._prefix_ns_number = None
        self._prefix_ns_integer = None
        self._prefix_ns_boolean = None
        self._prefix_ns_array = None
        self._prefix_ns_wrapped_array = None
        self.discriminator = None

        if attribute_string is not None:
            self.attribute_string = attribute_string
        if attribute_number is not None:
            self.attribute_number = attribute_number
        if attribute_integer is not None:
            self.attribute_integer = attribute_integer
        if attribute_boolean is not None:
            self.attribute_boolean = attribute_boolean
        if wrapped_array is not None:
            self.wrapped_array = wrapped_array
        if name_string is not None:
            self.name_string = name_string
        if name_number is not None:
            self.name_number = name_number
        if name_integer is not None:
            self.name_integer = name_integer
        if name_boolean is not None:
            self.name_boolean = name_boolean
        if name_array is not None:
            self.name_array = name_array
        if name_wrapped_array is not None:
            self.name_wrapped_array = name_wrapped_array
        if prefix_string is not None:
            self.prefix_string = prefix_string
        if prefix_number is not None:
            self.prefix_number = prefix_number
        if prefix_integer is not None:
            self.prefix_integer = prefix_integer
        if prefix_boolean is not None:
            self.prefix_boolean = prefix_boolean
        if prefix_array is not None:
            self.prefix_array = prefix_array
        if prefix_wrapped_array is not None:
            self.prefix_wrapped_array = prefix_wrapped_array
        if namespace_string is not None:
            self.namespace_string = namespace_string
        if namespace_number is not None:
            self.namespace_number = namespace_number
        if namespace_integer is not None:
            self.namespace_integer = namespace_integer
        if namespace_boolean is not None:
            self.namespace_boolean = namespace_boolean
        if namespace_array is not None:
            self.namespace_array = namespace_array
        if namespace_wrapped_array is not None:
            self.namespace_wrapped_array = namespace_wrapped_array
        if prefix_ns_string is not None:
            self.prefix_ns_string = prefix_ns_string
        if prefix_ns_number is not None:
            self.prefix_ns_number = prefix_ns_number
        if prefix_ns_integer is not None:
            self.prefix_ns_integer = prefix_ns_integer
        if prefix_ns_boolean is not None:
            self.prefix_ns_boolean = prefix_ns_boolean
        if prefix_ns_array is not None:
            self.prefix_ns_array = prefix_ns_array
        if prefix_ns_wrapped_array is not None:
            self.prefix_ns_wrapped_array = prefix_ns_wrapped_array
Ejemplo n.º 27
0
    def __init__(self,
                 integer=None,
                 int32=None,
                 int64=None,
                 number=None,
                 float=None,
                 double=None,
                 decimal=None,
                 string=None,
                 byte=None,
                 binary=None,
                 date=None,
                 date_time=None,
                 uuid=None,
                 password=None,
                 pattern_with_digits=None,
                 pattern_with_digits_and_delimiter=None,
                 local_vars_configuration=None):  # noqa: E501
        """FormatTest - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._integer = None
        self._int32 = None
        self._int64 = None
        self._number = None
        self._float = None
        self._double = None
        self._decimal = None
        self._string = None
        self._byte = None
        self._binary = None
        self._date = None
        self._date_time = None
        self._uuid = None
        self._password = None
        self._pattern_with_digits = None
        self._pattern_with_digits_and_delimiter = None
        self.discriminator = None

        if integer is not None:
            self.integer = integer
        if int32 is not None:
            self.int32 = int32
        if int64 is not None:
            self.int64 = int64
        self.number = number
        if float is not None:
            self.float = float
        if double is not None:
            self.double = double
        if decimal is not None:
            self.decimal = decimal
        if string is not None:
            self.string = string
        self.byte = byte
        if binary is not None:
            self.binary = binary
        self.date = date
        if date_time is not None:
            self.date_time = date_time
        if uuid is not None:
            self.uuid = uuid
        self.password = password
        if pattern_with_digits is not None:
            self.pattern_with_digits = pattern_with_digits
        if pattern_with_digits_and_delimiter is not None:
            self.pattern_with_digits_and_delimiter = pattern_with_digits_and_delimiter
 def __init__(self, local_vars_configuration=None):  # noqa: E501
     """EnumClass - a model defined in OpenAPI"""  # noqa: E501
     if local_vars_configuration is None:
         local_vars_configuration = Configuration()
     self.local_vars_configuration = local_vars_configuration
     self.discriminator = None
 def __init__(self, local_vars_configuration=None):  # noqa: E501
     """OuterEnum - a model defined in OpenAPI"""  # noqa: E501
     if local_vars_configuration is None:
         local_vars_configuration = Configuration.get_default_copy()
     self.local_vars_configuration = local_vars_configuration
     self.discriminator = None
Ejemplo n.º 30
0
 def __init__(self, _configuration=None):  # noqa: E501
     """OuterString - a model defined in Swagger"""  # noqa: E501
     if _configuration is None:
         _configuration = Configuration()
     self._configuration = _configuration
     self.discriminator = None