docusign_esign.models.service_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 ServiceInformation(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        'build_branch': 'str',
 37        'build_branch_deployed_date_time': 'str',
 38        'build_sha': 'str',
 39        'build_version': 'str',
 40        'linked_sites': 'list[str]',
 41        'service_versions': 'list[ServiceVersion]'
 42    }
 43
 44    attribute_map = {
 45        'build_branch': 'buildBranch',
 46        'build_branch_deployed_date_time': 'buildBranchDeployedDateTime',
 47        'build_sha': 'buildSHA',
 48        'build_version': 'buildVersion',
 49        'linked_sites': 'linkedSites',
 50        'service_versions': 'serviceVersions'
 51    }
 52
 53    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 54        """ServiceInformation - a model defined in Swagger"""  # noqa: E501
 55        if _configuration is None:
 56            _configuration = Configuration()
 57        self._configuration = _configuration
 58
 59        self._build_branch = None
 60        self._build_branch_deployed_date_time = None
 61        self._build_sha = None
 62        self._build_version = None
 63        self._linked_sites = None
 64        self._service_versions = None
 65        self.discriminator = None
 66
 67        setattr(self, "_{}".format('build_branch'), kwargs.get('build_branch', None))
 68        setattr(self, "_{}".format('build_branch_deployed_date_time'), kwargs.get('build_branch_deployed_date_time', None))
 69        setattr(self, "_{}".format('build_sha'), kwargs.get('build_sha', None))
 70        setattr(self, "_{}".format('build_version'), kwargs.get('build_version', None))
 71        setattr(self, "_{}".format('linked_sites'), kwargs.get('linked_sites', None))
 72        setattr(self, "_{}".format('service_versions'), kwargs.get('service_versions', None))
 73
 74    @property
 75    def build_branch(self):
 76        """Gets the build_branch of this ServiceInformation.  # noqa: E501
 77
 78        Reserved: TBD  # noqa: E501
 79
 80        :return: The build_branch of this ServiceInformation.  # noqa: E501
 81        :rtype: str
 82        """
 83        return self._build_branch
 84
 85    @build_branch.setter
 86    def build_branch(self, build_branch):
 87        """Sets the build_branch of this ServiceInformation.
 88
 89        Reserved: TBD  # noqa: E501
 90
 91        :param build_branch: The build_branch of this ServiceInformation.  # noqa: E501
 92        :type: str
 93        """
 94
 95        self._build_branch = build_branch
 96
 97    @property
 98    def build_branch_deployed_date_time(self):
 99        """Gets the build_branch_deployed_date_time of this ServiceInformation.  # noqa: E501
100
101        Reserved: TBD  # noqa: E501
102
103        :return: The build_branch_deployed_date_time of this ServiceInformation.  # noqa: E501
104        :rtype: str
105        """
106        return self._build_branch_deployed_date_time
107
108    @build_branch_deployed_date_time.setter
109    def build_branch_deployed_date_time(self, build_branch_deployed_date_time):
110        """Sets the build_branch_deployed_date_time of this ServiceInformation.
111
112        Reserved: TBD  # noqa: E501
113
114        :param build_branch_deployed_date_time: The build_branch_deployed_date_time of this ServiceInformation.  # noqa: E501
115        :type: str
116        """
117
118        self._build_branch_deployed_date_time = build_branch_deployed_date_time
119
120    @property
121    def build_sha(self):
122        """Gets the build_sha of this ServiceInformation.  # noqa: E501
123
124        Reserved: TBD  # noqa: E501
125
126        :return: The build_sha of this ServiceInformation.  # noqa: E501
127        :rtype: str
128        """
129        return self._build_sha
130
131    @build_sha.setter
132    def build_sha(self, build_sha):
133        """Sets the build_sha of this ServiceInformation.
134
135        Reserved: TBD  # noqa: E501
136
137        :param build_sha: The build_sha of this ServiceInformation.  # noqa: E501
138        :type: str
139        """
140
141        self._build_sha = build_sha
142
143    @property
144    def build_version(self):
145        """Gets the build_version of this ServiceInformation.  # noqa: E501
146
147        Reserved: TBD  # noqa: E501
148
149        :return: The build_version of this ServiceInformation.  # noqa: E501
150        :rtype: str
151        """
152        return self._build_version
153
154    @build_version.setter
155    def build_version(self, build_version):
156        """Sets the build_version of this ServiceInformation.
157
158        Reserved: TBD  # noqa: E501
159
160        :param build_version: The build_version of this ServiceInformation.  # noqa: E501
161        :type: str
162        """
163
164        self._build_version = build_version
165
166    @property
167    def linked_sites(self):
168        """Gets the linked_sites of this ServiceInformation.  # noqa: E501
169
170          # noqa: E501
171
172        :return: The linked_sites of this ServiceInformation.  # noqa: E501
173        :rtype: list[str]
174        """
175        return self._linked_sites
176
177    @linked_sites.setter
178    def linked_sites(self, linked_sites):
179        """Sets the linked_sites of this ServiceInformation.
180
181          # noqa: E501
182
183        :param linked_sites: The linked_sites of this ServiceInformation.  # noqa: E501
184        :type: list[str]
185        """
186
187        self._linked_sites = linked_sites
188
189    @property
190    def service_versions(self):
191        """Gets the service_versions of this ServiceInformation.  # noqa: E501
192
193          # noqa: E501
194
195        :return: The service_versions of this ServiceInformation.  # noqa: E501
196        :rtype: list[ServiceVersion]
197        """
198        return self._service_versions
199
200    @service_versions.setter
201    def service_versions(self, service_versions):
202        """Sets the service_versions of this ServiceInformation.
203
204          # noqa: E501
205
206        :param service_versions: The service_versions of this ServiceInformation.  # noqa: E501
207        :type: list[ServiceVersion]
208        """
209
210        self._service_versions = service_versions
211
212    def to_dict(self):
213        """Returns the model properties as a dict"""
214        result = {}
215
216        for attr, _ in six.iteritems(self.swagger_types):
217            value = getattr(self, attr)
218            if isinstance(value, list):
219                result[attr] = list(map(
220                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
221                    value
222                ))
223            elif hasattr(value, "to_dict"):
224                result[attr] = value.to_dict()
225            elif isinstance(value, dict):
226                result[attr] = dict(map(
227                    lambda item: (item[0], item[1].to_dict())
228                    if hasattr(item[1], "to_dict") else item,
229                    value.items()
230                ))
231            else:
232                result[attr] = value
233        if issubclass(ServiceInformation, dict):
234            for key, value in self.items():
235                result[key] = value
236
237        return result
238
239    def to_str(self):
240        """Returns the string representation of the model"""
241        return pprint.pformat(self.to_dict())
242
243    def __repr__(self):
244        """For `print` and `pprint`"""
245        return self.to_str()
246
247    def __eq__(self, other):
248        """Returns true if both objects are equal"""
249        if not isinstance(other, ServiceInformation):
250            return False
251
252        return self.to_dict() == other.to_dict()
253
254    def __ne__(self, other):
255        """Returns true if both objects are not equal"""
256        if not isinstance(other, ServiceInformation):
257            return True
258
259        return self.to_dict() != other.to_dict()
class ServiceInformation:
 23class ServiceInformation(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        'build_branch': 'str',
 38        'build_branch_deployed_date_time': 'str',
 39        'build_sha': 'str',
 40        'build_version': 'str',
 41        'linked_sites': 'list[str]',
 42        'service_versions': 'list[ServiceVersion]'
 43    }
 44
 45    attribute_map = {
 46        'build_branch': 'buildBranch',
 47        'build_branch_deployed_date_time': 'buildBranchDeployedDateTime',
 48        'build_sha': 'buildSHA',
 49        'build_version': 'buildVersion',
 50        'linked_sites': 'linkedSites',
 51        'service_versions': 'serviceVersions'
 52    }
 53
 54    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 55        """ServiceInformation - a model defined in Swagger"""  # noqa: E501
 56        if _configuration is None:
 57            _configuration = Configuration()
 58        self._configuration = _configuration
 59
 60        self._build_branch = None
 61        self._build_branch_deployed_date_time = None
 62        self._build_sha = None
 63        self._build_version = None
 64        self._linked_sites = None
 65        self._service_versions = None
 66        self.discriminator = None
 67
 68        setattr(self, "_{}".format('build_branch'), kwargs.get('build_branch', None))
 69        setattr(self, "_{}".format('build_branch_deployed_date_time'), kwargs.get('build_branch_deployed_date_time', None))
 70        setattr(self, "_{}".format('build_sha'), kwargs.get('build_sha', None))
 71        setattr(self, "_{}".format('build_version'), kwargs.get('build_version', None))
 72        setattr(self, "_{}".format('linked_sites'), kwargs.get('linked_sites', None))
 73        setattr(self, "_{}".format('service_versions'), kwargs.get('service_versions', None))
 74
 75    @property
 76    def build_branch(self):
 77        """Gets the build_branch of this ServiceInformation.  # noqa: E501
 78
 79        Reserved: TBD  # noqa: E501
 80
 81        :return: The build_branch of this ServiceInformation.  # noqa: E501
 82        :rtype: str
 83        """
 84        return self._build_branch
 85
 86    @build_branch.setter
 87    def build_branch(self, build_branch):
 88        """Sets the build_branch of this ServiceInformation.
 89
 90        Reserved: TBD  # noqa: E501
 91
 92        :param build_branch: The build_branch of this ServiceInformation.  # noqa: E501
 93        :type: str
 94        """
 95
 96        self._build_branch = build_branch
 97
 98    @property
 99    def build_branch_deployed_date_time(self):
100        """Gets the build_branch_deployed_date_time of this ServiceInformation.  # noqa: E501
101
102        Reserved: TBD  # noqa: E501
103
104        :return: The build_branch_deployed_date_time of this ServiceInformation.  # noqa: E501
105        :rtype: str
106        """
107        return self._build_branch_deployed_date_time
108
109    @build_branch_deployed_date_time.setter
110    def build_branch_deployed_date_time(self, build_branch_deployed_date_time):
111        """Sets the build_branch_deployed_date_time of this ServiceInformation.
112
113        Reserved: TBD  # noqa: E501
114
115        :param build_branch_deployed_date_time: The build_branch_deployed_date_time of this ServiceInformation.  # noqa: E501
116        :type: str
117        """
118
119        self._build_branch_deployed_date_time = build_branch_deployed_date_time
120
121    @property
122    def build_sha(self):
123        """Gets the build_sha of this ServiceInformation.  # noqa: E501
124
125        Reserved: TBD  # noqa: E501
126
127        :return: The build_sha of this ServiceInformation.  # noqa: E501
128        :rtype: str
129        """
130        return self._build_sha
131
132    @build_sha.setter
133    def build_sha(self, build_sha):
134        """Sets the build_sha of this ServiceInformation.
135
136        Reserved: TBD  # noqa: E501
137
138        :param build_sha: The build_sha of this ServiceInformation.  # noqa: E501
139        :type: str
140        """
141
142        self._build_sha = build_sha
143
144    @property
145    def build_version(self):
146        """Gets the build_version of this ServiceInformation.  # noqa: E501
147
148        Reserved: TBD  # noqa: E501
149
150        :return: The build_version of this ServiceInformation.  # noqa: E501
151        :rtype: str
152        """
153        return self._build_version
154
155    @build_version.setter
156    def build_version(self, build_version):
157        """Sets the build_version of this ServiceInformation.
158
159        Reserved: TBD  # noqa: E501
160
161        :param build_version: The build_version of this ServiceInformation.  # noqa: E501
162        :type: str
163        """
164
165        self._build_version = build_version
166
167    @property
168    def linked_sites(self):
169        """Gets the linked_sites of this ServiceInformation.  # noqa: E501
170
171          # noqa: E501
172
173        :return: The linked_sites of this ServiceInformation.  # noqa: E501
174        :rtype: list[str]
175        """
176        return self._linked_sites
177
178    @linked_sites.setter
179    def linked_sites(self, linked_sites):
180        """Sets the linked_sites of this ServiceInformation.
181
182          # noqa: E501
183
184        :param linked_sites: The linked_sites of this ServiceInformation.  # noqa: E501
185        :type: list[str]
186        """
187
188        self._linked_sites = linked_sites
189
190    @property
191    def service_versions(self):
192        """Gets the service_versions of this ServiceInformation.  # noqa: E501
193
194          # noqa: E501
195
196        :return: The service_versions of this ServiceInformation.  # noqa: E501
197        :rtype: list[ServiceVersion]
198        """
199        return self._service_versions
200
201    @service_versions.setter
202    def service_versions(self, service_versions):
203        """Sets the service_versions of this ServiceInformation.
204
205          # noqa: E501
206
207        :param service_versions: The service_versions of this ServiceInformation.  # noqa: E501
208        :type: list[ServiceVersion]
209        """
210
211        self._service_versions = service_versions
212
213    def to_dict(self):
214        """Returns the model properties as a dict"""
215        result = {}
216
217        for attr, _ in six.iteritems(self.swagger_types):
218            value = getattr(self, attr)
219            if isinstance(value, list):
220                result[attr] = list(map(
221                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
222                    value
223                ))
224            elif hasattr(value, "to_dict"):
225                result[attr] = value.to_dict()
226            elif isinstance(value, dict):
227                result[attr] = dict(map(
228                    lambda item: (item[0], item[1].to_dict())
229                    if hasattr(item[1], "to_dict") else item,
230                    value.items()
231                ))
232            else:
233                result[attr] = value
234        if issubclass(ServiceInformation, dict):
235            for key, value in self.items():
236                result[key] = value
237
238        return result
239
240    def to_str(self):
241        """Returns the string representation of the model"""
242        return pprint.pformat(self.to_dict())
243
244    def __repr__(self):
245        """For `print` and `pprint`"""
246        return self.to_str()
247
248    def __eq__(self, other):
249        """Returns true if both objects are equal"""
250        if not isinstance(other, ServiceInformation):
251            return False
252
253        return self.to_dict() == other.to_dict()
254
255    def __ne__(self, other):
256        """Returns true if both objects are not equal"""
257        if not isinstance(other, ServiceInformation):
258            return True
259
260        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.

ServiceInformation(_configuration=None, **kwargs)
54    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
55        """ServiceInformation - a model defined in Swagger"""  # noqa: E501
56        if _configuration is None:
57            _configuration = Configuration()
58        self._configuration = _configuration
59
60        self._build_branch = None
61        self._build_branch_deployed_date_time = None
62        self._build_sha = None
63        self._build_version = None
64        self._linked_sites = None
65        self._service_versions = None
66        self.discriminator = None
67
68        setattr(self, "_{}".format('build_branch'), kwargs.get('build_branch', None))
69        setattr(self, "_{}".format('build_branch_deployed_date_time'), kwargs.get('build_branch_deployed_date_time', None))
70        setattr(self, "_{}".format('build_sha'), kwargs.get('build_sha', None))
71        setattr(self, "_{}".format('build_version'), kwargs.get('build_version', None))
72        setattr(self, "_{}".format('linked_sites'), kwargs.get('linked_sites', None))
73        setattr(self, "_{}".format('service_versions'), kwargs.get('service_versions', None))

ServiceInformation - a model defined in Swagger

swagger_types = {'build_branch': 'str', 'build_branch_deployed_date_time': 'str', 'build_sha': 'str', 'build_version': 'str', 'linked_sites': 'list[str]', 'service_versions': 'list[ServiceVersion]'}
attribute_map = {'build_branch': 'buildBranch', 'build_branch_deployed_date_time': 'buildBranchDeployedDateTime', 'build_sha': 'buildSHA', 'build_version': 'buildVersion', 'linked_sites': 'linkedSites', 'service_versions': 'serviceVersions'}
build_branch

Gets the build_branch of this ServiceInformation. # noqa: E501

Reserved: TBD # noqa: E501

Returns

The build_branch of this ServiceInformation. # noqa: E501

build_branch_deployed_date_time

Gets the build_branch_deployed_date_time of this ServiceInformation. # noqa: E501

Reserved: TBD # noqa: E501

Returns

The build_branch_deployed_date_time of this ServiceInformation. # noqa: E501

build_sha

Gets the build_sha of this ServiceInformation. # noqa: E501

Reserved: TBD # noqa: E501

Returns

The build_sha of this ServiceInformation. # noqa: E501

build_version

Gets the build_version of this ServiceInformation. # noqa: E501

Reserved: TBD # noqa: E501

Returns

The build_version of this ServiceInformation. # noqa: E501

linked_sites

Gets the linked_sites of this ServiceInformation. # noqa: E501

# noqa: E501

Returns

The linked_sites of this ServiceInformation. # noqa: E501

service_versions

Gets the service_versions of this ServiceInformation. # noqa: E501

# noqa: E501

Returns

The service_versions of this ServiceInformation. # noqa: E501

def to_dict(self)
213    def to_dict(self):
214        """Returns the model properties as a dict"""
215        result = {}
216
217        for attr, _ in six.iteritems(self.swagger_types):
218            value = getattr(self, attr)
219            if isinstance(value, list):
220                result[attr] = list(map(
221                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
222                    value
223                ))
224            elif hasattr(value, "to_dict"):
225                result[attr] = value.to_dict()
226            elif isinstance(value, dict):
227                result[attr] = dict(map(
228                    lambda item: (item[0], item[1].to_dict())
229                    if hasattr(item[1], "to_dict") else item,
230                    value.items()
231                ))
232            else:
233                result[attr] = value
234        if issubclass(ServiceInformation, dict):
235            for key, value in self.items():
236                result[key] = value
237
238        return result

Returns the model properties as a dict

def to_str(self)
240    def to_str(self):
241        """Returns the string representation of the model"""
242        return pprint.pformat(self.to_dict())

Returns the string representation of the model