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,344 @@
|
|
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 ShowLdapConfigResponse(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
|
+
'url': 'str',
|
22
|
+
'base_dn': 'str',
|
23
|
+
'user_dn': 'str',
|
24
|
+
'filter_condition': 'str',
|
25
|
+
'vpc_id': 'str',
|
26
|
+
'backup_url': 'str',
|
27
|
+
'schema': 'str',
|
28
|
+
'search_timeout': 'int',
|
29
|
+
'x_request_id': 'str'
|
30
|
+
}
|
31
|
+
|
32
|
+
attribute_map = {
|
33
|
+
'url': 'url',
|
34
|
+
'base_dn': 'base_dn',
|
35
|
+
'user_dn': 'user_dn',
|
36
|
+
'filter_condition': 'filter_condition',
|
37
|
+
'vpc_id': 'vpc_id',
|
38
|
+
'backup_url': 'backup_url',
|
39
|
+
'schema': 'schema',
|
40
|
+
'search_timeout': 'search_timeout',
|
41
|
+
'x_request_id': 'X-request-id'
|
42
|
+
}
|
43
|
+
|
44
|
+
def __init__(self, url=None, base_dn=None, user_dn=None, filter_condition=None, vpc_id=None, backup_url=None, schema=None, search_timeout=None, x_request_id=None):
|
45
|
+
r"""ShowLdapConfigResponse
|
46
|
+
|
47
|
+
The model defined in huaweicloud sdk
|
48
|
+
|
49
|
+
:param url: LDAP服务器的url
|
50
|
+
:type url: str
|
51
|
+
:param base_dn: 数据库中的域
|
52
|
+
:type base_dn: str
|
53
|
+
:param user_dn: 用户区别名
|
54
|
+
:type user_dn: str
|
55
|
+
:param filter_condition: 过滤条件。保留字段,暂不支持
|
56
|
+
:type filter_condition: str
|
57
|
+
:param vpc_id: 保留字段,暂不支持
|
58
|
+
:type vpc_id: str
|
59
|
+
:param backup_url: LDAP备节点的url
|
60
|
+
:type backup_url: str
|
61
|
+
:param schema: LDAP的schema,不填写则默认为RFC2307
|
62
|
+
:type schema: str
|
63
|
+
:param search_timeout: LDAP搜索的超时时间,单位为秒。不填写则默认为3秒
|
64
|
+
:type search_timeout: int
|
65
|
+
:param x_request_id:
|
66
|
+
:type x_request_id: str
|
67
|
+
"""
|
68
|
+
|
69
|
+
super(ShowLdapConfigResponse, self).__init__()
|
70
|
+
|
71
|
+
self._url = None
|
72
|
+
self._base_dn = None
|
73
|
+
self._user_dn = None
|
74
|
+
self._filter_condition = None
|
75
|
+
self._vpc_id = None
|
76
|
+
self._backup_url = None
|
77
|
+
self._schema = None
|
78
|
+
self._search_timeout = None
|
79
|
+
self._x_request_id = None
|
80
|
+
self.discriminator = None
|
81
|
+
|
82
|
+
if url is not None:
|
83
|
+
self.url = url
|
84
|
+
if base_dn is not None:
|
85
|
+
self.base_dn = base_dn
|
86
|
+
if user_dn is not None:
|
87
|
+
self.user_dn = user_dn
|
88
|
+
if filter_condition is not None:
|
89
|
+
self.filter_condition = filter_condition
|
90
|
+
if vpc_id is not None:
|
91
|
+
self.vpc_id = vpc_id
|
92
|
+
if backup_url is not None:
|
93
|
+
self.backup_url = backup_url
|
94
|
+
if schema is not None:
|
95
|
+
self.schema = schema
|
96
|
+
if search_timeout is not None:
|
97
|
+
self.search_timeout = search_timeout
|
98
|
+
if x_request_id is not None:
|
99
|
+
self.x_request_id = x_request_id
|
100
|
+
|
101
|
+
@property
|
102
|
+
def url(self):
|
103
|
+
r"""Gets the url of this ShowLdapConfigResponse.
|
104
|
+
|
105
|
+
LDAP服务器的url
|
106
|
+
|
107
|
+
:return: The url of this ShowLdapConfigResponse.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._url
|
111
|
+
|
112
|
+
@url.setter
|
113
|
+
def url(self, url):
|
114
|
+
r"""Sets the url of this ShowLdapConfigResponse.
|
115
|
+
|
116
|
+
LDAP服务器的url
|
117
|
+
|
118
|
+
:param url: The url of this ShowLdapConfigResponse.
|
119
|
+
:type url: str
|
120
|
+
"""
|
121
|
+
self._url = url
|
122
|
+
|
123
|
+
@property
|
124
|
+
def base_dn(self):
|
125
|
+
r"""Gets the base_dn of this ShowLdapConfigResponse.
|
126
|
+
|
127
|
+
数据库中的域
|
128
|
+
|
129
|
+
:return: The base_dn of this ShowLdapConfigResponse.
|
130
|
+
:rtype: str
|
131
|
+
"""
|
132
|
+
return self._base_dn
|
133
|
+
|
134
|
+
@base_dn.setter
|
135
|
+
def base_dn(self, base_dn):
|
136
|
+
r"""Sets the base_dn of this ShowLdapConfigResponse.
|
137
|
+
|
138
|
+
数据库中的域
|
139
|
+
|
140
|
+
:param base_dn: The base_dn of this ShowLdapConfigResponse.
|
141
|
+
:type base_dn: str
|
142
|
+
"""
|
143
|
+
self._base_dn = base_dn
|
144
|
+
|
145
|
+
@property
|
146
|
+
def user_dn(self):
|
147
|
+
r"""Gets the user_dn of this ShowLdapConfigResponse.
|
148
|
+
|
149
|
+
用户区别名
|
150
|
+
|
151
|
+
:return: The user_dn of this ShowLdapConfigResponse.
|
152
|
+
:rtype: str
|
153
|
+
"""
|
154
|
+
return self._user_dn
|
155
|
+
|
156
|
+
@user_dn.setter
|
157
|
+
def user_dn(self, user_dn):
|
158
|
+
r"""Sets the user_dn of this ShowLdapConfigResponse.
|
159
|
+
|
160
|
+
用户区别名
|
161
|
+
|
162
|
+
:param user_dn: The user_dn of this ShowLdapConfigResponse.
|
163
|
+
:type user_dn: str
|
164
|
+
"""
|
165
|
+
self._user_dn = user_dn
|
166
|
+
|
167
|
+
@property
|
168
|
+
def filter_condition(self):
|
169
|
+
r"""Gets the filter_condition of this ShowLdapConfigResponse.
|
170
|
+
|
171
|
+
过滤条件。保留字段,暂不支持
|
172
|
+
|
173
|
+
:return: The filter_condition of this ShowLdapConfigResponse.
|
174
|
+
:rtype: str
|
175
|
+
"""
|
176
|
+
return self._filter_condition
|
177
|
+
|
178
|
+
@filter_condition.setter
|
179
|
+
def filter_condition(self, filter_condition):
|
180
|
+
r"""Sets the filter_condition of this ShowLdapConfigResponse.
|
181
|
+
|
182
|
+
过滤条件。保留字段,暂不支持
|
183
|
+
|
184
|
+
:param filter_condition: The filter_condition of this ShowLdapConfigResponse.
|
185
|
+
:type filter_condition: str
|
186
|
+
"""
|
187
|
+
self._filter_condition = filter_condition
|
188
|
+
|
189
|
+
@property
|
190
|
+
def vpc_id(self):
|
191
|
+
r"""Gets the vpc_id of this ShowLdapConfigResponse.
|
192
|
+
|
193
|
+
保留字段,暂不支持
|
194
|
+
|
195
|
+
:return: The vpc_id of this ShowLdapConfigResponse.
|
196
|
+
:rtype: str
|
197
|
+
"""
|
198
|
+
return self._vpc_id
|
199
|
+
|
200
|
+
@vpc_id.setter
|
201
|
+
def vpc_id(self, vpc_id):
|
202
|
+
r"""Sets the vpc_id of this ShowLdapConfigResponse.
|
203
|
+
|
204
|
+
保留字段,暂不支持
|
205
|
+
|
206
|
+
:param vpc_id: The vpc_id of this ShowLdapConfigResponse.
|
207
|
+
:type vpc_id: str
|
208
|
+
"""
|
209
|
+
self._vpc_id = vpc_id
|
210
|
+
|
211
|
+
@property
|
212
|
+
def backup_url(self):
|
213
|
+
r"""Gets the backup_url of this ShowLdapConfigResponse.
|
214
|
+
|
215
|
+
LDAP备节点的url
|
216
|
+
|
217
|
+
:return: The backup_url of this ShowLdapConfigResponse.
|
218
|
+
:rtype: str
|
219
|
+
"""
|
220
|
+
return self._backup_url
|
221
|
+
|
222
|
+
@backup_url.setter
|
223
|
+
def backup_url(self, backup_url):
|
224
|
+
r"""Sets the backup_url of this ShowLdapConfigResponse.
|
225
|
+
|
226
|
+
LDAP备节点的url
|
227
|
+
|
228
|
+
:param backup_url: The backup_url of this ShowLdapConfigResponse.
|
229
|
+
:type backup_url: str
|
230
|
+
"""
|
231
|
+
self._backup_url = backup_url
|
232
|
+
|
233
|
+
@property
|
234
|
+
def schema(self):
|
235
|
+
r"""Gets the schema of this ShowLdapConfigResponse.
|
236
|
+
|
237
|
+
LDAP的schema,不填写则默认为RFC2307
|
238
|
+
|
239
|
+
:return: The schema of this ShowLdapConfigResponse.
|
240
|
+
:rtype: str
|
241
|
+
"""
|
242
|
+
return self._schema
|
243
|
+
|
244
|
+
@schema.setter
|
245
|
+
def schema(self, schema):
|
246
|
+
r"""Sets the schema of this ShowLdapConfigResponse.
|
247
|
+
|
248
|
+
LDAP的schema,不填写则默认为RFC2307
|
249
|
+
|
250
|
+
:param schema: The schema of this ShowLdapConfigResponse.
|
251
|
+
:type schema: str
|
252
|
+
"""
|
253
|
+
self._schema = schema
|
254
|
+
|
255
|
+
@property
|
256
|
+
def search_timeout(self):
|
257
|
+
r"""Gets the search_timeout of this ShowLdapConfigResponse.
|
258
|
+
|
259
|
+
LDAP搜索的超时时间,单位为秒。不填写则默认为3秒
|
260
|
+
|
261
|
+
:return: The search_timeout of this ShowLdapConfigResponse.
|
262
|
+
:rtype: int
|
263
|
+
"""
|
264
|
+
return self._search_timeout
|
265
|
+
|
266
|
+
@search_timeout.setter
|
267
|
+
def search_timeout(self, search_timeout):
|
268
|
+
r"""Sets the search_timeout of this ShowLdapConfigResponse.
|
269
|
+
|
270
|
+
LDAP搜索的超时时间,单位为秒。不填写则默认为3秒
|
271
|
+
|
272
|
+
:param search_timeout: The search_timeout of this ShowLdapConfigResponse.
|
273
|
+
:type search_timeout: int
|
274
|
+
"""
|
275
|
+
self._search_timeout = search_timeout
|
276
|
+
|
277
|
+
@property
|
278
|
+
def x_request_id(self):
|
279
|
+
r"""Gets the x_request_id of this ShowLdapConfigResponse.
|
280
|
+
|
281
|
+
:return: The x_request_id of this ShowLdapConfigResponse.
|
282
|
+
:rtype: str
|
283
|
+
"""
|
284
|
+
return self._x_request_id
|
285
|
+
|
286
|
+
@x_request_id.setter
|
287
|
+
def x_request_id(self, x_request_id):
|
288
|
+
r"""Sets the x_request_id of this ShowLdapConfigResponse.
|
289
|
+
|
290
|
+
:param x_request_id: The x_request_id of this ShowLdapConfigResponse.
|
291
|
+
:type x_request_id: str
|
292
|
+
"""
|
293
|
+
self._x_request_id = x_request_id
|
294
|
+
|
295
|
+
def to_dict(self):
|
296
|
+
"""Returns the model properties as a dict"""
|
297
|
+
result = {}
|
298
|
+
|
299
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
300
|
+
value = getattr(self, attr)
|
301
|
+
if isinstance(value, list):
|
302
|
+
result[attr] = list(map(
|
303
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
304
|
+
value
|
305
|
+
))
|
306
|
+
elif hasattr(value, "to_dict"):
|
307
|
+
result[attr] = value.to_dict()
|
308
|
+
elif isinstance(value, dict):
|
309
|
+
result[attr] = dict(map(
|
310
|
+
lambda item: (item[0], item[1].to_dict())
|
311
|
+
if hasattr(item[1], "to_dict") else item,
|
312
|
+
value.items()
|
313
|
+
))
|
314
|
+
else:
|
315
|
+
if attr in self.sensitive_list:
|
316
|
+
result[attr] = "****"
|
317
|
+
else:
|
318
|
+
result[attr] = value
|
319
|
+
|
320
|
+
return result
|
321
|
+
|
322
|
+
def to_str(self):
|
323
|
+
"""Returns the string representation of the model"""
|
324
|
+
import simplejson as json
|
325
|
+
if six.PY2:
|
326
|
+
import sys
|
327
|
+
reload(sys)
|
328
|
+
sys.setdefaultencoding("utf-8")
|
329
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
330
|
+
|
331
|
+
def __repr__(self):
|
332
|
+
"""For `print`"""
|
333
|
+
return self.to_str()
|
334
|
+
|
335
|
+
def __eq__(self, other):
|
336
|
+
"""Returns true if both objects are equal"""
|
337
|
+
if not isinstance(other, ShowLdapConfigResponse):
|
338
|
+
return False
|
339
|
+
|
340
|
+
return self.__dict__ == other.__dict__
|
341
|
+
|
342
|
+
def __ne__(self, other):
|
343
|
+
"""Returns true if both objects are not equal"""
|
344
|
+
return not self == other
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowPermRuleRequest:
|
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
|
+
'share_id': 'str',
|
21
|
+
'rule_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'share_id': 'share_id',
|
26
|
+
'rule_id': 'rule_id'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, share_id=None, rule_id=None):
|
30
|
+
r"""ShowPermRuleRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param share_id: 文件系统ID
|
35
|
+
:type share_id: str
|
36
|
+
:param rule_id: 权限规则id
|
37
|
+
:type rule_id: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._share_id = None
|
43
|
+
self._rule_id = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.share_id = share_id
|
47
|
+
self.rule_id = rule_id
|
48
|
+
|
49
|
+
@property
|
50
|
+
def share_id(self):
|
51
|
+
r"""Gets the share_id of this ShowPermRuleRequest.
|
52
|
+
|
53
|
+
文件系统ID
|
54
|
+
|
55
|
+
:return: The share_id of this ShowPermRuleRequest.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._share_id
|
59
|
+
|
60
|
+
@share_id.setter
|
61
|
+
def share_id(self, share_id):
|
62
|
+
r"""Sets the share_id of this ShowPermRuleRequest.
|
63
|
+
|
64
|
+
文件系统ID
|
65
|
+
|
66
|
+
:param share_id: The share_id of this ShowPermRuleRequest.
|
67
|
+
:type share_id: str
|
68
|
+
"""
|
69
|
+
self._share_id = share_id
|
70
|
+
|
71
|
+
@property
|
72
|
+
def rule_id(self):
|
73
|
+
r"""Gets the rule_id of this ShowPermRuleRequest.
|
74
|
+
|
75
|
+
权限规则id
|
76
|
+
|
77
|
+
:return: The rule_id of this ShowPermRuleRequest.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._rule_id
|
81
|
+
|
82
|
+
@rule_id.setter
|
83
|
+
def rule_id(self, rule_id):
|
84
|
+
r"""Sets the rule_id of this ShowPermRuleRequest.
|
85
|
+
|
86
|
+
权限规则id
|
87
|
+
|
88
|
+
:param rule_id: The rule_id of this ShowPermRuleRequest.
|
89
|
+
:type rule_id: str
|
90
|
+
"""
|
91
|
+
self._rule_id = rule_id
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, ShowPermRuleRequest):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|
@@ -0,0 +1,203 @@
|
|
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 ShowPermRuleResponse(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
|
+
'id': 'str',
|
22
|
+
'ip_cidr': 'str',
|
23
|
+
'rw_type': 'str',
|
24
|
+
'user_type': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'id': 'id',
|
29
|
+
'ip_cidr': 'ip_cidr',
|
30
|
+
'rw_type': 'rw_type',
|
31
|
+
'user_type': 'user_type'
|
32
|
+
}
|
33
|
+
|
34
|
+
def __init__(self, id=None, ip_cidr=None, rw_type=None, user_type=None):
|
35
|
+
r"""ShowPermRuleResponse
|
36
|
+
|
37
|
+
The model defined in huaweicloud sdk
|
38
|
+
|
39
|
+
:param id: 权限规格的id
|
40
|
+
:type id: str
|
41
|
+
:param ip_cidr: 授权对象的IP地址或网段
|
42
|
+
:type ip_cidr: str
|
43
|
+
:param rw_type: 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限
|
44
|
+
:type rw_type: str
|
45
|
+
:param user_type: 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。'
|
46
|
+
:type user_type: str
|
47
|
+
"""
|
48
|
+
|
49
|
+
super(ShowPermRuleResponse, self).__init__()
|
50
|
+
|
51
|
+
self._id = None
|
52
|
+
self._ip_cidr = None
|
53
|
+
self._rw_type = None
|
54
|
+
self._user_type = None
|
55
|
+
self.discriminator = None
|
56
|
+
|
57
|
+
if id is not None:
|
58
|
+
self.id = id
|
59
|
+
if ip_cidr is not None:
|
60
|
+
self.ip_cidr = ip_cidr
|
61
|
+
if rw_type is not None:
|
62
|
+
self.rw_type = rw_type
|
63
|
+
if user_type is not None:
|
64
|
+
self.user_type = user_type
|
65
|
+
|
66
|
+
@property
|
67
|
+
def id(self):
|
68
|
+
r"""Gets the id of this ShowPermRuleResponse.
|
69
|
+
|
70
|
+
权限规格的id
|
71
|
+
|
72
|
+
:return: The id of this ShowPermRuleResponse.
|
73
|
+
:rtype: str
|
74
|
+
"""
|
75
|
+
return self._id
|
76
|
+
|
77
|
+
@id.setter
|
78
|
+
def id(self, id):
|
79
|
+
r"""Sets the id of this ShowPermRuleResponse.
|
80
|
+
|
81
|
+
权限规格的id
|
82
|
+
|
83
|
+
:param id: The id of this ShowPermRuleResponse.
|
84
|
+
:type id: str
|
85
|
+
"""
|
86
|
+
self._id = id
|
87
|
+
|
88
|
+
@property
|
89
|
+
def ip_cidr(self):
|
90
|
+
r"""Gets the ip_cidr of this ShowPermRuleResponse.
|
91
|
+
|
92
|
+
授权对象的IP地址或网段
|
93
|
+
|
94
|
+
:return: The ip_cidr of this ShowPermRuleResponse.
|
95
|
+
:rtype: str
|
96
|
+
"""
|
97
|
+
return self._ip_cidr
|
98
|
+
|
99
|
+
@ip_cidr.setter
|
100
|
+
def ip_cidr(self, ip_cidr):
|
101
|
+
r"""Sets the ip_cidr of this ShowPermRuleResponse.
|
102
|
+
|
103
|
+
授权对象的IP地址或网段
|
104
|
+
|
105
|
+
:param ip_cidr: The ip_cidr of this ShowPermRuleResponse.
|
106
|
+
:type ip_cidr: str
|
107
|
+
"""
|
108
|
+
self._ip_cidr = ip_cidr
|
109
|
+
|
110
|
+
@property
|
111
|
+
def rw_type(self):
|
112
|
+
r"""Gets the rw_type of this ShowPermRuleResponse.
|
113
|
+
|
114
|
+
授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限
|
115
|
+
|
116
|
+
:return: The rw_type of this ShowPermRuleResponse.
|
117
|
+
:rtype: str
|
118
|
+
"""
|
119
|
+
return self._rw_type
|
120
|
+
|
121
|
+
@rw_type.setter
|
122
|
+
def rw_type(self, rw_type):
|
123
|
+
r"""Sets the rw_type of this ShowPermRuleResponse.
|
124
|
+
|
125
|
+
授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限
|
126
|
+
|
127
|
+
:param rw_type: The rw_type of this ShowPermRuleResponse.
|
128
|
+
:type rw_type: str
|
129
|
+
"""
|
130
|
+
self._rw_type = rw_type
|
131
|
+
|
132
|
+
@property
|
133
|
+
def user_type(self):
|
134
|
+
r"""Gets the user_type of this ShowPermRuleResponse.
|
135
|
+
|
136
|
+
授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。'
|
137
|
+
|
138
|
+
:return: The user_type of this ShowPermRuleResponse.
|
139
|
+
:rtype: str
|
140
|
+
"""
|
141
|
+
return self._user_type
|
142
|
+
|
143
|
+
@user_type.setter
|
144
|
+
def user_type(self, user_type):
|
145
|
+
r"""Sets the user_type of this ShowPermRuleResponse.
|
146
|
+
|
147
|
+
授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。'
|
148
|
+
|
149
|
+
:param user_type: The user_type of this ShowPermRuleResponse.
|
150
|
+
:type user_type: str
|
151
|
+
"""
|
152
|
+
self._user_type = user_type
|
153
|
+
|
154
|
+
def to_dict(self):
|
155
|
+
"""Returns the model properties as a dict"""
|
156
|
+
result = {}
|
157
|
+
|
158
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
159
|
+
value = getattr(self, attr)
|
160
|
+
if isinstance(value, list):
|
161
|
+
result[attr] = list(map(
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
163
|
+
value
|
164
|
+
))
|
165
|
+
elif hasattr(value, "to_dict"):
|
166
|
+
result[attr] = value.to_dict()
|
167
|
+
elif isinstance(value, dict):
|
168
|
+
result[attr] = dict(map(
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
171
|
+
value.items()
|
172
|
+
))
|
173
|
+
else:
|
174
|
+
if attr in self.sensitive_list:
|
175
|
+
result[attr] = "****"
|
176
|
+
else:
|
177
|
+
result[attr] = value
|
178
|
+
|
179
|
+
return result
|
180
|
+
|
181
|
+
def to_str(self):
|
182
|
+
"""Returns the string representation of the model"""
|
183
|
+
import simplejson as json
|
184
|
+
if six.PY2:
|
185
|
+
import sys
|
186
|
+
reload(sys)
|
187
|
+
sys.setdefaultencoding("utf-8")
|
188
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
189
|
+
|
190
|
+
def __repr__(self):
|
191
|
+
"""For `print`"""
|
192
|
+
return self.to_str()
|
193
|
+
|
194
|
+
def __eq__(self, other):
|
195
|
+
"""Returns true if both objects are equal"""
|
196
|
+
if not isinstance(other, ShowPermRuleResponse):
|
197
|
+
return False
|
198
|
+
|
199
|
+
return self.__dict__ == other.__dict__
|
200
|
+
|
201
|
+
def __ne__(self, other):
|
202
|
+
"""Returns true if both objects are not equal"""
|
203
|
+
return not self == other
|