text: # coding: utf-8
  
  """
      Pure Storage FlashBlade REST 1.7 Python SDK
  
      Pure Storage FlashBlade REST 1.7 Python SDK, developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/).
  
      OpenAPI spec version: 1.7
      Contact: info@purestorage.com
      Generated by: https://github.com/swagger-api/swagger-codegen.git
  """
  
  
  from pprint import pformat
  from six import iteritems
  import re
  
  
  class FileSystemPerformance(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 = {
          'name': 'str',
          'bytes_per_op': 'float',
          'bytes_per_read': 'float',
          'bytes_per_write': 'float',
          'others_per_sec': 'float',
          'read_bytes_per_sec': 'float',
          'reads_per_sec': 'float',
          'time': 'int',
          'usec_per_other_op': 'float',
          'usec_per_read_op': 'float',
          'usec_per_write_op': 'float',
          'write_bytes_per_sec': 'float',
          'writes_per_sec': 'float'
      }
  
      attribute_map = {
          'name': 'name',
          'bytes_per_op': 'bytes_per_op',
          'bytes_per_read': 'bytes_per_read',
          'bytes_per_write': 'bytes_per_write',
          'others_per_sec': 'others_per_sec',
          'read_bytes_per_sec': 'read_bytes_per_sec',
          'reads_per_sec': 'reads_per_sec',
          'time': 'time',
          'usec_per_other_op': 'usec_per_other_op',
          'usec_per_read_op': 'usec_per_read_op',
          'usec_per_write_op': 'usec_per_write_op',
          'write_bytes_per_sec': 'write_bytes_per_sec',
          'writes_per_sec': 'writes_per_sec'
      }
  
      def __init__(self, name=None, bytes_per_op=None, bytes_per_read=None, bytes_per_write=None, others_per_sec=None, read_bytes_per_sec=None, reads_per_sec=None, time=None, usec_per_other_op=None, usec_per_read_op=None, usec_per_write_op=None, write_bytes_per_sec=None, writes_per_sec=None):
          """
          FileSystemPerformance - a model defined in Swagger
          """
  
          self._name = None
          self._bytes_per_op = None
          self._bytes_per_read = None
          self._bytes_per_write = None
          self._others_per_sec = None
          self._read_bytes_per_sec = None
          self._reads_per_sec = None
          self._time = None
          self._usec_per_other_op = None
          self._usec_per_read_op = None
          self._usec_per_write_op = None
          self._write_bytes_per_sec = None
          self._writes_per_sec = None
  
          if name is not None:
            self.name = name
          if bytes_per_op is not None:
            self.bytes_per_op = bytes_per_op
          if bytes_per_read is not None:
            self.bytes_per_read = bytes_per_read
          if bytes_per_write is not None:
            self.bytes_per_write = bytes_per_write
          if others_per_sec is not None:
            self.others_per_sec = others_per_sec
          if read_bytes_per_sec is not None:
            self.read_bytes_per_sec = read_bytes_per_sec
          if reads_per_sec is not None:
            self.reads_per_sec = reads_per_sec
          if time is not None:
            self.time = time
          if usec_per_other_op is not None:
            self.usec_per_other_op = usec_per_other_op
          if usec_per_read_op is not None:
            self.usec_per_read_op = usec_per_read_op
          if usec_per_write_op is not None:
            self.usec_per_write_op = usec_per_write_op
          if write_bytes_per_sec is not None:
            self.write_bytes_per_sec = write_bytes_per_sec
          if writes_per_sec is not None:
            self.writes_per_sec = writes_per_sec
  
      @property
      def name(self):
          """
          Gets the name of this FileSystemPerformance.
          name of the object (e.g., a file system or snapshot)
  
          :return: The name of this FileSystemPerformance.
          :rtype: str
          """
          return self._name
  
      @name.setter
      def name(self, name):
          """
          Sets the name of this FileSystemPerformance.
          name of the object (e.g., a file system or snapshot)
  
          :param name: The name of this FileSystemPerformance.
          :type: str
          """
  
          self._name = name
  
      @property
      def bytes_per_op(self):
          """
          Gets the bytes_per_op of this FileSystemPerformance.
          Average operation size (read bytes+write bytes/read ops+write ops).
  
          :return: The bytes_per_op of this FileSystemPerformance.
          :rtype: float
          """
          return self._bytes_per_op
  
      @bytes_per_op.setter
      def bytes_per_op(self, bytes_per_op):
          """
          Sets the bytes_per_op of this FileSystemPerformance.
          Average operation size (read bytes+write bytes/read ops+write ops).
  
          :param bytes_per_op: The bytes_per_op of this FileSystemPerformance.
          :type: float
          """
          if bytes_per_op is not None and bytes_per_op < 0:
              raise ValueError("Invalid value for `bytes_per_op`, must be a value greater than or equal to `0`")
  
          self._bytes_per_op = bytes_per_op
  
      @property
      def bytes_per_read(self):
          """
          Gets the bytes_per_read of this FileSystemPerformance.
          Average read size in bytes per read operation.
  
          :return: The bytes_per_read of this FileSystemPerformance.
          :rtype: float
          """
          return self._bytes_per_read
  
      @bytes_per_read.setter
      def bytes_per_read(self, bytes_per_read):
          """
          Sets the bytes_per_read of this FileSystemPerformance.
          Average read size in bytes per read operation.
  
          :param bytes_per_read: The bytes_per_read of this FileSystemPerformance.
          :type: float
          """
          if bytes_per_read is not None and bytes_per_read < 0:
              raise ValueError("Invalid value for `bytes_per_read`, must be a value greater than or equal to `0`")
  
          self._bytes_per_read = bytes_per_read
  
      @property
      def bytes_per_write(self):
          """
          Gets the bytes_per_write of this FileSystemPerformance.
          Average write size in bytes per write operation.
  
          :return: The bytes_per_write of this FileSystemPerformance.
          :rtype: float
          """
          return self._bytes_per_write
  
      @bytes_per_write.setter
      def bytes_per_write(self, bytes_per_write):
          """
          Sets the bytes_per_write of this FileSystemPerformance.
          Average write size in bytes per write operation.
  
          :param bytes_per_write: The bytes_per_write of this FileSystemPerformance.
          :type: float
          """
          if bytes_per_write is not None and bytes_per_write < 0:
              raise ValueError("Invalid value for `bytes_per_write`, must be a value greater than or equal to `0`")
  
          self._bytes_per_write = bytes_per_write
  
      @property
      def others_per_sec(self):
          """
          Gets the others_per_sec of this FileSystemPerformance.
          Other operations processed per second.
  
          :return: The others_per_sec of this FileSystemPerformance.
          :rtype: float
          """
          return self._others_per_sec
  
      @others_per_sec.setter
      def others_per_sec(self, others_per_sec):
          """
          Sets the others_per_sec of this FileSystemPerformance.
          Other operations processed per second.
  
          :param others_per_sec: The others_per_sec of this FileSystemPerformance.
          :type: float
          """
          if others_per_sec is not None and others_per_sec < 0:
              raise ValueError("Invalid value for `others_per_sec`, must be a value greater than or equal to `0`")
  
          self._others_per_sec = others_per_sec
  
      @property
      def read_bytes_per_sec(self):
          """
          Gets the read_bytes_per_sec of this FileSystemPerformance.
          Bytes read per second.
  
          :return: The read_bytes_per_sec of this FileSystemPerformance.
          :rtype: float
          """
          return self._read_bytes_per_sec
  
      @read_bytes_per_sec.setter
      def read_bytes_per_sec(self, read_bytes_per_sec):
          """
          Sets the read_bytes_per_sec of this FileSystemPerformance.
          Bytes read per second.
  
          :param read_bytes_per_sec: The read_bytes_per_sec of this FileSystemPerformance.
          :type: float
          """
          if read_bytes_per_sec is not None and read_bytes_per_sec < 0:
              raise ValueError("Invalid value for `read_bytes_per_sec`, must be a value greater than or equal to `0`")
  
          self._read_bytes_per_sec = read_bytes_per_sec
  
      @property
      def reads_per_sec(self):
          """
          Gets the reads_per_sec of this FileSystemPerformance.
          Read requests processed per second.
  
          :return: The reads_per_sec of this FileSystemPerformance.
          :rtype: float
          """
          return self._reads_per_sec
  
      @reads_per_sec.setter
      def reads_per_sec(self, reads_per_sec):
          """
          Sets the reads_per_sec of this FileSystemPerformance.
          Read requests processed per second.
  
          :param reads_per_sec: The reads_per_sec of this FileSystemPerformance.
          :type: float
          """
          if reads_per_sec is not None and reads_per_sec < 0:
              raise ValueError("Invalid value for `reads_per_sec`, must be a value greater than or equal to `0`")
  
          self._reads_per_sec = reads_per_sec
  
      @property
      def time(self):
          """
          Gets the time of this FileSystemPerformance.
          Sample time in milliseconds since UNIX epoch.
  
          :return: The time of this FileSystemPerformance.
          :rtype: int
          """
          return self._time
  
      @time.setter
      def time(self, time):
          """
          Sets the time of this FileSystemPerformance.
          Sample time in milliseconds since UNIX epoch.
  
          :param time: The time of this FileSystemPerformance.
          :type: int
          """
  
          self._time = time
  
      @property
      def usec_per_other_op(self):
          """
          Gets the usec_per_other_op of this FileSystemPerformance.
          Average time, measured in microseconds, it takes the array to process other operations.
  
          :return: The usec_per_other_op of this FileSystemPerformance.
          :rtype: float
          """
          return self._usec_per_other_op
  
      @usec_per_other_op.setter
      def usec_per_other_op(self, usec_per_other_op):
          """
          Sets the usec_per_other_op of this FileSystemPerformance.
          Average time, measured in microseconds, it takes the array to process other operations.
  
          :param usec_per_other_op: The usec_per_other_op of this FileSystemPerformance.
          :type: float
          """
          if usec_per_other_op is not None and usec_per_other_op < 0:
              raise ValueError("Invalid value for `usec_per_other_op`, must be a value greater than or equal to `0`")
  
          self._usec_per_other_op = usec_per_other_op
  
      @property
      def usec_per_read_op(self):
          """
          Gets the usec_per_read_op of this FileSystemPerformance.
          Average time, measured in microseconds, it takes the array to process a read request.
  
          :return: The usec_per_read_op of this FileSystemPerformance.
          :rtype: float
          """
          return self._usec_per_read_op
  
      @usec_per_read_op.setter
      def usec_per_read_op(self, usec_per_read_op):
          """
          Sets the usec_per_read_op of this FileSystemPerformance.
          Average time, measured in microseconds, it takes the array to process a read request.
  
          :param usec_per_read_op: The usec_per_read_op of this FileSystemPerformance.
          :type: float
          """
          if usec_per_read_op is not None and usec_per_read_op < 0:
              raise ValueError("Invalid value for `usec_per_read_op`, must be a value greater than or equal to `0`")
  
          self._usec_per_read_op = usec_per_read_op
  
      @property
      def usec_per_write_op(self):
          """
          Gets the usec_per_write_op of this FileSystemPerformance.
          Average time, measured in microseconds, it takes the array to process a write request.
  
          :return: The usec_per_write_op of this FileSystemPerformance.
          :rtype: float
          """
          return self._usec_per_write_op
  
      @usec_per_write_op.setter
      def usec_per_write_op(self, usec_per_write_op):
          """
          Sets the usec_per_write_op of this FileSystemPerformance.
          Average time, measured in microseconds, it takes the array to process a write request.
  
          :param usec_per_write_op: The usec_per_write_op of this FileSystemPerformance.
          :type: float
          """
          if usec_per_write_op is not None and usec_per_write_op < 0:
              raise ValueError("Invalid value for `usec_per_write_op`, must be a value greater than or equal to `0`")
  
          self._usec_per_write_op = usec_per_write_op
  
      @property
      def write_bytes_per_sec(self):
          """
          Gets the write_bytes_per_sec of this FileSystemPerformance.
          Bytes written per second.
  
          :return: The write_bytes_per_sec of this FileSystemPerformance.
          :rtype: float
          """
          return self._write_bytes_per_sec
  
      @write_bytes_per_sec.setter
      def write_bytes_per_sec(self, write_bytes_per_sec):
          """
          Sets the write_bytes_per_sec of this FileSystemPerformance.
          Bytes written per second.
  
          :param write_bytes_per_sec: The write_bytes_per_sec of this FileSystemPerformance.
          :type: float
          """
          if write_bytes_per_sec is not None and write_bytes_per_sec < 0:
              raise ValueError("Invalid value for `write_bytes_per_sec`, must be a value greater than or equal to `0`")
  
          self._write_bytes_per_sec = write_bytes_per_sec
  
      @property
      def writes_per_sec(self):
          """
          Gets the writes_per_sec of this FileSystemPerformance.
          Write requests processed per second.
  
          :return: The writes_per_sec of this FileSystemPerformance.
          :rtype: float
          """
          return self._writes_per_sec
  
      @writes_per_sec.setter
      def writes_per_sec(self, writes_per_sec):
          """
          Sets the writes_per_sec of this FileSystemPerformance.
          Write requests processed per second.
  
          :param writes_per_sec: The writes_per_sec of this FileSystemPerformance.
          :type: float
          """
          if writes_per_sec is not None and writes_per_sec < 0:
              raise ValueError("Invalid value for `writes_per_sec`, must be a value greater than or equal to `0`")
  
          self._writes_per_sec = writes_per_sec
  
      def to_dict(self):
          """
          Returns the model properties as a dict
          """
          result = {}
  
          for attr, _ in 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
  
          return result
  
      def to_str(self):
          """
          Returns the string representation of the model
          """
          return 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, FileSystemPerformance):
              return False
  
          return self.__dict__ == other.__dict__
  
      def __ne__(self, other):
          """
          Returns true if both objects are not equal
          """
          return not self == other
  