huaweicloudsdkdwr 3.1.181__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 (174) hide show
  1. huaweicloudsdkdwr/__init__.py +0 -0
  2. huaweicloudsdkdwr/v1/__init__.py +97 -0
  3. huaweicloudsdkdwr/v1/dwr_async_client.py +1584 -0
  4. huaweicloudsdkdwr/v1/dwr_client.py +1581 -0
  5. huaweicloudsdkdwr/v1/model/__init__.py +94 -0
  6. huaweicloudsdkdwr/v1/model/build_progress.py +224 -0
  7. huaweicloudsdkdwr/v1/model/charge_info.py +223 -0
  8. huaweicloudsdkdwr/v1/model/collection_base_info.py +135 -0
  9. huaweicloudsdkdwr/v1/model/create_collection_body.py +274 -0
  10. huaweicloudsdkdwr/v1/model/create_collection_request.py +104 -0
  11. huaweicloudsdkdwr/v1/model/create_collection_response.py +141 -0
  12. huaweicloudsdkdwr/v1/model/create_index_body.py +159 -0
  13. huaweicloudsdkdwr/v1/model/create_index_request.py +104 -0
  14. huaweicloudsdkdwr/v1/model/create_index_response.py +141 -0
  15. huaweicloudsdkdwr/v1/model/create_store_body.py +241 -0
  16. huaweicloudsdkdwr/v1/model/create_store_data.py +328 -0
  17. huaweicloudsdkdwr/v1/model/create_store_request.py +104 -0
  18. huaweicloudsdkdwr/v1/model/create_store_response.py +166 -0
  19. huaweicloudsdkdwr/v1/model/decribe_collection_data.py +337 -0
  20. huaweicloudsdkdwr/v1/model/delete_collection_request.py +104 -0
  21. huaweicloudsdkdwr/v1/model/delete_collection_response.py +141 -0
  22. huaweicloudsdkdwr/v1/model/delete_entities_body.py +163 -0
  23. huaweicloudsdkdwr/v1/model/delete_entities_request.py +104 -0
  24. huaweicloudsdkdwr/v1/model/delete_entities_response.py +141 -0
  25. huaweicloudsdkdwr/v1/model/delete_index_body.py +163 -0
  26. huaweicloudsdkdwr/v1/model/delete_index_request.py +104 -0
  27. huaweicloudsdkdwr/v1/model/delete_index_response.py +141 -0
  28. huaweicloudsdkdwr/v1/model/delete_store_data.py +107 -0
  29. huaweicloudsdkdwr/v1/model/delete_store_request.py +104 -0
  30. huaweicloudsdkdwr/v1/model/delete_store_response.py +166 -0
  31. huaweicloudsdkdwr/v1/model/describe_collection_request.py +104 -0
  32. huaweicloudsdkdwr/v1/model/describe_collection_response.py +166 -0
  33. huaweicloudsdkdwr/v1/model/describe_index_body.py +163 -0
  34. huaweicloudsdkdwr/v1/model/describe_index_data.py +159 -0
  35. huaweicloudsdkdwr/v1/model/describe_index_request.py +104 -0
  36. huaweicloudsdkdwr/v1/model/describe_index_response.py +166 -0
  37. huaweicloudsdkdwr/v1/model/describe_job_body.py +107 -0
  38. huaweicloudsdkdwr/v1/model/describe_job_request.py +104 -0
  39. huaweicloudsdkdwr/v1/model/describe_job_response.py +166 -0
  40. huaweicloudsdkdwr/v1/model/describe_store_request.py +104 -0
  41. huaweicloudsdkdwr/v1/model/describe_store_response.py +166 -0
  42. huaweicloudsdkdwr/v1/model/entities_data.py +107 -0
  43. huaweicloudsdkdwr/v1/model/field.py +222 -0
  44. huaweicloudsdkdwr/v1/model/field_data.py +278 -0
  45. huaweicloudsdkdwr/v1/model/flavor.py +135 -0
  46. huaweicloudsdkdwr/v1/model/get_index_progress_body.py +163 -0
  47. huaweicloudsdkdwr/v1/model/get_progress_data.py +160 -0
  48. huaweicloudsdkdwr/v1/model/get_progress_request.py +104 -0
  49. huaweicloudsdkdwr/v1/model/get_progress_response.py +166 -0
  50. huaweicloudsdkdwr/v1/model/hybrid_search_body.py +275 -0
  51. huaweicloudsdkdwr/v1/model/hybrid_search_request.py +104 -0
  52. huaweicloudsdkdwr/v1/model/hybrid_search_response.py +166 -0
  53. huaweicloudsdkdwr/v1/model/index_desc.py +191 -0
  54. huaweicloudsdkdwr/v1/model/index_params.py +164 -0
  55. huaweicloudsdkdwr/v1/model/insert_entities_body.py +163 -0
  56. huaweicloudsdkdwr/v1/model/insert_entities_data.py +136 -0
  57. huaweicloudsdkdwr/v1/model/insert_entities_request.py +104 -0
  58. huaweicloudsdkdwr/v1/model/insert_entities_response.py +166 -0
  59. huaweicloudsdkdwr/v1/model/job_data.py +309 -0
  60. huaweicloudsdkdwr/v1/model/list_collection_data.py +136 -0
  61. huaweicloudsdkdwr/v1/model/list_collection_details.py +253 -0
  62. huaweicloudsdkdwr/v1/model/list_collections_body.py +136 -0
  63. huaweicloudsdkdwr/v1/model/list_collections_request.py +104 -0
  64. huaweicloudsdkdwr/v1/model/list_collections_response.py +166 -0
  65. huaweicloudsdkdwr/v1/model/list_jobs_data.py +108 -0
  66. huaweicloudsdkdwr/v1/model/list_jobs_request.py +224 -0
  67. huaweicloudsdkdwr/v1/model/list_jobs_response.py +166 -0
  68. huaweicloudsdkdwr/v1/model/list_store_data.py +107 -0
  69. huaweicloudsdkdwr/v1/model/list_stores_request.py +77 -0
  70. huaweicloudsdkdwr/v1/model/list_stores_response.py +166 -0
  71. huaweicloudsdkdwr/v1/model/load_collection_body.py +135 -0
  72. huaweicloudsdkdwr/v1/model/load_collection_request.py +104 -0
  73. huaweicloudsdkdwr/v1/model/load_collection_response.py +141 -0
  74. huaweicloudsdkdwr/v1/model/primary_field.py +135 -0
  75. huaweicloudsdkdwr/v1/model/query_entities_body.py +250 -0
  76. huaweicloudsdkdwr/v1/model/query_entities_request.py +104 -0
  77. huaweicloudsdkdwr/v1/model/query_entities_response.py +166 -0
  78. huaweicloudsdkdwr/v1/model/release_collection_request.py +104 -0
  79. huaweicloudsdkdwr/v1/model/release_collection_response.py +141 -0
  80. huaweicloudsdkdwr/v1/model/rerank.py +136 -0
  81. huaweicloudsdkdwr/v1/model/scale_store_body.py +135 -0
  82. huaweicloudsdkdwr/v1/model/scale_store_data.py +220 -0
  83. huaweicloudsdkdwr/v1/model/scale_store_request.py +104 -0
  84. huaweicloudsdkdwr/v1/model/scale_store_response.py +166 -0
  85. huaweicloudsdkdwr/v1/model/search_entities_body.py +336 -0
  86. huaweicloudsdkdwr/v1/model/search_entities_request.py +104 -0
  87. huaweicloudsdkdwr/v1/model/search_entities_response.py +166 -0
  88. huaweicloudsdkdwr/v1/model/store_data.py +357 -0
  89. huaweicloudsdkdwr/v1/model/store_info.py +107 -0
  90. huaweicloudsdkdwr/v1/model/sub_search.py +251 -0
  91. huaweicloudsdkdwr/v1/model/upsert_entities_body.py +163 -0
  92. huaweicloudsdkdwr/v1/model/upsert_entities_data.py +135 -0
  93. huaweicloudsdkdwr/v1/model/upsert_entities_request.py +104 -0
  94. huaweicloudsdkdwr/v1/model/upsert_entities_response.py +166 -0
  95. huaweicloudsdkdwr/v1/region/__init__.py +0 -0
  96. huaweicloudsdkdwr/v1/region/dwr_region.py +43 -0
  97. huaweicloudsdkdwr/v3/__init__.py +76 -0
  98. huaweicloudsdkdwr/v3/dwr_async_client.py +1622 -0
  99. huaweicloudsdkdwr/v3/dwr_client.py +1619 -0
  100. huaweicloudsdkdwr/v3/model/__init__.py +73 -0
  101. huaweicloudsdkdwr/v3/model/accept_service_contract_request.py +107 -0
  102. huaweicloudsdkdwr/v3/model/accept_service_contract_response.py +133 -0
  103. huaweicloudsdkdwr/v3/model/action.py +420 -0
  104. huaweicloudsdkdwr/v3/model/action_result.py +221 -0
  105. huaweicloudsdkdwr/v3/model/action_template_item.py +137 -0
  106. huaweicloudsdkdwr/v3/model/async_invoke_api_start_workflow_request.py +132 -0
  107. huaweicloudsdkdwr/v3/model/async_invoke_api_start_workflow_response.py +270 -0
  108. huaweicloudsdkdwr/v3/model/check_workflow_authentication_request.py +77 -0
  109. huaweicloudsdkdwr/v3/model/check_workflow_authentication_response.py +473 -0
  110. huaweicloudsdkdwr/v3/model/create_my_action_template_request.py +132 -0
  111. huaweicloudsdkdwr/v3/model/create_my_action_template_response.py +415 -0
  112. huaweicloudsdkdwr/v3/model/create_workflow_authentication_request.py +77 -0
  113. huaweicloudsdkdwr/v3/model/create_workflow_authentication_response.py +133 -0
  114. huaweicloudsdkdwr/v3/model/create_workflow_request.py +132 -0
  115. huaweicloudsdkdwr/v3/model/create_workflow_request_body.py +274 -0
  116. huaweicloudsdkdwr/v3/model/create_workflow_response.py +270 -0
  117. huaweicloudsdkdwr/v3/model/delete_my_action_template_request.py +107 -0
  118. huaweicloudsdkdwr/v3/model/delete_my_action_template_response.py +133 -0
  119. huaweicloudsdkdwr/v3/model/delete_workflow_request.py +107 -0
  120. huaweicloudsdkdwr/v3/model/delete_workflow_response.py +133 -0
  121. huaweicloudsdkdwr/v3/model/execute_workflow_body.py +160 -0
  122. huaweicloudsdkdwr/v3/model/execution.py +282 -0
  123. huaweicloudsdkdwr/v3/model/express_config.py +137 -0
  124. huaweicloudsdkdwr/v3/model/func_vpc.py +253 -0
  125. huaweicloudsdkdwr/v3/model/graph_item.py +195 -0
  126. huaweicloudsdkdwr/v3/model/input.py +367 -0
  127. huaweicloudsdkdwr/v3/model/input_para_type.py +77 -0
  128. huaweicloudsdkdwr/v3/model/input_para_value_type.py +77 -0
  129. huaweicloudsdkdwr/v3/model/list_my_action_template_request.py +224 -0
  130. huaweicloudsdkdwr/v3/model/list_my_action_template_response.py +299 -0
  131. huaweicloudsdkdwr/v3/model/list_system_templates_request.py +195 -0
  132. huaweicloudsdkdwr/v3/model/list_system_templates_response.py +328 -0
  133. huaweicloudsdkdwr/v3/model/list_workflow_instance_request.py +252 -0
  134. huaweicloudsdkdwr/v3/model/list_workflow_instance_response.py +299 -0
  135. huaweicloudsdkdwr/v3/model/list_workflows_request.py +166 -0
  136. huaweicloudsdkdwr/v3/model/list_workflows_response.py +299 -0
  137. huaweicloudsdkdwr/v3/model/node_execution.py +282 -0
  138. huaweicloudsdkdwr/v3/model/policy.py +137 -0
  139. huaweicloudsdkdwr/v3/model/provided_action.py +561 -0
  140. huaweicloudsdkdwr/v3/model/public_template_item.py +282 -0
  141. huaweicloudsdkdwr/v3/model/public_template_register_type.py +77 -0
  142. huaweicloudsdkdwr/v3/model/restore_workflow_execution_request.py +135 -0
  143. huaweicloudsdkdwr/v3/model/restore_workflow_execution_response.py +270 -0
  144. huaweicloudsdkdwr/v3/model/show_public_action_list_request.py +195 -0
  145. huaweicloudsdkdwr/v3/model/show_public_action_list_response.py +328 -0
  146. huaweicloudsdkdwr/v3/model/show_public_template_info_request.py +107 -0
  147. huaweicloudsdkdwr/v3/model/show_public_template_info_response.py +208 -0
  148. huaweicloudsdkdwr/v3/model/show_service_contract_request.py +107 -0
  149. huaweicloudsdkdwr/v3/model/show_service_contract_response.py +241 -0
  150. huaweicloudsdkdwr/v3/model/show_system_template_detail_request.py +107 -0
  151. huaweicloudsdkdwr/v3/model/show_system_template_detail_response.py +208 -0
  152. huaweicloudsdkdwr/v3/model/show_third_template_info_request.py +107 -0
  153. huaweicloudsdkdwr/v3/model/show_third_template_info_response.py +208 -0
  154. huaweicloudsdkdwr/v3/model/show_workflow_info_request.py +107 -0
  155. huaweicloudsdkdwr/v3/model/show_workflow_info_response.py +328 -0
  156. huaweicloudsdkdwr/v3/model/show_workflow_instance_request.py +135 -0
  157. huaweicloudsdkdwr/v3/model/show_workflow_instance_response.py +531 -0
  158. huaweicloudsdkdwr/v3/model/state.py +338 -0
  159. huaweicloudsdkdwr/v3/model/statement.py +137 -0
  160. huaweicloudsdkdwr/v3/model/third_action_template_item.py +282 -0
  161. huaweicloudsdkdwr/v3/model/third_template_request_body.py +423 -0
  162. huaweicloudsdkdwr/v3/model/update_my_action_template_request.py +132 -0
  163. huaweicloudsdkdwr/v3/model/update_my_action_template_response.py +270 -0
  164. huaweicloudsdkdwr/v3/model/update_my_action_template_to_deprecated_request.py +107 -0
  165. huaweicloudsdkdwr/v3/model/update_my_action_template_to_deprecated_response.py +133 -0
  166. huaweicloudsdkdwr/v3/model/update_workflow_body.py +108 -0
  167. huaweicloudsdkdwr/v3/model/update_workflow_request.py +132 -0
  168. huaweicloudsdkdwr/v3/model/update_workflow_response.py +270 -0
  169. huaweicloudsdkdwr/v3/region/__init__.py +0 -0
  170. huaweicloudsdkdwr/v3/region/dwr_region.py +43 -0
  171. huaweicloudsdkdwr-3.1.181.dist-info/METADATA +25 -0
  172. huaweicloudsdkdwr-3.1.181.dist-info/RECORD +174 -0
  173. huaweicloudsdkdwr-3.1.181.dist-info/WHEEL +4 -0
  174. huaweicloudsdkdwr-3.1.181.dist-info/licenses/LICENSE +13 -0
@@ -0,0 +1,420 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class Action:
7
+
8
+ """
9
+ Attributes:
10
+ openapi_types (dict): The key is attribute name
11
+ and the value is attribute type.
12
+ attribute_map (dict): The key is attribute name
13
+ and the value is json key in definition.
14
+ """
15
+ sensitive_list = []
16
+
17
+ openapi_types = {
18
+ 'action_name': 'str',
19
+ 'action_agency': 'str',
20
+ 'function': 'str',
21
+ 'function_template': 'str',
22
+ 'action_template_name': 'str',
23
+ 'action_template_category': 'str',
24
+ 'action_template_provider_name': 'str',
25
+ 'invocation_mode': 'str',
26
+ 'timeout': 'int',
27
+ 'payload_filter': 'str',
28
+ 'dynamic_source': 'dict(str, object)',
29
+ 'results': 'list[ActionResult]'
30
+ }
31
+
32
+ attribute_map = {
33
+ 'action_name': 'action_name',
34
+ 'action_agency': 'action_agency',
35
+ 'function': 'function',
36
+ 'function_template': 'function_template',
37
+ 'action_template_name': 'action_template_name',
38
+ 'action_template_category': 'action_template_category',
39
+ 'action_template_provider_name': 'action_template_provider_name',
40
+ 'invocation_mode': 'invocation_mode',
41
+ 'timeout': 'timeout',
42
+ 'payload_filter': 'payload_filter',
43
+ 'dynamic_source': 'dynamic_source',
44
+ 'results': 'results'
45
+ }
46
+
47
+ def __init__(self, action_name=None, action_agency=None, function=None, function_template=None, action_template_name=None, action_template_category=None, action_template_provider_name=None, invocation_mode=None, timeout=None, payload_filter=None, dynamic_source=None, results=None):
48
+ r"""Action
49
+
50
+ The model defined in huaweicloud sdk
51
+
52
+ :param action_name: 节点名称
53
+ :type action_name: str
54
+ :param action_agency: 节点使用的委托
55
+ :type action_agency: str
56
+ :param function: 节点相关联的函数URN
57
+ :type function: str
58
+ :param function_template: 算子模板使用的URM
59
+ :type function_template: str
60
+ :param action_template_name: 节点使用的算子名称
61
+ :type action_template_name: str
62
+ :param action_template_category: 节点使用的模板类别
63
+ :type action_template_category: str
64
+ :param action_template_provider_name: 节点使用的模板提供方
65
+ :type action_template_provider_name: str
66
+ :param invocation_mode: 触发模式
67
+ :type invocation_mode: str
68
+ :param timeout: 超时时间
69
+ :type timeout: int
70
+ :param payload_filter: 动态参数与inputs参数相关联使用的filter。默认为\"$\"
71
+ :type payload_filter: str
72
+ :param dynamic_source: 节点使用的动态参数
73
+ :type dynamic_source: dict(str, object)
74
+ :param results: action错误处理
75
+ :type results: list[:class:`huaweicloudsdkdwr.v3.ActionResult`]
76
+ """
77
+
78
+
79
+
80
+ self._action_name = None
81
+ self._action_agency = None
82
+ self._function = None
83
+ self._function_template = None
84
+ self._action_template_name = None
85
+ self._action_template_category = None
86
+ self._action_template_provider_name = None
87
+ self._invocation_mode = None
88
+ self._timeout = None
89
+ self._payload_filter = None
90
+ self._dynamic_source = None
91
+ self._results = None
92
+ self.discriminator = None
93
+
94
+ self.action_name = action_name
95
+ self.action_agency = action_agency
96
+ self.function = function
97
+ self.function_template = function_template
98
+ if action_template_name is not None:
99
+ self.action_template_name = action_template_name
100
+ if action_template_category is not None:
101
+ self.action_template_category = action_template_category
102
+ if action_template_provider_name is not None:
103
+ self.action_template_provider_name = action_template_provider_name
104
+ self.invocation_mode = invocation_mode
105
+ self.timeout = timeout
106
+ if payload_filter is not None:
107
+ self.payload_filter = payload_filter
108
+ self.dynamic_source = dynamic_source
109
+ if results is not None:
110
+ self.results = results
111
+
112
+ @property
113
+ def action_name(self):
114
+ r"""Gets the action_name of this Action.
115
+
116
+ 节点名称
117
+
118
+ :return: The action_name of this Action.
119
+ :rtype: str
120
+ """
121
+ return self._action_name
122
+
123
+ @action_name.setter
124
+ def action_name(self, action_name):
125
+ r"""Sets the action_name of this Action.
126
+
127
+ 节点名称
128
+
129
+ :param action_name: The action_name of this Action.
130
+ :type action_name: str
131
+ """
132
+ self._action_name = action_name
133
+
134
+ @property
135
+ def action_agency(self):
136
+ r"""Gets the action_agency of this Action.
137
+
138
+ 节点使用的委托
139
+
140
+ :return: The action_agency of this Action.
141
+ :rtype: str
142
+ """
143
+ return self._action_agency
144
+
145
+ @action_agency.setter
146
+ def action_agency(self, action_agency):
147
+ r"""Sets the action_agency of this Action.
148
+
149
+ 节点使用的委托
150
+
151
+ :param action_agency: The action_agency of this Action.
152
+ :type action_agency: str
153
+ """
154
+ self._action_agency = action_agency
155
+
156
+ @property
157
+ def function(self):
158
+ r"""Gets the function of this Action.
159
+
160
+ 节点相关联的函数URN
161
+
162
+ :return: The function of this Action.
163
+ :rtype: str
164
+ """
165
+ return self._function
166
+
167
+ @function.setter
168
+ def function(self, function):
169
+ r"""Sets the function of this Action.
170
+
171
+ 节点相关联的函数URN
172
+
173
+ :param function: The function of this Action.
174
+ :type function: str
175
+ """
176
+ self._function = function
177
+
178
+ @property
179
+ def function_template(self):
180
+ r"""Gets the function_template of this Action.
181
+
182
+ 算子模板使用的URM
183
+
184
+ :return: The function_template of this Action.
185
+ :rtype: str
186
+ """
187
+ return self._function_template
188
+
189
+ @function_template.setter
190
+ def function_template(self, function_template):
191
+ r"""Sets the function_template of this Action.
192
+
193
+ 算子模板使用的URM
194
+
195
+ :param function_template: The function_template of this Action.
196
+ :type function_template: str
197
+ """
198
+ self._function_template = function_template
199
+
200
+ @property
201
+ def action_template_name(self):
202
+ r"""Gets the action_template_name of this Action.
203
+
204
+ 节点使用的算子名称
205
+
206
+ :return: The action_template_name of this Action.
207
+ :rtype: str
208
+ """
209
+ return self._action_template_name
210
+
211
+ @action_template_name.setter
212
+ def action_template_name(self, action_template_name):
213
+ r"""Sets the action_template_name of this Action.
214
+
215
+ 节点使用的算子名称
216
+
217
+ :param action_template_name: The action_template_name of this Action.
218
+ :type action_template_name: str
219
+ """
220
+ self._action_template_name = action_template_name
221
+
222
+ @property
223
+ def action_template_category(self):
224
+ r"""Gets the action_template_category of this Action.
225
+
226
+ 节点使用的模板类别
227
+
228
+ :return: The action_template_category of this Action.
229
+ :rtype: str
230
+ """
231
+ return self._action_template_category
232
+
233
+ @action_template_category.setter
234
+ def action_template_category(self, action_template_category):
235
+ r"""Sets the action_template_category of this Action.
236
+
237
+ 节点使用的模板类别
238
+
239
+ :param action_template_category: The action_template_category of this Action.
240
+ :type action_template_category: str
241
+ """
242
+ self._action_template_category = action_template_category
243
+
244
+ @property
245
+ def action_template_provider_name(self):
246
+ r"""Gets the action_template_provider_name of this Action.
247
+
248
+ 节点使用的模板提供方
249
+
250
+ :return: The action_template_provider_name of this Action.
251
+ :rtype: str
252
+ """
253
+ return self._action_template_provider_name
254
+
255
+ @action_template_provider_name.setter
256
+ def action_template_provider_name(self, action_template_provider_name):
257
+ r"""Sets the action_template_provider_name of this Action.
258
+
259
+ 节点使用的模板提供方
260
+
261
+ :param action_template_provider_name: The action_template_provider_name of this Action.
262
+ :type action_template_provider_name: str
263
+ """
264
+ self._action_template_provider_name = action_template_provider_name
265
+
266
+ @property
267
+ def invocation_mode(self):
268
+ r"""Gets the invocation_mode of this Action.
269
+
270
+ 触发模式
271
+
272
+ :return: The invocation_mode of this Action.
273
+ :rtype: str
274
+ """
275
+ return self._invocation_mode
276
+
277
+ @invocation_mode.setter
278
+ def invocation_mode(self, invocation_mode):
279
+ r"""Sets the invocation_mode of this Action.
280
+
281
+ 触发模式
282
+
283
+ :param invocation_mode: The invocation_mode of this Action.
284
+ :type invocation_mode: str
285
+ """
286
+ self._invocation_mode = invocation_mode
287
+
288
+ @property
289
+ def timeout(self):
290
+ r"""Gets the timeout of this Action.
291
+
292
+ 超时时间
293
+
294
+ :return: The timeout of this Action.
295
+ :rtype: int
296
+ """
297
+ return self._timeout
298
+
299
+ @timeout.setter
300
+ def timeout(self, timeout):
301
+ r"""Sets the timeout of this Action.
302
+
303
+ 超时时间
304
+
305
+ :param timeout: The timeout of this Action.
306
+ :type timeout: int
307
+ """
308
+ self._timeout = timeout
309
+
310
+ @property
311
+ def payload_filter(self):
312
+ r"""Gets the payload_filter of this Action.
313
+
314
+ 动态参数与inputs参数相关联使用的filter。默认为\"$\"
315
+
316
+ :return: The payload_filter of this Action.
317
+ :rtype: str
318
+ """
319
+ return self._payload_filter
320
+
321
+ @payload_filter.setter
322
+ def payload_filter(self, payload_filter):
323
+ r"""Sets the payload_filter of this Action.
324
+
325
+ 动态参数与inputs参数相关联使用的filter。默认为\"$\"
326
+
327
+ :param payload_filter: The payload_filter of this Action.
328
+ :type payload_filter: str
329
+ """
330
+ self._payload_filter = payload_filter
331
+
332
+ @property
333
+ def dynamic_source(self):
334
+ r"""Gets the dynamic_source of this Action.
335
+
336
+ 节点使用的动态参数
337
+
338
+ :return: The dynamic_source of this Action.
339
+ :rtype: dict(str, object)
340
+ """
341
+ return self._dynamic_source
342
+
343
+ @dynamic_source.setter
344
+ def dynamic_source(self, dynamic_source):
345
+ r"""Sets the dynamic_source of this Action.
346
+
347
+ 节点使用的动态参数
348
+
349
+ :param dynamic_source: The dynamic_source of this Action.
350
+ :type dynamic_source: dict(str, object)
351
+ """
352
+ self._dynamic_source = dynamic_source
353
+
354
+ @property
355
+ def results(self):
356
+ r"""Gets the results of this Action.
357
+
358
+ action错误处理
359
+
360
+ :return: The results of this Action.
361
+ :rtype: list[:class:`huaweicloudsdkdwr.v3.ActionResult`]
362
+ """
363
+ return self._results
364
+
365
+ @results.setter
366
+ def results(self, results):
367
+ r"""Sets the results of this Action.
368
+
369
+ action错误处理
370
+
371
+ :param results: The results of this Action.
372
+ :type results: list[:class:`huaweicloudsdkdwr.v3.ActionResult`]
373
+ """
374
+ self._results = results
375
+
376
+ def to_dict(self):
377
+ result = {}
378
+
379
+ for attr, _ in self.openapi_types.items():
380
+ value = getattr(self, attr)
381
+ if isinstance(value, list):
382
+ result[attr] = list(map(
383
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
384
+ value
385
+ ))
386
+ elif hasattr(value, "to_dict"):
387
+ result[attr] = value.to_dict()
388
+ elif isinstance(value, dict):
389
+ result[attr] = dict(map(
390
+ lambda item: (item[0], item[1].to_dict())
391
+ if hasattr(item[1], "to_dict") else item,
392
+ value.items()
393
+ ))
394
+ else:
395
+ if attr in self.sensitive_list:
396
+ result[attr] = "****"
397
+ else:
398
+ result[attr] = value
399
+
400
+ return result
401
+
402
+ def to_str(self):
403
+ """Returns the string representation of the model"""
404
+ import simplejson as json
405
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
406
+
407
+ def __repr__(self):
408
+ """For `print`"""
409
+ return self.to_str()
410
+
411
+ def __eq__(self, other):
412
+ """Returns true if both objects are equal"""
413
+ if not isinstance(other, Action):
414
+ return False
415
+
416
+ return self.__dict__ == other.__dict__
417
+
418
+ def __ne__(self, other):
419
+ """Returns true if both objects are not equal"""
420
+ return not self == other
@@ -0,0 +1,221 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class ActionResult:
7
+
8
+ """
9
+ Attributes:
10
+ openapi_types (dict): The key is attribute name
11
+ and the value is attribute type.
12
+ attribute_map (dict): The key is attribute name
13
+ and the value is json key in definition.
14
+ """
15
+ sensitive_list = []
16
+
17
+ openapi_types = {
18
+ 'match': 'str',
19
+ 'retry_interval': 'int',
20
+ 'max_retry': 'int',
21
+ 'next_state': 'str',
22
+ 'is_terminal': 'bool'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'match': 'match',
27
+ 'retry_interval': 'retry_interval',
28
+ 'max_retry': 'max_retry',
29
+ 'next_state': 'next_state',
30
+ 'is_terminal': 'is_terminal'
31
+ }
32
+
33
+ def __init__(self, match=None, retry_interval=None, max_retry=None, next_state=None, is_terminal=None):
34
+ r"""ActionResult
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param match: 触发错误处理需符合的条件
39
+ :type match: str
40
+ :param retry_interval: 每次重试间隔时间
41
+ :type retry_interval: int
42
+ :param max_retry: 最多重试次数
43
+ :type max_retry: int
44
+ :param next_state: 下一个状态
45
+ :type next_state: str
46
+ :param is_terminal: 是否为结束状态
47
+ :type is_terminal: bool
48
+ """
49
+
50
+
51
+
52
+ self._match = None
53
+ self._retry_interval = None
54
+ self._max_retry = None
55
+ self._next_state = None
56
+ self._is_terminal = None
57
+ self.discriminator = None
58
+
59
+ self.match = match
60
+ self.retry_interval = retry_interval
61
+ if max_retry is not None:
62
+ self.max_retry = max_retry
63
+ self.next_state = next_state
64
+ if is_terminal is not None:
65
+ self.is_terminal = is_terminal
66
+
67
+ @property
68
+ def match(self):
69
+ r"""Gets the match of this ActionResult.
70
+
71
+ 触发错误处理需符合的条件
72
+
73
+ :return: The match of this ActionResult.
74
+ :rtype: str
75
+ """
76
+ return self._match
77
+
78
+ @match.setter
79
+ def match(self, match):
80
+ r"""Sets the match of this ActionResult.
81
+
82
+ 触发错误处理需符合的条件
83
+
84
+ :param match: The match of this ActionResult.
85
+ :type match: str
86
+ """
87
+ self._match = match
88
+
89
+ @property
90
+ def retry_interval(self):
91
+ r"""Gets the retry_interval of this ActionResult.
92
+
93
+ 每次重试间隔时间
94
+
95
+ :return: The retry_interval of this ActionResult.
96
+ :rtype: int
97
+ """
98
+ return self._retry_interval
99
+
100
+ @retry_interval.setter
101
+ def retry_interval(self, retry_interval):
102
+ r"""Sets the retry_interval of this ActionResult.
103
+
104
+ 每次重试间隔时间
105
+
106
+ :param retry_interval: The retry_interval of this ActionResult.
107
+ :type retry_interval: int
108
+ """
109
+ self._retry_interval = retry_interval
110
+
111
+ @property
112
+ def max_retry(self):
113
+ r"""Gets the max_retry of this ActionResult.
114
+
115
+ 最多重试次数
116
+
117
+ :return: The max_retry of this ActionResult.
118
+ :rtype: int
119
+ """
120
+ return self._max_retry
121
+
122
+ @max_retry.setter
123
+ def max_retry(self, max_retry):
124
+ r"""Sets the max_retry of this ActionResult.
125
+
126
+ 最多重试次数
127
+
128
+ :param max_retry: The max_retry of this ActionResult.
129
+ :type max_retry: int
130
+ """
131
+ self._max_retry = max_retry
132
+
133
+ @property
134
+ def next_state(self):
135
+ r"""Gets the next_state of this ActionResult.
136
+
137
+ 下一个状态
138
+
139
+ :return: The next_state of this ActionResult.
140
+ :rtype: str
141
+ """
142
+ return self._next_state
143
+
144
+ @next_state.setter
145
+ def next_state(self, next_state):
146
+ r"""Sets the next_state of this ActionResult.
147
+
148
+ 下一个状态
149
+
150
+ :param next_state: The next_state of this ActionResult.
151
+ :type next_state: str
152
+ """
153
+ self._next_state = next_state
154
+
155
+ @property
156
+ def is_terminal(self):
157
+ r"""Gets the is_terminal of this ActionResult.
158
+
159
+ 是否为结束状态
160
+
161
+ :return: The is_terminal of this ActionResult.
162
+ :rtype: bool
163
+ """
164
+ return self._is_terminal
165
+
166
+ @is_terminal.setter
167
+ def is_terminal(self, is_terminal):
168
+ r"""Sets the is_terminal of this ActionResult.
169
+
170
+ 是否为结束状态
171
+
172
+ :param is_terminal: The is_terminal of this ActionResult.
173
+ :type is_terminal: bool
174
+ """
175
+ self._is_terminal = is_terminal
176
+
177
+ def to_dict(self):
178
+ result = {}
179
+
180
+ for attr, _ in self.openapi_types.items():
181
+ value = getattr(self, attr)
182
+ if isinstance(value, list):
183
+ result[attr] = list(map(
184
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
185
+ value
186
+ ))
187
+ elif hasattr(value, "to_dict"):
188
+ result[attr] = value.to_dict()
189
+ elif isinstance(value, dict):
190
+ result[attr] = dict(map(
191
+ lambda item: (item[0], item[1].to_dict())
192
+ if hasattr(item[1], "to_dict") else item,
193
+ value.items()
194
+ ))
195
+ else:
196
+ if attr in self.sensitive_list:
197
+ result[attr] = "****"
198
+ else:
199
+ result[attr] = value
200
+
201
+ return result
202
+
203
+ def to_str(self):
204
+ """Returns the string representation of the model"""
205
+ import simplejson as json
206
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
207
+
208
+ def __repr__(self):
209
+ """For `print`"""
210
+ return self.to_str()
211
+
212
+ def __eq__(self, other):
213
+ """Returns true if both objects are equal"""
214
+ if not isinstance(other, ActionResult):
215
+ return False
216
+
217
+ return self.__dict__ == other.__dict__
218
+
219
+ def __ne__(self, other):
220
+ """Returns true if both objects are not equal"""
221
+ return not self == other