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,266 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class AlgImageListSrlz:
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
+ 'type': 'Type87eEnum',
25
+ 'version': 'str',
26
+ 'algorithm': 'str'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'url': 'url',
31
+ 'id': 'id',
32
+ 'created_at': 'created_at',
33
+ 'updated_at': 'updated_at',
34
+ 'type': 'type',
35
+ 'version': 'version',
36
+ 'algorithm': 'algorithm'
37
+ }
38
+
39
+ def __init__(self, url=None, id=None, created_at=None, updated_at=None, type=None, version=None, algorithm=None):
40
+ r"""AlgImageListSrlz
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param url:
45
+ :type url: str
46
+ :param id:
47
+ :type id: int
48
+ :param created_at:
49
+ :type created_at: float
50
+ :param updated_at:
51
+ :type updated_at: float
52
+ :param type: 镜像类型 * `build` - Build * `upload` - Upload
53
+ :type type: :class:`huaweicloudsdkoctopus.v2.Type87eEnum`
54
+ :param version: 镜像版本
55
+ :type version: str
56
+ :param algorithm: 算法
57
+ :type algorithm: str
58
+ """
59
+
60
+
61
+
62
+ self._url = None
63
+ self._id = None
64
+ self._created_at = None
65
+ self._updated_at = None
66
+ self._type = None
67
+ self._version = None
68
+ self._algorithm = None
69
+ self.discriminator = None
70
+
71
+ self.url = url
72
+ self.id = id
73
+ self.created_at = created_at
74
+ self.updated_at = updated_at
75
+ self.type = type
76
+ self.version = version
77
+ self.algorithm = algorithm
78
+
79
+ @property
80
+ def url(self):
81
+ r"""Gets the url of this AlgImageListSrlz.
82
+
83
+ :return: The url of this AlgImageListSrlz.
84
+ :rtype: str
85
+ """
86
+ return self._url
87
+
88
+ @url.setter
89
+ def url(self, url):
90
+ r"""Sets the url of this AlgImageListSrlz.
91
+
92
+ :param url: The url of this AlgImageListSrlz.
93
+ :type url: str
94
+ """
95
+ self._url = url
96
+
97
+ @property
98
+ def id(self):
99
+ r"""Gets the id of this AlgImageListSrlz.
100
+
101
+ :return: The id of this AlgImageListSrlz.
102
+ :rtype: int
103
+ """
104
+ return self._id
105
+
106
+ @id.setter
107
+ def id(self, id):
108
+ r"""Sets the id of this AlgImageListSrlz.
109
+
110
+ :param id: The id of this AlgImageListSrlz.
111
+ :type id: int
112
+ """
113
+ self._id = id
114
+
115
+ @property
116
+ def created_at(self):
117
+ r"""Gets the created_at of this AlgImageListSrlz.
118
+
119
+ :return: The created_at of this AlgImageListSrlz.
120
+ :rtype: float
121
+ """
122
+ return self._created_at
123
+
124
+ @created_at.setter
125
+ def created_at(self, created_at):
126
+ r"""Sets the created_at of this AlgImageListSrlz.
127
+
128
+ :param created_at: The created_at of this AlgImageListSrlz.
129
+ :type created_at: float
130
+ """
131
+ self._created_at = created_at
132
+
133
+ @property
134
+ def updated_at(self):
135
+ r"""Gets the updated_at of this AlgImageListSrlz.
136
+
137
+ :return: The updated_at of this AlgImageListSrlz.
138
+ :rtype: float
139
+ """
140
+ return self._updated_at
141
+
142
+ @updated_at.setter
143
+ def updated_at(self, updated_at):
144
+ r"""Sets the updated_at of this AlgImageListSrlz.
145
+
146
+ :param updated_at: The updated_at of this AlgImageListSrlz.
147
+ :type updated_at: float
148
+ """
149
+ self._updated_at = updated_at
150
+
151
+ @property
152
+ def type(self):
153
+ r"""Gets the type of this AlgImageListSrlz.
154
+
155
+ 镜像类型 * `build` - Build * `upload` - Upload
156
+
157
+ :return: The type of this AlgImageListSrlz.
158
+ :rtype: :class:`huaweicloudsdkoctopus.v2.Type87eEnum`
159
+ """
160
+ return self._type
161
+
162
+ @type.setter
163
+ def type(self, type):
164
+ r"""Sets the type of this AlgImageListSrlz.
165
+
166
+ 镜像类型 * `build` - Build * `upload` - Upload
167
+
168
+ :param type: The type of this AlgImageListSrlz.
169
+ :type type: :class:`huaweicloudsdkoctopus.v2.Type87eEnum`
170
+ """
171
+ self._type = type
172
+
173
+ @property
174
+ def version(self):
175
+ r"""Gets the version of this AlgImageListSrlz.
176
+
177
+ 镜像版本
178
+
179
+ :return: The version of this AlgImageListSrlz.
180
+ :rtype: str
181
+ """
182
+ return self._version
183
+
184
+ @version.setter
185
+ def version(self, version):
186
+ r"""Sets the version of this AlgImageListSrlz.
187
+
188
+ 镜像版本
189
+
190
+ :param version: The version of this AlgImageListSrlz.
191
+ :type version: str
192
+ """
193
+ self._version = version
194
+
195
+ @property
196
+ def algorithm(self):
197
+ r"""Gets the algorithm of this AlgImageListSrlz.
198
+
199
+ 算法
200
+
201
+ :return: The algorithm of this AlgImageListSrlz.
202
+ :rtype: str
203
+ """
204
+ return self._algorithm
205
+
206
+ @algorithm.setter
207
+ def algorithm(self, algorithm):
208
+ r"""Sets the algorithm of this AlgImageListSrlz.
209
+
210
+ 算法
211
+
212
+ :param algorithm: The algorithm of this AlgImageListSrlz.
213
+ :type algorithm: str
214
+ """
215
+ self._algorithm = algorithm
216
+
217
+ def to_dict(self):
218
+ """Returns the model properties as a dict"""
219
+ result = {}
220
+
221
+ for attr, _ in six.iteritems(self.openapi_types):
222
+ value = getattr(self, attr)
223
+ if isinstance(value, list):
224
+ result[attr] = list(map(
225
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
226
+ value
227
+ ))
228
+ elif hasattr(value, "to_dict"):
229
+ result[attr] = value.to_dict()
230
+ elif isinstance(value, dict):
231
+ result[attr] = dict(map(
232
+ lambda item: (item[0], item[1].to_dict())
233
+ if hasattr(item[1], "to_dict") else item,
234
+ value.items()
235
+ ))
236
+ else:
237
+ if attr in self.sensitive_list:
238
+ result[attr] = "****"
239
+ else:
240
+ result[attr] = value
241
+
242
+ return result
243
+
244
+ def to_str(self):
245
+ """Returns the string representation of the model"""
246
+ import simplejson as json
247
+ if six.PY2:
248
+ import sys
249
+ reload(sys)
250
+ sys.setdefaultencoding("utf-8")
251
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
252
+
253
+ def __repr__(self):
254
+ """For `print`"""
255
+ return self.to_str()
256
+
257
+ def __eq__(self, other):
258
+ """Returns true if both objects are equal"""
259
+ if not isinstance(other, AlgImageListSrlz):
260
+ return False
261
+
262
+ return self.__dict__ == other.__dict__
263
+
264
+ def __ne__(self, other):
265
+ """Returns true if both objects are not equal"""
266
+ return not self == other
@@ -0,0 +1,399 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class AlgorithmCreateSrlz:
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': 'CompilationCreateSrlz',
25
+ 'build': 'BuildCreateSrlz',
26
+ 'run': 'RunSrlz',
27
+ 'name': 'str',
28
+ 'description': 'str',
29
+ 'category': 'CategoryF62Enum',
30
+ 'mount_dir': 'str',
31
+ 'image_repo_id': 'int'
32
+ }
33
+
34
+ attribute_map = {
35
+ 'url': 'url',
36
+ 'id': 'id',
37
+ 'created_at': 'created_at',
38
+ 'updated_at': 'updated_at',
39
+ 'compilation': 'compilation',
40
+ 'build': 'build',
41
+ 'run': 'run',
42
+ 'name': 'name',
43
+ 'description': 'description',
44
+ 'category': 'category',
45
+ 'mount_dir': 'mount_dir',
46
+ 'image_repo_id': 'image_repo_id'
47
+ }
48
+
49
+ def __init__(self, url=None, id=None, created_at=None, updated_at=None, compilation=None, build=None, run=None, name=None, description=None, category=None, mount_dir=None, image_repo_id=None):
50
+ r"""AlgorithmCreateSrlz
51
+
52
+ The model defined in huaweicloud sdk
53
+
54
+ :param url:
55
+ :type url: str
56
+ :param id:
57
+ :type id: int
58
+ :param created_at:
59
+ :type created_at: float
60
+ :param updated_at:
61
+ :type updated_at: float
62
+ :param compilation:
63
+ :type compilation: :class:`huaweicloudsdkoctopus.v2.CompilationCreateSrlz`
64
+ :param build:
65
+ :type build: :class:`huaweicloudsdkoctopus.v2.BuildCreateSrlz`
66
+ :param run:
67
+ :type run: :class:`huaweicloudsdkoctopus.v2.RunSrlz`
68
+ :param name: 名称
69
+ :type name: str
70
+ :param description: 描述
71
+ :type description: str
72
+ :param category: 算法类型 * `code` - Code * `artifact` - Artifact * `image` - Image
73
+ :type category: :class:`huaweicloudsdkoctopus.v2.CategoryF62Enum`
74
+ :param mount_dir: 挂载目录,需绝对路径
75
+ :type mount_dir: str
76
+ :param image_repo_id: 镜像id
77
+ :type image_repo_id: int
78
+ """
79
+
80
+
81
+
82
+ self._url = None
83
+ self._id = None
84
+ self._created_at = None
85
+ self._updated_at = None
86
+ self._compilation = None
87
+ self._build = None
88
+ self._run = None
89
+ self._name = None
90
+ self._description = None
91
+ self._category = None
92
+ self._mount_dir = None
93
+ self._image_repo_id = None
94
+ self.discriminator = None
95
+
96
+ if url is not None:
97
+ self.url = url
98
+ if id is not None:
99
+ self.id = id
100
+ if created_at is not None:
101
+ self.created_at = created_at
102
+ if updated_at is not None:
103
+ self.updated_at = updated_at
104
+ self.compilation = compilation
105
+ self.build = build
106
+ self.run = run
107
+ self.name = name
108
+ self.description = description
109
+ self.category = category
110
+ if mount_dir is not None:
111
+ self.mount_dir = mount_dir
112
+ self.image_repo_id = image_repo_id
113
+
114
+ @property
115
+ def url(self):
116
+ r"""Gets the url of this AlgorithmCreateSrlz.
117
+
118
+ :return: The url of this AlgorithmCreateSrlz.
119
+ :rtype: str
120
+ """
121
+ return self._url
122
+
123
+ @url.setter
124
+ def url(self, url):
125
+ r"""Sets the url of this AlgorithmCreateSrlz.
126
+
127
+ :param url: The url of this AlgorithmCreateSrlz.
128
+ :type url: str
129
+ """
130
+ self._url = url
131
+
132
+ @property
133
+ def id(self):
134
+ r"""Gets the id of this AlgorithmCreateSrlz.
135
+
136
+ :return: The id of this AlgorithmCreateSrlz.
137
+ :rtype: int
138
+ """
139
+ return self._id
140
+
141
+ @id.setter
142
+ def id(self, id):
143
+ r"""Sets the id of this AlgorithmCreateSrlz.
144
+
145
+ :param id: The id of this AlgorithmCreateSrlz.
146
+ :type id: int
147
+ """
148
+ self._id = id
149
+
150
+ @property
151
+ def created_at(self):
152
+ r"""Gets the created_at of this AlgorithmCreateSrlz.
153
+
154
+ :return: The created_at of this AlgorithmCreateSrlz.
155
+ :rtype: float
156
+ """
157
+ return self._created_at
158
+
159
+ @created_at.setter
160
+ def created_at(self, created_at):
161
+ r"""Sets the created_at of this AlgorithmCreateSrlz.
162
+
163
+ :param created_at: The created_at of this AlgorithmCreateSrlz.
164
+ :type created_at: float
165
+ """
166
+ self._created_at = created_at
167
+
168
+ @property
169
+ def updated_at(self):
170
+ r"""Gets the updated_at of this AlgorithmCreateSrlz.
171
+
172
+ :return: The updated_at of this AlgorithmCreateSrlz.
173
+ :rtype: float
174
+ """
175
+ return self._updated_at
176
+
177
+ @updated_at.setter
178
+ def updated_at(self, updated_at):
179
+ r"""Sets the updated_at of this AlgorithmCreateSrlz.
180
+
181
+ :param updated_at: The updated_at of this AlgorithmCreateSrlz.
182
+ :type updated_at: float
183
+ """
184
+ self._updated_at = updated_at
185
+
186
+ @property
187
+ def compilation(self):
188
+ r"""Gets the compilation of this AlgorithmCreateSrlz.
189
+
190
+ :return: The compilation of this AlgorithmCreateSrlz.
191
+ :rtype: :class:`huaweicloudsdkoctopus.v2.CompilationCreateSrlz`
192
+ """
193
+ return self._compilation
194
+
195
+ @compilation.setter
196
+ def compilation(self, compilation):
197
+ r"""Sets the compilation of this AlgorithmCreateSrlz.
198
+
199
+ :param compilation: The compilation of this AlgorithmCreateSrlz.
200
+ :type compilation: :class:`huaweicloudsdkoctopus.v2.CompilationCreateSrlz`
201
+ """
202
+ self._compilation = compilation
203
+
204
+ @property
205
+ def build(self):
206
+ r"""Gets the build of this AlgorithmCreateSrlz.
207
+
208
+ :return: The build of this AlgorithmCreateSrlz.
209
+ :rtype: :class:`huaweicloudsdkoctopus.v2.BuildCreateSrlz`
210
+ """
211
+ return self._build
212
+
213
+ @build.setter
214
+ def build(self, build):
215
+ r"""Sets the build of this AlgorithmCreateSrlz.
216
+
217
+ :param build: The build of this AlgorithmCreateSrlz.
218
+ :type build: :class:`huaweicloudsdkoctopus.v2.BuildCreateSrlz`
219
+ """
220
+ self._build = build
221
+
222
+ @property
223
+ def run(self):
224
+ r"""Gets the run of this AlgorithmCreateSrlz.
225
+
226
+ :return: The run of this AlgorithmCreateSrlz.
227
+ :rtype: :class:`huaweicloudsdkoctopus.v2.RunSrlz`
228
+ """
229
+ return self._run
230
+
231
+ @run.setter
232
+ def run(self, run):
233
+ r"""Sets the run of this AlgorithmCreateSrlz.
234
+
235
+ :param run: The run of this AlgorithmCreateSrlz.
236
+ :type run: :class:`huaweicloudsdkoctopus.v2.RunSrlz`
237
+ """
238
+ self._run = run
239
+
240
+ @property
241
+ def name(self):
242
+ r"""Gets the name of this AlgorithmCreateSrlz.
243
+
244
+ 名称
245
+
246
+ :return: The name of this AlgorithmCreateSrlz.
247
+ :rtype: str
248
+ """
249
+ return self._name
250
+
251
+ @name.setter
252
+ def name(self, name):
253
+ r"""Sets the name of this AlgorithmCreateSrlz.
254
+
255
+ 名称
256
+
257
+ :param name: The name of this AlgorithmCreateSrlz.
258
+ :type name: str
259
+ """
260
+ self._name = name
261
+
262
+ @property
263
+ def description(self):
264
+ r"""Gets the description of this AlgorithmCreateSrlz.
265
+
266
+ 描述
267
+
268
+ :return: The description of this AlgorithmCreateSrlz.
269
+ :rtype: str
270
+ """
271
+ return self._description
272
+
273
+ @description.setter
274
+ def description(self, description):
275
+ r"""Sets the description of this AlgorithmCreateSrlz.
276
+
277
+ 描述
278
+
279
+ :param description: The description of this AlgorithmCreateSrlz.
280
+ :type description: str
281
+ """
282
+ self._description = description
283
+
284
+ @property
285
+ def category(self):
286
+ r"""Gets the category of this AlgorithmCreateSrlz.
287
+
288
+ 算法类型 * `code` - Code * `artifact` - Artifact * `image` - Image
289
+
290
+ :return: The category of this AlgorithmCreateSrlz.
291
+ :rtype: :class:`huaweicloudsdkoctopus.v2.CategoryF62Enum`
292
+ """
293
+ return self._category
294
+
295
+ @category.setter
296
+ def category(self, category):
297
+ r"""Sets the category of this AlgorithmCreateSrlz.
298
+
299
+ 算法类型 * `code` - Code * `artifact` - Artifact * `image` - Image
300
+
301
+ :param category: The category of this AlgorithmCreateSrlz.
302
+ :type category: :class:`huaweicloudsdkoctopus.v2.CategoryF62Enum`
303
+ """
304
+ self._category = category
305
+
306
+ @property
307
+ def mount_dir(self):
308
+ r"""Gets the mount_dir of this AlgorithmCreateSrlz.
309
+
310
+ 挂载目录,需绝对路径
311
+
312
+ :return: The mount_dir of this AlgorithmCreateSrlz.
313
+ :rtype: str
314
+ """
315
+ return self._mount_dir
316
+
317
+ @mount_dir.setter
318
+ def mount_dir(self, mount_dir):
319
+ r"""Sets the mount_dir of this AlgorithmCreateSrlz.
320
+
321
+ 挂载目录,需绝对路径
322
+
323
+ :param mount_dir: The mount_dir of this AlgorithmCreateSrlz.
324
+ :type mount_dir: str
325
+ """
326
+ self._mount_dir = mount_dir
327
+
328
+ @property
329
+ def image_repo_id(self):
330
+ r"""Gets the image_repo_id of this AlgorithmCreateSrlz.
331
+
332
+ 镜像id
333
+
334
+ :return: The image_repo_id of this AlgorithmCreateSrlz.
335
+ :rtype: int
336
+ """
337
+ return self._image_repo_id
338
+
339
+ @image_repo_id.setter
340
+ def image_repo_id(self, image_repo_id):
341
+ r"""Sets the image_repo_id of this AlgorithmCreateSrlz.
342
+
343
+ 镜像id
344
+
345
+ :param image_repo_id: The image_repo_id of this AlgorithmCreateSrlz.
346
+ :type image_repo_id: int
347
+ """
348
+ self._image_repo_id = image_repo_id
349
+
350
+ def to_dict(self):
351
+ """Returns the model properties as a dict"""
352
+ result = {}
353
+
354
+ for attr, _ in six.iteritems(self.openapi_types):
355
+ value = getattr(self, attr)
356
+ if isinstance(value, list):
357
+ result[attr] = list(map(
358
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
359
+ value
360
+ ))
361
+ elif hasattr(value, "to_dict"):
362
+ result[attr] = value.to_dict()
363
+ elif isinstance(value, dict):
364
+ result[attr] = dict(map(
365
+ lambda item: (item[0], item[1].to_dict())
366
+ if hasattr(item[1], "to_dict") else item,
367
+ value.items()
368
+ ))
369
+ else:
370
+ if attr in self.sensitive_list:
371
+ result[attr] = "****"
372
+ else:
373
+ result[attr] = value
374
+
375
+ return result
376
+
377
+ def to_str(self):
378
+ """Returns the string representation of the model"""
379
+ import simplejson as json
380
+ if six.PY2:
381
+ import sys
382
+ reload(sys)
383
+ sys.setdefaultencoding("utf-8")
384
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
385
+
386
+ def __repr__(self):
387
+ """For `print`"""
388
+ return self.to_str()
389
+
390
+ def __eq__(self, other):
391
+ """Returns true if both objects are equal"""
392
+ if not isinstance(other, AlgorithmCreateSrlz):
393
+ return False
394
+
395
+ return self.__dict__ == other.__dict__
396
+
397
+ def __ne__(self, other):
398
+ """Returns true if both objects are not equal"""
399
+ return not self == other