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,132 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class UpdateMyActionTemplateRequest:
|
|
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
|
+
'body': 'ThirdTemplateRequestBody'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'template_name': 'template_name',
|
|
24
|
+
'body': 'body'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, template_name=None, body=None):
|
|
28
|
+
r"""UpdateMyActionTemplateRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param template_name: 模板名称。名称必须以third开头,只能由字母、数字、下划线和中划线组成,长度小于等于32个字符。
|
|
33
|
+
:type template_name: str
|
|
34
|
+
:param body: Body of the UpdateMyActionTemplateRequest
|
|
35
|
+
:type body: :class:`huaweicloudsdkdwr.v3.ThirdTemplateRequestBody`
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
self._template_name = None
|
|
41
|
+
self._body = None
|
|
42
|
+
self.discriminator = None
|
|
43
|
+
|
|
44
|
+
self.template_name = template_name
|
|
45
|
+
if body is not None:
|
|
46
|
+
self.body = body
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def template_name(self):
|
|
50
|
+
r"""Gets the template_name of this UpdateMyActionTemplateRequest.
|
|
51
|
+
|
|
52
|
+
模板名称。名称必须以third开头,只能由字母、数字、下划线和中划线组成,长度小于等于32个字符。
|
|
53
|
+
|
|
54
|
+
:return: The template_name of this UpdateMyActionTemplateRequest.
|
|
55
|
+
:rtype: str
|
|
56
|
+
"""
|
|
57
|
+
return self._template_name
|
|
58
|
+
|
|
59
|
+
@template_name.setter
|
|
60
|
+
def template_name(self, template_name):
|
|
61
|
+
r"""Sets the template_name of this UpdateMyActionTemplateRequest.
|
|
62
|
+
|
|
63
|
+
模板名称。名称必须以third开头,只能由字母、数字、下划线和中划线组成,长度小于等于32个字符。
|
|
64
|
+
|
|
65
|
+
:param template_name: The template_name of this UpdateMyActionTemplateRequest.
|
|
66
|
+
:type template_name: str
|
|
67
|
+
"""
|
|
68
|
+
self._template_name = template_name
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def body(self):
|
|
72
|
+
r"""Gets the body of this UpdateMyActionTemplateRequest.
|
|
73
|
+
|
|
74
|
+
:return: The body of this UpdateMyActionTemplateRequest.
|
|
75
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.ThirdTemplateRequestBody`
|
|
76
|
+
"""
|
|
77
|
+
return self._body
|
|
78
|
+
|
|
79
|
+
@body.setter
|
|
80
|
+
def body(self, body):
|
|
81
|
+
r"""Sets the body of this UpdateMyActionTemplateRequest.
|
|
82
|
+
|
|
83
|
+
:param body: The body of this UpdateMyActionTemplateRequest.
|
|
84
|
+
:type body: :class:`huaweicloudsdkdwr.v3.ThirdTemplateRequestBody`
|
|
85
|
+
"""
|
|
86
|
+
self._body = body
|
|
87
|
+
|
|
88
|
+
def to_dict(self):
|
|
89
|
+
result = {}
|
|
90
|
+
|
|
91
|
+
for attr, _ in self.openapi_types.items():
|
|
92
|
+
value = getattr(self, attr)
|
|
93
|
+
if isinstance(value, list):
|
|
94
|
+
result[attr] = list(map(
|
|
95
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
96
|
+
value
|
|
97
|
+
))
|
|
98
|
+
elif hasattr(value, "to_dict"):
|
|
99
|
+
result[attr] = value.to_dict()
|
|
100
|
+
elif isinstance(value, dict):
|
|
101
|
+
result[attr] = dict(map(
|
|
102
|
+
lambda item: (item[0], item[1].to_dict())
|
|
103
|
+
if hasattr(item[1], "to_dict") else item,
|
|
104
|
+
value.items()
|
|
105
|
+
))
|
|
106
|
+
else:
|
|
107
|
+
if attr in self.sensitive_list:
|
|
108
|
+
result[attr] = "****"
|
|
109
|
+
else:
|
|
110
|
+
result[attr] = value
|
|
111
|
+
|
|
112
|
+
return result
|
|
113
|
+
|
|
114
|
+
def to_str(self):
|
|
115
|
+
"""Returns the string representation of the model"""
|
|
116
|
+
import simplejson as json
|
|
117
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
118
|
+
|
|
119
|
+
def __repr__(self):
|
|
120
|
+
"""For `print`"""
|
|
121
|
+
return self.to_str()
|
|
122
|
+
|
|
123
|
+
def __eq__(self, other):
|
|
124
|
+
"""Returns true if both objects are equal"""
|
|
125
|
+
if not isinstance(other, UpdateMyActionTemplateRequest):
|
|
126
|
+
return False
|
|
127
|
+
|
|
128
|
+
return self.__dict__ == other.__dict__
|
|
129
|
+
|
|
130
|
+
def __ne__(self, other):
|
|
131
|
+
"""Returns true if both objects are not equal"""
|
|
132
|
+
return not self == other
|
|
@@ -0,0 +1,270 @@
|
|
|
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 UpdateMyActionTemplateResponse(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
|
+
'template_name': 'str',
|
|
20
|
+
'created_at': 'str',
|
|
21
|
+
'version': 'str',
|
|
22
|
+
'x_request_id': 'str',
|
|
23
|
+
'connection': 'str',
|
|
24
|
+
'content_length': 'str',
|
|
25
|
+
'date': 'str'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
attribute_map = {
|
|
29
|
+
'template_name': 'template_name',
|
|
30
|
+
'created_at': 'created_at',
|
|
31
|
+
'version': 'version',
|
|
32
|
+
'x_request_id': 'x-request-id',
|
|
33
|
+
'connection': 'Connection',
|
|
34
|
+
'content_length': 'Content-Length',
|
|
35
|
+
'date': 'Date'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
def __init__(self, template_name=None, created_at=None, version=None, x_request_id=None, connection=None, content_length=None, date=None):
|
|
39
|
+
r"""UpdateMyActionTemplateResponse
|
|
40
|
+
|
|
41
|
+
The model defined in huaweicloud sdk
|
|
42
|
+
|
|
43
|
+
:param template_name: 算子模板名称。
|
|
44
|
+
:type template_name: str
|
|
45
|
+
:param created_at: 算子模板创建的时间。
|
|
46
|
+
:type created_at: str
|
|
47
|
+
:param version: 版本号。
|
|
48
|
+
:type version: str
|
|
49
|
+
:param x_request_id:
|
|
50
|
+
:type x_request_id: str
|
|
51
|
+
:param connection:
|
|
52
|
+
:type connection: str
|
|
53
|
+
:param content_length:
|
|
54
|
+
:type content_length: str
|
|
55
|
+
:param date:
|
|
56
|
+
:type date: str
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
super().__init__()
|
|
60
|
+
|
|
61
|
+
self._template_name = None
|
|
62
|
+
self._created_at = None
|
|
63
|
+
self._version = None
|
|
64
|
+
self._x_request_id = None
|
|
65
|
+
self._connection = None
|
|
66
|
+
self._content_length = None
|
|
67
|
+
self._date = None
|
|
68
|
+
self.discriminator = None
|
|
69
|
+
|
|
70
|
+
if template_name is not None:
|
|
71
|
+
self.template_name = template_name
|
|
72
|
+
if created_at is not None:
|
|
73
|
+
self.created_at = created_at
|
|
74
|
+
if version is not None:
|
|
75
|
+
self.version = version
|
|
76
|
+
if x_request_id is not None:
|
|
77
|
+
self.x_request_id = x_request_id
|
|
78
|
+
if connection is not None:
|
|
79
|
+
self.connection = connection
|
|
80
|
+
if content_length is not None:
|
|
81
|
+
self.content_length = content_length
|
|
82
|
+
if date is not None:
|
|
83
|
+
self.date = date
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def template_name(self):
|
|
87
|
+
r"""Gets the template_name of this UpdateMyActionTemplateResponse.
|
|
88
|
+
|
|
89
|
+
算子模板名称。
|
|
90
|
+
|
|
91
|
+
:return: The template_name of this UpdateMyActionTemplateResponse.
|
|
92
|
+
:rtype: str
|
|
93
|
+
"""
|
|
94
|
+
return self._template_name
|
|
95
|
+
|
|
96
|
+
@template_name.setter
|
|
97
|
+
def template_name(self, template_name):
|
|
98
|
+
r"""Sets the template_name of this UpdateMyActionTemplateResponse.
|
|
99
|
+
|
|
100
|
+
算子模板名称。
|
|
101
|
+
|
|
102
|
+
:param template_name: The template_name of this UpdateMyActionTemplateResponse.
|
|
103
|
+
:type template_name: str
|
|
104
|
+
"""
|
|
105
|
+
self._template_name = template_name
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def created_at(self):
|
|
109
|
+
r"""Gets the created_at of this UpdateMyActionTemplateResponse.
|
|
110
|
+
|
|
111
|
+
算子模板创建的时间。
|
|
112
|
+
|
|
113
|
+
:return: The created_at of this UpdateMyActionTemplateResponse.
|
|
114
|
+
:rtype: str
|
|
115
|
+
"""
|
|
116
|
+
return self._created_at
|
|
117
|
+
|
|
118
|
+
@created_at.setter
|
|
119
|
+
def created_at(self, created_at):
|
|
120
|
+
r"""Sets the created_at of this UpdateMyActionTemplateResponse.
|
|
121
|
+
|
|
122
|
+
算子模板创建的时间。
|
|
123
|
+
|
|
124
|
+
:param created_at: The created_at of this UpdateMyActionTemplateResponse.
|
|
125
|
+
:type created_at: str
|
|
126
|
+
"""
|
|
127
|
+
self._created_at = created_at
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def version(self):
|
|
131
|
+
r"""Gets the version of this UpdateMyActionTemplateResponse.
|
|
132
|
+
|
|
133
|
+
版本号。
|
|
134
|
+
|
|
135
|
+
:return: The version of this UpdateMyActionTemplateResponse.
|
|
136
|
+
:rtype: str
|
|
137
|
+
"""
|
|
138
|
+
return self._version
|
|
139
|
+
|
|
140
|
+
@version.setter
|
|
141
|
+
def version(self, version):
|
|
142
|
+
r"""Sets the version of this UpdateMyActionTemplateResponse.
|
|
143
|
+
|
|
144
|
+
版本号。
|
|
145
|
+
|
|
146
|
+
:param version: The version of this UpdateMyActionTemplateResponse.
|
|
147
|
+
:type version: str
|
|
148
|
+
"""
|
|
149
|
+
self._version = version
|
|
150
|
+
|
|
151
|
+
@property
|
|
152
|
+
def x_request_id(self):
|
|
153
|
+
r"""Gets the x_request_id of this UpdateMyActionTemplateResponse.
|
|
154
|
+
|
|
155
|
+
:return: The x_request_id of this UpdateMyActionTemplateResponse.
|
|
156
|
+
:rtype: str
|
|
157
|
+
"""
|
|
158
|
+
return self._x_request_id
|
|
159
|
+
|
|
160
|
+
@x_request_id.setter
|
|
161
|
+
def x_request_id(self, x_request_id):
|
|
162
|
+
r"""Sets the x_request_id of this UpdateMyActionTemplateResponse.
|
|
163
|
+
|
|
164
|
+
:param x_request_id: The x_request_id of this UpdateMyActionTemplateResponse.
|
|
165
|
+
:type x_request_id: str
|
|
166
|
+
"""
|
|
167
|
+
self._x_request_id = x_request_id
|
|
168
|
+
|
|
169
|
+
@property
|
|
170
|
+
def connection(self):
|
|
171
|
+
r"""Gets the connection of this UpdateMyActionTemplateResponse.
|
|
172
|
+
|
|
173
|
+
:return: The connection of this UpdateMyActionTemplateResponse.
|
|
174
|
+
:rtype: str
|
|
175
|
+
"""
|
|
176
|
+
return self._connection
|
|
177
|
+
|
|
178
|
+
@connection.setter
|
|
179
|
+
def connection(self, connection):
|
|
180
|
+
r"""Sets the connection of this UpdateMyActionTemplateResponse.
|
|
181
|
+
|
|
182
|
+
:param connection: The connection of this UpdateMyActionTemplateResponse.
|
|
183
|
+
:type connection: str
|
|
184
|
+
"""
|
|
185
|
+
self._connection = connection
|
|
186
|
+
|
|
187
|
+
@property
|
|
188
|
+
def content_length(self):
|
|
189
|
+
r"""Gets the content_length of this UpdateMyActionTemplateResponse.
|
|
190
|
+
|
|
191
|
+
:return: The content_length of this UpdateMyActionTemplateResponse.
|
|
192
|
+
:rtype: str
|
|
193
|
+
"""
|
|
194
|
+
return self._content_length
|
|
195
|
+
|
|
196
|
+
@content_length.setter
|
|
197
|
+
def content_length(self, content_length):
|
|
198
|
+
r"""Sets the content_length of this UpdateMyActionTemplateResponse.
|
|
199
|
+
|
|
200
|
+
:param content_length: The content_length of this UpdateMyActionTemplateResponse.
|
|
201
|
+
:type content_length: str
|
|
202
|
+
"""
|
|
203
|
+
self._content_length = content_length
|
|
204
|
+
|
|
205
|
+
@property
|
|
206
|
+
def date(self):
|
|
207
|
+
r"""Gets the date of this UpdateMyActionTemplateResponse.
|
|
208
|
+
|
|
209
|
+
:return: The date of this UpdateMyActionTemplateResponse.
|
|
210
|
+
:rtype: str
|
|
211
|
+
"""
|
|
212
|
+
return self._date
|
|
213
|
+
|
|
214
|
+
@date.setter
|
|
215
|
+
def date(self, date):
|
|
216
|
+
r"""Sets the date of this UpdateMyActionTemplateResponse.
|
|
217
|
+
|
|
218
|
+
:param date: The date of this UpdateMyActionTemplateResponse.
|
|
219
|
+
:type date: str
|
|
220
|
+
"""
|
|
221
|
+
self._date = date
|
|
222
|
+
|
|
223
|
+
def to_dict(self):
|
|
224
|
+
import warnings
|
|
225
|
+
warnings.warn("UpdateMyActionTemplateResponse.to_dict() is deprecated and no longer maintained, "
|
|
226
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
227
|
+
result = {}
|
|
228
|
+
|
|
229
|
+
for attr, _ in self.openapi_types.items():
|
|
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
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
256
|
+
|
|
257
|
+
def __repr__(self):
|
|
258
|
+
"""For `print`"""
|
|
259
|
+
return self.to_str()
|
|
260
|
+
|
|
261
|
+
def __eq__(self, other):
|
|
262
|
+
"""Returns true if both objects are equal"""
|
|
263
|
+
if not isinstance(other, UpdateMyActionTemplateResponse):
|
|
264
|
+
return False
|
|
265
|
+
|
|
266
|
+
return self.__dict__ == other.__dict__
|
|
267
|
+
|
|
268
|
+
def __ne__(self, other):
|
|
269
|
+
"""Returns true if both objects are not equal"""
|
|
270
|
+
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 UpdateMyActionTemplateToDeprecatedRequest:
|
|
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"""UpdateMyActionTemplateToDeprecatedRequest
|
|
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 UpdateMyActionTemplateToDeprecatedRequest.
|
|
44
|
+
|
|
45
|
+
申请禁用的三方算子名称。
|
|
46
|
+
|
|
47
|
+
:return: The template_name of this UpdateMyActionTemplateToDeprecatedRequest.
|
|
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 UpdateMyActionTemplateToDeprecatedRequest.
|
|
55
|
+
|
|
56
|
+
申请禁用的三方算子名称。
|
|
57
|
+
|
|
58
|
+
:param template_name: The template_name of this UpdateMyActionTemplateToDeprecatedRequest.
|
|
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, UpdateMyActionTemplateToDeprecatedRequest):
|
|
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 UpdateMyActionTemplateToDeprecatedResponse(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"""UpdateMyActionTemplateToDeprecatedResponse
|
|
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 UpdateMyActionTemplateToDeprecatedResponse.
|
|
53
|
+
|
|
54
|
+
:return: The x_request_id of this UpdateMyActionTemplateToDeprecatedResponse.
|
|
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 UpdateMyActionTemplateToDeprecatedResponse.
|
|
62
|
+
|
|
63
|
+
:param x_request_id: The x_request_id of this UpdateMyActionTemplateToDeprecatedResponse.
|
|
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 UpdateMyActionTemplateToDeprecatedResponse.
|
|
71
|
+
|
|
72
|
+
:return: The content_length of this UpdateMyActionTemplateToDeprecatedResponse.
|
|
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 UpdateMyActionTemplateToDeprecatedResponse.
|
|
80
|
+
|
|
81
|
+
:param content_length: The content_length of this UpdateMyActionTemplateToDeprecatedResponse.
|
|
82
|
+
:type content_length: str
|
|
83
|
+
"""
|
|
84
|
+
self._content_length = content_length
|
|
85
|
+
|
|
86
|
+
def to_dict(self):
|
|
87
|
+
import warnings
|
|
88
|
+
warnings.warn("UpdateMyActionTemplateToDeprecatedResponse.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, UpdateMyActionTemplateToDeprecatedResponse):
|
|
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
|