天择加密量化开放框架下载
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

122 lines
3.9 KiB

1 year ago
  1. # coding: utf-8
  2. """
  3. Gate API v4
  4. Welcome to Gate.io API APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf. # noqa: E501
  5. Contact: support@mail.gate.io
  6. Generated by: https://openapi-generator.tech
  7. """
  8. import pprint
  9. import re # noqa: F401
  10. import six
  11. from gate_api.configuration import Configuration
  12. class AutoRepaySetting(object):
  13. """NOTE: This class is auto generated by OpenAPI Generator.
  14. Ref: https://openapi-generator.tech
  15. Do not edit the class manually.
  16. """
  17. """
  18. Attributes:
  19. openapi_types (dict): The key is attribute name
  20. and the value is attribute type.
  21. attribute_map (dict): The key is attribute name
  22. and the value is json key in definition.
  23. """
  24. openapi_types = {'status': 'str'}
  25. attribute_map = {'status': 'status'}
  26. def __init__(self, status=None, local_vars_configuration=None): # noqa: E501
  27. # type: (str, Configuration) -> None
  28. """AutoRepaySetting - a model defined in OpenAPI""" # noqa: E501
  29. if local_vars_configuration is None:
  30. local_vars_configuration = Configuration()
  31. self.local_vars_configuration = local_vars_configuration
  32. self._status = None
  33. self.discriminator = None
  34. if status is not None:
  35. self.status = status
  36. @property
  37. def status(self):
  38. """Gets the status of this AutoRepaySetting. # noqa: E501
  39. Auto repayment status. `on` - enabled, `off` - disabled # noqa: E501
  40. :return: The status of this AutoRepaySetting. # noqa: E501
  41. :rtype: str
  42. """
  43. return self._status
  44. @status.setter
  45. def status(self, status):
  46. """Sets the status of this AutoRepaySetting.
  47. Auto repayment status. `on` - enabled, `off` - disabled # noqa: E501
  48. :param status: The status of this AutoRepaySetting. # noqa: E501
  49. :type: str
  50. """
  51. allowed_values = ["on", "off"] # noqa: E501
  52. if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501
  53. raise ValueError(
  54. "Invalid value for `status` ({0}), must be one of {1}".format(status, allowed_values) # noqa: E501
  55. )
  56. self._status = status
  57. def to_dict(self):
  58. """Returns the model properties as a dict"""
  59. result = {}
  60. for attr, _ in six.iteritems(self.openapi_types):
  61. value = getattr(self, attr)
  62. if isinstance(value, list):
  63. result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
  64. elif hasattr(value, "to_dict"):
  65. result[attr] = value.to_dict()
  66. elif isinstance(value, dict):
  67. result[attr] = dict(
  68. map(
  69. lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item,
  70. value.items(),
  71. )
  72. )
  73. else:
  74. result[attr] = value
  75. return result
  76. def to_str(self):
  77. """Returns the string representation of the model"""
  78. return pprint.pformat(self.to_dict())
  79. def __repr__(self):
  80. """For `print` and `pprint`"""
  81. return self.to_str()
  82. def __eq__(self, other):
  83. """Returns true if both objects are equal"""
  84. if not isinstance(other, AutoRepaySetting):
  85. return False
  86. return self.to_dict() == other.to_dict()
  87. def __ne__(self, other):
  88. """Returns true if both objects are not equal"""
  89. if not isinstance(other, AutoRepaySetting):
  90. return True
  91. return self.to_dict() != other.to_dict()