# coding: utf-8

"""
    vepfs

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: common-version
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


class CreateAuditRequest(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'audit_events': 'list[str]',
        'audit_name': 'str',
        'auto_start': 'bool',
        'file_system_id': 'str',
        'fileset_ids': 'list[str]',
        'tls_project_id': 'str',
        'tls_topic_id': 'str'
    }

    attribute_map = {
        'audit_events': 'AuditEvents',
        'audit_name': 'AuditName',
        'auto_start': 'AutoStart',
        'file_system_id': 'FileSystemId',
        'fileset_ids': 'FilesetIds',
        'tls_project_id': 'TlsProjectId',
        'tls_topic_id': 'TlsTopicId'
    }

    def __init__(self, audit_events=None, audit_name=None, auto_start=None, file_system_id=None, fileset_ids=None, tls_project_id=None, tls_topic_id=None, _configuration=None):  # noqa: E501
        """CreateAuditRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._audit_events = None
        self._audit_name = None
        self._auto_start = None
        self._file_system_id = None
        self._fileset_ids = None
        self._tls_project_id = None
        self._tls_topic_id = None
        self.discriminator = None

        if audit_events is not None:
            self.audit_events = audit_events
        self.audit_name = audit_name
        if auto_start is not None:
            self.auto_start = auto_start
        self.file_system_id = file_system_id
        if fileset_ids is not None:
            self.fileset_ids = fileset_ids
        self.tls_project_id = tls_project_id
        self.tls_topic_id = tls_topic_id

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


        :return: The audit_events of this CreateAuditRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._audit_events

    @audit_events.setter
    def audit_events(self, audit_events):
        """Sets the audit_events of this CreateAuditRequest.


        :param audit_events: The audit_events of this CreateAuditRequest.  # noqa: E501
        :type: list[str]
        """
        allowed_values = ["RENAME", "RMDIR", "UNLINK", "OPEN", "CREATE", "CLOSE", "ACCESS_DENIED", "ACLCHANGE", "XATTRCHANGE"]  # noqa: E501
        if (self._configuration.client_side_validation and
                not set(audit_events).issubset(set(allowed_values))):  # noqa: E501
            raise ValueError(
                "Invalid values for `audit_events` [{0}], must be a subset of [{1}]"  # noqa: E501
                .format(", ".join(map(str, set(audit_events) - set(allowed_values))),  # noqa: E501
                        ", ".join(map(str, allowed_values)))
            )

        self._audit_events = audit_events

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


        :return: The audit_name of this CreateAuditRequest.  # noqa: E501
        :rtype: str
        """
        return self._audit_name

    @audit_name.setter
    def audit_name(self, audit_name):
        """Sets the audit_name of this CreateAuditRequest.


        :param audit_name: The audit_name of this CreateAuditRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and audit_name is None:
            raise ValueError("Invalid value for `audit_name`, must not be `None`")  # noqa: E501

        self._audit_name = audit_name

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


        :return: The auto_start of this CreateAuditRequest.  # noqa: E501
        :rtype: bool
        """
        return self._auto_start

    @auto_start.setter
    def auto_start(self, auto_start):
        """Sets the auto_start of this CreateAuditRequest.


        :param auto_start: The auto_start of this CreateAuditRequest.  # noqa: E501
        :type: bool
        """

        self._auto_start = auto_start

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


        :return: The file_system_id of this CreateAuditRequest.  # noqa: E501
        :rtype: str
        """
        return self._file_system_id

    @file_system_id.setter
    def file_system_id(self, file_system_id):
        """Sets the file_system_id of this CreateAuditRequest.


        :param file_system_id: The file_system_id of this CreateAuditRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and file_system_id is None:
            raise ValueError("Invalid value for `file_system_id`, must not be `None`")  # noqa: E501

        self._file_system_id = file_system_id

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


        :return: The fileset_ids of this CreateAuditRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._fileset_ids

    @fileset_ids.setter
    def fileset_ids(self, fileset_ids):
        """Sets the fileset_ids of this CreateAuditRequest.


        :param fileset_ids: The fileset_ids of this CreateAuditRequest.  # noqa: E501
        :type: list[str]
        """

        self._fileset_ids = fileset_ids

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


        :return: The tls_project_id of this CreateAuditRequest.  # noqa: E501
        :rtype: str
        """
        return self._tls_project_id

    @tls_project_id.setter
    def tls_project_id(self, tls_project_id):
        """Sets the tls_project_id of this CreateAuditRequest.


        :param tls_project_id: The tls_project_id of this CreateAuditRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and tls_project_id is None:
            raise ValueError("Invalid value for `tls_project_id`, must not be `None`")  # noqa: E501

        self._tls_project_id = tls_project_id

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


        :return: The tls_topic_id of this CreateAuditRequest.  # noqa: E501
        :rtype: str
        """
        return self._tls_topic_id

    @tls_topic_id.setter
    def tls_topic_id(self, tls_topic_id):
        """Sets the tls_topic_id of this CreateAuditRequest.


        :param tls_topic_id: The tls_topic_id of this CreateAuditRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and tls_topic_id is None:
            raise ValueError("Invalid value for `tls_topic_id`, must not be `None`")  # noqa: E501

        self._tls_topic_id = tls_topic_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
        if issubclass(CreateAuditRequest, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, CreateAuditRequest):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, CreateAuditRequest):
            return True

        return self.to_dict() != other.to_dict()
