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,302 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class PatchedAlgImageUpdateSrlz:
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
+ 'id': 'int',
22
+ 'created_at': 'float',
23
+ 'updated_at': 'float',
24
+ 'command': 'str',
25
+ 'workspace': 'str',
26
+ 'keyword': 'str',
27
+ 'pkg_log_dir': 'str'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'url': 'url',
32
+ 'id': 'id',
33
+ 'created_at': 'created_at',
34
+ 'updated_at': 'updated_at',
35
+ 'command': 'command',
36
+ 'workspace': 'workspace',
37
+ 'keyword': 'keyword',
38
+ 'pkg_log_dir': 'pkg_log_dir'
39
+ }
40
+
41
+ def __init__(self, url=None, id=None, created_at=None, updated_at=None, command=None, workspace=None, keyword=None, pkg_log_dir=None):
42
+ r"""PatchedAlgImageUpdateSrlz
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param url:
47
+ :type url: str
48
+ :param id:
49
+ :type id: int
50
+ :param created_at:
51
+ :type created_at: float
52
+ :param updated_at:
53
+ :type updated_at: float
54
+ :param command: 运行命令
55
+ :type command: str
56
+ :param workspace: 运行目录,构建类型需要
57
+ :type workspace: str
58
+ :param keyword: 算法关键字
59
+ :type keyword: str
60
+ :param pkg_log_dir: 目录打包路径
61
+ :type pkg_log_dir: str
62
+ """
63
+
64
+
65
+
66
+ self._url = None
67
+ self._id = None
68
+ self._created_at = None
69
+ self._updated_at = None
70
+ self._command = None
71
+ self._workspace = None
72
+ self._keyword = None
73
+ self._pkg_log_dir = None
74
+ self.discriminator = None
75
+
76
+ if url is not None:
77
+ self.url = url
78
+ if id is not None:
79
+ self.id = id
80
+ if created_at is not None:
81
+ self.created_at = created_at
82
+ if updated_at is not None:
83
+ self.updated_at = updated_at
84
+ if command is not None:
85
+ self.command = command
86
+ if workspace is not None:
87
+ self.workspace = workspace
88
+ if keyword is not None:
89
+ self.keyword = keyword
90
+ if pkg_log_dir is not None:
91
+ self.pkg_log_dir = pkg_log_dir
92
+
93
+ @property
94
+ def url(self):
95
+ r"""Gets the url of this PatchedAlgImageUpdateSrlz.
96
+
97
+ :return: The url of this PatchedAlgImageUpdateSrlz.
98
+ :rtype: str
99
+ """
100
+ return self._url
101
+
102
+ @url.setter
103
+ def url(self, url):
104
+ r"""Sets the url of this PatchedAlgImageUpdateSrlz.
105
+
106
+ :param url: The url of this PatchedAlgImageUpdateSrlz.
107
+ :type url: str
108
+ """
109
+ self._url = url
110
+
111
+ @property
112
+ def id(self):
113
+ r"""Gets the id of this PatchedAlgImageUpdateSrlz.
114
+
115
+ :return: The id of this PatchedAlgImageUpdateSrlz.
116
+ :rtype: int
117
+ """
118
+ return self._id
119
+
120
+ @id.setter
121
+ def id(self, id):
122
+ r"""Sets the id of this PatchedAlgImageUpdateSrlz.
123
+
124
+ :param id: The id of this PatchedAlgImageUpdateSrlz.
125
+ :type id: int
126
+ """
127
+ self._id = id
128
+
129
+ @property
130
+ def created_at(self):
131
+ r"""Gets the created_at of this PatchedAlgImageUpdateSrlz.
132
+
133
+ :return: The created_at of this PatchedAlgImageUpdateSrlz.
134
+ :rtype: float
135
+ """
136
+ return self._created_at
137
+
138
+ @created_at.setter
139
+ def created_at(self, created_at):
140
+ r"""Sets the created_at of this PatchedAlgImageUpdateSrlz.
141
+
142
+ :param created_at: The created_at of this PatchedAlgImageUpdateSrlz.
143
+ :type created_at: float
144
+ """
145
+ self._created_at = created_at
146
+
147
+ @property
148
+ def updated_at(self):
149
+ r"""Gets the updated_at of this PatchedAlgImageUpdateSrlz.
150
+
151
+ :return: The updated_at of this PatchedAlgImageUpdateSrlz.
152
+ :rtype: float
153
+ """
154
+ return self._updated_at
155
+
156
+ @updated_at.setter
157
+ def updated_at(self, updated_at):
158
+ r"""Sets the updated_at of this PatchedAlgImageUpdateSrlz.
159
+
160
+ :param updated_at: The updated_at of this PatchedAlgImageUpdateSrlz.
161
+ :type updated_at: float
162
+ """
163
+ self._updated_at = updated_at
164
+
165
+ @property
166
+ def command(self):
167
+ r"""Gets the command of this PatchedAlgImageUpdateSrlz.
168
+
169
+ 运行命令
170
+
171
+ :return: The command of this PatchedAlgImageUpdateSrlz.
172
+ :rtype: str
173
+ """
174
+ return self._command
175
+
176
+ @command.setter
177
+ def command(self, command):
178
+ r"""Sets the command of this PatchedAlgImageUpdateSrlz.
179
+
180
+ 运行命令
181
+
182
+ :param command: The command of this PatchedAlgImageUpdateSrlz.
183
+ :type command: str
184
+ """
185
+ self._command = command
186
+
187
+ @property
188
+ def workspace(self):
189
+ r"""Gets the workspace of this PatchedAlgImageUpdateSrlz.
190
+
191
+ 运行目录,构建类型需要
192
+
193
+ :return: The workspace of this PatchedAlgImageUpdateSrlz.
194
+ :rtype: str
195
+ """
196
+ return self._workspace
197
+
198
+ @workspace.setter
199
+ def workspace(self, workspace):
200
+ r"""Sets the workspace of this PatchedAlgImageUpdateSrlz.
201
+
202
+ 运行目录,构建类型需要
203
+
204
+ :param workspace: The workspace of this PatchedAlgImageUpdateSrlz.
205
+ :type workspace: str
206
+ """
207
+ self._workspace = workspace
208
+
209
+ @property
210
+ def keyword(self):
211
+ r"""Gets the keyword of this PatchedAlgImageUpdateSrlz.
212
+
213
+ 算法关键字
214
+
215
+ :return: The keyword of this PatchedAlgImageUpdateSrlz.
216
+ :rtype: str
217
+ """
218
+ return self._keyword
219
+
220
+ @keyword.setter
221
+ def keyword(self, keyword):
222
+ r"""Sets the keyword of this PatchedAlgImageUpdateSrlz.
223
+
224
+ 算法关键字
225
+
226
+ :param keyword: The keyword of this PatchedAlgImageUpdateSrlz.
227
+ :type keyword: str
228
+ """
229
+ self._keyword = keyword
230
+
231
+ @property
232
+ def pkg_log_dir(self):
233
+ r"""Gets the pkg_log_dir of this PatchedAlgImageUpdateSrlz.
234
+
235
+ 目录打包路径
236
+
237
+ :return: The pkg_log_dir of this PatchedAlgImageUpdateSrlz.
238
+ :rtype: str
239
+ """
240
+ return self._pkg_log_dir
241
+
242
+ @pkg_log_dir.setter
243
+ def pkg_log_dir(self, pkg_log_dir):
244
+ r"""Sets the pkg_log_dir of this PatchedAlgImageUpdateSrlz.
245
+
246
+ 目录打包路径
247
+
248
+ :param pkg_log_dir: The pkg_log_dir of this PatchedAlgImageUpdateSrlz.
249
+ :type pkg_log_dir: str
250
+ """
251
+ self._pkg_log_dir = pkg_log_dir
252
+
253
+ def to_dict(self):
254
+ """Returns the model properties as a dict"""
255
+ result = {}
256
+
257
+ for attr, _ in six.iteritems(self.openapi_types):
258
+ value = getattr(self, attr)
259
+ if isinstance(value, list):
260
+ result[attr] = list(map(
261
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
262
+ value
263
+ ))
264
+ elif hasattr(value, "to_dict"):
265
+ result[attr] = value.to_dict()
266
+ elif isinstance(value, dict):
267
+ result[attr] = dict(map(
268
+ lambda item: (item[0], item[1].to_dict())
269
+ if hasattr(item[1], "to_dict") else item,
270
+ value.items()
271
+ ))
272
+ else:
273
+ if attr in self.sensitive_list:
274
+ result[attr] = "****"
275
+ else:
276
+ result[attr] = value
277
+
278
+ return result
279
+
280
+ def to_str(self):
281
+ """Returns the string representation of the model"""
282
+ import simplejson as json
283
+ if six.PY2:
284
+ import sys
285
+ reload(sys)
286
+ sys.setdefaultencoding("utf-8")
287
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
288
+
289
+ def __repr__(self):
290
+ """For `print`"""
291
+ return self.to_str()
292
+
293
+ def __eq__(self, other):
294
+ """Returns true if both objects are equal"""
295
+ if not isinstance(other, PatchedAlgImageUpdateSrlz):
296
+ return False
297
+
298
+ return self.__dict__ == other.__dict__
299
+
300
+ def __ne__(self, other):
301
+ """Returns true if both objects are not equal"""
302
+ return not self == other