huaweicloudsdkmas 3.1.160__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.
- huaweicloudsdkmas/__init__.py +0 -0
- huaweicloudsdkmas/v1/__init__.py +15 -0
- huaweicloudsdkmas/v1/mas_async_client.py +157 -0
- huaweicloudsdkmas/v1/mas_client.py +154 -0
- huaweicloudsdkmas/v1/model/__init__.py +12 -0
- huaweicloudsdkmas/v1/model/base_multi_active_zone_spec.py +84 -0
- huaweicloudsdkmas/v1/model/data_sync_statistics.py +186 -0
- huaweicloudsdkmas/v1/model/datasource_statistics.py +136 -0
- huaweicloudsdkmas/v1/model/multi_active_zone_vo.py +386 -0
- huaweicloudsdkmas/v1/model/namespace_vo.py +436 -0
- huaweicloudsdkmas/v1/model/show_name_space_list_request.py +260 -0
- huaweicloudsdkmas/v1/model/show_name_space_list_response.py +112 -0
- huaweicloudsdkmas/v1/region/__init__.py +0 -0
- huaweicloudsdkmas/v1/region/mas_region.py +70 -0
- huaweicloudsdkmas-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkmas-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkmas-3.1.160.dist-info/RECORD +19 -0
- huaweicloudsdkmas-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkmas-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,436 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class NamespaceVo:
|
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
|
+
'created_date': 'datetime',
|
21
|
+
'data_sync_statistics': 'DataSyncStatistics',
|
22
|
+
'datasource_statistics': 'DatasourceStatistics',
|
23
|
+
'description': 'str',
|
24
|
+
'enterprise_project_id': 'str',
|
25
|
+
'id': 'str',
|
26
|
+
'is_used': 'bool',
|
27
|
+
'multi_active_zone': 'list[MultiActiveZoneVo]',
|
28
|
+
'name': 'str',
|
29
|
+
'project_id': 'str',
|
30
|
+
'tenant_id': 'str',
|
31
|
+
'type': 'int',
|
32
|
+
'updated_date': 'datetime',
|
33
|
+
'user_id': 'str'
|
34
|
+
}
|
35
|
+
|
36
|
+
attribute_map = {
|
37
|
+
'created_date': 'created_date',
|
38
|
+
'data_sync_statistics': 'data_sync_statistics',
|
39
|
+
'datasource_statistics': 'datasource_statistics',
|
40
|
+
'description': 'description',
|
41
|
+
'enterprise_project_id': 'enterprise_project_id',
|
42
|
+
'id': 'id',
|
43
|
+
'is_used': 'is_used',
|
44
|
+
'multi_active_zone': 'multi_active_zone',
|
45
|
+
'name': 'name',
|
46
|
+
'project_id': 'project_id',
|
47
|
+
'tenant_id': 'tenant_id',
|
48
|
+
'type': 'type',
|
49
|
+
'updated_date': 'updated_date',
|
50
|
+
'user_id': 'user_id'
|
51
|
+
}
|
52
|
+
|
53
|
+
def __init__(self, created_date=None, data_sync_statistics=None, datasource_statistics=None, description=None, enterprise_project_id=None, id=None, is_used=None, multi_active_zone=None, name=None, project_id=None, tenant_id=None, type=None, updated_date=None, user_id=None):
|
54
|
+
r"""NamespaceVo
|
55
|
+
|
56
|
+
The model defined in huaweicloud sdk
|
57
|
+
|
58
|
+
:param created_date:
|
59
|
+
:type created_date: datetime
|
60
|
+
:param data_sync_statistics:
|
61
|
+
:type data_sync_statistics: :class:`huaweicloudsdkmas.v1.DataSyncStatistics`
|
62
|
+
:param datasource_statistics:
|
63
|
+
:type datasource_statistics: :class:`huaweicloudsdkmas.v1.DatasourceStatistics`
|
64
|
+
:param description:
|
65
|
+
:type description: str
|
66
|
+
:param enterprise_project_id:
|
67
|
+
:type enterprise_project_id: str
|
68
|
+
:param id:
|
69
|
+
:type id: str
|
70
|
+
:param is_used:
|
71
|
+
:type is_used: bool
|
72
|
+
:param multi_active_zone:
|
73
|
+
:type multi_active_zone: list[:class:`huaweicloudsdkmas.v1.MultiActiveZoneVo`]
|
74
|
+
:param name:
|
75
|
+
:type name: str
|
76
|
+
:param project_id:
|
77
|
+
:type project_id: str
|
78
|
+
:param tenant_id:
|
79
|
+
:type tenant_id: str
|
80
|
+
:param type:
|
81
|
+
:type type: int
|
82
|
+
:param updated_date:
|
83
|
+
:type updated_date: datetime
|
84
|
+
:param user_id:
|
85
|
+
:type user_id: str
|
86
|
+
"""
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
self._created_date = None
|
91
|
+
self._data_sync_statistics = None
|
92
|
+
self._datasource_statistics = None
|
93
|
+
self._description = None
|
94
|
+
self._enterprise_project_id = None
|
95
|
+
self._id = None
|
96
|
+
self._is_used = None
|
97
|
+
self._multi_active_zone = None
|
98
|
+
self._name = None
|
99
|
+
self._project_id = None
|
100
|
+
self._tenant_id = None
|
101
|
+
self._type = None
|
102
|
+
self._updated_date = None
|
103
|
+
self._user_id = None
|
104
|
+
self.discriminator = None
|
105
|
+
|
106
|
+
if created_date is not None:
|
107
|
+
self.created_date = created_date
|
108
|
+
if data_sync_statistics is not None:
|
109
|
+
self.data_sync_statistics = data_sync_statistics
|
110
|
+
if datasource_statistics is not None:
|
111
|
+
self.datasource_statistics = datasource_statistics
|
112
|
+
if description is not None:
|
113
|
+
self.description = description
|
114
|
+
if enterprise_project_id is not None:
|
115
|
+
self.enterprise_project_id = enterprise_project_id
|
116
|
+
if id is not None:
|
117
|
+
self.id = id
|
118
|
+
if is_used is not None:
|
119
|
+
self.is_used = is_used
|
120
|
+
if multi_active_zone is not None:
|
121
|
+
self.multi_active_zone = multi_active_zone
|
122
|
+
if name is not None:
|
123
|
+
self.name = name
|
124
|
+
if project_id is not None:
|
125
|
+
self.project_id = project_id
|
126
|
+
if tenant_id is not None:
|
127
|
+
self.tenant_id = tenant_id
|
128
|
+
if type is not None:
|
129
|
+
self.type = type
|
130
|
+
if updated_date is not None:
|
131
|
+
self.updated_date = updated_date
|
132
|
+
if user_id is not None:
|
133
|
+
self.user_id = user_id
|
134
|
+
|
135
|
+
@property
|
136
|
+
def created_date(self):
|
137
|
+
r"""Gets the created_date of this NamespaceVo.
|
138
|
+
|
139
|
+
:return: The created_date of this NamespaceVo.
|
140
|
+
:rtype: datetime
|
141
|
+
"""
|
142
|
+
return self._created_date
|
143
|
+
|
144
|
+
@created_date.setter
|
145
|
+
def created_date(self, created_date):
|
146
|
+
r"""Sets the created_date of this NamespaceVo.
|
147
|
+
|
148
|
+
:param created_date: The created_date of this NamespaceVo.
|
149
|
+
:type created_date: datetime
|
150
|
+
"""
|
151
|
+
self._created_date = created_date
|
152
|
+
|
153
|
+
@property
|
154
|
+
def data_sync_statistics(self):
|
155
|
+
r"""Gets the data_sync_statistics of this NamespaceVo.
|
156
|
+
|
157
|
+
:return: The data_sync_statistics of this NamespaceVo.
|
158
|
+
:rtype: :class:`huaweicloudsdkmas.v1.DataSyncStatistics`
|
159
|
+
"""
|
160
|
+
return self._data_sync_statistics
|
161
|
+
|
162
|
+
@data_sync_statistics.setter
|
163
|
+
def data_sync_statistics(self, data_sync_statistics):
|
164
|
+
r"""Sets the data_sync_statistics of this NamespaceVo.
|
165
|
+
|
166
|
+
:param data_sync_statistics: The data_sync_statistics of this NamespaceVo.
|
167
|
+
:type data_sync_statistics: :class:`huaweicloudsdkmas.v1.DataSyncStatistics`
|
168
|
+
"""
|
169
|
+
self._data_sync_statistics = data_sync_statistics
|
170
|
+
|
171
|
+
@property
|
172
|
+
def datasource_statistics(self):
|
173
|
+
r"""Gets the datasource_statistics of this NamespaceVo.
|
174
|
+
|
175
|
+
:return: The datasource_statistics of this NamespaceVo.
|
176
|
+
:rtype: :class:`huaweicloudsdkmas.v1.DatasourceStatistics`
|
177
|
+
"""
|
178
|
+
return self._datasource_statistics
|
179
|
+
|
180
|
+
@datasource_statistics.setter
|
181
|
+
def datasource_statistics(self, datasource_statistics):
|
182
|
+
r"""Sets the datasource_statistics of this NamespaceVo.
|
183
|
+
|
184
|
+
:param datasource_statistics: The datasource_statistics of this NamespaceVo.
|
185
|
+
:type datasource_statistics: :class:`huaweicloudsdkmas.v1.DatasourceStatistics`
|
186
|
+
"""
|
187
|
+
self._datasource_statistics = datasource_statistics
|
188
|
+
|
189
|
+
@property
|
190
|
+
def description(self):
|
191
|
+
r"""Gets the description of this NamespaceVo.
|
192
|
+
|
193
|
+
:return: The description of this NamespaceVo.
|
194
|
+
:rtype: str
|
195
|
+
"""
|
196
|
+
return self._description
|
197
|
+
|
198
|
+
@description.setter
|
199
|
+
def description(self, description):
|
200
|
+
r"""Sets the description of this NamespaceVo.
|
201
|
+
|
202
|
+
:param description: The description of this NamespaceVo.
|
203
|
+
:type description: str
|
204
|
+
"""
|
205
|
+
self._description = description
|
206
|
+
|
207
|
+
@property
|
208
|
+
def enterprise_project_id(self):
|
209
|
+
r"""Gets the enterprise_project_id of this NamespaceVo.
|
210
|
+
|
211
|
+
:return: The enterprise_project_id of this NamespaceVo.
|
212
|
+
:rtype: str
|
213
|
+
"""
|
214
|
+
return self._enterprise_project_id
|
215
|
+
|
216
|
+
@enterprise_project_id.setter
|
217
|
+
def enterprise_project_id(self, enterprise_project_id):
|
218
|
+
r"""Sets the enterprise_project_id of this NamespaceVo.
|
219
|
+
|
220
|
+
:param enterprise_project_id: The enterprise_project_id of this NamespaceVo.
|
221
|
+
:type enterprise_project_id: str
|
222
|
+
"""
|
223
|
+
self._enterprise_project_id = enterprise_project_id
|
224
|
+
|
225
|
+
@property
|
226
|
+
def id(self):
|
227
|
+
r"""Gets the id of this NamespaceVo.
|
228
|
+
|
229
|
+
:return: The id of this NamespaceVo.
|
230
|
+
:rtype: str
|
231
|
+
"""
|
232
|
+
return self._id
|
233
|
+
|
234
|
+
@id.setter
|
235
|
+
def id(self, id):
|
236
|
+
r"""Sets the id of this NamespaceVo.
|
237
|
+
|
238
|
+
:param id: The id of this NamespaceVo.
|
239
|
+
:type id: str
|
240
|
+
"""
|
241
|
+
self._id = id
|
242
|
+
|
243
|
+
@property
|
244
|
+
def is_used(self):
|
245
|
+
r"""Gets the is_used of this NamespaceVo.
|
246
|
+
|
247
|
+
:return: The is_used of this NamespaceVo.
|
248
|
+
:rtype: bool
|
249
|
+
"""
|
250
|
+
return self._is_used
|
251
|
+
|
252
|
+
@is_used.setter
|
253
|
+
def is_used(self, is_used):
|
254
|
+
r"""Sets the is_used of this NamespaceVo.
|
255
|
+
|
256
|
+
:param is_used: The is_used of this NamespaceVo.
|
257
|
+
:type is_used: bool
|
258
|
+
"""
|
259
|
+
self._is_used = is_used
|
260
|
+
|
261
|
+
@property
|
262
|
+
def multi_active_zone(self):
|
263
|
+
r"""Gets the multi_active_zone of this NamespaceVo.
|
264
|
+
|
265
|
+
:return: The multi_active_zone of this NamespaceVo.
|
266
|
+
:rtype: list[:class:`huaweicloudsdkmas.v1.MultiActiveZoneVo`]
|
267
|
+
"""
|
268
|
+
return self._multi_active_zone
|
269
|
+
|
270
|
+
@multi_active_zone.setter
|
271
|
+
def multi_active_zone(self, multi_active_zone):
|
272
|
+
r"""Sets the multi_active_zone of this NamespaceVo.
|
273
|
+
|
274
|
+
:param multi_active_zone: The multi_active_zone of this NamespaceVo.
|
275
|
+
:type multi_active_zone: list[:class:`huaweicloudsdkmas.v1.MultiActiveZoneVo`]
|
276
|
+
"""
|
277
|
+
self._multi_active_zone = multi_active_zone
|
278
|
+
|
279
|
+
@property
|
280
|
+
def name(self):
|
281
|
+
r"""Gets the name of this NamespaceVo.
|
282
|
+
|
283
|
+
:return: The name of this NamespaceVo.
|
284
|
+
:rtype: str
|
285
|
+
"""
|
286
|
+
return self._name
|
287
|
+
|
288
|
+
@name.setter
|
289
|
+
def name(self, name):
|
290
|
+
r"""Sets the name of this NamespaceVo.
|
291
|
+
|
292
|
+
:param name: The name of this NamespaceVo.
|
293
|
+
:type name: str
|
294
|
+
"""
|
295
|
+
self._name = name
|
296
|
+
|
297
|
+
@property
|
298
|
+
def project_id(self):
|
299
|
+
r"""Gets the project_id of this NamespaceVo.
|
300
|
+
|
301
|
+
:return: The project_id of this NamespaceVo.
|
302
|
+
:rtype: str
|
303
|
+
"""
|
304
|
+
return self._project_id
|
305
|
+
|
306
|
+
@project_id.setter
|
307
|
+
def project_id(self, project_id):
|
308
|
+
r"""Sets the project_id of this NamespaceVo.
|
309
|
+
|
310
|
+
:param project_id: The project_id of this NamespaceVo.
|
311
|
+
:type project_id: str
|
312
|
+
"""
|
313
|
+
self._project_id = project_id
|
314
|
+
|
315
|
+
@property
|
316
|
+
def tenant_id(self):
|
317
|
+
r"""Gets the tenant_id of this NamespaceVo.
|
318
|
+
|
319
|
+
:return: The tenant_id of this NamespaceVo.
|
320
|
+
:rtype: str
|
321
|
+
"""
|
322
|
+
return self._tenant_id
|
323
|
+
|
324
|
+
@tenant_id.setter
|
325
|
+
def tenant_id(self, tenant_id):
|
326
|
+
r"""Sets the tenant_id of this NamespaceVo.
|
327
|
+
|
328
|
+
:param tenant_id: The tenant_id of this NamespaceVo.
|
329
|
+
:type tenant_id: str
|
330
|
+
"""
|
331
|
+
self._tenant_id = tenant_id
|
332
|
+
|
333
|
+
@property
|
334
|
+
def type(self):
|
335
|
+
r"""Gets the type of this NamespaceVo.
|
336
|
+
|
337
|
+
:return: The type of this NamespaceVo.
|
338
|
+
:rtype: int
|
339
|
+
"""
|
340
|
+
return self._type
|
341
|
+
|
342
|
+
@type.setter
|
343
|
+
def type(self, type):
|
344
|
+
r"""Sets the type of this NamespaceVo.
|
345
|
+
|
346
|
+
:param type: The type of this NamespaceVo.
|
347
|
+
:type type: int
|
348
|
+
"""
|
349
|
+
self._type = type
|
350
|
+
|
351
|
+
@property
|
352
|
+
def updated_date(self):
|
353
|
+
r"""Gets the updated_date of this NamespaceVo.
|
354
|
+
|
355
|
+
:return: The updated_date of this NamespaceVo.
|
356
|
+
:rtype: datetime
|
357
|
+
"""
|
358
|
+
return self._updated_date
|
359
|
+
|
360
|
+
@updated_date.setter
|
361
|
+
def updated_date(self, updated_date):
|
362
|
+
r"""Sets the updated_date of this NamespaceVo.
|
363
|
+
|
364
|
+
:param updated_date: The updated_date of this NamespaceVo.
|
365
|
+
:type updated_date: datetime
|
366
|
+
"""
|
367
|
+
self._updated_date = updated_date
|
368
|
+
|
369
|
+
@property
|
370
|
+
def user_id(self):
|
371
|
+
r"""Gets the user_id of this NamespaceVo.
|
372
|
+
|
373
|
+
:return: The user_id of this NamespaceVo.
|
374
|
+
:rtype: str
|
375
|
+
"""
|
376
|
+
return self._user_id
|
377
|
+
|
378
|
+
@user_id.setter
|
379
|
+
def user_id(self, user_id):
|
380
|
+
r"""Sets the user_id of this NamespaceVo.
|
381
|
+
|
382
|
+
:param user_id: The user_id of this NamespaceVo.
|
383
|
+
:type user_id: str
|
384
|
+
"""
|
385
|
+
self._user_id = user_id
|
386
|
+
|
387
|
+
def to_dict(self):
|
388
|
+
"""Returns the model properties as a dict"""
|
389
|
+
result = {}
|
390
|
+
|
391
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
392
|
+
value = getattr(self, attr)
|
393
|
+
if isinstance(value, list):
|
394
|
+
result[attr] = list(map(
|
395
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
396
|
+
value
|
397
|
+
))
|
398
|
+
elif hasattr(value, "to_dict"):
|
399
|
+
result[attr] = value.to_dict()
|
400
|
+
elif isinstance(value, dict):
|
401
|
+
result[attr] = dict(map(
|
402
|
+
lambda item: (item[0], item[1].to_dict())
|
403
|
+
if hasattr(item[1], "to_dict") else item,
|
404
|
+
value.items()
|
405
|
+
))
|
406
|
+
else:
|
407
|
+
if attr in self.sensitive_list:
|
408
|
+
result[attr] = "****"
|
409
|
+
else:
|
410
|
+
result[attr] = value
|
411
|
+
|
412
|
+
return result
|
413
|
+
|
414
|
+
def to_str(self):
|
415
|
+
"""Returns the string representation of the model"""
|
416
|
+
import simplejson as json
|
417
|
+
if six.PY2:
|
418
|
+
import sys
|
419
|
+
reload(sys)
|
420
|
+
sys.setdefaultencoding("utf-8")
|
421
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
422
|
+
|
423
|
+
def __repr__(self):
|
424
|
+
"""For `print`"""
|
425
|
+
return self.to_str()
|
426
|
+
|
427
|
+
def __eq__(self, other):
|
428
|
+
"""Returns true if both objects are equal"""
|
429
|
+
if not isinstance(other, NamespaceVo):
|
430
|
+
return False
|
431
|
+
|
432
|
+
return self.__dict__ == other.__dict__
|
433
|
+
|
434
|
+
def __ne__(self, other):
|
435
|
+
"""Returns true if both objects are not equal"""
|
436
|
+
return not self == other
|
@@ -0,0 +1,260 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowNameSpaceListRequest:
|
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
|
+
'offset': 'str',
|
21
|
+
'limit': 'str',
|
22
|
+
'name': 'str',
|
23
|
+
'type': 'str',
|
24
|
+
'is_used': 'str',
|
25
|
+
'enterprise_project_id': 'str'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'offset': 'offset',
|
30
|
+
'limit': 'limit',
|
31
|
+
'name': 'name',
|
32
|
+
'type': 'type',
|
33
|
+
'is_used': 'is_used',
|
34
|
+
'enterprise_project_id': 'enterprise_project_id'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, offset=None, limit=None, name=None, type=None, is_used=None, enterprise_project_id=None):
|
38
|
+
r"""ShowNameSpaceListRequest
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param offset: 偏移量
|
43
|
+
:type offset: str
|
44
|
+
:param limit: 每页显示的条目数量
|
45
|
+
:type limit: str
|
46
|
+
:param name: 命名空间名称
|
47
|
+
:type name: str
|
48
|
+
:param type: 多活类型,1:同城多活,2:异地多活
|
49
|
+
:type type: str
|
50
|
+
:param is_used: 是否已被使用 true :是 false :否
|
51
|
+
:type is_used: str
|
52
|
+
:param enterprise_project_id: 企业项目ID
|
53
|
+
:type enterprise_project_id: str
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._offset = None
|
59
|
+
self._limit = None
|
60
|
+
self._name = None
|
61
|
+
self._type = None
|
62
|
+
self._is_used = None
|
63
|
+
self._enterprise_project_id = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if offset is not None:
|
67
|
+
self.offset = offset
|
68
|
+
if limit is not None:
|
69
|
+
self.limit = limit
|
70
|
+
if name is not None:
|
71
|
+
self.name = name
|
72
|
+
if type is not None:
|
73
|
+
self.type = type
|
74
|
+
if is_used is not None:
|
75
|
+
self.is_used = is_used
|
76
|
+
if enterprise_project_id is not None:
|
77
|
+
self.enterprise_project_id = enterprise_project_id
|
78
|
+
|
79
|
+
@property
|
80
|
+
def offset(self):
|
81
|
+
r"""Gets the offset of this ShowNameSpaceListRequest.
|
82
|
+
|
83
|
+
偏移量
|
84
|
+
|
85
|
+
:return: The offset of this ShowNameSpaceListRequest.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._offset
|
89
|
+
|
90
|
+
@offset.setter
|
91
|
+
def offset(self, offset):
|
92
|
+
r"""Sets the offset of this ShowNameSpaceListRequest.
|
93
|
+
|
94
|
+
偏移量
|
95
|
+
|
96
|
+
:param offset: The offset of this ShowNameSpaceListRequest.
|
97
|
+
:type offset: str
|
98
|
+
"""
|
99
|
+
self._offset = offset
|
100
|
+
|
101
|
+
@property
|
102
|
+
def limit(self):
|
103
|
+
r"""Gets the limit of this ShowNameSpaceListRequest.
|
104
|
+
|
105
|
+
每页显示的条目数量
|
106
|
+
|
107
|
+
:return: The limit of this ShowNameSpaceListRequest.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._limit
|
111
|
+
|
112
|
+
@limit.setter
|
113
|
+
def limit(self, limit):
|
114
|
+
r"""Sets the limit of this ShowNameSpaceListRequest.
|
115
|
+
|
116
|
+
每页显示的条目数量
|
117
|
+
|
118
|
+
:param limit: The limit of this ShowNameSpaceListRequest.
|
119
|
+
:type limit: str
|
120
|
+
"""
|
121
|
+
self._limit = limit
|
122
|
+
|
123
|
+
@property
|
124
|
+
def name(self):
|
125
|
+
r"""Gets the name of this ShowNameSpaceListRequest.
|
126
|
+
|
127
|
+
命名空间名称
|
128
|
+
|
129
|
+
:return: The name of this ShowNameSpaceListRequest.
|
130
|
+
:rtype: str
|
131
|
+
"""
|
132
|
+
return self._name
|
133
|
+
|
134
|
+
@name.setter
|
135
|
+
def name(self, name):
|
136
|
+
r"""Sets the name of this ShowNameSpaceListRequest.
|
137
|
+
|
138
|
+
命名空间名称
|
139
|
+
|
140
|
+
:param name: The name of this ShowNameSpaceListRequest.
|
141
|
+
:type name: str
|
142
|
+
"""
|
143
|
+
self._name = name
|
144
|
+
|
145
|
+
@property
|
146
|
+
def type(self):
|
147
|
+
r"""Gets the type of this ShowNameSpaceListRequest.
|
148
|
+
|
149
|
+
多活类型,1:同城多活,2:异地多活
|
150
|
+
|
151
|
+
:return: The type of this ShowNameSpaceListRequest.
|
152
|
+
:rtype: str
|
153
|
+
"""
|
154
|
+
return self._type
|
155
|
+
|
156
|
+
@type.setter
|
157
|
+
def type(self, type):
|
158
|
+
r"""Sets the type of this ShowNameSpaceListRequest.
|
159
|
+
|
160
|
+
多活类型,1:同城多活,2:异地多活
|
161
|
+
|
162
|
+
:param type: The type of this ShowNameSpaceListRequest.
|
163
|
+
:type type: str
|
164
|
+
"""
|
165
|
+
self._type = type
|
166
|
+
|
167
|
+
@property
|
168
|
+
def is_used(self):
|
169
|
+
r"""Gets the is_used of this ShowNameSpaceListRequest.
|
170
|
+
|
171
|
+
是否已被使用 true :是 false :否
|
172
|
+
|
173
|
+
:return: The is_used of this ShowNameSpaceListRequest.
|
174
|
+
:rtype: str
|
175
|
+
"""
|
176
|
+
return self._is_used
|
177
|
+
|
178
|
+
@is_used.setter
|
179
|
+
def is_used(self, is_used):
|
180
|
+
r"""Sets the is_used of this ShowNameSpaceListRequest.
|
181
|
+
|
182
|
+
是否已被使用 true :是 false :否
|
183
|
+
|
184
|
+
:param is_used: The is_used of this ShowNameSpaceListRequest.
|
185
|
+
:type is_used: str
|
186
|
+
"""
|
187
|
+
self._is_used = is_used
|
188
|
+
|
189
|
+
@property
|
190
|
+
def enterprise_project_id(self):
|
191
|
+
r"""Gets the enterprise_project_id of this ShowNameSpaceListRequest.
|
192
|
+
|
193
|
+
企业项目ID
|
194
|
+
|
195
|
+
:return: The enterprise_project_id of this ShowNameSpaceListRequest.
|
196
|
+
:rtype: str
|
197
|
+
"""
|
198
|
+
return self._enterprise_project_id
|
199
|
+
|
200
|
+
@enterprise_project_id.setter
|
201
|
+
def enterprise_project_id(self, enterprise_project_id):
|
202
|
+
r"""Sets the enterprise_project_id of this ShowNameSpaceListRequest.
|
203
|
+
|
204
|
+
企业项目ID
|
205
|
+
|
206
|
+
:param enterprise_project_id: The enterprise_project_id of this ShowNameSpaceListRequest.
|
207
|
+
:type enterprise_project_id: str
|
208
|
+
"""
|
209
|
+
self._enterprise_project_id = enterprise_project_id
|
210
|
+
|
211
|
+
def to_dict(self):
|
212
|
+
"""Returns the model properties as a dict"""
|
213
|
+
result = {}
|
214
|
+
|
215
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
216
|
+
value = getattr(self, attr)
|
217
|
+
if isinstance(value, list):
|
218
|
+
result[attr] = list(map(
|
219
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
220
|
+
value
|
221
|
+
))
|
222
|
+
elif hasattr(value, "to_dict"):
|
223
|
+
result[attr] = value.to_dict()
|
224
|
+
elif isinstance(value, dict):
|
225
|
+
result[attr] = dict(map(
|
226
|
+
lambda item: (item[0], item[1].to_dict())
|
227
|
+
if hasattr(item[1], "to_dict") else item,
|
228
|
+
value.items()
|
229
|
+
))
|
230
|
+
else:
|
231
|
+
if attr in self.sensitive_list:
|
232
|
+
result[attr] = "****"
|
233
|
+
else:
|
234
|
+
result[attr] = value
|
235
|
+
|
236
|
+
return result
|
237
|
+
|
238
|
+
def to_str(self):
|
239
|
+
"""Returns the string representation of the model"""
|
240
|
+
import simplejson as json
|
241
|
+
if six.PY2:
|
242
|
+
import sys
|
243
|
+
reload(sys)
|
244
|
+
sys.setdefaultencoding("utf-8")
|
245
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
246
|
+
|
247
|
+
def __repr__(self):
|
248
|
+
"""For `print`"""
|
249
|
+
return self.to_str()
|
250
|
+
|
251
|
+
def __eq__(self, other):
|
252
|
+
"""Returns true if both objects are equal"""
|
253
|
+
if not isinstance(other, ShowNameSpaceListRequest):
|
254
|
+
return False
|
255
|
+
|
256
|
+
return self.__dict__ == other.__dict__
|
257
|
+
|
258
|
+
def __ne__(self, other):
|
259
|
+
"""Returns true if both objects are not equal"""
|
260
|
+
return not self == other
|