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,282 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class Execution:
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
+ 'graph_urn': 'str',
19
+ 'execution_urn': 'str',
20
+ 'started_at': 'str',
21
+ 'execution_type': 'str',
22
+ 'stopped_at': 'str',
23
+ 'execution_state': 'str',
24
+ 'execution_name': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'graph_urn': 'graph_urn',
29
+ 'execution_urn': 'execution_urn',
30
+ 'started_at': 'started_at',
31
+ 'execution_type': 'execution_type',
32
+ 'stopped_at': 'stopped_at',
33
+ 'execution_state': 'execution_state',
34
+ 'execution_name': 'execution_name'
35
+ }
36
+
37
+ def __init__(self, graph_urn=None, execution_urn=None, started_at=None, execution_type=None, stopped_at=None, execution_state=None, execution_name=None):
38
+ r"""Execution
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param graph_urn: 工作流URN
43
+ :type graph_urn: str
44
+ :param execution_urn: 工作流实例URN
45
+ :type execution_urn: str
46
+ :param started_at: 工作流实例启动时间
47
+ :type started_at: str
48
+ :param execution_type: 工作流执行方式。APICALL代表为通过API方式触发。
49
+ :type execution_type: str
50
+ :param stopped_at: 工作流停止时间。
51
+ :type stopped_at: str
52
+ :param execution_state: 工作流运行状态。success,fail,running,timeout,cancel
53
+ :type execution_state: str
54
+ :param execution_name: 工作流名称。
55
+ :type execution_name: str
56
+ """
57
+
58
+
59
+
60
+ self._graph_urn = None
61
+ self._execution_urn = None
62
+ self._started_at = None
63
+ self._execution_type = None
64
+ self._stopped_at = None
65
+ self._execution_state = None
66
+ self._execution_name = None
67
+ self.discriminator = None
68
+
69
+ if graph_urn is not None:
70
+ self.graph_urn = graph_urn
71
+ if execution_urn is not None:
72
+ self.execution_urn = execution_urn
73
+ if started_at is not None:
74
+ self.started_at = started_at
75
+ if execution_type is not None:
76
+ self.execution_type = execution_type
77
+ if stopped_at is not None:
78
+ self.stopped_at = stopped_at
79
+ if execution_state is not None:
80
+ self.execution_state = execution_state
81
+ if execution_name is not None:
82
+ self.execution_name = execution_name
83
+
84
+ @property
85
+ def graph_urn(self):
86
+ r"""Gets the graph_urn of this Execution.
87
+
88
+ 工作流URN
89
+
90
+ :return: The graph_urn of this Execution.
91
+ :rtype: str
92
+ """
93
+ return self._graph_urn
94
+
95
+ @graph_urn.setter
96
+ def graph_urn(self, graph_urn):
97
+ r"""Sets the graph_urn of this Execution.
98
+
99
+ 工作流URN
100
+
101
+ :param graph_urn: The graph_urn of this Execution.
102
+ :type graph_urn: str
103
+ """
104
+ self._graph_urn = graph_urn
105
+
106
+ @property
107
+ def execution_urn(self):
108
+ r"""Gets the execution_urn of this Execution.
109
+
110
+ 工作流实例URN
111
+
112
+ :return: The execution_urn of this Execution.
113
+ :rtype: str
114
+ """
115
+ return self._execution_urn
116
+
117
+ @execution_urn.setter
118
+ def execution_urn(self, execution_urn):
119
+ r"""Sets the execution_urn of this Execution.
120
+
121
+ 工作流实例URN
122
+
123
+ :param execution_urn: The execution_urn of this Execution.
124
+ :type execution_urn: str
125
+ """
126
+ self._execution_urn = execution_urn
127
+
128
+ @property
129
+ def started_at(self):
130
+ r"""Gets the started_at of this Execution.
131
+
132
+ 工作流实例启动时间
133
+
134
+ :return: The started_at of this Execution.
135
+ :rtype: str
136
+ """
137
+ return self._started_at
138
+
139
+ @started_at.setter
140
+ def started_at(self, started_at):
141
+ r"""Sets the started_at of this Execution.
142
+
143
+ 工作流实例启动时间
144
+
145
+ :param started_at: The started_at of this Execution.
146
+ :type started_at: str
147
+ """
148
+ self._started_at = started_at
149
+
150
+ @property
151
+ def execution_type(self):
152
+ r"""Gets the execution_type of this Execution.
153
+
154
+ 工作流执行方式。APICALL代表为通过API方式触发。
155
+
156
+ :return: The execution_type of this Execution.
157
+ :rtype: str
158
+ """
159
+ return self._execution_type
160
+
161
+ @execution_type.setter
162
+ def execution_type(self, execution_type):
163
+ r"""Sets the execution_type of this Execution.
164
+
165
+ 工作流执行方式。APICALL代表为通过API方式触发。
166
+
167
+ :param execution_type: The execution_type of this Execution.
168
+ :type execution_type: str
169
+ """
170
+ self._execution_type = execution_type
171
+
172
+ @property
173
+ def stopped_at(self):
174
+ r"""Gets the stopped_at of this Execution.
175
+
176
+ 工作流停止时间。
177
+
178
+ :return: The stopped_at of this Execution.
179
+ :rtype: str
180
+ """
181
+ return self._stopped_at
182
+
183
+ @stopped_at.setter
184
+ def stopped_at(self, stopped_at):
185
+ r"""Sets the stopped_at of this Execution.
186
+
187
+ 工作流停止时间。
188
+
189
+ :param stopped_at: The stopped_at of this Execution.
190
+ :type stopped_at: str
191
+ """
192
+ self._stopped_at = stopped_at
193
+
194
+ @property
195
+ def execution_state(self):
196
+ r"""Gets the execution_state of this Execution.
197
+
198
+ 工作流运行状态。success,fail,running,timeout,cancel
199
+
200
+ :return: The execution_state of this Execution.
201
+ :rtype: str
202
+ """
203
+ return self._execution_state
204
+
205
+ @execution_state.setter
206
+ def execution_state(self, execution_state):
207
+ r"""Sets the execution_state of this Execution.
208
+
209
+ 工作流运行状态。success,fail,running,timeout,cancel
210
+
211
+ :param execution_state: The execution_state of this Execution.
212
+ :type execution_state: str
213
+ """
214
+ self._execution_state = execution_state
215
+
216
+ @property
217
+ def execution_name(self):
218
+ r"""Gets the execution_name of this Execution.
219
+
220
+ 工作流名称。
221
+
222
+ :return: The execution_name of this Execution.
223
+ :rtype: str
224
+ """
225
+ return self._execution_name
226
+
227
+ @execution_name.setter
228
+ def execution_name(self, execution_name):
229
+ r"""Sets the execution_name of this Execution.
230
+
231
+ 工作流名称。
232
+
233
+ :param execution_name: The execution_name of this Execution.
234
+ :type execution_name: str
235
+ """
236
+ self._execution_name = execution_name
237
+
238
+ def to_dict(self):
239
+ result = {}
240
+
241
+ for attr, _ in self.openapi_types.items():
242
+ value = getattr(self, attr)
243
+ if isinstance(value, list):
244
+ result[attr] = list(map(
245
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
246
+ value
247
+ ))
248
+ elif hasattr(value, "to_dict"):
249
+ result[attr] = value.to_dict()
250
+ elif isinstance(value, dict):
251
+ result[attr] = dict(map(
252
+ lambda item: (item[0], item[1].to_dict())
253
+ if hasattr(item[1], "to_dict") else item,
254
+ value.items()
255
+ ))
256
+ else:
257
+ if attr in self.sensitive_list:
258
+ result[attr] = "****"
259
+ else:
260
+ result[attr] = value
261
+
262
+ return result
263
+
264
+ def to_str(self):
265
+ """Returns the string representation of the model"""
266
+ import simplejson as json
267
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
268
+
269
+ def __repr__(self):
270
+ """For `print`"""
271
+ return self.to_str()
272
+
273
+ def __eq__(self, other):
274
+ """Returns true if both objects are equal"""
275
+ if not isinstance(other, Execution):
276
+ return False
277
+
278
+ return self.__dict__ == other.__dict__
279
+
280
+ def __ne__(self, other):
281
+ """Returns true if both objects are not equal"""
282
+ return not self == other
@@ -0,0 +1,137 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class ExpressConfig:
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
+ 'log_level': 'str',
19
+ 'support_anonymous': 'bool'
20
+ }
21
+
22
+ attribute_map = {
23
+ 'log_level': 'log_level',
24
+ 'support_anonymous': 'support_anonymous'
25
+ }
26
+
27
+ def __init__(self, log_level=None, support_anonymous=None):
28
+ r"""ExpressConfig
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param log_level: 同步工作流执行时记录LTS的日志级别,NONE、ERROR\\ALL,默认NONE
33
+ :type log_level: str
34
+ :param support_anonymous: 同步工作流是否支持匿名访问
35
+ :type support_anonymous: bool
36
+ """
37
+
38
+
39
+
40
+ self._log_level = None
41
+ self._support_anonymous = None
42
+ self.discriminator = None
43
+
44
+ if log_level is not None:
45
+ self.log_level = log_level
46
+ if support_anonymous is not None:
47
+ self.support_anonymous = support_anonymous
48
+
49
+ @property
50
+ def log_level(self):
51
+ r"""Gets the log_level of this ExpressConfig.
52
+
53
+ 同步工作流执行时记录LTS的日志级别,NONE、ERROR\\ALL,默认NONE
54
+
55
+ :return: The log_level of this ExpressConfig.
56
+ :rtype: str
57
+ """
58
+ return self._log_level
59
+
60
+ @log_level.setter
61
+ def log_level(self, log_level):
62
+ r"""Sets the log_level of this ExpressConfig.
63
+
64
+ 同步工作流执行时记录LTS的日志级别,NONE、ERROR\\ALL,默认NONE
65
+
66
+ :param log_level: The log_level of this ExpressConfig.
67
+ :type log_level: str
68
+ """
69
+ self._log_level = log_level
70
+
71
+ @property
72
+ def support_anonymous(self):
73
+ r"""Gets the support_anonymous of this ExpressConfig.
74
+
75
+ 同步工作流是否支持匿名访问
76
+
77
+ :return: The support_anonymous of this ExpressConfig.
78
+ :rtype: bool
79
+ """
80
+ return self._support_anonymous
81
+
82
+ @support_anonymous.setter
83
+ def support_anonymous(self, support_anonymous):
84
+ r"""Sets the support_anonymous of this ExpressConfig.
85
+
86
+ 同步工作流是否支持匿名访问
87
+
88
+ :param support_anonymous: The support_anonymous of this ExpressConfig.
89
+ :type support_anonymous: bool
90
+ """
91
+ self._support_anonymous = support_anonymous
92
+
93
+ def to_dict(self):
94
+ result = {}
95
+
96
+ for attr, _ in self.openapi_types.items():
97
+ value = getattr(self, attr)
98
+ if isinstance(value, list):
99
+ result[attr] = list(map(
100
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
101
+ value
102
+ ))
103
+ elif hasattr(value, "to_dict"):
104
+ result[attr] = value.to_dict()
105
+ elif isinstance(value, dict):
106
+ result[attr] = dict(map(
107
+ lambda item: (item[0], item[1].to_dict())
108
+ if hasattr(item[1], "to_dict") else item,
109
+ value.items()
110
+ ))
111
+ else:
112
+ if attr in self.sensitive_list:
113
+ result[attr] = "****"
114
+ else:
115
+ result[attr] = value
116
+
117
+ return result
118
+
119
+ def to_str(self):
120
+ """Returns the string representation of the model"""
121
+ import simplejson as json
122
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
123
+
124
+ def __repr__(self):
125
+ """For `print`"""
126
+ return self.to_str()
127
+
128
+ def __eq__(self, other):
129
+ """Returns true if both objects are equal"""
130
+ if not isinstance(other, ExpressConfig):
131
+ return False
132
+
133
+ return self.__dict__ == other.__dict__
134
+
135
+ def __ne__(self, other):
136
+ """Returns true if both objects are not equal"""
137
+ return not self == other
@@ -0,0 +1,253 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class FuncVpc:
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
+ 'subnet_id': 'str',
19
+ 'vpc_id': 'str',
20
+ 'vpc_name': 'str',
21
+ 'subnet_name': 'str',
22
+ 'cidr': 'str',
23
+ 'gateway': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'subnet_id': 'subnet_id',
28
+ 'vpc_id': 'vpc_id',
29
+ 'vpc_name': 'vpc_name',
30
+ 'subnet_name': 'subnet_name',
31
+ 'cidr': 'cidr',
32
+ 'gateway': 'gateway'
33
+ }
34
+
35
+ def __init__(self, subnet_id=None, vpc_id=None, vpc_name=None, subnet_name=None, cidr=None, gateway=None):
36
+ r"""FuncVpc
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param subnet_id: 子网编号。当func_vpc非空时必选。
41
+ :type subnet_id: str
42
+ :param vpc_id: 虚拟私有云唯一标识。当func_vpc非空时必选。
43
+ :type vpc_id: str
44
+ :param vpc_name: VPC名称。
45
+ :type vpc_name: str
46
+ :param subnet_name: 子网名称。
47
+ :type subnet_name: str
48
+ :param cidr: 子网掩码。
49
+ :type cidr: str
50
+ :param gateway: 网关。
51
+ :type gateway: str
52
+ """
53
+
54
+
55
+
56
+ self._subnet_id = None
57
+ self._vpc_id = None
58
+ self._vpc_name = None
59
+ self._subnet_name = None
60
+ self._cidr = None
61
+ self._gateway = None
62
+ self.discriminator = None
63
+
64
+ if subnet_id is not None:
65
+ self.subnet_id = subnet_id
66
+ if vpc_id is not None:
67
+ self.vpc_id = vpc_id
68
+ if vpc_name is not None:
69
+ self.vpc_name = vpc_name
70
+ if subnet_name is not None:
71
+ self.subnet_name = subnet_name
72
+ if cidr is not None:
73
+ self.cidr = cidr
74
+ if gateway is not None:
75
+ self.gateway = gateway
76
+
77
+ @property
78
+ def subnet_id(self):
79
+ r"""Gets the subnet_id of this FuncVpc.
80
+
81
+ 子网编号。当func_vpc非空时必选。
82
+
83
+ :return: The subnet_id of this FuncVpc.
84
+ :rtype: str
85
+ """
86
+ return self._subnet_id
87
+
88
+ @subnet_id.setter
89
+ def subnet_id(self, subnet_id):
90
+ r"""Sets the subnet_id of this FuncVpc.
91
+
92
+ 子网编号。当func_vpc非空时必选。
93
+
94
+ :param subnet_id: The subnet_id of this FuncVpc.
95
+ :type subnet_id: str
96
+ """
97
+ self._subnet_id = subnet_id
98
+
99
+ @property
100
+ def vpc_id(self):
101
+ r"""Gets the vpc_id of this FuncVpc.
102
+
103
+ 虚拟私有云唯一标识。当func_vpc非空时必选。
104
+
105
+ :return: The vpc_id of this FuncVpc.
106
+ :rtype: str
107
+ """
108
+ return self._vpc_id
109
+
110
+ @vpc_id.setter
111
+ def vpc_id(self, vpc_id):
112
+ r"""Sets the vpc_id of this FuncVpc.
113
+
114
+ 虚拟私有云唯一标识。当func_vpc非空时必选。
115
+
116
+ :param vpc_id: The vpc_id of this FuncVpc.
117
+ :type vpc_id: str
118
+ """
119
+ self._vpc_id = vpc_id
120
+
121
+ @property
122
+ def vpc_name(self):
123
+ r"""Gets the vpc_name of this FuncVpc.
124
+
125
+ VPC名称。
126
+
127
+ :return: The vpc_name of this FuncVpc.
128
+ :rtype: str
129
+ """
130
+ return self._vpc_name
131
+
132
+ @vpc_name.setter
133
+ def vpc_name(self, vpc_name):
134
+ r"""Sets the vpc_name of this FuncVpc.
135
+
136
+ VPC名称。
137
+
138
+ :param vpc_name: The vpc_name of this FuncVpc.
139
+ :type vpc_name: str
140
+ """
141
+ self._vpc_name = vpc_name
142
+
143
+ @property
144
+ def subnet_name(self):
145
+ r"""Gets the subnet_name of this FuncVpc.
146
+
147
+ 子网名称。
148
+
149
+ :return: The subnet_name of this FuncVpc.
150
+ :rtype: str
151
+ """
152
+ return self._subnet_name
153
+
154
+ @subnet_name.setter
155
+ def subnet_name(self, subnet_name):
156
+ r"""Sets the subnet_name of this FuncVpc.
157
+
158
+ 子网名称。
159
+
160
+ :param subnet_name: The subnet_name of this FuncVpc.
161
+ :type subnet_name: str
162
+ """
163
+ self._subnet_name = subnet_name
164
+
165
+ @property
166
+ def cidr(self):
167
+ r"""Gets the cidr of this FuncVpc.
168
+
169
+ 子网掩码。
170
+
171
+ :return: The cidr of this FuncVpc.
172
+ :rtype: str
173
+ """
174
+ return self._cidr
175
+
176
+ @cidr.setter
177
+ def cidr(self, cidr):
178
+ r"""Sets the cidr of this FuncVpc.
179
+
180
+ 子网掩码。
181
+
182
+ :param cidr: The cidr of this FuncVpc.
183
+ :type cidr: str
184
+ """
185
+ self._cidr = cidr
186
+
187
+ @property
188
+ def gateway(self):
189
+ r"""Gets the gateway of this FuncVpc.
190
+
191
+ 网关。
192
+
193
+ :return: The gateway of this FuncVpc.
194
+ :rtype: str
195
+ """
196
+ return self._gateway
197
+
198
+ @gateway.setter
199
+ def gateway(self, gateway):
200
+ r"""Sets the gateway of this FuncVpc.
201
+
202
+ 网关。
203
+
204
+ :param gateway: The gateway of this FuncVpc.
205
+ :type gateway: str
206
+ """
207
+ self._gateway = gateway
208
+
209
+ def to_dict(self):
210
+ result = {}
211
+
212
+ for attr, _ in self.openapi_types.items():
213
+ value = getattr(self, attr)
214
+ if isinstance(value, list):
215
+ result[attr] = list(map(
216
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
217
+ value
218
+ ))
219
+ elif hasattr(value, "to_dict"):
220
+ result[attr] = value.to_dict()
221
+ elif isinstance(value, dict):
222
+ result[attr] = dict(map(
223
+ lambda item: (item[0], item[1].to_dict())
224
+ if hasattr(item[1], "to_dict") else item,
225
+ value.items()
226
+ ))
227
+ else:
228
+ if attr in self.sensitive_list:
229
+ result[attr] = "****"
230
+ else:
231
+ result[attr] = value
232
+
233
+ return result
234
+
235
+ def to_str(self):
236
+ """Returns the string representation of the model"""
237
+ import simplejson as json
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, FuncVpc):
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