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.
- huaweicloudsdkoctopus/__init__.py +0 -0
- huaweicloudsdkoctopus/v2/__init__.py +122 -0
- huaweicloudsdkoctopus/v2/model/__init__.py +119 -0
- huaweicloudsdkoctopus/v2/model/alg_image_create_srlz.py +350 -0
- huaweicloudsdkoctopus/v2/model/alg_image_list_srlz.py +266 -0
- huaweicloudsdkoctopus/v2/model/algorithm_create_srlz.py +399 -0
- huaweicloudsdkoctopus/v2/model/algorithm_list_srlz.py +266 -0
- huaweicloudsdkoctopus/v2/model/batch_config_abc_info_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/batch_config_evaluation_info_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/batch_config_image_info_srlz.py +198 -0
- huaweicloudsdkoctopus/v2/model/batch_config_msg_notify_srlz.py +115 -0
- huaweicloudsdkoctopus/v2/model/batch_config_scenario_srlz.py +173 -0
- huaweicloudsdkoctopus/v2/model/batch_config_srlz.py +806 -0
- huaweicloudsdkoctopus/v2/model/batch_create_request.py +198 -0
- huaweicloudsdkoctopus/v2/model/batch_srlz.py +604 -0
- huaweicloudsdkoctopus/v2/model/build_create_srlz.py +115 -0
- huaweicloudsdkoctopus/v2/model/build_update_srlz.py +143 -0
- huaweicloudsdkoctopus/v2/model/category_f62_enum.py +89 -0
- huaweicloudsdkoctopus/v2/model/compilation_create_srlz.py +255 -0
- huaweicloudsdkoctopus/v2/model/compilation_update_srlz.py +311 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_response.py +361 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithms_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithms_response.py +404 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_response.py +819 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batches_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batches_response.py +619 -0
- huaweicloudsdkoctopus/v2/model/create_sim_extensions_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_extensions_response.py +314 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_response.py +253 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_response.py +377 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_response.py +618 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batches_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batches_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_extensions_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_extensions_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/extension_srlz.py +353 -0
- huaweicloudsdkoctopus/v2/model/extensions_create_srlz.py +306 -0
- huaweicloudsdkoctopus/v2/model/extensions_list_srlz.py +291 -0
- huaweicloudsdkoctopus/v2/model/family_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/file_create_req_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/file_create_srlz.py +366 -0
- huaweicloudsdkoctopus/v2/model/file_nested_create_req_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/file_nested_srlz.py +279 -0
- huaweicloudsdkoctopus/v2/model/file_retrieve_srlz.py +310 -0
- huaweicloudsdkoctopus/v2/model/label_brief_srlz.py +279 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_request.py +339 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithms_request.py +281 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithms_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_request.py +625 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batches_request.py +426 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batches_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_extensions_request.py +202 -0
- huaweicloudsdkoctopus/v2/model/list_sim_extensions_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_simulations_request.py +401 -0
- huaweicloudsdkoctopus/v2/model/list_sim_simulations_response.py +189 -0
- huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_request.py +547 -0
- huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/map_create_req_srlz.py +162 -0
- huaweicloudsdkoctopus/v2/model/map_version_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/mutable_file_srlz.py +114 -0
- huaweicloudsdkoctopus/v2/model/patched_alg_image_update_srlz.py +302 -0
- huaweicloudsdkoctopus/v2/model/patched_algorithm_update_srlz.py +796 -0
- huaweicloudsdkoctopus/v2/model/patched_file_detail_srlz.py +144 -0
- huaweicloudsdkoctopus/v2/model/post_response.py +140 -0
- huaweicloudsdkoctopus/v2/model/post_response_field.py +236 -0
- huaweicloudsdkoctopus/v2/model/priority_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/record_mode_enum.py +88 -0
- huaweicloudsdkoctopus/v2/model/run_image_status_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/run_srlz.py +254 -0
- huaweicloudsdkoctopus/v2/model/scenario_create_req_srlz.py +439 -0
- huaweicloudsdkoctopus/v2/model/scenario_list_srlz.py +548 -0
- huaweicloudsdkoctopus/v2/model/scenario_status_enum.py +92 -0
- huaweicloudsdkoctopus/v2/model/scenario_version_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_response.py +361 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_response.py +377 -0
- huaweicloudsdkoctopus/v2/model/show_sim_batch_config_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/show_sim_batch_config_response.py +819 -0
- huaweicloudsdkoctopus/v2/model/show_sim_extension_request.py +110 -0
- huaweicloudsdkoctopus/v2/model/show_sim_extension_response.py +353 -0
- huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_request.py +142 -0
- huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_response.py +290 -0
- huaweicloudsdkoctopus/v2/model/simulation_eva_result_metric_srlz.py +260 -0
- huaweicloudsdkoctopus/v2/model/simulation_eva_result_srlz.py +231 -0
- huaweicloudsdkoctopus/v2/model/simulation_evaluation_metric_srlz.py +289 -0
- huaweicloudsdkoctopus/v2/model/simulation_evaluation_srlz.py +231 -0
- huaweicloudsdkoctopus/v2/model/simulation_file_path_srlz.py +347 -0
- huaweicloudsdkoctopus/v2/model/simulation_srlz.py +708 -0
- huaweicloudsdkoctopus/v2/model/status15e_enum.py +99 -0
- huaweicloudsdkoctopus/v2/model/status6a7_enum.py +106 -0
- huaweicloudsdkoctopus/v2/model/type87e_enum.py +88 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_response.py +303 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithms_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithms_response.py +431 -0
- huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_request.py +138 -0
- huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/update_sim_extensions_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/update_sim_extensions_response.py +356 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_request.py +167 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_response.py +435 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_request.py +167 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_response.py +435 -0
- huaweicloudsdkoctopus/v2/octopus_async_client.py +2262 -0
- huaweicloudsdkoctopus/v2/octopus_client.py +2259 -0
- huaweicloudsdkoctopus/v2/region/__init__.py +0 -0
- huaweicloudsdkoctopus/v2/region/octopus_region.py +31 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/RECORD +126 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,253 @@
|
|
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 CreateSimSmMapsResponse(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
|
+
'file': 'FileCreateSrlz',
|
26
|
+
'version': 'MapVersionEnum'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'url': 'url',
|
31
|
+
'id': 'id',
|
32
|
+
'created_at': 'created_at',
|
33
|
+
'updated_at': 'updated_at',
|
34
|
+
'file': 'file',
|
35
|
+
'version': 'version'
|
36
|
+
}
|
37
|
+
|
38
|
+
def __init__(self, url=None, id=None, created_at=None, updated_at=None, file=None, version=None):
|
39
|
+
r"""CreateSimSmMapsResponse
|
40
|
+
|
41
|
+
The model defined in huaweicloud sdk
|
42
|
+
|
43
|
+
:param url: 地址
|
44
|
+
:type url: str
|
45
|
+
:param id: ID
|
46
|
+
:type id: int
|
47
|
+
:param created_at: 创建时间
|
48
|
+
:type created_at: float
|
49
|
+
:param updated_at: 更新时间
|
50
|
+
:type updated_at: float
|
51
|
+
:param file:
|
52
|
+
:type file: :class:`huaweicloudsdkoctopus.v2.FileCreateSrlz`
|
53
|
+
:param version:
|
54
|
+
:type version: :class:`huaweicloudsdkoctopus.v2.MapVersionEnum`
|
55
|
+
"""
|
56
|
+
|
57
|
+
super(CreateSimSmMapsResponse, self).__init__()
|
58
|
+
|
59
|
+
self._url = None
|
60
|
+
self._id = None
|
61
|
+
self._created_at = None
|
62
|
+
self._updated_at = None
|
63
|
+
self._file = None
|
64
|
+
self._version = None
|
65
|
+
self.discriminator = None
|
66
|
+
|
67
|
+
if url is not None:
|
68
|
+
self.url = url
|
69
|
+
if id is not None:
|
70
|
+
self.id = id
|
71
|
+
if created_at is not None:
|
72
|
+
self.created_at = created_at
|
73
|
+
if updated_at is not None:
|
74
|
+
self.updated_at = updated_at
|
75
|
+
if file is not None:
|
76
|
+
self.file = file
|
77
|
+
if version is not None:
|
78
|
+
self.version = version
|
79
|
+
|
80
|
+
@property
|
81
|
+
def url(self):
|
82
|
+
r"""Gets the url of this CreateSimSmMapsResponse.
|
83
|
+
|
84
|
+
地址
|
85
|
+
|
86
|
+
:return: The url of this CreateSimSmMapsResponse.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._url
|
90
|
+
|
91
|
+
@url.setter
|
92
|
+
def url(self, url):
|
93
|
+
r"""Sets the url of this CreateSimSmMapsResponse.
|
94
|
+
|
95
|
+
地址
|
96
|
+
|
97
|
+
:param url: The url of this CreateSimSmMapsResponse.
|
98
|
+
:type url: str
|
99
|
+
"""
|
100
|
+
self._url = url
|
101
|
+
|
102
|
+
@property
|
103
|
+
def id(self):
|
104
|
+
r"""Gets the id of this CreateSimSmMapsResponse.
|
105
|
+
|
106
|
+
ID
|
107
|
+
|
108
|
+
:return: The id of this CreateSimSmMapsResponse.
|
109
|
+
:rtype: int
|
110
|
+
"""
|
111
|
+
return self._id
|
112
|
+
|
113
|
+
@id.setter
|
114
|
+
def id(self, id):
|
115
|
+
r"""Sets the id of this CreateSimSmMapsResponse.
|
116
|
+
|
117
|
+
ID
|
118
|
+
|
119
|
+
:param id: The id of this CreateSimSmMapsResponse.
|
120
|
+
:type id: int
|
121
|
+
"""
|
122
|
+
self._id = id
|
123
|
+
|
124
|
+
@property
|
125
|
+
def created_at(self):
|
126
|
+
r"""Gets the created_at of this CreateSimSmMapsResponse.
|
127
|
+
|
128
|
+
创建时间
|
129
|
+
|
130
|
+
:return: The created_at of this CreateSimSmMapsResponse.
|
131
|
+
:rtype: float
|
132
|
+
"""
|
133
|
+
return self._created_at
|
134
|
+
|
135
|
+
@created_at.setter
|
136
|
+
def created_at(self, created_at):
|
137
|
+
r"""Sets the created_at of this CreateSimSmMapsResponse.
|
138
|
+
|
139
|
+
创建时间
|
140
|
+
|
141
|
+
:param created_at: The created_at of this CreateSimSmMapsResponse.
|
142
|
+
:type created_at: float
|
143
|
+
"""
|
144
|
+
self._created_at = created_at
|
145
|
+
|
146
|
+
@property
|
147
|
+
def updated_at(self):
|
148
|
+
r"""Gets the updated_at of this CreateSimSmMapsResponse.
|
149
|
+
|
150
|
+
更新时间
|
151
|
+
|
152
|
+
:return: The updated_at of this CreateSimSmMapsResponse.
|
153
|
+
:rtype: float
|
154
|
+
"""
|
155
|
+
return self._updated_at
|
156
|
+
|
157
|
+
@updated_at.setter
|
158
|
+
def updated_at(self, updated_at):
|
159
|
+
r"""Sets the updated_at of this CreateSimSmMapsResponse.
|
160
|
+
|
161
|
+
更新时间
|
162
|
+
|
163
|
+
:param updated_at: The updated_at of this CreateSimSmMapsResponse.
|
164
|
+
:type updated_at: float
|
165
|
+
"""
|
166
|
+
self._updated_at = updated_at
|
167
|
+
|
168
|
+
@property
|
169
|
+
def file(self):
|
170
|
+
r"""Gets the file of this CreateSimSmMapsResponse.
|
171
|
+
|
172
|
+
:return: The file of this CreateSimSmMapsResponse.
|
173
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.FileCreateSrlz`
|
174
|
+
"""
|
175
|
+
return self._file
|
176
|
+
|
177
|
+
@file.setter
|
178
|
+
def file(self, file):
|
179
|
+
r"""Sets the file of this CreateSimSmMapsResponse.
|
180
|
+
|
181
|
+
:param file: The file of this CreateSimSmMapsResponse.
|
182
|
+
:type file: :class:`huaweicloudsdkoctopus.v2.FileCreateSrlz`
|
183
|
+
"""
|
184
|
+
self._file = file
|
185
|
+
|
186
|
+
@property
|
187
|
+
def version(self):
|
188
|
+
r"""Gets the version of this CreateSimSmMapsResponse.
|
189
|
+
|
190
|
+
:return: The version of this CreateSimSmMapsResponse.
|
191
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.MapVersionEnum`
|
192
|
+
"""
|
193
|
+
return self._version
|
194
|
+
|
195
|
+
@version.setter
|
196
|
+
def version(self, version):
|
197
|
+
r"""Sets the version of this CreateSimSmMapsResponse.
|
198
|
+
|
199
|
+
:param version: The version of this CreateSimSmMapsResponse.
|
200
|
+
:type version: :class:`huaweicloudsdkoctopus.v2.MapVersionEnum`
|
201
|
+
"""
|
202
|
+
self._version = version
|
203
|
+
|
204
|
+
def to_dict(self):
|
205
|
+
"""Returns the model properties as a dict"""
|
206
|
+
result = {}
|
207
|
+
|
208
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
209
|
+
value = getattr(self, attr)
|
210
|
+
if isinstance(value, list):
|
211
|
+
result[attr] = list(map(
|
212
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
213
|
+
value
|
214
|
+
))
|
215
|
+
elif hasattr(value, "to_dict"):
|
216
|
+
result[attr] = value.to_dict()
|
217
|
+
elif isinstance(value, dict):
|
218
|
+
result[attr] = dict(map(
|
219
|
+
lambda item: (item[0], item[1].to_dict())
|
220
|
+
if hasattr(item[1], "to_dict") else item,
|
221
|
+
value.items()
|
222
|
+
))
|
223
|
+
else:
|
224
|
+
if attr in self.sensitive_list:
|
225
|
+
result[attr] = "****"
|
226
|
+
else:
|
227
|
+
result[attr] = value
|
228
|
+
|
229
|
+
return result
|
230
|
+
|
231
|
+
def to_str(self):
|
232
|
+
"""Returns the string representation of the model"""
|
233
|
+
import simplejson as json
|
234
|
+
if six.PY2:
|
235
|
+
import sys
|
236
|
+
reload(sys)
|
237
|
+
sys.setdefaultencoding("utf-8")
|
238
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
239
|
+
|
240
|
+
def __repr__(self):
|
241
|
+
"""For `print`"""
|
242
|
+
return self.to_str()
|
243
|
+
|
244
|
+
def __eq__(self, other):
|
245
|
+
"""Returns true if both objects are equal"""
|
246
|
+
if not isinstance(other, CreateSimSmMapsResponse):
|
247
|
+
return False
|
248
|
+
|
249
|
+
return self.__dict__ == other.__dict__
|
250
|
+
|
251
|
+
def __ne__(self, other):
|
252
|
+
"""Returns true if both objects are not equal"""
|
253
|
+
return not self == other
|
@@ -0,0 +1,139 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateSimSmScenariosFilesRequest:
|
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
|
+
'parent_lookup_id': 'str',
|
21
|
+
'body': 'FileNestedCreateReqSrlz'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'parent_lookup_id': 'parent_lookup_id',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, parent_lookup_id=None, body=None):
|
30
|
+
r"""CreateSimSmScenariosFilesRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param parent_lookup_id: 场景ID
|
35
|
+
:type parent_lookup_id: str
|
36
|
+
:param body: Body of the CreateSimSmScenariosFilesRequest
|
37
|
+
:type body: :class:`huaweicloudsdkoctopus.v2.FileNestedCreateReqSrlz`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._parent_lookup_id = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.parent_lookup_id = parent_lookup_id
|
47
|
+
if body is not None:
|
48
|
+
self.body = body
|
49
|
+
|
50
|
+
@property
|
51
|
+
def parent_lookup_id(self):
|
52
|
+
r"""Gets the parent_lookup_id of this CreateSimSmScenariosFilesRequest.
|
53
|
+
|
54
|
+
场景ID
|
55
|
+
|
56
|
+
:return: The parent_lookup_id of this CreateSimSmScenariosFilesRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._parent_lookup_id
|
60
|
+
|
61
|
+
@parent_lookup_id.setter
|
62
|
+
def parent_lookup_id(self, parent_lookup_id):
|
63
|
+
r"""Sets the parent_lookup_id of this CreateSimSmScenariosFilesRequest.
|
64
|
+
|
65
|
+
场景ID
|
66
|
+
|
67
|
+
:param parent_lookup_id: The parent_lookup_id of this CreateSimSmScenariosFilesRequest.
|
68
|
+
:type parent_lookup_id: str
|
69
|
+
"""
|
70
|
+
self._parent_lookup_id = parent_lookup_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def body(self):
|
74
|
+
r"""Gets the body of this CreateSimSmScenariosFilesRequest.
|
75
|
+
|
76
|
+
:return: The body of this CreateSimSmScenariosFilesRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.FileNestedCreateReqSrlz`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
r"""Sets the body of this CreateSimSmScenariosFilesRequest.
|
84
|
+
|
85
|
+
:param body: The body of this CreateSimSmScenariosFilesRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkoctopus.v2.FileNestedCreateReqSrlz`
|
87
|
+
"""
|
88
|
+
self._body = body
|
89
|
+
|
90
|
+
def to_dict(self):
|
91
|
+
"""Returns the model properties as a dict"""
|
92
|
+
result = {}
|
93
|
+
|
94
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
95
|
+
value = getattr(self, attr)
|
96
|
+
if isinstance(value, list):
|
97
|
+
result[attr] = list(map(
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
99
|
+
value
|
100
|
+
))
|
101
|
+
elif hasattr(value, "to_dict"):
|
102
|
+
result[attr] = value.to_dict()
|
103
|
+
elif isinstance(value, dict):
|
104
|
+
result[attr] = dict(map(
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
107
|
+
value.items()
|
108
|
+
))
|
109
|
+
else:
|
110
|
+
if attr in self.sensitive_list:
|
111
|
+
result[attr] = "****"
|
112
|
+
else:
|
113
|
+
result[attr] = value
|
114
|
+
|
115
|
+
return result
|
116
|
+
|
117
|
+
def to_str(self):
|
118
|
+
"""Returns the string representation of the model"""
|
119
|
+
import simplejson as json
|
120
|
+
if six.PY2:
|
121
|
+
import sys
|
122
|
+
reload(sys)
|
123
|
+
sys.setdefaultencoding("utf-8")
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
125
|
+
|
126
|
+
def __repr__(self):
|
127
|
+
"""For `print`"""
|
128
|
+
return self.to_str()
|
129
|
+
|
130
|
+
def __eq__(self, other):
|
131
|
+
"""Returns true if both objects are equal"""
|
132
|
+
if not isinstance(other, CreateSimSmScenariosFilesRequest):
|
133
|
+
return False
|
134
|
+
|
135
|
+
return self.__dict__ == other.__dict__
|
136
|
+
|
137
|
+
def __ne__(self, other):
|
138
|
+
"""Returns true if both objects are not equal"""
|
139
|
+
return not self == other
|