huaweicloudsdkdrs 3.1.75__py2.py3-none-any.whl → 3.1.77__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.
- huaweicloudsdkdrs/v3/__init__.py +1 -0
- huaweicloudsdkdrs/v3/model/__init__.py +1 -0
- huaweicloudsdkdrs/v3/model/customized_dns.py +170 -0
- huaweicloudsdkdrs/v3/model/test_end_point.py +28 -3
- huaweicloudsdkdrs/v5/__init__.py +30 -0
- huaweicloudsdkdrs/v5/drs_async_client.py +736 -94
- huaweicloudsdkdrs/v5/drs_client.py +736 -94
- huaweicloudsdkdrs/v5/model/__init__.py +30 -0
- huaweicloudsdkdrs/v5/model/action_req.py +3 -3
- huaweicloudsdkdrs/v5/model/base_endpoint.py +6 -6
- huaweicloudsdkdrs/v5/model/base_endpoint_config.py +32 -3
- huaweicloudsdkdrs/v5/model/batch_add_tag_req.py +114 -0
- huaweicloudsdkdrs/v5/model/batch_create_tags_request.py +196 -0
- huaweicloudsdkdrs/v5/model/batch_create_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/batch_delete_tag_req.py +114 -0
- huaweicloudsdkdrs/v5/model/batch_delete_tags_request.py +196 -0
- huaweicloudsdkdrs/v5/model/batch_delete_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/children_job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/count_instance_by_tags_request.py +168 -0
- huaweicloudsdkdrs/v5/model/count_instance_by_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/customized_dns.py +170 -0
- huaweicloudsdkdrs/v5/model/job_base_info.py +3 -3
- huaweicloudsdkdrs/v5/model/job_endpoint_info.py +31 -6
- huaweicloudsdkdrs/v5/model/job_link_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/list_instance_by_tags_request.py +226 -0
- huaweicloudsdkdrs/v5/model/list_instance_by_tags_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_instance_tags_request.py +171 -0
- huaweicloudsdkdrs/v5/model/list_instance_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/list_job_history_parameter.py +283 -0
- huaweicloudsdkdrs/v5/model/list_job_history_parameters_request.py +288 -0
- huaweicloudsdkdrs/v5/model/list_job_history_parameters_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_job_parameters_request.py +230 -0
- huaweicloudsdkdrs/v5/model/list_job_parameters_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_jobs_request.py +3 -3
- huaweicloudsdkdrs/v5/model/list_tags_request.py +143 -0
- huaweicloudsdkdrs/v5/model/list_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/modify_parameter_req.py +114 -0
- huaweicloudsdkdrs/v5/model/parameter_config.py +312 -0
- huaweicloudsdkdrs/v5/model/parameter_info.py +142 -0
- huaweicloudsdkdrs/v5/model/query_instance_by_tag_req.py +173 -0
- huaweicloudsdkdrs/v5/model/resource_instance.py +202 -0
- huaweicloudsdkdrs/v5/model/resource_tag_info.py +144 -0
- huaweicloudsdkdrs/v5/model/tag.py +142 -0
- huaweicloudsdkdrs/v5/model/tag_match.py +142 -0
- huaweicloudsdkdrs/v5/model/update_job_configurations_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_job_configurations_response.py +116 -0
- {huaweicloudsdkdrs-3.1.75.dist-info → huaweicloudsdkdrs-3.1.77.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.75.dist-info → huaweicloudsdkdrs-3.1.77.dist-info}/RECORD +52 -21
- {huaweicloudsdkdrs-3.1.75.dist-info → huaweicloudsdkdrs-3.1.77.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.75.dist-info → huaweicloudsdkdrs-3.1.77.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.75.dist-info → huaweicloudsdkdrs-3.1.77.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ModifyParameterReq:
|
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
|
+
'values': 'list[ParameterInfo]'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'values': 'values'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, values=None):
|
28
|
+
"""ModifyParameterReq
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param values: 参数值对象,基于默认参数模板初始化的参数值。 key:参数名称,如“applier_thread_num”,“read_task_num”。为空时不修改参数值。 value:参数值,如“6”,“20”。key不为空时value也不可为空。
|
33
|
+
:type values: list[:class:`huaweicloudsdkdrs.v5.ParameterInfo`]
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._values = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.values = values
|
42
|
+
|
43
|
+
@property
|
44
|
+
def values(self):
|
45
|
+
"""Gets the values of this ModifyParameterReq.
|
46
|
+
|
47
|
+
参数值对象,基于默认参数模板初始化的参数值。 key:参数名称,如“applier_thread_num”,“read_task_num”。为空时不修改参数值。 value:参数值,如“6”,“20”。key不为空时value也不可为空。
|
48
|
+
|
49
|
+
:return: The values of this ModifyParameterReq.
|
50
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v5.ParameterInfo`]
|
51
|
+
"""
|
52
|
+
return self._values
|
53
|
+
|
54
|
+
@values.setter
|
55
|
+
def values(self, values):
|
56
|
+
"""Sets the values of this ModifyParameterReq.
|
57
|
+
|
58
|
+
参数值对象,基于默认参数模板初始化的参数值。 key:参数名称,如“applier_thread_num”,“read_task_num”。为空时不修改参数值。 value:参数值,如“6”,“20”。key不为空时value也不可为空。
|
59
|
+
|
60
|
+
:param values: The values of this ModifyParameterReq.
|
61
|
+
:type values: list[:class:`huaweicloudsdkdrs.v5.ParameterInfo`]
|
62
|
+
"""
|
63
|
+
self._values = values
|
64
|
+
|
65
|
+
def to_dict(self):
|
66
|
+
"""Returns the model properties as a dict"""
|
67
|
+
result = {}
|
68
|
+
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
70
|
+
value = getattr(self, attr)
|
71
|
+
if isinstance(value, list):
|
72
|
+
result[attr] = list(map(
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
74
|
+
value
|
75
|
+
))
|
76
|
+
elif hasattr(value, "to_dict"):
|
77
|
+
result[attr] = value.to_dict()
|
78
|
+
elif isinstance(value, dict):
|
79
|
+
result[attr] = dict(map(
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
82
|
+
value.items()
|
83
|
+
))
|
84
|
+
else:
|
85
|
+
if attr in self.sensitive_list:
|
86
|
+
result[attr] = "****"
|
87
|
+
else:
|
88
|
+
result[attr] = value
|
89
|
+
|
90
|
+
return result
|
91
|
+
|
92
|
+
def to_str(self):
|
93
|
+
"""Returns the string representation of the model"""
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
"""For `print`"""
|
103
|
+
return self.to_str()
|
104
|
+
|
105
|
+
def __eq__(self, other):
|
106
|
+
"""Returns true if both objects are equal"""
|
107
|
+
if not isinstance(other, ModifyParameterReq):
|
108
|
+
return False
|
109
|
+
|
110
|
+
return self.__dict__ == other.__dict__
|
111
|
+
|
112
|
+
def __ne__(self, other):
|
113
|
+
"""Returns true if both objects are not equal"""
|
114
|
+
return not self == other
|
@@ -0,0 +1,312 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ParameterConfig:
|
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
|
+
'value': 'str',
|
22
|
+
'default_value': 'str',
|
23
|
+
'value_range': 'str',
|
24
|
+
'is_need_restart': 'bool',
|
25
|
+
'description': 'str',
|
26
|
+
'created_at': 'str',
|
27
|
+
'updated_at': 'str'
|
28
|
+
}
|
29
|
+
|
30
|
+
attribute_map = {
|
31
|
+
'name': 'name',
|
32
|
+
'value': 'value',
|
33
|
+
'default_value': 'default_value',
|
34
|
+
'value_range': 'value_range',
|
35
|
+
'is_need_restart': 'is_need_restart',
|
36
|
+
'description': 'description',
|
37
|
+
'created_at': 'created_at',
|
38
|
+
'updated_at': 'updated_at'
|
39
|
+
}
|
40
|
+
|
41
|
+
def __init__(self, name=None, value=None, default_value=None, value_range=None, is_need_restart=None, description=None, created_at=None, updated_at=None):
|
42
|
+
"""ParameterConfig
|
43
|
+
|
44
|
+
The model defined in huaweicloud sdk
|
45
|
+
|
46
|
+
:param name: 参数名称
|
47
|
+
:type name: str
|
48
|
+
:param value: 参数值
|
49
|
+
:type value: str
|
50
|
+
:param default_value: 参数默认值
|
51
|
+
:type default_value: str
|
52
|
+
:param value_range: 参数值范围,如Integer取值0-1、Boolean取值true|false等。
|
53
|
+
:type value_range: str
|
54
|
+
:param is_need_restart: 是否需要重启。默认为true, “false”表示否。“true”表示是。
|
55
|
+
:type is_need_restart: bool
|
56
|
+
:param description: 参数描述。
|
57
|
+
:type description: str
|
58
|
+
:param created_at: 创建时间,例如:2023-01-20T07:18:26Z
|
59
|
+
:type created_at: str
|
60
|
+
:param updated_at: 更新时间,例如:2023-03-01T09:42:02Z
|
61
|
+
:type updated_at: str
|
62
|
+
"""
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
self._name = None
|
67
|
+
self._value = None
|
68
|
+
self._default_value = None
|
69
|
+
self._value_range = None
|
70
|
+
self._is_need_restart = None
|
71
|
+
self._description = None
|
72
|
+
self._created_at = None
|
73
|
+
self._updated_at = None
|
74
|
+
self.discriminator = None
|
75
|
+
|
76
|
+
self.name = name
|
77
|
+
self.value = value
|
78
|
+
self.default_value = default_value
|
79
|
+
self.value_range = value_range
|
80
|
+
self.is_need_restart = is_need_restart
|
81
|
+
self.description = description
|
82
|
+
if created_at is not None:
|
83
|
+
self.created_at = created_at
|
84
|
+
if updated_at is not None:
|
85
|
+
self.updated_at = updated_at
|
86
|
+
|
87
|
+
@property
|
88
|
+
def name(self):
|
89
|
+
"""Gets the name of this ParameterConfig.
|
90
|
+
|
91
|
+
参数名称
|
92
|
+
|
93
|
+
:return: The name of this ParameterConfig.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._name
|
97
|
+
|
98
|
+
@name.setter
|
99
|
+
def name(self, name):
|
100
|
+
"""Sets the name of this ParameterConfig.
|
101
|
+
|
102
|
+
参数名称
|
103
|
+
|
104
|
+
:param name: The name of this ParameterConfig.
|
105
|
+
:type name: str
|
106
|
+
"""
|
107
|
+
self._name = name
|
108
|
+
|
109
|
+
@property
|
110
|
+
def value(self):
|
111
|
+
"""Gets the value of this ParameterConfig.
|
112
|
+
|
113
|
+
参数值
|
114
|
+
|
115
|
+
:return: The value of this ParameterConfig.
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._value
|
119
|
+
|
120
|
+
@value.setter
|
121
|
+
def value(self, value):
|
122
|
+
"""Sets the value of this ParameterConfig.
|
123
|
+
|
124
|
+
参数值
|
125
|
+
|
126
|
+
:param value: The value of this ParameterConfig.
|
127
|
+
:type value: str
|
128
|
+
"""
|
129
|
+
self._value = value
|
130
|
+
|
131
|
+
@property
|
132
|
+
def default_value(self):
|
133
|
+
"""Gets the default_value of this ParameterConfig.
|
134
|
+
|
135
|
+
参数默认值
|
136
|
+
|
137
|
+
:return: The default_value of this ParameterConfig.
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._default_value
|
141
|
+
|
142
|
+
@default_value.setter
|
143
|
+
def default_value(self, default_value):
|
144
|
+
"""Sets the default_value of this ParameterConfig.
|
145
|
+
|
146
|
+
参数默认值
|
147
|
+
|
148
|
+
:param default_value: The default_value of this ParameterConfig.
|
149
|
+
:type default_value: str
|
150
|
+
"""
|
151
|
+
self._default_value = default_value
|
152
|
+
|
153
|
+
@property
|
154
|
+
def value_range(self):
|
155
|
+
"""Gets the value_range of this ParameterConfig.
|
156
|
+
|
157
|
+
参数值范围,如Integer取值0-1、Boolean取值true|false等。
|
158
|
+
|
159
|
+
:return: The value_range of this ParameterConfig.
|
160
|
+
:rtype: str
|
161
|
+
"""
|
162
|
+
return self._value_range
|
163
|
+
|
164
|
+
@value_range.setter
|
165
|
+
def value_range(self, value_range):
|
166
|
+
"""Sets the value_range of this ParameterConfig.
|
167
|
+
|
168
|
+
参数值范围,如Integer取值0-1、Boolean取值true|false等。
|
169
|
+
|
170
|
+
:param value_range: The value_range of this ParameterConfig.
|
171
|
+
:type value_range: str
|
172
|
+
"""
|
173
|
+
self._value_range = value_range
|
174
|
+
|
175
|
+
@property
|
176
|
+
def is_need_restart(self):
|
177
|
+
"""Gets the is_need_restart of this ParameterConfig.
|
178
|
+
|
179
|
+
是否需要重启。默认为true, “false”表示否。“true”表示是。
|
180
|
+
|
181
|
+
:return: The is_need_restart of this ParameterConfig.
|
182
|
+
:rtype: bool
|
183
|
+
"""
|
184
|
+
return self._is_need_restart
|
185
|
+
|
186
|
+
@is_need_restart.setter
|
187
|
+
def is_need_restart(self, is_need_restart):
|
188
|
+
"""Sets the is_need_restart of this ParameterConfig.
|
189
|
+
|
190
|
+
是否需要重启。默认为true, “false”表示否。“true”表示是。
|
191
|
+
|
192
|
+
:param is_need_restart: The is_need_restart of this ParameterConfig.
|
193
|
+
:type is_need_restart: bool
|
194
|
+
"""
|
195
|
+
self._is_need_restart = is_need_restart
|
196
|
+
|
197
|
+
@property
|
198
|
+
def description(self):
|
199
|
+
"""Gets the description of this ParameterConfig.
|
200
|
+
|
201
|
+
参数描述。
|
202
|
+
|
203
|
+
:return: The description of this ParameterConfig.
|
204
|
+
:rtype: str
|
205
|
+
"""
|
206
|
+
return self._description
|
207
|
+
|
208
|
+
@description.setter
|
209
|
+
def description(self, description):
|
210
|
+
"""Sets the description of this ParameterConfig.
|
211
|
+
|
212
|
+
参数描述。
|
213
|
+
|
214
|
+
:param description: The description of this ParameterConfig.
|
215
|
+
:type description: str
|
216
|
+
"""
|
217
|
+
self._description = description
|
218
|
+
|
219
|
+
@property
|
220
|
+
def created_at(self):
|
221
|
+
"""Gets the created_at of this ParameterConfig.
|
222
|
+
|
223
|
+
创建时间,例如:2023-01-20T07:18:26Z
|
224
|
+
|
225
|
+
:return: The created_at of this ParameterConfig.
|
226
|
+
:rtype: str
|
227
|
+
"""
|
228
|
+
return self._created_at
|
229
|
+
|
230
|
+
@created_at.setter
|
231
|
+
def created_at(self, created_at):
|
232
|
+
"""Sets the created_at of this ParameterConfig.
|
233
|
+
|
234
|
+
创建时间,例如:2023-01-20T07:18:26Z
|
235
|
+
|
236
|
+
:param created_at: The created_at of this ParameterConfig.
|
237
|
+
:type created_at: str
|
238
|
+
"""
|
239
|
+
self._created_at = created_at
|
240
|
+
|
241
|
+
@property
|
242
|
+
def updated_at(self):
|
243
|
+
"""Gets the updated_at of this ParameterConfig.
|
244
|
+
|
245
|
+
更新时间,例如:2023-03-01T09:42:02Z
|
246
|
+
|
247
|
+
:return: The updated_at of this ParameterConfig.
|
248
|
+
:rtype: str
|
249
|
+
"""
|
250
|
+
return self._updated_at
|
251
|
+
|
252
|
+
@updated_at.setter
|
253
|
+
def updated_at(self, updated_at):
|
254
|
+
"""Sets the updated_at of this ParameterConfig.
|
255
|
+
|
256
|
+
更新时间,例如:2023-03-01T09:42:02Z
|
257
|
+
|
258
|
+
:param updated_at: The updated_at of this ParameterConfig.
|
259
|
+
:type updated_at: str
|
260
|
+
"""
|
261
|
+
self._updated_at = updated_at
|
262
|
+
|
263
|
+
def to_dict(self):
|
264
|
+
"""Returns the model properties as a dict"""
|
265
|
+
result = {}
|
266
|
+
|
267
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
268
|
+
value = getattr(self, attr)
|
269
|
+
if isinstance(value, list):
|
270
|
+
result[attr] = list(map(
|
271
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
272
|
+
value
|
273
|
+
))
|
274
|
+
elif hasattr(value, "to_dict"):
|
275
|
+
result[attr] = value.to_dict()
|
276
|
+
elif isinstance(value, dict):
|
277
|
+
result[attr] = dict(map(
|
278
|
+
lambda item: (item[0], item[1].to_dict())
|
279
|
+
if hasattr(item[1], "to_dict") else item,
|
280
|
+
value.items()
|
281
|
+
))
|
282
|
+
else:
|
283
|
+
if attr in self.sensitive_list:
|
284
|
+
result[attr] = "****"
|
285
|
+
else:
|
286
|
+
result[attr] = value
|
287
|
+
|
288
|
+
return result
|
289
|
+
|
290
|
+
def to_str(self):
|
291
|
+
"""Returns the string representation of the model"""
|
292
|
+
import simplejson as json
|
293
|
+
if six.PY2:
|
294
|
+
import sys
|
295
|
+
reload(sys)
|
296
|
+
sys.setdefaultencoding("utf-8")
|
297
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
298
|
+
|
299
|
+
def __repr__(self):
|
300
|
+
"""For `print`"""
|
301
|
+
return self.to_str()
|
302
|
+
|
303
|
+
def __eq__(self, other):
|
304
|
+
"""Returns true if both objects are equal"""
|
305
|
+
if not isinstance(other, ParameterConfig):
|
306
|
+
return False
|
307
|
+
|
308
|
+
return self.__dict__ == other.__dict__
|
309
|
+
|
310
|
+
def __ne__(self, other):
|
311
|
+
"""Returns true if both objects are not equal"""
|
312
|
+
return not self == other
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ParameterInfo:
|
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
|
+
'parameter_name': 'str',
|
21
|
+
'parameter_value': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'parameter_name': 'parameter_name',
|
26
|
+
'parameter_value': 'parameter_value'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, parameter_name=None, parameter_value=None):
|
30
|
+
"""ParameterInfo
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param parameter_name: 参数名称,如:“applier_thread_num”,“read_task_num”等
|
35
|
+
:type parameter_name: str
|
36
|
+
:param parameter_value: 参数名称对应的参数值,如:“20”,“false”
|
37
|
+
:type parameter_value: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._parameter_name = None
|
43
|
+
self._parameter_value = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.parameter_name = parameter_name
|
47
|
+
self.parameter_value = parameter_value
|
48
|
+
|
49
|
+
@property
|
50
|
+
def parameter_name(self):
|
51
|
+
"""Gets the parameter_name of this ParameterInfo.
|
52
|
+
|
53
|
+
参数名称,如:“applier_thread_num”,“read_task_num”等
|
54
|
+
|
55
|
+
:return: The parameter_name of this ParameterInfo.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._parameter_name
|
59
|
+
|
60
|
+
@parameter_name.setter
|
61
|
+
def parameter_name(self, parameter_name):
|
62
|
+
"""Sets the parameter_name of this ParameterInfo.
|
63
|
+
|
64
|
+
参数名称,如:“applier_thread_num”,“read_task_num”等
|
65
|
+
|
66
|
+
:param parameter_name: The parameter_name of this ParameterInfo.
|
67
|
+
:type parameter_name: str
|
68
|
+
"""
|
69
|
+
self._parameter_name = parameter_name
|
70
|
+
|
71
|
+
@property
|
72
|
+
def parameter_value(self):
|
73
|
+
"""Gets the parameter_value of this ParameterInfo.
|
74
|
+
|
75
|
+
参数名称对应的参数值,如:“20”,“false”
|
76
|
+
|
77
|
+
:return: The parameter_value of this ParameterInfo.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._parameter_value
|
81
|
+
|
82
|
+
@parameter_value.setter
|
83
|
+
def parameter_value(self, parameter_value):
|
84
|
+
"""Sets the parameter_value of this ParameterInfo.
|
85
|
+
|
86
|
+
参数名称对应的参数值,如:“20”,“false”
|
87
|
+
|
88
|
+
:param parameter_value: The parameter_value of this ParameterInfo.
|
89
|
+
:type parameter_value: str
|
90
|
+
"""
|
91
|
+
self._parameter_value = parameter_value
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, ParameterInfo):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|