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,110 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowSimExtensionRequest:
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
+ 'id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'id': 'id'
25
+ }
26
+
27
+ def __init__(self, id=None):
28
+ r"""ShowSimExtensionRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param id:
33
+ :type id: str
34
+ """
35
+
36
+
37
+
38
+ self._id = None
39
+ self.discriminator = None
40
+
41
+ self.id = id
42
+
43
+ @property
44
+ def id(self):
45
+ r"""Gets the id of this ShowSimExtensionRequest.
46
+
47
+ :return: The id of this ShowSimExtensionRequest.
48
+ :rtype: str
49
+ """
50
+ return self._id
51
+
52
+ @id.setter
53
+ def id(self, id):
54
+ r"""Sets the id of this ShowSimExtensionRequest.
55
+
56
+ :param id: The id of this ShowSimExtensionRequest.
57
+ :type id: str
58
+ """
59
+ self._id = id
60
+
61
+ def to_dict(self):
62
+ """Returns the model properties as a dict"""
63
+ result = {}
64
+
65
+ for attr, _ in six.iteritems(self.openapi_types):
66
+ value = getattr(self, attr)
67
+ if isinstance(value, list):
68
+ result[attr] = list(map(
69
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
70
+ value
71
+ ))
72
+ elif hasattr(value, "to_dict"):
73
+ result[attr] = value.to_dict()
74
+ elif isinstance(value, dict):
75
+ result[attr] = dict(map(
76
+ lambda item: (item[0], item[1].to_dict())
77
+ if hasattr(item[1], "to_dict") else item,
78
+ value.items()
79
+ ))
80
+ else:
81
+ if attr in self.sensitive_list:
82
+ result[attr] = "****"
83
+ else:
84
+ result[attr] = value
85
+
86
+ return result
87
+
88
+ def to_str(self):
89
+ """Returns the string representation of the model"""
90
+ import simplejson as json
91
+ if six.PY2:
92
+ import sys
93
+ reload(sys)
94
+ sys.setdefaultencoding("utf-8")
95
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
96
+
97
+ def __repr__(self):
98
+ """For `print`"""
99
+ return self.to_str()
100
+
101
+ def __eq__(self, other):
102
+ """Returns true if both objects are equal"""
103
+ if not isinstance(other, ShowSimExtensionRequest):
104
+ return False
105
+
106
+ return self.__dict__ == other.__dict__
107
+
108
+ def __ne__(self, other):
109
+ """Returns true if both objects are not equal"""
110
+ return not self == other
@@ -0,0 +1,353 @@
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 ShowSimExtensionResponse(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
+ 'url': 'str',
22
+ 'id': 'int',
23
+ 'created_at': 'float',
24
+ 'updated_at': 'float',
25
+ 'status': 'int',
26
+ 'file': 'FileRetrieveSrlz',
27
+ 'name': 'str',
28
+ 'description': 'str',
29
+ 'filename': 'str',
30
+ 'mount_path': 'str'
31
+ }
32
+
33
+ attribute_map = {
34
+ 'url': 'url',
35
+ 'id': 'id',
36
+ 'created_at': 'created_at',
37
+ 'updated_at': 'updated_at',
38
+ 'status': 'status',
39
+ 'file': 'file',
40
+ 'name': 'name',
41
+ 'description': 'description',
42
+ 'filename': 'filename',
43
+ 'mount_path': 'mount_path'
44
+ }
45
+
46
+ def __init__(self, url=None, id=None, created_at=None, updated_at=None, status=None, file=None, name=None, description=None, filename=None, mount_path=None):
47
+ r"""ShowSimExtensionResponse
48
+
49
+ The model defined in huaweicloud sdk
50
+
51
+ :param url:
52
+ :type url: str
53
+ :param id:
54
+ :type id: int
55
+ :param created_at:
56
+ :type created_at: float
57
+ :param updated_at:
58
+ :type updated_at: float
59
+ :param status:
60
+ :type status: int
61
+ :param file:
62
+ :type file: :class:`huaweicloudsdkoctopus.v2.FileRetrieveSrlz`
63
+ :param name: 名称
64
+ :type name: str
65
+ :param description: 描述
66
+ :type description: str
67
+ :param filename: 文件名称
68
+ :type filename: str
69
+ :param mount_path: 加载路径
70
+ :type mount_path: str
71
+ """
72
+
73
+ super(ShowSimExtensionResponse, self).__init__()
74
+
75
+ self._url = None
76
+ self._id = None
77
+ self._created_at = None
78
+ self._updated_at = None
79
+ self._status = None
80
+ self._file = None
81
+ self._name = None
82
+ self._description = None
83
+ self._filename = None
84
+ self._mount_path = None
85
+ self.discriminator = None
86
+
87
+ if url is not None:
88
+ self.url = url
89
+ if id is not None:
90
+ self.id = id
91
+ if created_at is not None:
92
+ self.created_at = created_at
93
+ if updated_at is not None:
94
+ self.updated_at = updated_at
95
+ if status is not None:
96
+ self.status = status
97
+ if file is not None:
98
+ self.file = file
99
+ if name is not None:
100
+ self.name = name
101
+ if description is not None:
102
+ self.description = description
103
+ if filename is not None:
104
+ self.filename = filename
105
+ if mount_path is not None:
106
+ self.mount_path = mount_path
107
+
108
+ @property
109
+ def url(self):
110
+ r"""Gets the url of this ShowSimExtensionResponse.
111
+
112
+ :return: The url of this ShowSimExtensionResponse.
113
+ :rtype: str
114
+ """
115
+ return self._url
116
+
117
+ @url.setter
118
+ def url(self, url):
119
+ r"""Sets the url of this ShowSimExtensionResponse.
120
+
121
+ :param url: The url of this ShowSimExtensionResponse.
122
+ :type url: str
123
+ """
124
+ self._url = url
125
+
126
+ @property
127
+ def id(self):
128
+ r"""Gets the id of this ShowSimExtensionResponse.
129
+
130
+ :return: The id of this ShowSimExtensionResponse.
131
+ :rtype: int
132
+ """
133
+ return self._id
134
+
135
+ @id.setter
136
+ def id(self, id):
137
+ r"""Sets the id of this ShowSimExtensionResponse.
138
+
139
+ :param id: The id of this ShowSimExtensionResponse.
140
+ :type id: int
141
+ """
142
+ self._id = id
143
+
144
+ @property
145
+ def created_at(self):
146
+ r"""Gets the created_at of this ShowSimExtensionResponse.
147
+
148
+ :return: The created_at of this ShowSimExtensionResponse.
149
+ :rtype: float
150
+ """
151
+ return self._created_at
152
+
153
+ @created_at.setter
154
+ def created_at(self, created_at):
155
+ r"""Sets the created_at of this ShowSimExtensionResponse.
156
+
157
+ :param created_at: The created_at of this ShowSimExtensionResponse.
158
+ :type created_at: float
159
+ """
160
+ self._created_at = created_at
161
+
162
+ @property
163
+ def updated_at(self):
164
+ r"""Gets the updated_at of this ShowSimExtensionResponse.
165
+
166
+ :return: The updated_at of this ShowSimExtensionResponse.
167
+ :rtype: float
168
+ """
169
+ return self._updated_at
170
+
171
+ @updated_at.setter
172
+ def updated_at(self, updated_at):
173
+ r"""Sets the updated_at of this ShowSimExtensionResponse.
174
+
175
+ :param updated_at: The updated_at of this ShowSimExtensionResponse.
176
+ :type updated_at: float
177
+ """
178
+ self._updated_at = updated_at
179
+
180
+ @property
181
+ def status(self):
182
+ r"""Gets the status of this ShowSimExtensionResponse.
183
+
184
+ :return: The status of this ShowSimExtensionResponse.
185
+ :rtype: int
186
+ """
187
+ return self._status
188
+
189
+ @status.setter
190
+ def status(self, status):
191
+ r"""Sets the status of this ShowSimExtensionResponse.
192
+
193
+ :param status: The status of this ShowSimExtensionResponse.
194
+ :type status: int
195
+ """
196
+ self._status = status
197
+
198
+ @property
199
+ def file(self):
200
+ r"""Gets the file of this ShowSimExtensionResponse.
201
+
202
+ :return: The file of this ShowSimExtensionResponse.
203
+ :rtype: :class:`huaweicloudsdkoctopus.v2.FileRetrieveSrlz`
204
+ """
205
+ return self._file
206
+
207
+ @file.setter
208
+ def file(self, file):
209
+ r"""Sets the file of this ShowSimExtensionResponse.
210
+
211
+ :param file: The file of this ShowSimExtensionResponse.
212
+ :type file: :class:`huaweicloudsdkoctopus.v2.FileRetrieveSrlz`
213
+ """
214
+ self._file = file
215
+
216
+ @property
217
+ def name(self):
218
+ r"""Gets the name of this ShowSimExtensionResponse.
219
+
220
+ 名称
221
+
222
+ :return: The name of this ShowSimExtensionResponse.
223
+ :rtype: str
224
+ """
225
+ return self._name
226
+
227
+ @name.setter
228
+ def name(self, name):
229
+ r"""Sets the name of this ShowSimExtensionResponse.
230
+
231
+ 名称
232
+
233
+ :param name: The name of this ShowSimExtensionResponse.
234
+ :type name: str
235
+ """
236
+ self._name = name
237
+
238
+ @property
239
+ def description(self):
240
+ r"""Gets the description of this ShowSimExtensionResponse.
241
+
242
+ 描述
243
+
244
+ :return: The description of this ShowSimExtensionResponse.
245
+ :rtype: str
246
+ """
247
+ return self._description
248
+
249
+ @description.setter
250
+ def description(self, description):
251
+ r"""Sets the description of this ShowSimExtensionResponse.
252
+
253
+ 描述
254
+
255
+ :param description: The description of this ShowSimExtensionResponse.
256
+ :type description: str
257
+ """
258
+ self._description = description
259
+
260
+ @property
261
+ def filename(self):
262
+ r"""Gets the filename of this ShowSimExtensionResponse.
263
+
264
+ 文件名称
265
+
266
+ :return: The filename of this ShowSimExtensionResponse.
267
+ :rtype: str
268
+ """
269
+ return self._filename
270
+
271
+ @filename.setter
272
+ def filename(self, filename):
273
+ r"""Sets the filename of this ShowSimExtensionResponse.
274
+
275
+ 文件名称
276
+
277
+ :param filename: The filename of this ShowSimExtensionResponse.
278
+ :type filename: str
279
+ """
280
+ self._filename = filename
281
+
282
+ @property
283
+ def mount_path(self):
284
+ r"""Gets the mount_path of this ShowSimExtensionResponse.
285
+
286
+ 加载路径
287
+
288
+ :return: The mount_path of this ShowSimExtensionResponse.
289
+ :rtype: str
290
+ """
291
+ return self._mount_path
292
+
293
+ @mount_path.setter
294
+ def mount_path(self, mount_path):
295
+ r"""Sets the mount_path of this ShowSimExtensionResponse.
296
+
297
+ 加载路径
298
+
299
+ :param mount_path: The mount_path of this ShowSimExtensionResponse.
300
+ :type mount_path: str
301
+ """
302
+ self._mount_path = mount_path
303
+
304
+ def to_dict(self):
305
+ """Returns the model properties as a dict"""
306
+ result = {}
307
+
308
+ for attr, _ in six.iteritems(self.openapi_types):
309
+ value = getattr(self, attr)
310
+ if isinstance(value, list):
311
+ result[attr] = list(map(
312
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
313
+ value
314
+ ))
315
+ elif hasattr(value, "to_dict"):
316
+ result[attr] = value.to_dict()
317
+ elif isinstance(value, dict):
318
+ result[attr] = dict(map(
319
+ lambda item: (item[0], item[1].to_dict())
320
+ if hasattr(item[1], "to_dict") else item,
321
+ value.items()
322
+ ))
323
+ else:
324
+ if attr in self.sensitive_list:
325
+ result[attr] = "****"
326
+ else:
327
+ result[attr] = value
328
+
329
+ return result
330
+
331
+ def to_str(self):
332
+ """Returns the string representation of the model"""
333
+ import simplejson as json
334
+ if six.PY2:
335
+ import sys
336
+ reload(sys)
337
+ sys.setdefaultencoding("utf-8")
338
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
339
+
340
+ def __repr__(self):
341
+ """For `print`"""
342
+ return self.to_str()
343
+
344
+ def __eq__(self, other):
345
+ """Returns true if both objects are equal"""
346
+ if not isinstance(other, ShowSimExtensionResponse):
347
+ return False
348
+
349
+ return self.__dict__ == other.__dict__
350
+
351
+ def __ne__(self, other):
352
+ """Returns true if both objects are not equal"""
353
+ return not self == other
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowSimSimulationsFilesRequest:
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
+ 'id': 'int',
21
+ 'type': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'id': 'id',
26
+ 'type': 'type'
27
+ }
28
+
29
+ def __init__(self, id=None, type=None):
30
+ r"""ShowSimSimulationsFilesRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param id: A unique integer value identifying this simulation.
35
+ :type id: int
36
+ :param type: 获取的文件类型 * `algorithm_log` - 算法日志文件 * `algorithm_pb` - 算法pb文件 * `algorithm_meta` - 算法pb文件元数据 * `sim_osi` - 仿真pb文件 * `osi_meta` - 仿真pb文件元数据 * `evaluation` - 评测pb文件 * `evaluation_log` - 评测日志文件
37
+ :type type: str
38
+ """
39
+
40
+
41
+
42
+ self._id = None
43
+ self._type = None
44
+ self.discriminator = None
45
+
46
+ self.id = id
47
+ self.type = type
48
+
49
+ @property
50
+ def id(self):
51
+ r"""Gets the id of this ShowSimSimulationsFilesRequest.
52
+
53
+ A unique integer value identifying this simulation.
54
+
55
+ :return: The id of this ShowSimSimulationsFilesRequest.
56
+ :rtype: int
57
+ """
58
+ return self._id
59
+
60
+ @id.setter
61
+ def id(self, id):
62
+ r"""Sets the id of this ShowSimSimulationsFilesRequest.
63
+
64
+ A unique integer value identifying this simulation.
65
+
66
+ :param id: The id of this ShowSimSimulationsFilesRequest.
67
+ :type id: int
68
+ """
69
+ self._id = id
70
+
71
+ @property
72
+ def type(self):
73
+ r"""Gets the type of this ShowSimSimulationsFilesRequest.
74
+
75
+ 获取的文件类型 * `algorithm_log` - 算法日志文件 * `algorithm_pb` - 算法pb文件 * `algorithm_meta` - 算法pb文件元数据 * `sim_osi` - 仿真pb文件 * `osi_meta` - 仿真pb文件元数据 * `evaluation` - 评测pb文件 * `evaluation_log` - 评测日志文件
76
+
77
+ :return: The type of this ShowSimSimulationsFilesRequest.
78
+ :rtype: str
79
+ """
80
+ return self._type
81
+
82
+ @type.setter
83
+ def type(self, type):
84
+ r"""Sets the type of this ShowSimSimulationsFilesRequest.
85
+
86
+ 获取的文件类型 * `algorithm_log` - 算法日志文件 * `algorithm_pb` - 算法pb文件 * `algorithm_meta` - 算法pb文件元数据 * `sim_osi` - 仿真pb文件 * `osi_meta` - 仿真pb文件元数据 * `evaluation` - 评测pb文件 * `evaluation_log` - 评测日志文件
87
+
88
+ :param type: The type of this ShowSimSimulationsFilesRequest.
89
+ :type type: str
90
+ """
91
+ self._type = type
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, ShowSimSimulationsFilesRequest):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other