github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/clients/python/bacalhau_apiclient/models/list_request.py (about)

     1  # coding: utf-8
     2  
     3  """
     4      Bacalhau API
     5  
     6      This page is the reference of the Bacalhau REST API. Project docs are available at https://docs.bacalhau.org/. Find more information about Bacalhau at https://github.com/filecoin-project/bacalhau.  # noqa: E501
     7  
     8      OpenAPI spec version: 0.3.22.post4
     9      Contact: team@bacalhau.org
    10      Generated by: https://github.com/swagger-api/swagger-codegen.git
    11  """
    12  
    13  
    14  import pprint
    15  import re  # noqa: F401
    16  
    17  import six
    18  
    19  from bacalhau_apiclient.configuration import Configuration
    20  
    21  
    22  class ListRequest(object):
    23      """NOTE: This class is auto generated by the swagger code generator program.
    24  
    25      Do not edit the class manually.
    26      """
    27  
    28      """
    29      Attributes:
    30        swagger_types (dict): The key is attribute name
    31                              and the value is attribute type.
    32        attribute_map (dict): The key is attribute name
    33                              and the value is json key in definition.
    34      """
    35      swagger_types = {
    36          'client_id': 'str',
    37          'exclude_tags': 'list[str]',
    38          'id': 'str',
    39          'include_tags': 'list[str]',
    40          'max_jobs': 'int',
    41          'return_all': 'bool',
    42          'sort_by': 'str',
    43          'sort_reverse': 'bool'
    44      }
    45  
    46      attribute_map = {
    47          'client_id': 'client_id',
    48          'exclude_tags': 'exclude_tags',
    49          'id': 'id',
    50          'include_tags': 'include_tags',
    51          'max_jobs': 'max_jobs',
    52          'return_all': 'return_all',
    53          'sort_by': 'sort_by',
    54          'sort_reverse': 'sort_reverse'
    55      }
    56  
    57      def __init__(self, client_id=None, exclude_tags=None, id=None, include_tags=None, max_jobs=None, return_all=None, sort_by=None, sort_reverse=None, _configuration=None):  # noqa: E501
    58          """ListRequest - a model defined in Swagger"""  # noqa: E501
    59          if _configuration is None:
    60              _configuration = Configuration()
    61          self._configuration = _configuration
    62  
    63          self._client_id = None
    64          self._exclude_tags = None
    65          self._id = None
    66          self._include_tags = None
    67          self._max_jobs = None
    68          self._return_all = None
    69          self._sort_by = None
    70          self._sort_reverse = None
    71          self.discriminator = None
    72  
    73          if client_id is not None:
    74              self.client_id = client_id
    75          if exclude_tags is not None:
    76              self.exclude_tags = exclude_tags
    77          if id is not None:
    78              self.id = id
    79          if include_tags is not None:
    80              self.include_tags = include_tags
    81          if max_jobs is not None:
    82              self.max_jobs = max_jobs
    83          if return_all is not None:
    84              self.return_all = return_all
    85          if sort_by is not None:
    86              self.sort_by = sort_by
    87          if sort_reverse is not None:
    88              self.sort_reverse = sort_reverse
    89  
    90      @property
    91      def client_id(self):
    92          """Gets the client_id of this ListRequest.  # noqa: E501
    93  
    94  
    95          :return: The client_id of this ListRequest.  # noqa: E501
    96          :rtype: str
    97          """
    98          return self._client_id
    99  
   100      @client_id.setter
   101      def client_id(self, client_id):
   102          """Sets the client_id of this ListRequest.
   103  
   104  
   105          :param client_id: The client_id of this ListRequest.  # noqa: E501
   106          :type: str
   107          """
   108  
   109          self._client_id = client_id
   110  
   111      @property
   112      def exclude_tags(self):
   113          """Gets the exclude_tags of this ListRequest.  # noqa: E501
   114  
   115  
   116          :return: The exclude_tags of this ListRequest.  # noqa: E501
   117          :rtype: list[str]
   118          """
   119          return self._exclude_tags
   120  
   121      @exclude_tags.setter
   122      def exclude_tags(self, exclude_tags):
   123          """Sets the exclude_tags of this ListRequest.
   124  
   125  
   126          :param exclude_tags: The exclude_tags of this ListRequest.  # noqa: E501
   127          :type: list[str]
   128          """
   129  
   130          self._exclude_tags = exclude_tags
   131  
   132      @property
   133      def id(self):
   134          """Gets the id of this ListRequest.  # noqa: E501
   135  
   136  
   137          :return: The id of this ListRequest.  # noqa: E501
   138          :rtype: str
   139          """
   140          return self._id
   141  
   142      @id.setter
   143      def id(self, id):
   144          """Sets the id of this ListRequest.
   145  
   146  
   147          :param id: The id of this ListRequest.  # noqa: E501
   148          :type: str
   149          """
   150  
   151          self._id = id
   152  
   153      @property
   154      def include_tags(self):
   155          """Gets the include_tags of this ListRequest.  # noqa: E501
   156  
   157  
   158          :return: The include_tags of this ListRequest.  # noqa: E501
   159          :rtype: list[str]
   160          """
   161          return self._include_tags
   162  
   163      @include_tags.setter
   164      def include_tags(self, include_tags):
   165          """Sets the include_tags of this ListRequest.
   166  
   167  
   168          :param include_tags: The include_tags of this ListRequest.  # noqa: E501
   169          :type: list[str]
   170          """
   171  
   172          self._include_tags = include_tags
   173  
   174      @property
   175      def max_jobs(self):
   176          """Gets the max_jobs of this ListRequest.  # noqa: E501
   177  
   178  
   179          :return: The max_jobs of this ListRequest.  # noqa: E501
   180          :rtype: int
   181          """
   182          return self._max_jobs
   183  
   184      @max_jobs.setter
   185      def max_jobs(self, max_jobs):
   186          """Sets the max_jobs of this ListRequest.
   187  
   188  
   189          :param max_jobs: The max_jobs of this ListRequest.  # noqa: E501
   190          :type: int
   191          """
   192  
   193          self._max_jobs = max_jobs
   194  
   195      @property
   196      def return_all(self):
   197          """Gets the return_all of this ListRequest.  # noqa: E501
   198  
   199  
   200          :return: The return_all of this ListRequest.  # noqa: E501
   201          :rtype: bool
   202          """
   203          return self._return_all
   204  
   205      @return_all.setter
   206      def return_all(self, return_all):
   207          """Sets the return_all of this ListRequest.
   208  
   209  
   210          :param return_all: The return_all of this ListRequest.  # noqa: E501
   211          :type: bool
   212          """
   213  
   214          self._return_all = return_all
   215  
   216      @property
   217      def sort_by(self):
   218          """Gets the sort_by of this ListRequest.  # noqa: E501
   219  
   220  
   221          :return: The sort_by of this ListRequest.  # noqa: E501
   222          :rtype: str
   223          """
   224          return self._sort_by
   225  
   226      @sort_by.setter
   227      def sort_by(self, sort_by):
   228          """Sets the sort_by of this ListRequest.
   229  
   230  
   231          :param sort_by: The sort_by of this ListRequest.  # noqa: E501
   232          :type: str
   233          """
   234  
   235          self._sort_by = sort_by
   236  
   237      @property
   238      def sort_reverse(self):
   239          """Gets the sort_reverse of this ListRequest.  # noqa: E501
   240  
   241  
   242          :return: The sort_reverse of this ListRequest.  # noqa: E501
   243          :rtype: bool
   244          """
   245          return self._sort_reverse
   246  
   247      @sort_reverse.setter
   248      def sort_reverse(self, sort_reverse):
   249          """Sets the sort_reverse of this ListRequest.
   250  
   251  
   252          :param sort_reverse: The sort_reverse of this ListRequest.  # noqa: E501
   253          :type: bool
   254          """
   255  
   256          self._sort_reverse = sort_reverse
   257  
   258      def to_dict(self):
   259          """Returns the model properties as a dict"""
   260          result = {}
   261  
   262          for attr, _ in six.iteritems(self.swagger_types):
   263              value = getattr(self, attr)
   264              if isinstance(value, list):
   265                  result[attr] = list(map(
   266                      lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
   267                      value
   268                  ))
   269              elif hasattr(value, "to_dict"):
   270                  result[attr] = value.to_dict()
   271              elif isinstance(value, dict):
   272                  result[attr] = dict(map(
   273                      lambda item: (item[0], item[1].to_dict())
   274                      if hasattr(item[1], "to_dict") else item,
   275                      value.items()
   276                  ))
   277              else:
   278                  result[attr] = value
   279          if issubclass(ListRequest, dict):
   280              for key, value in self.items():
   281                  result[key] = value
   282  
   283          return result
   284  
   285      def to_str(self):
   286          """Returns the string representation of the model"""
   287          return pprint.pformat(self.to_dict())
   288  
   289      def __repr__(self):
   290          """For `print` and `pprint`"""
   291          return self.to_str()
   292  
   293      def __eq__(self, other):
   294          """Returns true if both objects are equal"""
   295          if not isinstance(other, ListRequest):
   296              return False
   297  
   298          return self.to_dict() == other.to_dict()
   299  
   300      def __ne__(self, other):
   301          """Returns true if both objects are not equal"""
   302          if not isinstance(other, ListRequest):
   303              return True
   304  
   305          return self.to_dict() != other.to_dict()