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,282 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ThirdActionTemplateItem:
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
Attributes:
|
|
10
|
+
openapi_types (dict): The key is attribute name
|
|
11
|
+
and the value is attribute type.
|
|
12
|
+
attribute_map (dict): The key is attribute name
|
|
13
|
+
and the value is json key in definition.
|
|
14
|
+
"""
|
|
15
|
+
sensitive_list = []
|
|
16
|
+
|
|
17
|
+
openapi_types = {
|
|
18
|
+
'name': 'str',
|
|
19
|
+
'category': 'str',
|
|
20
|
+
'register_status': 'str',
|
|
21
|
+
'provider_name': 'str',
|
|
22
|
+
'description': 'str',
|
|
23
|
+
'create_time': 'str',
|
|
24
|
+
'last_modify_time': 'str'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'name': 'name',
|
|
29
|
+
'category': 'category',
|
|
30
|
+
'register_status': 'register_status',
|
|
31
|
+
'provider_name': 'provider_name',
|
|
32
|
+
'description': 'description',
|
|
33
|
+
'create_time': 'create_time',
|
|
34
|
+
'last_modify_time': 'last_modify_time'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
def __init__(self, name=None, category=None, register_status=None, provider_name=None, description=None, create_time=None, last_modify_time=None):
|
|
38
|
+
r"""ThirdActionTemplateItem
|
|
39
|
+
|
|
40
|
+
The model defined in huaweicloud sdk
|
|
41
|
+
|
|
42
|
+
:param name: 名称。
|
|
43
|
+
:type name: str
|
|
44
|
+
:param category: 算子分类。默认分类为FileProcess,MediaProcess,ImageProcess,ContentReview,NotificationProcess,VoiceInteraction
|
|
45
|
+
:type category: str
|
|
46
|
+
:param register_status: init_created新建,submit_approve等待审核,deprecate_approve申请禁用
|
|
47
|
+
:type register_status: str
|
|
48
|
+
:param provider_name: 算子提供方
|
|
49
|
+
:type provider_name: str
|
|
50
|
+
:param description: 算子描述
|
|
51
|
+
:type description: str
|
|
52
|
+
:param create_time: 算子创建时间
|
|
53
|
+
:type create_time: str
|
|
54
|
+
:param last_modify_time: 最后修改时间
|
|
55
|
+
:type last_modify_time: str
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
self._name = None
|
|
61
|
+
self._category = None
|
|
62
|
+
self._register_status = None
|
|
63
|
+
self._provider_name = None
|
|
64
|
+
self._description = None
|
|
65
|
+
self._create_time = None
|
|
66
|
+
self._last_modify_time = None
|
|
67
|
+
self.discriminator = None
|
|
68
|
+
|
|
69
|
+
if name is not None:
|
|
70
|
+
self.name = name
|
|
71
|
+
if category is not None:
|
|
72
|
+
self.category = category
|
|
73
|
+
if register_status is not None:
|
|
74
|
+
self.register_status = register_status
|
|
75
|
+
if provider_name is not None:
|
|
76
|
+
self.provider_name = provider_name
|
|
77
|
+
if description is not None:
|
|
78
|
+
self.description = description
|
|
79
|
+
if create_time is not None:
|
|
80
|
+
self.create_time = create_time
|
|
81
|
+
if last_modify_time is not None:
|
|
82
|
+
self.last_modify_time = last_modify_time
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def name(self):
|
|
86
|
+
r"""Gets the name of this ThirdActionTemplateItem.
|
|
87
|
+
|
|
88
|
+
名称。
|
|
89
|
+
|
|
90
|
+
:return: The name of this ThirdActionTemplateItem.
|
|
91
|
+
:rtype: str
|
|
92
|
+
"""
|
|
93
|
+
return self._name
|
|
94
|
+
|
|
95
|
+
@name.setter
|
|
96
|
+
def name(self, name):
|
|
97
|
+
r"""Sets the name of this ThirdActionTemplateItem.
|
|
98
|
+
|
|
99
|
+
名称。
|
|
100
|
+
|
|
101
|
+
:param name: The name of this ThirdActionTemplateItem.
|
|
102
|
+
:type name: str
|
|
103
|
+
"""
|
|
104
|
+
self._name = name
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def category(self):
|
|
108
|
+
r"""Gets the category of this ThirdActionTemplateItem.
|
|
109
|
+
|
|
110
|
+
算子分类。默认分类为FileProcess,MediaProcess,ImageProcess,ContentReview,NotificationProcess,VoiceInteraction
|
|
111
|
+
|
|
112
|
+
:return: The category of this ThirdActionTemplateItem.
|
|
113
|
+
:rtype: str
|
|
114
|
+
"""
|
|
115
|
+
return self._category
|
|
116
|
+
|
|
117
|
+
@category.setter
|
|
118
|
+
def category(self, category):
|
|
119
|
+
r"""Sets the category of this ThirdActionTemplateItem.
|
|
120
|
+
|
|
121
|
+
算子分类。默认分类为FileProcess,MediaProcess,ImageProcess,ContentReview,NotificationProcess,VoiceInteraction
|
|
122
|
+
|
|
123
|
+
:param category: The category of this ThirdActionTemplateItem.
|
|
124
|
+
:type category: str
|
|
125
|
+
"""
|
|
126
|
+
self._category = category
|
|
127
|
+
|
|
128
|
+
@property
|
|
129
|
+
def register_status(self):
|
|
130
|
+
r"""Gets the register_status of this ThirdActionTemplateItem.
|
|
131
|
+
|
|
132
|
+
init_created新建,submit_approve等待审核,deprecate_approve申请禁用
|
|
133
|
+
|
|
134
|
+
:return: The register_status of this ThirdActionTemplateItem.
|
|
135
|
+
:rtype: str
|
|
136
|
+
"""
|
|
137
|
+
return self._register_status
|
|
138
|
+
|
|
139
|
+
@register_status.setter
|
|
140
|
+
def register_status(self, register_status):
|
|
141
|
+
r"""Sets the register_status of this ThirdActionTemplateItem.
|
|
142
|
+
|
|
143
|
+
init_created新建,submit_approve等待审核,deprecate_approve申请禁用
|
|
144
|
+
|
|
145
|
+
:param register_status: The register_status of this ThirdActionTemplateItem.
|
|
146
|
+
:type register_status: str
|
|
147
|
+
"""
|
|
148
|
+
self._register_status = register_status
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
def provider_name(self):
|
|
152
|
+
r"""Gets the provider_name of this ThirdActionTemplateItem.
|
|
153
|
+
|
|
154
|
+
算子提供方
|
|
155
|
+
|
|
156
|
+
:return: The provider_name of this ThirdActionTemplateItem.
|
|
157
|
+
:rtype: str
|
|
158
|
+
"""
|
|
159
|
+
return self._provider_name
|
|
160
|
+
|
|
161
|
+
@provider_name.setter
|
|
162
|
+
def provider_name(self, provider_name):
|
|
163
|
+
r"""Sets the provider_name of this ThirdActionTemplateItem.
|
|
164
|
+
|
|
165
|
+
算子提供方
|
|
166
|
+
|
|
167
|
+
:param provider_name: The provider_name of this ThirdActionTemplateItem.
|
|
168
|
+
:type provider_name: str
|
|
169
|
+
"""
|
|
170
|
+
self._provider_name = provider_name
|
|
171
|
+
|
|
172
|
+
@property
|
|
173
|
+
def description(self):
|
|
174
|
+
r"""Gets the description of this ThirdActionTemplateItem.
|
|
175
|
+
|
|
176
|
+
算子描述
|
|
177
|
+
|
|
178
|
+
:return: The description of this ThirdActionTemplateItem.
|
|
179
|
+
:rtype: str
|
|
180
|
+
"""
|
|
181
|
+
return self._description
|
|
182
|
+
|
|
183
|
+
@description.setter
|
|
184
|
+
def description(self, description):
|
|
185
|
+
r"""Sets the description of this ThirdActionTemplateItem.
|
|
186
|
+
|
|
187
|
+
算子描述
|
|
188
|
+
|
|
189
|
+
:param description: The description of this ThirdActionTemplateItem.
|
|
190
|
+
:type description: str
|
|
191
|
+
"""
|
|
192
|
+
self._description = description
|
|
193
|
+
|
|
194
|
+
@property
|
|
195
|
+
def create_time(self):
|
|
196
|
+
r"""Gets the create_time of this ThirdActionTemplateItem.
|
|
197
|
+
|
|
198
|
+
算子创建时间
|
|
199
|
+
|
|
200
|
+
:return: The create_time of this ThirdActionTemplateItem.
|
|
201
|
+
:rtype: str
|
|
202
|
+
"""
|
|
203
|
+
return self._create_time
|
|
204
|
+
|
|
205
|
+
@create_time.setter
|
|
206
|
+
def create_time(self, create_time):
|
|
207
|
+
r"""Sets the create_time of this ThirdActionTemplateItem.
|
|
208
|
+
|
|
209
|
+
算子创建时间
|
|
210
|
+
|
|
211
|
+
:param create_time: The create_time of this ThirdActionTemplateItem.
|
|
212
|
+
:type create_time: str
|
|
213
|
+
"""
|
|
214
|
+
self._create_time = create_time
|
|
215
|
+
|
|
216
|
+
@property
|
|
217
|
+
def last_modify_time(self):
|
|
218
|
+
r"""Gets the last_modify_time of this ThirdActionTemplateItem.
|
|
219
|
+
|
|
220
|
+
最后修改时间
|
|
221
|
+
|
|
222
|
+
:return: The last_modify_time of this ThirdActionTemplateItem.
|
|
223
|
+
:rtype: str
|
|
224
|
+
"""
|
|
225
|
+
return self._last_modify_time
|
|
226
|
+
|
|
227
|
+
@last_modify_time.setter
|
|
228
|
+
def last_modify_time(self, last_modify_time):
|
|
229
|
+
r"""Sets the last_modify_time of this ThirdActionTemplateItem.
|
|
230
|
+
|
|
231
|
+
最后修改时间
|
|
232
|
+
|
|
233
|
+
:param last_modify_time: The last_modify_time of this ThirdActionTemplateItem.
|
|
234
|
+
:type last_modify_time: str
|
|
235
|
+
"""
|
|
236
|
+
self._last_modify_time = last_modify_time
|
|
237
|
+
|
|
238
|
+
def to_dict(self):
|
|
239
|
+
result = {}
|
|
240
|
+
|
|
241
|
+
for attr, _ in self.openapi_types.items():
|
|
242
|
+
value = getattr(self, attr)
|
|
243
|
+
if isinstance(value, list):
|
|
244
|
+
result[attr] = list(map(
|
|
245
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
246
|
+
value
|
|
247
|
+
))
|
|
248
|
+
elif hasattr(value, "to_dict"):
|
|
249
|
+
result[attr] = value.to_dict()
|
|
250
|
+
elif isinstance(value, dict):
|
|
251
|
+
result[attr] = dict(map(
|
|
252
|
+
lambda item: (item[0], item[1].to_dict())
|
|
253
|
+
if hasattr(item[1], "to_dict") else item,
|
|
254
|
+
value.items()
|
|
255
|
+
))
|
|
256
|
+
else:
|
|
257
|
+
if attr in self.sensitive_list:
|
|
258
|
+
result[attr] = "****"
|
|
259
|
+
else:
|
|
260
|
+
result[attr] = value
|
|
261
|
+
|
|
262
|
+
return result
|
|
263
|
+
|
|
264
|
+
def to_str(self):
|
|
265
|
+
"""Returns the string representation of the model"""
|
|
266
|
+
import simplejson as json
|
|
267
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
268
|
+
|
|
269
|
+
def __repr__(self):
|
|
270
|
+
"""For `print`"""
|
|
271
|
+
return self.to_str()
|
|
272
|
+
|
|
273
|
+
def __eq__(self, other):
|
|
274
|
+
"""Returns true if both objects are equal"""
|
|
275
|
+
if not isinstance(other, ThirdActionTemplateItem):
|
|
276
|
+
return False
|
|
277
|
+
|
|
278
|
+
return self.__dict__ == other.__dict__
|
|
279
|
+
|
|
280
|
+
def __ne__(self, other):
|
|
281
|
+
"""Returns true if both objects are not equal"""
|
|
282
|
+
return not self == other
|
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ThirdTemplateRequestBody:
|
|
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
|
+
'category': 'str',
|
|
19
|
+
'inputs': 'list[Input]',
|
|
20
|
+
'dynamic_source_definition': 'dict(str, object)',
|
|
21
|
+
'need_policy': 'list[Policy]',
|
|
22
|
+
'func_provider': 'dict(str, str)',
|
|
23
|
+
'func_name': 'dict(str, str)',
|
|
24
|
+
'func_description': 'dict(str, str)',
|
|
25
|
+
'func_link': 'dict(str, str)',
|
|
26
|
+
'app_urn': 'str',
|
|
27
|
+
'bill_value': 'float',
|
|
28
|
+
'agency': 'str',
|
|
29
|
+
'register_status': 'str'
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
attribute_map = {
|
|
33
|
+
'category': 'category',
|
|
34
|
+
'inputs': 'inputs',
|
|
35
|
+
'dynamic_source_definition': 'dynamic_source_definition',
|
|
36
|
+
'need_policy': 'need_policy',
|
|
37
|
+
'func_provider': 'func_provider',
|
|
38
|
+
'func_name': 'func_name',
|
|
39
|
+
'func_description': 'func_description',
|
|
40
|
+
'func_link': 'func_link',
|
|
41
|
+
'app_urn': 'app_urn',
|
|
42
|
+
'bill_value': 'bill_value',
|
|
43
|
+
'agency': 'agency',
|
|
44
|
+
'register_status': 'register_status'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, category=None, inputs=None, dynamic_source_definition=None, need_policy=None, func_provider=None, func_name=None, func_description=None, func_link=None, app_urn=None, bill_value=None, agency=None, register_status=None):
|
|
48
|
+
r"""ThirdTemplateRequestBody
|
|
49
|
+
|
|
50
|
+
The model defined in huaweicloud sdk
|
|
51
|
+
|
|
52
|
+
:param category: 必须以字母或数字开头,只能由字母、数字、下划线和中划线组成,长度小于等于64个字符。
|
|
53
|
+
:type category: str
|
|
54
|
+
:param inputs: Inputs参数
|
|
55
|
+
:type inputs: list[:class:`huaweicloudsdkdwr.v3.Input`]
|
|
56
|
+
:param dynamic_source_definition: 根据DWR自定义的函数模板创建属于用户的function,并指定该参数设置的参数值。
|
|
57
|
+
:type dynamic_source_definition: dict(str, object)
|
|
58
|
+
:param need_policy: 算子执行时需要的权限信息。
|
|
59
|
+
:type need_policy: list[:class:`huaweicloudsdkdwr.v3.Policy`]
|
|
60
|
+
:param func_provider: 算子提供方。 英文:必须以字母或数字开头,只能由字母、数字、下划线和中划线组成,长度小于等于32个字符。 中文:只能由中文、字母、数字、下划线和中划线组成,长度小于等于32个字符。
|
|
61
|
+
:type func_provider: dict(str, str)
|
|
62
|
+
:param func_name: 算子名称。 英文:必须以字母或数字开头,只能由字母、数字、下划线和中划线组成,长度小于等于50个字符。 中文:只能由中文、字母、数字、下划线和中划线组成,长度小于等于50个字符。
|
|
63
|
+
:type func_name: dict(str, str)
|
|
64
|
+
:param func_description: 算子描述。 英文:长度最小为0,最长为256,可以是数字、大小写字母以及英文的逗号,句号,冒号,中划线,,下划线,空格。 中文:长度最小为0,最长为256,可以是中文、数字、大小写字母以及中英文的逗号,句号,冒号,中划线,下划线,空格。
|
|
65
|
+
:type func_description: dict(str, str)
|
|
66
|
+
:param func_link: 云市场链接。 需要包含中文, 长度最小为0,最长为512,须遵守http协议中定义的规则。
|
|
67
|
+
:type func_link: dict(str, str)
|
|
68
|
+
:param app_urn: serverless算子应用程序urn
|
|
69
|
+
:type app_urn: str
|
|
70
|
+
:param bill_value: Serverless计费单价
|
|
71
|
+
:type bill_value: float
|
|
72
|
+
:param agency: serverless所需要委托名
|
|
73
|
+
:type agency: str
|
|
74
|
+
:param register_status: 算子状态。初始创建时为init_created。申请提交时传入submit_approve。 算子状态。申请提交时传入submit_approve。
|
|
75
|
+
:type register_status: str
|
|
76
|
+
"""
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
self._category = None
|
|
81
|
+
self._inputs = None
|
|
82
|
+
self._dynamic_source_definition = None
|
|
83
|
+
self._need_policy = None
|
|
84
|
+
self._func_provider = None
|
|
85
|
+
self._func_name = None
|
|
86
|
+
self._func_description = None
|
|
87
|
+
self._func_link = None
|
|
88
|
+
self._app_urn = None
|
|
89
|
+
self._bill_value = None
|
|
90
|
+
self._agency = None
|
|
91
|
+
self._register_status = None
|
|
92
|
+
self.discriminator = None
|
|
93
|
+
|
|
94
|
+
self.category = category
|
|
95
|
+
if inputs is not None:
|
|
96
|
+
self.inputs = inputs
|
|
97
|
+
if dynamic_source_definition is not None:
|
|
98
|
+
self.dynamic_source_definition = dynamic_source_definition
|
|
99
|
+
if need_policy is not None:
|
|
100
|
+
self.need_policy = need_policy
|
|
101
|
+
self.func_provider = func_provider
|
|
102
|
+
self.func_name = func_name
|
|
103
|
+
self.func_description = func_description
|
|
104
|
+
if func_link is not None:
|
|
105
|
+
self.func_link = func_link
|
|
106
|
+
if app_urn is not None:
|
|
107
|
+
self.app_urn = app_urn
|
|
108
|
+
if bill_value is not None:
|
|
109
|
+
self.bill_value = bill_value
|
|
110
|
+
if agency is not None:
|
|
111
|
+
self.agency = agency
|
|
112
|
+
if register_status is not None:
|
|
113
|
+
self.register_status = register_status
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def category(self):
|
|
117
|
+
r"""Gets the category of this ThirdTemplateRequestBody.
|
|
118
|
+
|
|
119
|
+
必须以字母或数字开头,只能由字母、数字、下划线和中划线组成,长度小于等于64个字符。
|
|
120
|
+
|
|
121
|
+
:return: The category of this ThirdTemplateRequestBody.
|
|
122
|
+
:rtype: str
|
|
123
|
+
"""
|
|
124
|
+
return self._category
|
|
125
|
+
|
|
126
|
+
@category.setter
|
|
127
|
+
def category(self, category):
|
|
128
|
+
r"""Sets the category of this ThirdTemplateRequestBody.
|
|
129
|
+
|
|
130
|
+
必须以字母或数字开头,只能由字母、数字、下划线和中划线组成,长度小于等于64个字符。
|
|
131
|
+
|
|
132
|
+
:param category: The category of this ThirdTemplateRequestBody.
|
|
133
|
+
:type category: str
|
|
134
|
+
"""
|
|
135
|
+
self._category = category
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
def inputs(self):
|
|
139
|
+
r"""Gets the inputs of this ThirdTemplateRequestBody.
|
|
140
|
+
|
|
141
|
+
Inputs参数
|
|
142
|
+
|
|
143
|
+
:return: The inputs of this ThirdTemplateRequestBody.
|
|
144
|
+
:rtype: list[:class:`huaweicloudsdkdwr.v3.Input`]
|
|
145
|
+
"""
|
|
146
|
+
return self._inputs
|
|
147
|
+
|
|
148
|
+
@inputs.setter
|
|
149
|
+
def inputs(self, inputs):
|
|
150
|
+
r"""Sets the inputs of this ThirdTemplateRequestBody.
|
|
151
|
+
|
|
152
|
+
Inputs参数
|
|
153
|
+
|
|
154
|
+
:param inputs: The inputs of this ThirdTemplateRequestBody.
|
|
155
|
+
:type inputs: list[:class:`huaweicloudsdkdwr.v3.Input`]
|
|
156
|
+
"""
|
|
157
|
+
self._inputs = inputs
|
|
158
|
+
|
|
159
|
+
@property
|
|
160
|
+
def dynamic_source_definition(self):
|
|
161
|
+
r"""Gets the dynamic_source_definition of this ThirdTemplateRequestBody.
|
|
162
|
+
|
|
163
|
+
根据DWR自定义的函数模板创建属于用户的function,并指定该参数设置的参数值。
|
|
164
|
+
|
|
165
|
+
:return: The dynamic_source_definition of this ThirdTemplateRequestBody.
|
|
166
|
+
:rtype: dict(str, object)
|
|
167
|
+
"""
|
|
168
|
+
return self._dynamic_source_definition
|
|
169
|
+
|
|
170
|
+
@dynamic_source_definition.setter
|
|
171
|
+
def dynamic_source_definition(self, dynamic_source_definition):
|
|
172
|
+
r"""Sets the dynamic_source_definition of this ThirdTemplateRequestBody.
|
|
173
|
+
|
|
174
|
+
根据DWR自定义的函数模板创建属于用户的function,并指定该参数设置的参数值。
|
|
175
|
+
|
|
176
|
+
:param dynamic_source_definition: The dynamic_source_definition of this ThirdTemplateRequestBody.
|
|
177
|
+
:type dynamic_source_definition: dict(str, object)
|
|
178
|
+
"""
|
|
179
|
+
self._dynamic_source_definition = dynamic_source_definition
|
|
180
|
+
|
|
181
|
+
@property
|
|
182
|
+
def need_policy(self):
|
|
183
|
+
r"""Gets the need_policy of this ThirdTemplateRequestBody.
|
|
184
|
+
|
|
185
|
+
算子执行时需要的权限信息。
|
|
186
|
+
|
|
187
|
+
:return: The need_policy of this ThirdTemplateRequestBody.
|
|
188
|
+
:rtype: list[:class:`huaweicloudsdkdwr.v3.Policy`]
|
|
189
|
+
"""
|
|
190
|
+
return self._need_policy
|
|
191
|
+
|
|
192
|
+
@need_policy.setter
|
|
193
|
+
def need_policy(self, need_policy):
|
|
194
|
+
r"""Sets the need_policy of this ThirdTemplateRequestBody.
|
|
195
|
+
|
|
196
|
+
算子执行时需要的权限信息。
|
|
197
|
+
|
|
198
|
+
:param need_policy: The need_policy of this ThirdTemplateRequestBody.
|
|
199
|
+
:type need_policy: list[:class:`huaweicloudsdkdwr.v3.Policy`]
|
|
200
|
+
"""
|
|
201
|
+
self._need_policy = need_policy
|
|
202
|
+
|
|
203
|
+
@property
|
|
204
|
+
def func_provider(self):
|
|
205
|
+
r"""Gets the func_provider of this ThirdTemplateRequestBody.
|
|
206
|
+
|
|
207
|
+
算子提供方。 英文:必须以字母或数字开头,只能由字母、数字、下划线和中划线组成,长度小于等于32个字符。 中文:只能由中文、字母、数字、下划线和中划线组成,长度小于等于32个字符。
|
|
208
|
+
|
|
209
|
+
:return: The func_provider of this ThirdTemplateRequestBody.
|
|
210
|
+
:rtype: dict(str, str)
|
|
211
|
+
"""
|
|
212
|
+
return self._func_provider
|
|
213
|
+
|
|
214
|
+
@func_provider.setter
|
|
215
|
+
def func_provider(self, func_provider):
|
|
216
|
+
r"""Sets the func_provider of this ThirdTemplateRequestBody.
|
|
217
|
+
|
|
218
|
+
算子提供方。 英文:必须以字母或数字开头,只能由字母、数字、下划线和中划线组成,长度小于等于32个字符。 中文:只能由中文、字母、数字、下划线和中划线组成,长度小于等于32个字符。
|
|
219
|
+
|
|
220
|
+
:param func_provider: The func_provider of this ThirdTemplateRequestBody.
|
|
221
|
+
:type func_provider: dict(str, str)
|
|
222
|
+
"""
|
|
223
|
+
self._func_provider = func_provider
|
|
224
|
+
|
|
225
|
+
@property
|
|
226
|
+
def func_name(self):
|
|
227
|
+
r"""Gets the func_name of this ThirdTemplateRequestBody.
|
|
228
|
+
|
|
229
|
+
算子名称。 英文:必须以字母或数字开头,只能由字母、数字、下划线和中划线组成,长度小于等于50个字符。 中文:只能由中文、字母、数字、下划线和中划线组成,长度小于等于50个字符。
|
|
230
|
+
|
|
231
|
+
:return: The func_name of this ThirdTemplateRequestBody.
|
|
232
|
+
:rtype: dict(str, str)
|
|
233
|
+
"""
|
|
234
|
+
return self._func_name
|
|
235
|
+
|
|
236
|
+
@func_name.setter
|
|
237
|
+
def func_name(self, func_name):
|
|
238
|
+
r"""Sets the func_name of this ThirdTemplateRequestBody.
|
|
239
|
+
|
|
240
|
+
算子名称。 英文:必须以字母或数字开头,只能由字母、数字、下划线和中划线组成,长度小于等于50个字符。 中文:只能由中文、字母、数字、下划线和中划线组成,长度小于等于50个字符。
|
|
241
|
+
|
|
242
|
+
:param func_name: The func_name of this ThirdTemplateRequestBody.
|
|
243
|
+
:type func_name: dict(str, str)
|
|
244
|
+
"""
|
|
245
|
+
self._func_name = func_name
|
|
246
|
+
|
|
247
|
+
@property
|
|
248
|
+
def func_description(self):
|
|
249
|
+
r"""Gets the func_description of this ThirdTemplateRequestBody.
|
|
250
|
+
|
|
251
|
+
算子描述。 英文:长度最小为0,最长为256,可以是数字、大小写字母以及英文的逗号,句号,冒号,中划线,,下划线,空格。 中文:长度最小为0,最长为256,可以是中文、数字、大小写字母以及中英文的逗号,句号,冒号,中划线,下划线,空格。
|
|
252
|
+
|
|
253
|
+
:return: The func_description of this ThirdTemplateRequestBody.
|
|
254
|
+
:rtype: dict(str, str)
|
|
255
|
+
"""
|
|
256
|
+
return self._func_description
|
|
257
|
+
|
|
258
|
+
@func_description.setter
|
|
259
|
+
def func_description(self, func_description):
|
|
260
|
+
r"""Sets the func_description of this ThirdTemplateRequestBody.
|
|
261
|
+
|
|
262
|
+
算子描述。 英文:长度最小为0,最长为256,可以是数字、大小写字母以及英文的逗号,句号,冒号,中划线,,下划线,空格。 中文:长度最小为0,最长为256,可以是中文、数字、大小写字母以及中英文的逗号,句号,冒号,中划线,下划线,空格。
|
|
263
|
+
|
|
264
|
+
:param func_description: The func_description of this ThirdTemplateRequestBody.
|
|
265
|
+
:type func_description: dict(str, str)
|
|
266
|
+
"""
|
|
267
|
+
self._func_description = func_description
|
|
268
|
+
|
|
269
|
+
@property
|
|
270
|
+
def func_link(self):
|
|
271
|
+
r"""Gets the func_link of this ThirdTemplateRequestBody.
|
|
272
|
+
|
|
273
|
+
云市场链接。 需要包含中文, 长度最小为0,最长为512,须遵守http协议中定义的规则。
|
|
274
|
+
|
|
275
|
+
:return: The func_link of this ThirdTemplateRequestBody.
|
|
276
|
+
:rtype: dict(str, str)
|
|
277
|
+
"""
|
|
278
|
+
return self._func_link
|
|
279
|
+
|
|
280
|
+
@func_link.setter
|
|
281
|
+
def func_link(self, func_link):
|
|
282
|
+
r"""Sets the func_link of this ThirdTemplateRequestBody.
|
|
283
|
+
|
|
284
|
+
云市场链接。 需要包含中文, 长度最小为0,最长为512,须遵守http协议中定义的规则。
|
|
285
|
+
|
|
286
|
+
:param func_link: The func_link of this ThirdTemplateRequestBody.
|
|
287
|
+
:type func_link: dict(str, str)
|
|
288
|
+
"""
|
|
289
|
+
self._func_link = func_link
|
|
290
|
+
|
|
291
|
+
@property
|
|
292
|
+
def app_urn(self):
|
|
293
|
+
r"""Gets the app_urn of this ThirdTemplateRequestBody.
|
|
294
|
+
|
|
295
|
+
serverless算子应用程序urn
|
|
296
|
+
|
|
297
|
+
:return: The app_urn of this ThirdTemplateRequestBody.
|
|
298
|
+
:rtype: str
|
|
299
|
+
"""
|
|
300
|
+
return self._app_urn
|
|
301
|
+
|
|
302
|
+
@app_urn.setter
|
|
303
|
+
def app_urn(self, app_urn):
|
|
304
|
+
r"""Sets the app_urn of this ThirdTemplateRequestBody.
|
|
305
|
+
|
|
306
|
+
serverless算子应用程序urn
|
|
307
|
+
|
|
308
|
+
:param app_urn: The app_urn of this ThirdTemplateRequestBody.
|
|
309
|
+
:type app_urn: str
|
|
310
|
+
"""
|
|
311
|
+
self._app_urn = app_urn
|
|
312
|
+
|
|
313
|
+
@property
|
|
314
|
+
def bill_value(self):
|
|
315
|
+
r"""Gets the bill_value of this ThirdTemplateRequestBody.
|
|
316
|
+
|
|
317
|
+
Serverless计费单价
|
|
318
|
+
|
|
319
|
+
:return: The bill_value of this ThirdTemplateRequestBody.
|
|
320
|
+
:rtype: float
|
|
321
|
+
"""
|
|
322
|
+
return self._bill_value
|
|
323
|
+
|
|
324
|
+
@bill_value.setter
|
|
325
|
+
def bill_value(self, bill_value):
|
|
326
|
+
r"""Sets the bill_value of this ThirdTemplateRequestBody.
|
|
327
|
+
|
|
328
|
+
Serverless计费单价
|
|
329
|
+
|
|
330
|
+
:param bill_value: The bill_value of this ThirdTemplateRequestBody.
|
|
331
|
+
:type bill_value: float
|
|
332
|
+
"""
|
|
333
|
+
self._bill_value = bill_value
|
|
334
|
+
|
|
335
|
+
@property
|
|
336
|
+
def agency(self):
|
|
337
|
+
r"""Gets the agency of this ThirdTemplateRequestBody.
|
|
338
|
+
|
|
339
|
+
serverless所需要委托名
|
|
340
|
+
|
|
341
|
+
:return: The agency of this ThirdTemplateRequestBody.
|
|
342
|
+
:rtype: str
|
|
343
|
+
"""
|
|
344
|
+
return self._agency
|
|
345
|
+
|
|
346
|
+
@agency.setter
|
|
347
|
+
def agency(self, agency):
|
|
348
|
+
r"""Sets the agency of this ThirdTemplateRequestBody.
|
|
349
|
+
|
|
350
|
+
serverless所需要委托名
|
|
351
|
+
|
|
352
|
+
:param agency: The agency of this ThirdTemplateRequestBody.
|
|
353
|
+
:type agency: str
|
|
354
|
+
"""
|
|
355
|
+
self._agency = agency
|
|
356
|
+
|
|
357
|
+
@property
|
|
358
|
+
def register_status(self):
|
|
359
|
+
r"""Gets the register_status of this ThirdTemplateRequestBody.
|
|
360
|
+
|
|
361
|
+
算子状态。初始创建时为init_created。申请提交时传入submit_approve。 算子状态。申请提交时传入submit_approve。
|
|
362
|
+
|
|
363
|
+
:return: The register_status of this ThirdTemplateRequestBody.
|
|
364
|
+
:rtype: str
|
|
365
|
+
"""
|
|
366
|
+
return self._register_status
|
|
367
|
+
|
|
368
|
+
@register_status.setter
|
|
369
|
+
def register_status(self, register_status):
|
|
370
|
+
r"""Sets the register_status of this ThirdTemplateRequestBody.
|
|
371
|
+
|
|
372
|
+
算子状态。初始创建时为init_created。申请提交时传入submit_approve。 算子状态。申请提交时传入submit_approve。
|
|
373
|
+
|
|
374
|
+
:param register_status: The register_status of this ThirdTemplateRequestBody.
|
|
375
|
+
:type register_status: str
|
|
376
|
+
"""
|
|
377
|
+
self._register_status = register_status
|
|
378
|
+
|
|
379
|
+
def to_dict(self):
|
|
380
|
+
result = {}
|
|
381
|
+
|
|
382
|
+
for attr, _ in self.openapi_types.items():
|
|
383
|
+
value = getattr(self, attr)
|
|
384
|
+
if isinstance(value, list):
|
|
385
|
+
result[attr] = list(map(
|
|
386
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
387
|
+
value
|
|
388
|
+
))
|
|
389
|
+
elif hasattr(value, "to_dict"):
|
|
390
|
+
result[attr] = value.to_dict()
|
|
391
|
+
elif isinstance(value, dict):
|
|
392
|
+
result[attr] = dict(map(
|
|
393
|
+
lambda item: (item[0], item[1].to_dict())
|
|
394
|
+
if hasattr(item[1], "to_dict") else item,
|
|
395
|
+
value.items()
|
|
396
|
+
))
|
|
397
|
+
else:
|
|
398
|
+
if attr in self.sensitive_list:
|
|
399
|
+
result[attr] = "****"
|
|
400
|
+
else:
|
|
401
|
+
result[attr] = value
|
|
402
|
+
|
|
403
|
+
return result
|
|
404
|
+
|
|
405
|
+
def to_str(self):
|
|
406
|
+
"""Returns the string representation of the model"""
|
|
407
|
+
import simplejson as json
|
|
408
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
409
|
+
|
|
410
|
+
def __repr__(self):
|
|
411
|
+
"""For `print`"""
|
|
412
|
+
return self.to_str()
|
|
413
|
+
|
|
414
|
+
def __eq__(self, other):
|
|
415
|
+
"""Returns true if both objects are equal"""
|
|
416
|
+
if not isinstance(other, ThirdTemplateRequestBody):
|
|
417
|
+
return False
|
|
418
|
+
|
|
419
|
+
return self.__dict__ == other.__dict__
|
|
420
|
+
|
|
421
|
+
def __ne__(self, other):
|
|
422
|
+
"""Returns true if both objects are not equal"""
|
|
423
|
+
return not self == other
|