pinecone.core.client.model.protobuf_null_value
Pinecone API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: version not set Contact: support@pinecone.io Generated by: https://openapi-generator.tech
1""" 2 Pinecone API 3 4 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 5 6 The version of the OpenAPI document: version not set 7 Contact: support@pinecone.io 8 Generated by: https://openapi-generator.tech 9""" 10 11 12import re # noqa: F401 13import sys # noqa: F401 14 15from pinecone.core.client.model_utils import ( # noqa: F401 16 ApiTypeError, 17 ModelComposed, 18 ModelNormal, 19 ModelSimple, 20 cached_property, 21 change_keys_js_to_python, 22 convert_js_args_to_python_args, 23 date, 24 datetime, 25 file_type, 26 none_type, 27 validate_get_composed_info, 28) 29from ..model_utils import OpenApiModel 30from pinecone.core.client.exceptions import ApiAttributeError 31 32 33class ProtobufNullValue(ModelSimple): 34 """NOTE: This class is auto generated by OpenAPI Generator. 35 Ref: https://openapi-generator.tech 36 37 Do not edit the class manually. 38 39 Attributes: 40 allowed_values (dict): The key is the tuple path to the attribute 41 and the for var_name this is (var_name,). The value is a dict 42 with a capitalized key describing the allowed value and an allowed 43 value. These dicts store the allowed enum values. 44 validations (dict): The key is the tuple path to the attribute 45 and the for var_name this is (var_name,). The value is a dict 46 that stores validations for max_length, min_length, max_items, 47 min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, 48 inclusive_minimum, and regex. 49 additional_properties_type (tuple): A tuple of classes accepted 50 as additional properties values. 51 """ 52 53 allowed_values = { 54 ("value",): { 55 "NULL_VALUE": "NULL_VALUE", 56 }, 57 } 58 59 validations = {} 60 61 @cached_property 62 def additional_properties_type(): 63 """ 64 This must be a method because a model may have properties that are 65 of type self, this must run after the class is loaded 66 """ 67 return ( 68 bool, 69 date, 70 datetime, 71 dict, 72 float, 73 int, 74 list, 75 str, 76 none_type, 77 ) # noqa: E501 78 79 _nullable = False 80 81 @cached_property 82 def openapi_types(): 83 """ 84 This must be a method because a model may have properties that are 85 of type self, this must run after the class is loaded 86 87 Returns 88 openapi_types (dict): The key is attribute name 89 and the value is attribute type. 90 """ 91 return { 92 "value": (str,), 93 } 94 95 @cached_property 96 def discriminator(): 97 return None 98 99 attribute_map = {} 100 101 read_only_vars = set() 102 103 _composed_schemas = None 104 105 required_properties = set( 106 [ 107 "_data_store", 108 "_check_type", 109 "_spec_property_naming", 110 "_path_to_item", 111 "_configuration", 112 "_visited_composed_classes", 113 ] 114 ) 115 116 @convert_js_args_to_python_args 117 def __init__(self, *args, **kwargs): 118 """ProtobufNullValue - a model defined in OpenAPI 119 120 Note that value can be passed either in args or in kwargs, but not in both. 121 122 Args: 123 args[0] (str): `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value.. if omitted defaults to "NULL_VALUE", must be one of ["NULL_VALUE", ] # noqa: E501 124 125 Keyword Args: 126 value (str): `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value.. if omitted defaults to "NULL_VALUE", must be one of ["NULL_VALUE", ] # noqa: E501 127 _check_type (bool): if True, values for parameters in openapi_types 128 will be type checked and a TypeError will be 129 raised if the wrong type is input. 130 Defaults to True 131 _path_to_item (tuple/list): This is a list of keys or values to 132 drill down to the model in received_data 133 when deserializing a response 134 _spec_property_naming (bool): True if the variable names in the input data 135 are serialized names, as specified in the OpenAPI document. 136 False if the variable names in the input data 137 are pythonic names, e.g. snake case (default) 138 _configuration (Configuration): the instance to use when 139 deserializing a file_type parameter. 140 If passed, type conversion is attempted 141 If omitted no type conversion is done. 142 _visited_composed_classes (tuple): This stores a tuple of 143 classes that we have traveled through so that 144 if we see that class again we will not use its 145 discriminator again. 146 When traveling through a discriminator, the 147 composed schema that is 148 is traveled through is added to this set. 149 For example if Animal has a discriminator 150 petType and we pass in "Dog", and the class Dog 151 allOf includes Animal, we move through Animal 152 once using the discriminator, and pick Dog. 153 Then in Dog, we will make an instance of the 154 Animal class but this time we won't travel 155 through its discriminator because we passed in 156 _visited_composed_classes = (Animal,) 157 """ 158 # required up here when default value is not given 159 _path_to_item = kwargs.pop("_path_to_item", ()) 160 161 if "value" in kwargs: 162 value = kwargs.pop("value") 163 elif args: 164 args = list(args) 165 value = args.pop(0) 166 else: 167 value = "NULL_VALUE" 168 169 _check_type = kwargs.pop("_check_type", True) 170 _spec_property_naming = kwargs.pop("_spec_property_naming", False) 171 _configuration = kwargs.pop("_configuration", None) 172 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 173 174 if args: 175 raise ApiTypeError( 176 "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 177 % ( 178 args, 179 self.__class__.__name__, 180 ), 181 path_to_item=_path_to_item, 182 valid_classes=(self.__class__,), 183 ) 184 185 self._data_store = {} 186 self._check_type = _check_type 187 self._spec_property_naming = _spec_property_naming 188 self._path_to_item = _path_to_item 189 self._configuration = _configuration 190 self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 191 self.value = value 192 if kwargs: 193 raise ApiTypeError( 194 "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." 195 % ( 196 kwargs, 197 self.__class__.__name__, 198 ), 199 path_to_item=_path_to_item, 200 valid_classes=(self.__class__,), 201 ) 202 203 @classmethod 204 @convert_js_args_to_python_args 205 def _from_openapi_data(cls, *args, **kwargs): 206 """ProtobufNullValue - a model defined in OpenAPI 207 208 Note that value can be passed either in args or in kwargs, but not in both. 209 210 Args: 211 args[0] (str): `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value.. if omitted defaults to "NULL_VALUE", must be one of ["NULL_VALUE", ] # noqa: E501 212 213 Keyword Args: 214 value (str): `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value.. if omitted defaults to "NULL_VALUE", must be one of ["NULL_VALUE", ] # noqa: E501 215 _check_type (bool): if True, values for parameters in openapi_types 216 will be type checked and a TypeError will be 217 raised if the wrong type is input. 218 Defaults to True 219 _path_to_item (tuple/list): This is a list of keys or values to 220 drill down to the model in received_data 221 when deserializing a response 222 _spec_property_naming (bool): True if the variable names in the input data 223 are serialized names, as specified in the OpenAPI document. 224 False if the variable names in the input data 225 are pythonic names, e.g. snake case (default) 226 _configuration (Configuration): the instance to use when 227 deserializing a file_type parameter. 228 If passed, type conversion is attempted 229 If omitted no type conversion is done. 230 _visited_composed_classes (tuple): This stores a tuple of 231 classes that we have traveled through so that 232 if we see that class again we will not use its 233 discriminator again. 234 When traveling through a discriminator, the 235 composed schema that is 236 is traveled through is added to this set. 237 For example if Animal has a discriminator 238 petType and we pass in "Dog", and the class Dog 239 allOf includes Animal, we move through Animal 240 once using the discriminator, and pick Dog. 241 Then in Dog, we will make an instance of the 242 Animal class but this time we won't travel 243 through its discriminator because we passed in 244 _visited_composed_classes = (Animal,) 245 """ 246 # required up here when default value is not given 247 _path_to_item = kwargs.pop("_path_to_item", ()) 248 249 self = super(OpenApiModel, cls).__new__(cls) 250 251 if "value" in kwargs: 252 value = kwargs.pop("value") 253 elif args: 254 args = list(args) 255 value = args.pop(0) 256 else: 257 value = "NULL_VALUE" 258 259 _check_type = kwargs.pop("_check_type", True) 260 _spec_property_naming = kwargs.pop("_spec_property_naming", False) 261 _configuration = kwargs.pop("_configuration", None) 262 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 263 264 if args: 265 raise ApiTypeError( 266 "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 267 % ( 268 args, 269 self.__class__.__name__, 270 ), 271 path_to_item=_path_to_item, 272 valid_classes=(self.__class__,), 273 ) 274 275 self._data_store = {} 276 self._check_type = _check_type 277 self._spec_property_naming = _spec_property_naming 278 self._path_to_item = _path_to_item 279 self._configuration = _configuration 280 self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 281 self.value = value 282 if kwargs: 283 raise ApiTypeError( 284 "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." 285 % ( 286 kwargs, 287 self.__class__.__name__, 288 ), 289 path_to_item=_path_to_item, 290 valid_classes=(self.__class__,), 291 ) 292 293 return self
34class ProtobufNullValue(ModelSimple): 35 """NOTE: This class is auto generated by OpenAPI Generator. 36 Ref: https://openapi-generator.tech 37 38 Do not edit the class manually. 39 40 Attributes: 41 allowed_values (dict): The key is the tuple path to the attribute 42 and the for var_name this is (var_name,). The value is a dict 43 with a capitalized key describing the allowed value and an allowed 44 value. These dicts store the allowed enum values. 45 validations (dict): The key is the tuple path to the attribute 46 and the for var_name this is (var_name,). The value is a dict 47 that stores validations for max_length, min_length, max_items, 48 min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, 49 inclusive_minimum, and regex. 50 additional_properties_type (tuple): A tuple of classes accepted 51 as additional properties values. 52 """ 53 54 allowed_values = { 55 ("value",): { 56 "NULL_VALUE": "NULL_VALUE", 57 }, 58 } 59 60 validations = {} 61 62 @cached_property 63 def additional_properties_type(): 64 """ 65 This must be a method because a model may have properties that are 66 of type self, this must run after the class is loaded 67 """ 68 return ( 69 bool, 70 date, 71 datetime, 72 dict, 73 float, 74 int, 75 list, 76 str, 77 none_type, 78 ) # noqa: E501 79 80 _nullable = False 81 82 @cached_property 83 def openapi_types(): 84 """ 85 This must be a method because a model may have properties that are 86 of type self, this must run after the class is loaded 87 88 Returns 89 openapi_types (dict): The key is attribute name 90 and the value is attribute type. 91 """ 92 return { 93 "value": (str,), 94 } 95 96 @cached_property 97 def discriminator(): 98 return None 99 100 attribute_map = {} 101 102 read_only_vars = set() 103 104 _composed_schemas = None 105 106 required_properties = set( 107 [ 108 "_data_store", 109 "_check_type", 110 "_spec_property_naming", 111 "_path_to_item", 112 "_configuration", 113 "_visited_composed_classes", 114 ] 115 ) 116 117 @convert_js_args_to_python_args 118 def __init__(self, *args, **kwargs): 119 """ProtobufNullValue - a model defined in OpenAPI 120 121 Note that value can be passed either in args or in kwargs, but not in both. 122 123 Args: 124 args[0] (str): `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value.. if omitted defaults to "NULL_VALUE", must be one of ["NULL_VALUE", ] # noqa: E501 125 126 Keyword Args: 127 value (str): `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value.. if omitted defaults to "NULL_VALUE", must be one of ["NULL_VALUE", ] # noqa: E501 128 _check_type (bool): if True, values for parameters in openapi_types 129 will be type checked and a TypeError will be 130 raised if the wrong type is input. 131 Defaults to True 132 _path_to_item (tuple/list): This is a list of keys or values to 133 drill down to the model in received_data 134 when deserializing a response 135 _spec_property_naming (bool): True if the variable names in the input data 136 are serialized names, as specified in the OpenAPI document. 137 False if the variable names in the input data 138 are pythonic names, e.g. snake case (default) 139 _configuration (Configuration): the instance to use when 140 deserializing a file_type parameter. 141 If passed, type conversion is attempted 142 If omitted no type conversion is done. 143 _visited_composed_classes (tuple): This stores a tuple of 144 classes that we have traveled through so that 145 if we see that class again we will not use its 146 discriminator again. 147 When traveling through a discriminator, the 148 composed schema that is 149 is traveled through is added to this set. 150 For example if Animal has a discriminator 151 petType and we pass in "Dog", and the class Dog 152 allOf includes Animal, we move through Animal 153 once using the discriminator, and pick Dog. 154 Then in Dog, we will make an instance of the 155 Animal class but this time we won't travel 156 through its discriminator because we passed in 157 _visited_composed_classes = (Animal,) 158 """ 159 # required up here when default value is not given 160 _path_to_item = kwargs.pop("_path_to_item", ()) 161 162 if "value" in kwargs: 163 value = kwargs.pop("value") 164 elif args: 165 args = list(args) 166 value = args.pop(0) 167 else: 168 value = "NULL_VALUE" 169 170 _check_type = kwargs.pop("_check_type", True) 171 _spec_property_naming = kwargs.pop("_spec_property_naming", False) 172 _configuration = kwargs.pop("_configuration", None) 173 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 174 175 if args: 176 raise ApiTypeError( 177 "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 178 % ( 179 args, 180 self.__class__.__name__, 181 ), 182 path_to_item=_path_to_item, 183 valid_classes=(self.__class__,), 184 ) 185 186 self._data_store = {} 187 self._check_type = _check_type 188 self._spec_property_naming = _spec_property_naming 189 self._path_to_item = _path_to_item 190 self._configuration = _configuration 191 self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 192 self.value = value 193 if kwargs: 194 raise ApiTypeError( 195 "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." 196 % ( 197 kwargs, 198 self.__class__.__name__, 199 ), 200 path_to_item=_path_to_item, 201 valid_classes=(self.__class__,), 202 ) 203 204 @classmethod 205 @convert_js_args_to_python_args 206 def _from_openapi_data(cls, *args, **kwargs): 207 """ProtobufNullValue - a model defined in OpenAPI 208 209 Note that value can be passed either in args or in kwargs, but not in both. 210 211 Args: 212 args[0] (str): `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value.. if omitted defaults to "NULL_VALUE", must be one of ["NULL_VALUE", ] # noqa: E501 213 214 Keyword Args: 215 value (str): `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value.. if omitted defaults to "NULL_VALUE", must be one of ["NULL_VALUE", ] # noqa: E501 216 _check_type (bool): if True, values for parameters in openapi_types 217 will be type checked and a TypeError will be 218 raised if the wrong type is input. 219 Defaults to True 220 _path_to_item (tuple/list): This is a list of keys or values to 221 drill down to the model in received_data 222 when deserializing a response 223 _spec_property_naming (bool): True if the variable names in the input data 224 are serialized names, as specified in the OpenAPI document. 225 False if the variable names in the input data 226 are pythonic names, e.g. snake case (default) 227 _configuration (Configuration): the instance to use when 228 deserializing a file_type parameter. 229 If passed, type conversion is attempted 230 If omitted no type conversion is done. 231 _visited_composed_classes (tuple): This stores a tuple of 232 classes that we have traveled through so that 233 if we see that class again we will not use its 234 discriminator again. 235 When traveling through a discriminator, the 236 composed schema that is 237 is traveled through is added to this set. 238 For example if Animal has a discriminator 239 petType and we pass in "Dog", and the class Dog 240 allOf includes Animal, we move through Animal 241 once using the discriminator, and pick Dog. 242 Then in Dog, we will make an instance of the 243 Animal class but this time we won't travel 244 through its discriminator because we passed in 245 _visited_composed_classes = (Animal,) 246 """ 247 # required up here when default value is not given 248 _path_to_item = kwargs.pop("_path_to_item", ()) 249 250 self = super(OpenApiModel, cls).__new__(cls) 251 252 if "value" in kwargs: 253 value = kwargs.pop("value") 254 elif args: 255 args = list(args) 256 value = args.pop(0) 257 else: 258 value = "NULL_VALUE" 259 260 _check_type = kwargs.pop("_check_type", True) 261 _spec_property_naming = kwargs.pop("_spec_property_naming", False) 262 _configuration = kwargs.pop("_configuration", None) 263 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 264 265 if args: 266 raise ApiTypeError( 267 "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 268 % ( 269 args, 270 self.__class__.__name__, 271 ), 272 path_to_item=_path_to_item, 273 valid_classes=(self.__class__,), 274 ) 275 276 self._data_store = {} 277 self._check_type = _check_type 278 self._spec_property_naming = _spec_property_naming 279 self._path_to_item = _path_to_item 280 self._configuration = _configuration 281 self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 282 self.value = value 283 if kwargs: 284 raise ApiTypeError( 285 "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." 286 % ( 287 kwargs, 288 self.__class__.__name__, 289 ), 290 path_to_item=_path_to_item, 291 valid_classes=(self.__class__,), 292 ) 293 294 return self
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
Attributes:
- allowed_values (dict): The key is the tuple path to the attribute and the for var_name this is (var_name,). The value is a dict with a capitalized key describing the allowed value and an allowed value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute and the for var_name this is (var_name,). The value is a dict that stores validations for max_length, min_length, max_items, min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted as additional properties values.
117 @convert_js_args_to_python_args 118 def __init__(self, *args, **kwargs): 119 """ProtobufNullValue - a model defined in OpenAPI 120 121 Note that value can be passed either in args or in kwargs, but not in both. 122 123 Args: 124 args[0] (str): `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value.. if omitted defaults to "NULL_VALUE", must be one of ["NULL_VALUE", ] # noqa: E501 125 126 Keyword Args: 127 value (str): `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value.. if omitted defaults to "NULL_VALUE", must be one of ["NULL_VALUE", ] # noqa: E501 128 _check_type (bool): if True, values for parameters in openapi_types 129 will be type checked and a TypeError will be 130 raised if the wrong type is input. 131 Defaults to True 132 _path_to_item (tuple/list): This is a list of keys or values to 133 drill down to the model in received_data 134 when deserializing a response 135 _spec_property_naming (bool): True if the variable names in the input data 136 are serialized names, as specified in the OpenAPI document. 137 False if the variable names in the input data 138 are pythonic names, e.g. snake case (default) 139 _configuration (Configuration): the instance to use when 140 deserializing a file_type parameter. 141 If passed, type conversion is attempted 142 If omitted no type conversion is done. 143 _visited_composed_classes (tuple): This stores a tuple of 144 classes that we have traveled through so that 145 if we see that class again we will not use its 146 discriminator again. 147 When traveling through a discriminator, the 148 composed schema that is 149 is traveled through is added to this set. 150 For example if Animal has a discriminator 151 petType and we pass in "Dog", and the class Dog 152 allOf includes Animal, we move through Animal 153 once using the discriminator, and pick Dog. 154 Then in Dog, we will make an instance of the 155 Animal class but this time we won't travel 156 through its discriminator because we passed in 157 _visited_composed_classes = (Animal,) 158 """ 159 # required up here when default value is not given 160 _path_to_item = kwargs.pop("_path_to_item", ()) 161 162 if "value" in kwargs: 163 value = kwargs.pop("value") 164 elif args: 165 args = list(args) 166 value = args.pop(0) 167 else: 168 value = "NULL_VALUE" 169 170 _check_type = kwargs.pop("_check_type", True) 171 _spec_property_naming = kwargs.pop("_spec_property_naming", False) 172 _configuration = kwargs.pop("_configuration", None) 173 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 174 175 if args: 176 raise ApiTypeError( 177 "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 178 % ( 179 args, 180 self.__class__.__name__, 181 ), 182 path_to_item=_path_to_item, 183 valid_classes=(self.__class__,), 184 ) 185 186 self._data_store = {} 187 self._check_type = _check_type 188 self._spec_property_naming = _spec_property_naming 189 self._path_to_item = _path_to_item 190 self._configuration = _configuration 191 self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 192 self.value = value 193 if kwargs: 194 raise ApiTypeError( 195 "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." 196 % ( 197 kwargs, 198 self.__class__.__name__, 199 ), 200 path_to_item=_path_to_item, 201 valid_classes=(self.__class__,), 202 )
ProtobufNullValue - a model defined in OpenAPI
Note that value can be passed either in args or in kwargs, but not in both.
Arguments:
- args[0] (str):
NullValueis a singleton enumeration to represent the null value for theValuetype union. The JSON representation forNullValueis JSONnull. - NULL_VALUE: Null value.. if omitted defaults to "NULL_VALUE", must be one of ["NULL_VALUE", ] # noqa: E501
Keyword Args:
value (str):
NullValueis a singleton enumeration to represent the null value for theValuetype union. The JSON representation forNullValueis JSONnull. - NULL_VALUE: Null value.. if omitted defaults to "NULL_VALUE", must be one of ["NULL_VALUE", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,)
This must be a method because a model may have properties that are of type self, this must run after the class is loaded
This must be a method because a model may have properties that are of type self, this must run after the class is loaded
Returns openapi_types (dict): The key is attribute name and the value is attribute type.