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 import util
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
class Subject(Model):
|
13 |
|
|
"""NOTE: This class is auto generated by the swagger code generator program.
|
14 |
|
|
|
15 |
|
|
Do not edit the class manually.
|
16 |
|
|
"""
|
17 |
|
|
def __init__(self, c: str=None, st: str=None, l: str=None, cn: str=None, o: str=None, ou: str=None, email_address: str=None): # noqa: E501
|
18 |
|
|
"""Subject - a model defined in Swagger
|
19 |
|
|
|
20 |
|
|
:param c: The c of this Subject. # noqa: E501
|
21 |
|
|
:type c: str
|
22 |
|
|
:param st: The st of this Subject. # noqa: E501
|
23 |
|
|
:type st: str
|
24 |
|
|
:param l: The l of this Subject. # noqa: E501
|
25 |
|
|
:type l: str
|
26 |
|
|
:param cn: The cn of this Subject. # noqa: E501
|
27 |
|
|
:type cn: str
|
28 |
|
|
:param o: The o of this Subject. # noqa: E501
|
29 |
|
|
:type o: str
|
30 |
|
|
:param ou: The ou of this Subject. # noqa: E501
|
31 |
|
|
:type ou: str
|
32 |
|
|
:param email_address: The email_address of this Subject. # noqa: E501
|
33 |
|
|
:type email_address: str
|
34 |
|
|
"""
|
35 |
|
|
self.swagger_types = {
|
36 |
|
|
'c': str,
|
37 |
|
|
'st': str,
|
38 |
|
|
'l': str,
|
39 |
|
|
'cn': str,
|
40 |
|
|
'o': str,
|
41 |
|
|
'ou': str,
|
42 |
|
|
'email_address': str
|
43 |
|
|
}
|
44 |
|
|
|
45 |
|
|
self.attribute_map = {
|
46 |
|
|
'c': 'C',
|
47 |
|
|
'st': 'ST',
|
48 |
|
|
'l': 'L',
|
49 |
|
|
'cn': 'CN',
|
50 |
|
|
'o': 'O',
|
51 |
|
|
'ou': 'OU',
|
52 |
|
|
'email_address': 'emailAddress'
|
53 |
|
|
}
|
54 |
|
|
self._c = c
|
55 |
|
|
self._st = st
|
56 |
|
|
self._l = l
|
57 |
|
|
self._cn = cn
|
58 |
|
|
self._o = o
|
59 |
|
|
self._ou = ou
|
60 |
|
|
self._email_address = email_address
|
61 |
|
|
|
62 |
|
|
@classmethod
|
63 |
|
|
def from_dict(cls, dikt) -> 'Subject':
|
64 |
|
|
"""Returns the dict as a model
|
65 |
|
|
|
66 |
|
|
:param dikt: A dict.
|
67 |
|
|
:type: dict
|
68 |
|
|
:return: The Subject of this Subject. # noqa: E501
|
69 |
|
|
:rtype: Subject
|
70 |
|
|
"""
|
71 |
|
|
return util.deserialize_model(dikt, cls)
|
72 |
|
|
|
73 |
|
|
@property
|
74 |
|
|
def c(self) -> str:
|
75 |
|
|
"""Gets the c of this Subject.
|
76 |
|
|
|
77 |
|
|
Country code # noqa: E501
|
78 |
|
|
|
79 |
|
|
:return: The c of this Subject.
|
80 |
|
|
:rtype: str
|
81 |
|
|
"""
|
82 |
|
|
return self._c
|
83 |
|
|
|
84 |
|
|
@c.setter
|
85 |
|
|
def c(self, c: str):
|
86 |
|
|
"""Sets the c of this Subject.
|
87 |
|
|
|
88 |
|
|
Country code # noqa: E501
|
89 |
|
|
|
90 |
|
|
:param c: The c of this Subject.
|
91 |
|
|
:type c: str
|
92 |
|
|
"""
|
93 |
|
|
|
94 |
|
|
self._c = c
|
95 |
|
|
|
96 |
|
|
@property
|
97 |
|
|
def st(self) -> str:
|
98 |
|
|
"""Gets the st of this Subject.
|
99 |
|
|
|
100 |
|
|
State/Province # noqa: E501
|
101 |
|
|
|
102 |
|
|
:return: The st of this Subject.
|
103 |
|
|
:rtype: str
|
104 |
|
|
"""
|
105 |
|
|
return self._st
|
106 |
|
|
|
107 |
|
|
@st.setter
|
108 |
|
|
def st(self, st: str):
|
109 |
|
|
"""Sets the st of this Subject.
|
110 |
|
|
|
111 |
|
|
State/Province # noqa: E501
|
112 |
|
|
|
113 |
|
|
:param st: The st of this Subject.
|
114 |
|
|
:type st: str
|
115 |
|
|
"""
|
116 |
|
|
|
117 |
|
|
self._st = st
|
118 |
|
|
|
119 |
|
|
@property
|
120 |
|
|
def l(self) -> str:
|
121 |
|
|
"""Gets the l of this Subject.
|
122 |
|
|
|
123 |
|
|
Locality # noqa: E501
|
124 |
|
|
|
125 |
|
|
:return: The l of this Subject.
|
126 |
|
|
:rtype: str
|
127 |
|
|
"""
|
128 |
|
|
return self._l
|
129 |
|
|
|
130 |
|
|
@l.setter
|
131 |
|
|
def l(self, l: str):
|
132 |
|
|
"""Sets the l of this Subject.
|
133 |
|
|
|
134 |
|
|
Locality # noqa: E501
|
135 |
|
|
|
136 |
|
|
:param l: The l of this Subject.
|
137 |
|
|
:type l: str
|
138 |
|
|
"""
|
139 |
|
|
|
140 |
|
|
self._l = l
|
141 |
|
|
|
142 |
|
|
@property
|
143 |
|
|
def cn(self) -> str:
|
144 |
|
|
"""Gets the cn of this Subject.
|
145 |
|
|
|
146 |
|
|
Common name # noqa: E501
|
147 |
|
|
|
148 |
|
|
:return: The cn of this Subject.
|
149 |
|
|
:rtype: str
|
150 |
|
|
"""
|
151 |
|
|
return self._cn
|
152 |
|
|
|
153 |
|
|
@cn.setter
|
154 |
|
|
def cn(self, cn: str):
|
155 |
|
|
"""Sets the cn of this Subject.
|
156 |
|
|
|
157 |
|
|
Common name # noqa: E501
|
158 |
|
|
|
159 |
|
|
:param cn: The cn of this Subject.
|
160 |
|
|
:type cn: str
|
161 |
|
|
"""
|
162 |
|
|
if cn is None:
|
163 |
|
|
raise ValueError("Invalid value for `cn`, must not be `None`") # noqa: E501
|
164 |
|
|
|
165 |
|
|
self._cn = cn
|
166 |
|
|
|
167 |
|
|
@property
|
168 |
|
|
def o(self) -> str:
|
169 |
|
|
"""Gets the o of this Subject.
|
170 |
|
|
|
171 |
|
|
Organization # noqa: E501
|
172 |
|
|
|
173 |
|
|
:return: The o of this Subject.
|
174 |
|
|
:rtype: str
|
175 |
|
|
"""
|
176 |
|
|
return self._o
|
177 |
|
|
|
178 |
|
|
@o.setter
|
179 |
|
|
def o(self, o: str):
|
180 |
|
|
"""Sets the o of this Subject.
|
181 |
|
|
|
182 |
|
|
Organization # noqa: E501
|
183 |
|
|
|
184 |
|
|
:param o: The o of this Subject.
|
185 |
|
|
:type o: str
|
186 |
|
|
"""
|
187 |
|
|
|
188 |
|
|
self._o = o
|
189 |
|
|
|
190 |
|
|
@property
|
191 |
|
|
def ou(self) -> str:
|
192 |
|
|
"""Gets the ou of this Subject.
|
193 |
|
|
|
194 |
|
|
Organization Unit # noqa: E501
|
195 |
|
|
|
196 |
|
|
:return: The ou of this Subject.
|
197 |
|
|
:rtype: str
|
198 |
|
|
"""
|
199 |
|
|
return self._ou
|
200 |
|
|
|
201 |
|
|
@ou.setter
|
202 |
|
|
def ou(self, ou: str):
|
203 |
|
|
"""Sets the ou of this Subject.
|
204 |
|
|
|
205 |
|
|
Organization Unit # noqa: E501
|
206 |
|
|
|
207 |
|
|
:param ou: The ou of this Subject.
|
208 |
|
|
:type ou: str
|
209 |
|
|
"""
|
210 |
|
|
|
211 |
|
|
self._ou = ou
|
212 |
|
|
|
213 |
|
|
@property
|
214 |
|
|
def email_address(self) -> str:
|
215 |
|
|
"""Gets the email_address of this Subject.
|
216 |
|
|
|
217 |
|
|
Email Address # noqa: E501
|
218 |
|
|
|
219 |
|
|
:return: The email_address of this Subject.
|
220 |
|
|
:rtype: str
|
221 |
|
|
"""
|
222 |
|
|
return self._email_address
|
223 |
|
|
|
224 |
|
|
@email_address.setter
|
225 |
|
|
def email_address(self, email_address: str):
|
226 |
|
|
"""Sets the email_address of this Subject.
|
227 |
|
|
|
228 |
|
|
Email Address # noqa: E501
|
229 |
|
|
|
230 |
|
|
:param email_address: The email_address of this Subject.
|
231 |
|
|
:type email_address: str
|
232 |
|
|
"""
|
233 |
|
|
|
234 |
|
|
self._email_address = email_address
|