docusign_esign.models.diagnostics_settings_information

DocuSign REST API

The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501

OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git

  1# coding: utf-8
  2
  3"""
  4    DocuSign REST API
  5
  6    The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.  # noqa: E501
  7
  8    OpenAPI spec version: v2.1
  9    Contact: devcenter@docusign.com
 10    Generated by: https://github.com/swagger-api/swagger-codegen.git
 11"""
 12
 13
 14import pprint
 15import re  # noqa: F401
 16
 17import six
 18
 19from docusign_esign.client.configuration import Configuration
 20
 21
 22class DiagnosticsSettingsInformation(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        'api_request_logging': 'str',
 37        'api_request_log_max_entries': 'str',
 38        'api_request_log_remaining_entries': 'str'
 39    }
 40
 41    attribute_map = {
 42        'api_request_logging': 'apiRequestLogging',
 43        'api_request_log_max_entries': 'apiRequestLogMaxEntries',
 44        'api_request_log_remaining_entries': 'apiRequestLogRemainingEntries'
 45    }
 46
 47    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 48        """DiagnosticsSettingsInformation - a model defined in Swagger"""  # noqa: E501
 49        if _configuration is None:
 50            _configuration = Configuration()
 51        self._configuration = _configuration
 52
 53        self._api_request_logging = None
 54        self._api_request_log_max_entries = None
 55        self._api_request_log_remaining_entries = None
 56        self.discriminator = None
 57
 58        setattr(self, "_{}".format('api_request_logging'), kwargs.get('api_request_logging', None))
 59        setattr(self, "_{}".format('api_request_log_max_entries'), kwargs.get('api_request_log_max_entries', None))
 60        setattr(self, "_{}".format('api_request_log_remaining_entries'), kwargs.get('api_request_log_remaining_entries', None))
 61
 62    @property
 63    def api_request_logging(self):
 64        """Gets the api_request_logging of this DiagnosticsSettingsInformation.  # noqa: E501
 65
 66         When set to **true**, enables API request logging for the user.   # noqa: E501
 67
 68        :return: The api_request_logging of this DiagnosticsSettingsInformation.  # noqa: E501
 69        :rtype: str
 70        """
 71        return self._api_request_logging
 72
 73    @api_request_logging.setter
 74    def api_request_logging(self, api_request_logging):
 75        """Sets the api_request_logging of this DiagnosticsSettingsInformation.
 76
 77         When set to **true**, enables API request logging for the user.   # noqa: E501
 78
 79        :param api_request_logging: The api_request_logging of this DiagnosticsSettingsInformation.  # noqa: E501
 80        :type: str
 81        """
 82
 83        self._api_request_logging = api_request_logging
 84
 85    @property
 86    def api_request_log_max_entries(self):
 87        """Gets the api_request_log_max_entries of this DiagnosticsSettingsInformation.  # noqa: E501
 88
 89        Specifies the maximum number of API requests to log.  # noqa: E501
 90
 91        :return: The api_request_log_max_entries of this DiagnosticsSettingsInformation.  # noqa: E501
 92        :rtype: str
 93        """
 94        return self._api_request_log_max_entries
 95
 96    @api_request_log_max_entries.setter
 97    def api_request_log_max_entries(self, api_request_log_max_entries):
 98        """Sets the api_request_log_max_entries of this DiagnosticsSettingsInformation.
 99
100        Specifies the maximum number of API requests to log.  # noqa: E501
101
102        :param api_request_log_max_entries: The api_request_log_max_entries of this DiagnosticsSettingsInformation.  # noqa: E501
103        :type: str
104        """
105
106        self._api_request_log_max_entries = api_request_log_max_entries
107
108    @property
109    def api_request_log_remaining_entries(self):
110        """Gets the api_request_log_remaining_entries of this DiagnosticsSettingsInformation.  # noqa: E501
111
112        Indicates the remaining number of API requests that can be logged.  # noqa: E501
113
114        :return: The api_request_log_remaining_entries of this DiagnosticsSettingsInformation.  # noqa: E501
115        :rtype: str
116        """
117        return self._api_request_log_remaining_entries
118
119    @api_request_log_remaining_entries.setter
120    def api_request_log_remaining_entries(self, api_request_log_remaining_entries):
121        """Sets the api_request_log_remaining_entries of this DiagnosticsSettingsInformation.
122
123        Indicates the remaining number of API requests that can be logged.  # noqa: E501
124
125        :param api_request_log_remaining_entries: The api_request_log_remaining_entries of this DiagnosticsSettingsInformation.  # noqa: E501
126        :type: str
127        """
128
129        self._api_request_log_remaining_entries = api_request_log_remaining_entries
130
131    def to_dict(self):
132        """Returns the model properties as a dict"""
133        result = {}
134
135        for attr, _ in six.iteritems(self.swagger_types):
136            value = getattr(self, attr)
137            if isinstance(value, list):
138                result[attr] = list(map(
139                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
140                    value
141                ))
142            elif hasattr(value, "to_dict"):
143                result[attr] = value.to_dict()
144            elif isinstance(value, dict):
145                result[attr] = dict(map(
146                    lambda item: (item[0], item[1].to_dict())
147                    if hasattr(item[1], "to_dict") else item,
148                    value.items()
149                ))
150            else:
151                result[attr] = value
152        if issubclass(DiagnosticsSettingsInformation, dict):
153            for key, value in self.items():
154                result[key] = value
155
156        return result
157
158    def to_str(self):
159        """Returns the string representation of the model"""
160        return pprint.pformat(self.to_dict())
161
162    def __repr__(self):
163        """For `print` and `pprint`"""
164        return self.to_str()
165
166    def __eq__(self, other):
167        """Returns true if both objects are equal"""
168        if not isinstance(other, DiagnosticsSettingsInformation):
169            return False
170
171        return self.to_dict() == other.to_dict()
172
173    def __ne__(self, other):
174        """Returns true if both objects are not equal"""
175        if not isinstance(other, DiagnosticsSettingsInformation):
176            return True
177
178        return self.to_dict() != other.to_dict()
class DiagnosticsSettingsInformation:
 23class DiagnosticsSettingsInformation(object):
 24    """NOTE: This class is auto generated by the swagger code generator program.
 25
 26    Do not edit the class manually.
 27    """
 28
 29    """
 30    Attributes:
 31      swagger_types (dict): The key is attribute name
 32                            and the value is attribute type.
 33      attribute_map (dict): The key is attribute name
 34                            and the value is json key in definition.
 35    """
 36    swagger_types = {
 37        'api_request_logging': 'str',
 38        'api_request_log_max_entries': 'str',
 39        'api_request_log_remaining_entries': 'str'
 40    }
 41
 42    attribute_map = {
 43        'api_request_logging': 'apiRequestLogging',
 44        'api_request_log_max_entries': 'apiRequestLogMaxEntries',
 45        'api_request_log_remaining_entries': 'apiRequestLogRemainingEntries'
 46    }
 47
 48    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 49        """DiagnosticsSettingsInformation - a model defined in Swagger"""  # noqa: E501
 50        if _configuration is None:
 51            _configuration = Configuration()
 52        self._configuration = _configuration
 53
 54        self._api_request_logging = None
 55        self._api_request_log_max_entries = None
 56        self._api_request_log_remaining_entries = None
 57        self.discriminator = None
 58
 59        setattr(self, "_{}".format('api_request_logging'), kwargs.get('api_request_logging', None))
 60        setattr(self, "_{}".format('api_request_log_max_entries'), kwargs.get('api_request_log_max_entries', None))
 61        setattr(self, "_{}".format('api_request_log_remaining_entries'), kwargs.get('api_request_log_remaining_entries', None))
 62
 63    @property
 64    def api_request_logging(self):
 65        """Gets the api_request_logging of this DiagnosticsSettingsInformation.  # noqa: E501
 66
 67         When set to **true**, enables API request logging for the user.   # noqa: E501
 68
 69        :return: The api_request_logging of this DiagnosticsSettingsInformation.  # noqa: E501
 70        :rtype: str
 71        """
 72        return self._api_request_logging
 73
 74    @api_request_logging.setter
 75    def api_request_logging(self, api_request_logging):
 76        """Sets the api_request_logging of this DiagnosticsSettingsInformation.
 77
 78         When set to **true**, enables API request logging for the user.   # noqa: E501
 79
 80        :param api_request_logging: The api_request_logging of this DiagnosticsSettingsInformation.  # noqa: E501
 81        :type: str
 82        """
 83
 84        self._api_request_logging = api_request_logging
 85
 86    @property
 87    def api_request_log_max_entries(self):
 88        """Gets the api_request_log_max_entries of this DiagnosticsSettingsInformation.  # noqa: E501
 89
 90        Specifies the maximum number of API requests to log.  # noqa: E501
 91
 92        :return: The api_request_log_max_entries of this DiagnosticsSettingsInformation.  # noqa: E501
 93        :rtype: str
 94        """
 95        return self._api_request_log_max_entries
 96
 97    @api_request_log_max_entries.setter
 98    def api_request_log_max_entries(self, api_request_log_max_entries):
 99        """Sets the api_request_log_max_entries of this DiagnosticsSettingsInformation.
100
101        Specifies the maximum number of API requests to log.  # noqa: E501
102
103        :param api_request_log_max_entries: The api_request_log_max_entries of this DiagnosticsSettingsInformation.  # noqa: E501
104        :type: str
105        """
106
107        self._api_request_log_max_entries = api_request_log_max_entries
108
109    @property
110    def api_request_log_remaining_entries(self):
111        """Gets the api_request_log_remaining_entries of this DiagnosticsSettingsInformation.  # noqa: E501
112
113        Indicates the remaining number of API requests that can be logged.  # noqa: E501
114
115        :return: The api_request_log_remaining_entries of this DiagnosticsSettingsInformation.  # noqa: E501
116        :rtype: str
117        """
118        return self._api_request_log_remaining_entries
119
120    @api_request_log_remaining_entries.setter
121    def api_request_log_remaining_entries(self, api_request_log_remaining_entries):
122        """Sets the api_request_log_remaining_entries of this DiagnosticsSettingsInformation.
123
124        Indicates the remaining number of API requests that can be logged.  # noqa: E501
125
126        :param api_request_log_remaining_entries: The api_request_log_remaining_entries of this DiagnosticsSettingsInformation.  # noqa: E501
127        :type: str
128        """
129
130        self._api_request_log_remaining_entries = api_request_log_remaining_entries
131
132    def to_dict(self):
133        """Returns the model properties as a dict"""
134        result = {}
135
136        for attr, _ in six.iteritems(self.swagger_types):
137            value = getattr(self, attr)
138            if isinstance(value, list):
139                result[attr] = list(map(
140                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
141                    value
142                ))
143            elif hasattr(value, "to_dict"):
144                result[attr] = value.to_dict()
145            elif isinstance(value, dict):
146                result[attr] = dict(map(
147                    lambda item: (item[0], item[1].to_dict())
148                    if hasattr(item[1], "to_dict") else item,
149                    value.items()
150                ))
151            else:
152                result[attr] = value
153        if issubclass(DiagnosticsSettingsInformation, dict):
154            for key, value in self.items():
155                result[key] = value
156
157        return result
158
159    def to_str(self):
160        """Returns the string representation of the model"""
161        return pprint.pformat(self.to_dict())
162
163    def __repr__(self):
164        """For `print` and `pprint`"""
165        return self.to_str()
166
167    def __eq__(self, other):
168        """Returns true if both objects are equal"""
169        if not isinstance(other, DiagnosticsSettingsInformation):
170            return False
171
172        return self.to_dict() == other.to_dict()
173
174    def __ne__(self, other):
175        """Returns true if both objects are not equal"""
176        if not isinstance(other, DiagnosticsSettingsInformation):
177            return True
178
179        return self.to_dict() != other.to_dict()

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

DiagnosticsSettingsInformation(_configuration=None, **kwargs)
48    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
49        """DiagnosticsSettingsInformation - a model defined in Swagger"""  # noqa: E501
50        if _configuration is None:
51            _configuration = Configuration()
52        self._configuration = _configuration
53
54        self._api_request_logging = None
55        self._api_request_log_max_entries = None
56        self._api_request_log_remaining_entries = None
57        self.discriminator = None
58
59        setattr(self, "_{}".format('api_request_logging'), kwargs.get('api_request_logging', None))
60        setattr(self, "_{}".format('api_request_log_max_entries'), kwargs.get('api_request_log_max_entries', None))
61        setattr(self, "_{}".format('api_request_log_remaining_entries'), kwargs.get('api_request_log_remaining_entries', None))

DiagnosticsSettingsInformation - a model defined in Swagger

swagger_types = {'api_request_logging': 'str', 'api_request_log_max_entries': 'str', 'api_request_log_remaining_entries': 'str'}
attribute_map = {'api_request_logging': 'apiRequestLogging', 'api_request_log_max_entries': 'apiRequestLogMaxEntries', 'api_request_log_remaining_entries': 'apiRequestLogRemainingEntries'}
api_request_logging

Gets the api_request_logging of this DiagnosticsSettingsInformation. # noqa: E501

When set to true, enables API request logging for the user. # noqa: E501

Returns

The api_request_logging of this DiagnosticsSettingsInformation. # noqa: E501

api_request_log_max_entries

Gets the api_request_log_max_entries of this DiagnosticsSettingsInformation. # noqa: E501

Specifies the maximum number of API requests to log. # noqa: E501

Returns

The api_request_log_max_entries of this DiagnosticsSettingsInformation. # noqa: E501

api_request_log_remaining_entries

Gets the api_request_log_remaining_entries of this DiagnosticsSettingsInformation. # noqa: E501

Indicates the remaining number of API requests that can be logged. # noqa: E501

Returns

The api_request_log_remaining_entries of this DiagnosticsSettingsInformation. # noqa: E501

def to_dict(self)
132    def to_dict(self):
133        """Returns the model properties as a dict"""
134        result = {}
135
136        for attr, _ in six.iteritems(self.swagger_types):
137            value = getattr(self, attr)
138            if isinstance(value, list):
139                result[attr] = list(map(
140                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
141                    value
142                ))
143            elif hasattr(value, "to_dict"):
144                result[attr] = value.to_dict()
145            elif isinstance(value, dict):
146                result[attr] = dict(map(
147                    lambda item: (item[0], item[1].to_dict())
148                    if hasattr(item[1], "to_dict") else item,
149                    value.items()
150                ))
151            else:
152                result[attr] = value
153        if issubclass(DiagnosticsSettingsInformation, dict):
154            for key, value in self.items():
155                result[key] = value
156
157        return result

Returns the model properties as a dict

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

Returns the string representation of the model