functions/source/deepsecurity/models/integrity_monitoring_assignments.py [33:211]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    swagger_types = {
        'assigned_rule_ids': 'list[int]',
        'recommendation_scan_status': 'str',
        'last_recommendation_scan_date': 'int',
        'recommended_to_assign_rule_ids': 'list[int]',
        'recommended_to_unassign_rule_ids': 'list[int]'
    }

    attribute_map = {
        'assigned_rule_ids': 'assignedRuleIDs',
        'recommendation_scan_status': 'recommendationScanStatus',
        'last_recommendation_scan_date': 'lastRecommendationScanDate',
        'recommended_to_assign_rule_ids': 'recommendedToAssignRuleIDs',
        'recommended_to_unassign_rule_ids': 'recommendedToUnassignRuleIDs'
    }

    def __init__(self, assigned_rule_ids=None, recommendation_scan_status=None, last_recommendation_scan_date=None, recommended_to_assign_rule_ids=None, recommended_to_unassign_rule_ids=None):  # noqa: E501
        """IntegrityMonitoringAssignments - a model defined in Swagger"""  # noqa: E501

        self._assigned_rule_ids = None
        self._recommendation_scan_status = None
        self._last_recommendation_scan_date = None
        self._recommended_to_assign_rule_ids = None
        self._recommended_to_unassign_rule_ids = None
        self.discriminator = None

        if assigned_rule_ids is not None:
            self.assigned_rule_ids = assigned_rule_ids
        if recommendation_scan_status is not None:
            self.recommendation_scan_status = recommendation_scan_status
        if last_recommendation_scan_date is not None:
            self.last_recommendation_scan_date = last_recommendation_scan_date
        if recommended_to_assign_rule_ids is not None:
            self.recommended_to_assign_rule_ids = recommended_to_assign_rule_ids
        if recommended_to_unassign_rule_ids is not None:
            self.recommended_to_unassign_rule_ids = recommended_to_unassign_rule_ids

    @property
    def assigned_rule_ids(self):
        """Gets the assigned_rule_ids of this IntegrityMonitoringAssignments.  # noqa: E501

        IDs of IntegrityMonitoringRules assigned to the computer or policy.  # noqa: E501

        :return: The assigned_rule_ids of this IntegrityMonitoringAssignments.  # noqa: E501
        :rtype: list[int]
        """
        return self._assigned_rule_ids

    @assigned_rule_ids.setter
    def assigned_rule_ids(self, assigned_rule_ids):
        """Sets the assigned_rule_ids of this IntegrityMonitoringAssignments.

        IDs of IntegrityMonitoringRules assigned to the computer or policy.  # noqa: E501

        :param assigned_rule_ids: The assigned_rule_ids of this IntegrityMonitoringAssignments.  # noqa: E501
        :type: list[int]
        """

        self._assigned_rule_ids = assigned_rule_ids

    @property
    def recommendation_scan_status(self):
        """Gets the recommendation_scan_status of this IntegrityMonitoringAssignments.  # noqa: E501

        Status of the last recommendation scan done on a computer or policy.  # noqa: E501

        :return: The recommendation_scan_status of this IntegrityMonitoringAssignments.  # noqa: E501
        :rtype: str
        """
        return self._recommendation_scan_status

    @recommendation_scan_status.setter
    def recommendation_scan_status(self, recommendation_scan_status):
        """Sets the recommendation_scan_status of this IntegrityMonitoringAssignments.

        Status of the last recommendation scan done on a computer or policy.  # noqa: E501

        :param recommendation_scan_status: The recommendation_scan_status of this IntegrityMonitoringAssignments.  # noqa: E501
        :type: str
        """
        allowed_values = ["none", "valid", "out-of-date", "unknown"]  # noqa: E501
        if recommendation_scan_status not in allowed_values:
            raise ValueError(
                "Invalid value for `recommendation_scan_status` ({0}), must be one of {1}"  # noqa: E501
                .format(recommendation_scan_status, allowed_values)
            )

        self._recommendation_scan_status = recommendation_scan_status

    @property
    def last_recommendation_scan_date(self):
        """Gets the last_recommendation_scan_date of this IntegrityMonitoringAssignments.  # noqa: E501

        Timestamp of the last recommendation scan date, in milliseconds since epoch.  # noqa: E501

        :return: The last_recommendation_scan_date of this IntegrityMonitoringAssignments.  # noqa: E501
        :rtype: int
        """
        return self._last_recommendation_scan_date

    @last_recommendation_scan_date.setter
    def last_recommendation_scan_date(self, last_recommendation_scan_date):
        """Sets the last_recommendation_scan_date of this IntegrityMonitoringAssignments.

        Timestamp of the last recommendation scan date, in milliseconds since epoch.  # noqa: E501

        :param last_recommendation_scan_date: The last_recommendation_scan_date of this IntegrityMonitoringAssignments.  # noqa: E501
        :type: int
        """

        self._last_recommendation_scan_date = last_recommendation_scan_date

    @property
    def recommended_to_assign_rule_ids(self):
        """Gets the recommended_to_assign_rule_ids of this IntegrityMonitoringAssignments.  # noqa: E501

        IntegrityMonitoringRules separated by commas, that were recommended to be assigned to the computer or policy by a recommendation scan.  # noqa: E501

        :return: The recommended_to_assign_rule_ids of this IntegrityMonitoringAssignments.  # noqa: E501
        :rtype: list[int]
        """
        return self._recommended_to_assign_rule_ids

    @recommended_to_assign_rule_ids.setter
    def recommended_to_assign_rule_ids(self, recommended_to_assign_rule_ids):
        """Sets the recommended_to_assign_rule_ids of this IntegrityMonitoringAssignments.

        IntegrityMonitoringRules separated by commas, that were recommended to be assigned to the computer or policy by a recommendation scan.  # noqa: E501

        :param recommended_to_assign_rule_ids: The recommended_to_assign_rule_ids of this IntegrityMonitoringAssignments.  # noqa: E501
        :type: list[int]
        """

        self._recommended_to_assign_rule_ids = recommended_to_assign_rule_ids

    @property
    def recommended_to_unassign_rule_ids(self):
        """Gets the recommended_to_unassign_rule_ids of this IntegrityMonitoringAssignments.  # noqa: E501

        IntegrityMonitoringRules, separated by commas, that were recommended to be unassigned from the computer or policy by a recommendation scan.  # noqa: E501

        :return: The recommended_to_unassign_rule_ids of this IntegrityMonitoringAssignments.  # noqa: E501
        :rtype: list[int]
        """
        return self._recommended_to_unassign_rule_ids

    @recommended_to_unassign_rule_ids.setter
    def recommended_to_unassign_rule_ids(self, recommended_to_unassign_rule_ids):
        """Sets the recommended_to_unassign_rule_ids of this IntegrityMonitoringAssignments.

        IntegrityMonitoringRules, separated by commas, that were recommended to be unassigned from the computer or policy by a recommendation scan.  # noqa: E501

        :param recommended_to_unassign_rule_ids: The recommended_to_unassign_rule_ids of this IntegrityMonitoringAssignments.  # noqa: E501
        :type: list[int]
        """

        self._recommended_to_unassign_rule_ids = recommended_to_unassign_rule_ids

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



functions/source/deepsecurity/models/log_inspection_assignments.py [33:211]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    swagger_types = {
        'assigned_rule_ids': 'list[int]',
        'recommendation_scan_status': 'str',
        'last_recommendation_scan_date': 'int',
        'recommended_to_assign_rule_ids': 'list[int]',
        'recommended_to_unassign_rule_ids': 'list[int]'
    }

    attribute_map = {
        'assigned_rule_ids': 'assignedRuleIDs',
        'recommendation_scan_status': 'recommendationScanStatus',
        'last_recommendation_scan_date': 'lastRecommendationScanDate',
        'recommended_to_assign_rule_ids': 'recommendedToAssignRuleIDs',
        'recommended_to_unassign_rule_ids': 'recommendedToUnassignRuleIDs'
    }

    def __init__(self, assigned_rule_ids=None, recommendation_scan_status=None, last_recommendation_scan_date=None, recommended_to_assign_rule_ids=None, recommended_to_unassign_rule_ids=None):  # noqa: E501
        """LogInspectionAssignments - a model defined in Swagger"""  # noqa: E501

        self._assigned_rule_ids = None
        self._recommendation_scan_status = None
        self._last_recommendation_scan_date = None
        self._recommended_to_assign_rule_ids = None
        self._recommended_to_unassign_rule_ids = None
        self.discriminator = None

        if assigned_rule_ids is not None:
            self.assigned_rule_ids = assigned_rule_ids
        if recommendation_scan_status is not None:
            self.recommendation_scan_status = recommendation_scan_status
        if last_recommendation_scan_date is not None:
            self.last_recommendation_scan_date = last_recommendation_scan_date
        if recommended_to_assign_rule_ids is not None:
            self.recommended_to_assign_rule_ids = recommended_to_assign_rule_ids
        if recommended_to_unassign_rule_ids is not None:
            self.recommended_to_unassign_rule_ids = recommended_to_unassign_rule_ids

    @property
    def assigned_rule_ids(self):
        """Gets the assigned_rule_ids of this LogInspectionAssignments.  # noqa: E501

        IDs of the log inspection rules currently assigned.  # noqa: E501

        :return: The assigned_rule_ids of this LogInspectionAssignments.  # noqa: E501
        :rtype: list[int]
        """
        return self._assigned_rule_ids

    @assigned_rule_ids.setter
    def assigned_rule_ids(self, assigned_rule_ids):
        """Sets the assigned_rule_ids of this LogInspectionAssignments.

        IDs of the log inspection rules currently assigned.  # noqa: E501

        :param assigned_rule_ids: The assigned_rule_ids of this LogInspectionAssignments.  # noqa: E501
        :type: list[int]
        """

        self._assigned_rule_ids = assigned_rule_ids

    @property
    def recommendation_scan_status(self):
        """Gets the recommendation_scan_status of this LogInspectionAssignments.  # noqa: E501

        Status of the last recommendation scan.  # noqa: E501

        :return: The recommendation_scan_status of this LogInspectionAssignments.  # noqa: E501
        :rtype: str
        """
        return self._recommendation_scan_status

    @recommendation_scan_status.setter
    def recommendation_scan_status(self, recommendation_scan_status):
        """Sets the recommendation_scan_status of this LogInspectionAssignments.

        Status of the last recommendation scan.  # noqa: E501

        :param recommendation_scan_status: The recommendation_scan_status of this LogInspectionAssignments.  # noqa: E501
        :type: str
        """
        allowed_values = ["none", "valid", "out-of-date", "unknown"]  # noqa: E501
        if recommendation_scan_status not in allowed_values:
            raise ValueError(
                "Invalid value for `recommendation_scan_status` ({0}), must be one of {1}"  # noqa: E501
                .format(recommendation_scan_status, allowed_values)
            )

        self._recommendation_scan_status = recommendation_scan_status

    @property
    def last_recommendation_scan_date(self):
        """Gets the last_recommendation_scan_date of this LogInspectionAssignments.  # noqa: E501

        Timestamp of the last recommendation scan, in milliseconds since epoch.  # noqa: E501

        :return: The last_recommendation_scan_date of this LogInspectionAssignments.  # noqa: E501
        :rtype: int
        """
        return self._last_recommendation_scan_date

    @last_recommendation_scan_date.setter
    def last_recommendation_scan_date(self, last_recommendation_scan_date):
        """Sets the last_recommendation_scan_date of this LogInspectionAssignments.

        Timestamp of the last recommendation scan, in milliseconds since epoch.  # noqa: E501

        :param last_recommendation_scan_date: The last_recommendation_scan_date of this LogInspectionAssignments.  # noqa: E501
        :type: int
        """

        self._last_recommendation_scan_date = last_recommendation_scan_date

    @property
    def recommended_to_assign_rule_ids(self):
        """Gets the recommended_to_assign_rule_ids of this LogInspectionAssignments.  # noqa: E501

        IDs of the log inspection rules recommended for assignment.  # noqa: E501

        :return: The recommended_to_assign_rule_ids of this LogInspectionAssignments.  # noqa: E501
        :rtype: list[int]
        """
        return self._recommended_to_assign_rule_ids

    @recommended_to_assign_rule_ids.setter
    def recommended_to_assign_rule_ids(self, recommended_to_assign_rule_ids):
        """Sets the recommended_to_assign_rule_ids of this LogInspectionAssignments.

        IDs of the log inspection rules recommended for assignment.  # noqa: E501

        :param recommended_to_assign_rule_ids: The recommended_to_assign_rule_ids of this LogInspectionAssignments.  # noqa: E501
        :type: list[int]
        """

        self._recommended_to_assign_rule_ids = recommended_to_assign_rule_ids

    @property
    def recommended_to_unassign_rule_ids(self):
        """Gets the recommended_to_unassign_rule_ids of this LogInspectionAssignments.  # noqa: E501

        IDs of the log inspection rules recommended for unassignment.  # noqa: E501

        :return: The recommended_to_unassign_rule_ids of this LogInspectionAssignments.  # noqa: E501
        :rtype: list[int]
        """
        return self._recommended_to_unassign_rule_ids

    @recommended_to_unassign_rule_ids.setter
    def recommended_to_unassign_rule_ids(self, recommended_to_unassign_rule_ids):
        """Sets the recommended_to_unassign_rule_ids of this LogInspectionAssignments.

        IDs of the log inspection rules recommended for unassignment.  # noqa: E501

        :param recommended_to_unassign_rule_ids: The recommended_to_unassign_rule_ids of this LogInspectionAssignments.  # noqa: E501
        :type: list[int]
        """

        self._recommended_to_unassign_rule_ids = recommended_to_unassign_rule_ids

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



