def __init__(self, *args, **kwargs): # noqa: E501 """Move - a model defined in OpenAPI Keyword Args: _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,) id (str): [optional] # noqa: E501 service_counseling_completed_at (datetime, none_type): [optional] # noqa: E501 available_to_prime_at (datetime, none_type): [optional] # noqa: E501 billable_weights_reviewed_at (datetime, none_type): [optional] # noqa: E501 contractor_id (str, none_type): [optional] # noqa: E501 contractor (Contractor): [optional] # noqa: E501 locator (str): [optional] # noqa: E501 orders_id (str): [optional] # noqa: E501 orders (Order): [optional] # noqa: E501 reference_id (str, none_type): [optional] # noqa: E501 status (MoveStatus): [optional] # noqa: E501 excess_weight_qualified_at (datetime, none_type): Timestamp of when the estimated shipment weights of the move reached 90% of the weight allowance. [optional] # noqa: E501 excess_weight_acknowledged_at (datetime, none_type): Timestamp of when the TOO acknowledged the excess weight risk by either dismissing the alert or updating the max billable weight. [optional] # noqa: E501 tio_remarks (str, none_type): [optional] # noqa: E501 financial_review_flag (bool): This flag is set by office users if a move should be reviewed by a Financial Office. [optional] # noqa: E501 financial_review_remarks (str, none_type): [optional] # noqa: E501 created_at (datetime): [optional] # noqa: E501 submitted_at (datetime, none_type): [optional] # noqa: E501 updated_at (datetime): [optional] # noqa: E501 e_tag (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) if var_name in self.read_only_vars: raise ApiAttributeError( f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " f"class with read only attributes.")
def __init__(self, *args, **kwargs): # noqa: E501 """UpdateCustomerPayload - a model defined in OpenAPI Keyword Args: _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,) first_name (str): [optional] # noqa: E501 last_name (str): [optional] # noqa: E501 phone (str, none_type): [optional] # noqa: E501 email (str, none_type): [optional] # noqa: E501 suffix (str, none_type): [optional] # noqa: E501 middle_name (str, none_type): [optional] # noqa: E501 current_address (Address): [optional] # noqa: E501 backup_contact (BackupContact): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) if var_name in self.read_only_vars: raise ApiAttributeError( f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " f"class with read only attributes.")
def __init__(self, move_task_order_id, re_service_id, re_service_code, re_service_name, id, *args, **kwargs): # noqa: E501 """MTOServiceItem - a model defined in OpenAPI Args: move_task_order_id (str): re_service_id (str): re_service_code (str): re_service_name (str): id (str): Keyword Args: _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,) mto_shipment_id (str, none_type): [optional] # noqa: E501 created_at (datetime): [optional] # noqa: E501 customer_contacts (MTOServiceItemCustomerContacts): [optional] # noqa: E501 deleted_at (date): [optional] # noqa: E501 description (str, none_type): [optional] # noqa: E501 dimensions (MTOServiceItemDimensions): [optional] # noqa: E501 reason (str, none_type): [optional] # noqa: E501 rejection_reason (str, none_type): [optional] # noqa: E501 pickup_postal_code (str, none_type): [optional] # noqa: E501 sit_postal_code (str, none_type): [optional] # noqa: E501 sit_entry_date (datetime, none_type): [optional] # noqa: E501 sit_departure_date (datetime, none_type): [optional] # noqa: E501 fee_type (str): [optional] # noqa: E501 quantity (int): [optional] # noqa: E501 rate (int): [optional] # noqa: E501 status (MTOServiceItemStatus): [optional] # noqa: E501 submitted_at (date): [optional] # noqa: E501 total (int): [optional] # noqa: E501 estimated_weight (int, none_type): estimated weight of the shuttle service item provided by the prime. [optional] # noqa: E501 updated_at (datetime): [optional] # noqa: E501 approved_at (datetime, none_type): [optional] # noqa: E501 rejected_at (datetime, none_type): [optional] # noqa: E501 e_tag (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) self.move_task_order_id = move_task_order_id self.re_service_id = re_service_id self.re_service_code = re_service_code self.re_service_name = re_service_name self.id = id for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) if var_name in self.read_only_vars: raise ApiAttributeError( f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " f"class with read only attributes.")
def __init__(self, *args, **kwargs): # noqa: E501 """UpdateShipment - a model defined in OpenAPI Keyword Args: _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,) shipment_type (MTOShipmentType): [optional] # noqa: E501 requested_pickup_date (date, none_type): [optional] # noqa: E501 requested_delivery_date (date, none_type): [optional] # noqa: E501 customer_remarks (str, none_type): [optional] # noqa: E501 counselor_remarks (str, none_type): [optional] # noqa: E501 billable_weight_cap (int, none_type): estimated weight of the shuttle service item provided by the prime. [optional] # noqa: E501 billable_weight_justification (str, none_type): [optional] # noqa: E501 pickup_address ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 destination_address ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501 destination_type (DestinationType): [optional] # noqa: E501 agents (MTOAgents): [optional] # noqa: E501 tac_type (LOATypeNullable): [optional] # noqa: E501 sac_type (LOATypeNullable): [optional] # noqa: E501 uses_external_vendor (bool, none_type): [optional] # noqa: E501 service_order_number (str, none_type): [optional] # noqa: E501 nts_recorded_weight (int, none_type): The previously recorded weight for the NTS Shipment. Used for NTS Release to know what the previous primeActualWeight or billable weight was.. [optional] # noqa: E501 storage_facility (StorageFacility): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) if var_name in self.read_only_vars: raise ApiAttributeError( f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " f"class with read only attributes.")
def __init__(self, *args, **kwargs): # noqa: E501 """MoveAuditHistory - a model defined in OpenAPI Keyword Args: _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,) id (str): id from audity_history table. [optional] # noqa: E501 schema_name (str): Database schema audited table for this event is in. [optional] # noqa: E501 table_name (str): name of database table that was changed. [optional] # noqa: E501 rel_id (int): relation OID. Table OID (object identifier). Changes with drop/create.. [optional] # noqa: E501 object_id (str, none_type): id column for the tableName where the data was changed. [optional] # noqa: E501 session_user_id (str, none_type): [optional] # noqa: E501 session_user_first_name (str, none_type): [optional] # noqa: E501 session_user_last_name (str, none_type): [optional] # noqa: E501 session_user_email (str, none_type): [optional] # noqa: E501 session_user_telephone (str, none_type): [optional] # noqa: E501 context ([{str: (str,)}], none_type): [optional] # noqa: E501 context_id (str, none_type): id column for the context table the record belongs to. [optional] # noqa: E501 event_name (str, none_type): API endpoint name that was called to make the change. [optional] # noqa: E501 action_tstamp_tx (datetime): Transaction start timestamp for tx in which audited event occurred. [optional] # noqa: E501 action_tstamp_stm (datetime): Statement start timestamp for tx in which audited event occurred. [optional] # noqa: E501 action_tstamp_clk (datetime): Wall clock time at which audited event's trigger call occurred. [optional] # noqa: E501 transaction_id (int, none_type): Identifier of transaction that made the change. May wrap, but unique paired with action_tstamp_tx.. [optional] # noqa: E501 client_query (str, none_type): Record the text of the client query that triggered the audit event. [optional] # noqa: E501 action (str): Action type; I = insert, D = delete, U = update, T = truncate. [optional] # noqa: E501 old_values ({str: (str,)}, none_type): A list of (old/previous) MoveAuditHistoryItem's for a record before the change.. [optional] # noqa: E501 changed_values ({str: (str,)}, none_type): A list of (changed/updated) MoveAuditHistoryItem's for a record after the change.. [optional] # noqa: E501 statement_only (bool): true if audit event is from an FOR EACH STATEMENT trigger, false for FOR EACH ROW'. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) if var_name in self.read_only_vars: raise ApiAttributeError( f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " f"class with read only attributes.")
def __init__(self, issue_date, report_by_date, orders_type, origin_duty_location_id, new_duty_location_id, *args, **kwargs): # noqa: E501 """UpdateOrderPayload - a model defined in OpenAPI Args: issue_date (date): The date and time that these orders were cut. report_by_date (date): Report By Date orders_type (OrdersType): origin_duty_location_id (str): new_duty_location_id (str): Keyword Args: _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,) orders_type_detail (OrdersTypeDetail): [optional] # noqa: E501 orders_number (str, none_type): [optional] # noqa: E501 tac (str, none_type): [optional] # noqa: E501 sac (str): [optional] # noqa: E501 nts_tac (str): [optional] # noqa: E501 nts_sac (str): [optional] # noqa: E501 department_indicator (DeptIndicator): [optional] # noqa: E501 orders_acknowledgement (bool, none_type): Confirmation that the new amended orders were reviewed after previously approving the original orders. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) self.issue_date = issue_date self.report_by_date = report_by_date self.orders_type = orders_type self.origin_duty_location_id = origin_duty_location_id self.new_duty_location_id = new_duty_location_id for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) if var_name in self.read_only_vars: raise ApiAttributeError( f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " f"class with read only attributes.")
def __init__(self, *args, **kwargs): # noqa: E501 """PPMShipment - a model defined in OpenAPI Keyword Args: _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,) id (str): [optional] # noqa: E501 shipment_id (str): [optional] # noqa: E501 created_at (datetime): [optional] # noqa: E501 updated_at (datetime): [optional] # noqa: E501 status (PPMShipmentStatus): [optional] # noqa: E501 expected_departure_date (date): Date the customer expects to move. . [optional] # noqa: E501 actual_move_date (date, none_type): [optional] # noqa: E501 submitted_at (datetime, none_type): [optional] # noqa: E501 reviewed_at (datetime, none_type): [optional] # noqa: E501 approved_at (datetime, none_type): [optional] # noqa: E501 pickup_postal_code (str): zip code. [optional] # noqa: E501 secondary_pickup_postal_code (str, none_type): [optional] # noqa: E501 destination_postal_code (str): [optional] # noqa: E501 secondary_destination_postal_code (str, none_type): [optional] # noqa: E501 sit_expected (bool): [optional] # noqa: E501 estimated_weight (int, none_type): [optional] # noqa: E501 net_weight (int, none_type): The net weight of the shipment once it has been weight . [optional] # noqa: E501 has_pro_gear (bool, none_type): Indicates whether PPM shipment has pro gear. . [optional] # noqa: E501 pro_gear_weight (int, none_type): [optional] # noqa: E501 spouse_pro_gear_weight (int, none_type): [optional] # noqa: E501 estimated_incentive (int, none_type): [optional] # noqa: E501 advance (int, none_type): The amount request for an advance, or null if no advance is requested . [optional] # noqa: E501 advance_requested (bool, none_type): Indicates whether an advance has been requested for the PPM shipment. . [optional] # noqa: E501 deleted_at (datetime, none_type): [optional] # noqa: E501 e_tag (str): A hash unique to this shipment that should be used as the \"If-Match\" header for any updates.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) if var_name in self.read_only_vars: raise ApiAttributeError( f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " f"class with read only attributes.")