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.
- huaweicloudsdkdwr/__init__.py +0 -0
- huaweicloudsdkdwr/v1/__init__.py +93 -0
- huaweicloudsdkdwr/v1/dwr_async_client.py +1519 -0
- huaweicloudsdkdwr/v1/dwr_client.py +1516 -0
- huaweicloudsdkdwr/v1/model/__init__.py +90 -0
- huaweicloudsdkdwr/v1/model/build_progress.py +231 -0
- huaweicloudsdkdwr/v1/model/charge_info.py +230 -0
- huaweicloudsdkdwr/v1/model/collection_base_info.py +142 -0
- huaweicloudsdkdwr/v1/model/create_collection_body.py +281 -0
- huaweicloudsdkdwr/v1/model/create_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/create_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/create_index_body.py +166 -0
- huaweicloudsdkdwr/v1/model/create_index_request.py +111 -0
- huaweicloudsdkdwr/v1/model/create_index_response.py +145 -0
- huaweicloudsdkdwr/v1/model/create_store_body.py +248 -0
- huaweicloudsdkdwr/v1/model/create_store_data.py +335 -0
- huaweicloudsdkdwr/v1/model/create_store_request.py +111 -0
- huaweicloudsdkdwr/v1/model/create_store_response.py +170 -0
- huaweicloudsdkdwr/v1/model/decribe_collection_data.py +344 -0
- huaweicloudsdkdwr/v1/model/delete_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/delete_entities_body.py +170 -0
- huaweicloudsdkdwr/v1/model/delete_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_entities_response.py +145 -0
- huaweicloudsdkdwr/v1/model/delete_index_body.py +170 -0
- huaweicloudsdkdwr/v1/model/delete_index_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_index_response.py +145 -0
- huaweicloudsdkdwr/v1/model/delete_store_data.py +114 -0
- huaweicloudsdkdwr/v1/model/delete_store_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_store_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_collection_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_index_body.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_index_data.py +166 -0
- huaweicloudsdkdwr/v1/model/describe_index_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_index_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_job_body.py +114 -0
- huaweicloudsdkdwr/v1/model/describe_job_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_job_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_store_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_store_response.py +170 -0
- huaweicloudsdkdwr/v1/model/entities_data.py +114 -0
- huaweicloudsdkdwr/v1/model/field.py +229 -0
- huaweicloudsdkdwr/v1/model/field_data.py +285 -0
- huaweicloudsdkdwr/v1/model/flavor.py +142 -0
- huaweicloudsdkdwr/v1/model/get_index_progress_body.py +170 -0
- huaweicloudsdkdwr/v1/model/get_progress_data.py +167 -0
- huaweicloudsdkdwr/v1/model/get_progress_request.py +111 -0
- huaweicloudsdkdwr/v1/model/get_progress_response.py +170 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_body.py +282 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_request.py +111 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_response.py +170 -0
- huaweicloudsdkdwr/v1/model/index_desc.py +198 -0
- huaweicloudsdkdwr/v1/model/index_params.py +171 -0
- huaweicloudsdkdwr/v1/model/insert_entities_body.py +170 -0
- huaweicloudsdkdwr/v1/model/insert_entities_data.py +143 -0
- huaweicloudsdkdwr/v1/model/insert_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/insert_entities_response.py +170 -0
- huaweicloudsdkdwr/v1/model/job_data.py +316 -0
- huaweicloudsdkdwr/v1/model/list_collection_data.py +143 -0
- huaweicloudsdkdwr/v1/model/list_collection_details.py +260 -0
- huaweicloudsdkdwr/v1/model/list_collections_body.py +143 -0
- huaweicloudsdkdwr/v1/model/list_collections_request.py +111 -0
- huaweicloudsdkdwr/v1/model/list_collections_response.py +170 -0
- huaweicloudsdkdwr/v1/model/list_jobs_data.py +115 -0
- huaweicloudsdkdwr/v1/model/list_jobs_request.py +231 -0
- huaweicloudsdkdwr/v1/model/list_jobs_response.py +170 -0
- huaweicloudsdkdwr/v1/model/list_store_data.py +114 -0
- huaweicloudsdkdwr/v1/model/list_stores_request.py +84 -0
- huaweicloudsdkdwr/v1/model/list_stores_response.py +170 -0
- huaweicloudsdkdwr/v1/model/load_collection_body.py +142 -0
- huaweicloudsdkdwr/v1/model/load_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/load_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/primary_field.py +142 -0
- huaweicloudsdkdwr/v1/model/query_entities_body.py +257 -0
- huaweicloudsdkdwr/v1/model/query_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/query_entities_response.py +170 -0
- huaweicloudsdkdwr/v1/model/release_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/release_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/rerank.py +143 -0
- huaweicloudsdkdwr/v1/model/search_entities_body.py +343 -0
- huaweicloudsdkdwr/v1/model/search_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/search_entities_response.py +170 -0
- huaweicloudsdkdwr/v1/model/store_data.py +364 -0
- huaweicloudsdkdwr/v1/model/store_info.py +114 -0
- huaweicloudsdkdwr/v1/model/sub_search.py +258 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_body.py +170 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_data.py +142 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_response.py +170 -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 +114 -0
- huaweicloudsdkdwr/v3/model/accept_service_contract_response.py +137 -0
- huaweicloudsdkdwr/v3/model/action.py +427 -0
- huaweicloudsdkdwr/v3/model/action_result.py +228 -0
- huaweicloudsdkdwr/v3/model/action_template_item.py +144 -0
- huaweicloudsdkdwr/v3/model/async_invoke_api_start_workflow_request.py +139 -0
- huaweicloudsdkdwr/v3/model/async_invoke_api_start_workflow_response.py +274 -0
- huaweicloudsdkdwr/v3/model/check_workflow_authentication_request.py +84 -0
- huaweicloudsdkdwr/v3/model/check_workflow_authentication_response.py +477 -0
- huaweicloudsdkdwr/v3/model/create_my_action_template_request.py +139 -0
- huaweicloudsdkdwr/v3/model/create_my_action_template_response.py +419 -0
- huaweicloudsdkdwr/v3/model/create_workflow_authentication_request.py +84 -0
- huaweicloudsdkdwr/v3/model/create_workflow_authentication_response.py +137 -0
- huaweicloudsdkdwr/v3/model/create_workflow_request.py +139 -0
- huaweicloudsdkdwr/v3/model/create_workflow_request_body.py +281 -0
- huaweicloudsdkdwr/v3/model/create_workflow_response.py +274 -0
- huaweicloudsdkdwr/v3/model/delete_my_action_template_request.py +114 -0
- huaweicloudsdkdwr/v3/model/delete_my_action_template_response.py +137 -0
- huaweicloudsdkdwr/v3/model/delete_workflow_request.py +114 -0
- huaweicloudsdkdwr/v3/model/delete_workflow_response.py +137 -0
- huaweicloudsdkdwr/v3/model/execute_workflow_body.py +167 -0
- huaweicloudsdkdwr/v3/model/execution.py +289 -0
- huaweicloudsdkdwr/v3/model/express_config.py +144 -0
- huaweicloudsdkdwr/v3/model/func_vpc.py +260 -0
- huaweicloudsdkdwr/v3/model/graph_item.py +202 -0
- huaweicloudsdkdwr/v3/model/input.py +370 -0
- huaweicloudsdkdwr/v3/model/input_para_type.py +84 -0
- huaweicloudsdkdwr/v3/model/input_para_value_type.py +89 -0
- huaweicloudsdkdwr/v3/model/list_my_action_template_request.py +231 -0
- huaweicloudsdkdwr/v3/model/list_my_action_template_response.py +303 -0
- huaweicloudsdkdwr/v3/model/list_system_templates_request.py +202 -0
- huaweicloudsdkdwr/v3/model/list_system_templates_response.py +332 -0
- huaweicloudsdkdwr/v3/model/list_workflow_instance_request.py +259 -0
- huaweicloudsdkdwr/v3/model/list_workflow_instance_response.py +303 -0
- huaweicloudsdkdwr/v3/model/list_workflows_request.py +173 -0
- huaweicloudsdkdwr/v3/model/list_workflows_response.py +303 -0
- huaweicloudsdkdwr/v3/model/node_execution.py +289 -0
- huaweicloudsdkdwr/v3/model/policy.py +144 -0
- huaweicloudsdkdwr/v3/model/provided_action.py +564 -0
- huaweicloudsdkdwr/v3/model/public_template_item.py +285 -0
- huaweicloudsdkdwr/v3/model/public_template_register_type.py +87 -0
- huaweicloudsdkdwr/v3/model/restore_workflow_execution_request.py +142 -0
- huaweicloudsdkdwr/v3/model/restore_workflow_execution_response.py +274 -0
- huaweicloudsdkdwr/v3/model/show_public_action_list_request.py +202 -0
- huaweicloudsdkdwr/v3/model/show_public_action_list_response.py +332 -0
- huaweicloudsdkdwr/v3/model/show_public_template_info_request.py +114 -0
- huaweicloudsdkdwr/v3/model/show_public_template_info_response.py +212 -0
- huaweicloudsdkdwr/v3/model/show_service_contract_request.py +114 -0
- huaweicloudsdkdwr/v3/model/show_service_contract_response.py +245 -0
- huaweicloudsdkdwr/v3/model/show_system_template_detail_request.py +114 -0
- huaweicloudsdkdwr/v3/model/show_system_template_detail_response.py +212 -0
- huaweicloudsdkdwr/v3/model/show_third_template_info_request.py +114 -0
- huaweicloudsdkdwr/v3/model/show_third_template_info_response.py +212 -0
- huaweicloudsdkdwr/v3/model/show_workflow_info_request.py +114 -0
- huaweicloudsdkdwr/v3/model/show_workflow_info_response.py +332 -0
- huaweicloudsdkdwr/v3/model/show_workflow_instance_request.py +142 -0
- huaweicloudsdkdwr/v3/model/show_workflow_instance_response.py +535 -0
- huaweicloudsdkdwr/v3/model/state.py +345 -0
- huaweicloudsdkdwr/v3/model/statement.py +144 -0
- huaweicloudsdkdwr/v3/model/third_action_template_item.py +285 -0
- huaweicloudsdkdwr/v3/model/third_template_request_body.py +430 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_request.py +139 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_response.py +274 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_to_deprecated_request.py +114 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_to_deprecated_response.py +137 -0
- huaweicloudsdkdwr/v3/model/update_workflow_body.py +115 -0
- huaweicloudsdkdwr/v3/model/update_workflow_request.py +139 -0
- huaweicloudsdkdwr/v3/model/update_workflow_response.py +274 -0
- huaweicloudsdkdwr/v3/region/__init__.py +0 -0
- huaweicloudsdkdwr/v3/region/dwr_region.py +43 -0
- huaweicloudsdkdwr-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkdwr-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkdwr-3.1.160.dist-info/RECORD +171 -0
- huaweicloudsdkdwr-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkdwr-3.1.160.dist-info/top_level.txt +1 -0
|
@@ -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 ActionTemplateItem:
|
|
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
|
+
'name': 'str',
|
|
21
|
+
'category': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'name': 'name',
|
|
26
|
+
'category': 'category'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, name=None, category=None):
|
|
30
|
+
r"""ActionTemplateItem
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param name: 名称。
|
|
35
|
+
:type name: str
|
|
36
|
+
:param category: 第三方算子模板的分类。默认分类为FileProcess,MediaProcess,ImageProcess,ContentReview,NotificationProcess,VoiceInteraction
|
|
37
|
+
:type category: str
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._name = None
|
|
43
|
+
self._category = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
if name is not None:
|
|
47
|
+
self.name = name
|
|
48
|
+
if category is not None:
|
|
49
|
+
self.category = category
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def name(self):
|
|
53
|
+
r"""Gets the name of this ActionTemplateItem.
|
|
54
|
+
|
|
55
|
+
名称。
|
|
56
|
+
|
|
57
|
+
:return: The name of this ActionTemplateItem.
|
|
58
|
+
:rtype: str
|
|
59
|
+
"""
|
|
60
|
+
return self._name
|
|
61
|
+
|
|
62
|
+
@name.setter
|
|
63
|
+
def name(self, name):
|
|
64
|
+
r"""Sets the name of this ActionTemplateItem.
|
|
65
|
+
|
|
66
|
+
名称。
|
|
67
|
+
|
|
68
|
+
:param name: The name of this ActionTemplateItem.
|
|
69
|
+
:type name: str
|
|
70
|
+
"""
|
|
71
|
+
self._name = name
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def category(self):
|
|
75
|
+
r"""Gets the category of this ActionTemplateItem.
|
|
76
|
+
|
|
77
|
+
第三方算子模板的分类。默认分类为FileProcess,MediaProcess,ImageProcess,ContentReview,NotificationProcess,VoiceInteraction
|
|
78
|
+
|
|
79
|
+
:return: The category of this ActionTemplateItem.
|
|
80
|
+
:rtype: str
|
|
81
|
+
"""
|
|
82
|
+
return self._category
|
|
83
|
+
|
|
84
|
+
@category.setter
|
|
85
|
+
def category(self, category):
|
|
86
|
+
r"""Sets the category of this ActionTemplateItem.
|
|
87
|
+
|
|
88
|
+
第三方算子模板的分类。默认分类为FileProcess,MediaProcess,ImageProcess,ContentReview,NotificationProcess,VoiceInteraction
|
|
89
|
+
|
|
90
|
+
:param category: The category of this ActionTemplateItem.
|
|
91
|
+
:type category: str
|
|
92
|
+
"""
|
|
93
|
+
self._category = category
|
|
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, ActionTemplateItem):
|
|
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,139 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AsyncInvokeApiStartWorkflowRequest:
|
|
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_name': 'str',
|
|
21
|
+
'body': 'ExecuteWorkflowBody'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'graph_name': 'graph_name',
|
|
26
|
+
'body': 'body'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, graph_name=None, body=None):
|
|
30
|
+
r"""AsyncInvokeApiStartWorkflowRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param graph_name: 工作流名称。
|
|
35
|
+
:type graph_name: str
|
|
36
|
+
:param body: Body of the AsyncInvokeApiStartWorkflowRequest
|
|
37
|
+
:type body: :class:`huaweicloudsdkdwr.v3.ExecuteWorkflowBody`
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._graph_name = None
|
|
43
|
+
self._body = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.graph_name = graph_name
|
|
47
|
+
if body is not None:
|
|
48
|
+
self.body = body
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def graph_name(self):
|
|
52
|
+
r"""Gets the graph_name of this AsyncInvokeApiStartWorkflowRequest.
|
|
53
|
+
|
|
54
|
+
工作流名称。
|
|
55
|
+
|
|
56
|
+
:return: The graph_name of this AsyncInvokeApiStartWorkflowRequest.
|
|
57
|
+
:rtype: str
|
|
58
|
+
"""
|
|
59
|
+
return self._graph_name
|
|
60
|
+
|
|
61
|
+
@graph_name.setter
|
|
62
|
+
def graph_name(self, graph_name):
|
|
63
|
+
r"""Sets the graph_name of this AsyncInvokeApiStartWorkflowRequest.
|
|
64
|
+
|
|
65
|
+
工作流名称。
|
|
66
|
+
|
|
67
|
+
:param graph_name: The graph_name of this AsyncInvokeApiStartWorkflowRequest.
|
|
68
|
+
:type graph_name: str
|
|
69
|
+
"""
|
|
70
|
+
self._graph_name = graph_name
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def body(self):
|
|
74
|
+
r"""Gets the body of this AsyncInvokeApiStartWorkflowRequest.
|
|
75
|
+
|
|
76
|
+
:return: The body of this AsyncInvokeApiStartWorkflowRequest.
|
|
77
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.ExecuteWorkflowBody`
|
|
78
|
+
"""
|
|
79
|
+
return self._body
|
|
80
|
+
|
|
81
|
+
@body.setter
|
|
82
|
+
def body(self, body):
|
|
83
|
+
r"""Sets the body of this AsyncInvokeApiStartWorkflowRequest.
|
|
84
|
+
|
|
85
|
+
:param body: The body of this AsyncInvokeApiStartWorkflowRequest.
|
|
86
|
+
:type body: :class:`huaweicloudsdkdwr.v3.ExecuteWorkflowBody`
|
|
87
|
+
"""
|
|
88
|
+
self._body = body
|
|
89
|
+
|
|
90
|
+
def to_dict(self):
|
|
91
|
+
"""Returns the model properties as a dict"""
|
|
92
|
+
result = {}
|
|
93
|
+
|
|
94
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
95
|
+
value = getattr(self, attr)
|
|
96
|
+
if isinstance(value, list):
|
|
97
|
+
result[attr] = list(map(
|
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
99
|
+
value
|
|
100
|
+
))
|
|
101
|
+
elif hasattr(value, "to_dict"):
|
|
102
|
+
result[attr] = value.to_dict()
|
|
103
|
+
elif isinstance(value, dict):
|
|
104
|
+
result[attr] = dict(map(
|
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
|
107
|
+
value.items()
|
|
108
|
+
))
|
|
109
|
+
else:
|
|
110
|
+
if attr in self.sensitive_list:
|
|
111
|
+
result[attr] = "****"
|
|
112
|
+
else:
|
|
113
|
+
result[attr] = value
|
|
114
|
+
|
|
115
|
+
return result
|
|
116
|
+
|
|
117
|
+
def to_str(self):
|
|
118
|
+
"""Returns the string representation of the model"""
|
|
119
|
+
import simplejson as json
|
|
120
|
+
if six.PY2:
|
|
121
|
+
import sys
|
|
122
|
+
reload(sys)
|
|
123
|
+
sys.setdefaultencoding("utf-8")
|
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
125
|
+
|
|
126
|
+
def __repr__(self):
|
|
127
|
+
"""For `print`"""
|
|
128
|
+
return self.to_str()
|
|
129
|
+
|
|
130
|
+
def __eq__(self, other):
|
|
131
|
+
"""Returns true if both objects are equal"""
|
|
132
|
+
if not isinstance(other, AsyncInvokeApiStartWorkflowRequest):
|
|
133
|
+
return False
|
|
134
|
+
|
|
135
|
+
return self.__dict__ == other.__dict__
|
|
136
|
+
|
|
137
|
+
def __ne__(self, other):
|
|
138
|
+
"""Returns true if both objects are not equal"""
|
|
139
|
+
return not self == other
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class AsyncInvokeApiStartWorkflowResponse(SdkResponse):
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
openapi_types (dict): The key is attribute name
|
|
14
|
+
and the value is attribute type.
|
|
15
|
+
attribute_map (dict): The key is attribute name
|
|
16
|
+
and the value is json key in definition.
|
|
17
|
+
"""
|
|
18
|
+
sensitive_list = []
|
|
19
|
+
|
|
20
|
+
openapi_types = {
|
|
21
|
+
'execution_urn': 'str',
|
|
22
|
+
'started_at': 'str',
|
|
23
|
+
'execution_name': 'str',
|
|
24
|
+
'x_request_id': 'str',
|
|
25
|
+
'connection': 'str',
|
|
26
|
+
'content_length': 'str',
|
|
27
|
+
'date': 'str'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
attribute_map = {
|
|
31
|
+
'execution_urn': 'execution_urn',
|
|
32
|
+
'started_at': 'started_at',
|
|
33
|
+
'execution_name': 'execution_name',
|
|
34
|
+
'x_request_id': 'x-request-id',
|
|
35
|
+
'connection': 'Connection',
|
|
36
|
+
'content_length': 'Content-Length',
|
|
37
|
+
'date': 'Date'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
def __init__(self, execution_urn=None, started_at=None, execution_name=None, x_request_id=None, connection=None, content_length=None, date=None):
|
|
41
|
+
r"""AsyncInvokeApiStartWorkflowResponse
|
|
42
|
+
|
|
43
|
+
The model defined in huaweicloud sdk
|
|
44
|
+
|
|
45
|
+
:param execution_urn: 运行实例的URN。
|
|
46
|
+
:type execution_urn: str
|
|
47
|
+
:param started_at: 运行实例启动时间。
|
|
48
|
+
:type started_at: str
|
|
49
|
+
:param execution_name: 运行实例的名字。
|
|
50
|
+
:type execution_name: str
|
|
51
|
+
:param x_request_id:
|
|
52
|
+
:type x_request_id: str
|
|
53
|
+
:param connection:
|
|
54
|
+
:type connection: str
|
|
55
|
+
:param content_length:
|
|
56
|
+
:type content_length: str
|
|
57
|
+
:param date:
|
|
58
|
+
:type date: str
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
super(AsyncInvokeApiStartWorkflowResponse, self).__init__()
|
|
62
|
+
|
|
63
|
+
self._execution_urn = None
|
|
64
|
+
self._started_at = None
|
|
65
|
+
self._execution_name = None
|
|
66
|
+
self._x_request_id = None
|
|
67
|
+
self._connection = None
|
|
68
|
+
self._content_length = None
|
|
69
|
+
self._date = None
|
|
70
|
+
self.discriminator = None
|
|
71
|
+
|
|
72
|
+
if execution_urn is not None:
|
|
73
|
+
self.execution_urn = execution_urn
|
|
74
|
+
if started_at is not None:
|
|
75
|
+
self.started_at = started_at
|
|
76
|
+
if execution_name is not None:
|
|
77
|
+
self.execution_name = execution_name
|
|
78
|
+
if x_request_id is not None:
|
|
79
|
+
self.x_request_id = x_request_id
|
|
80
|
+
if connection is not None:
|
|
81
|
+
self.connection = connection
|
|
82
|
+
if content_length is not None:
|
|
83
|
+
self.content_length = content_length
|
|
84
|
+
if date is not None:
|
|
85
|
+
self.date = date
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def execution_urn(self):
|
|
89
|
+
r"""Gets the execution_urn of this AsyncInvokeApiStartWorkflowResponse.
|
|
90
|
+
|
|
91
|
+
运行实例的URN。
|
|
92
|
+
|
|
93
|
+
:return: The execution_urn of this AsyncInvokeApiStartWorkflowResponse.
|
|
94
|
+
:rtype: str
|
|
95
|
+
"""
|
|
96
|
+
return self._execution_urn
|
|
97
|
+
|
|
98
|
+
@execution_urn.setter
|
|
99
|
+
def execution_urn(self, execution_urn):
|
|
100
|
+
r"""Sets the execution_urn of this AsyncInvokeApiStartWorkflowResponse.
|
|
101
|
+
|
|
102
|
+
运行实例的URN。
|
|
103
|
+
|
|
104
|
+
:param execution_urn: The execution_urn of this AsyncInvokeApiStartWorkflowResponse.
|
|
105
|
+
:type execution_urn: str
|
|
106
|
+
"""
|
|
107
|
+
self._execution_urn = execution_urn
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def started_at(self):
|
|
111
|
+
r"""Gets the started_at of this AsyncInvokeApiStartWorkflowResponse.
|
|
112
|
+
|
|
113
|
+
运行实例启动时间。
|
|
114
|
+
|
|
115
|
+
:return: The started_at of this AsyncInvokeApiStartWorkflowResponse.
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._started_at
|
|
119
|
+
|
|
120
|
+
@started_at.setter
|
|
121
|
+
def started_at(self, started_at):
|
|
122
|
+
r"""Sets the started_at of this AsyncInvokeApiStartWorkflowResponse.
|
|
123
|
+
|
|
124
|
+
运行实例启动时间。
|
|
125
|
+
|
|
126
|
+
:param started_at: The started_at of this AsyncInvokeApiStartWorkflowResponse.
|
|
127
|
+
:type started_at: str
|
|
128
|
+
"""
|
|
129
|
+
self._started_at = started_at
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
def execution_name(self):
|
|
133
|
+
r"""Gets the execution_name of this AsyncInvokeApiStartWorkflowResponse.
|
|
134
|
+
|
|
135
|
+
运行实例的名字。
|
|
136
|
+
|
|
137
|
+
:return: The execution_name of this AsyncInvokeApiStartWorkflowResponse.
|
|
138
|
+
:rtype: str
|
|
139
|
+
"""
|
|
140
|
+
return self._execution_name
|
|
141
|
+
|
|
142
|
+
@execution_name.setter
|
|
143
|
+
def execution_name(self, execution_name):
|
|
144
|
+
r"""Sets the execution_name of this AsyncInvokeApiStartWorkflowResponse.
|
|
145
|
+
|
|
146
|
+
运行实例的名字。
|
|
147
|
+
|
|
148
|
+
:param execution_name: The execution_name of this AsyncInvokeApiStartWorkflowResponse.
|
|
149
|
+
:type execution_name: str
|
|
150
|
+
"""
|
|
151
|
+
self._execution_name = execution_name
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
def x_request_id(self):
|
|
155
|
+
r"""Gets the x_request_id of this AsyncInvokeApiStartWorkflowResponse.
|
|
156
|
+
|
|
157
|
+
:return: The x_request_id of this AsyncInvokeApiStartWorkflowResponse.
|
|
158
|
+
:rtype: str
|
|
159
|
+
"""
|
|
160
|
+
return self._x_request_id
|
|
161
|
+
|
|
162
|
+
@x_request_id.setter
|
|
163
|
+
def x_request_id(self, x_request_id):
|
|
164
|
+
r"""Sets the x_request_id of this AsyncInvokeApiStartWorkflowResponse.
|
|
165
|
+
|
|
166
|
+
:param x_request_id: The x_request_id of this AsyncInvokeApiStartWorkflowResponse.
|
|
167
|
+
:type x_request_id: str
|
|
168
|
+
"""
|
|
169
|
+
self._x_request_id = x_request_id
|
|
170
|
+
|
|
171
|
+
@property
|
|
172
|
+
def connection(self):
|
|
173
|
+
r"""Gets the connection of this AsyncInvokeApiStartWorkflowResponse.
|
|
174
|
+
|
|
175
|
+
:return: The connection of this AsyncInvokeApiStartWorkflowResponse.
|
|
176
|
+
:rtype: str
|
|
177
|
+
"""
|
|
178
|
+
return self._connection
|
|
179
|
+
|
|
180
|
+
@connection.setter
|
|
181
|
+
def connection(self, connection):
|
|
182
|
+
r"""Sets the connection of this AsyncInvokeApiStartWorkflowResponse.
|
|
183
|
+
|
|
184
|
+
:param connection: The connection of this AsyncInvokeApiStartWorkflowResponse.
|
|
185
|
+
:type connection: str
|
|
186
|
+
"""
|
|
187
|
+
self._connection = connection
|
|
188
|
+
|
|
189
|
+
@property
|
|
190
|
+
def content_length(self):
|
|
191
|
+
r"""Gets the content_length of this AsyncInvokeApiStartWorkflowResponse.
|
|
192
|
+
|
|
193
|
+
:return: The content_length of this AsyncInvokeApiStartWorkflowResponse.
|
|
194
|
+
:rtype: str
|
|
195
|
+
"""
|
|
196
|
+
return self._content_length
|
|
197
|
+
|
|
198
|
+
@content_length.setter
|
|
199
|
+
def content_length(self, content_length):
|
|
200
|
+
r"""Sets the content_length of this AsyncInvokeApiStartWorkflowResponse.
|
|
201
|
+
|
|
202
|
+
:param content_length: The content_length of this AsyncInvokeApiStartWorkflowResponse.
|
|
203
|
+
:type content_length: str
|
|
204
|
+
"""
|
|
205
|
+
self._content_length = content_length
|
|
206
|
+
|
|
207
|
+
@property
|
|
208
|
+
def date(self):
|
|
209
|
+
r"""Gets the date of this AsyncInvokeApiStartWorkflowResponse.
|
|
210
|
+
|
|
211
|
+
:return: The date of this AsyncInvokeApiStartWorkflowResponse.
|
|
212
|
+
:rtype: str
|
|
213
|
+
"""
|
|
214
|
+
return self._date
|
|
215
|
+
|
|
216
|
+
@date.setter
|
|
217
|
+
def date(self, date):
|
|
218
|
+
r"""Sets the date of this AsyncInvokeApiStartWorkflowResponse.
|
|
219
|
+
|
|
220
|
+
:param date: The date of this AsyncInvokeApiStartWorkflowResponse.
|
|
221
|
+
:type date: str
|
|
222
|
+
"""
|
|
223
|
+
self._date = date
|
|
224
|
+
|
|
225
|
+
def to_dict(self):
|
|
226
|
+
"""Returns the model properties as a dict"""
|
|
227
|
+
result = {}
|
|
228
|
+
|
|
229
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
230
|
+
value = getattr(self, attr)
|
|
231
|
+
if isinstance(value, list):
|
|
232
|
+
result[attr] = list(map(
|
|
233
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
234
|
+
value
|
|
235
|
+
))
|
|
236
|
+
elif hasattr(value, "to_dict"):
|
|
237
|
+
result[attr] = value.to_dict()
|
|
238
|
+
elif isinstance(value, dict):
|
|
239
|
+
result[attr] = dict(map(
|
|
240
|
+
lambda item: (item[0], item[1].to_dict())
|
|
241
|
+
if hasattr(item[1], "to_dict") else item,
|
|
242
|
+
value.items()
|
|
243
|
+
))
|
|
244
|
+
else:
|
|
245
|
+
if attr in self.sensitive_list:
|
|
246
|
+
result[attr] = "****"
|
|
247
|
+
else:
|
|
248
|
+
result[attr] = value
|
|
249
|
+
|
|
250
|
+
return result
|
|
251
|
+
|
|
252
|
+
def to_str(self):
|
|
253
|
+
"""Returns the string representation of the model"""
|
|
254
|
+
import simplejson as json
|
|
255
|
+
if six.PY2:
|
|
256
|
+
import sys
|
|
257
|
+
reload(sys)
|
|
258
|
+
sys.setdefaultencoding("utf-8")
|
|
259
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
260
|
+
|
|
261
|
+
def __repr__(self):
|
|
262
|
+
"""For `print`"""
|
|
263
|
+
return self.to_str()
|
|
264
|
+
|
|
265
|
+
def __eq__(self, other):
|
|
266
|
+
"""Returns true if both objects are equal"""
|
|
267
|
+
if not isinstance(other, AsyncInvokeApiStartWorkflowResponse):
|
|
268
|
+
return False
|
|
269
|
+
|
|
270
|
+
return self.__dict__ == other.__dict__
|
|
271
|
+
|
|
272
|
+
def __ne__(self, other):
|
|
273
|
+
"""Returns true if both objects are not equal"""
|
|
274
|
+
return not self == other
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CheckWorkflowAuthenticationRequest:
|
|
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
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
def __init__(self):
|
|
26
|
+
r"""CheckWorkflowAuthenticationRequest
|
|
27
|
+
|
|
28
|
+
The model defined in huaweicloud sdk
|
|
29
|
+
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
self.discriminator = None
|
|
34
|
+
|
|
35
|
+
def to_dict(self):
|
|
36
|
+
"""Returns the model properties as a dict"""
|
|
37
|
+
result = {}
|
|
38
|
+
|
|
39
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
40
|
+
value = getattr(self, attr)
|
|
41
|
+
if isinstance(value, list):
|
|
42
|
+
result[attr] = list(map(
|
|
43
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
44
|
+
value
|
|
45
|
+
))
|
|
46
|
+
elif hasattr(value, "to_dict"):
|
|
47
|
+
result[attr] = value.to_dict()
|
|
48
|
+
elif isinstance(value, dict):
|
|
49
|
+
result[attr] = dict(map(
|
|
50
|
+
lambda item: (item[0], item[1].to_dict())
|
|
51
|
+
if hasattr(item[1], "to_dict") else item,
|
|
52
|
+
value.items()
|
|
53
|
+
))
|
|
54
|
+
else:
|
|
55
|
+
if attr in self.sensitive_list:
|
|
56
|
+
result[attr] = "****"
|
|
57
|
+
else:
|
|
58
|
+
result[attr] = value
|
|
59
|
+
|
|
60
|
+
return result
|
|
61
|
+
|
|
62
|
+
def to_str(self):
|
|
63
|
+
"""Returns the string representation of the model"""
|
|
64
|
+
import simplejson as json
|
|
65
|
+
if six.PY2:
|
|
66
|
+
import sys
|
|
67
|
+
reload(sys)
|
|
68
|
+
sys.setdefaultencoding("utf-8")
|
|
69
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
70
|
+
|
|
71
|
+
def __repr__(self):
|
|
72
|
+
"""For `print`"""
|
|
73
|
+
return self.to_str()
|
|
74
|
+
|
|
75
|
+
def __eq__(self, other):
|
|
76
|
+
"""Returns true if both objects are equal"""
|
|
77
|
+
if not isinstance(other, CheckWorkflowAuthenticationRequest):
|
|
78
|
+
return False
|
|
79
|
+
|
|
80
|
+
return self.__dict__ == other.__dict__
|
|
81
|
+
|
|
82
|
+
def __ne__(self, other):
|
|
83
|
+
"""Returns true if both objects are not equal"""
|
|
84
|
+
return not self == other
|