示例#1
0
    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 _from_openapi_data(cls, *args, **kwargs):  # noqa: E501
        """MTOShipment - 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,)
            move_task_order_id (str): [optional]  # noqa: E501
            id (str): [optional]  # noqa: E501
            created_at (datetime): [optional]  # noqa: E501
            updated_at (datetime): [optional]  # noqa: E501
            deleted_at (datetime, none_type): [optional]  # noqa: E501
            prime_estimated_weight (int, none_type): [optional]  # noqa: E501
            prime_actual_weight (int, none_type): [optional]  # noqa: E501
            calculated_billable_weight (int, 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
            scheduled_pickup_date (date, none_type): [optional]  # noqa: E501
            requested_pickup_date (date): [optional]  # noqa: E501
            actual_pickup_date (date, none_type): [optional]  # noqa: E501
            requested_delivery_date (date): [optional]  # noqa: E501
            approved_date (datetime, none_type): [optional]  # noqa: E501
            diversion (bool): [optional]  # noqa: E501
            pickup_address (Address): [optional]  # noqa: E501
            destination_address (Address): [optional]  # noqa: E501
            destination_type (DestinationType): [optional]  # noqa: E501
            secondary_pickup_address (Address): [optional]  # noqa: E501
            secondary_delivery_address (Address): [optional]  # noqa: E501
            customer_remarks (str, none_type): [optional]  # noqa: E501
            counselor_remarks (str, none_type): The counselor can use the counselor remarks field to inform the movers about any special circumstances for this shipment. Typical examples:   * bulky or fragile items,   * weapons,   * access info for their address. Counselors enters this information when creating or editing an MTO Shipment. Optional field. . [optional]  # noqa: E501
            shipment_type (MTOShipmentType): [optional]  # noqa: E501
            status (MTOShipmentStatus): [optional]  # noqa: E501
            rejection_reason (str, none_type): [optional]  # noqa: E501
            reweigh (Reweigh): [optional]  # noqa: E501
            mto_agents (MTOAgents): [optional]  # noqa: E501
            mto_service_items (MTOServiceItems): [optional]  # noqa: E501
            sit_days_allowance (int, none_type): [optional]  # noqa: E501
            sit_extensions (SITExtensions): [optional]  # noqa: E501
            sit_status (SITStatus): [optional]  # noqa: E501
            e_tag (str): [optional]  # noqa: E501
            billable_weight_cap (int, none_type): TIO override billable weight to be used for calculations. [optional]  # noqa: E501
            billable_weight_justification (str, none_type): [optional]  # noqa: E501
            tac_type ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional]  # noqa: E501
            sac_type ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional]  # noqa: E501
            uses_external_vendor (bool): [optional]  # noqa: E501
            service_order_number (str, none_type): [optional]  # noqa: E501
            storage_facility (StorageFacility): [optional]  # noqa: E501
            ppm_shipment (PPMShipment): [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', ())

        self = super(OpenApiModel, cls).__new__(cls)

        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)
        return self
示例#3
0
    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.")
    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.")
示例#5
0
    def _from_openapi_data(cls, *args, **kwargs):  # noqa: E501
        """Entitlements - 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
            authorized_weight (int, none_type): [optional]  # noqa: E501
            dependents_authorized (bool, none_type): [optional]  # noqa: E501
            non_temporary_storage (bool, none_type): [optional]  # noqa: E501
            privately_owned_vehicle (bool, none_type): [optional]  # noqa: E501
            pro_gear_weight (int): [optional]  # noqa: E501
            pro_gear_weight_spouse (int): [optional]  # noqa: E501
            storage_in_transit (int, none_type): [optional]  # noqa: E501
            total_weight (int): [optional]  # noqa: E501
            total_dependents (int): [optional]  # noqa: E501
            required_medical_equipment_weight (int): [optional]  # noqa: E501
            organizational_clothing_and_individual_equipment (bool): [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', ())

        self = super(OpenApiModel, cls).__new__(cls)

        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)
        return self