huaweicloudsdkoctopus 3.1.154__py2.py3-none-any.whl → 3.1.156__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.
Files changed (82) hide show
  1. huaweicloudsdkoctopus/v2/__init__.py +72 -0
  2. huaweicloudsdkoctopus/v2/model/__init__.py +72 -0
  3. huaweicloudsdkoctopus/v2/model/alg_image_create_srlz.py +350 -0
  4. huaweicloudsdkoctopus/v2/model/alg_image_list_srlz.py +266 -0
  5. huaweicloudsdkoctopus/v2/model/algorithm_create_srlz.py +399 -0
  6. huaweicloudsdkoctopus/v2/model/algorithm_list_srlz.py +266 -0
  7. huaweicloudsdkoctopus/v2/model/batch_config_abc_info_srlz.py +142 -0
  8. huaweicloudsdkoctopus/v2/model/batch_config_evaluation_info_srlz.py +142 -0
  9. huaweicloudsdkoctopus/v2/model/batch_config_image_info_srlz.py +198 -0
  10. huaweicloudsdkoctopus/v2/model/batch_config_msg_notify_srlz.py +115 -0
  11. huaweicloudsdkoctopus/v2/model/batch_config_scenario_srlz.py +173 -0
  12. huaweicloudsdkoctopus/v2/model/batch_config_srlz.py +806 -0
  13. huaweicloudsdkoctopus/v2/model/batch_srlz.py +604 -0
  14. huaweicloudsdkoctopus/v2/model/build_create_srlz.py +115 -0
  15. huaweicloudsdkoctopus/v2/model/build_update_srlz.py +143 -0
  16. huaweicloudsdkoctopus/v2/model/category_f62_enum.py +89 -0
  17. huaweicloudsdkoctopus/v2/model/compilation_create_srlz.py +255 -0
  18. huaweicloudsdkoctopus/v2/model/compilation_update_srlz.py +311 -0
  19. huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_request.py +111 -0
  20. huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_response.py +361 -0
  21. huaweicloudsdkoctopus/v2/model/create_sim_algorithms_request.py +111 -0
  22. huaweicloudsdkoctopus/v2/model/create_sim_algorithms_response.py +404 -0
  23. huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_request.py +111 -0
  24. huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_response.py +819 -0
  25. huaweicloudsdkoctopus/v2/model/create_sim_extensions_request.py +111 -0
  26. huaweicloudsdkoctopus/v2/model/create_sim_extensions_response.py +314 -0
  27. huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_request.py +114 -0
  28. huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_response.py +85 -0
  29. huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_request.py +114 -0
  30. huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_response.py +85 -0
  31. huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_request.py +114 -0
  32. huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_response.py +85 -0
  33. huaweicloudsdkoctopus/v2/model/delete_sim_batches_request.py +114 -0
  34. huaweicloudsdkoctopus/v2/model/delete_sim_batches_response.py +85 -0
  35. huaweicloudsdkoctopus/v2/model/delete_sim_extensions_request.py +114 -0
  36. huaweicloudsdkoctopus/v2/model/delete_sim_extensions_response.py +85 -0
  37. huaweicloudsdkoctopus/v2/model/extension_srlz.py +353 -0
  38. huaweicloudsdkoctopus/v2/model/extensions_create_srlz.py +306 -0
  39. huaweicloudsdkoctopus/v2/model/extensions_list_srlz.py +291 -0
  40. huaweicloudsdkoctopus/v2/model/file_nested_srlz.py +279 -0
  41. huaweicloudsdkoctopus/v2/model/file_retrieve_srlz.py +310 -0
  42. huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_request.py +339 -0
  43. huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_response.py +185 -0
  44. huaweicloudsdkoctopus/v2/model/list_sim_algorithms_request.py +281 -0
  45. huaweicloudsdkoctopus/v2/model/list_sim_algorithms_response.py +185 -0
  46. huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_request.py +625 -0
  47. huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_response.py +185 -0
  48. huaweicloudsdkoctopus/v2/model/list_sim_batches_request.py +426 -0
  49. huaweicloudsdkoctopus/v2/model/list_sim_batches_response.py +185 -0
  50. huaweicloudsdkoctopus/v2/model/list_sim_extensions_request.py +202 -0
  51. huaweicloudsdkoctopus/v2/model/list_sim_extensions_response.py +185 -0
  52. huaweicloudsdkoctopus/v2/model/patched_alg_image_update_srlz.py +302 -0
  53. huaweicloudsdkoctopus/v2/model/patched_algorithm_update_srlz.py +796 -0
  54. huaweicloudsdkoctopus/v2/model/record_mode_enum.py +88 -0
  55. huaweicloudsdkoctopus/v2/model/run_image_status_enum.py +91 -0
  56. huaweicloudsdkoctopus/v2/model/run_srlz.py +254 -0
  57. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_request.py +114 -0
  58. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_response.py +361 -0
  59. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_request.py +114 -0
  60. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_response.py +377 -0
  61. huaweicloudsdkoctopus/v2/model/show_sim_batch_config_request.py +114 -0
  62. huaweicloudsdkoctopus/v2/model/show_sim_batch_config_response.py +819 -0
  63. huaweicloudsdkoctopus/v2/model/show_sim_extension_request.py +110 -0
  64. huaweicloudsdkoctopus/v2/model/show_sim_extension_response.py +353 -0
  65. huaweicloudsdkoctopus/v2/model/status6a7_enum.py +106 -0
  66. huaweicloudsdkoctopus/v2/model/type87e_enum.py +88 -0
  67. huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_request.py +139 -0
  68. huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_response.py +303 -0
  69. huaweicloudsdkoctopus/v2/model/update_sim_algorithms_request.py +139 -0
  70. huaweicloudsdkoctopus/v2/model/update_sim_algorithms_response.py +431 -0
  71. huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_request.py +138 -0
  72. huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_response.py +85 -0
  73. huaweicloudsdkoctopus/v2/model/update_sim_extensions_request.py +139 -0
  74. huaweicloudsdkoctopus/v2/model/update_sim_extensions_response.py +356 -0
  75. huaweicloudsdkoctopus/v2/octopus_async_client.py +1679 -150
  76. huaweicloudsdkoctopus/v2/octopus_client.py +1679 -150
  77. {huaweicloudsdkoctopus-3.1.154.dist-info → huaweicloudsdkoctopus-3.1.156.dist-info}/METADATA +2 -2
  78. huaweicloudsdkoctopus-3.1.156.dist-info/RECORD +126 -0
  79. huaweicloudsdkoctopus-3.1.154.dist-info/RECORD +0 -54
  80. {huaweicloudsdkoctopus-3.1.154.dist-info → huaweicloudsdkoctopus-3.1.156.dist-info}/LICENSE +0 -0
  81. {huaweicloudsdkoctopus-3.1.154.dist-info → huaweicloudsdkoctopus-3.1.156.dist-info}/WHEEL +0 -0
  82. {huaweicloudsdkoctopus-3.1.154.dist-info → huaweicloudsdkoctopus-3.1.156.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,311 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CompilationUpdateSrlz:
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
+ 'git_url': 'str',
21
+ 'git_branch': 'str',
22
+ 'git_sha1': 'str',
23
+ 'compile_command': 'str',
24
+ 'compile_workspace': 'str',
25
+ 'artifact_paths': 'list[str]',
26
+ 'compile_image_status': 'RunImageStatusEnum',
27
+ 'public_key': 'str'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'git_url': 'git_url',
32
+ 'git_branch': 'git_branch',
33
+ 'git_sha1': 'git_sha1',
34
+ 'compile_command': 'compile_command',
35
+ 'compile_workspace': 'compile_workspace',
36
+ 'artifact_paths': 'artifact_paths',
37
+ 'compile_image_status': 'compile_image_status',
38
+ 'public_key': 'public_key'
39
+ }
40
+
41
+ def __init__(self, git_url=None, git_branch=None, git_sha1=None, compile_command=None, compile_workspace=None, artifact_paths=None, compile_image_status=None, public_key=None):
42
+ r"""CompilationUpdateSrlz
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param git_url: 代码仓库地址
47
+ :type git_url: str
48
+ :param git_branch: 代码分支
49
+ :type git_branch: str
50
+ :param git_sha1: commit id
51
+ :type git_sha1: str
52
+ :param compile_command: 编译命令
53
+ :type compile_command: str
54
+ :param compile_workspace: 编译目录,须在挂载路径下
55
+ :type compile_workspace: str
56
+ :param artifact_paths: 编译产物列表,须在挂载路径下
57
+ :type artifact_paths: list[str]
58
+ :param compile_image_status: 编译镜像状态 * `0` - Success * `100` - Init * `101` - Init Failed * `200` - To Push * `201` - Uploading
59
+ :type compile_image_status: :class:`huaweicloudsdkoctopus.v2.RunImageStatusEnum`
60
+ :param public_key: ssh-key公钥
61
+ :type public_key: str
62
+ """
63
+
64
+
65
+
66
+ self._git_url = None
67
+ self._git_branch = None
68
+ self._git_sha1 = None
69
+ self._compile_command = None
70
+ self._compile_workspace = None
71
+ self._artifact_paths = None
72
+ self._compile_image_status = None
73
+ self._public_key = None
74
+ self.discriminator = None
75
+
76
+ self.git_url = git_url
77
+ self.git_branch = git_branch
78
+ self.git_sha1 = git_sha1
79
+ self.compile_command = compile_command
80
+ if compile_workspace is not None:
81
+ self.compile_workspace = compile_workspace
82
+ self.artifact_paths = artifact_paths
83
+ self.compile_image_status = compile_image_status
84
+ self.public_key = public_key
85
+
86
+ @property
87
+ def git_url(self):
88
+ r"""Gets the git_url of this CompilationUpdateSrlz.
89
+
90
+ 代码仓库地址
91
+
92
+ :return: The git_url of this CompilationUpdateSrlz.
93
+ :rtype: str
94
+ """
95
+ return self._git_url
96
+
97
+ @git_url.setter
98
+ def git_url(self, git_url):
99
+ r"""Sets the git_url of this CompilationUpdateSrlz.
100
+
101
+ 代码仓库地址
102
+
103
+ :param git_url: The git_url of this CompilationUpdateSrlz.
104
+ :type git_url: str
105
+ """
106
+ self._git_url = git_url
107
+
108
+ @property
109
+ def git_branch(self):
110
+ r"""Gets the git_branch of this CompilationUpdateSrlz.
111
+
112
+ 代码分支
113
+
114
+ :return: The git_branch of this CompilationUpdateSrlz.
115
+ :rtype: str
116
+ """
117
+ return self._git_branch
118
+
119
+ @git_branch.setter
120
+ def git_branch(self, git_branch):
121
+ r"""Sets the git_branch of this CompilationUpdateSrlz.
122
+
123
+ 代码分支
124
+
125
+ :param git_branch: The git_branch of this CompilationUpdateSrlz.
126
+ :type git_branch: str
127
+ """
128
+ self._git_branch = git_branch
129
+
130
+ @property
131
+ def git_sha1(self):
132
+ r"""Gets the git_sha1 of this CompilationUpdateSrlz.
133
+
134
+ commit id
135
+
136
+ :return: The git_sha1 of this CompilationUpdateSrlz.
137
+ :rtype: str
138
+ """
139
+ return self._git_sha1
140
+
141
+ @git_sha1.setter
142
+ def git_sha1(self, git_sha1):
143
+ r"""Sets the git_sha1 of this CompilationUpdateSrlz.
144
+
145
+ commit id
146
+
147
+ :param git_sha1: The git_sha1 of this CompilationUpdateSrlz.
148
+ :type git_sha1: str
149
+ """
150
+ self._git_sha1 = git_sha1
151
+
152
+ @property
153
+ def compile_command(self):
154
+ r"""Gets the compile_command of this CompilationUpdateSrlz.
155
+
156
+ 编译命令
157
+
158
+ :return: The compile_command of this CompilationUpdateSrlz.
159
+ :rtype: str
160
+ """
161
+ return self._compile_command
162
+
163
+ @compile_command.setter
164
+ def compile_command(self, compile_command):
165
+ r"""Sets the compile_command of this CompilationUpdateSrlz.
166
+
167
+ 编译命令
168
+
169
+ :param compile_command: The compile_command of this CompilationUpdateSrlz.
170
+ :type compile_command: str
171
+ """
172
+ self._compile_command = compile_command
173
+
174
+ @property
175
+ def compile_workspace(self):
176
+ r"""Gets the compile_workspace of this CompilationUpdateSrlz.
177
+
178
+ 编译目录,须在挂载路径下
179
+
180
+ :return: The compile_workspace of this CompilationUpdateSrlz.
181
+ :rtype: str
182
+ """
183
+ return self._compile_workspace
184
+
185
+ @compile_workspace.setter
186
+ def compile_workspace(self, compile_workspace):
187
+ r"""Sets the compile_workspace of this CompilationUpdateSrlz.
188
+
189
+ 编译目录,须在挂载路径下
190
+
191
+ :param compile_workspace: The compile_workspace of this CompilationUpdateSrlz.
192
+ :type compile_workspace: str
193
+ """
194
+ self._compile_workspace = compile_workspace
195
+
196
+ @property
197
+ def artifact_paths(self):
198
+ r"""Gets the artifact_paths of this CompilationUpdateSrlz.
199
+
200
+ 编译产物列表,须在挂载路径下
201
+
202
+ :return: The artifact_paths of this CompilationUpdateSrlz.
203
+ :rtype: list[str]
204
+ """
205
+ return self._artifact_paths
206
+
207
+ @artifact_paths.setter
208
+ def artifact_paths(self, artifact_paths):
209
+ r"""Sets the artifact_paths of this CompilationUpdateSrlz.
210
+
211
+ 编译产物列表,须在挂载路径下
212
+
213
+ :param artifact_paths: The artifact_paths of this CompilationUpdateSrlz.
214
+ :type artifact_paths: list[str]
215
+ """
216
+ self._artifact_paths = artifact_paths
217
+
218
+ @property
219
+ def compile_image_status(self):
220
+ r"""Gets the compile_image_status of this CompilationUpdateSrlz.
221
+
222
+ 编译镜像状态 * `0` - Success * `100` - Init * `101` - Init Failed * `200` - To Push * `201` - Uploading
223
+
224
+ :return: The compile_image_status of this CompilationUpdateSrlz.
225
+ :rtype: :class:`huaweicloudsdkoctopus.v2.RunImageStatusEnum`
226
+ """
227
+ return self._compile_image_status
228
+
229
+ @compile_image_status.setter
230
+ def compile_image_status(self, compile_image_status):
231
+ r"""Sets the compile_image_status of this CompilationUpdateSrlz.
232
+
233
+ 编译镜像状态 * `0` - Success * `100` - Init * `101` - Init Failed * `200` - To Push * `201` - Uploading
234
+
235
+ :param compile_image_status: The compile_image_status of this CompilationUpdateSrlz.
236
+ :type compile_image_status: :class:`huaweicloudsdkoctopus.v2.RunImageStatusEnum`
237
+ """
238
+ self._compile_image_status = compile_image_status
239
+
240
+ @property
241
+ def public_key(self):
242
+ r"""Gets the public_key of this CompilationUpdateSrlz.
243
+
244
+ ssh-key公钥
245
+
246
+ :return: The public_key of this CompilationUpdateSrlz.
247
+ :rtype: str
248
+ """
249
+ return self._public_key
250
+
251
+ @public_key.setter
252
+ def public_key(self, public_key):
253
+ r"""Sets the public_key of this CompilationUpdateSrlz.
254
+
255
+ ssh-key公钥
256
+
257
+ :param public_key: The public_key of this CompilationUpdateSrlz.
258
+ :type public_key: str
259
+ """
260
+ self._public_key = public_key
261
+
262
+ def to_dict(self):
263
+ """Returns the model properties as a dict"""
264
+ result = {}
265
+
266
+ for attr, _ in six.iteritems(self.openapi_types):
267
+ value = getattr(self, attr)
268
+ if isinstance(value, list):
269
+ result[attr] = list(map(
270
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
271
+ value
272
+ ))
273
+ elif hasattr(value, "to_dict"):
274
+ result[attr] = value.to_dict()
275
+ elif isinstance(value, dict):
276
+ result[attr] = dict(map(
277
+ lambda item: (item[0], item[1].to_dict())
278
+ if hasattr(item[1], "to_dict") else item,
279
+ value.items()
280
+ ))
281
+ else:
282
+ if attr in self.sensitive_list:
283
+ result[attr] = "****"
284
+ else:
285
+ result[attr] = value
286
+
287
+ return result
288
+
289
+ def to_str(self):
290
+ """Returns the string representation of the model"""
291
+ import simplejson as json
292
+ if six.PY2:
293
+ import sys
294
+ reload(sys)
295
+ sys.setdefaultencoding("utf-8")
296
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
297
+
298
+ def __repr__(self):
299
+ """For `print`"""
300
+ return self.to_str()
301
+
302
+ def __eq__(self, other):
303
+ """Returns true if both objects are equal"""
304
+ if not isinstance(other, CompilationUpdateSrlz):
305
+ return False
306
+
307
+ return self.__dict__ == other.__dict__
308
+
309
+ def __ne__(self, other):
310
+ """Returns true if both objects are not equal"""
311
+ return not self == other
@@ -0,0 +1,111 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateSimAlgorithmImagesRequest:
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
+ 'body': 'AlgImageCreateSrlz'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, body=None):
28
+ r"""CreateSimAlgorithmImagesRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param body: Body of the CreateSimAlgorithmImagesRequest
33
+ :type body: :class:`huaweicloudsdkoctopus.v2.AlgImageCreateSrlz`
34
+ """
35
+
36
+
37
+
38
+ self._body = None
39
+ self.discriminator = None
40
+
41
+ if body is not None:
42
+ self.body = body
43
+
44
+ @property
45
+ def body(self):
46
+ r"""Gets the body of this CreateSimAlgorithmImagesRequest.
47
+
48
+ :return: The body of this CreateSimAlgorithmImagesRequest.
49
+ :rtype: :class:`huaweicloudsdkoctopus.v2.AlgImageCreateSrlz`
50
+ """
51
+ return self._body
52
+
53
+ @body.setter
54
+ def body(self, body):
55
+ r"""Sets the body of this CreateSimAlgorithmImagesRequest.
56
+
57
+ :param body: The body of this CreateSimAlgorithmImagesRequest.
58
+ :type body: :class:`huaweicloudsdkoctopus.v2.AlgImageCreateSrlz`
59
+ """
60
+ self._body = body
61
+
62
+ def to_dict(self):
63
+ """Returns the model properties as a dict"""
64
+ result = {}
65
+
66
+ for attr, _ in six.iteritems(self.openapi_types):
67
+ value = getattr(self, attr)
68
+ if isinstance(value, list):
69
+ result[attr] = list(map(
70
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
71
+ value
72
+ ))
73
+ elif hasattr(value, "to_dict"):
74
+ result[attr] = value.to_dict()
75
+ elif isinstance(value, dict):
76
+ result[attr] = dict(map(
77
+ lambda item: (item[0], item[1].to_dict())
78
+ if hasattr(item[1], "to_dict") else item,
79
+ value.items()
80
+ ))
81
+ else:
82
+ if attr in self.sensitive_list:
83
+ result[attr] = "****"
84
+ else:
85
+ result[attr] = value
86
+
87
+ return result
88
+
89
+ def to_str(self):
90
+ """Returns the string representation of the model"""
91
+ import simplejson as json
92
+ if six.PY2:
93
+ import sys
94
+ reload(sys)
95
+ sys.setdefaultencoding("utf-8")
96
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
97
+
98
+ def __repr__(self):
99
+ """For `print`"""
100
+ return self.to_str()
101
+
102
+ def __eq__(self, other):
103
+ """Returns true if both objects are equal"""
104
+ if not isinstance(other, CreateSimAlgorithmImagesRequest):
105
+ return False
106
+
107
+ return self.__dict__ == other.__dict__
108
+
109
+ def __ne__(self, other):
110
+ """Returns true if both objects are not equal"""
111
+ return not self == other