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.
- huaweicloudsdkdwr/__init__.py +0 -0
- huaweicloudsdkdwr/v1/__init__.py +97 -0
- huaweicloudsdkdwr/v1/dwr_async_client.py +1584 -0
- huaweicloudsdkdwr/v1/dwr_client.py +1581 -0
- huaweicloudsdkdwr/v1/model/__init__.py +94 -0
- huaweicloudsdkdwr/v1/model/build_progress.py +224 -0
- huaweicloudsdkdwr/v1/model/charge_info.py +223 -0
- huaweicloudsdkdwr/v1/model/collection_base_info.py +135 -0
- huaweicloudsdkdwr/v1/model/create_collection_body.py +274 -0
- huaweicloudsdkdwr/v1/model/create_collection_request.py +104 -0
- huaweicloudsdkdwr/v1/model/create_collection_response.py +141 -0
- huaweicloudsdkdwr/v1/model/create_index_body.py +159 -0
- huaweicloudsdkdwr/v1/model/create_index_request.py +104 -0
- huaweicloudsdkdwr/v1/model/create_index_response.py +141 -0
- huaweicloudsdkdwr/v1/model/create_store_body.py +241 -0
- huaweicloudsdkdwr/v1/model/create_store_data.py +328 -0
- huaweicloudsdkdwr/v1/model/create_store_request.py +104 -0
- huaweicloudsdkdwr/v1/model/create_store_response.py +166 -0
- huaweicloudsdkdwr/v1/model/decribe_collection_data.py +337 -0
- huaweicloudsdkdwr/v1/model/delete_collection_request.py +104 -0
- huaweicloudsdkdwr/v1/model/delete_collection_response.py +141 -0
- huaweicloudsdkdwr/v1/model/delete_entities_body.py +163 -0
- huaweicloudsdkdwr/v1/model/delete_entities_request.py +104 -0
- huaweicloudsdkdwr/v1/model/delete_entities_response.py +141 -0
- huaweicloudsdkdwr/v1/model/delete_index_body.py +163 -0
- huaweicloudsdkdwr/v1/model/delete_index_request.py +104 -0
- huaweicloudsdkdwr/v1/model/delete_index_response.py +141 -0
- huaweicloudsdkdwr/v1/model/delete_store_data.py +107 -0
- huaweicloudsdkdwr/v1/model/delete_store_request.py +104 -0
- huaweicloudsdkdwr/v1/model/delete_store_response.py +166 -0
- huaweicloudsdkdwr/v1/model/describe_collection_request.py +104 -0
- huaweicloudsdkdwr/v1/model/describe_collection_response.py +166 -0
- huaweicloudsdkdwr/v1/model/describe_index_body.py +163 -0
- huaweicloudsdkdwr/v1/model/describe_index_data.py +159 -0
- huaweicloudsdkdwr/v1/model/describe_index_request.py +104 -0
- huaweicloudsdkdwr/v1/model/describe_index_response.py +166 -0
- huaweicloudsdkdwr/v1/model/describe_job_body.py +107 -0
- huaweicloudsdkdwr/v1/model/describe_job_request.py +104 -0
- huaweicloudsdkdwr/v1/model/describe_job_response.py +166 -0
- huaweicloudsdkdwr/v1/model/describe_store_request.py +104 -0
- huaweicloudsdkdwr/v1/model/describe_store_response.py +166 -0
- huaweicloudsdkdwr/v1/model/entities_data.py +107 -0
- huaweicloudsdkdwr/v1/model/field.py +222 -0
- huaweicloudsdkdwr/v1/model/field_data.py +278 -0
- huaweicloudsdkdwr/v1/model/flavor.py +135 -0
- huaweicloudsdkdwr/v1/model/get_index_progress_body.py +163 -0
- huaweicloudsdkdwr/v1/model/get_progress_data.py +160 -0
- huaweicloudsdkdwr/v1/model/get_progress_request.py +104 -0
- huaweicloudsdkdwr/v1/model/get_progress_response.py +166 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_body.py +275 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_request.py +104 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_response.py +166 -0
- huaweicloudsdkdwr/v1/model/index_desc.py +191 -0
- huaweicloudsdkdwr/v1/model/index_params.py +164 -0
- huaweicloudsdkdwr/v1/model/insert_entities_body.py +163 -0
- huaweicloudsdkdwr/v1/model/insert_entities_data.py +136 -0
- huaweicloudsdkdwr/v1/model/insert_entities_request.py +104 -0
- huaweicloudsdkdwr/v1/model/insert_entities_response.py +166 -0
- huaweicloudsdkdwr/v1/model/job_data.py +309 -0
- huaweicloudsdkdwr/v1/model/list_collection_data.py +136 -0
- huaweicloudsdkdwr/v1/model/list_collection_details.py +253 -0
- huaweicloudsdkdwr/v1/model/list_collections_body.py +136 -0
- huaweicloudsdkdwr/v1/model/list_collections_request.py +104 -0
- huaweicloudsdkdwr/v1/model/list_collections_response.py +166 -0
- huaweicloudsdkdwr/v1/model/list_jobs_data.py +108 -0
- huaweicloudsdkdwr/v1/model/list_jobs_request.py +224 -0
- huaweicloudsdkdwr/v1/model/list_jobs_response.py +166 -0
- huaweicloudsdkdwr/v1/model/list_store_data.py +107 -0
- huaweicloudsdkdwr/v1/model/list_stores_request.py +77 -0
- huaweicloudsdkdwr/v1/model/list_stores_response.py +166 -0
- huaweicloudsdkdwr/v1/model/load_collection_body.py +135 -0
- huaweicloudsdkdwr/v1/model/load_collection_request.py +104 -0
- huaweicloudsdkdwr/v1/model/load_collection_response.py +141 -0
- huaweicloudsdkdwr/v1/model/primary_field.py +135 -0
- huaweicloudsdkdwr/v1/model/query_entities_body.py +250 -0
- huaweicloudsdkdwr/v1/model/query_entities_request.py +104 -0
- huaweicloudsdkdwr/v1/model/query_entities_response.py +166 -0
- huaweicloudsdkdwr/v1/model/release_collection_request.py +104 -0
- huaweicloudsdkdwr/v1/model/release_collection_response.py +141 -0
- huaweicloudsdkdwr/v1/model/rerank.py +136 -0
- huaweicloudsdkdwr/v1/model/scale_store_body.py +135 -0
- huaweicloudsdkdwr/v1/model/scale_store_data.py +220 -0
- huaweicloudsdkdwr/v1/model/scale_store_request.py +104 -0
- huaweicloudsdkdwr/v1/model/scale_store_response.py +166 -0
- huaweicloudsdkdwr/v1/model/search_entities_body.py +336 -0
- huaweicloudsdkdwr/v1/model/search_entities_request.py +104 -0
- huaweicloudsdkdwr/v1/model/search_entities_response.py +166 -0
- huaweicloudsdkdwr/v1/model/store_data.py +357 -0
- huaweicloudsdkdwr/v1/model/store_info.py +107 -0
- huaweicloudsdkdwr/v1/model/sub_search.py +251 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_body.py +163 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_data.py +135 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_request.py +104 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_response.py +166 -0
- huaweicloudsdkdwr/v1/region/__init__.py +0 -0
- huaweicloudsdkdwr/v1/region/dwr_region.py +43 -0
- huaweicloudsdkdwr/v3/__init__.py +76 -0
- huaweicloudsdkdwr/v3/dwr_async_client.py +1622 -0
- huaweicloudsdkdwr/v3/dwr_client.py +1619 -0
- huaweicloudsdkdwr/v3/model/__init__.py +73 -0
- huaweicloudsdkdwr/v3/model/accept_service_contract_request.py +107 -0
- huaweicloudsdkdwr/v3/model/accept_service_contract_response.py +133 -0
- huaweicloudsdkdwr/v3/model/action.py +420 -0
- huaweicloudsdkdwr/v3/model/action_result.py +221 -0
- huaweicloudsdkdwr/v3/model/action_template_item.py +137 -0
- huaweicloudsdkdwr/v3/model/async_invoke_api_start_workflow_request.py +132 -0
- huaweicloudsdkdwr/v3/model/async_invoke_api_start_workflow_response.py +270 -0
- huaweicloudsdkdwr/v3/model/check_workflow_authentication_request.py +77 -0
- huaweicloudsdkdwr/v3/model/check_workflow_authentication_response.py +473 -0
- huaweicloudsdkdwr/v3/model/create_my_action_template_request.py +132 -0
- huaweicloudsdkdwr/v3/model/create_my_action_template_response.py +415 -0
- huaweicloudsdkdwr/v3/model/create_workflow_authentication_request.py +77 -0
- huaweicloudsdkdwr/v3/model/create_workflow_authentication_response.py +133 -0
- huaweicloudsdkdwr/v3/model/create_workflow_request.py +132 -0
- huaweicloudsdkdwr/v3/model/create_workflow_request_body.py +274 -0
- huaweicloudsdkdwr/v3/model/create_workflow_response.py +270 -0
- huaweicloudsdkdwr/v3/model/delete_my_action_template_request.py +107 -0
- huaweicloudsdkdwr/v3/model/delete_my_action_template_response.py +133 -0
- huaweicloudsdkdwr/v3/model/delete_workflow_request.py +107 -0
- huaweicloudsdkdwr/v3/model/delete_workflow_response.py +133 -0
- huaweicloudsdkdwr/v3/model/execute_workflow_body.py +160 -0
- huaweicloudsdkdwr/v3/model/execution.py +282 -0
- huaweicloudsdkdwr/v3/model/express_config.py +137 -0
- huaweicloudsdkdwr/v3/model/func_vpc.py +253 -0
- huaweicloudsdkdwr/v3/model/graph_item.py +195 -0
- huaweicloudsdkdwr/v3/model/input.py +367 -0
- huaweicloudsdkdwr/v3/model/input_para_type.py +77 -0
- huaweicloudsdkdwr/v3/model/input_para_value_type.py +77 -0
- huaweicloudsdkdwr/v3/model/list_my_action_template_request.py +224 -0
- huaweicloudsdkdwr/v3/model/list_my_action_template_response.py +299 -0
- huaweicloudsdkdwr/v3/model/list_system_templates_request.py +195 -0
- huaweicloudsdkdwr/v3/model/list_system_templates_response.py +328 -0
- huaweicloudsdkdwr/v3/model/list_workflow_instance_request.py +252 -0
- huaweicloudsdkdwr/v3/model/list_workflow_instance_response.py +299 -0
- huaweicloudsdkdwr/v3/model/list_workflows_request.py +166 -0
- huaweicloudsdkdwr/v3/model/list_workflows_response.py +299 -0
- huaweicloudsdkdwr/v3/model/node_execution.py +282 -0
- huaweicloudsdkdwr/v3/model/policy.py +137 -0
- huaweicloudsdkdwr/v3/model/provided_action.py +561 -0
- huaweicloudsdkdwr/v3/model/public_template_item.py +282 -0
- huaweicloudsdkdwr/v3/model/public_template_register_type.py +77 -0
- huaweicloudsdkdwr/v3/model/restore_workflow_execution_request.py +135 -0
- huaweicloudsdkdwr/v3/model/restore_workflow_execution_response.py +270 -0
- huaweicloudsdkdwr/v3/model/show_public_action_list_request.py +195 -0
- huaweicloudsdkdwr/v3/model/show_public_action_list_response.py +328 -0
- huaweicloudsdkdwr/v3/model/show_public_template_info_request.py +107 -0
- huaweicloudsdkdwr/v3/model/show_public_template_info_response.py +208 -0
- huaweicloudsdkdwr/v3/model/show_service_contract_request.py +107 -0
- huaweicloudsdkdwr/v3/model/show_service_contract_response.py +241 -0
- huaweicloudsdkdwr/v3/model/show_system_template_detail_request.py +107 -0
- huaweicloudsdkdwr/v3/model/show_system_template_detail_response.py +208 -0
- huaweicloudsdkdwr/v3/model/show_third_template_info_request.py +107 -0
- huaweicloudsdkdwr/v3/model/show_third_template_info_response.py +208 -0
- huaweicloudsdkdwr/v3/model/show_workflow_info_request.py +107 -0
- huaweicloudsdkdwr/v3/model/show_workflow_info_response.py +328 -0
- huaweicloudsdkdwr/v3/model/show_workflow_instance_request.py +135 -0
- huaweicloudsdkdwr/v3/model/show_workflow_instance_response.py +531 -0
- huaweicloudsdkdwr/v3/model/state.py +338 -0
- huaweicloudsdkdwr/v3/model/statement.py +137 -0
- huaweicloudsdkdwr/v3/model/third_action_template_item.py +282 -0
- huaweicloudsdkdwr/v3/model/third_template_request_body.py +423 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_request.py +132 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_response.py +270 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_to_deprecated_request.py +107 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_to_deprecated_response.py +133 -0
- huaweicloudsdkdwr/v3/model/update_workflow_body.py +108 -0
- huaweicloudsdkdwr/v3/model/update_workflow_request.py +132 -0
- huaweicloudsdkdwr/v3/model/update_workflow_response.py +270 -0
- huaweicloudsdkdwr/v3/region/__init__.py +0 -0
- huaweicloudsdkdwr/v3/region/dwr_region.py +43 -0
- huaweicloudsdkdwr-3.1.181.dist-info/METADATA +25 -0
- huaweicloudsdkdwr-3.1.181.dist-info/RECORD +174 -0
- huaweicloudsdkdwr-3.1.181.dist-info/WHEEL +4 -0
- huaweicloudsdkdwr-3.1.181.dist-info/licenses/LICENSE +13 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class GraphItem:
|
|
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
|
+
'name': 'str',
|
|
19
|
+
'created_at': 'str',
|
|
20
|
+
'graph_urn': 'str',
|
|
21
|
+
'id': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'name': 'name',
|
|
26
|
+
'created_at': 'created_at',
|
|
27
|
+
'graph_urn': 'graph_urn',
|
|
28
|
+
'id': 'id'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, name=None, created_at=None, graph_urn=None, id=None):
|
|
32
|
+
r"""GraphItem
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param name: 工作流的名称。
|
|
37
|
+
:type name: str
|
|
38
|
+
:param created_at: 系统记录的创建工作流模板的时间。
|
|
39
|
+
:type created_at: str
|
|
40
|
+
:param graph_urn: 工作流的URN。
|
|
41
|
+
:type graph_urn: str
|
|
42
|
+
:param id: 工作流ID
|
|
43
|
+
:type id: str
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
self._name = None
|
|
49
|
+
self._created_at = None
|
|
50
|
+
self._graph_urn = None
|
|
51
|
+
self._id = None
|
|
52
|
+
self.discriminator = None
|
|
53
|
+
|
|
54
|
+
if name is not None:
|
|
55
|
+
self.name = name
|
|
56
|
+
if created_at is not None:
|
|
57
|
+
self.created_at = created_at
|
|
58
|
+
if graph_urn is not None:
|
|
59
|
+
self.graph_urn = graph_urn
|
|
60
|
+
if id is not None:
|
|
61
|
+
self.id = id
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def name(self):
|
|
65
|
+
r"""Gets the name of this GraphItem.
|
|
66
|
+
|
|
67
|
+
工作流的名称。
|
|
68
|
+
|
|
69
|
+
:return: The name of this GraphItem.
|
|
70
|
+
:rtype: str
|
|
71
|
+
"""
|
|
72
|
+
return self._name
|
|
73
|
+
|
|
74
|
+
@name.setter
|
|
75
|
+
def name(self, name):
|
|
76
|
+
r"""Sets the name of this GraphItem.
|
|
77
|
+
|
|
78
|
+
工作流的名称。
|
|
79
|
+
|
|
80
|
+
:param name: The name of this GraphItem.
|
|
81
|
+
:type name: str
|
|
82
|
+
"""
|
|
83
|
+
self._name = name
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def created_at(self):
|
|
87
|
+
r"""Gets the created_at of this GraphItem.
|
|
88
|
+
|
|
89
|
+
系统记录的创建工作流模板的时间。
|
|
90
|
+
|
|
91
|
+
:return: The created_at of this GraphItem.
|
|
92
|
+
:rtype: str
|
|
93
|
+
"""
|
|
94
|
+
return self._created_at
|
|
95
|
+
|
|
96
|
+
@created_at.setter
|
|
97
|
+
def created_at(self, created_at):
|
|
98
|
+
r"""Sets the created_at of this GraphItem.
|
|
99
|
+
|
|
100
|
+
系统记录的创建工作流模板的时间。
|
|
101
|
+
|
|
102
|
+
:param created_at: The created_at of this GraphItem.
|
|
103
|
+
:type created_at: str
|
|
104
|
+
"""
|
|
105
|
+
self._created_at = created_at
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def graph_urn(self):
|
|
109
|
+
r"""Gets the graph_urn of this GraphItem.
|
|
110
|
+
|
|
111
|
+
工作流的URN。
|
|
112
|
+
|
|
113
|
+
:return: The graph_urn of this GraphItem.
|
|
114
|
+
:rtype: str
|
|
115
|
+
"""
|
|
116
|
+
return self._graph_urn
|
|
117
|
+
|
|
118
|
+
@graph_urn.setter
|
|
119
|
+
def graph_urn(self, graph_urn):
|
|
120
|
+
r"""Sets the graph_urn of this GraphItem.
|
|
121
|
+
|
|
122
|
+
工作流的URN。
|
|
123
|
+
|
|
124
|
+
:param graph_urn: The graph_urn of this GraphItem.
|
|
125
|
+
:type graph_urn: str
|
|
126
|
+
"""
|
|
127
|
+
self._graph_urn = graph_urn
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def id(self):
|
|
131
|
+
r"""Gets the id of this GraphItem.
|
|
132
|
+
|
|
133
|
+
工作流ID
|
|
134
|
+
|
|
135
|
+
:return: The id of this GraphItem.
|
|
136
|
+
:rtype: str
|
|
137
|
+
"""
|
|
138
|
+
return self._id
|
|
139
|
+
|
|
140
|
+
@id.setter
|
|
141
|
+
def id(self, id):
|
|
142
|
+
r"""Sets the id of this GraphItem.
|
|
143
|
+
|
|
144
|
+
工作流ID
|
|
145
|
+
|
|
146
|
+
:param id: The id of this GraphItem.
|
|
147
|
+
:type id: str
|
|
148
|
+
"""
|
|
149
|
+
self._id = id
|
|
150
|
+
|
|
151
|
+
def to_dict(self):
|
|
152
|
+
result = {}
|
|
153
|
+
|
|
154
|
+
for attr, _ in self.openapi_types.items():
|
|
155
|
+
value = getattr(self, attr)
|
|
156
|
+
if isinstance(value, list):
|
|
157
|
+
result[attr] = list(map(
|
|
158
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
159
|
+
value
|
|
160
|
+
))
|
|
161
|
+
elif hasattr(value, "to_dict"):
|
|
162
|
+
result[attr] = value.to_dict()
|
|
163
|
+
elif isinstance(value, dict):
|
|
164
|
+
result[attr] = dict(map(
|
|
165
|
+
lambda item: (item[0], item[1].to_dict())
|
|
166
|
+
if hasattr(item[1], "to_dict") else item,
|
|
167
|
+
value.items()
|
|
168
|
+
))
|
|
169
|
+
else:
|
|
170
|
+
if attr in self.sensitive_list:
|
|
171
|
+
result[attr] = "****"
|
|
172
|
+
else:
|
|
173
|
+
result[attr] = value
|
|
174
|
+
|
|
175
|
+
return result
|
|
176
|
+
|
|
177
|
+
def to_str(self):
|
|
178
|
+
"""Returns the string representation of the model"""
|
|
179
|
+
import simplejson as json
|
|
180
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
181
|
+
|
|
182
|
+
def __repr__(self):
|
|
183
|
+
"""For `print`"""
|
|
184
|
+
return self.to_str()
|
|
185
|
+
|
|
186
|
+
def __eq__(self, other):
|
|
187
|
+
"""Returns true if both objects are equal"""
|
|
188
|
+
if not isinstance(other, GraphItem):
|
|
189
|
+
return False
|
|
190
|
+
|
|
191
|
+
return self.__dict__ == other.__dict__
|
|
192
|
+
|
|
193
|
+
def __ne__(self, other):
|
|
194
|
+
"""Returns true if both objects are not equal"""
|
|
195
|
+
return not self == other
|
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Input:
|
|
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
|
+
'parameter_name': 'str',
|
|
19
|
+
'type': 'str',
|
|
20
|
+
'value_type': 'str',
|
|
21
|
+
'template_parameter_name': 'str',
|
|
22
|
+
'parameter_value': 'str',
|
|
23
|
+
'description': 'str',
|
|
24
|
+
'default': 'str',
|
|
25
|
+
'label': 'str',
|
|
26
|
+
'constraints': 'object',
|
|
27
|
+
'invisible': 'bool'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
attribute_map = {
|
|
31
|
+
'parameter_name': 'parameter_name',
|
|
32
|
+
'type': 'type',
|
|
33
|
+
'value_type': 'value_type',
|
|
34
|
+
'template_parameter_name': 'template_parameter_name',
|
|
35
|
+
'parameter_value': 'parameter_value',
|
|
36
|
+
'description': 'description',
|
|
37
|
+
'default': 'default',
|
|
38
|
+
'label': 'label',
|
|
39
|
+
'constraints': 'constraints',
|
|
40
|
+
'invisible': 'invisible'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
def __init__(self, parameter_name=None, type=None, value_type=None, template_parameter_name=None, parameter_value=None, description=None, default=None, label=None, constraints=None, invisible=None):
|
|
44
|
+
r"""Input
|
|
45
|
+
|
|
46
|
+
The model defined in huaweicloud sdk
|
|
47
|
+
|
|
48
|
+
:param parameter_name: 输入参数名称,由小写字母、数字和中划线“-”组成
|
|
49
|
+
:type parameter_name: str
|
|
50
|
+
:param type: 参数类型。可为string,integer,float,boolean,list,map。type为list类型时,value_type必填
|
|
51
|
+
:type type: str
|
|
52
|
+
:param value_type: 只支持string,integer,float
|
|
53
|
+
:type value_type: str
|
|
54
|
+
:param template_parameter_name: 当多个相同action template在一个工作流时,增加字段做国际化。 由小写字母、数字和中划线“-”组成
|
|
55
|
+
:type template_parameter_name: str
|
|
56
|
+
:param parameter_value: Input结构体参数类型。支持string,integer,float,boolean,list,map
|
|
57
|
+
:type parameter_value: str
|
|
58
|
+
:param description: 参数项描述信息。
|
|
59
|
+
:type description: str
|
|
60
|
+
:param default: 默认值信息可在创建工作流实例时由外部输入替换;若未填写默认值,外部输入将必须填写这个参数的值。 注:默认值的类型和定义的参数类型必须统一。如果出现不一致,解析器可能会进行自动转换而导致出现与预期不符合的情况。
|
|
61
|
+
:type default: str
|
|
62
|
+
:param label: 参数的标签,此处定义的标签可在创建堆栈时进行分类展示。
|
|
63
|
+
:type label: str
|
|
64
|
+
:param constraints: 约束条件有以下几种,一个输入参数对每一种条件都只能定义一个规则。约束的多个条件中只要有一条不满足,即将认定参数非法。 equal:约定参数的value值必须等于特定值。 valid_values:参数的有效值,定义一个数组。 regex:参数需要满足某个正则条件,必须是字符串类型才可以进行匹配。 invalid_values:参数的无效值范围,如果参数值定义在其中,将会认为无效而报错。
|
|
65
|
+
:type constraints: object
|
|
66
|
+
:param invisible: 输入参数的invisible设置为true时,返回值为******。
|
|
67
|
+
:type invisible: bool
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
self._parameter_name = None
|
|
73
|
+
self._type = None
|
|
74
|
+
self._value_type = None
|
|
75
|
+
self._template_parameter_name = None
|
|
76
|
+
self._parameter_value = None
|
|
77
|
+
self._description = None
|
|
78
|
+
self._default = None
|
|
79
|
+
self._label = None
|
|
80
|
+
self._constraints = None
|
|
81
|
+
self._invisible = None
|
|
82
|
+
self.discriminator = None
|
|
83
|
+
|
|
84
|
+
self.parameter_name = parameter_name
|
|
85
|
+
self.type = type
|
|
86
|
+
if value_type is not None:
|
|
87
|
+
self.value_type = value_type
|
|
88
|
+
if template_parameter_name is not None:
|
|
89
|
+
self.template_parameter_name = template_parameter_name
|
|
90
|
+
if parameter_value is not None:
|
|
91
|
+
self.parameter_value = parameter_value
|
|
92
|
+
if description is not None:
|
|
93
|
+
self.description = description
|
|
94
|
+
if default is not None:
|
|
95
|
+
self.default = default
|
|
96
|
+
if label is not None:
|
|
97
|
+
self.label = label
|
|
98
|
+
if constraints is not None:
|
|
99
|
+
self.constraints = constraints
|
|
100
|
+
if invisible is not None:
|
|
101
|
+
self.invisible = invisible
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def parameter_name(self):
|
|
105
|
+
r"""Gets the parameter_name of this Input.
|
|
106
|
+
|
|
107
|
+
输入参数名称,由小写字母、数字和中划线“-”组成
|
|
108
|
+
|
|
109
|
+
:return: The parameter_name of this Input.
|
|
110
|
+
:rtype: str
|
|
111
|
+
"""
|
|
112
|
+
return self._parameter_name
|
|
113
|
+
|
|
114
|
+
@parameter_name.setter
|
|
115
|
+
def parameter_name(self, parameter_name):
|
|
116
|
+
r"""Sets the parameter_name of this Input.
|
|
117
|
+
|
|
118
|
+
输入参数名称,由小写字母、数字和中划线“-”组成
|
|
119
|
+
|
|
120
|
+
:param parameter_name: The parameter_name of this Input.
|
|
121
|
+
:type parameter_name: str
|
|
122
|
+
"""
|
|
123
|
+
self._parameter_name = parameter_name
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
def type(self):
|
|
127
|
+
r"""Gets the type of this Input.
|
|
128
|
+
|
|
129
|
+
参数类型。可为string,integer,float,boolean,list,map。type为list类型时,value_type必填
|
|
130
|
+
|
|
131
|
+
:return: The type of this Input.
|
|
132
|
+
:rtype: str
|
|
133
|
+
"""
|
|
134
|
+
return self._type
|
|
135
|
+
|
|
136
|
+
@type.setter
|
|
137
|
+
def type(self, type):
|
|
138
|
+
r"""Sets the type of this Input.
|
|
139
|
+
|
|
140
|
+
参数类型。可为string,integer,float,boolean,list,map。type为list类型时,value_type必填
|
|
141
|
+
|
|
142
|
+
:param type: The type of this Input.
|
|
143
|
+
:type type: str
|
|
144
|
+
"""
|
|
145
|
+
self._type = type
|
|
146
|
+
|
|
147
|
+
@property
|
|
148
|
+
def value_type(self):
|
|
149
|
+
r"""Gets the value_type of this Input.
|
|
150
|
+
|
|
151
|
+
只支持string,integer,float
|
|
152
|
+
|
|
153
|
+
:return: The value_type of this Input.
|
|
154
|
+
:rtype: str
|
|
155
|
+
"""
|
|
156
|
+
return self._value_type
|
|
157
|
+
|
|
158
|
+
@value_type.setter
|
|
159
|
+
def value_type(self, value_type):
|
|
160
|
+
r"""Sets the value_type of this Input.
|
|
161
|
+
|
|
162
|
+
只支持string,integer,float
|
|
163
|
+
|
|
164
|
+
:param value_type: The value_type of this Input.
|
|
165
|
+
:type value_type: str
|
|
166
|
+
"""
|
|
167
|
+
self._value_type = value_type
|
|
168
|
+
|
|
169
|
+
@property
|
|
170
|
+
def template_parameter_name(self):
|
|
171
|
+
r"""Gets the template_parameter_name of this Input.
|
|
172
|
+
|
|
173
|
+
当多个相同action template在一个工作流时,增加字段做国际化。 由小写字母、数字和中划线“-”组成
|
|
174
|
+
|
|
175
|
+
:return: The template_parameter_name of this Input.
|
|
176
|
+
:rtype: str
|
|
177
|
+
"""
|
|
178
|
+
return self._template_parameter_name
|
|
179
|
+
|
|
180
|
+
@template_parameter_name.setter
|
|
181
|
+
def template_parameter_name(self, template_parameter_name):
|
|
182
|
+
r"""Sets the template_parameter_name of this Input.
|
|
183
|
+
|
|
184
|
+
当多个相同action template在一个工作流时,增加字段做国际化。 由小写字母、数字和中划线“-”组成
|
|
185
|
+
|
|
186
|
+
:param template_parameter_name: The template_parameter_name of this Input.
|
|
187
|
+
:type template_parameter_name: str
|
|
188
|
+
"""
|
|
189
|
+
self._template_parameter_name = template_parameter_name
|
|
190
|
+
|
|
191
|
+
@property
|
|
192
|
+
def parameter_value(self):
|
|
193
|
+
r"""Gets the parameter_value of this Input.
|
|
194
|
+
|
|
195
|
+
Input结构体参数类型。支持string,integer,float,boolean,list,map
|
|
196
|
+
|
|
197
|
+
:return: The parameter_value of this Input.
|
|
198
|
+
:rtype: str
|
|
199
|
+
"""
|
|
200
|
+
return self._parameter_value
|
|
201
|
+
|
|
202
|
+
@parameter_value.setter
|
|
203
|
+
def parameter_value(self, parameter_value):
|
|
204
|
+
r"""Sets the parameter_value of this Input.
|
|
205
|
+
|
|
206
|
+
Input结构体参数类型。支持string,integer,float,boolean,list,map
|
|
207
|
+
|
|
208
|
+
:param parameter_value: The parameter_value of this Input.
|
|
209
|
+
:type parameter_value: str
|
|
210
|
+
"""
|
|
211
|
+
self._parameter_value = parameter_value
|
|
212
|
+
|
|
213
|
+
@property
|
|
214
|
+
def description(self):
|
|
215
|
+
r"""Gets the description of this Input.
|
|
216
|
+
|
|
217
|
+
参数项描述信息。
|
|
218
|
+
|
|
219
|
+
:return: The description of this Input.
|
|
220
|
+
:rtype: str
|
|
221
|
+
"""
|
|
222
|
+
return self._description
|
|
223
|
+
|
|
224
|
+
@description.setter
|
|
225
|
+
def description(self, description):
|
|
226
|
+
r"""Sets the description of this Input.
|
|
227
|
+
|
|
228
|
+
参数项描述信息。
|
|
229
|
+
|
|
230
|
+
:param description: The description of this Input.
|
|
231
|
+
:type description: str
|
|
232
|
+
"""
|
|
233
|
+
self._description = description
|
|
234
|
+
|
|
235
|
+
@property
|
|
236
|
+
def default(self):
|
|
237
|
+
r"""Gets the default of this Input.
|
|
238
|
+
|
|
239
|
+
默认值信息可在创建工作流实例时由外部输入替换;若未填写默认值,外部输入将必须填写这个参数的值。 注:默认值的类型和定义的参数类型必须统一。如果出现不一致,解析器可能会进行自动转换而导致出现与预期不符合的情况。
|
|
240
|
+
|
|
241
|
+
:return: The default of this Input.
|
|
242
|
+
:rtype: str
|
|
243
|
+
"""
|
|
244
|
+
return self._default
|
|
245
|
+
|
|
246
|
+
@default.setter
|
|
247
|
+
def default(self, default):
|
|
248
|
+
r"""Sets the default of this Input.
|
|
249
|
+
|
|
250
|
+
默认值信息可在创建工作流实例时由外部输入替换;若未填写默认值,外部输入将必须填写这个参数的值。 注:默认值的类型和定义的参数类型必须统一。如果出现不一致,解析器可能会进行自动转换而导致出现与预期不符合的情况。
|
|
251
|
+
|
|
252
|
+
:param default: The default of this Input.
|
|
253
|
+
:type default: str
|
|
254
|
+
"""
|
|
255
|
+
self._default = default
|
|
256
|
+
|
|
257
|
+
@property
|
|
258
|
+
def label(self):
|
|
259
|
+
r"""Gets the label of this Input.
|
|
260
|
+
|
|
261
|
+
参数的标签,此处定义的标签可在创建堆栈时进行分类展示。
|
|
262
|
+
|
|
263
|
+
:return: The label of this Input.
|
|
264
|
+
:rtype: str
|
|
265
|
+
"""
|
|
266
|
+
return self._label
|
|
267
|
+
|
|
268
|
+
@label.setter
|
|
269
|
+
def label(self, label):
|
|
270
|
+
r"""Sets the label of this Input.
|
|
271
|
+
|
|
272
|
+
参数的标签,此处定义的标签可在创建堆栈时进行分类展示。
|
|
273
|
+
|
|
274
|
+
:param label: The label of this Input.
|
|
275
|
+
:type label: str
|
|
276
|
+
"""
|
|
277
|
+
self._label = label
|
|
278
|
+
|
|
279
|
+
@property
|
|
280
|
+
def constraints(self):
|
|
281
|
+
r"""Gets the constraints of this Input.
|
|
282
|
+
|
|
283
|
+
约束条件有以下几种,一个输入参数对每一种条件都只能定义一个规则。约束的多个条件中只要有一条不满足,即将认定参数非法。 equal:约定参数的value值必须等于特定值。 valid_values:参数的有效值,定义一个数组。 regex:参数需要满足某个正则条件,必须是字符串类型才可以进行匹配。 invalid_values:参数的无效值范围,如果参数值定义在其中,将会认为无效而报错。
|
|
284
|
+
|
|
285
|
+
:return: The constraints of this Input.
|
|
286
|
+
:rtype: object
|
|
287
|
+
"""
|
|
288
|
+
return self._constraints
|
|
289
|
+
|
|
290
|
+
@constraints.setter
|
|
291
|
+
def constraints(self, constraints):
|
|
292
|
+
r"""Sets the constraints of this Input.
|
|
293
|
+
|
|
294
|
+
约束条件有以下几种,一个输入参数对每一种条件都只能定义一个规则。约束的多个条件中只要有一条不满足,即将认定参数非法。 equal:约定参数的value值必须等于特定值。 valid_values:参数的有效值,定义一个数组。 regex:参数需要满足某个正则条件,必须是字符串类型才可以进行匹配。 invalid_values:参数的无效值范围,如果参数值定义在其中,将会认为无效而报错。
|
|
295
|
+
|
|
296
|
+
:param constraints: The constraints of this Input.
|
|
297
|
+
:type constraints: object
|
|
298
|
+
"""
|
|
299
|
+
self._constraints = constraints
|
|
300
|
+
|
|
301
|
+
@property
|
|
302
|
+
def invisible(self):
|
|
303
|
+
r"""Gets the invisible of this Input.
|
|
304
|
+
|
|
305
|
+
输入参数的invisible设置为true时,返回值为******。
|
|
306
|
+
|
|
307
|
+
:return: The invisible of this Input.
|
|
308
|
+
:rtype: bool
|
|
309
|
+
"""
|
|
310
|
+
return self._invisible
|
|
311
|
+
|
|
312
|
+
@invisible.setter
|
|
313
|
+
def invisible(self, invisible):
|
|
314
|
+
r"""Sets the invisible of this Input.
|
|
315
|
+
|
|
316
|
+
输入参数的invisible设置为true时,返回值为******。
|
|
317
|
+
|
|
318
|
+
:param invisible: The invisible of this Input.
|
|
319
|
+
:type invisible: bool
|
|
320
|
+
"""
|
|
321
|
+
self._invisible = invisible
|
|
322
|
+
|
|
323
|
+
def to_dict(self):
|
|
324
|
+
result = {}
|
|
325
|
+
|
|
326
|
+
for attr, _ in self.openapi_types.items():
|
|
327
|
+
value = getattr(self, attr)
|
|
328
|
+
if isinstance(value, list):
|
|
329
|
+
result[attr] = list(map(
|
|
330
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
331
|
+
value
|
|
332
|
+
))
|
|
333
|
+
elif hasattr(value, "to_dict"):
|
|
334
|
+
result[attr] = value.to_dict()
|
|
335
|
+
elif isinstance(value, dict):
|
|
336
|
+
result[attr] = dict(map(
|
|
337
|
+
lambda item: (item[0], item[1].to_dict())
|
|
338
|
+
if hasattr(item[1], "to_dict") else item,
|
|
339
|
+
value.items()
|
|
340
|
+
))
|
|
341
|
+
else:
|
|
342
|
+
if attr in self.sensitive_list:
|
|
343
|
+
result[attr] = "****"
|
|
344
|
+
else:
|
|
345
|
+
result[attr] = value
|
|
346
|
+
|
|
347
|
+
return result
|
|
348
|
+
|
|
349
|
+
def to_str(self):
|
|
350
|
+
"""Returns the string representation of the model"""
|
|
351
|
+
import simplejson as json
|
|
352
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
353
|
+
|
|
354
|
+
def __repr__(self):
|
|
355
|
+
"""For `print`"""
|
|
356
|
+
return self.to_str()
|
|
357
|
+
|
|
358
|
+
def __eq__(self, other):
|
|
359
|
+
"""Returns true if both objects are equal"""
|
|
360
|
+
if not isinstance(other, Input):
|
|
361
|
+
return False
|
|
362
|
+
|
|
363
|
+
return self.__dict__ == other.__dict__
|
|
364
|
+
|
|
365
|
+
def __ne__(self, other):
|
|
366
|
+
"""Returns true if both objects are not equal"""
|
|
367
|
+
return not self == other
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class InputParaType:
|
|
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
|
+
}
|
|
19
|
+
|
|
20
|
+
attribute_map = {
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
def __init__(self):
|
|
24
|
+
r"""InputParaType
|
|
25
|
+
|
|
26
|
+
The model defined in huaweicloud sdk
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
self.discriminator = None
|
|
32
|
+
|
|
33
|
+
def to_dict(self):
|
|
34
|
+
result = {}
|
|
35
|
+
|
|
36
|
+
for attr, _ in self.openapi_types.items():
|
|
37
|
+
value = getattr(self, attr)
|
|
38
|
+
if isinstance(value, list):
|
|
39
|
+
result[attr] = list(map(
|
|
40
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
41
|
+
value
|
|
42
|
+
))
|
|
43
|
+
elif hasattr(value, "to_dict"):
|
|
44
|
+
result[attr] = value.to_dict()
|
|
45
|
+
elif isinstance(value, dict):
|
|
46
|
+
result[attr] = dict(map(
|
|
47
|
+
lambda item: (item[0], item[1].to_dict())
|
|
48
|
+
if hasattr(item[1], "to_dict") else item,
|
|
49
|
+
value.items()
|
|
50
|
+
))
|
|
51
|
+
else:
|
|
52
|
+
if attr in self.sensitive_list:
|
|
53
|
+
result[attr] = "****"
|
|
54
|
+
else:
|
|
55
|
+
result[attr] = value
|
|
56
|
+
|
|
57
|
+
return result
|
|
58
|
+
|
|
59
|
+
def to_str(self):
|
|
60
|
+
"""Returns the string representation of the model"""
|
|
61
|
+
import simplejson as json
|
|
62
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
63
|
+
|
|
64
|
+
def __repr__(self):
|
|
65
|
+
"""For `print`"""
|
|
66
|
+
return self.to_str()
|
|
67
|
+
|
|
68
|
+
def __eq__(self, other):
|
|
69
|
+
"""Returns true if both objects are equal"""
|
|
70
|
+
if not isinstance(other, InputParaType):
|
|
71
|
+
return False
|
|
72
|
+
|
|
73
|
+
return self.__dict__ == other.__dict__
|
|
74
|
+
|
|
75
|
+
def __ne__(self, other):
|
|
76
|
+
"""Returns true if both objects are not equal"""
|
|
77
|
+
return not self == other
|