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,796 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class PatchedAlgorithmUpdateSrlz:
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
+ 'compilation': 'CompilationUpdateSrlz',
25
+ 'build': 'BuildUpdateSrlz',
26
+ 'run': 'RunSrlz',
27
+ 'keys_reset': 'bool',
28
+ 'category': 'str',
29
+ 'name': 'str',
30
+ 'description': 'str',
31
+ 'git_url': 'str',
32
+ 'git_branch': 'str',
33
+ 'git_sha1': 'str',
34
+ 'mount_dir': 'str',
35
+ 'compile_command': 'str',
36
+ 'compile_workspace': 'str',
37
+ 'artifact_paths': 'list[str]',
38
+ 'run_workspace': 'str',
39
+ 'command': 'str',
40
+ 'keyword': 'str',
41
+ 'public_key': 'str',
42
+ 'cpu': 'float',
43
+ 'memory': 'int',
44
+ 'gpu': 'int',
45
+ 'image_repo_id': 'int'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'url': 'url',
50
+ 'id': 'id',
51
+ 'created_at': 'created_at',
52
+ 'updated_at': 'updated_at',
53
+ 'compilation': 'compilation',
54
+ 'build': 'build',
55
+ 'run': 'run',
56
+ 'keys_reset': 'keys_reset',
57
+ 'category': 'category',
58
+ 'name': 'name',
59
+ 'description': 'description',
60
+ 'git_url': 'git_url',
61
+ 'git_branch': 'git_branch',
62
+ 'git_sha1': 'git_sha1',
63
+ 'mount_dir': 'mount_dir',
64
+ 'compile_command': 'compile_command',
65
+ 'compile_workspace': 'compile_workspace',
66
+ 'artifact_paths': 'artifact_paths',
67
+ 'run_workspace': 'run_workspace',
68
+ 'command': 'command',
69
+ 'keyword': 'keyword',
70
+ 'public_key': 'public_key',
71
+ 'cpu': 'cpu',
72
+ 'memory': 'memory',
73
+ 'gpu': 'gpu',
74
+ 'image_repo_id': 'image_repo_id'
75
+ }
76
+
77
+ def __init__(self, url=None, id=None, created_at=None, updated_at=None, compilation=None, build=None, run=None, keys_reset=None, category=None, name=None, description=None, git_url=None, git_branch=None, git_sha1=None, mount_dir=None, compile_command=None, compile_workspace=None, artifact_paths=None, run_workspace=None, command=None, keyword=None, public_key=None, cpu=None, memory=None, gpu=None, image_repo_id=None):
78
+ r"""PatchedAlgorithmUpdateSrlz
79
+
80
+ The model defined in huaweicloud sdk
81
+
82
+ :param url:
83
+ :type url: str
84
+ :param id:
85
+ :type id: int
86
+ :param created_at:
87
+ :type created_at: float
88
+ :param updated_at:
89
+ :type updated_at: float
90
+ :param compilation:
91
+ :type compilation: :class:`huaweicloudsdkoctopus.v2.CompilationUpdateSrlz`
92
+ :param build:
93
+ :type build: :class:`huaweicloudsdkoctopus.v2.BuildUpdateSrlz`
94
+ :param run:
95
+ :type run: :class:`huaweicloudsdkoctopus.v2.RunSrlz`
96
+ :param keys_reset:
97
+ :type keys_reset: bool
98
+ :param category: 算法类型,如image
99
+ :type category: str
100
+ :param name: 名称
101
+ :type name: str
102
+ :param description: 描述
103
+ :type description: str
104
+ :param git_url: 代码仓库地址
105
+ :type git_url: str
106
+ :param git_branch: 代码分支
107
+ :type git_branch: str
108
+ :param git_sha1: commit id
109
+ :type git_sha1: str
110
+ :param mount_dir: 挂载目录,需绝对路径
111
+ :type mount_dir: str
112
+ :param compile_command: 编译命令
113
+ :type compile_command: str
114
+ :param compile_workspace: 编译目录,须在挂载路径下
115
+ :type compile_workspace: str
116
+ :param artifact_paths: 编译产物列表,须在挂载路径下
117
+ :type artifact_paths: list[str]
118
+ :param run_workspace: 运行目录
119
+ :type run_workspace: str
120
+ :param command: 运行命令
121
+ :type command: str
122
+ :param keyword: 算法关键字
123
+ :type keyword: str
124
+ :param public_key: ssh-key公钥
125
+ :type public_key: str
126
+ :param cpu: cpu配额
127
+ :type cpu: float
128
+ :param memory: 内存配额
129
+ :type memory: int
130
+ :param gpu: gpu配额
131
+ :type gpu: int
132
+ :param image_repo_id: 镜像id
133
+ :type image_repo_id: int
134
+ """
135
+
136
+
137
+
138
+ self._url = None
139
+ self._id = None
140
+ self._created_at = None
141
+ self._updated_at = None
142
+ self._compilation = None
143
+ self._build = None
144
+ self._run = None
145
+ self._keys_reset = None
146
+ self._category = None
147
+ self._name = None
148
+ self._description = None
149
+ self._git_url = None
150
+ self._git_branch = None
151
+ self._git_sha1 = None
152
+ self._mount_dir = None
153
+ self._compile_command = None
154
+ self._compile_workspace = None
155
+ self._artifact_paths = None
156
+ self._run_workspace = None
157
+ self._command = None
158
+ self._keyword = None
159
+ self._public_key = None
160
+ self._cpu = None
161
+ self._memory = None
162
+ self._gpu = None
163
+ self._image_repo_id = None
164
+ self.discriminator = None
165
+
166
+ if url is not None:
167
+ self.url = url
168
+ if id is not None:
169
+ self.id = id
170
+ if created_at is not None:
171
+ self.created_at = created_at
172
+ if updated_at is not None:
173
+ self.updated_at = updated_at
174
+ self.compilation = compilation
175
+ self.build = build
176
+ if run is not None:
177
+ self.run = run
178
+ if keys_reset is not None:
179
+ self.keys_reset = keys_reset
180
+ if category is not None:
181
+ self.category = category
182
+ if name is not None:
183
+ self.name = name
184
+ self.description = description
185
+ self.git_url = git_url
186
+ self.git_branch = git_branch
187
+ self.git_sha1 = git_sha1
188
+ if mount_dir is not None:
189
+ self.mount_dir = mount_dir
190
+ self.compile_command = compile_command
191
+ if compile_workspace is not None:
192
+ self.compile_workspace = compile_workspace
193
+ self.artifact_paths = artifact_paths
194
+ if run_workspace is not None:
195
+ self.run_workspace = run_workspace
196
+ if command is not None:
197
+ self.command = command
198
+ if keyword is not None:
199
+ self.keyword = keyword
200
+ self.public_key = public_key
201
+ self.cpu = cpu
202
+ self.memory = memory
203
+ self.gpu = gpu
204
+ if image_repo_id is not None:
205
+ self.image_repo_id = image_repo_id
206
+
207
+ @property
208
+ def url(self):
209
+ r"""Gets the url of this PatchedAlgorithmUpdateSrlz.
210
+
211
+ :return: The url of this PatchedAlgorithmUpdateSrlz.
212
+ :rtype: str
213
+ """
214
+ return self._url
215
+
216
+ @url.setter
217
+ def url(self, url):
218
+ r"""Sets the url of this PatchedAlgorithmUpdateSrlz.
219
+
220
+ :param url: The url of this PatchedAlgorithmUpdateSrlz.
221
+ :type url: str
222
+ """
223
+ self._url = url
224
+
225
+ @property
226
+ def id(self):
227
+ r"""Gets the id of this PatchedAlgorithmUpdateSrlz.
228
+
229
+ :return: The id of this PatchedAlgorithmUpdateSrlz.
230
+ :rtype: int
231
+ """
232
+ return self._id
233
+
234
+ @id.setter
235
+ def id(self, id):
236
+ r"""Sets the id of this PatchedAlgorithmUpdateSrlz.
237
+
238
+ :param id: The id of this PatchedAlgorithmUpdateSrlz.
239
+ :type id: int
240
+ """
241
+ self._id = id
242
+
243
+ @property
244
+ def created_at(self):
245
+ r"""Gets the created_at of this PatchedAlgorithmUpdateSrlz.
246
+
247
+ :return: The created_at of this PatchedAlgorithmUpdateSrlz.
248
+ :rtype: float
249
+ """
250
+ return self._created_at
251
+
252
+ @created_at.setter
253
+ def created_at(self, created_at):
254
+ r"""Sets the created_at of this PatchedAlgorithmUpdateSrlz.
255
+
256
+ :param created_at: The created_at of this PatchedAlgorithmUpdateSrlz.
257
+ :type created_at: float
258
+ """
259
+ self._created_at = created_at
260
+
261
+ @property
262
+ def updated_at(self):
263
+ r"""Gets the updated_at of this PatchedAlgorithmUpdateSrlz.
264
+
265
+ :return: The updated_at of this PatchedAlgorithmUpdateSrlz.
266
+ :rtype: float
267
+ """
268
+ return self._updated_at
269
+
270
+ @updated_at.setter
271
+ def updated_at(self, updated_at):
272
+ r"""Sets the updated_at of this PatchedAlgorithmUpdateSrlz.
273
+
274
+ :param updated_at: The updated_at of this PatchedAlgorithmUpdateSrlz.
275
+ :type updated_at: float
276
+ """
277
+ self._updated_at = updated_at
278
+
279
+ @property
280
+ def compilation(self):
281
+ r"""Gets the compilation of this PatchedAlgorithmUpdateSrlz.
282
+
283
+ :return: The compilation of this PatchedAlgorithmUpdateSrlz.
284
+ :rtype: :class:`huaweicloudsdkoctopus.v2.CompilationUpdateSrlz`
285
+ """
286
+ return self._compilation
287
+
288
+ @compilation.setter
289
+ def compilation(self, compilation):
290
+ r"""Sets the compilation of this PatchedAlgorithmUpdateSrlz.
291
+
292
+ :param compilation: The compilation of this PatchedAlgorithmUpdateSrlz.
293
+ :type compilation: :class:`huaweicloudsdkoctopus.v2.CompilationUpdateSrlz`
294
+ """
295
+ self._compilation = compilation
296
+
297
+ @property
298
+ def build(self):
299
+ r"""Gets the build of this PatchedAlgorithmUpdateSrlz.
300
+
301
+ :return: The build of this PatchedAlgorithmUpdateSrlz.
302
+ :rtype: :class:`huaweicloudsdkoctopus.v2.BuildUpdateSrlz`
303
+ """
304
+ return self._build
305
+
306
+ @build.setter
307
+ def build(self, build):
308
+ r"""Sets the build of this PatchedAlgorithmUpdateSrlz.
309
+
310
+ :param build: The build of this PatchedAlgorithmUpdateSrlz.
311
+ :type build: :class:`huaweicloudsdkoctopus.v2.BuildUpdateSrlz`
312
+ """
313
+ self._build = build
314
+
315
+ @property
316
+ def run(self):
317
+ r"""Gets the run of this PatchedAlgorithmUpdateSrlz.
318
+
319
+ :return: The run of this PatchedAlgorithmUpdateSrlz.
320
+ :rtype: :class:`huaweicloudsdkoctopus.v2.RunSrlz`
321
+ """
322
+ return self._run
323
+
324
+ @run.setter
325
+ def run(self, run):
326
+ r"""Sets the run of this PatchedAlgorithmUpdateSrlz.
327
+
328
+ :param run: The run of this PatchedAlgorithmUpdateSrlz.
329
+ :type run: :class:`huaweicloudsdkoctopus.v2.RunSrlz`
330
+ """
331
+ self._run = run
332
+
333
+ @property
334
+ def keys_reset(self):
335
+ r"""Gets the keys_reset of this PatchedAlgorithmUpdateSrlz.
336
+
337
+ :return: The keys_reset of this PatchedAlgorithmUpdateSrlz.
338
+ :rtype: bool
339
+ """
340
+ return self._keys_reset
341
+
342
+ @keys_reset.setter
343
+ def keys_reset(self, keys_reset):
344
+ r"""Sets the keys_reset of this PatchedAlgorithmUpdateSrlz.
345
+
346
+ :param keys_reset: The keys_reset of this PatchedAlgorithmUpdateSrlz.
347
+ :type keys_reset: bool
348
+ """
349
+ self._keys_reset = keys_reset
350
+
351
+ @property
352
+ def category(self):
353
+ r"""Gets the category of this PatchedAlgorithmUpdateSrlz.
354
+
355
+ 算法类型,如image
356
+
357
+ :return: The category of this PatchedAlgorithmUpdateSrlz.
358
+ :rtype: str
359
+ """
360
+ return self._category
361
+
362
+ @category.setter
363
+ def category(self, category):
364
+ r"""Sets the category of this PatchedAlgorithmUpdateSrlz.
365
+
366
+ 算法类型,如image
367
+
368
+ :param category: The category of this PatchedAlgorithmUpdateSrlz.
369
+ :type category: str
370
+ """
371
+ self._category = category
372
+
373
+ @property
374
+ def name(self):
375
+ r"""Gets the name of this PatchedAlgorithmUpdateSrlz.
376
+
377
+ 名称
378
+
379
+ :return: The name of this PatchedAlgorithmUpdateSrlz.
380
+ :rtype: str
381
+ """
382
+ return self._name
383
+
384
+ @name.setter
385
+ def name(self, name):
386
+ r"""Sets the name of this PatchedAlgorithmUpdateSrlz.
387
+
388
+ 名称
389
+
390
+ :param name: The name of this PatchedAlgorithmUpdateSrlz.
391
+ :type name: str
392
+ """
393
+ self._name = name
394
+
395
+ @property
396
+ def description(self):
397
+ r"""Gets the description of this PatchedAlgorithmUpdateSrlz.
398
+
399
+ 描述
400
+
401
+ :return: The description of this PatchedAlgorithmUpdateSrlz.
402
+ :rtype: str
403
+ """
404
+ return self._description
405
+
406
+ @description.setter
407
+ def description(self, description):
408
+ r"""Sets the description of this PatchedAlgorithmUpdateSrlz.
409
+
410
+ 描述
411
+
412
+ :param description: The description of this PatchedAlgorithmUpdateSrlz.
413
+ :type description: str
414
+ """
415
+ self._description = description
416
+
417
+ @property
418
+ def git_url(self):
419
+ r"""Gets the git_url of this PatchedAlgorithmUpdateSrlz.
420
+
421
+ 代码仓库地址
422
+
423
+ :return: The git_url of this PatchedAlgorithmUpdateSrlz.
424
+ :rtype: str
425
+ """
426
+ return self._git_url
427
+
428
+ @git_url.setter
429
+ def git_url(self, git_url):
430
+ r"""Sets the git_url of this PatchedAlgorithmUpdateSrlz.
431
+
432
+ 代码仓库地址
433
+
434
+ :param git_url: The git_url of this PatchedAlgorithmUpdateSrlz.
435
+ :type git_url: str
436
+ """
437
+ self._git_url = git_url
438
+
439
+ @property
440
+ def git_branch(self):
441
+ r"""Gets the git_branch of this PatchedAlgorithmUpdateSrlz.
442
+
443
+ 代码分支
444
+
445
+ :return: The git_branch of this PatchedAlgorithmUpdateSrlz.
446
+ :rtype: str
447
+ """
448
+ return self._git_branch
449
+
450
+ @git_branch.setter
451
+ def git_branch(self, git_branch):
452
+ r"""Sets the git_branch of this PatchedAlgorithmUpdateSrlz.
453
+
454
+ 代码分支
455
+
456
+ :param git_branch: The git_branch of this PatchedAlgorithmUpdateSrlz.
457
+ :type git_branch: str
458
+ """
459
+ self._git_branch = git_branch
460
+
461
+ @property
462
+ def git_sha1(self):
463
+ r"""Gets the git_sha1 of this PatchedAlgorithmUpdateSrlz.
464
+
465
+ commit id
466
+
467
+ :return: The git_sha1 of this PatchedAlgorithmUpdateSrlz.
468
+ :rtype: str
469
+ """
470
+ return self._git_sha1
471
+
472
+ @git_sha1.setter
473
+ def git_sha1(self, git_sha1):
474
+ r"""Sets the git_sha1 of this PatchedAlgorithmUpdateSrlz.
475
+
476
+ commit id
477
+
478
+ :param git_sha1: The git_sha1 of this PatchedAlgorithmUpdateSrlz.
479
+ :type git_sha1: str
480
+ """
481
+ self._git_sha1 = git_sha1
482
+
483
+ @property
484
+ def mount_dir(self):
485
+ r"""Gets the mount_dir of this PatchedAlgorithmUpdateSrlz.
486
+
487
+ 挂载目录,需绝对路径
488
+
489
+ :return: The mount_dir of this PatchedAlgorithmUpdateSrlz.
490
+ :rtype: str
491
+ """
492
+ return self._mount_dir
493
+
494
+ @mount_dir.setter
495
+ def mount_dir(self, mount_dir):
496
+ r"""Sets the mount_dir of this PatchedAlgorithmUpdateSrlz.
497
+
498
+ 挂载目录,需绝对路径
499
+
500
+ :param mount_dir: The mount_dir of this PatchedAlgorithmUpdateSrlz.
501
+ :type mount_dir: str
502
+ """
503
+ self._mount_dir = mount_dir
504
+
505
+ @property
506
+ def compile_command(self):
507
+ r"""Gets the compile_command of this PatchedAlgorithmUpdateSrlz.
508
+
509
+ 编译命令
510
+
511
+ :return: The compile_command of this PatchedAlgorithmUpdateSrlz.
512
+ :rtype: str
513
+ """
514
+ return self._compile_command
515
+
516
+ @compile_command.setter
517
+ def compile_command(self, compile_command):
518
+ r"""Sets the compile_command of this PatchedAlgorithmUpdateSrlz.
519
+
520
+ 编译命令
521
+
522
+ :param compile_command: The compile_command of this PatchedAlgorithmUpdateSrlz.
523
+ :type compile_command: str
524
+ """
525
+ self._compile_command = compile_command
526
+
527
+ @property
528
+ def compile_workspace(self):
529
+ r"""Gets the compile_workspace of this PatchedAlgorithmUpdateSrlz.
530
+
531
+ 编译目录,须在挂载路径下
532
+
533
+ :return: The compile_workspace of this PatchedAlgorithmUpdateSrlz.
534
+ :rtype: str
535
+ """
536
+ return self._compile_workspace
537
+
538
+ @compile_workspace.setter
539
+ def compile_workspace(self, compile_workspace):
540
+ r"""Sets the compile_workspace of this PatchedAlgorithmUpdateSrlz.
541
+
542
+ 编译目录,须在挂载路径下
543
+
544
+ :param compile_workspace: The compile_workspace of this PatchedAlgorithmUpdateSrlz.
545
+ :type compile_workspace: str
546
+ """
547
+ self._compile_workspace = compile_workspace
548
+
549
+ @property
550
+ def artifact_paths(self):
551
+ r"""Gets the artifact_paths of this PatchedAlgorithmUpdateSrlz.
552
+
553
+ 编译产物列表,须在挂载路径下
554
+
555
+ :return: The artifact_paths of this PatchedAlgorithmUpdateSrlz.
556
+ :rtype: list[str]
557
+ """
558
+ return self._artifact_paths
559
+
560
+ @artifact_paths.setter
561
+ def artifact_paths(self, artifact_paths):
562
+ r"""Sets the artifact_paths of this PatchedAlgorithmUpdateSrlz.
563
+
564
+ 编译产物列表,须在挂载路径下
565
+
566
+ :param artifact_paths: The artifact_paths of this PatchedAlgorithmUpdateSrlz.
567
+ :type artifact_paths: list[str]
568
+ """
569
+ self._artifact_paths = artifact_paths
570
+
571
+ @property
572
+ def run_workspace(self):
573
+ r"""Gets the run_workspace of this PatchedAlgorithmUpdateSrlz.
574
+
575
+ 运行目录
576
+
577
+ :return: The run_workspace of this PatchedAlgorithmUpdateSrlz.
578
+ :rtype: str
579
+ """
580
+ return self._run_workspace
581
+
582
+ @run_workspace.setter
583
+ def run_workspace(self, run_workspace):
584
+ r"""Sets the run_workspace of this PatchedAlgorithmUpdateSrlz.
585
+
586
+ 运行目录
587
+
588
+ :param run_workspace: The run_workspace of this PatchedAlgorithmUpdateSrlz.
589
+ :type run_workspace: str
590
+ """
591
+ self._run_workspace = run_workspace
592
+
593
+ @property
594
+ def command(self):
595
+ r"""Gets the command of this PatchedAlgorithmUpdateSrlz.
596
+
597
+ 运行命令
598
+
599
+ :return: The command of this PatchedAlgorithmUpdateSrlz.
600
+ :rtype: str
601
+ """
602
+ return self._command
603
+
604
+ @command.setter
605
+ def command(self, command):
606
+ r"""Sets the command of this PatchedAlgorithmUpdateSrlz.
607
+
608
+ 运行命令
609
+
610
+ :param command: The command of this PatchedAlgorithmUpdateSrlz.
611
+ :type command: str
612
+ """
613
+ self._command = command
614
+
615
+ @property
616
+ def keyword(self):
617
+ r"""Gets the keyword of this PatchedAlgorithmUpdateSrlz.
618
+
619
+ 算法关键字
620
+
621
+ :return: The keyword of this PatchedAlgorithmUpdateSrlz.
622
+ :rtype: str
623
+ """
624
+ return self._keyword
625
+
626
+ @keyword.setter
627
+ def keyword(self, keyword):
628
+ r"""Sets the keyword of this PatchedAlgorithmUpdateSrlz.
629
+
630
+ 算法关键字
631
+
632
+ :param keyword: The keyword of this PatchedAlgorithmUpdateSrlz.
633
+ :type keyword: str
634
+ """
635
+ self._keyword = keyword
636
+
637
+ @property
638
+ def public_key(self):
639
+ r"""Gets the public_key of this PatchedAlgorithmUpdateSrlz.
640
+
641
+ ssh-key公钥
642
+
643
+ :return: The public_key of this PatchedAlgorithmUpdateSrlz.
644
+ :rtype: str
645
+ """
646
+ return self._public_key
647
+
648
+ @public_key.setter
649
+ def public_key(self, public_key):
650
+ r"""Sets the public_key of this PatchedAlgorithmUpdateSrlz.
651
+
652
+ ssh-key公钥
653
+
654
+ :param public_key: The public_key of this PatchedAlgorithmUpdateSrlz.
655
+ :type public_key: str
656
+ """
657
+ self._public_key = public_key
658
+
659
+ @property
660
+ def cpu(self):
661
+ r"""Gets the cpu of this PatchedAlgorithmUpdateSrlz.
662
+
663
+ cpu配额
664
+
665
+ :return: The cpu of this PatchedAlgorithmUpdateSrlz.
666
+ :rtype: float
667
+ """
668
+ return self._cpu
669
+
670
+ @cpu.setter
671
+ def cpu(self, cpu):
672
+ r"""Sets the cpu of this PatchedAlgorithmUpdateSrlz.
673
+
674
+ cpu配额
675
+
676
+ :param cpu: The cpu of this PatchedAlgorithmUpdateSrlz.
677
+ :type cpu: float
678
+ """
679
+ self._cpu = cpu
680
+
681
+ @property
682
+ def memory(self):
683
+ r"""Gets the memory of this PatchedAlgorithmUpdateSrlz.
684
+
685
+ 内存配额
686
+
687
+ :return: The memory of this PatchedAlgorithmUpdateSrlz.
688
+ :rtype: int
689
+ """
690
+ return self._memory
691
+
692
+ @memory.setter
693
+ def memory(self, memory):
694
+ r"""Sets the memory of this PatchedAlgorithmUpdateSrlz.
695
+
696
+ 内存配额
697
+
698
+ :param memory: The memory of this PatchedAlgorithmUpdateSrlz.
699
+ :type memory: int
700
+ """
701
+ self._memory = memory
702
+
703
+ @property
704
+ def gpu(self):
705
+ r"""Gets the gpu of this PatchedAlgorithmUpdateSrlz.
706
+
707
+ gpu配额
708
+
709
+ :return: The gpu of this PatchedAlgorithmUpdateSrlz.
710
+ :rtype: int
711
+ """
712
+ return self._gpu
713
+
714
+ @gpu.setter
715
+ def gpu(self, gpu):
716
+ r"""Sets the gpu of this PatchedAlgorithmUpdateSrlz.
717
+
718
+ gpu配额
719
+
720
+ :param gpu: The gpu of this PatchedAlgorithmUpdateSrlz.
721
+ :type gpu: int
722
+ """
723
+ self._gpu = gpu
724
+
725
+ @property
726
+ def image_repo_id(self):
727
+ r"""Gets the image_repo_id of this PatchedAlgorithmUpdateSrlz.
728
+
729
+ 镜像id
730
+
731
+ :return: The image_repo_id of this PatchedAlgorithmUpdateSrlz.
732
+ :rtype: int
733
+ """
734
+ return self._image_repo_id
735
+
736
+ @image_repo_id.setter
737
+ def image_repo_id(self, image_repo_id):
738
+ r"""Sets the image_repo_id of this PatchedAlgorithmUpdateSrlz.
739
+
740
+ 镜像id
741
+
742
+ :param image_repo_id: The image_repo_id of this PatchedAlgorithmUpdateSrlz.
743
+ :type image_repo_id: int
744
+ """
745
+ self._image_repo_id = image_repo_id
746
+
747
+ def to_dict(self):
748
+ """Returns the model properties as a dict"""
749
+ result = {}
750
+
751
+ for attr, _ in six.iteritems(self.openapi_types):
752
+ value = getattr(self, attr)
753
+ if isinstance(value, list):
754
+ result[attr] = list(map(
755
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
756
+ value
757
+ ))
758
+ elif hasattr(value, "to_dict"):
759
+ result[attr] = value.to_dict()
760
+ elif isinstance(value, dict):
761
+ result[attr] = dict(map(
762
+ lambda item: (item[0], item[1].to_dict())
763
+ if hasattr(item[1], "to_dict") else item,
764
+ value.items()
765
+ ))
766
+ else:
767
+ if attr in self.sensitive_list:
768
+ result[attr] = "****"
769
+ else:
770
+ result[attr] = value
771
+
772
+ return result
773
+
774
+ def to_str(self):
775
+ """Returns the string representation of the model"""
776
+ import simplejson as json
777
+ if six.PY2:
778
+ import sys
779
+ reload(sys)
780
+ sys.setdefaultencoding("utf-8")
781
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
782
+
783
+ def __repr__(self):
784
+ """For `print`"""
785
+ return self.to_str()
786
+
787
+ def __eq__(self, other):
788
+ """Returns true if both objects are equal"""
789
+ if not isinstance(other, PatchedAlgorithmUpdateSrlz):
790
+ return False
791
+
792
+ return self.__dict__ == other.__dict__
793
+
794
+ def __ne__(self, other):
795
+ """Returns true if both objects are not equal"""
796
+ return not self == other