functions/source/deepsecurity/models/directory_list.py [33:177]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    swagger_types = {
        'name': 'str',
        'description': 'str',
        'items': 'list[str]',
        'id': 'int'
    }

    attribute_map = {
        'name': 'name',
        'description': 'description',
        'items': 'items',
        'id': 'ID'
    }

    def __init__(self, name=None, description=None, items=None, id=None):  # noqa: E501
        """DirectoryList - a model defined in Swagger"""  # noqa: E501

        self._name = None
        self._description = None
        self._items = None
        self._id = None
        self.discriminator = None

        if name is not None:
            self.name = name
        if description is not None:
            self.description = description
        if items is not None:
            self.items = items
        if id is not None:
            self.id = id

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

        Name of the directory list. Searchable as String.  # noqa: E501

        :return: The name of this DirectoryList.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this DirectoryList.

        Name of the directory list. Searchable as String.  # noqa: E501

        :param name: The name of this DirectoryList.  # noqa: E501
        :type: str
        """

        self._name = name

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

        Description of the directory list. Searchable as String.  # noqa: E501

        :return: The description of this DirectoryList.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this DirectoryList.

        Description of the directory list. Searchable as String.  # noqa: E501

        :param description: The description of this DirectoryList.  # noqa: E501
        :type: str
        """

        self._description = description

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

        List of directory paths. Windows directories need to end in a backslash (\\). Asterisk (*) is a wildcard character.  # noqa: E501

        :return: The items of this DirectoryList.  # noqa: E501
        :rtype: list[str]
        """
        return self._items

    @items.setter
    def items(self, items):
        """Sets the items of this DirectoryList.

        List of directory paths. Windows directories need to end in a backslash (\\). Asterisk (*) is a wildcard character.  # noqa: E501

        :param items: The items of this DirectoryList.  # noqa: E501
        :type: list[str]
        """

        self._items = items

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

        ID of the directory list. This number is set automatically. Searchable as ID.  # noqa: E501

        :return: The id of this DirectoryList.  # noqa: E501
        :rtype: int
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this DirectoryList.

        ID of the directory list. This number is set automatically. Searchable as ID.  # noqa: E501

        :param id: The id of this DirectoryList.  # noqa: E501
        :type: int
        """

        self._id = id

    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/mac_list.py [33:177]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    swagger_types = {
        'name': 'str',
        'description': 'str',
        'items': 'list[str]',
        'id': 'int'
    }

    attribute_map = {
        'name': 'name',
        'description': 'description',
        'items': 'items',
        'id': 'ID'
    }

    def __init__(self, name=None, description=None, items=None, id=None):  # noqa: E501
        """MacList - a model defined in Swagger"""  # noqa: E501

        self._name = None
        self._description = None
        self._items = None
        self._id = None
        self.discriminator = None

        if name is not None:
            self.name = name
        if description is not None:
            self.description = description
        if items is not None:
            self.items = items
        if id is not None:
            self.id = id

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

        Name of the MAC address list. Searchable as String.  # noqa: E501

        :return: The name of this MacList.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this MacList.

        Name of the MAC address list. Searchable as String.  # noqa: E501

        :param name: The name of this MacList.  # noqa: E501
        :type: str
        """

        self._name = name

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

        Description of the MAC address list. Searchable as String.  # noqa: E501

        :return: The description of this MacList.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this MacList.

        Description of the MAC address list. Searchable as String.  # noqa: E501

        :param description: The description of this MacList.  # noqa: E501
        :type: str
        """

        self._description = description

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

        List of comma-delimited MAC addresses. The list can also contain comments and other information that is parsed out.  # noqa: E501

        :return: The items of this MacList.  # noqa: E501
        :rtype: list[str]
        """
        return self._items

    @items.setter
    def items(self, items):
        """Sets the items of this MacList.

        List of comma-delimited MAC addresses. The list can also contain comments and other information that is parsed out.  # noqa: E501

        :param items: The items of this MacList.  # noqa: E501
        :type: list[str]
        """

        self._items = items

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

        ID of the MAC address list. Searchable as ID.  # noqa: E501

        :return: The id of this MacList.  # noqa: E501
        :rtype: int
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this MacList.

        ID of the MAC address list. Searchable as ID.  # noqa: E501

        :param id: The id of this MacList.  # noqa: E501
        :type: int
        """

        self._id = id

    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
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



