huaweicloudsdksfsturbo 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.
- huaweicloudsdksfsturbo/__init__.py +0 -0
- huaweicloudsdksfsturbo/v1/__init__.py +187 -0
- huaweicloudsdksfsturbo/v1/model/__init__.py +184 -0
- huaweicloudsdksfsturbo/v1/model/action_progress.py +115 -0
- huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_request_body.py +313 -0
- huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/auto_export_policy.py +173 -0
- huaweicloudsdksfsturbo/v1/model/batch_add_shared_tags_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/batch_add_shared_tags_request_body.py +142 -0
- huaweicloudsdksfsturbo/v1/model/batch_add_shared_tags_response.py +85 -0
- huaweicloudsdksfsturbo/v1/model/bss_info.py +200 -0
- huaweicloudsdksfsturbo/v1/model/bss_info_extend.py +115 -0
- huaweicloudsdksfsturbo/v1/model/change_security_group.py +114 -0
- huaweicloudsdksfsturbo/v1/model/change_security_group_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/change_security_group_request_body.py +110 -0
- huaweicloudsdksfsturbo/v1/model/change_security_group_response.py +116 -0
- huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_request_body.py +110 -0
- huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_v2_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_v2_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/change_share_name_req.py +110 -0
- huaweicloudsdksfsturbo/v1/model/change_share_name_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/change_share_name_response.py +85 -0
- huaweicloudsdksfsturbo/v1/model/client_ip_info.py +115 -0
- huaweicloudsdksfsturbo/v1/model/config_nas_target.py +170 -0
- huaweicloudsdksfsturbo/v1/model/create_backend_target_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/create_backend_target_request_body.py +138 -0
- huaweicloudsdksfsturbo/v1/model/create_backend_target_response.py +278 -0
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request_body.py +172 -0
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_response.py +232 -0
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_request_body.py +201 -0
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_response.py +85 -0
- huaweicloudsdksfsturbo/v1/model/create_fs_task_request.py +167 -0
- huaweicloudsdksfsturbo/v1/model/create_fs_task_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_req.py +253 -0
- huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/create_ldap_config_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/create_ldap_config_request_body.py +345 -0
- huaweicloudsdksfsturbo/v1/model/create_ldap_config_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/create_perm_rule_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/create_perm_rule_response.py +116 -0
- huaweicloudsdksfsturbo/v1/model/create_perm_rules_request_body.py +114 -0
- huaweicloudsdksfsturbo/v1/model/create_share_request.py +111 -0
- huaweicloudsdksfsturbo/v1/model/create_share_request_body.py +135 -0
- huaweicloudsdksfsturbo/v1/model/create_share_response.py +174 -0
- huaweicloudsdksfsturbo/v1/model/create_shared_tag_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/create_shared_tag_request_body.py +110 -0
- huaweicloudsdksfsturbo/v1/model/create_shared_tag_response.py +85 -0
- huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_request_body.py +142 -0
- huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/delete_backend_target_request.py +171 -0
- huaweicloudsdksfsturbo/v1/model/delete_backend_target_response.py +199 -0
- huaweicloudsdksfsturbo/v1/model/delete_fs_dir_quota_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/delete_fs_dir_quota_request_body.py +114 -0
- huaweicloudsdksfsturbo/v1/model/delete_fs_dir_quota_response.py +85 -0
- huaweicloudsdksfsturbo/v1/model/delete_fs_dir_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/delete_fs_dir_request_body.py +114 -0
- huaweicloudsdksfsturbo/v1/model/delete_fs_dir_response.py +85 -0
- huaweicloudsdksfsturbo/v1/model/delete_fs_task_request.py +170 -0
- huaweicloudsdksfsturbo/v1/model/delete_fs_task_response.py +112 -0
- huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_response.py +112 -0
- huaweicloudsdksfsturbo/v1/model/delete_ldap_config_request.py +114 -0
- huaweicloudsdksfsturbo/v1/model/delete_ldap_config_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/delete_perm_rule_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/delete_perm_rule_response.py +85 -0
- huaweicloudsdksfsturbo/v1/model/delete_share_request.py +114 -0
- huaweicloudsdksfsturbo/v1/model/delete_share_response.py +85 -0
- huaweicloudsdksfsturbo/v1/model/delete_shared_tag_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/delete_shared_tag_response.py +85 -0
- huaweicloudsdksfsturbo/v1/model/expand_share_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/expand_share_request_body.py +110 -0
- huaweicloudsdksfsturbo/v1/model/expand_share_response.py +145 -0
- huaweicloudsdksfsturbo/v1/model/extend.py +168 -0
- huaweicloudsdksfsturbo/v1/model/failure_details_message.py +114 -0
- huaweicloudsdksfsturbo/v1/model/fs_dir_req.py +114 -0
- huaweicloudsdksfsturbo/v1/model/fs_dir_uasge.py +114 -0
- huaweicloudsdksfsturbo/v1/model/fs_du_info.py +198 -0
- huaweicloudsdksfsturbo/v1/model/fs_file_count.py +289 -0
- huaweicloudsdksfsturbo/v1/model/get_sub_job_detail.py +289 -0
- huaweicloudsdksfsturbo/v1/model/list_backend_targets_request.py +172 -0
- huaweicloudsdksfsturbo/v1/model/list_backend_targets_response.py +170 -0
- huaweicloudsdksfsturbo/v1/model/list_fs_tasks_request.py +200 -0
- huaweicloudsdksfsturbo/v1/model/list_fs_tasks_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_request.py +288 -0
- huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_response.py +170 -0
- huaweicloudsdksfsturbo/v1/model/list_perm_rules_request.py +172 -0
- huaweicloudsdksfsturbo/v1/model/list_perm_rules_response.py +116 -0
- huaweicloudsdksfsturbo/v1/model/list_share_types_request.py +144 -0
- huaweicloudsdksfsturbo/v1/model/list_share_types_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/list_shared_tags_request.py +144 -0
- huaweicloudsdksfsturbo/v1/model/list_shared_tags_response.py +116 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request.py +111 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request_body.py +259 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_resource.py +202 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_response.py +170 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_request.py +144 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_response.py +145 -0
- huaweicloudsdksfsturbo/v1/model/metadata.py +231 -0
- huaweicloudsdksfsturbo/v1/model/obs_data_repository.py +192 -0
- huaweicloudsdksfsturbo/v1/model/obs_data_repository_policy.py +111 -0
- huaweicloudsdksfsturbo/v1/model/obs_target_attributes.py +202 -0
- huaweicloudsdksfsturbo/v1/model/one_fs_task_resp.py +223 -0
- huaweicloudsdksfsturbo/v1/model/one_hpc_cache_task_info_resp.py +366 -0
- huaweicloudsdksfsturbo/v1/model/one_perm_rule_request_info.py +170 -0
- huaweicloudsdksfsturbo/v1/model/one_perm_rule_response_info.py +198 -0
- huaweicloudsdksfsturbo/v1/model/req_config_hpc_cache_backend.py +110 -0
- huaweicloudsdksfsturbo/v1/model/req_update_hpc_cache_data.py +171 -0
- huaweicloudsdksfsturbo/v1/model/req_update_hpc_cache_info.py +138 -0
- huaweicloudsdksfsturbo/v1/model/resource_tag.py +142 -0
- huaweicloudsdksfsturbo/v1/model/set_hpc_cache_backend_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/set_hpc_cache_backend_response.py +112 -0
- huaweicloudsdksfsturbo/v1/model/share.py +451 -0
- huaweicloudsdksfsturbo/v1/model/share_info.py +919 -0
- huaweicloudsdksfsturbo/v1/model/share_info_feature.py +173 -0
- huaweicloudsdksfsturbo/v1/model/share_info_features.py +111 -0
- huaweicloudsdksfsturbo/v1/model/share_name.py +114 -0
- huaweicloudsdksfsturbo/v1/model/share_type_available_zone.py +144 -0
- huaweicloudsdksfsturbo/v1/model/share_type_response_body.py +368 -0
- huaweicloudsdksfsturbo/v1/model/share_type_usage.py +161 -0
- huaweicloudsdksfsturbo/v1/model/share_type_usage_bandwidth.py +144 -0
- huaweicloudsdksfsturbo/v1/model/share_type_usage_capacity.py +144 -0
- huaweicloudsdksfsturbo/v1/model/share_type_usage_quantity.py +144 -0
- huaweicloudsdksfsturbo/v1/model/share_types_attribution.py +186 -0
- huaweicloudsdksfsturbo/v1/model/share_types_attribution_bandwidth.py +231 -0
- huaweicloudsdksfsturbo/v1/model/share_types_attribution_capacity.py +173 -0
- huaweicloudsdksfsturbo/v1/model/share_types_attribution_iops.py +144 -0
- huaweicloudsdksfsturbo/v1/model/share_types_attribution_single_channel4_k_latency.py +144 -0
- huaweicloudsdksfsturbo/v1/model/show_active_directory_domain_request.py +114 -0
- huaweicloudsdksfsturbo/v1/model/show_active_directory_domain_response.py +286 -0
- huaweicloudsdksfsturbo/v1/model/show_backend_target_info_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/show_backend_target_info_response.py +278 -0
- huaweicloudsdksfsturbo/v1/model/show_backend_target_info_response_body.py +252 -0
- huaweicloudsdksfsturbo/v1/model/show_client_ip_info_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/show_client_ip_info_request_body.py +110 -0
- huaweicloudsdksfsturbo/v1/model/show_client_ip_info_response.py +170 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_response.py +232 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_response.py +203 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_usage_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_usage_response.py +137 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_task_request.py +170 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_task_response.py +253 -0
- huaweicloudsdksfsturbo/v1/model/show_hpc_cache_task_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/show_hpc_cache_task_response.py +402 -0
- huaweicloudsdksfsturbo/v1/model/show_job_detail_request.py +114 -0
- huaweicloudsdksfsturbo/v1/model/show_job_detail_response.py +344 -0
- huaweicloudsdksfsturbo/v1/model/show_ldap_config_request.py +114 -0
- huaweicloudsdksfsturbo/v1/model/show_ldap_config_response.py +344 -0
- huaweicloudsdksfsturbo/v1/model/show_perm_rule_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/show_perm_rule_response.py +203 -0
- huaweicloudsdksfsturbo/v1/model/show_share_request.py +114 -0
- huaweicloudsdksfsturbo/v1/model/show_share_response.py +920 -0
- huaweicloudsdksfsturbo/v1/model/show_shared_tags_request.py +114 -0
- huaweicloudsdksfsturbo/v1/model/show_shared_tags_response.py +116 -0
- huaweicloudsdksfsturbo/v1/model/tag.py +142 -0
- huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_request_body.py +313 -0
- huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request_body.py +172 -0
- huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_response.py +232 -0
- huaweicloudsdksfsturbo/v1/model/update_hpc_share_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/update_hpc_share_request_body.py +142 -0
- huaweicloudsdksfsturbo/v1/model/update_hpc_share_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/update_ldap_config_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/update_ldap_config_request_body.py +347 -0
- huaweicloudsdksfsturbo/v1/model/update_ldap_config_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request.py +167 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request_body.py +110 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_response.py +166 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request.py +167 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request_body.py +110 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_response.py +166 -0
- huaweicloudsdksfsturbo/v1/model/update_one_perm_rule_request_info.py +144 -0
- huaweicloudsdksfsturbo/v1/model/update_perm_rule_request.py +167 -0
- huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py +203 -0
- huaweicloudsdksfsturbo/v1/region/__init__.py +0 -0
- huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py +118 -0
- huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py +3722 -0
- huaweicloudsdksfsturbo/v1/sfsturbo_client.py +3719 -0
- huaweicloudsdksfsturbo-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdksfsturbo-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdksfsturbo-3.1.160.dist-info/RECORD +191 -0
- huaweicloudsdksfsturbo-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdksfsturbo-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,259 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListSharesByTagRequestBody:
|
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
|
+
'action': 'str',
|
21
|
+
'limit': 'str',
|
22
|
+
'offset': 'str',
|
23
|
+
'without_any_tag': 'bool',
|
24
|
+
'tags': 'list[Tag]',
|
25
|
+
'matches': 'list[ResourceTag]'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'action': 'action',
|
30
|
+
'limit': 'limit',
|
31
|
+
'offset': 'offset',
|
32
|
+
'without_any_tag': 'without_any_tag',
|
33
|
+
'tags': 'tags',
|
34
|
+
'matches': 'matches'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, action=None, limit=None, offset=None, without_any_tag=None, tags=None, matches=None):
|
38
|
+
r"""ListSharesByTagRequestBody
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param action: 通过标签查询文件系统列表的操作类型。仅支持取值为\"filter\" 或 \"count\"。
|
43
|
+
:type action: str
|
44
|
+
:param limit: 设置返回的文件系统个数的最大值。
|
45
|
+
:type limit: str
|
46
|
+
:param offset: 设置返回的文件系统的偏移量
|
47
|
+
:type offset: str
|
48
|
+
:param without_any_tag: 不包含任意一个标签,该字段为true时查询所有不带标签的资源,此时忽略 “tags”字段。该字段为false或者未提供该参数时,该条件不生效,即返回所有资源或按\"tags\",\"matches\"等条件过滤。
|
49
|
+
:type without_any_tag: bool
|
50
|
+
:param tags: 包含标签,最多包含20个key,每个key下面的value最多20个,每个key对应的value可以为空数组但结构体不能缺失。key不能重复,同一个key中values不能重复。结果返回包含所有标签的资源列表,key之间是与的关系,key-value结构中value是或的关系。无tag过滤条件时返回全量数据。
|
51
|
+
:type tags: list[:class:`huaweicloudsdksfsturbo.v1.Tag`]
|
52
|
+
:param matches: 搜索字段,key为要匹配的字段,仅支持取值“resource_name”。value为匹配的值,当value以“\\*”结尾时,为前缀搜索。例如:value值为“sfsturbo\\*”时,返回名称为“sfsturbo”开头的所有资源列表。
|
53
|
+
:type matches: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._action = None
|
59
|
+
self._limit = None
|
60
|
+
self._offset = None
|
61
|
+
self._without_any_tag = None
|
62
|
+
self._tags = None
|
63
|
+
self._matches = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
self.action = action
|
67
|
+
if limit is not None:
|
68
|
+
self.limit = limit
|
69
|
+
if offset is not None:
|
70
|
+
self.offset = offset
|
71
|
+
if without_any_tag is not None:
|
72
|
+
self.without_any_tag = without_any_tag
|
73
|
+
if tags is not None:
|
74
|
+
self.tags = tags
|
75
|
+
if matches is not None:
|
76
|
+
self.matches = matches
|
77
|
+
|
78
|
+
@property
|
79
|
+
def action(self):
|
80
|
+
r"""Gets the action of this ListSharesByTagRequestBody.
|
81
|
+
|
82
|
+
通过标签查询文件系统列表的操作类型。仅支持取值为\"filter\" 或 \"count\"。
|
83
|
+
|
84
|
+
:return: The action of this ListSharesByTagRequestBody.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._action
|
88
|
+
|
89
|
+
@action.setter
|
90
|
+
def action(self, action):
|
91
|
+
r"""Sets the action of this ListSharesByTagRequestBody.
|
92
|
+
|
93
|
+
通过标签查询文件系统列表的操作类型。仅支持取值为\"filter\" 或 \"count\"。
|
94
|
+
|
95
|
+
:param action: The action of this ListSharesByTagRequestBody.
|
96
|
+
:type action: str
|
97
|
+
"""
|
98
|
+
self._action = action
|
99
|
+
|
100
|
+
@property
|
101
|
+
def limit(self):
|
102
|
+
r"""Gets the limit of this ListSharesByTagRequestBody.
|
103
|
+
|
104
|
+
设置返回的文件系统个数的最大值。
|
105
|
+
|
106
|
+
:return: The limit of this ListSharesByTagRequestBody.
|
107
|
+
:rtype: str
|
108
|
+
"""
|
109
|
+
return self._limit
|
110
|
+
|
111
|
+
@limit.setter
|
112
|
+
def limit(self, limit):
|
113
|
+
r"""Sets the limit of this ListSharesByTagRequestBody.
|
114
|
+
|
115
|
+
设置返回的文件系统个数的最大值。
|
116
|
+
|
117
|
+
:param limit: The limit of this ListSharesByTagRequestBody.
|
118
|
+
:type limit: str
|
119
|
+
"""
|
120
|
+
self._limit = limit
|
121
|
+
|
122
|
+
@property
|
123
|
+
def offset(self):
|
124
|
+
r"""Gets the offset of this ListSharesByTagRequestBody.
|
125
|
+
|
126
|
+
设置返回的文件系统的偏移量
|
127
|
+
|
128
|
+
:return: The offset of this ListSharesByTagRequestBody.
|
129
|
+
:rtype: str
|
130
|
+
"""
|
131
|
+
return self._offset
|
132
|
+
|
133
|
+
@offset.setter
|
134
|
+
def offset(self, offset):
|
135
|
+
r"""Sets the offset of this ListSharesByTagRequestBody.
|
136
|
+
|
137
|
+
设置返回的文件系统的偏移量
|
138
|
+
|
139
|
+
:param offset: The offset of this ListSharesByTagRequestBody.
|
140
|
+
:type offset: str
|
141
|
+
"""
|
142
|
+
self._offset = offset
|
143
|
+
|
144
|
+
@property
|
145
|
+
def without_any_tag(self):
|
146
|
+
r"""Gets the without_any_tag of this ListSharesByTagRequestBody.
|
147
|
+
|
148
|
+
不包含任意一个标签,该字段为true时查询所有不带标签的资源,此时忽略 “tags”字段。该字段为false或者未提供该参数时,该条件不生效,即返回所有资源或按\"tags\",\"matches\"等条件过滤。
|
149
|
+
|
150
|
+
:return: The without_any_tag of this ListSharesByTagRequestBody.
|
151
|
+
:rtype: bool
|
152
|
+
"""
|
153
|
+
return self._without_any_tag
|
154
|
+
|
155
|
+
@without_any_tag.setter
|
156
|
+
def without_any_tag(self, without_any_tag):
|
157
|
+
r"""Sets the without_any_tag of this ListSharesByTagRequestBody.
|
158
|
+
|
159
|
+
不包含任意一个标签,该字段为true时查询所有不带标签的资源,此时忽略 “tags”字段。该字段为false或者未提供该参数时,该条件不生效,即返回所有资源或按\"tags\",\"matches\"等条件过滤。
|
160
|
+
|
161
|
+
:param without_any_tag: The without_any_tag of this ListSharesByTagRequestBody.
|
162
|
+
:type without_any_tag: bool
|
163
|
+
"""
|
164
|
+
self._without_any_tag = without_any_tag
|
165
|
+
|
166
|
+
@property
|
167
|
+
def tags(self):
|
168
|
+
r"""Gets the tags of this ListSharesByTagRequestBody.
|
169
|
+
|
170
|
+
包含标签,最多包含20个key,每个key下面的value最多20个,每个key对应的value可以为空数组但结构体不能缺失。key不能重复,同一个key中values不能重复。结果返回包含所有标签的资源列表,key之间是与的关系,key-value结构中value是或的关系。无tag过滤条件时返回全量数据。
|
171
|
+
|
172
|
+
:return: The tags of this ListSharesByTagRequestBody.
|
173
|
+
:rtype: list[:class:`huaweicloudsdksfsturbo.v1.Tag`]
|
174
|
+
"""
|
175
|
+
return self._tags
|
176
|
+
|
177
|
+
@tags.setter
|
178
|
+
def tags(self, tags):
|
179
|
+
r"""Sets the tags of this ListSharesByTagRequestBody.
|
180
|
+
|
181
|
+
包含标签,最多包含20个key,每个key下面的value最多20个,每个key对应的value可以为空数组但结构体不能缺失。key不能重复,同一个key中values不能重复。结果返回包含所有标签的资源列表,key之间是与的关系,key-value结构中value是或的关系。无tag过滤条件时返回全量数据。
|
182
|
+
|
183
|
+
:param tags: The tags of this ListSharesByTagRequestBody.
|
184
|
+
:type tags: list[:class:`huaweicloudsdksfsturbo.v1.Tag`]
|
185
|
+
"""
|
186
|
+
self._tags = tags
|
187
|
+
|
188
|
+
@property
|
189
|
+
def matches(self):
|
190
|
+
r"""Gets the matches of this ListSharesByTagRequestBody.
|
191
|
+
|
192
|
+
搜索字段,key为要匹配的字段,仅支持取值“resource_name”。value为匹配的值,当value以“\\*”结尾时,为前缀搜索。例如:value值为“sfsturbo\\*”时,返回名称为“sfsturbo”开头的所有资源列表。
|
193
|
+
|
194
|
+
:return: The matches of this ListSharesByTagRequestBody.
|
195
|
+
:rtype: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
|
196
|
+
"""
|
197
|
+
return self._matches
|
198
|
+
|
199
|
+
@matches.setter
|
200
|
+
def matches(self, matches):
|
201
|
+
r"""Sets the matches of this ListSharesByTagRequestBody.
|
202
|
+
|
203
|
+
搜索字段,key为要匹配的字段,仅支持取值“resource_name”。value为匹配的值,当value以“\\*”结尾时,为前缀搜索。例如:value值为“sfsturbo\\*”时,返回名称为“sfsturbo”开头的所有资源列表。
|
204
|
+
|
205
|
+
:param matches: The matches of this ListSharesByTagRequestBody.
|
206
|
+
:type matches: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
|
207
|
+
"""
|
208
|
+
self._matches = matches
|
209
|
+
|
210
|
+
def to_dict(self):
|
211
|
+
"""Returns the model properties as a dict"""
|
212
|
+
result = {}
|
213
|
+
|
214
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
215
|
+
value = getattr(self, attr)
|
216
|
+
if isinstance(value, list):
|
217
|
+
result[attr] = list(map(
|
218
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
219
|
+
value
|
220
|
+
))
|
221
|
+
elif hasattr(value, "to_dict"):
|
222
|
+
result[attr] = value.to_dict()
|
223
|
+
elif isinstance(value, dict):
|
224
|
+
result[attr] = dict(map(
|
225
|
+
lambda item: (item[0], item[1].to_dict())
|
226
|
+
if hasattr(item[1], "to_dict") else item,
|
227
|
+
value.items()
|
228
|
+
))
|
229
|
+
else:
|
230
|
+
if attr in self.sensitive_list:
|
231
|
+
result[attr] = "****"
|
232
|
+
else:
|
233
|
+
result[attr] = value
|
234
|
+
|
235
|
+
return result
|
236
|
+
|
237
|
+
def to_str(self):
|
238
|
+
"""Returns the string representation of the model"""
|
239
|
+
import simplejson as json
|
240
|
+
if six.PY2:
|
241
|
+
import sys
|
242
|
+
reload(sys)
|
243
|
+
sys.setdefaultencoding("utf-8")
|
244
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
245
|
+
|
246
|
+
def __repr__(self):
|
247
|
+
"""For `print`"""
|
248
|
+
return self.to_str()
|
249
|
+
|
250
|
+
def __eq__(self, other):
|
251
|
+
"""Returns true if both objects are equal"""
|
252
|
+
if not isinstance(other, ListSharesByTagRequestBody):
|
253
|
+
return False
|
254
|
+
|
255
|
+
return self.__dict__ == other.__dict__
|
256
|
+
|
257
|
+
def __ne__(self, other):
|
258
|
+
"""Returns true if both objects are not equal"""
|
259
|
+
return not self == other
|
@@ -0,0 +1,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListSharesByTagResource:
|
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
|
+
'resource_id': 'str',
|
21
|
+
'resource_name': 'str',
|
22
|
+
'resource_detail': 'str',
|
23
|
+
'tags': 'list[ResourceTag]'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'resource_id': 'resource_id',
|
28
|
+
'resource_name': 'resource_name',
|
29
|
+
'resource_detail': 'resource_detail',
|
30
|
+
'tags': 'tags'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, resource_id=None, resource_name=None, resource_detail=None, tags=None):
|
34
|
+
r"""ListSharesByTagResource
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param resource_id: 资源ID
|
39
|
+
:type resource_id: str
|
40
|
+
:param resource_name: 资源名称
|
41
|
+
:type resource_name: str
|
42
|
+
:param resource_detail: 资源详情
|
43
|
+
:type resource_detail: str
|
44
|
+
:param tags: 资源的标签列表
|
45
|
+
:type tags: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._resource_id = None
|
51
|
+
self._resource_name = None
|
52
|
+
self._resource_detail = None
|
53
|
+
self._tags = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if resource_id is not None:
|
57
|
+
self.resource_id = resource_id
|
58
|
+
if resource_name is not None:
|
59
|
+
self.resource_name = resource_name
|
60
|
+
if resource_detail is not None:
|
61
|
+
self.resource_detail = resource_detail
|
62
|
+
if tags is not None:
|
63
|
+
self.tags = tags
|
64
|
+
|
65
|
+
@property
|
66
|
+
def resource_id(self):
|
67
|
+
r"""Gets the resource_id of this ListSharesByTagResource.
|
68
|
+
|
69
|
+
资源ID
|
70
|
+
|
71
|
+
:return: The resource_id of this ListSharesByTagResource.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._resource_id
|
75
|
+
|
76
|
+
@resource_id.setter
|
77
|
+
def resource_id(self, resource_id):
|
78
|
+
r"""Sets the resource_id of this ListSharesByTagResource.
|
79
|
+
|
80
|
+
资源ID
|
81
|
+
|
82
|
+
:param resource_id: The resource_id of this ListSharesByTagResource.
|
83
|
+
:type resource_id: str
|
84
|
+
"""
|
85
|
+
self._resource_id = resource_id
|
86
|
+
|
87
|
+
@property
|
88
|
+
def resource_name(self):
|
89
|
+
r"""Gets the resource_name of this ListSharesByTagResource.
|
90
|
+
|
91
|
+
资源名称
|
92
|
+
|
93
|
+
:return: The resource_name of this ListSharesByTagResource.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._resource_name
|
97
|
+
|
98
|
+
@resource_name.setter
|
99
|
+
def resource_name(self, resource_name):
|
100
|
+
r"""Sets the resource_name of this ListSharesByTagResource.
|
101
|
+
|
102
|
+
资源名称
|
103
|
+
|
104
|
+
:param resource_name: The resource_name of this ListSharesByTagResource.
|
105
|
+
:type resource_name: str
|
106
|
+
"""
|
107
|
+
self._resource_name = resource_name
|
108
|
+
|
109
|
+
@property
|
110
|
+
def resource_detail(self):
|
111
|
+
r"""Gets the resource_detail of this ListSharesByTagResource.
|
112
|
+
|
113
|
+
资源详情
|
114
|
+
|
115
|
+
:return: The resource_detail of this ListSharesByTagResource.
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._resource_detail
|
119
|
+
|
120
|
+
@resource_detail.setter
|
121
|
+
def resource_detail(self, resource_detail):
|
122
|
+
r"""Sets the resource_detail of this ListSharesByTagResource.
|
123
|
+
|
124
|
+
资源详情
|
125
|
+
|
126
|
+
:param resource_detail: The resource_detail of this ListSharesByTagResource.
|
127
|
+
:type resource_detail: str
|
128
|
+
"""
|
129
|
+
self._resource_detail = resource_detail
|
130
|
+
|
131
|
+
@property
|
132
|
+
def tags(self):
|
133
|
+
r"""Gets the tags of this ListSharesByTagResource.
|
134
|
+
|
135
|
+
资源的标签列表
|
136
|
+
|
137
|
+
:return: The tags of this ListSharesByTagResource.
|
138
|
+
:rtype: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
|
139
|
+
"""
|
140
|
+
return self._tags
|
141
|
+
|
142
|
+
@tags.setter
|
143
|
+
def tags(self, tags):
|
144
|
+
r"""Sets the tags of this ListSharesByTagResource.
|
145
|
+
|
146
|
+
资源的标签列表
|
147
|
+
|
148
|
+
:param tags: The tags of this ListSharesByTagResource.
|
149
|
+
:type tags: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
|
150
|
+
"""
|
151
|
+
self._tags = tags
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, ListSharesByTagResource):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
return not self == other
|
@@ -0,0 +1,170 @@
|
|
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 ListSharesByTagResponse(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
|
+
'resources': 'list[ListSharesByTagResource]',
|
22
|
+
'total_count': 'int',
|
23
|
+
'x_request_id': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'resources': 'resources',
|
28
|
+
'total_count': 'total_count',
|
29
|
+
'x_request_id': 'X-request-id'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, resources=None, total_count=None, x_request_id=None):
|
33
|
+
r"""ListSharesByTagResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param resources: 通过标签查询文件系统的资源列表
|
38
|
+
:type resources: list[:class:`huaweicloudsdksfsturbo.v1.ListSharesByTagResource`]
|
39
|
+
:param total_count: 返回的文件系统的总量
|
40
|
+
:type total_count: int
|
41
|
+
:param x_request_id:
|
42
|
+
:type x_request_id: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(ListSharesByTagResponse, self).__init__()
|
46
|
+
|
47
|
+
self._resources = None
|
48
|
+
self._total_count = None
|
49
|
+
self._x_request_id = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if resources is not None:
|
53
|
+
self.resources = resources
|
54
|
+
if total_count is not None:
|
55
|
+
self.total_count = total_count
|
56
|
+
if x_request_id is not None:
|
57
|
+
self.x_request_id = x_request_id
|
58
|
+
|
59
|
+
@property
|
60
|
+
def resources(self):
|
61
|
+
r"""Gets the resources of this ListSharesByTagResponse.
|
62
|
+
|
63
|
+
通过标签查询文件系统的资源列表
|
64
|
+
|
65
|
+
:return: The resources of this ListSharesByTagResponse.
|
66
|
+
:rtype: list[:class:`huaweicloudsdksfsturbo.v1.ListSharesByTagResource`]
|
67
|
+
"""
|
68
|
+
return self._resources
|
69
|
+
|
70
|
+
@resources.setter
|
71
|
+
def resources(self, resources):
|
72
|
+
r"""Sets the resources of this ListSharesByTagResponse.
|
73
|
+
|
74
|
+
通过标签查询文件系统的资源列表
|
75
|
+
|
76
|
+
:param resources: The resources of this ListSharesByTagResponse.
|
77
|
+
:type resources: list[:class:`huaweicloudsdksfsturbo.v1.ListSharesByTagResource`]
|
78
|
+
"""
|
79
|
+
self._resources = resources
|
80
|
+
|
81
|
+
@property
|
82
|
+
def total_count(self):
|
83
|
+
r"""Gets the total_count of this ListSharesByTagResponse.
|
84
|
+
|
85
|
+
返回的文件系统的总量
|
86
|
+
|
87
|
+
:return: The total_count of this ListSharesByTagResponse.
|
88
|
+
:rtype: int
|
89
|
+
"""
|
90
|
+
return self._total_count
|
91
|
+
|
92
|
+
@total_count.setter
|
93
|
+
def total_count(self, total_count):
|
94
|
+
r"""Sets the total_count of this ListSharesByTagResponse.
|
95
|
+
|
96
|
+
返回的文件系统的总量
|
97
|
+
|
98
|
+
:param total_count: The total_count of this ListSharesByTagResponse.
|
99
|
+
:type total_count: int
|
100
|
+
"""
|
101
|
+
self._total_count = total_count
|
102
|
+
|
103
|
+
@property
|
104
|
+
def x_request_id(self):
|
105
|
+
r"""Gets the x_request_id of this ListSharesByTagResponse.
|
106
|
+
|
107
|
+
:return: The x_request_id of this ListSharesByTagResponse.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._x_request_id
|
111
|
+
|
112
|
+
@x_request_id.setter
|
113
|
+
def x_request_id(self, x_request_id):
|
114
|
+
r"""Sets the x_request_id of this ListSharesByTagResponse.
|
115
|
+
|
116
|
+
:param x_request_id: The x_request_id of this ListSharesByTagResponse.
|
117
|
+
:type x_request_id: str
|
118
|
+
"""
|
119
|
+
self._x_request_id = x_request_id
|
120
|
+
|
121
|
+
def to_dict(self):
|
122
|
+
"""Returns the model properties as a dict"""
|
123
|
+
result = {}
|
124
|
+
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
126
|
+
value = getattr(self, attr)
|
127
|
+
if isinstance(value, list):
|
128
|
+
result[attr] = list(map(
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
130
|
+
value
|
131
|
+
))
|
132
|
+
elif hasattr(value, "to_dict"):
|
133
|
+
result[attr] = value.to_dict()
|
134
|
+
elif isinstance(value, dict):
|
135
|
+
result[attr] = dict(map(
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
138
|
+
value.items()
|
139
|
+
))
|
140
|
+
else:
|
141
|
+
if attr in self.sensitive_list:
|
142
|
+
result[attr] = "****"
|
143
|
+
else:
|
144
|
+
result[attr] = value
|
145
|
+
|
146
|
+
return result
|
147
|
+
|
148
|
+
def to_str(self):
|
149
|
+
"""Returns the string representation of the model"""
|
150
|
+
import simplejson as json
|
151
|
+
if six.PY2:
|
152
|
+
import sys
|
153
|
+
reload(sys)
|
154
|
+
sys.setdefaultencoding("utf-8")
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
156
|
+
|
157
|
+
def __repr__(self):
|
158
|
+
"""For `print`"""
|
159
|
+
return self.to_str()
|
160
|
+
|
161
|
+
def __eq__(self, other):
|
162
|
+
"""Returns true if both objects are equal"""
|
163
|
+
if not isinstance(other, ListSharesByTagResponse):
|
164
|
+
return False
|
165
|
+
|
166
|
+
return self.__dict__ == other.__dict__
|
167
|
+
|
168
|
+
def __ne__(self, other):
|
169
|
+
"""Returns true if both objects are not equal"""
|
170
|
+
return not self == other
|