huaweicloudsdkoctopus 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 (126) hide show
  1. huaweicloudsdkoctopus/__init__.py +0 -0
  2. huaweicloudsdkoctopus/v2/__init__.py +122 -0
  3. huaweicloudsdkoctopus/v2/model/__init__.py +119 -0
  4. huaweicloudsdkoctopus/v2/model/alg_image_create_srlz.py +350 -0
  5. huaweicloudsdkoctopus/v2/model/alg_image_list_srlz.py +266 -0
  6. huaweicloudsdkoctopus/v2/model/algorithm_create_srlz.py +399 -0
  7. huaweicloudsdkoctopus/v2/model/algorithm_list_srlz.py +266 -0
  8. huaweicloudsdkoctopus/v2/model/batch_config_abc_info_srlz.py +142 -0
  9. huaweicloudsdkoctopus/v2/model/batch_config_evaluation_info_srlz.py +142 -0
  10. huaweicloudsdkoctopus/v2/model/batch_config_image_info_srlz.py +198 -0
  11. huaweicloudsdkoctopus/v2/model/batch_config_msg_notify_srlz.py +115 -0
  12. huaweicloudsdkoctopus/v2/model/batch_config_scenario_srlz.py +173 -0
  13. huaweicloudsdkoctopus/v2/model/batch_config_srlz.py +806 -0
  14. huaweicloudsdkoctopus/v2/model/batch_create_request.py +198 -0
  15. huaweicloudsdkoctopus/v2/model/batch_srlz.py +604 -0
  16. huaweicloudsdkoctopus/v2/model/build_create_srlz.py +115 -0
  17. huaweicloudsdkoctopus/v2/model/build_update_srlz.py +143 -0
  18. huaweicloudsdkoctopus/v2/model/category_f62_enum.py +89 -0
  19. huaweicloudsdkoctopus/v2/model/compilation_create_srlz.py +255 -0
  20. huaweicloudsdkoctopus/v2/model/compilation_update_srlz.py +311 -0
  21. huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_request.py +111 -0
  22. huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_response.py +361 -0
  23. huaweicloudsdkoctopus/v2/model/create_sim_algorithms_request.py +111 -0
  24. huaweicloudsdkoctopus/v2/model/create_sim_algorithms_response.py +404 -0
  25. huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_request.py +111 -0
  26. huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_response.py +819 -0
  27. huaweicloudsdkoctopus/v2/model/create_sim_batches_request.py +111 -0
  28. huaweicloudsdkoctopus/v2/model/create_sim_batches_response.py +619 -0
  29. huaweicloudsdkoctopus/v2/model/create_sim_extensions_request.py +111 -0
  30. huaweicloudsdkoctopus/v2/model/create_sim_extensions_response.py +314 -0
  31. huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_request.py +111 -0
  32. huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_response.py +253 -0
  33. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_request.py +139 -0
  34. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_response.py +377 -0
  35. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_request.py +111 -0
  36. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_response.py +618 -0
  37. huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_request.py +114 -0
  38. huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_response.py +85 -0
  39. huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_request.py +114 -0
  40. huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_response.py +85 -0
  41. huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_request.py +114 -0
  42. huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_response.py +85 -0
  43. huaweicloudsdkoctopus/v2/model/delete_sim_batches_request.py +114 -0
  44. huaweicloudsdkoctopus/v2/model/delete_sim_batches_response.py +85 -0
  45. huaweicloudsdkoctopus/v2/model/delete_sim_extensions_request.py +114 -0
  46. huaweicloudsdkoctopus/v2/model/delete_sim_extensions_response.py +85 -0
  47. huaweicloudsdkoctopus/v2/model/extension_srlz.py +353 -0
  48. huaweicloudsdkoctopus/v2/model/extensions_create_srlz.py +306 -0
  49. huaweicloudsdkoctopus/v2/model/extensions_list_srlz.py +291 -0
  50. huaweicloudsdkoctopus/v2/model/family_enum.py +91 -0
  51. huaweicloudsdkoctopus/v2/model/file_create_req_srlz.py +142 -0
  52. huaweicloudsdkoctopus/v2/model/file_create_srlz.py +366 -0
  53. huaweicloudsdkoctopus/v2/model/file_nested_create_req_srlz.py +142 -0
  54. huaweicloudsdkoctopus/v2/model/file_nested_srlz.py +279 -0
  55. huaweicloudsdkoctopus/v2/model/file_retrieve_srlz.py +310 -0
  56. huaweicloudsdkoctopus/v2/model/label_brief_srlz.py +279 -0
  57. huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_request.py +339 -0
  58. huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_response.py +185 -0
  59. huaweicloudsdkoctopus/v2/model/list_sim_algorithms_request.py +281 -0
  60. huaweicloudsdkoctopus/v2/model/list_sim_algorithms_response.py +185 -0
  61. huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_request.py +625 -0
  62. huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_response.py +185 -0
  63. huaweicloudsdkoctopus/v2/model/list_sim_batches_request.py +426 -0
  64. huaweicloudsdkoctopus/v2/model/list_sim_batches_response.py +185 -0
  65. huaweicloudsdkoctopus/v2/model/list_sim_extensions_request.py +202 -0
  66. huaweicloudsdkoctopus/v2/model/list_sim_extensions_response.py +185 -0
  67. huaweicloudsdkoctopus/v2/model/list_sim_simulations_request.py +401 -0
  68. huaweicloudsdkoctopus/v2/model/list_sim_simulations_response.py +189 -0
  69. huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_request.py +547 -0
  70. huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_response.py +185 -0
  71. huaweicloudsdkoctopus/v2/model/map_create_req_srlz.py +162 -0
  72. huaweicloudsdkoctopus/v2/model/map_version_enum.py +91 -0
  73. huaweicloudsdkoctopus/v2/model/mutable_file_srlz.py +114 -0
  74. huaweicloudsdkoctopus/v2/model/patched_alg_image_update_srlz.py +302 -0
  75. huaweicloudsdkoctopus/v2/model/patched_algorithm_update_srlz.py +796 -0
  76. huaweicloudsdkoctopus/v2/model/patched_file_detail_srlz.py +144 -0
  77. huaweicloudsdkoctopus/v2/model/post_response.py +140 -0
  78. huaweicloudsdkoctopus/v2/model/post_response_field.py +236 -0
  79. huaweicloudsdkoctopus/v2/model/priority_enum.py +91 -0
  80. huaweicloudsdkoctopus/v2/model/record_mode_enum.py +88 -0
  81. huaweicloudsdkoctopus/v2/model/run_image_status_enum.py +91 -0
  82. huaweicloudsdkoctopus/v2/model/run_srlz.py +254 -0
  83. huaweicloudsdkoctopus/v2/model/scenario_create_req_srlz.py +439 -0
  84. huaweicloudsdkoctopus/v2/model/scenario_list_srlz.py +548 -0
  85. huaweicloudsdkoctopus/v2/model/scenario_status_enum.py +92 -0
  86. huaweicloudsdkoctopus/v2/model/scenario_version_enum.py +91 -0
  87. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_request.py +114 -0
  88. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_response.py +361 -0
  89. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_request.py +114 -0
  90. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_response.py +377 -0
  91. huaweicloudsdkoctopus/v2/model/show_sim_batch_config_request.py +114 -0
  92. huaweicloudsdkoctopus/v2/model/show_sim_batch_config_response.py +819 -0
  93. huaweicloudsdkoctopus/v2/model/show_sim_extension_request.py +110 -0
  94. huaweicloudsdkoctopus/v2/model/show_sim_extension_response.py +353 -0
  95. huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_request.py +142 -0
  96. huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_response.py +290 -0
  97. huaweicloudsdkoctopus/v2/model/simulation_eva_result_metric_srlz.py +260 -0
  98. huaweicloudsdkoctopus/v2/model/simulation_eva_result_srlz.py +231 -0
  99. huaweicloudsdkoctopus/v2/model/simulation_evaluation_metric_srlz.py +289 -0
  100. huaweicloudsdkoctopus/v2/model/simulation_evaluation_srlz.py +231 -0
  101. huaweicloudsdkoctopus/v2/model/simulation_file_path_srlz.py +347 -0
  102. huaweicloudsdkoctopus/v2/model/simulation_srlz.py +708 -0
  103. huaweicloudsdkoctopus/v2/model/status15e_enum.py +99 -0
  104. huaweicloudsdkoctopus/v2/model/status6a7_enum.py +106 -0
  105. huaweicloudsdkoctopus/v2/model/type87e_enum.py +88 -0
  106. huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_request.py +139 -0
  107. huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_response.py +303 -0
  108. huaweicloudsdkoctopus/v2/model/update_sim_algorithms_request.py +139 -0
  109. huaweicloudsdkoctopus/v2/model/update_sim_algorithms_response.py +431 -0
  110. huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_request.py +138 -0
  111. huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_response.py +85 -0
  112. huaweicloudsdkoctopus/v2/model/update_sim_extensions_request.py +139 -0
  113. huaweicloudsdkoctopus/v2/model/update_sim_extensions_response.py +356 -0
  114. huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_request.py +167 -0
  115. huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_response.py +435 -0
  116. huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_request.py +167 -0
  117. huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_response.py +435 -0
  118. huaweicloudsdkoctopus/v2/octopus_async_client.py +2262 -0
  119. huaweicloudsdkoctopus/v2/octopus_client.py +2259 -0
  120. huaweicloudsdkoctopus/v2/region/__init__.py +0 -0
  121. huaweicloudsdkoctopus/v2/region/octopus_region.py +31 -0
  122. huaweicloudsdkoctopus-3.1.160.dist-info/LICENSE +13 -0
  123. huaweicloudsdkoctopus-3.1.160.dist-info/METADATA +26 -0
  124. huaweicloudsdkoctopus-3.1.160.dist-info/RECORD +126 -0
  125. huaweicloudsdkoctopus-3.1.160.dist-info/WHEEL +5 -0
  126. huaweicloudsdkoctopus-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,366 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class FileCreateSrlz:
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
+ 'url': 'str',
21
+ 'sha256': 'str',
22
+ 'created_at': 'float',
23
+ 'updated_at': 'float',
24
+ 'post': 'PostResponse',
25
+ 'put_url': 'str',
26
+ 'get_url': 'str',
27
+ 'expire': 'int',
28
+ 'ready': 'bool',
29
+ 'filename': 'str'
30
+ }
31
+
32
+ attribute_map = {
33
+ 'url': 'url',
34
+ 'sha256': 'sha256',
35
+ 'created_at': 'created_at',
36
+ 'updated_at': 'updated_at',
37
+ 'post': 'post',
38
+ 'put_url': 'put_url',
39
+ 'get_url': 'get_url',
40
+ 'expire': 'expire',
41
+ 'ready': 'ready',
42
+ 'filename': 'filename'
43
+ }
44
+
45
+ def __init__(self, url=None, sha256=None, created_at=None, updated_at=None, post=None, put_url=None, get_url=None, expire=None, ready=None, filename=None):
46
+ r"""FileCreateSrlz
47
+
48
+ The model defined in huaweicloud sdk
49
+
50
+ :param url: 地址
51
+ :type url: str
52
+ :param sha256: 文件sha256值
53
+ :type sha256: str
54
+ :param created_at: 创建时间
55
+ :type created_at: float
56
+ :param updated_at: 更新时间
57
+ :type updated_at: float
58
+ :param post: POST地址
59
+ :type post: :class:`huaweicloudsdkoctopus.v2.PostResponse`
60
+ :param put_url: PUT地址
61
+ :type put_url: str
62
+ :param get_url: GET地址
63
+ :type get_url: str
64
+ :param expire: 默认失效时间为600秒.
65
+ :type expire: int
66
+ :param ready: 文件状态
67
+ :type ready: bool
68
+ :param filename: 文件名
69
+ :type filename: str
70
+ """
71
+
72
+
73
+
74
+ self._url = None
75
+ self._sha256 = None
76
+ self._created_at = None
77
+ self._updated_at = None
78
+ self._post = None
79
+ self._put_url = None
80
+ self._get_url = None
81
+ self._expire = None
82
+ self._ready = None
83
+ self._filename = None
84
+ self.discriminator = None
85
+
86
+ self.url = url
87
+ self.sha256 = sha256
88
+ self.created_at = created_at
89
+ self.updated_at = updated_at
90
+ self.post = post
91
+ self.put_url = put_url
92
+ self.get_url = get_url
93
+ self.expire = expire
94
+ self.ready = ready
95
+ self.filename = filename
96
+
97
+ @property
98
+ def url(self):
99
+ r"""Gets the url of this FileCreateSrlz.
100
+
101
+ 地址
102
+
103
+ :return: The url of this FileCreateSrlz.
104
+ :rtype: str
105
+ """
106
+ return self._url
107
+
108
+ @url.setter
109
+ def url(self, url):
110
+ r"""Sets the url of this FileCreateSrlz.
111
+
112
+ 地址
113
+
114
+ :param url: The url of this FileCreateSrlz.
115
+ :type url: str
116
+ """
117
+ self._url = url
118
+
119
+ @property
120
+ def sha256(self):
121
+ r"""Gets the sha256 of this FileCreateSrlz.
122
+
123
+ 文件sha256值
124
+
125
+ :return: The sha256 of this FileCreateSrlz.
126
+ :rtype: str
127
+ """
128
+ return self._sha256
129
+
130
+ @sha256.setter
131
+ def sha256(self, sha256):
132
+ r"""Sets the sha256 of this FileCreateSrlz.
133
+
134
+ 文件sha256值
135
+
136
+ :param sha256: The sha256 of this FileCreateSrlz.
137
+ :type sha256: str
138
+ """
139
+ self._sha256 = sha256
140
+
141
+ @property
142
+ def created_at(self):
143
+ r"""Gets the created_at of this FileCreateSrlz.
144
+
145
+ 创建时间
146
+
147
+ :return: The created_at of this FileCreateSrlz.
148
+ :rtype: float
149
+ """
150
+ return self._created_at
151
+
152
+ @created_at.setter
153
+ def created_at(self, created_at):
154
+ r"""Sets the created_at of this FileCreateSrlz.
155
+
156
+ 创建时间
157
+
158
+ :param created_at: The created_at of this FileCreateSrlz.
159
+ :type created_at: float
160
+ """
161
+ self._created_at = created_at
162
+
163
+ @property
164
+ def updated_at(self):
165
+ r"""Gets the updated_at of this FileCreateSrlz.
166
+
167
+ 更新时间
168
+
169
+ :return: The updated_at of this FileCreateSrlz.
170
+ :rtype: float
171
+ """
172
+ return self._updated_at
173
+
174
+ @updated_at.setter
175
+ def updated_at(self, updated_at):
176
+ r"""Sets the updated_at of this FileCreateSrlz.
177
+
178
+ 更新时间
179
+
180
+ :param updated_at: The updated_at of this FileCreateSrlz.
181
+ :type updated_at: float
182
+ """
183
+ self._updated_at = updated_at
184
+
185
+ @property
186
+ def post(self):
187
+ r"""Gets the post of this FileCreateSrlz.
188
+
189
+ POST地址
190
+
191
+ :return: The post of this FileCreateSrlz.
192
+ :rtype: :class:`huaweicloudsdkoctopus.v2.PostResponse`
193
+ """
194
+ return self._post
195
+
196
+ @post.setter
197
+ def post(self, post):
198
+ r"""Sets the post of this FileCreateSrlz.
199
+
200
+ POST地址
201
+
202
+ :param post: The post of this FileCreateSrlz.
203
+ :type post: :class:`huaweicloudsdkoctopus.v2.PostResponse`
204
+ """
205
+ self._post = post
206
+
207
+ @property
208
+ def put_url(self):
209
+ r"""Gets the put_url of this FileCreateSrlz.
210
+
211
+ PUT地址
212
+
213
+ :return: The put_url of this FileCreateSrlz.
214
+ :rtype: str
215
+ """
216
+ return self._put_url
217
+
218
+ @put_url.setter
219
+ def put_url(self, put_url):
220
+ r"""Sets the put_url of this FileCreateSrlz.
221
+
222
+ PUT地址
223
+
224
+ :param put_url: The put_url of this FileCreateSrlz.
225
+ :type put_url: str
226
+ """
227
+ self._put_url = put_url
228
+
229
+ @property
230
+ def get_url(self):
231
+ r"""Gets the get_url of this FileCreateSrlz.
232
+
233
+ GET地址
234
+
235
+ :return: The get_url of this FileCreateSrlz.
236
+ :rtype: str
237
+ """
238
+ return self._get_url
239
+
240
+ @get_url.setter
241
+ def get_url(self, get_url):
242
+ r"""Sets the get_url of this FileCreateSrlz.
243
+
244
+ GET地址
245
+
246
+ :param get_url: The get_url of this FileCreateSrlz.
247
+ :type get_url: str
248
+ """
249
+ self._get_url = get_url
250
+
251
+ @property
252
+ def expire(self):
253
+ r"""Gets the expire of this FileCreateSrlz.
254
+
255
+ 默认失效时间为600秒.
256
+
257
+ :return: The expire of this FileCreateSrlz.
258
+ :rtype: int
259
+ """
260
+ return self._expire
261
+
262
+ @expire.setter
263
+ def expire(self, expire):
264
+ r"""Sets the expire of this FileCreateSrlz.
265
+
266
+ 默认失效时间为600秒.
267
+
268
+ :param expire: The expire of this FileCreateSrlz.
269
+ :type expire: int
270
+ """
271
+ self._expire = expire
272
+
273
+ @property
274
+ def ready(self):
275
+ r"""Gets the ready of this FileCreateSrlz.
276
+
277
+ 文件状态
278
+
279
+ :return: The ready of this FileCreateSrlz.
280
+ :rtype: bool
281
+ """
282
+ return self._ready
283
+
284
+ @ready.setter
285
+ def ready(self, ready):
286
+ r"""Sets the ready of this FileCreateSrlz.
287
+
288
+ 文件状态
289
+
290
+ :param ready: The ready of this FileCreateSrlz.
291
+ :type ready: bool
292
+ """
293
+ self._ready = ready
294
+
295
+ @property
296
+ def filename(self):
297
+ r"""Gets the filename of this FileCreateSrlz.
298
+
299
+ 文件名
300
+
301
+ :return: The filename of this FileCreateSrlz.
302
+ :rtype: str
303
+ """
304
+ return self._filename
305
+
306
+ @filename.setter
307
+ def filename(self, filename):
308
+ r"""Sets the filename of this FileCreateSrlz.
309
+
310
+ 文件名
311
+
312
+ :param filename: The filename of this FileCreateSrlz.
313
+ :type filename: str
314
+ """
315
+ self._filename = filename
316
+
317
+ def to_dict(self):
318
+ """Returns the model properties as a dict"""
319
+ result = {}
320
+
321
+ for attr, _ in six.iteritems(self.openapi_types):
322
+ value = getattr(self, attr)
323
+ if isinstance(value, list):
324
+ result[attr] = list(map(
325
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
326
+ value
327
+ ))
328
+ elif hasattr(value, "to_dict"):
329
+ result[attr] = value.to_dict()
330
+ elif isinstance(value, dict):
331
+ result[attr] = dict(map(
332
+ lambda item: (item[0], item[1].to_dict())
333
+ if hasattr(item[1], "to_dict") else item,
334
+ value.items()
335
+ ))
336
+ else:
337
+ if attr in self.sensitive_list:
338
+ result[attr] = "****"
339
+ else:
340
+ result[attr] = value
341
+
342
+ return result
343
+
344
+ def to_str(self):
345
+ """Returns the string representation of the model"""
346
+ import simplejson as json
347
+ if six.PY2:
348
+ import sys
349
+ reload(sys)
350
+ sys.setdefaultencoding("utf-8")
351
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
352
+
353
+ def __repr__(self):
354
+ """For `print`"""
355
+ return self.to_str()
356
+
357
+ def __eq__(self, other):
358
+ """Returns true if both objects are equal"""
359
+ if not isinstance(other, FileCreateSrlz):
360
+ return False
361
+
362
+ return self.__dict__ == other.__dict__
363
+
364
+ def __ne__(self, other):
365
+ """Returns true if both objects are not equal"""
366
+ 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 FileNestedCreateReqSrlz:
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
+ 'sha256': 'str',
21
+ 'filename': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'sha256': 'sha256',
26
+ 'filename': 'filename'
27
+ }
28
+
29
+ def __init__(self, sha256=None, filename=None):
30
+ r"""FileNestedCreateReqSrlz
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param sha256: 文件sha256值
35
+ :type sha256: str
36
+ :param filename: 文件名
37
+ :type filename: str
38
+ """
39
+
40
+
41
+
42
+ self._sha256 = None
43
+ self._filename = None
44
+ self.discriminator = None
45
+
46
+ self.sha256 = sha256
47
+ self.filename = filename
48
+
49
+ @property
50
+ def sha256(self):
51
+ r"""Gets the sha256 of this FileNestedCreateReqSrlz.
52
+
53
+ 文件sha256值
54
+
55
+ :return: The sha256 of this FileNestedCreateReqSrlz.
56
+ :rtype: str
57
+ """
58
+ return self._sha256
59
+
60
+ @sha256.setter
61
+ def sha256(self, sha256):
62
+ r"""Sets the sha256 of this FileNestedCreateReqSrlz.
63
+
64
+ 文件sha256值
65
+
66
+ :param sha256: The sha256 of this FileNestedCreateReqSrlz.
67
+ :type sha256: str
68
+ """
69
+ self._sha256 = sha256
70
+
71
+ @property
72
+ def filename(self):
73
+ r"""Gets the filename of this FileNestedCreateReqSrlz.
74
+
75
+ 文件名
76
+
77
+ :return: The filename of this FileNestedCreateReqSrlz.
78
+ :rtype: str
79
+ """
80
+ return self._filename
81
+
82
+ @filename.setter
83
+ def filename(self, filename):
84
+ r"""Sets the filename of this FileNestedCreateReqSrlz.
85
+
86
+ 文件名
87
+
88
+ :param filename: The filename of this FileNestedCreateReqSrlz.
89
+ :type filename: str
90
+ """
91
+ self._filename = filename
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, FileNestedCreateReqSrlz):
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