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 CAUsage(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, ca: bool=None, authentication: bool=None, digital_signature: bool=None, ssl: bool=None): # noqa: E501
|
18 |
|
|
"""CAUsage - a model defined in Swagger
|
19 |
|
|
|
20 |
|
|
:param ca: The ca of this CAUsage. # noqa: E501
|
21 |
|
|
:type ca: bool
|
22 |
|
|
:param authentication: The authentication of this CAUsage. # noqa: E501
|
23 |
|
|
:type authentication: bool
|
24 |
|
|
:param digital_signature: The digital_signature of this CAUsage. # noqa: E501
|
25 |
|
|
:type digital_signature: bool
|
26 |
|
|
:param ssl: The ssl of this CAUsage. # noqa: E501
|
27 |
|
|
:type ssl: bool
|
28 |
|
|
"""
|
29 |
|
|
self.swagger_types = {
|
30 |
|
|
'ca': bool,
|
31 |
|
|
'authentication': bool,
|
32 |
|
|
'digital_signature': bool,
|
33 |
|
|
'ssl': bool
|
34 |
|
|
}
|
35 |
|
|
|
36 |
|
|
self.attribute_map = {
|
37 |
|
|
'ca': 'CA',
|
38 |
|
|
'authentication': 'authentication',
|
39 |
|
|
'digital_signature': 'digitalSignature',
|
40 |
|
|
'ssl': 'SSL'
|
41 |
|
|
}
|
42 |
|
|
self._ca = ca
|
43 |
|
|
self._authentication = authentication
|
44 |
|
|
self._digital_signature = digital_signature
|
45 |
|
|
self._ssl = ssl
|
46 |
|
|
|
47 |
|
|
@classmethod
|
48 |
|
|
def from_dict(cls, dikt) -> 'CAUsage':
|
49 |
|
|
"""Returns the dict as a model
|
50 |
|
|
|
51 |
|
|
:param dikt: A dict.
|
52 |
|
|
:type: dict
|
53 |
|
|
:return: The CAUsage of this CAUsage. # noqa: E501
|
54 |
|
|
:rtype: CAUsage
|
55 |
|
|
"""
|
56 |
|
|
return util.deserialize_model(dikt, cls)
|
57 |
|
|
|
58 |
|
|
@property
|
59 |
|
|
def ca(self) -> bool:
|
60 |
|
|
"""Gets the ca of this CAUsage.
|
61 |
|
|
|
62 |
|
|
|
63 |
|
|
:return: The ca of this CAUsage.
|
64 |
|
|
:rtype: bool
|
65 |
|
|
"""
|
66 |
|
|
return self._ca
|
67 |
|
|
|
68 |
|
|
@ca.setter
|
69 |
|
|
def ca(self, ca: bool):
|
70 |
|
|
"""Sets the ca of this CAUsage.
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
:param ca: The ca of this CAUsage.
|
74 |
|
|
:type ca: bool
|
75 |
|
|
"""
|
76 |
|
|
if ca is None:
|
77 |
|
|
raise ValueError("Invalid value for `ca`, must not be `None`") # noqa: E501
|
78 |
|
|
|
79 |
|
|
self._ca = ca
|
80 |
|
|
|
81 |
|
|
@property
|
82 |
|
|
def authentication(self) -> bool:
|
83 |
|
|
"""Gets the authentication of this CAUsage.
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
:return: The authentication of this CAUsage.
|
87 |
|
|
:rtype: bool
|
88 |
|
|
"""
|
89 |
|
|
return self._authentication
|
90 |
|
|
|
91 |
|
|
@authentication.setter
|
92 |
|
|
def authentication(self, authentication: bool):
|
93 |
|
|
"""Sets the authentication of this CAUsage.
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
:param authentication: The authentication of this CAUsage.
|
97 |
|
|
:type authentication: bool
|
98 |
|
|
"""
|
99 |
|
|
if authentication is None:
|
100 |
|
|
raise ValueError("Invalid value for `authentication`, must not be `None`") # noqa: E501
|
101 |
|
|
|
102 |
|
|
self._authentication = authentication
|
103 |
|
|
|
104 |
|
|
@property
|
105 |
|
|
def digital_signature(self) -> bool:
|
106 |
|
|
"""Gets the digital_signature of this CAUsage.
|
107 |
|
|
|
108 |
|
|
|
109 |
|
|
:return: The digital_signature of this CAUsage.
|
110 |
|
|
:rtype: bool
|
111 |
|
|
"""
|
112 |
|
|
return self._digital_signature
|
113 |
|
|
|
114 |
|
|
@digital_signature.setter
|
115 |
|
|
def digital_signature(self, digital_signature: bool):
|
116 |
|
|
"""Sets the digital_signature of this CAUsage.
|
117 |
|
|
|
118 |
|
|
|
119 |
|
|
:param digital_signature: The digital_signature of this CAUsage.
|
120 |
|
|
:type digital_signature: bool
|
121 |
|
|
"""
|
122 |
|
|
if digital_signature is None:
|
123 |
|
|
raise ValueError("Invalid value for `digital_signature`, must not be `None`") # noqa: E501
|
124 |
|
|
|
125 |
|
|
self._digital_signature = digital_signature
|
126 |
|
|
|
127 |
|
|
@property
|
128 |
|
|
def ssl(self) -> bool:
|
129 |
|
|
"""Gets the ssl of this CAUsage.
|
130 |
|
|
|
131 |
|
|
|
132 |
|
|
:return: The ssl of this CAUsage.
|
133 |
|
|
:rtype: bool
|
134 |
|
|
"""
|
135 |
|
|
return self._ssl
|
136 |
|
|
|
137 |
|
|
@ssl.setter
|
138 |
|
|
def ssl(self, ssl: bool):
|
139 |
|
|
"""Sets the ssl of this CAUsage.
|
140 |
|
|
|
141 |
|
|
|
142 |
|
|
:param ssl: The ssl of this CAUsage.
|
143 |
|
|
:type ssl: bool
|
144 |
|
|
"""
|
145 |
|
|
if ssl is None:
|
146 |
|
|
raise ValueError("Invalid value for `ssl`, must not be `None`") # noqa: E501
|
147 |
|
|
|
148 |
|
|
self._ssl = ssl
|