1 |
d35c7f1f
|
Captain_Trojan
|
# coding: utf-8
|
2 |
|
|
|
3 |
|
|
from __future__ import absolute_import
|
4 |
|
|
from datetime import date, datetime # noqa: F401
|
5 |
|
|
|
6 |
|
|
from typing import List, Dict # noqa: F401
|
7 |
|
|
|
8 |
|
|
from swagger_server.models.base_model_ import Model
|
9 |
|
|
from swagger_server.models.certificate import Certificate # noqa: F401,E501
|
10 |
|
|
from swagger_server import util
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
class CertificateResponse(Model):
|
14 |
|
|
"""NOTE: This class is auto generated by the swagger code generator program.
|
15 |
|
|
|
16 |
|
|
Do not edit the class manually.
|
17 |
|
|
"""
|
18 |
|
|
def __init__(self, success: bool=None, data: Certificate=None): # noqa: E501
|
19 |
|
|
"""CertificateResponse - a model defined in Swagger
|
20 |
|
|
|
21 |
|
|
:param success: The success of this CertificateResponse. # noqa: E501
|
22 |
|
|
:type success: bool
|
23 |
|
|
:param data: The data of this CertificateResponse. # noqa: E501
|
24 |
|
|
:type data: Certificate
|
25 |
|
|
"""
|
26 |
|
|
self.swagger_types = {
|
27 |
|
|
'success': bool,
|
28 |
|
|
'data': Certificate
|
29 |
|
|
}
|
30 |
|
|
|
31 |
|
|
self.attribute_map = {
|
32 |
|
|
'success': 'success',
|
33 |
|
|
'data': 'data'
|
34 |
|
|
}
|
35 |
|
|
self._success = success
|
36 |
|
|
self._data = data
|
37 |
|
|
|
38 |
|
|
@classmethod
|
39 |
|
|
def from_dict(cls, dikt) -> 'CertificateResponse':
|
40 |
|
|
"""Returns the dict as a model
|
41 |
|
|
|
42 |
|
|
:param dikt: A dict.
|
43 |
|
|
:type: dict
|
44 |
|
|
:return: The CertificateResponse of this CertificateResponse. # noqa: E501
|
45 |
|
|
:rtype: CertificateResponse
|
46 |
|
|
"""
|
47 |
|
|
return util.deserialize_model(dikt, cls)
|
48 |
|
|
|
49 |
|
|
@property
|
50 |
|
|
def success(self) -> bool:
|
51 |
|
|
"""Gets the success of this CertificateResponse.
|
52 |
|
|
|
53 |
|
|
|
54 |
|
|
:return: The success of this CertificateResponse.
|
55 |
|
|
:rtype: bool
|
56 |
|
|
"""
|
57 |
|
|
return self._success
|
58 |
|
|
|
59 |
|
|
@success.setter
|
60 |
|
|
def success(self, success: bool):
|
61 |
|
|
"""Sets the success of this CertificateResponse.
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
:param success: The success of this CertificateResponse.
|
65 |
|
|
:type success: bool
|
66 |
|
|
"""
|
67 |
|
|
if success is None:
|
68 |
|
|
raise ValueError("Invalid value for `success`, must not be `None`") # noqa: E501
|
69 |
|
|
|
70 |
|
|
self._success = success
|
71 |
|
|
|
72 |
|
|
@property
|
73 |
|
|
def data(self) -> Certificate:
|
74 |
|
|
"""Gets the data of this CertificateResponse.
|
75 |
|
|
|
76 |
|
|
|
77 |
|
|
:return: The data of this CertificateResponse.
|
78 |
|
|
:rtype: Certificate
|
79 |
|
|
"""
|
80 |
|
|
return self._data
|
81 |
|
|
|
82 |
|
|
@data.setter
|
83 |
|
|
def data(self, data: Certificate):
|
84 |
|
|
"""Sets the data of this CertificateResponse.
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
:param data: The data of this CertificateResponse.
|
88 |
|
|
:type data: Certificate
|
89 |
|
|
"""
|
90 |
|
|
if data is None:
|
91 |
|
|
raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501
|
92 |
|
|
|
93 |
|
|
self._data = data
|