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,107 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class DeleteMyActionTemplateRequest:
|
|
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
|
+
'template_name': 'str'
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
attribute_map = {
|
|
22
|
+
'template_name': 'template_name'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
def __init__(self, template_name=None):
|
|
26
|
+
r"""DeleteMyActionTemplateRequest
|
|
27
|
+
|
|
28
|
+
The model defined in huaweicloud sdk
|
|
29
|
+
|
|
30
|
+
:param template_name: 三方算子模板名。
|
|
31
|
+
:type template_name: str
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
self._template_name = None
|
|
37
|
+
self.discriminator = None
|
|
38
|
+
|
|
39
|
+
self.template_name = template_name
|
|
40
|
+
|
|
41
|
+
@property
|
|
42
|
+
def template_name(self):
|
|
43
|
+
r"""Gets the template_name of this DeleteMyActionTemplateRequest.
|
|
44
|
+
|
|
45
|
+
三方算子模板名。
|
|
46
|
+
|
|
47
|
+
:return: The template_name of this DeleteMyActionTemplateRequest.
|
|
48
|
+
:rtype: str
|
|
49
|
+
"""
|
|
50
|
+
return self._template_name
|
|
51
|
+
|
|
52
|
+
@template_name.setter
|
|
53
|
+
def template_name(self, template_name):
|
|
54
|
+
r"""Sets the template_name of this DeleteMyActionTemplateRequest.
|
|
55
|
+
|
|
56
|
+
三方算子模板名。
|
|
57
|
+
|
|
58
|
+
:param template_name: The template_name of this DeleteMyActionTemplateRequest.
|
|
59
|
+
:type template_name: str
|
|
60
|
+
"""
|
|
61
|
+
self._template_name = template_name
|
|
62
|
+
|
|
63
|
+
def to_dict(self):
|
|
64
|
+
result = {}
|
|
65
|
+
|
|
66
|
+
for attr, _ in self.openapi_types.items():
|
|
67
|
+
value = getattr(self, attr)
|
|
68
|
+
if isinstance(value, list):
|
|
69
|
+
result[attr] = list(map(
|
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
71
|
+
value
|
|
72
|
+
))
|
|
73
|
+
elif hasattr(value, "to_dict"):
|
|
74
|
+
result[attr] = value.to_dict()
|
|
75
|
+
elif isinstance(value, dict):
|
|
76
|
+
result[attr] = dict(map(
|
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
|
79
|
+
value.items()
|
|
80
|
+
))
|
|
81
|
+
else:
|
|
82
|
+
if attr in self.sensitive_list:
|
|
83
|
+
result[attr] = "****"
|
|
84
|
+
else:
|
|
85
|
+
result[attr] = value
|
|
86
|
+
|
|
87
|
+
return result
|
|
88
|
+
|
|
89
|
+
def to_str(self):
|
|
90
|
+
"""Returns the string representation of the model"""
|
|
91
|
+
import simplejson as json
|
|
92
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
93
|
+
|
|
94
|
+
def __repr__(self):
|
|
95
|
+
"""For `print`"""
|
|
96
|
+
return self.to_str()
|
|
97
|
+
|
|
98
|
+
def __eq__(self, other):
|
|
99
|
+
"""Returns true if both objects are equal"""
|
|
100
|
+
if not isinstance(other, DeleteMyActionTemplateRequest):
|
|
101
|
+
return False
|
|
102
|
+
|
|
103
|
+
return self.__dict__ == other.__dict__
|
|
104
|
+
|
|
105
|
+
def __ne__(self, other):
|
|
106
|
+
"""Returns true if both objects are not equal"""
|
|
107
|
+
return not self == other
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
4
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class DeleteMyActionTemplateResponse(SdkResponse):
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
Attributes:
|
|
11
|
+
openapi_types (dict): The key is attribute name
|
|
12
|
+
and the value is attribute type.
|
|
13
|
+
attribute_map (dict): The key is attribute name
|
|
14
|
+
and the value is json key in definition.
|
|
15
|
+
"""
|
|
16
|
+
sensitive_list = []
|
|
17
|
+
|
|
18
|
+
openapi_types = {
|
|
19
|
+
'x_request_id': 'str',
|
|
20
|
+
'content_length': 'str'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'x_request_id': 'x-request-id',
|
|
25
|
+
'content_length': 'Content-Length'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
def __init__(self, x_request_id=None, content_length=None):
|
|
29
|
+
r"""DeleteMyActionTemplateResponse
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
:param x_request_id:
|
|
34
|
+
:type x_request_id: str
|
|
35
|
+
:param content_length:
|
|
36
|
+
:type content_length: str
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
super().__init__()
|
|
40
|
+
|
|
41
|
+
self._x_request_id = None
|
|
42
|
+
self._content_length = None
|
|
43
|
+
self.discriminator = None
|
|
44
|
+
|
|
45
|
+
if x_request_id is not None:
|
|
46
|
+
self.x_request_id = x_request_id
|
|
47
|
+
if content_length is not None:
|
|
48
|
+
self.content_length = content_length
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def x_request_id(self):
|
|
52
|
+
r"""Gets the x_request_id of this DeleteMyActionTemplateResponse.
|
|
53
|
+
|
|
54
|
+
:return: The x_request_id of this DeleteMyActionTemplateResponse.
|
|
55
|
+
:rtype: str
|
|
56
|
+
"""
|
|
57
|
+
return self._x_request_id
|
|
58
|
+
|
|
59
|
+
@x_request_id.setter
|
|
60
|
+
def x_request_id(self, x_request_id):
|
|
61
|
+
r"""Sets the x_request_id of this DeleteMyActionTemplateResponse.
|
|
62
|
+
|
|
63
|
+
:param x_request_id: The x_request_id of this DeleteMyActionTemplateResponse.
|
|
64
|
+
:type x_request_id: str
|
|
65
|
+
"""
|
|
66
|
+
self._x_request_id = x_request_id
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def content_length(self):
|
|
70
|
+
r"""Gets the content_length of this DeleteMyActionTemplateResponse.
|
|
71
|
+
|
|
72
|
+
:return: The content_length of this DeleteMyActionTemplateResponse.
|
|
73
|
+
:rtype: str
|
|
74
|
+
"""
|
|
75
|
+
return self._content_length
|
|
76
|
+
|
|
77
|
+
@content_length.setter
|
|
78
|
+
def content_length(self, content_length):
|
|
79
|
+
r"""Sets the content_length of this DeleteMyActionTemplateResponse.
|
|
80
|
+
|
|
81
|
+
:param content_length: The content_length of this DeleteMyActionTemplateResponse.
|
|
82
|
+
:type content_length: str
|
|
83
|
+
"""
|
|
84
|
+
self._content_length = content_length
|
|
85
|
+
|
|
86
|
+
def to_dict(self):
|
|
87
|
+
import warnings
|
|
88
|
+
warnings.warn("DeleteMyActionTemplateResponse.to_dict() is deprecated and no longer maintained, "
|
|
89
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
90
|
+
result = {}
|
|
91
|
+
|
|
92
|
+
for attr, _ in self.openapi_types.items():
|
|
93
|
+
value = getattr(self, attr)
|
|
94
|
+
if isinstance(value, list):
|
|
95
|
+
result[attr] = list(map(
|
|
96
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
97
|
+
value
|
|
98
|
+
))
|
|
99
|
+
elif hasattr(value, "to_dict"):
|
|
100
|
+
result[attr] = value.to_dict()
|
|
101
|
+
elif isinstance(value, dict):
|
|
102
|
+
result[attr] = dict(map(
|
|
103
|
+
lambda item: (item[0], item[1].to_dict())
|
|
104
|
+
if hasattr(item[1], "to_dict") else item,
|
|
105
|
+
value.items()
|
|
106
|
+
))
|
|
107
|
+
else:
|
|
108
|
+
if attr in self.sensitive_list:
|
|
109
|
+
result[attr] = "****"
|
|
110
|
+
else:
|
|
111
|
+
result[attr] = value
|
|
112
|
+
|
|
113
|
+
return result
|
|
114
|
+
|
|
115
|
+
def to_str(self):
|
|
116
|
+
"""Returns the string representation of the model"""
|
|
117
|
+
import simplejson as json
|
|
118
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
119
|
+
|
|
120
|
+
def __repr__(self):
|
|
121
|
+
"""For `print`"""
|
|
122
|
+
return self.to_str()
|
|
123
|
+
|
|
124
|
+
def __eq__(self, other):
|
|
125
|
+
"""Returns true if both objects are equal"""
|
|
126
|
+
if not isinstance(other, DeleteMyActionTemplateResponse):
|
|
127
|
+
return False
|
|
128
|
+
|
|
129
|
+
return self.__dict__ == other.__dict__
|
|
130
|
+
|
|
131
|
+
def __ne__(self, other):
|
|
132
|
+
"""Returns true if both objects are not equal"""
|
|
133
|
+
return not self == other
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class DeleteWorkflowRequest:
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
Attributes:
|
|
10
|
+
openapi_types (dict): The key is attribute name
|
|
11
|
+
and the value is attribute type.
|
|
12
|
+
attribute_map (dict): The key is attribute name
|
|
13
|
+
and the value is json key in definition.
|
|
14
|
+
"""
|
|
15
|
+
sensitive_list = []
|
|
16
|
+
|
|
17
|
+
openapi_types = {
|
|
18
|
+
'graph_name': 'str'
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
attribute_map = {
|
|
22
|
+
'graph_name': 'graph_name'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
def __init__(self, graph_name=None):
|
|
26
|
+
r"""DeleteWorkflowRequest
|
|
27
|
+
|
|
28
|
+
The model defined in huaweicloud sdk
|
|
29
|
+
|
|
30
|
+
:param graph_name: 工作流名称。名称必须以字母或数字开头,只能由字母、数字、下划线和中划线组成,长度小于等于64个字符,且不能重名。
|
|
31
|
+
:type graph_name: str
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
self._graph_name = None
|
|
37
|
+
self.discriminator = None
|
|
38
|
+
|
|
39
|
+
self.graph_name = graph_name
|
|
40
|
+
|
|
41
|
+
@property
|
|
42
|
+
def graph_name(self):
|
|
43
|
+
r"""Gets the graph_name of this DeleteWorkflowRequest.
|
|
44
|
+
|
|
45
|
+
工作流名称。名称必须以字母或数字开头,只能由字母、数字、下划线和中划线组成,长度小于等于64个字符,且不能重名。
|
|
46
|
+
|
|
47
|
+
:return: The graph_name of this DeleteWorkflowRequest.
|
|
48
|
+
:rtype: str
|
|
49
|
+
"""
|
|
50
|
+
return self._graph_name
|
|
51
|
+
|
|
52
|
+
@graph_name.setter
|
|
53
|
+
def graph_name(self, graph_name):
|
|
54
|
+
r"""Sets the graph_name of this DeleteWorkflowRequest.
|
|
55
|
+
|
|
56
|
+
工作流名称。名称必须以字母或数字开头,只能由字母、数字、下划线和中划线组成,长度小于等于64个字符,且不能重名。
|
|
57
|
+
|
|
58
|
+
:param graph_name: The graph_name of this DeleteWorkflowRequest.
|
|
59
|
+
:type graph_name: str
|
|
60
|
+
"""
|
|
61
|
+
self._graph_name = graph_name
|
|
62
|
+
|
|
63
|
+
def to_dict(self):
|
|
64
|
+
result = {}
|
|
65
|
+
|
|
66
|
+
for attr, _ in self.openapi_types.items():
|
|
67
|
+
value = getattr(self, attr)
|
|
68
|
+
if isinstance(value, list):
|
|
69
|
+
result[attr] = list(map(
|
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
71
|
+
value
|
|
72
|
+
))
|
|
73
|
+
elif hasattr(value, "to_dict"):
|
|
74
|
+
result[attr] = value.to_dict()
|
|
75
|
+
elif isinstance(value, dict):
|
|
76
|
+
result[attr] = dict(map(
|
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
|
79
|
+
value.items()
|
|
80
|
+
))
|
|
81
|
+
else:
|
|
82
|
+
if attr in self.sensitive_list:
|
|
83
|
+
result[attr] = "****"
|
|
84
|
+
else:
|
|
85
|
+
result[attr] = value
|
|
86
|
+
|
|
87
|
+
return result
|
|
88
|
+
|
|
89
|
+
def to_str(self):
|
|
90
|
+
"""Returns the string representation of the model"""
|
|
91
|
+
import simplejson as json
|
|
92
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
93
|
+
|
|
94
|
+
def __repr__(self):
|
|
95
|
+
"""For `print`"""
|
|
96
|
+
return self.to_str()
|
|
97
|
+
|
|
98
|
+
def __eq__(self, other):
|
|
99
|
+
"""Returns true if both objects are equal"""
|
|
100
|
+
if not isinstance(other, DeleteWorkflowRequest):
|
|
101
|
+
return False
|
|
102
|
+
|
|
103
|
+
return self.__dict__ == other.__dict__
|
|
104
|
+
|
|
105
|
+
def __ne__(self, other):
|
|
106
|
+
"""Returns true if both objects are not equal"""
|
|
107
|
+
return not self == other
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
4
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class DeleteWorkflowResponse(SdkResponse):
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
Attributes:
|
|
11
|
+
openapi_types (dict): The key is attribute name
|
|
12
|
+
and the value is attribute type.
|
|
13
|
+
attribute_map (dict): The key is attribute name
|
|
14
|
+
and the value is json key in definition.
|
|
15
|
+
"""
|
|
16
|
+
sensitive_list = []
|
|
17
|
+
|
|
18
|
+
openapi_types = {
|
|
19
|
+
'x_request_id': 'str',
|
|
20
|
+
'content_length': 'str'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'x_request_id': 'x-request-id',
|
|
25
|
+
'content_length': 'Content-Length'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
def __init__(self, x_request_id=None, content_length=None):
|
|
29
|
+
r"""DeleteWorkflowResponse
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
:param x_request_id:
|
|
34
|
+
:type x_request_id: str
|
|
35
|
+
:param content_length:
|
|
36
|
+
:type content_length: str
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
super().__init__()
|
|
40
|
+
|
|
41
|
+
self._x_request_id = None
|
|
42
|
+
self._content_length = None
|
|
43
|
+
self.discriminator = None
|
|
44
|
+
|
|
45
|
+
if x_request_id is not None:
|
|
46
|
+
self.x_request_id = x_request_id
|
|
47
|
+
if content_length is not None:
|
|
48
|
+
self.content_length = content_length
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def x_request_id(self):
|
|
52
|
+
r"""Gets the x_request_id of this DeleteWorkflowResponse.
|
|
53
|
+
|
|
54
|
+
:return: The x_request_id of this DeleteWorkflowResponse.
|
|
55
|
+
:rtype: str
|
|
56
|
+
"""
|
|
57
|
+
return self._x_request_id
|
|
58
|
+
|
|
59
|
+
@x_request_id.setter
|
|
60
|
+
def x_request_id(self, x_request_id):
|
|
61
|
+
r"""Sets the x_request_id of this DeleteWorkflowResponse.
|
|
62
|
+
|
|
63
|
+
:param x_request_id: The x_request_id of this DeleteWorkflowResponse.
|
|
64
|
+
:type x_request_id: str
|
|
65
|
+
"""
|
|
66
|
+
self._x_request_id = x_request_id
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def content_length(self):
|
|
70
|
+
r"""Gets the content_length of this DeleteWorkflowResponse.
|
|
71
|
+
|
|
72
|
+
:return: The content_length of this DeleteWorkflowResponse.
|
|
73
|
+
:rtype: str
|
|
74
|
+
"""
|
|
75
|
+
return self._content_length
|
|
76
|
+
|
|
77
|
+
@content_length.setter
|
|
78
|
+
def content_length(self, content_length):
|
|
79
|
+
r"""Sets the content_length of this DeleteWorkflowResponse.
|
|
80
|
+
|
|
81
|
+
:param content_length: The content_length of this DeleteWorkflowResponse.
|
|
82
|
+
:type content_length: str
|
|
83
|
+
"""
|
|
84
|
+
self._content_length = content_length
|
|
85
|
+
|
|
86
|
+
def to_dict(self):
|
|
87
|
+
import warnings
|
|
88
|
+
warnings.warn("DeleteWorkflowResponse.to_dict() is deprecated and no longer maintained, "
|
|
89
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
90
|
+
result = {}
|
|
91
|
+
|
|
92
|
+
for attr, _ in self.openapi_types.items():
|
|
93
|
+
value = getattr(self, attr)
|
|
94
|
+
if isinstance(value, list):
|
|
95
|
+
result[attr] = list(map(
|
|
96
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
97
|
+
value
|
|
98
|
+
))
|
|
99
|
+
elif hasattr(value, "to_dict"):
|
|
100
|
+
result[attr] = value.to_dict()
|
|
101
|
+
elif isinstance(value, dict):
|
|
102
|
+
result[attr] = dict(map(
|
|
103
|
+
lambda item: (item[0], item[1].to_dict())
|
|
104
|
+
if hasattr(item[1], "to_dict") else item,
|
|
105
|
+
value.items()
|
|
106
|
+
))
|
|
107
|
+
else:
|
|
108
|
+
if attr in self.sensitive_list:
|
|
109
|
+
result[attr] = "****"
|
|
110
|
+
else:
|
|
111
|
+
result[attr] = value
|
|
112
|
+
|
|
113
|
+
return result
|
|
114
|
+
|
|
115
|
+
def to_str(self):
|
|
116
|
+
"""Returns the string representation of the model"""
|
|
117
|
+
import simplejson as json
|
|
118
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
119
|
+
|
|
120
|
+
def __repr__(self):
|
|
121
|
+
"""For `print`"""
|
|
122
|
+
return self.to_str()
|
|
123
|
+
|
|
124
|
+
def __eq__(self, other):
|
|
125
|
+
"""Returns true if both objects are equal"""
|
|
126
|
+
if not isinstance(other, DeleteWorkflowResponse):
|
|
127
|
+
return False
|
|
128
|
+
|
|
129
|
+
return self.__dict__ == other.__dict__
|
|
130
|
+
|
|
131
|
+
def __ne__(self, other):
|
|
132
|
+
"""Returns true if both objects are not equal"""
|
|
133
|
+
return not self == other
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ExecuteWorkflowBody:
|
|
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
|
+
'bucket': 'str',
|
|
19
|
+
'object': 'str',
|
|
20
|
+
'inputs': 'Input'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'bucket': 'bucket',
|
|
25
|
+
'object': 'object',
|
|
26
|
+
'inputs': 'inputs'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, bucket=None, object=None, inputs=None):
|
|
30
|
+
r"""ExecuteWorkflowBody
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param bucket: 桶名
|
|
35
|
+
:type bucket: str
|
|
36
|
+
:param object: 对象名
|
|
37
|
+
:type object: str
|
|
38
|
+
:param inputs:
|
|
39
|
+
:type inputs: :class:`huaweicloudsdkdwr.v3.Input`
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
self._bucket = None
|
|
45
|
+
self._object = None
|
|
46
|
+
self._inputs = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
|
|
49
|
+
self.bucket = bucket
|
|
50
|
+
self.object = object
|
|
51
|
+
if inputs is not None:
|
|
52
|
+
self.inputs = inputs
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def bucket(self):
|
|
56
|
+
r"""Gets the bucket of this ExecuteWorkflowBody.
|
|
57
|
+
|
|
58
|
+
桶名
|
|
59
|
+
|
|
60
|
+
:return: The bucket of this ExecuteWorkflowBody.
|
|
61
|
+
:rtype: str
|
|
62
|
+
"""
|
|
63
|
+
return self._bucket
|
|
64
|
+
|
|
65
|
+
@bucket.setter
|
|
66
|
+
def bucket(self, bucket):
|
|
67
|
+
r"""Sets the bucket of this ExecuteWorkflowBody.
|
|
68
|
+
|
|
69
|
+
桶名
|
|
70
|
+
|
|
71
|
+
:param bucket: The bucket of this ExecuteWorkflowBody.
|
|
72
|
+
:type bucket: str
|
|
73
|
+
"""
|
|
74
|
+
self._bucket = bucket
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def object(self):
|
|
78
|
+
r"""Gets the object of this ExecuteWorkflowBody.
|
|
79
|
+
|
|
80
|
+
对象名
|
|
81
|
+
|
|
82
|
+
:return: The object of this ExecuteWorkflowBody.
|
|
83
|
+
:rtype: str
|
|
84
|
+
"""
|
|
85
|
+
return self._object
|
|
86
|
+
|
|
87
|
+
@object.setter
|
|
88
|
+
def object(self, object):
|
|
89
|
+
r"""Sets the object of this ExecuteWorkflowBody.
|
|
90
|
+
|
|
91
|
+
对象名
|
|
92
|
+
|
|
93
|
+
:param object: The object of this ExecuteWorkflowBody.
|
|
94
|
+
:type object: str
|
|
95
|
+
"""
|
|
96
|
+
self._object = object
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
def inputs(self):
|
|
100
|
+
r"""Gets the inputs of this ExecuteWorkflowBody.
|
|
101
|
+
|
|
102
|
+
:return: The inputs of this ExecuteWorkflowBody.
|
|
103
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.Input`
|
|
104
|
+
"""
|
|
105
|
+
return self._inputs
|
|
106
|
+
|
|
107
|
+
@inputs.setter
|
|
108
|
+
def inputs(self, inputs):
|
|
109
|
+
r"""Sets the inputs of this ExecuteWorkflowBody.
|
|
110
|
+
|
|
111
|
+
:param inputs: The inputs of this ExecuteWorkflowBody.
|
|
112
|
+
:type inputs: :class:`huaweicloudsdkdwr.v3.Input`
|
|
113
|
+
"""
|
|
114
|
+
self._inputs = inputs
|
|
115
|
+
|
|
116
|
+
def to_dict(self):
|
|
117
|
+
result = {}
|
|
118
|
+
|
|
119
|
+
for attr, _ in self.openapi_types.items():
|
|
120
|
+
value = getattr(self, attr)
|
|
121
|
+
if isinstance(value, list):
|
|
122
|
+
result[attr] = list(map(
|
|
123
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
124
|
+
value
|
|
125
|
+
))
|
|
126
|
+
elif hasattr(value, "to_dict"):
|
|
127
|
+
result[attr] = value.to_dict()
|
|
128
|
+
elif isinstance(value, dict):
|
|
129
|
+
result[attr] = dict(map(
|
|
130
|
+
lambda item: (item[0], item[1].to_dict())
|
|
131
|
+
if hasattr(item[1], "to_dict") else item,
|
|
132
|
+
value.items()
|
|
133
|
+
))
|
|
134
|
+
else:
|
|
135
|
+
if attr in self.sensitive_list:
|
|
136
|
+
result[attr] = "****"
|
|
137
|
+
else:
|
|
138
|
+
result[attr] = value
|
|
139
|
+
|
|
140
|
+
return result
|
|
141
|
+
|
|
142
|
+
def to_str(self):
|
|
143
|
+
"""Returns the string representation of the model"""
|
|
144
|
+
import simplejson as json
|
|
145
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
146
|
+
|
|
147
|
+
def __repr__(self):
|
|
148
|
+
"""For `print`"""
|
|
149
|
+
return self.to_str()
|
|
150
|
+
|
|
151
|
+
def __eq__(self, other):
|
|
152
|
+
"""Returns true if both objects are equal"""
|
|
153
|
+
if not isinstance(other, ExecuteWorkflowBody):
|
|
154
|
+
return False
|
|
155
|
+
|
|
156
|
+
return self.__dict__ == other.__dict__
|
|
157
|
+
|
|
158
|
+
def __ne__(self, other):
|
|
159
|
+
"""Returns true if both objects are not equal"""
|
|
160
|
+
return not self == other
|