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