huaweicloudsdkcodeartsbuild 3.1.149__py2.py3-none-any.whl → 3.1.150__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkcodeartsbuild/v3/__init__.py +50 -0
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1120 -105
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1120 -105
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +50 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_params.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_params_body_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_record.py +981 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_record_build_record_type.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_record_parameters.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/constraints.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_request.py +228 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_official_template_request.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_official_template_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_official_template_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_request.py +373 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_request.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_response.py +228 -0
- huaweicloudsdkcodeartsbuild/v3/model/parameter.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/params.py +289 -0
- huaweicloudsdkcodeartsbuild/v3/model/recycling_job.py +347 -0
- huaweicloudsdkcodeartsbuild/v3/model/recycling_jobs_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result_image_templates.py +318 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_request.py +199 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result_chart.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_request.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_info_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_info_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_info_result.py +724 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_result.py +492 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_project_permission_result.py +260 -0
- huaweicloudsdkcodeartsbuild/v3/model/system_parameters_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/template_list.py +459 -0
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/RECORD +59 -9
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BuildRecordBuildRecordType:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'rerun': 'bool',
|
21
|
+
'trigger_type': 'str',
|
22
|
+
'record_type': 'str',
|
23
|
+
'is_rerun': 'bool'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'rerun': 'rerun',
|
28
|
+
'trigger_type': 'trigger_type',
|
29
|
+
'record_type': 'record_type',
|
30
|
+
'is_rerun': 'is_rerun'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, rerun=None, trigger_type=None, record_type=None, is_rerun=None):
|
34
|
+
r"""BuildRecordBuildRecordType
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param rerun: 是否rerun
|
39
|
+
:type rerun: bool
|
40
|
+
:param trigger_type: 触发类型
|
41
|
+
:type trigger_type: str
|
42
|
+
:param record_type: 记录类型
|
43
|
+
:type record_type: str
|
44
|
+
:param is_rerun: 是否返回
|
45
|
+
:type is_rerun: bool
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._rerun = None
|
51
|
+
self._trigger_type = None
|
52
|
+
self._record_type = None
|
53
|
+
self._is_rerun = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if rerun is not None:
|
57
|
+
self.rerun = rerun
|
58
|
+
if trigger_type is not None:
|
59
|
+
self.trigger_type = trigger_type
|
60
|
+
if record_type is not None:
|
61
|
+
self.record_type = record_type
|
62
|
+
if is_rerun is not None:
|
63
|
+
self.is_rerun = is_rerun
|
64
|
+
|
65
|
+
@property
|
66
|
+
def rerun(self):
|
67
|
+
r"""Gets the rerun of this BuildRecordBuildRecordType.
|
68
|
+
|
69
|
+
是否rerun
|
70
|
+
|
71
|
+
:return: The rerun of this BuildRecordBuildRecordType.
|
72
|
+
:rtype: bool
|
73
|
+
"""
|
74
|
+
return self._rerun
|
75
|
+
|
76
|
+
@rerun.setter
|
77
|
+
def rerun(self, rerun):
|
78
|
+
r"""Sets the rerun of this BuildRecordBuildRecordType.
|
79
|
+
|
80
|
+
是否rerun
|
81
|
+
|
82
|
+
:param rerun: The rerun of this BuildRecordBuildRecordType.
|
83
|
+
:type rerun: bool
|
84
|
+
"""
|
85
|
+
self._rerun = rerun
|
86
|
+
|
87
|
+
@property
|
88
|
+
def trigger_type(self):
|
89
|
+
r"""Gets the trigger_type of this BuildRecordBuildRecordType.
|
90
|
+
|
91
|
+
触发类型
|
92
|
+
|
93
|
+
:return: The trigger_type of this BuildRecordBuildRecordType.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._trigger_type
|
97
|
+
|
98
|
+
@trigger_type.setter
|
99
|
+
def trigger_type(self, trigger_type):
|
100
|
+
r"""Sets the trigger_type of this BuildRecordBuildRecordType.
|
101
|
+
|
102
|
+
触发类型
|
103
|
+
|
104
|
+
:param trigger_type: The trigger_type of this BuildRecordBuildRecordType.
|
105
|
+
:type trigger_type: str
|
106
|
+
"""
|
107
|
+
self._trigger_type = trigger_type
|
108
|
+
|
109
|
+
@property
|
110
|
+
def record_type(self):
|
111
|
+
r"""Gets the record_type of this BuildRecordBuildRecordType.
|
112
|
+
|
113
|
+
记录类型
|
114
|
+
|
115
|
+
:return: The record_type of this BuildRecordBuildRecordType.
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._record_type
|
119
|
+
|
120
|
+
@record_type.setter
|
121
|
+
def record_type(self, record_type):
|
122
|
+
r"""Sets the record_type of this BuildRecordBuildRecordType.
|
123
|
+
|
124
|
+
记录类型
|
125
|
+
|
126
|
+
:param record_type: The record_type of this BuildRecordBuildRecordType.
|
127
|
+
:type record_type: str
|
128
|
+
"""
|
129
|
+
self._record_type = record_type
|
130
|
+
|
131
|
+
@property
|
132
|
+
def is_rerun(self):
|
133
|
+
r"""Gets the is_rerun of this BuildRecordBuildRecordType.
|
134
|
+
|
135
|
+
是否返回
|
136
|
+
|
137
|
+
:return: The is_rerun of this BuildRecordBuildRecordType.
|
138
|
+
:rtype: bool
|
139
|
+
"""
|
140
|
+
return self._is_rerun
|
141
|
+
|
142
|
+
@is_rerun.setter
|
143
|
+
def is_rerun(self, is_rerun):
|
144
|
+
r"""Sets the is_rerun of this BuildRecordBuildRecordType.
|
145
|
+
|
146
|
+
是否返回
|
147
|
+
|
148
|
+
:param is_rerun: The is_rerun of this BuildRecordBuildRecordType.
|
149
|
+
:type is_rerun: bool
|
150
|
+
"""
|
151
|
+
self._is_rerun = is_rerun
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, BuildRecordBuildRecordType):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
return not self == other
|
@@ -0,0 +1,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BuildRecordParameters:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'name': 'str',
|
21
|
+
'secret': 'bool',
|
22
|
+
'value': 'str',
|
23
|
+
'type': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'name': 'name',
|
28
|
+
'secret': 'secret',
|
29
|
+
'value': 'value',
|
30
|
+
'type': 'type'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, name=None, secret=None, value=None, type=None):
|
34
|
+
r"""BuildRecordParameters
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param name: 参数名
|
39
|
+
:type name: str
|
40
|
+
:param secret: 是否为私密参数
|
41
|
+
:type secret: bool
|
42
|
+
:param value: 参数值
|
43
|
+
:type value: str
|
44
|
+
:param type: 类型
|
45
|
+
:type type: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._name = None
|
51
|
+
self._secret = None
|
52
|
+
self._value = None
|
53
|
+
self._type = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if name is not None:
|
57
|
+
self.name = name
|
58
|
+
if secret is not None:
|
59
|
+
self.secret = secret
|
60
|
+
if value is not None:
|
61
|
+
self.value = value
|
62
|
+
if type is not None:
|
63
|
+
self.type = type
|
64
|
+
|
65
|
+
@property
|
66
|
+
def name(self):
|
67
|
+
r"""Gets the name of this BuildRecordParameters.
|
68
|
+
|
69
|
+
参数名
|
70
|
+
|
71
|
+
:return: The name of this BuildRecordParameters.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._name
|
75
|
+
|
76
|
+
@name.setter
|
77
|
+
def name(self, name):
|
78
|
+
r"""Sets the name of this BuildRecordParameters.
|
79
|
+
|
80
|
+
参数名
|
81
|
+
|
82
|
+
:param name: The name of this BuildRecordParameters.
|
83
|
+
:type name: str
|
84
|
+
"""
|
85
|
+
self._name = name
|
86
|
+
|
87
|
+
@property
|
88
|
+
def secret(self):
|
89
|
+
r"""Gets the secret of this BuildRecordParameters.
|
90
|
+
|
91
|
+
是否为私密参数
|
92
|
+
|
93
|
+
:return: The secret of this BuildRecordParameters.
|
94
|
+
:rtype: bool
|
95
|
+
"""
|
96
|
+
return self._secret
|
97
|
+
|
98
|
+
@secret.setter
|
99
|
+
def secret(self, secret):
|
100
|
+
r"""Sets the secret of this BuildRecordParameters.
|
101
|
+
|
102
|
+
是否为私密参数
|
103
|
+
|
104
|
+
:param secret: The secret of this BuildRecordParameters.
|
105
|
+
:type secret: bool
|
106
|
+
"""
|
107
|
+
self._secret = secret
|
108
|
+
|
109
|
+
@property
|
110
|
+
def value(self):
|
111
|
+
r"""Gets the value of this BuildRecordParameters.
|
112
|
+
|
113
|
+
参数值
|
114
|
+
|
115
|
+
:return: The value of this BuildRecordParameters.
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._value
|
119
|
+
|
120
|
+
@value.setter
|
121
|
+
def value(self, value):
|
122
|
+
r"""Sets the value of this BuildRecordParameters.
|
123
|
+
|
124
|
+
参数值
|
125
|
+
|
126
|
+
:param value: The value of this BuildRecordParameters.
|
127
|
+
:type value: str
|
128
|
+
"""
|
129
|
+
self._value = value
|
130
|
+
|
131
|
+
@property
|
132
|
+
def type(self):
|
133
|
+
r"""Gets the type of this BuildRecordParameters.
|
134
|
+
|
135
|
+
类型
|
136
|
+
|
137
|
+
:return: The type of this BuildRecordParameters.
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._type
|
141
|
+
|
142
|
+
@type.setter
|
143
|
+
def type(self, type):
|
144
|
+
r"""Sets the type of this BuildRecordParameters.
|
145
|
+
|
146
|
+
类型
|
147
|
+
|
148
|
+
:param type: The type of this BuildRecordParameters.
|
149
|
+
:type type: str
|
150
|
+
"""
|
151
|
+
self._type = type
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, BuildRecordParameters):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
return not self == other
|
@@ -0,0 +1,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class Constraints:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'errormsg': 'str',
|
21
|
+
'type': 'str',
|
22
|
+
'value': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'errormsg': 'errormsg',
|
27
|
+
'type': 'type',
|
28
|
+
'value': 'value'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, errormsg=None, type=None, value=None):
|
32
|
+
r"""Constraints
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param errormsg: 错误信息
|
37
|
+
:type errormsg: str
|
38
|
+
:param type: 类型
|
39
|
+
:type type: str
|
40
|
+
:param value: 参考值
|
41
|
+
:type value: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._errormsg = None
|
47
|
+
self._type = None
|
48
|
+
self._value = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if errormsg is not None:
|
52
|
+
self.errormsg = errormsg
|
53
|
+
if type is not None:
|
54
|
+
self.type = type
|
55
|
+
if value is not None:
|
56
|
+
self.value = value
|
57
|
+
|
58
|
+
@property
|
59
|
+
def errormsg(self):
|
60
|
+
r"""Gets the errormsg of this Constraints.
|
61
|
+
|
62
|
+
错误信息
|
63
|
+
|
64
|
+
:return: The errormsg of this Constraints.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._errormsg
|
68
|
+
|
69
|
+
@errormsg.setter
|
70
|
+
def errormsg(self, errormsg):
|
71
|
+
r"""Sets the errormsg of this Constraints.
|
72
|
+
|
73
|
+
错误信息
|
74
|
+
|
75
|
+
:param errormsg: The errormsg of this Constraints.
|
76
|
+
:type errormsg: str
|
77
|
+
"""
|
78
|
+
self._errormsg = errormsg
|
79
|
+
|
80
|
+
@property
|
81
|
+
def type(self):
|
82
|
+
r"""Gets the type of this Constraints.
|
83
|
+
|
84
|
+
类型
|
85
|
+
|
86
|
+
:return: The type of this Constraints.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._type
|
90
|
+
|
91
|
+
@type.setter
|
92
|
+
def type(self, type):
|
93
|
+
r"""Sets the type of this Constraints.
|
94
|
+
|
95
|
+
类型
|
96
|
+
|
97
|
+
:param type: The type of this Constraints.
|
98
|
+
:type type: str
|
99
|
+
"""
|
100
|
+
self._type = type
|
101
|
+
|
102
|
+
@property
|
103
|
+
def value(self):
|
104
|
+
r"""Gets the value of this Constraints.
|
105
|
+
|
106
|
+
参考值
|
107
|
+
|
108
|
+
:return: The value of this Constraints.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._value
|
112
|
+
|
113
|
+
@value.setter
|
114
|
+
def value(self, value):
|
115
|
+
r"""Sets the value of this Constraints.
|
116
|
+
|
117
|
+
参考值
|
118
|
+
|
119
|
+
:param value: The value of this Constraints.
|
120
|
+
:type value: str
|
121
|
+
"""
|
122
|
+
self._value = value
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, Constraints):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
return not self == other
|