1
|
# 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 PemResponse(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, success: bool=None, data: str=None): # noqa: E501
|
18
|
"""PemResponse - a model defined in Swagger
|
19
|
|
20
|
:param success: The success of this PemResponse. # noqa: E501
|
21
|
:type success: bool
|
22
|
:param data: The data of this PemResponse. # noqa: E501
|
23
|
:type data: str
|
24
|
"""
|
25
|
self.swagger_types = {
|
26
|
'success': bool,
|
27
|
'data': str
|
28
|
}
|
29
|
|
30
|
self.attribute_map = {
|
31
|
'success': 'success',
|
32
|
'data': 'data'
|
33
|
}
|
34
|
self._success = success
|
35
|
self._data = data
|
36
|
|
37
|
@classmethod
|
38
|
def from_dict(cls, dikt) -> 'PemResponse':
|
39
|
"""Returns the dict as a model
|
40
|
|
41
|
:param dikt: A dict.
|
42
|
:type: dict
|
43
|
:return: The PemResponse of this PemResponse. # noqa: E501
|
44
|
:rtype: PemResponse
|
45
|
"""
|
46
|
return util.deserialize_model(dikt, cls)
|
47
|
|
48
|
@property
|
49
|
def success(self) -> bool:
|
50
|
"""Gets the success of this PemResponse.
|
51
|
|
52
|
|
53
|
:return: The success of this PemResponse.
|
54
|
:rtype: bool
|
55
|
"""
|
56
|
return self._success
|
57
|
|
58
|
@success.setter
|
59
|
def success(self, success: bool):
|
60
|
"""Sets the success of this PemResponse.
|
61
|
|
62
|
|
63
|
:param success: The success of this PemResponse.
|
64
|
:type success: bool
|
65
|
"""
|
66
|
if success is None:
|
67
|
raise ValueError("Invalid value for `success`, must not be `None`") # noqa: E501
|
68
|
|
69
|
self._success = success
|
70
|
|
71
|
@property
|
72
|
def data(self) -> str:
|
73
|
"""Gets the data of this PemResponse.
|
74
|
|
75
|
Single PEM file or concatenation of multiple PEM formatted certificates # noqa: E501
|
76
|
|
77
|
:return: The data of this PemResponse.
|
78
|
:rtype: str
|
79
|
"""
|
80
|
return self._data
|
81
|
|
82
|
@data.setter
|
83
|
def data(self, data: str):
|
84
|
"""Sets the data of this PemResponse.
|
85
|
|
86
|
Single PEM file or concatenation of multiple PEM formatted certificates # noqa: E501
|
87
|
|
88
|
:param data: The data of this PemResponse.
|
89
|
:type data: str
|
90
|
"""
|
91
|
if data is None:
|
92
|
raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501
|
93
|
|
94
|
self._data = data
|