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