huaweicloudsdkdwr 3.1.160__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of huaweicloudsdkdwr might be problematic. Click here for more details.
- huaweicloudsdkdwr/__init__.py +0 -0
- huaweicloudsdkdwr/v1/__init__.py +93 -0
- huaweicloudsdkdwr/v1/dwr_async_client.py +1519 -0
- huaweicloudsdkdwr/v1/dwr_client.py +1516 -0
- huaweicloudsdkdwr/v1/model/__init__.py +90 -0
- huaweicloudsdkdwr/v1/model/build_progress.py +231 -0
- huaweicloudsdkdwr/v1/model/charge_info.py +230 -0
- huaweicloudsdkdwr/v1/model/collection_base_info.py +142 -0
- huaweicloudsdkdwr/v1/model/create_collection_body.py +281 -0
- huaweicloudsdkdwr/v1/model/create_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/create_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/create_index_body.py +166 -0
- huaweicloudsdkdwr/v1/model/create_index_request.py +111 -0
- huaweicloudsdkdwr/v1/model/create_index_response.py +145 -0
- huaweicloudsdkdwr/v1/model/create_store_body.py +248 -0
- huaweicloudsdkdwr/v1/model/create_store_data.py +335 -0
- huaweicloudsdkdwr/v1/model/create_store_request.py +111 -0
- huaweicloudsdkdwr/v1/model/create_store_response.py +170 -0
- huaweicloudsdkdwr/v1/model/decribe_collection_data.py +344 -0
- huaweicloudsdkdwr/v1/model/delete_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/delete_entities_body.py +170 -0
- huaweicloudsdkdwr/v1/model/delete_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_entities_response.py +145 -0
- huaweicloudsdkdwr/v1/model/delete_index_body.py +170 -0
- huaweicloudsdkdwr/v1/model/delete_index_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_index_response.py +145 -0
- huaweicloudsdkdwr/v1/model/delete_store_data.py +114 -0
- huaweicloudsdkdwr/v1/model/delete_store_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_store_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_collection_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_index_body.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_index_data.py +166 -0
- huaweicloudsdkdwr/v1/model/describe_index_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_index_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_job_body.py +114 -0
- huaweicloudsdkdwr/v1/model/describe_job_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_job_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_store_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_store_response.py +170 -0
- huaweicloudsdkdwr/v1/model/entities_data.py +114 -0
- huaweicloudsdkdwr/v1/model/field.py +229 -0
- huaweicloudsdkdwr/v1/model/field_data.py +285 -0
- huaweicloudsdkdwr/v1/model/flavor.py +142 -0
- huaweicloudsdkdwr/v1/model/get_index_progress_body.py +170 -0
- huaweicloudsdkdwr/v1/model/get_progress_data.py +167 -0
- huaweicloudsdkdwr/v1/model/get_progress_request.py +111 -0
- huaweicloudsdkdwr/v1/model/get_progress_response.py +170 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_body.py +282 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_request.py +111 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_response.py +170 -0
- huaweicloudsdkdwr/v1/model/index_desc.py +198 -0
- huaweicloudsdkdwr/v1/model/index_params.py +171 -0
- huaweicloudsdkdwr/v1/model/insert_entities_body.py +170 -0
- huaweicloudsdkdwr/v1/model/insert_entities_data.py +143 -0
- huaweicloudsdkdwr/v1/model/insert_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/insert_entities_response.py +170 -0
- huaweicloudsdkdwr/v1/model/job_data.py +316 -0
- huaweicloudsdkdwr/v1/model/list_collection_data.py +143 -0
- huaweicloudsdkdwr/v1/model/list_collection_details.py +260 -0
- huaweicloudsdkdwr/v1/model/list_collections_body.py +143 -0
- huaweicloudsdkdwr/v1/model/list_collections_request.py +111 -0
- huaweicloudsdkdwr/v1/model/list_collections_response.py +170 -0
- huaweicloudsdkdwr/v1/model/list_jobs_data.py +115 -0
- huaweicloudsdkdwr/v1/model/list_jobs_request.py +231 -0
- huaweicloudsdkdwr/v1/model/list_jobs_response.py +170 -0
- huaweicloudsdkdwr/v1/model/list_store_data.py +114 -0
- huaweicloudsdkdwr/v1/model/list_stores_request.py +84 -0
- huaweicloudsdkdwr/v1/model/list_stores_response.py +170 -0
- huaweicloudsdkdwr/v1/model/load_collection_body.py +142 -0
- huaweicloudsdkdwr/v1/model/load_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/load_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/primary_field.py +142 -0
- huaweicloudsdkdwr/v1/model/query_entities_body.py +257 -0
- huaweicloudsdkdwr/v1/model/query_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/query_entities_response.py +170 -0
- huaweicloudsdkdwr/v1/model/release_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/release_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/rerank.py +143 -0
- huaweicloudsdkdwr/v1/model/search_entities_body.py +343 -0
- huaweicloudsdkdwr/v1/model/search_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/search_entities_response.py +170 -0
- huaweicloudsdkdwr/v1/model/store_data.py +364 -0
- huaweicloudsdkdwr/v1/model/store_info.py +114 -0
- huaweicloudsdkdwr/v1/model/sub_search.py +258 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_body.py +170 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_data.py +142 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_response.py +170 -0
- huaweicloudsdkdwr/v1/region/__init__.py +0 -0
- huaweicloudsdkdwr/v1/region/dwr_region.py +43 -0
- huaweicloudsdkdwr/v3/__init__.py +76 -0
- huaweicloudsdkdwr/v3/dwr_async_client.py +1622 -0
- huaweicloudsdkdwr/v3/dwr_client.py +1619 -0
- huaweicloudsdkdwr/v3/model/__init__.py +73 -0
- huaweicloudsdkdwr/v3/model/accept_service_contract_request.py +114 -0
- huaweicloudsdkdwr/v3/model/accept_service_contract_response.py +137 -0
- huaweicloudsdkdwr/v3/model/action.py +427 -0
- huaweicloudsdkdwr/v3/model/action_result.py +228 -0
- huaweicloudsdkdwr/v3/model/action_template_item.py +144 -0
- huaweicloudsdkdwr/v3/model/async_invoke_api_start_workflow_request.py +139 -0
- huaweicloudsdkdwr/v3/model/async_invoke_api_start_workflow_response.py +274 -0
- huaweicloudsdkdwr/v3/model/check_workflow_authentication_request.py +84 -0
- huaweicloudsdkdwr/v3/model/check_workflow_authentication_response.py +477 -0
- huaweicloudsdkdwr/v3/model/create_my_action_template_request.py +139 -0
- huaweicloudsdkdwr/v3/model/create_my_action_template_response.py +419 -0
- huaweicloudsdkdwr/v3/model/create_workflow_authentication_request.py +84 -0
- huaweicloudsdkdwr/v3/model/create_workflow_authentication_response.py +137 -0
- huaweicloudsdkdwr/v3/model/create_workflow_request.py +139 -0
- huaweicloudsdkdwr/v3/model/create_workflow_request_body.py +281 -0
- huaweicloudsdkdwr/v3/model/create_workflow_response.py +274 -0
- huaweicloudsdkdwr/v3/model/delete_my_action_template_request.py +114 -0
- huaweicloudsdkdwr/v3/model/delete_my_action_template_response.py +137 -0
- huaweicloudsdkdwr/v3/model/delete_workflow_request.py +114 -0
- huaweicloudsdkdwr/v3/model/delete_workflow_response.py +137 -0
- huaweicloudsdkdwr/v3/model/execute_workflow_body.py +167 -0
- huaweicloudsdkdwr/v3/model/execution.py +289 -0
- huaweicloudsdkdwr/v3/model/express_config.py +144 -0
- huaweicloudsdkdwr/v3/model/func_vpc.py +260 -0
- huaweicloudsdkdwr/v3/model/graph_item.py +202 -0
- huaweicloudsdkdwr/v3/model/input.py +370 -0
- huaweicloudsdkdwr/v3/model/input_para_type.py +84 -0
- huaweicloudsdkdwr/v3/model/input_para_value_type.py +89 -0
- huaweicloudsdkdwr/v3/model/list_my_action_template_request.py +231 -0
- huaweicloudsdkdwr/v3/model/list_my_action_template_response.py +303 -0
- huaweicloudsdkdwr/v3/model/list_system_templates_request.py +202 -0
- huaweicloudsdkdwr/v3/model/list_system_templates_response.py +332 -0
- huaweicloudsdkdwr/v3/model/list_workflow_instance_request.py +259 -0
- huaweicloudsdkdwr/v3/model/list_workflow_instance_response.py +303 -0
- huaweicloudsdkdwr/v3/model/list_workflows_request.py +173 -0
- huaweicloudsdkdwr/v3/model/list_workflows_response.py +303 -0
- huaweicloudsdkdwr/v3/model/node_execution.py +289 -0
- huaweicloudsdkdwr/v3/model/policy.py +144 -0
- huaweicloudsdkdwr/v3/model/provided_action.py +564 -0
- huaweicloudsdkdwr/v3/model/public_template_item.py +285 -0
- huaweicloudsdkdwr/v3/model/public_template_register_type.py +87 -0
- huaweicloudsdkdwr/v3/model/restore_workflow_execution_request.py +142 -0
- huaweicloudsdkdwr/v3/model/restore_workflow_execution_response.py +274 -0
- huaweicloudsdkdwr/v3/model/show_public_action_list_request.py +202 -0
- huaweicloudsdkdwr/v3/model/show_public_action_list_response.py +332 -0
- huaweicloudsdkdwr/v3/model/show_public_template_info_request.py +114 -0
- huaweicloudsdkdwr/v3/model/show_public_template_info_response.py +212 -0
- huaweicloudsdkdwr/v3/model/show_service_contract_request.py +114 -0
- huaweicloudsdkdwr/v3/model/show_service_contract_response.py +245 -0
- huaweicloudsdkdwr/v3/model/show_system_template_detail_request.py +114 -0
- huaweicloudsdkdwr/v3/model/show_system_template_detail_response.py +212 -0
- huaweicloudsdkdwr/v3/model/show_third_template_info_request.py +114 -0
- huaweicloudsdkdwr/v3/model/show_third_template_info_response.py +212 -0
- huaweicloudsdkdwr/v3/model/show_workflow_info_request.py +114 -0
- huaweicloudsdkdwr/v3/model/show_workflow_info_response.py +332 -0
- huaweicloudsdkdwr/v3/model/show_workflow_instance_request.py +142 -0
- huaweicloudsdkdwr/v3/model/show_workflow_instance_response.py +535 -0
- huaweicloudsdkdwr/v3/model/state.py +345 -0
- huaweicloudsdkdwr/v3/model/statement.py +144 -0
- huaweicloudsdkdwr/v3/model/third_action_template_item.py +285 -0
- huaweicloudsdkdwr/v3/model/third_template_request_body.py +430 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_request.py +139 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_response.py +274 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_to_deprecated_request.py +114 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_to_deprecated_response.py +137 -0
- huaweicloudsdkdwr/v3/model/update_workflow_body.py +115 -0
- huaweicloudsdkdwr/v3/model/update_workflow_request.py +139 -0
- huaweicloudsdkdwr/v3/model/update_workflow_response.py +274 -0
- huaweicloudsdkdwr/v3/region/__init__.py +0 -0
- huaweicloudsdkdwr/v3/region/dwr_region.py +43 -0
- huaweicloudsdkdwr-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkdwr-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkdwr-3.1.160.dist-info/RECORD +171 -0
- huaweicloudsdkdwr-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkdwr-3.1.160.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class InputParaValueType:
|
|
9
|
+
"""
|
|
10
|
+
allowed enum values
|
|
11
|
+
"""
|
|
12
|
+
STRING = "string"
|
|
13
|
+
INTEGER = "integer"
|
|
14
|
+
FLOAT = "float"
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
openapi_types (dict): The key is attribute name
|
|
18
|
+
and the value is attribute type.
|
|
19
|
+
attribute_map (dict): The key is attribute name
|
|
20
|
+
and the value is json key in definition.
|
|
21
|
+
"""
|
|
22
|
+
sensitive_list = []
|
|
23
|
+
|
|
24
|
+
openapi_types = {
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
def __init__(self):
|
|
31
|
+
r"""InputParaValueType
|
|
32
|
+
|
|
33
|
+
The model defined in huaweicloud sdk
|
|
34
|
+
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self.discriminator = None
|
|
39
|
+
|
|
40
|
+
def to_dict(self):
|
|
41
|
+
"""Returns the model properties as a dict"""
|
|
42
|
+
result = {}
|
|
43
|
+
|
|
44
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
45
|
+
value = getattr(self, attr)
|
|
46
|
+
if isinstance(value, list):
|
|
47
|
+
result[attr] = list(map(
|
|
48
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
49
|
+
value
|
|
50
|
+
))
|
|
51
|
+
elif hasattr(value, "to_dict"):
|
|
52
|
+
result[attr] = value.to_dict()
|
|
53
|
+
elif isinstance(value, dict):
|
|
54
|
+
result[attr] = dict(map(
|
|
55
|
+
lambda item: (item[0], item[1].to_dict())
|
|
56
|
+
if hasattr(item[1], "to_dict") else item,
|
|
57
|
+
value.items()
|
|
58
|
+
))
|
|
59
|
+
else:
|
|
60
|
+
if attr in self.sensitive_list:
|
|
61
|
+
result[attr] = "****"
|
|
62
|
+
else:
|
|
63
|
+
result[attr] = value
|
|
64
|
+
|
|
65
|
+
return result
|
|
66
|
+
|
|
67
|
+
def to_str(self):
|
|
68
|
+
"""Returns the string representation of the model"""
|
|
69
|
+
import simplejson as json
|
|
70
|
+
if six.PY2:
|
|
71
|
+
import sys
|
|
72
|
+
reload(sys)
|
|
73
|
+
sys.setdefaultencoding("utf-8")
|
|
74
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
75
|
+
|
|
76
|
+
def __repr__(self):
|
|
77
|
+
"""For `print`"""
|
|
78
|
+
return self.to_str()
|
|
79
|
+
|
|
80
|
+
def __eq__(self, other):
|
|
81
|
+
"""Returns true if both objects are equal"""
|
|
82
|
+
if not isinstance(other, InputParaValueType):
|
|
83
|
+
return False
|
|
84
|
+
|
|
85
|
+
return self.__dict__ == other.__dict__
|
|
86
|
+
|
|
87
|
+
def __ne__(self, other):
|
|
88
|
+
"""Returns true if both objects are not equal"""
|
|
89
|
+
return not self == other
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListMyActionTemplateRequest:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'prefix': 'str',
|
|
21
|
+
'status': 'str',
|
|
22
|
+
'category': 'str',
|
|
23
|
+
'offset': 'str',
|
|
24
|
+
'limit': 'int'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'prefix': 'prefix',
|
|
29
|
+
'status': 'status',
|
|
30
|
+
'category': 'category',
|
|
31
|
+
'offset': 'offset',
|
|
32
|
+
'limit': 'limit'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def __init__(self, prefix=None, status=None, category=None, offset=None, limit=None):
|
|
36
|
+
r"""ListMyActionTemplateRequest
|
|
37
|
+
|
|
38
|
+
The model defined in huaweicloud sdk
|
|
39
|
+
|
|
40
|
+
:param prefix: 模板前缀。
|
|
41
|
+
:type prefix: str
|
|
42
|
+
:param status: 第三方算子模板的注册状态。包括init_created, submit_approve, approved_nok, approved_ok, deprecate_approve, deprecated。init_created:已创建,submit_approve:提交审核,approved_nok:审核未通过,approved_ok:审核通过,deprecate_approve:提交禁用审核,deprecated:已禁用。
|
|
43
|
+
:type status: str
|
|
44
|
+
:param category: 第三方算子模板的分类。默认分类为FileProcess,MediaProcess,ImageProcess,ContentReview,NotificationProcess,VoiceInteraction
|
|
45
|
+
:type category: str
|
|
46
|
+
:param offset: 查询的起始位置。start大于等于1,最大1000,不设置则取默认值1。
|
|
47
|
+
:type offset: str
|
|
48
|
+
:param limit: 分页查询,每页显示的条目数量。
|
|
49
|
+
:type limit: int
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
self._prefix = None
|
|
55
|
+
self._status = None
|
|
56
|
+
self._category = None
|
|
57
|
+
self._offset = None
|
|
58
|
+
self._limit = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if prefix is not None:
|
|
62
|
+
self.prefix = prefix
|
|
63
|
+
if status is not None:
|
|
64
|
+
self.status = status
|
|
65
|
+
if category is not None:
|
|
66
|
+
self.category = category
|
|
67
|
+
if offset is not None:
|
|
68
|
+
self.offset = offset
|
|
69
|
+
if limit is not None:
|
|
70
|
+
self.limit = limit
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def prefix(self):
|
|
74
|
+
r"""Gets the prefix of this ListMyActionTemplateRequest.
|
|
75
|
+
|
|
76
|
+
模板前缀。
|
|
77
|
+
|
|
78
|
+
:return: The prefix of this ListMyActionTemplateRequest.
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._prefix
|
|
82
|
+
|
|
83
|
+
@prefix.setter
|
|
84
|
+
def prefix(self, prefix):
|
|
85
|
+
r"""Sets the prefix of this ListMyActionTemplateRequest.
|
|
86
|
+
|
|
87
|
+
模板前缀。
|
|
88
|
+
|
|
89
|
+
:param prefix: The prefix of this ListMyActionTemplateRequest.
|
|
90
|
+
:type prefix: str
|
|
91
|
+
"""
|
|
92
|
+
self._prefix = prefix
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def status(self):
|
|
96
|
+
r"""Gets the status of this ListMyActionTemplateRequest.
|
|
97
|
+
|
|
98
|
+
第三方算子模板的注册状态。包括init_created, submit_approve, approved_nok, approved_ok, deprecate_approve, deprecated。init_created:已创建,submit_approve:提交审核,approved_nok:审核未通过,approved_ok:审核通过,deprecate_approve:提交禁用审核,deprecated:已禁用。
|
|
99
|
+
|
|
100
|
+
:return: The status of this ListMyActionTemplateRequest.
|
|
101
|
+
:rtype: str
|
|
102
|
+
"""
|
|
103
|
+
return self._status
|
|
104
|
+
|
|
105
|
+
@status.setter
|
|
106
|
+
def status(self, status):
|
|
107
|
+
r"""Sets the status of this ListMyActionTemplateRequest.
|
|
108
|
+
|
|
109
|
+
第三方算子模板的注册状态。包括init_created, submit_approve, approved_nok, approved_ok, deprecate_approve, deprecated。init_created:已创建,submit_approve:提交审核,approved_nok:审核未通过,approved_ok:审核通过,deprecate_approve:提交禁用审核,deprecated:已禁用。
|
|
110
|
+
|
|
111
|
+
:param status: The status of this ListMyActionTemplateRequest.
|
|
112
|
+
:type status: str
|
|
113
|
+
"""
|
|
114
|
+
self._status = status
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def category(self):
|
|
118
|
+
r"""Gets the category of this ListMyActionTemplateRequest.
|
|
119
|
+
|
|
120
|
+
第三方算子模板的分类。默认分类为FileProcess,MediaProcess,ImageProcess,ContentReview,NotificationProcess,VoiceInteraction
|
|
121
|
+
|
|
122
|
+
:return: The category of this ListMyActionTemplateRequest.
|
|
123
|
+
:rtype: str
|
|
124
|
+
"""
|
|
125
|
+
return self._category
|
|
126
|
+
|
|
127
|
+
@category.setter
|
|
128
|
+
def category(self, category):
|
|
129
|
+
r"""Sets the category of this ListMyActionTemplateRequest.
|
|
130
|
+
|
|
131
|
+
第三方算子模板的分类。默认分类为FileProcess,MediaProcess,ImageProcess,ContentReview,NotificationProcess,VoiceInteraction
|
|
132
|
+
|
|
133
|
+
:param category: The category of this ListMyActionTemplateRequest.
|
|
134
|
+
:type category: str
|
|
135
|
+
"""
|
|
136
|
+
self._category = category
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
def offset(self):
|
|
140
|
+
r"""Gets the offset of this ListMyActionTemplateRequest.
|
|
141
|
+
|
|
142
|
+
查询的起始位置。start大于等于1,最大1000,不设置则取默认值1。
|
|
143
|
+
|
|
144
|
+
:return: The offset of this ListMyActionTemplateRequest.
|
|
145
|
+
:rtype: str
|
|
146
|
+
"""
|
|
147
|
+
return self._offset
|
|
148
|
+
|
|
149
|
+
@offset.setter
|
|
150
|
+
def offset(self, offset):
|
|
151
|
+
r"""Sets the offset of this ListMyActionTemplateRequest.
|
|
152
|
+
|
|
153
|
+
查询的起始位置。start大于等于1,最大1000,不设置则取默认值1。
|
|
154
|
+
|
|
155
|
+
:param offset: The offset of this ListMyActionTemplateRequest.
|
|
156
|
+
:type offset: str
|
|
157
|
+
"""
|
|
158
|
+
self._offset = offset
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def limit(self):
|
|
162
|
+
r"""Gets the limit of this ListMyActionTemplateRequest.
|
|
163
|
+
|
|
164
|
+
分页查询,每页显示的条目数量。
|
|
165
|
+
|
|
166
|
+
:return: The limit of this ListMyActionTemplateRequest.
|
|
167
|
+
:rtype: int
|
|
168
|
+
"""
|
|
169
|
+
return self._limit
|
|
170
|
+
|
|
171
|
+
@limit.setter
|
|
172
|
+
def limit(self, limit):
|
|
173
|
+
r"""Sets the limit of this ListMyActionTemplateRequest.
|
|
174
|
+
|
|
175
|
+
分页查询,每页显示的条目数量。
|
|
176
|
+
|
|
177
|
+
:param limit: The limit of this ListMyActionTemplateRequest.
|
|
178
|
+
:type limit: int
|
|
179
|
+
"""
|
|
180
|
+
self._limit = limit
|
|
181
|
+
|
|
182
|
+
def to_dict(self):
|
|
183
|
+
"""Returns the model properties as a dict"""
|
|
184
|
+
result = {}
|
|
185
|
+
|
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
187
|
+
value = getattr(self, attr)
|
|
188
|
+
if isinstance(value, list):
|
|
189
|
+
result[attr] = list(map(
|
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
191
|
+
value
|
|
192
|
+
))
|
|
193
|
+
elif hasattr(value, "to_dict"):
|
|
194
|
+
result[attr] = value.to_dict()
|
|
195
|
+
elif isinstance(value, dict):
|
|
196
|
+
result[attr] = dict(map(
|
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
|
199
|
+
value.items()
|
|
200
|
+
))
|
|
201
|
+
else:
|
|
202
|
+
if attr in self.sensitive_list:
|
|
203
|
+
result[attr] = "****"
|
|
204
|
+
else:
|
|
205
|
+
result[attr] = value
|
|
206
|
+
|
|
207
|
+
return result
|
|
208
|
+
|
|
209
|
+
def to_str(self):
|
|
210
|
+
"""Returns the string representation of the model"""
|
|
211
|
+
import simplejson as json
|
|
212
|
+
if six.PY2:
|
|
213
|
+
import sys
|
|
214
|
+
reload(sys)
|
|
215
|
+
sys.setdefaultencoding("utf-8")
|
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
217
|
+
|
|
218
|
+
def __repr__(self):
|
|
219
|
+
"""For `print`"""
|
|
220
|
+
return self.to_str()
|
|
221
|
+
|
|
222
|
+
def __eq__(self, other):
|
|
223
|
+
"""Returns true if both objects are equal"""
|
|
224
|
+
if not isinstance(other, ListMyActionTemplateRequest):
|
|
225
|
+
return False
|
|
226
|
+
|
|
227
|
+
return self.__dict__ == other.__dict__
|
|
228
|
+
|
|
229
|
+
def __ne__(self, other):
|
|
230
|
+
"""Returns true if both objects are not equal"""
|
|
231
|
+
return not self == other
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ListMyActionTemplateResponse(SdkResponse):
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
openapi_types (dict): The key is attribute name
|
|
14
|
+
and the value is attribute type.
|
|
15
|
+
attribute_map (dict): The key is attribute name
|
|
16
|
+
and the value is json key in definition.
|
|
17
|
+
"""
|
|
18
|
+
sensitive_list = []
|
|
19
|
+
|
|
20
|
+
openapi_types = {
|
|
21
|
+
'count': 'int',
|
|
22
|
+
'action_templates': 'list[ThirdActionTemplateItem]',
|
|
23
|
+
'offset': 'int',
|
|
24
|
+
'is_truncated': 'bool',
|
|
25
|
+
'x_request_id': 'str',
|
|
26
|
+
'connection': 'str',
|
|
27
|
+
'content_length': 'str',
|
|
28
|
+
'date': 'str'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
attribute_map = {
|
|
32
|
+
'count': 'count',
|
|
33
|
+
'action_templates': 'action_templates',
|
|
34
|
+
'offset': 'offset',
|
|
35
|
+
'is_truncated': 'is_truncated',
|
|
36
|
+
'x_request_id': 'x-request-id',
|
|
37
|
+
'connection': 'Connection',
|
|
38
|
+
'content_length': 'Content-Length',
|
|
39
|
+
'date': 'Date'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
def __init__(self, count=None, action_templates=None, offset=None, is_truncated=None, x_request_id=None, connection=None, content_length=None, date=None):
|
|
43
|
+
r"""ListMyActionTemplateResponse
|
|
44
|
+
|
|
45
|
+
The model defined in huaweicloud sdk
|
|
46
|
+
|
|
47
|
+
:param count: 列表条目数
|
|
48
|
+
:type count: int
|
|
49
|
+
:param action_templates: 模板列表信息
|
|
50
|
+
:type action_templates: list[:class:`huaweicloudsdkdwr.v3.ThirdActionTemplateItem`]
|
|
51
|
+
:param offset: 下一次查询的起始位置。
|
|
52
|
+
:type offset: int
|
|
53
|
+
:param is_truncated: 表明是否本次返回的结果列表被截断。true:表示本次没有返回全部结果。false:表示本次已经返回了全部结果。
|
|
54
|
+
:type is_truncated: bool
|
|
55
|
+
:param x_request_id:
|
|
56
|
+
:type x_request_id: str
|
|
57
|
+
:param connection:
|
|
58
|
+
:type connection: str
|
|
59
|
+
:param content_length:
|
|
60
|
+
:type content_length: str
|
|
61
|
+
:param date:
|
|
62
|
+
:type date: str
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
super(ListMyActionTemplateResponse, self).__init__()
|
|
66
|
+
|
|
67
|
+
self._count = None
|
|
68
|
+
self._action_templates = None
|
|
69
|
+
self._offset = None
|
|
70
|
+
self._is_truncated = None
|
|
71
|
+
self._x_request_id = None
|
|
72
|
+
self._connection = None
|
|
73
|
+
self._content_length = None
|
|
74
|
+
self._date = None
|
|
75
|
+
self.discriminator = None
|
|
76
|
+
|
|
77
|
+
if count is not None:
|
|
78
|
+
self.count = count
|
|
79
|
+
if action_templates is not None:
|
|
80
|
+
self.action_templates = action_templates
|
|
81
|
+
if offset is not None:
|
|
82
|
+
self.offset = offset
|
|
83
|
+
if is_truncated is not None:
|
|
84
|
+
self.is_truncated = is_truncated
|
|
85
|
+
if x_request_id is not None:
|
|
86
|
+
self.x_request_id = x_request_id
|
|
87
|
+
if connection is not None:
|
|
88
|
+
self.connection = connection
|
|
89
|
+
if content_length is not None:
|
|
90
|
+
self.content_length = content_length
|
|
91
|
+
if date is not None:
|
|
92
|
+
self.date = date
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def count(self):
|
|
96
|
+
r"""Gets the count of this ListMyActionTemplateResponse.
|
|
97
|
+
|
|
98
|
+
列表条目数
|
|
99
|
+
|
|
100
|
+
:return: The count of this ListMyActionTemplateResponse.
|
|
101
|
+
:rtype: int
|
|
102
|
+
"""
|
|
103
|
+
return self._count
|
|
104
|
+
|
|
105
|
+
@count.setter
|
|
106
|
+
def count(self, count):
|
|
107
|
+
r"""Sets the count of this ListMyActionTemplateResponse.
|
|
108
|
+
|
|
109
|
+
列表条目数
|
|
110
|
+
|
|
111
|
+
:param count: The count of this ListMyActionTemplateResponse.
|
|
112
|
+
:type count: int
|
|
113
|
+
"""
|
|
114
|
+
self._count = count
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def action_templates(self):
|
|
118
|
+
r"""Gets the action_templates of this ListMyActionTemplateResponse.
|
|
119
|
+
|
|
120
|
+
模板列表信息
|
|
121
|
+
|
|
122
|
+
:return: The action_templates of this ListMyActionTemplateResponse.
|
|
123
|
+
:rtype: list[:class:`huaweicloudsdkdwr.v3.ThirdActionTemplateItem`]
|
|
124
|
+
"""
|
|
125
|
+
return self._action_templates
|
|
126
|
+
|
|
127
|
+
@action_templates.setter
|
|
128
|
+
def action_templates(self, action_templates):
|
|
129
|
+
r"""Sets the action_templates of this ListMyActionTemplateResponse.
|
|
130
|
+
|
|
131
|
+
模板列表信息
|
|
132
|
+
|
|
133
|
+
:param action_templates: The action_templates of this ListMyActionTemplateResponse.
|
|
134
|
+
:type action_templates: list[:class:`huaweicloudsdkdwr.v3.ThirdActionTemplateItem`]
|
|
135
|
+
"""
|
|
136
|
+
self._action_templates = action_templates
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
def offset(self):
|
|
140
|
+
r"""Gets the offset of this ListMyActionTemplateResponse.
|
|
141
|
+
|
|
142
|
+
下一次查询的起始位置。
|
|
143
|
+
|
|
144
|
+
:return: The offset of this ListMyActionTemplateResponse.
|
|
145
|
+
:rtype: int
|
|
146
|
+
"""
|
|
147
|
+
return self._offset
|
|
148
|
+
|
|
149
|
+
@offset.setter
|
|
150
|
+
def offset(self, offset):
|
|
151
|
+
r"""Sets the offset of this ListMyActionTemplateResponse.
|
|
152
|
+
|
|
153
|
+
下一次查询的起始位置。
|
|
154
|
+
|
|
155
|
+
:param offset: The offset of this ListMyActionTemplateResponse.
|
|
156
|
+
:type offset: int
|
|
157
|
+
"""
|
|
158
|
+
self._offset = offset
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def is_truncated(self):
|
|
162
|
+
r"""Gets the is_truncated of this ListMyActionTemplateResponse.
|
|
163
|
+
|
|
164
|
+
表明是否本次返回的结果列表被截断。true:表示本次没有返回全部结果。false:表示本次已经返回了全部结果。
|
|
165
|
+
|
|
166
|
+
:return: The is_truncated of this ListMyActionTemplateResponse.
|
|
167
|
+
:rtype: bool
|
|
168
|
+
"""
|
|
169
|
+
return self._is_truncated
|
|
170
|
+
|
|
171
|
+
@is_truncated.setter
|
|
172
|
+
def is_truncated(self, is_truncated):
|
|
173
|
+
r"""Sets the is_truncated of this ListMyActionTemplateResponse.
|
|
174
|
+
|
|
175
|
+
表明是否本次返回的结果列表被截断。true:表示本次没有返回全部结果。false:表示本次已经返回了全部结果。
|
|
176
|
+
|
|
177
|
+
:param is_truncated: The is_truncated of this ListMyActionTemplateResponse.
|
|
178
|
+
:type is_truncated: bool
|
|
179
|
+
"""
|
|
180
|
+
self._is_truncated = is_truncated
|
|
181
|
+
|
|
182
|
+
@property
|
|
183
|
+
def x_request_id(self):
|
|
184
|
+
r"""Gets the x_request_id of this ListMyActionTemplateResponse.
|
|
185
|
+
|
|
186
|
+
:return: The x_request_id of this ListMyActionTemplateResponse.
|
|
187
|
+
:rtype: str
|
|
188
|
+
"""
|
|
189
|
+
return self._x_request_id
|
|
190
|
+
|
|
191
|
+
@x_request_id.setter
|
|
192
|
+
def x_request_id(self, x_request_id):
|
|
193
|
+
r"""Sets the x_request_id of this ListMyActionTemplateResponse.
|
|
194
|
+
|
|
195
|
+
:param x_request_id: The x_request_id of this ListMyActionTemplateResponse.
|
|
196
|
+
:type x_request_id: str
|
|
197
|
+
"""
|
|
198
|
+
self._x_request_id = x_request_id
|
|
199
|
+
|
|
200
|
+
@property
|
|
201
|
+
def connection(self):
|
|
202
|
+
r"""Gets the connection of this ListMyActionTemplateResponse.
|
|
203
|
+
|
|
204
|
+
:return: The connection of this ListMyActionTemplateResponse.
|
|
205
|
+
:rtype: str
|
|
206
|
+
"""
|
|
207
|
+
return self._connection
|
|
208
|
+
|
|
209
|
+
@connection.setter
|
|
210
|
+
def connection(self, connection):
|
|
211
|
+
r"""Sets the connection of this ListMyActionTemplateResponse.
|
|
212
|
+
|
|
213
|
+
:param connection: The connection of this ListMyActionTemplateResponse.
|
|
214
|
+
:type connection: str
|
|
215
|
+
"""
|
|
216
|
+
self._connection = connection
|
|
217
|
+
|
|
218
|
+
@property
|
|
219
|
+
def content_length(self):
|
|
220
|
+
r"""Gets the content_length of this ListMyActionTemplateResponse.
|
|
221
|
+
|
|
222
|
+
:return: The content_length of this ListMyActionTemplateResponse.
|
|
223
|
+
:rtype: str
|
|
224
|
+
"""
|
|
225
|
+
return self._content_length
|
|
226
|
+
|
|
227
|
+
@content_length.setter
|
|
228
|
+
def content_length(self, content_length):
|
|
229
|
+
r"""Sets the content_length of this ListMyActionTemplateResponse.
|
|
230
|
+
|
|
231
|
+
:param content_length: The content_length of this ListMyActionTemplateResponse.
|
|
232
|
+
:type content_length: str
|
|
233
|
+
"""
|
|
234
|
+
self._content_length = content_length
|
|
235
|
+
|
|
236
|
+
@property
|
|
237
|
+
def date(self):
|
|
238
|
+
r"""Gets the date of this ListMyActionTemplateResponse.
|
|
239
|
+
|
|
240
|
+
:return: The date of this ListMyActionTemplateResponse.
|
|
241
|
+
:rtype: str
|
|
242
|
+
"""
|
|
243
|
+
return self._date
|
|
244
|
+
|
|
245
|
+
@date.setter
|
|
246
|
+
def date(self, date):
|
|
247
|
+
r"""Sets the date of this ListMyActionTemplateResponse.
|
|
248
|
+
|
|
249
|
+
:param date: The date of this ListMyActionTemplateResponse.
|
|
250
|
+
:type date: str
|
|
251
|
+
"""
|
|
252
|
+
self._date = date
|
|
253
|
+
|
|
254
|
+
def to_dict(self):
|
|
255
|
+
"""Returns the model properties as a dict"""
|
|
256
|
+
result = {}
|
|
257
|
+
|
|
258
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
259
|
+
value = getattr(self, attr)
|
|
260
|
+
if isinstance(value, list):
|
|
261
|
+
result[attr] = list(map(
|
|
262
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
263
|
+
value
|
|
264
|
+
))
|
|
265
|
+
elif hasattr(value, "to_dict"):
|
|
266
|
+
result[attr] = value.to_dict()
|
|
267
|
+
elif isinstance(value, dict):
|
|
268
|
+
result[attr] = dict(map(
|
|
269
|
+
lambda item: (item[0], item[1].to_dict())
|
|
270
|
+
if hasattr(item[1], "to_dict") else item,
|
|
271
|
+
value.items()
|
|
272
|
+
))
|
|
273
|
+
else:
|
|
274
|
+
if attr in self.sensitive_list:
|
|
275
|
+
result[attr] = "****"
|
|
276
|
+
else:
|
|
277
|
+
result[attr] = value
|
|
278
|
+
|
|
279
|
+
return result
|
|
280
|
+
|
|
281
|
+
def to_str(self):
|
|
282
|
+
"""Returns the string representation of the model"""
|
|
283
|
+
import simplejson as json
|
|
284
|
+
if six.PY2:
|
|
285
|
+
import sys
|
|
286
|
+
reload(sys)
|
|
287
|
+
sys.setdefaultencoding("utf-8")
|
|
288
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
289
|
+
|
|
290
|
+
def __repr__(self):
|
|
291
|
+
"""For `print`"""
|
|
292
|
+
return self.to_str()
|
|
293
|
+
|
|
294
|
+
def __eq__(self, other):
|
|
295
|
+
"""Returns true if both objects are equal"""
|
|
296
|
+
if not isinstance(other, ListMyActionTemplateResponse):
|
|
297
|
+
return False
|
|
298
|
+
|
|
299
|
+
return self.__dict__ == other.__dict__
|
|
300
|
+
|
|
301
|
+
def __ne__(self, other):
|
|
302
|
+
"""Returns true if both objects are not equal"""
|
|
303
|
+
return not self == other
|