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