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