huaweicloudsdkobs 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.
Files changed (72) hide show
  1. huaweicloudsdkobs/__init__.py +0 -0
  2. huaweicloudsdkobs/v1/__init__.py +66 -0
  3. huaweicloudsdkobs/v1/model/__init__.py +63 -0
  4. huaweicloudsdkobs/v1/model/access_control_list.py +113 -0
  5. huaweicloudsdkobs/v1/model/bucket.py +233 -0
  6. huaweicloudsdkobs/v1/model/buckets.py +117 -0
  7. huaweicloudsdkobs/v1/model/common_prefixes.py +113 -0
  8. huaweicloudsdkobs/v1/model/contents.py +287 -0
  9. huaweicloudsdkobs/v1/model/copy_object_request.py +839 -0
  10. huaweicloudsdkobs/v1/model/copy_object_response.py +443 -0
  11. huaweicloudsdkobs/v1/model/create_bucket_request.py +605 -0
  12. huaweicloudsdkobs/v1/model/create_bucket_request_body.py +117 -0
  13. huaweicloudsdkobs/v1/model/create_bucket_response.py +239 -0
  14. huaweicloudsdkobs/v1/model/delete_bucket_customdomain_request.py +173 -0
  15. huaweicloudsdkobs/v1/model/delete_bucket_customdomain_response.py +239 -0
  16. huaweicloudsdkobs/v1/model/delete_bucket_request.py +145 -0
  17. huaweicloudsdkobs/v1/model/delete_bucket_response.py +239 -0
  18. huaweicloudsdkobs/v1/model/delete_object.py +146 -0
  19. huaweicloudsdkobs/v1/model/delete_object_request.py +202 -0
  20. huaweicloudsdkobs/v1/model/delete_object_response.py +289 -0
  21. huaweicloudsdkobs/v1/model/delete_objects_request.py +226 -0
  22. huaweicloudsdkobs/v1/model/delete_objects_request_body.py +171 -0
  23. huaweicloudsdkobs/v1/model/delete_objects_response.py +318 -0
  24. huaweicloudsdkobs/v1/model/delete_result_deleted.py +204 -0
  25. huaweicloudsdkobs/v1/model/delete_result_error.py +175 -0
  26. huaweicloudsdkobs/v1/model/domains.py +173 -0
  27. huaweicloudsdkobs/v1/model/filter_object.py +113 -0
  28. huaweicloudsdkobs/v1/model/filter_rule.py +146 -0
  29. huaweicloudsdkobs/v1/model/function_stage_configuration.py +229 -0
  30. huaweicloudsdkobs/v1/model/get_bucket_acl_request.py +173 -0
  31. huaweicloudsdkobs/v1/model/get_bucket_acl_response.py +289 -0
  32. huaweicloudsdkobs/v1/model/get_bucket_customdomain_request.py +173 -0
  33. huaweicloudsdkobs/v1/model/get_bucket_customdomain_response.py +264 -0
  34. huaweicloudsdkobs/v1/model/get_bucket_metadata_request.py +203 -0
  35. huaweicloudsdkobs/v1/model/get_bucket_metadata_response.py +539 -0
  36. huaweicloudsdkobs/v1/model/get_bucket_notification_request.py +173 -0
  37. huaweicloudsdkobs/v1/model/get_bucket_notification_response.py +264 -0
  38. huaweicloudsdkobs/v1/model/get_object_metadata_request.py +405 -0
  39. huaweicloudsdkobs/v1/model/get_object_metadata_response.py +689 -0
  40. huaweicloudsdkobs/v1/model/get_object_request.py +666 -0
  41. huaweicloudsdkobs/v1/model/get_object_response.py +489 -0
  42. huaweicloudsdkobs/v1/model/grant.py +171 -0
  43. huaweicloudsdkobs/v1/model/grantee.py +146 -0
  44. huaweicloudsdkobs/v1/model/list_buckets_request.py +146 -0
  45. huaweicloudsdkobs/v1/model/list_buckets_response.py +314 -0
  46. huaweicloudsdkobs/v1/model/list_objects_request.py +348 -0
  47. huaweicloudsdkobs/v1/model/list_objects_response.py +546 -0
  48. huaweicloudsdkobs/v1/model/owner.py +117 -0
  49. huaweicloudsdkobs/v1/model/put_object_request.py +667 -0
  50. huaweicloudsdkobs/v1/model/put_object_response.py +389 -0
  51. huaweicloudsdkobs/v1/model/set_bucket_acl_request.py +227 -0
  52. huaweicloudsdkobs/v1/model/set_bucket_acl_request_body.py +138 -0
  53. huaweicloudsdkobs/v1/model/set_bucket_acl_response.py +239 -0
  54. huaweicloudsdkobs/v1/model/set_bucket_custom_domain_body.py +230 -0
  55. huaweicloudsdkobs/v1/model/set_bucket_customedomain_request.py +198 -0
  56. huaweicloudsdkobs/v1/model/set_bucket_customedomain_response.py +239 -0
  57. huaweicloudsdkobs/v1/model/set_bucket_notification_request.py +198 -0
  58. huaweicloudsdkobs/v1/model/set_bucket_notification_request_body.py +138 -0
  59. huaweicloudsdkobs/v1/model/set_bucket_notification_response.py +239 -0
  60. huaweicloudsdkobs/v1/model/topic_configuration.py +200 -0
  61. huaweicloudsdkobs/v1/model/topic_configuration_filter.py +113 -0
  62. huaweicloudsdkobs/v1/obs_async_client.py +1600 -0
  63. huaweicloudsdkobs/v1/obs_client.py +1597 -0
  64. huaweicloudsdkobs/v1/obs_credentials.py +69 -0
  65. huaweicloudsdkobs/v1/obs_signer.py +298 -0
  66. huaweicloudsdkobs/v1/region/__init__.py +0 -0
  67. huaweicloudsdkobs/v1/region/obs_region.py +88 -0
  68. huaweicloudsdkobs-3.1.160.dist-info/LICENSE +13 -0
  69. huaweicloudsdkobs-3.1.160.dist-info/METADATA +26 -0
  70. huaweicloudsdkobs-3.1.160.dist-info/RECORD +72 -0
  71. huaweicloudsdkobs-3.1.160.dist-info/WHEEL +5 -0
  72. huaweicloudsdkobs-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,546 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class ListObjectsResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ xml_name = "ListObjectsResponse"
19
+
20
+ sensitive_list = []
21
+
22
+ openapi_types = {
23
+ 'contents': 'list[Contents]',
24
+ 'common_prefixes': 'list[CommonPrefixes]',
25
+ 'delimiter': 'str',
26
+ 'encoding_type': 'str',
27
+ 'is_truncated': 'bool',
28
+ 'marker': 'str',
29
+ 'next_marker': 'str',
30
+ 'max_keys': 'str',
31
+ 'name': 'str',
32
+ 'prefix': 'str',
33
+ 'x_obs_id_2': 'str',
34
+ 'x_obs_request_id': 'str',
35
+ 'e_tag': 'str',
36
+ 'x_obs_bucket_type': 'str',
37
+ 'connection': 'str',
38
+ 'content_length': 'str',
39
+ 'date': 'str'
40
+ }
41
+
42
+ attribute_map = {
43
+ 'contents': 'Contents',
44
+ 'common_prefixes': 'CommonPrefixes',
45
+ 'delimiter': 'Delimiter',
46
+ 'encoding_type': 'EncodingType',
47
+ 'is_truncated': 'IsTruncated',
48
+ 'marker': 'Marker',
49
+ 'next_marker': 'NextMarker',
50
+ 'max_keys': 'MaxKeys',
51
+ 'name': 'Name',
52
+ 'prefix': 'Prefix',
53
+ 'x_obs_id_2': 'x-obs-id-2',
54
+ 'x_obs_request_id': 'x-obs-request-id',
55
+ 'e_tag': 'ETag',
56
+ 'x_obs_bucket_type': 'x-obs-bucket-type',
57
+ 'connection': 'Connection',
58
+ 'content_length': 'Content-Length',
59
+ 'date': 'Date'
60
+ }
61
+
62
+ def __init__(self, contents=None, common_prefixes=None, delimiter=None, encoding_type=None, is_truncated=None, marker=None, next_marker=None, max_keys=None, name=None, prefix=None, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, x_obs_bucket_type=None, connection=None, content_length=None, date=None):
63
+ r"""ListObjectsResponse
64
+
65
+ The model defined in huaweicloud sdk
66
+
67
+ :param contents:
68
+ :type contents: list[:class:`huaweicloudsdkobs.v1.Contents`]
69
+ :param common_prefixes:
70
+ :type common_prefixes: list[:class:`huaweicloudsdkobs.v1.CommonPrefixes`]
71
+ :param delimiter: The **delimiter** parameter specified in the request
72
+ :type delimiter: str
73
+ :param encoding_type: Encodes some elements in the response based on the specified type. If **encoding-type** is specified in the request, **Delimiter**, **Marker**, **Prefix** (including the **Prefix** in **CommonPrefixes**), **NextMarker**, and **Key** in the response will be encoded.
74
+ :type encoding_type: str
75
+ :param is_truncated: Determines whether the returned list of objects is truncated. **true**: Not all results are returned. **false**: All results have been returned.
76
+ :type is_truncated: bool
77
+ :param marker: Marker for the position from which objects in a bucket will be listed
78
+ :type marker: str
79
+ :param next_marker: A marker for the last returned object in the list. **NextMarker** is returned when not all the objects are listed. In subsequent requests, you can set **Marker** to the value of this parameter to list the remaining objects.
80
+ :type next_marker: str
81
+ :param max_keys: Maximum number of objects that can be listed
82
+ :type max_keys: str
83
+ :param name: Name of the requested bucket
84
+ :type name: str
85
+ :param prefix: Prefix of an object name. Only objects whose names have this prefix are listed.
86
+ :type prefix: str
87
+ :param x_obs_id_2:
88
+ :type x_obs_id_2: str
89
+ :param x_obs_request_id:
90
+ :type x_obs_request_id: str
91
+ :param e_tag:
92
+ :type e_tag: str
93
+ :param x_obs_bucket_type:
94
+ :type x_obs_bucket_type: str
95
+ :param connection:
96
+ :type connection: str
97
+ :param content_length:
98
+ :type content_length: str
99
+ :param date:
100
+ :type date: str
101
+ """
102
+
103
+ super(ListObjectsResponse, self).__init__()
104
+
105
+ self._contents = None
106
+ self._common_prefixes = None
107
+ self._delimiter = None
108
+ self._encoding_type = None
109
+ self._is_truncated = None
110
+ self._marker = None
111
+ self._next_marker = None
112
+ self._max_keys = None
113
+ self._name = None
114
+ self._prefix = None
115
+ self._x_obs_id_2 = None
116
+ self._x_obs_request_id = None
117
+ self._e_tag = None
118
+ self._x_obs_bucket_type = None
119
+ self._connection = None
120
+ self._content_length = None
121
+ self._date = None
122
+ self.discriminator = None
123
+
124
+ if contents is not None:
125
+ self.contents = contents
126
+ if common_prefixes is not None:
127
+ self.common_prefixes = common_prefixes
128
+ if delimiter is not None:
129
+ self.delimiter = delimiter
130
+ if encoding_type is not None:
131
+ self.encoding_type = encoding_type
132
+ if is_truncated is not None:
133
+ self.is_truncated = is_truncated
134
+ if marker is not None:
135
+ self.marker = marker
136
+ if next_marker is not None:
137
+ self.next_marker = next_marker
138
+ if max_keys is not None:
139
+ self.max_keys = max_keys
140
+ if name is not None:
141
+ self.name = name
142
+ if prefix is not None:
143
+ self.prefix = prefix
144
+ if x_obs_id_2 is not None:
145
+ self.x_obs_id_2 = x_obs_id_2
146
+ if x_obs_request_id is not None:
147
+ self.x_obs_request_id = x_obs_request_id
148
+ if e_tag is not None:
149
+ self.e_tag = e_tag
150
+ if x_obs_bucket_type is not None:
151
+ self.x_obs_bucket_type = x_obs_bucket_type
152
+ if connection is not None:
153
+ self.connection = connection
154
+ if content_length is not None:
155
+ self.content_length = content_length
156
+ if date is not None:
157
+ self.date = date
158
+
159
+ @property
160
+ def contents(self):
161
+ r"""Gets the contents of this ListObjectsResponse.
162
+
163
+ :return: The contents of this ListObjectsResponse.
164
+ :rtype: list[:class:`huaweicloudsdkobs.v1.Contents`]
165
+ """
166
+ return self._contents
167
+
168
+ @contents.setter
169
+ def contents(self, contents):
170
+ r"""Sets the contents of this ListObjectsResponse.
171
+
172
+ :param contents: The contents of this ListObjectsResponse.
173
+ :type contents: list[:class:`huaweicloudsdkobs.v1.Contents`]
174
+ """
175
+ self._contents = contents
176
+
177
+ @property
178
+ def common_prefixes(self):
179
+ r"""Gets the common_prefixes of this ListObjectsResponse.
180
+
181
+ :return: The common_prefixes of this ListObjectsResponse.
182
+ :rtype: list[:class:`huaweicloudsdkobs.v1.CommonPrefixes`]
183
+ """
184
+ return self._common_prefixes
185
+
186
+ @common_prefixes.setter
187
+ def common_prefixes(self, common_prefixes):
188
+ r"""Sets the common_prefixes of this ListObjectsResponse.
189
+
190
+ :param common_prefixes: The common_prefixes of this ListObjectsResponse.
191
+ :type common_prefixes: list[:class:`huaweicloudsdkobs.v1.CommonPrefixes`]
192
+ """
193
+ self._common_prefixes = common_prefixes
194
+
195
+ @property
196
+ def delimiter(self):
197
+ r"""Gets the delimiter of this ListObjectsResponse.
198
+
199
+ The **delimiter** parameter specified in the request
200
+
201
+ :return: The delimiter of this ListObjectsResponse.
202
+ :rtype: str
203
+ """
204
+ return self._delimiter
205
+
206
+ @delimiter.setter
207
+ def delimiter(self, delimiter):
208
+ r"""Sets the delimiter of this ListObjectsResponse.
209
+
210
+ The **delimiter** parameter specified in the request
211
+
212
+ :param delimiter: The delimiter of this ListObjectsResponse.
213
+ :type delimiter: str
214
+ """
215
+ self._delimiter = delimiter
216
+
217
+ @property
218
+ def encoding_type(self):
219
+ r"""Gets the encoding_type of this ListObjectsResponse.
220
+
221
+ Encodes some elements in the response based on the specified type. If **encoding-type** is specified in the request, **Delimiter**, **Marker**, **Prefix** (including the **Prefix** in **CommonPrefixes**), **NextMarker**, and **Key** in the response will be encoded.
222
+
223
+ :return: The encoding_type of this ListObjectsResponse.
224
+ :rtype: str
225
+ """
226
+ return self._encoding_type
227
+
228
+ @encoding_type.setter
229
+ def encoding_type(self, encoding_type):
230
+ r"""Sets the encoding_type of this ListObjectsResponse.
231
+
232
+ Encodes some elements in the response based on the specified type. If **encoding-type** is specified in the request, **Delimiter**, **Marker**, **Prefix** (including the **Prefix** in **CommonPrefixes**), **NextMarker**, and **Key** in the response will be encoded.
233
+
234
+ :param encoding_type: The encoding_type of this ListObjectsResponse.
235
+ :type encoding_type: str
236
+ """
237
+ self._encoding_type = encoding_type
238
+
239
+ @property
240
+ def is_truncated(self):
241
+ r"""Gets the is_truncated of this ListObjectsResponse.
242
+
243
+ Determines whether the returned list of objects is truncated. **true**: Not all results are returned. **false**: All results have been returned.
244
+
245
+ :return: The is_truncated of this ListObjectsResponse.
246
+ :rtype: bool
247
+ """
248
+ return self._is_truncated
249
+
250
+ @is_truncated.setter
251
+ def is_truncated(self, is_truncated):
252
+ r"""Sets the is_truncated of this ListObjectsResponse.
253
+
254
+ Determines whether the returned list of objects is truncated. **true**: Not all results are returned. **false**: All results have been returned.
255
+
256
+ :param is_truncated: The is_truncated of this ListObjectsResponse.
257
+ :type is_truncated: bool
258
+ """
259
+ self._is_truncated = is_truncated
260
+
261
+ @property
262
+ def marker(self):
263
+ r"""Gets the marker of this ListObjectsResponse.
264
+
265
+ Marker for the position from which objects in a bucket will be listed
266
+
267
+ :return: The marker of this ListObjectsResponse.
268
+ :rtype: str
269
+ """
270
+ return self._marker
271
+
272
+ @marker.setter
273
+ def marker(self, marker):
274
+ r"""Sets the marker of this ListObjectsResponse.
275
+
276
+ Marker for the position from which objects in a bucket will be listed
277
+
278
+ :param marker: The marker of this ListObjectsResponse.
279
+ :type marker: str
280
+ """
281
+ self._marker = marker
282
+
283
+ @property
284
+ def next_marker(self):
285
+ r"""Gets the next_marker of this ListObjectsResponse.
286
+
287
+ A marker for the last returned object in the list. **NextMarker** is returned when not all the objects are listed. In subsequent requests, you can set **Marker** to the value of this parameter to list the remaining objects.
288
+
289
+ :return: The next_marker of this ListObjectsResponse.
290
+ :rtype: str
291
+ """
292
+ return self._next_marker
293
+
294
+ @next_marker.setter
295
+ def next_marker(self, next_marker):
296
+ r"""Sets the next_marker of this ListObjectsResponse.
297
+
298
+ A marker for the last returned object in the list. **NextMarker** is returned when not all the objects are listed. In subsequent requests, you can set **Marker** to the value of this parameter to list the remaining objects.
299
+
300
+ :param next_marker: The next_marker of this ListObjectsResponse.
301
+ :type next_marker: str
302
+ """
303
+ self._next_marker = next_marker
304
+
305
+ @property
306
+ def max_keys(self):
307
+ r"""Gets the max_keys of this ListObjectsResponse.
308
+
309
+ Maximum number of objects that can be listed
310
+
311
+ :return: The max_keys of this ListObjectsResponse.
312
+ :rtype: str
313
+ """
314
+ return self._max_keys
315
+
316
+ @max_keys.setter
317
+ def max_keys(self, max_keys):
318
+ r"""Sets the max_keys of this ListObjectsResponse.
319
+
320
+ Maximum number of objects that can be listed
321
+
322
+ :param max_keys: The max_keys of this ListObjectsResponse.
323
+ :type max_keys: str
324
+ """
325
+ self._max_keys = max_keys
326
+
327
+ @property
328
+ def name(self):
329
+ r"""Gets the name of this ListObjectsResponse.
330
+
331
+ Name of the requested bucket
332
+
333
+ :return: The name of this ListObjectsResponse.
334
+ :rtype: str
335
+ """
336
+ return self._name
337
+
338
+ @name.setter
339
+ def name(self, name):
340
+ r"""Sets the name of this ListObjectsResponse.
341
+
342
+ Name of the requested bucket
343
+
344
+ :param name: The name of this ListObjectsResponse.
345
+ :type name: str
346
+ """
347
+ self._name = name
348
+
349
+ @property
350
+ def prefix(self):
351
+ r"""Gets the prefix of this ListObjectsResponse.
352
+
353
+ Prefix of an object name. Only objects whose names have this prefix are listed.
354
+
355
+ :return: The prefix of this ListObjectsResponse.
356
+ :rtype: str
357
+ """
358
+ return self._prefix
359
+
360
+ @prefix.setter
361
+ def prefix(self, prefix):
362
+ r"""Sets the prefix of this ListObjectsResponse.
363
+
364
+ Prefix of an object name. Only objects whose names have this prefix are listed.
365
+
366
+ :param prefix: The prefix of this ListObjectsResponse.
367
+ :type prefix: str
368
+ """
369
+ self._prefix = prefix
370
+
371
+ @property
372
+ def x_obs_id_2(self):
373
+ r"""Gets the x_obs_id_2 of this ListObjectsResponse.
374
+
375
+ :return: The x_obs_id_2 of this ListObjectsResponse.
376
+ :rtype: str
377
+ """
378
+ return self._x_obs_id_2
379
+
380
+ @x_obs_id_2.setter
381
+ def x_obs_id_2(self, x_obs_id_2):
382
+ r"""Sets the x_obs_id_2 of this ListObjectsResponse.
383
+
384
+ :param x_obs_id_2: The x_obs_id_2 of this ListObjectsResponse.
385
+ :type x_obs_id_2: str
386
+ """
387
+ self._x_obs_id_2 = x_obs_id_2
388
+
389
+ @property
390
+ def x_obs_request_id(self):
391
+ r"""Gets the x_obs_request_id of this ListObjectsResponse.
392
+
393
+ :return: The x_obs_request_id of this ListObjectsResponse.
394
+ :rtype: str
395
+ """
396
+ return self._x_obs_request_id
397
+
398
+ @x_obs_request_id.setter
399
+ def x_obs_request_id(self, x_obs_request_id):
400
+ r"""Sets the x_obs_request_id of this ListObjectsResponse.
401
+
402
+ :param x_obs_request_id: The x_obs_request_id of this ListObjectsResponse.
403
+ :type x_obs_request_id: str
404
+ """
405
+ self._x_obs_request_id = x_obs_request_id
406
+
407
+ @property
408
+ def e_tag(self):
409
+ r"""Gets the e_tag of this ListObjectsResponse.
410
+
411
+ :return: The e_tag of this ListObjectsResponse.
412
+ :rtype: str
413
+ """
414
+ return self._e_tag
415
+
416
+ @e_tag.setter
417
+ def e_tag(self, e_tag):
418
+ r"""Sets the e_tag of this ListObjectsResponse.
419
+
420
+ :param e_tag: The e_tag of this ListObjectsResponse.
421
+ :type e_tag: str
422
+ """
423
+ self._e_tag = e_tag
424
+
425
+ @property
426
+ def x_obs_bucket_type(self):
427
+ r"""Gets the x_obs_bucket_type of this ListObjectsResponse.
428
+
429
+ :return: The x_obs_bucket_type of this ListObjectsResponse.
430
+ :rtype: str
431
+ """
432
+ return self._x_obs_bucket_type
433
+
434
+ @x_obs_bucket_type.setter
435
+ def x_obs_bucket_type(self, x_obs_bucket_type):
436
+ r"""Sets the x_obs_bucket_type of this ListObjectsResponse.
437
+
438
+ :param x_obs_bucket_type: The x_obs_bucket_type of this ListObjectsResponse.
439
+ :type x_obs_bucket_type: str
440
+ """
441
+ self._x_obs_bucket_type = x_obs_bucket_type
442
+
443
+ @property
444
+ def connection(self):
445
+ r"""Gets the connection of this ListObjectsResponse.
446
+
447
+ :return: The connection of this ListObjectsResponse.
448
+ :rtype: str
449
+ """
450
+ return self._connection
451
+
452
+ @connection.setter
453
+ def connection(self, connection):
454
+ r"""Sets the connection of this ListObjectsResponse.
455
+
456
+ :param connection: The connection of this ListObjectsResponse.
457
+ :type connection: str
458
+ """
459
+ self._connection = connection
460
+
461
+ @property
462
+ def content_length(self):
463
+ r"""Gets the content_length of this ListObjectsResponse.
464
+
465
+ :return: The content_length of this ListObjectsResponse.
466
+ :rtype: str
467
+ """
468
+ return self._content_length
469
+
470
+ @content_length.setter
471
+ def content_length(self, content_length):
472
+ r"""Sets the content_length of this ListObjectsResponse.
473
+
474
+ :param content_length: The content_length of this ListObjectsResponse.
475
+ :type content_length: str
476
+ """
477
+ self._content_length = content_length
478
+
479
+ @property
480
+ def date(self):
481
+ r"""Gets the date of this ListObjectsResponse.
482
+
483
+ :return: The date of this ListObjectsResponse.
484
+ :rtype: str
485
+ """
486
+ return self._date
487
+
488
+ @date.setter
489
+ def date(self, date):
490
+ r"""Sets the date of this ListObjectsResponse.
491
+
492
+ :param date: The date of this ListObjectsResponse.
493
+ :type date: str
494
+ """
495
+ self._date = date
496
+
497
+ def to_dict(self):
498
+ """Returns the model properties as a dict"""
499
+ result = {}
500
+
501
+ for attr, _ in six.iteritems(self.openapi_types):
502
+ value = getattr(self, attr)
503
+ if isinstance(value, list):
504
+ result[attr] = list(map(
505
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
506
+ value
507
+ ))
508
+ elif hasattr(value, "to_dict"):
509
+ result[attr] = value.to_dict()
510
+ elif isinstance(value, dict):
511
+ result[attr] = dict(map(
512
+ lambda item: (item[0], item[1].to_dict())
513
+ if hasattr(item[1], "to_dict") else item,
514
+ value.items()
515
+ ))
516
+ else:
517
+ if attr in self.sensitive_list:
518
+ result[attr] = "****"
519
+ else:
520
+ result[attr] = value
521
+
522
+ return result
523
+
524
+ def to_str(self):
525
+ """Returns the string representation of the model"""
526
+ import simplejson as json
527
+ if six.PY2:
528
+ import sys
529
+ reload(sys)
530
+ sys.setdefaultencoding("utf-8")
531
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
532
+
533
+ def __repr__(self):
534
+ """For `print`"""
535
+ return self.to_str()
536
+
537
+ def __eq__(self, other):
538
+ """Returns true if both objects are equal"""
539
+ if not isinstance(other, ListObjectsResponse):
540
+ return False
541
+
542
+ return self.__dict__ == other.__dict__
543
+
544
+ def __ne__(self, other):
545
+ """Returns true if both objects are not equal"""
546
+ return not self == other
@@ -0,0 +1,117 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class Owner:
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
+ xml_name = "Owner"
18
+
19
+ sensitive_list = []
20
+
21
+ openapi_types = {
22
+ 'id': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'id': 'ID'
27
+ }
28
+
29
+ def __init__(self, id=None):
30
+ r"""Owner
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param id: Domain ID (account ID)
35
+ :type id: str
36
+ """
37
+
38
+
39
+
40
+ self._id = None
41
+ self.discriminator = None
42
+
43
+ if id is not None:
44
+ self.id = id
45
+
46
+ @property
47
+ def id(self):
48
+ r"""Gets the id of this Owner.
49
+
50
+ Domain ID (account ID)
51
+
52
+ :return: The id of this Owner.
53
+ :rtype: str
54
+ """
55
+ return self._id
56
+
57
+ @id.setter
58
+ def id(self, id):
59
+ r"""Sets the id of this Owner.
60
+
61
+ Domain ID (account ID)
62
+
63
+ :param id: The id of this Owner.
64
+ :type id: str
65
+ """
66
+ self._id = id
67
+
68
+ def to_dict(self):
69
+ """Returns the model properties as a dict"""
70
+ result = {}
71
+
72
+ for attr, _ in six.iteritems(self.openapi_types):
73
+ value = getattr(self, attr)
74
+ if isinstance(value, list):
75
+ result[attr] = list(map(
76
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
77
+ value
78
+ ))
79
+ elif hasattr(value, "to_dict"):
80
+ result[attr] = value.to_dict()
81
+ elif isinstance(value, dict):
82
+ result[attr] = dict(map(
83
+ lambda item: (item[0], item[1].to_dict())
84
+ if hasattr(item[1], "to_dict") else item,
85
+ value.items()
86
+ ))
87
+ else:
88
+ if attr in self.sensitive_list:
89
+ result[attr] = "****"
90
+ else:
91
+ result[attr] = value
92
+
93
+ return result
94
+
95
+ def to_str(self):
96
+ """Returns the string representation of the model"""
97
+ import simplejson as json
98
+ if six.PY2:
99
+ import sys
100
+ reload(sys)
101
+ sys.setdefaultencoding("utf-8")
102
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
103
+
104
+ def __repr__(self):
105
+ """For `print`"""
106
+ return self.to_str()
107
+
108
+ def __eq__(self, other):
109
+ """Returns true if both objects are equal"""
110
+ if not isinstance(other, Owner):
111
+ return False
112
+
113
+ return self.__dict__ == other.__dict__
114
+
115
+ def __ne__(self, other):
116
+ """Returns true if both objects are not equal"""
117
+ return not self == other