huaweicloudsdkdwr 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.

Potentially problematic release.


This version of huaweicloudsdkdwr might be problematic. Click here for more details.

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