text: # coding: utf-8
  
  import re
  import six
  
  
  
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
  
  
  class ListAuditlogsRequest:
  
  
      """
      Attributes:
        openapi_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.
      """
  
      sensitive_list = []
  
      openapi_types = {
          'x_language': 'str',
          'instance_id': 'str',
          'start_time': 'str',
          'end_time': 'str',
          'offset': 'int',
          'limit': 'int'
      }
  
      attribute_map = {
          'x_language': 'X-Language',
          'instance_id': 'instance_id',
          'start_time': 'start_time',
          'end_time': 'end_time',
          'offset': 'offset',
          'limit': 'limit'
      }
  
      def __init__(self, x_language=None, instance_id=None, start_time=None, end_time=None, offset=None, limit=None):
          """ListAuditlogsRequest - a model defined in huaweicloud sdk"""
          
          
  
          self._x_language = None
          self._instance_id = None
          self._start_time = None
          self._end_time = None
          self._offset = None
          self._limit = None
          self.discriminator = None
  
          if x_language is not None:
              self.x_language = x_language
          self.instance_id = instance_id
          self.start_time = start_time
          self.end_time = end_time
          self.offset = offset
          self.limit = limit
  
      @property
      def x_language(self):
          """Gets the x_language of this ListAuditlogsRequest.
  
          语言
  
          :return: The x_language of this ListAuditlogsRequest.
          :rtype: str
          """
          return self._x_language
  
      @x_language.setter
      def x_language(self, x_language):
          """Sets the x_language of this ListAuditlogsRequest.
  
          语言
  
          :param x_language: The x_language of this ListAuditlogsRequest.
          :type: str
          """
          self._x_language = x_language
  
      @property
      def instance_id(self):
          """Gets the instance_id of this ListAuditlogsRequest.
  
          实例ID。
  
          :return: The instance_id of this ListAuditlogsRequest.
          :rtype: str
          """
          return self._instance_id
  
      @instance_id.setter
      def instance_id(self, instance_id):
          """Sets the instance_id of this ListAuditlogsRequest.
  
          实例ID。
  
          :param instance_id: The instance_id of this ListAuditlogsRequest.
          :type: str
          """
          self._instance_id = instance_id
  
      @property
      def start_time(self):
          """Gets the start_time of this ListAuditlogsRequest.
  
          查询开始时间，格式为“yyyy-mm-ddThh:mm:ssZ”。  其中，T指某个时间的开始；Z指时区偏移量，例如北京时间偏移显示为+0800。
  
          :return: The start_time of this ListAuditlogsRequest.
          :rtype: str
          """
          return self._start_time
  
      @start_time.setter
      def start_time(self, start_time):
          """Sets the start_time of this ListAuditlogsRequest.
  
          查询开始时间，格式为“yyyy-mm-ddThh:mm:ssZ”。  其中，T指某个时间的开始；Z指时区偏移量，例如北京时间偏移显示为+0800。
  
          :param start_time: The start_time of this ListAuditlogsRequest.
          :type: str
          """
          self._start_time = start_time
  
      @property
      def end_time(self):
          """Gets the end_time of this ListAuditlogsRequest.
  
          查询结束时间，格式为“yyyy-mm-ddThh:mm:ssZ”，且大于查询开始时间，时间跨度不超过30天。  其中，T指某个时间的开始，Z指时区偏移量，例如北京时间偏移显示为+0800。
  
          :return: The end_time of this ListAuditlogsRequest.
          :rtype: str
          """
          return self._end_time
  
      @end_time.setter
      def end_time(self, end_time):
          """Sets the end_time of this ListAuditlogsRequest.
  
          查询结束时间，格式为“yyyy-mm-ddThh:mm:ssZ”，且大于查询开始时间，时间跨度不超过30天。  其中，T指某个时间的开始，Z指时区偏移量，例如北京时间偏移显示为+0800。
  
          :param end_time: The end_time of this ListAuditlogsRequest.
          :type: str
          """
          self._end_time = end_time
  
      @property
      def offset(self):
          """Gets the offset of this ListAuditlogsRequest.
  
          索引位置，偏移量。  从第一条数据偏移offset条数据后开始查询，默认为0（偏移0条数据，表示从第一条数据开始查询），必须为数字，不能为负数。
  
          :return: The offset of this ListAuditlogsRequest.
          :rtype: int
          """
          return self._offset
  
      @offset.setter
      def offset(self, offset):
          """Sets the offset of this ListAuditlogsRequest.
  
          索引位置，偏移量。  从第一条数据偏移offset条数据后开始查询，默认为0（偏移0条数据，表示从第一条数据开始查询），必须为数字，不能为负数。
  
          :param offset: The offset of this ListAuditlogsRequest.
          :type: int
          """
          self._offset = offset
  
      @property
      def limit(self):
          """Gets the limit of this ListAuditlogsRequest.
  
          查询记录数。取值范围[1, 50]。
  
          :return: The limit of this ListAuditlogsRequest.
          :rtype: int
          """
          return self._limit
  
      @limit.setter
      def limit(self, limit):
          """Sets the limit of this ListAuditlogsRequest.
  
          查询记录数。取值范围[1, 50]。
  
          :param limit: The limit of this ListAuditlogsRequest.
          :type: int
          """
          self._limit = limit
  
      def to_dict(self):
          """Returns the model properties as a dict"""
          result = {}
  
          for attr, _ in six.iteritems(self.openapi_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:
                  if attr in self.sensitive_list:
                      result[attr] = "****"
                  else:
                      result[attr] = value
  
          return result
  
      def to_str(self):
          """Returns the string representation of the model"""
          import simplejson as json
          if six.PY2:
              import sys
              reload(sys)
              sys.setdefaultencoding("utf-8")
          return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
  
      def __repr__(self):
          """For `print`"""
          return self.to_str()
  
      def __eq__(self, other):
          """Returns true if both objects are equal"""
          if not isinstance(other, ListAuditlogsRequest):
              return False
  
          return self.__dict__ == other.__dict__
  
      def __ne__(self, other):
          """Returns true if both objects are not equal"""
          return not self == other
  