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,281 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListSimAlgorithmsRequest:
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
+ 'category': 'str',
21
+ 'limit': 'int',
22
+ 'name': 'str',
23
+ 'offset': 'int',
24
+ 'ordering': 'str',
25
+ 'image_repo_id': 'int',
26
+ 'search': 'str'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'category': 'category',
31
+ 'limit': 'limit',
32
+ 'name': 'name',
33
+ 'offset': 'offset',
34
+ 'ordering': 'ordering',
35
+ 'image_repo_id': 'image_repo_id',
36
+ 'search': 'search'
37
+ }
38
+
39
+ def __init__(self, category=None, limit=None, name=None, offset=None, ordering=None, image_repo_id=None, search=None):
40
+ r"""ListSimAlgorithmsRequest
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param category: 算法类型 * `code` - Code * `artifact` - Artifact * `image` - Image
45
+ :type category: str
46
+ :param limit: Number of results to return per page.
47
+ :type limit: int
48
+ :param name:
49
+ :type name: str
50
+ :param offset: The initial index from which to return the results.
51
+ :type offset: int
52
+ :param ordering: Which field to use when ordering the results.
53
+ :type ordering: str
54
+ :param image_repo_id:
55
+ :type image_repo_id: int
56
+ :param search: A search term.
57
+ :type search: str
58
+ """
59
+
60
+
61
+
62
+ self._category = None
63
+ self._limit = None
64
+ self._name = None
65
+ self._offset = None
66
+ self._ordering = None
67
+ self._image_repo_id = None
68
+ self._search = None
69
+ self.discriminator = None
70
+
71
+ if category is not None:
72
+ self.category = category
73
+ if limit is not None:
74
+ self.limit = limit
75
+ if name is not None:
76
+ self.name = name
77
+ if offset is not None:
78
+ self.offset = offset
79
+ if ordering is not None:
80
+ self.ordering = ordering
81
+ if image_repo_id is not None:
82
+ self.image_repo_id = image_repo_id
83
+ if search is not None:
84
+ self.search = search
85
+
86
+ @property
87
+ def category(self):
88
+ r"""Gets the category of this ListSimAlgorithmsRequest.
89
+
90
+ 算法类型 * `code` - Code * `artifact` - Artifact * `image` - Image
91
+
92
+ :return: The category of this ListSimAlgorithmsRequest.
93
+ :rtype: str
94
+ """
95
+ return self._category
96
+
97
+ @category.setter
98
+ def category(self, category):
99
+ r"""Sets the category of this ListSimAlgorithmsRequest.
100
+
101
+ 算法类型 * `code` - Code * `artifact` - Artifact * `image` - Image
102
+
103
+ :param category: The category of this ListSimAlgorithmsRequest.
104
+ :type category: str
105
+ """
106
+ self._category = category
107
+
108
+ @property
109
+ def limit(self):
110
+ r"""Gets the limit of this ListSimAlgorithmsRequest.
111
+
112
+ Number of results to return per page.
113
+
114
+ :return: The limit of this ListSimAlgorithmsRequest.
115
+ :rtype: int
116
+ """
117
+ return self._limit
118
+
119
+ @limit.setter
120
+ def limit(self, limit):
121
+ r"""Sets the limit of this ListSimAlgorithmsRequest.
122
+
123
+ Number of results to return per page.
124
+
125
+ :param limit: The limit of this ListSimAlgorithmsRequest.
126
+ :type limit: int
127
+ """
128
+ self._limit = limit
129
+
130
+ @property
131
+ def name(self):
132
+ r"""Gets the name of this ListSimAlgorithmsRequest.
133
+
134
+ :return: The name of this ListSimAlgorithmsRequest.
135
+ :rtype: str
136
+ """
137
+ return self._name
138
+
139
+ @name.setter
140
+ def name(self, name):
141
+ r"""Sets the name of this ListSimAlgorithmsRequest.
142
+
143
+ :param name: The name of this ListSimAlgorithmsRequest.
144
+ :type name: str
145
+ """
146
+ self._name = name
147
+
148
+ @property
149
+ def offset(self):
150
+ r"""Gets the offset of this ListSimAlgorithmsRequest.
151
+
152
+ The initial index from which to return the results.
153
+
154
+ :return: The offset of this ListSimAlgorithmsRequest.
155
+ :rtype: int
156
+ """
157
+ return self._offset
158
+
159
+ @offset.setter
160
+ def offset(self, offset):
161
+ r"""Sets the offset of this ListSimAlgorithmsRequest.
162
+
163
+ The initial index from which to return the results.
164
+
165
+ :param offset: The offset of this ListSimAlgorithmsRequest.
166
+ :type offset: int
167
+ """
168
+ self._offset = offset
169
+
170
+ @property
171
+ def ordering(self):
172
+ r"""Gets the ordering of this ListSimAlgorithmsRequest.
173
+
174
+ Which field to use when ordering the results.
175
+
176
+ :return: The ordering of this ListSimAlgorithmsRequest.
177
+ :rtype: str
178
+ """
179
+ return self._ordering
180
+
181
+ @ordering.setter
182
+ def ordering(self, ordering):
183
+ r"""Sets the ordering of this ListSimAlgorithmsRequest.
184
+
185
+ Which field to use when ordering the results.
186
+
187
+ :param ordering: The ordering of this ListSimAlgorithmsRequest.
188
+ :type ordering: str
189
+ """
190
+ self._ordering = ordering
191
+
192
+ @property
193
+ def image_repo_id(self):
194
+ r"""Gets the image_repo_id of this ListSimAlgorithmsRequest.
195
+
196
+ :return: The image_repo_id of this ListSimAlgorithmsRequest.
197
+ :rtype: int
198
+ """
199
+ return self._image_repo_id
200
+
201
+ @image_repo_id.setter
202
+ def image_repo_id(self, image_repo_id):
203
+ r"""Sets the image_repo_id of this ListSimAlgorithmsRequest.
204
+
205
+ :param image_repo_id: The image_repo_id of this ListSimAlgorithmsRequest.
206
+ :type image_repo_id: int
207
+ """
208
+ self._image_repo_id = image_repo_id
209
+
210
+ @property
211
+ def search(self):
212
+ r"""Gets the search of this ListSimAlgorithmsRequest.
213
+
214
+ A search term.
215
+
216
+ :return: The search of this ListSimAlgorithmsRequest.
217
+ :rtype: str
218
+ """
219
+ return self._search
220
+
221
+ @search.setter
222
+ def search(self, search):
223
+ r"""Sets the search of this ListSimAlgorithmsRequest.
224
+
225
+ A search term.
226
+
227
+ :param search: The search of this ListSimAlgorithmsRequest.
228
+ :type search: str
229
+ """
230
+ self._search = search
231
+
232
+ def to_dict(self):
233
+ """Returns the model properties as a dict"""
234
+ result = {}
235
+
236
+ for attr, _ in six.iteritems(self.openapi_types):
237
+ value = getattr(self, attr)
238
+ if isinstance(value, list):
239
+ result[attr] = list(map(
240
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
241
+ value
242
+ ))
243
+ elif hasattr(value, "to_dict"):
244
+ result[attr] = value.to_dict()
245
+ elif isinstance(value, dict):
246
+ result[attr] = dict(map(
247
+ lambda item: (item[0], item[1].to_dict())
248
+ if hasattr(item[1], "to_dict") else item,
249
+ value.items()
250
+ ))
251
+ else:
252
+ if attr in self.sensitive_list:
253
+ result[attr] = "****"
254
+ else:
255
+ result[attr] = value
256
+
257
+ return result
258
+
259
+ def to_str(self):
260
+ """Returns the string representation of the model"""
261
+ import simplejson as json
262
+ if six.PY2:
263
+ import sys
264
+ reload(sys)
265
+ sys.setdefaultencoding("utf-8")
266
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
267
+
268
+ def __repr__(self):
269
+ """For `print`"""
270
+ return self.to_str()
271
+
272
+ def __eq__(self, other):
273
+ """Returns true if both objects are equal"""
274
+ if not isinstance(other, ListSimAlgorithmsRequest):
275
+ return False
276
+
277
+ return self.__dict__ == other.__dict__
278
+
279
+ def __ne__(self, other):
280
+ """Returns true if both objects are not equal"""
281
+ return not self == other
@@ -0,0 +1,185 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class ListSimAlgorithmsResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'count': 'int',
22
+ 'next': 'str',
23
+ 'previous': 'str',
24
+ 'results': 'list[AlgorithmListSrlz]'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'count': 'count',
29
+ 'next': 'next',
30
+ 'previous': 'previous',
31
+ 'results': 'results'
32
+ }
33
+
34
+ def __init__(self, count=None, next=None, previous=None, results=None):
35
+ r"""ListSimAlgorithmsResponse
36
+
37
+ The model defined in huaweicloud sdk
38
+
39
+ :param count:
40
+ :type count: int
41
+ :param next:
42
+ :type next: str
43
+ :param previous:
44
+ :type previous: str
45
+ :param results:
46
+ :type results: list[:class:`huaweicloudsdkoctopus.v2.AlgorithmListSrlz`]
47
+ """
48
+
49
+ super(ListSimAlgorithmsResponse, self).__init__()
50
+
51
+ self._count = None
52
+ self._next = None
53
+ self._previous = None
54
+ self._results = None
55
+ self.discriminator = None
56
+
57
+ if count is not None:
58
+ self.count = count
59
+ self.next = next
60
+ self.previous = previous
61
+ if results is not None:
62
+ self.results = results
63
+
64
+ @property
65
+ def count(self):
66
+ r"""Gets the count of this ListSimAlgorithmsResponse.
67
+
68
+ :return: The count of this ListSimAlgorithmsResponse.
69
+ :rtype: int
70
+ """
71
+ return self._count
72
+
73
+ @count.setter
74
+ def count(self, count):
75
+ r"""Sets the count of this ListSimAlgorithmsResponse.
76
+
77
+ :param count: The count of this ListSimAlgorithmsResponse.
78
+ :type count: int
79
+ """
80
+ self._count = count
81
+
82
+ @property
83
+ def next(self):
84
+ r"""Gets the next of this ListSimAlgorithmsResponse.
85
+
86
+ :return: The next of this ListSimAlgorithmsResponse.
87
+ :rtype: str
88
+ """
89
+ return self._next
90
+
91
+ @next.setter
92
+ def next(self, next):
93
+ r"""Sets the next of this ListSimAlgorithmsResponse.
94
+
95
+ :param next: The next of this ListSimAlgorithmsResponse.
96
+ :type next: str
97
+ """
98
+ self._next = next
99
+
100
+ @property
101
+ def previous(self):
102
+ r"""Gets the previous of this ListSimAlgorithmsResponse.
103
+
104
+ :return: The previous of this ListSimAlgorithmsResponse.
105
+ :rtype: str
106
+ """
107
+ return self._previous
108
+
109
+ @previous.setter
110
+ def previous(self, previous):
111
+ r"""Sets the previous of this ListSimAlgorithmsResponse.
112
+
113
+ :param previous: The previous of this ListSimAlgorithmsResponse.
114
+ :type previous: str
115
+ """
116
+ self._previous = previous
117
+
118
+ @property
119
+ def results(self):
120
+ r"""Gets the results of this ListSimAlgorithmsResponse.
121
+
122
+ :return: The results of this ListSimAlgorithmsResponse.
123
+ :rtype: list[:class:`huaweicloudsdkoctopus.v2.AlgorithmListSrlz`]
124
+ """
125
+ return self._results
126
+
127
+ @results.setter
128
+ def results(self, results):
129
+ r"""Sets the results of this ListSimAlgorithmsResponse.
130
+
131
+ :param results: The results of this ListSimAlgorithmsResponse.
132
+ :type results: list[:class:`huaweicloudsdkoctopus.v2.AlgorithmListSrlz`]
133
+ """
134
+ self._results = results
135
+
136
+ def to_dict(self):
137
+ """Returns the model properties as a dict"""
138
+ result = {}
139
+
140
+ for attr, _ in six.iteritems(self.openapi_types):
141
+ value = getattr(self, attr)
142
+ if isinstance(value, list):
143
+ result[attr] = list(map(
144
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
145
+ value
146
+ ))
147
+ elif hasattr(value, "to_dict"):
148
+ result[attr] = value.to_dict()
149
+ elif isinstance(value, dict):
150
+ result[attr] = dict(map(
151
+ lambda item: (item[0], item[1].to_dict())
152
+ if hasattr(item[1], "to_dict") else item,
153
+ value.items()
154
+ ))
155
+ else:
156
+ if attr in self.sensitive_list:
157
+ result[attr] = "****"
158
+ else:
159
+ result[attr] = value
160
+
161
+ return result
162
+
163
+ def to_str(self):
164
+ """Returns the string representation of the model"""
165
+ import simplejson as json
166
+ if six.PY2:
167
+ import sys
168
+ reload(sys)
169
+ sys.setdefaultencoding("utf-8")
170
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
171
+
172
+ def __repr__(self):
173
+ """For `print`"""
174
+ return self.to_str()
175
+
176
+ def __eq__(self, other):
177
+ """Returns true if both objects are equal"""
178
+ if not isinstance(other, ListSimAlgorithmsResponse):
179
+ return False
180
+
181
+ return self.__dict__ == other.__dict__
182
+
183
+ def __ne__(self, other):
184
+ """Returns true if both objects are not equal"""
185
+ return not self == other