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,232 @@
|
|
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 CreateFsDirQuotaResponse(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
|
+
'path': 'str',
|
22
|
+
'capacity': 'int',
|
23
|
+
'inode': 'int',
|
24
|
+
'used_capacity': 'int',
|
25
|
+
'used_inode': 'int'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'path': 'path',
|
30
|
+
'capacity': 'capacity',
|
31
|
+
'inode': 'inode',
|
32
|
+
'used_capacity': 'used_capacity',
|
33
|
+
'used_inode': 'used_inode'
|
34
|
+
}
|
35
|
+
|
36
|
+
def __init__(self, path=None, capacity=None, inode=None, used_capacity=None, used_inode=None):
|
37
|
+
r"""CreateFsDirQuotaResponse
|
38
|
+
|
39
|
+
The model defined in huaweicloud sdk
|
40
|
+
|
41
|
+
:param path: 合法的已存在的目录的全路径
|
42
|
+
:type path: str
|
43
|
+
:param capacity: 目录的容量大小,单位:MB
|
44
|
+
:type capacity: int
|
45
|
+
:param inode: 目录的inode数量限制
|
46
|
+
:type inode: int
|
47
|
+
:param used_capacity: 目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段
|
48
|
+
:type used_capacity: int
|
49
|
+
:param used_inode: 目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段
|
50
|
+
:type used_inode: int
|
51
|
+
"""
|
52
|
+
|
53
|
+
super(CreateFsDirQuotaResponse, self).__init__()
|
54
|
+
|
55
|
+
self._path = None
|
56
|
+
self._capacity = None
|
57
|
+
self._inode = None
|
58
|
+
self._used_capacity = None
|
59
|
+
self._used_inode = None
|
60
|
+
self.discriminator = None
|
61
|
+
|
62
|
+
if path is not None:
|
63
|
+
self.path = path
|
64
|
+
if capacity is not None:
|
65
|
+
self.capacity = capacity
|
66
|
+
if inode is not None:
|
67
|
+
self.inode = inode
|
68
|
+
if used_capacity is not None:
|
69
|
+
self.used_capacity = used_capacity
|
70
|
+
if used_inode is not None:
|
71
|
+
self.used_inode = used_inode
|
72
|
+
|
73
|
+
@property
|
74
|
+
def path(self):
|
75
|
+
r"""Gets the path of this CreateFsDirQuotaResponse.
|
76
|
+
|
77
|
+
合法的已存在的目录的全路径
|
78
|
+
|
79
|
+
:return: The path of this CreateFsDirQuotaResponse.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._path
|
83
|
+
|
84
|
+
@path.setter
|
85
|
+
def path(self, path):
|
86
|
+
r"""Sets the path of this CreateFsDirQuotaResponse.
|
87
|
+
|
88
|
+
合法的已存在的目录的全路径
|
89
|
+
|
90
|
+
:param path: The path of this CreateFsDirQuotaResponse.
|
91
|
+
:type path: str
|
92
|
+
"""
|
93
|
+
self._path = path
|
94
|
+
|
95
|
+
@property
|
96
|
+
def capacity(self):
|
97
|
+
r"""Gets the capacity of this CreateFsDirQuotaResponse.
|
98
|
+
|
99
|
+
目录的容量大小,单位:MB
|
100
|
+
|
101
|
+
:return: The capacity of this CreateFsDirQuotaResponse.
|
102
|
+
:rtype: int
|
103
|
+
"""
|
104
|
+
return self._capacity
|
105
|
+
|
106
|
+
@capacity.setter
|
107
|
+
def capacity(self, capacity):
|
108
|
+
r"""Sets the capacity of this CreateFsDirQuotaResponse.
|
109
|
+
|
110
|
+
目录的容量大小,单位:MB
|
111
|
+
|
112
|
+
:param capacity: The capacity of this CreateFsDirQuotaResponse.
|
113
|
+
:type capacity: int
|
114
|
+
"""
|
115
|
+
self._capacity = capacity
|
116
|
+
|
117
|
+
@property
|
118
|
+
def inode(self):
|
119
|
+
r"""Gets the inode of this CreateFsDirQuotaResponse.
|
120
|
+
|
121
|
+
目录的inode数量限制
|
122
|
+
|
123
|
+
:return: The inode of this CreateFsDirQuotaResponse.
|
124
|
+
:rtype: int
|
125
|
+
"""
|
126
|
+
return self._inode
|
127
|
+
|
128
|
+
@inode.setter
|
129
|
+
def inode(self, inode):
|
130
|
+
r"""Sets the inode of this CreateFsDirQuotaResponse.
|
131
|
+
|
132
|
+
目录的inode数量限制
|
133
|
+
|
134
|
+
:param inode: The inode of this CreateFsDirQuotaResponse.
|
135
|
+
:type inode: int
|
136
|
+
"""
|
137
|
+
self._inode = inode
|
138
|
+
|
139
|
+
@property
|
140
|
+
def used_capacity(self):
|
141
|
+
r"""Gets the used_capacity of this CreateFsDirQuotaResponse.
|
142
|
+
|
143
|
+
目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段
|
144
|
+
|
145
|
+
:return: The used_capacity of this CreateFsDirQuotaResponse.
|
146
|
+
:rtype: int
|
147
|
+
"""
|
148
|
+
return self._used_capacity
|
149
|
+
|
150
|
+
@used_capacity.setter
|
151
|
+
def used_capacity(self, used_capacity):
|
152
|
+
r"""Sets the used_capacity of this CreateFsDirQuotaResponse.
|
153
|
+
|
154
|
+
目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段
|
155
|
+
|
156
|
+
:param used_capacity: The used_capacity of this CreateFsDirQuotaResponse.
|
157
|
+
:type used_capacity: int
|
158
|
+
"""
|
159
|
+
self._used_capacity = used_capacity
|
160
|
+
|
161
|
+
@property
|
162
|
+
def used_inode(self):
|
163
|
+
r"""Gets the used_inode of this CreateFsDirQuotaResponse.
|
164
|
+
|
165
|
+
目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段
|
166
|
+
|
167
|
+
:return: The used_inode of this CreateFsDirQuotaResponse.
|
168
|
+
:rtype: int
|
169
|
+
"""
|
170
|
+
return self._used_inode
|
171
|
+
|
172
|
+
@used_inode.setter
|
173
|
+
def used_inode(self, used_inode):
|
174
|
+
r"""Sets the used_inode of this CreateFsDirQuotaResponse.
|
175
|
+
|
176
|
+
目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段
|
177
|
+
|
178
|
+
:param used_inode: The used_inode of this CreateFsDirQuotaResponse.
|
179
|
+
:type used_inode: int
|
180
|
+
"""
|
181
|
+
self._used_inode = used_inode
|
182
|
+
|
183
|
+
def to_dict(self):
|
184
|
+
"""Returns the model properties as a dict"""
|
185
|
+
result = {}
|
186
|
+
|
187
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
188
|
+
value = getattr(self, attr)
|
189
|
+
if isinstance(value, list):
|
190
|
+
result[attr] = list(map(
|
191
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
192
|
+
value
|
193
|
+
))
|
194
|
+
elif hasattr(value, "to_dict"):
|
195
|
+
result[attr] = value.to_dict()
|
196
|
+
elif isinstance(value, dict):
|
197
|
+
result[attr] = dict(map(
|
198
|
+
lambda item: (item[0], item[1].to_dict())
|
199
|
+
if hasattr(item[1], "to_dict") else item,
|
200
|
+
value.items()
|
201
|
+
))
|
202
|
+
else:
|
203
|
+
if attr in self.sensitive_list:
|
204
|
+
result[attr] = "****"
|
205
|
+
else:
|
206
|
+
result[attr] = value
|
207
|
+
|
208
|
+
return result
|
209
|
+
|
210
|
+
def to_str(self):
|
211
|
+
"""Returns the string representation of the model"""
|
212
|
+
import simplejson as json
|
213
|
+
if six.PY2:
|
214
|
+
import sys
|
215
|
+
reload(sys)
|
216
|
+
sys.setdefaultencoding("utf-8")
|
217
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
218
|
+
|
219
|
+
def __repr__(self):
|
220
|
+
"""For `print`"""
|
221
|
+
return self.to_str()
|
222
|
+
|
223
|
+
def __eq__(self, other):
|
224
|
+
"""Returns true if both objects are equal"""
|
225
|
+
if not isinstance(other, CreateFsDirQuotaResponse):
|
226
|
+
return False
|
227
|
+
|
228
|
+
return self.__dict__ == other.__dict__
|
229
|
+
|
230
|
+
def __ne__(self, other):
|
231
|
+
"""Returns true if both objects are not equal"""
|
232
|
+
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 CreateFsDirRequest:
|
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': 'CreateFsDirRequestBody'
|
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"""CreateFsDirRequest
|
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 CreateFsDirRequest
|
37
|
+
:type body: :class:`huaweicloudsdksfsturbo.v1.CreateFsDirRequestBody`
|
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 CreateFsDirRequest.
|
53
|
+
|
54
|
+
文件系统ID
|
55
|
+
|
56
|
+
:return: The share_id of this CreateFsDirRequest.
|
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 CreateFsDirRequest.
|
64
|
+
|
65
|
+
文件系统ID
|
66
|
+
|
67
|
+
:param share_id: The share_id of this CreateFsDirRequest.
|
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 CreateFsDirRequest.
|
75
|
+
|
76
|
+
:return: The body of this CreateFsDirRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.CreateFsDirRequestBody`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
r"""Sets the body of this CreateFsDirRequest.
|
84
|
+
|
85
|
+
:param body: The body of this CreateFsDirRequest.
|
86
|
+
:type body: :class:`huaweicloudsdksfsturbo.v1.CreateFsDirRequestBody`
|
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, CreateFsDirRequest):
|
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,201 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateFsDirRequestBody:
|
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
|
+
'path': 'str',
|
21
|
+
'mode': 'int',
|
22
|
+
'uid': 'int',
|
23
|
+
'gid': 'int'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'path': 'path',
|
28
|
+
'mode': 'mode',
|
29
|
+
'uid': 'uid',
|
30
|
+
'gid': 'gid'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, path=None, mode=None, uid=None, gid=None):
|
34
|
+
r"""CreateFsDirRequestBody
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param path: 合法的的目录全路径
|
39
|
+
:type path: str
|
40
|
+
:param mode: 目录权限,默认值是755,取值范围是0到777。第一位表示目录所有者的权限,取值范围是0到7;第二位表示目录所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:755中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位5代表其他用户对该目录具有读、执行权限。
|
41
|
+
:type mode: int
|
42
|
+
:param uid: 目录所有者的用户id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。
|
43
|
+
:type uid: int
|
44
|
+
:param gid: 目录所属用户组id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。
|
45
|
+
:type gid: int
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._path = None
|
51
|
+
self._mode = None
|
52
|
+
self._uid = None
|
53
|
+
self._gid = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.path = path
|
57
|
+
if mode is not None:
|
58
|
+
self.mode = mode
|
59
|
+
if uid is not None:
|
60
|
+
self.uid = uid
|
61
|
+
if gid is not None:
|
62
|
+
self.gid = gid
|
63
|
+
|
64
|
+
@property
|
65
|
+
def path(self):
|
66
|
+
r"""Gets the path of this CreateFsDirRequestBody.
|
67
|
+
|
68
|
+
合法的的目录全路径
|
69
|
+
|
70
|
+
:return: The path of this CreateFsDirRequestBody.
|
71
|
+
:rtype: str
|
72
|
+
"""
|
73
|
+
return self._path
|
74
|
+
|
75
|
+
@path.setter
|
76
|
+
def path(self, path):
|
77
|
+
r"""Sets the path of this CreateFsDirRequestBody.
|
78
|
+
|
79
|
+
合法的的目录全路径
|
80
|
+
|
81
|
+
:param path: The path of this CreateFsDirRequestBody.
|
82
|
+
:type path: str
|
83
|
+
"""
|
84
|
+
self._path = path
|
85
|
+
|
86
|
+
@property
|
87
|
+
def mode(self):
|
88
|
+
r"""Gets the mode of this CreateFsDirRequestBody.
|
89
|
+
|
90
|
+
目录权限,默认值是755,取值范围是0到777。第一位表示目录所有者的权限,取值范围是0到7;第二位表示目录所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:755中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位5代表其他用户对该目录具有读、执行权限。
|
91
|
+
|
92
|
+
:return: The mode of this CreateFsDirRequestBody.
|
93
|
+
:rtype: int
|
94
|
+
"""
|
95
|
+
return self._mode
|
96
|
+
|
97
|
+
@mode.setter
|
98
|
+
def mode(self, mode):
|
99
|
+
r"""Sets the mode of this CreateFsDirRequestBody.
|
100
|
+
|
101
|
+
目录权限,默认值是755,取值范围是0到777。第一位表示目录所有者的权限,取值范围是0到7;第二位表示目录所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:755中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位5代表其他用户对该目录具有读、执行权限。
|
102
|
+
|
103
|
+
:param mode: The mode of this CreateFsDirRequestBody.
|
104
|
+
:type mode: int
|
105
|
+
"""
|
106
|
+
self._mode = mode
|
107
|
+
|
108
|
+
@property
|
109
|
+
def uid(self):
|
110
|
+
r"""Gets the uid of this CreateFsDirRequestBody.
|
111
|
+
|
112
|
+
目录所有者的用户id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。
|
113
|
+
|
114
|
+
:return: The uid of this CreateFsDirRequestBody.
|
115
|
+
:rtype: int
|
116
|
+
"""
|
117
|
+
return self._uid
|
118
|
+
|
119
|
+
@uid.setter
|
120
|
+
def uid(self, uid):
|
121
|
+
r"""Sets the uid of this CreateFsDirRequestBody.
|
122
|
+
|
123
|
+
目录所有者的用户id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。
|
124
|
+
|
125
|
+
:param uid: The uid of this CreateFsDirRequestBody.
|
126
|
+
:type uid: int
|
127
|
+
"""
|
128
|
+
self._uid = uid
|
129
|
+
|
130
|
+
@property
|
131
|
+
def gid(self):
|
132
|
+
r"""Gets the gid of this CreateFsDirRequestBody.
|
133
|
+
|
134
|
+
目录所属用户组id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。
|
135
|
+
|
136
|
+
:return: The gid of this CreateFsDirRequestBody.
|
137
|
+
:rtype: int
|
138
|
+
"""
|
139
|
+
return self._gid
|
140
|
+
|
141
|
+
@gid.setter
|
142
|
+
def gid(self, gid):
|
143
|
+
r"""Sets the gid of this CreateFsDirRequestBody.
|
144
|
+
|
145
|
+
目录所属用户组id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。
|
146
|
+
|
147
|
+
:param gid: The gid of this CreateFsDirRequestBody.
|
148
|
+
:type gid: int
|
149
|
+
"""
|
150
|
+
self._gid = gid
|
151
|
+
|
152
|
+
def to_dict(self):
|
153
|
+
"""Returns the model properties as a dict"""
|
154
|
+
result = {}
|
155
|
+
|
156
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
157
|
+
value = getattr(self, attr)
|
158
|
+
if isinstance(value, list):
|
159
|
+
result[attr] = list(map(
|
160
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
161
|
+
value
|
162
|
+
))
|
163
|
+
elif hasattr(value, "to_dict"):
|
164
|
+
result[attr] = value.to_dict()
|
165
|
+
elif isinstance(value, dict):
|
166
|
+
result[attr] = dict(map(
|
167
|
+
lambda item: (item[0], item[1].to_dict())
|
168
|
+
if hasattr(item[1], "to_dict") else item,
|
169
|
+
value.items()
|
170
|
+
))
|
171
|
+
else:
|
172
|
+
if attr in self.sensitive_list:
|
173
|
+
result[attr] = "****"
|
174
|
+
else:
|
175
|
+
result[attr] = value
|
176
|
+
|
177
|
+
return result
|
178
|
+
|
179
|
+
def to_str(self):
|
180
|
+
"""Returns the string representation of the model"""
|
181
|
+
import simplejson as json
|
182
|
+
if six.PY2:
|
183
|
+
import sys
|
184
|
+
reload(sys)
|
185
|
+
sys.setdefaultencoding("utf-8")
|
186
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
187
|
+
|
188
|
+
def __repr__(self):
|
189
|
+
"""For `print`"""
|
190
|
+
return self.to_str()
|
191
|
+
|
192
|
+
def __eq__(self, other):
|
193
|
+
"""Returns true if both objects are equal"""
|
194
|
+
if not isinstance(other, CreateFsDirRequestBody):
|
195
|
+
return False
|
196
|
+
|
197
|
+
return self.__dict__ == other.__dict__
|
198
|
+
|
199
|
+
def __ne__(self, other):
|
200
|
+
"""Returns true if both objects are not equal"""
|
201
|
+
return not self == other
|
@@ -0,0 +1,85 @@
|
|
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 CreateFsDirResponse(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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
}
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""CreateFsDirResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(CreateFsDirResponse, self).__init__()
|
34
|
+
self.discriminator = None
|
35
|
+
|
36
|
+
def to_dict(self):
|
37
|
+
"""Returns the model properties as a dict"""
|
38
|
+
result = {}
|
39
|
+
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
41
|
+
value = getattr(self, attr)
|
42
|
+
if isinstance(value, list):
|
43
|
+
result[attr] = list(map(
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
45
|
+
value
|
46
|
+
))
|
47
|
+
elif hasattr(value, "to_dict"):
|
48
|
+
result[attr] = value.to_dict()
|
49
|
+
elif isinstance(value, dict):
|
50
|
+
result[attr] = dict(map(
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
53
|
+
value.items()
|
54
|
+
))
|
55
|
+
else:
|
56
|
+
if attr in self.sensitive_list:
|
57
|
+
result[attr] = "****"
|
58
|
+
else:
|
59
|
+
result[attr] = value
|
60
|
+
|
61
|
+
return result
|
62
|
+
|
63
|
+
def to_str(self):
|
64
|
+
"""Returns the string representation of the model"""
|
65
|
+
import simplejson as json
|
66
|
+
if six.PY2:
|
67
|
+
import sys
|
68
|
+
reload(sys)
|
69
|
+
sys.setdefaultencoding("utf-8")
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
"""For `print`"""
|
74
|
+
return self.to_str()
|
75
|
+
|
76
|
+
def __eq__(self, other):
|
77
|
+
"""Returns true if both objects are equal"""
|
78
|
+
if not isinstance(other, CreateFsDirResponse):
|
79
|
+
return False
|
80
|
+
|
81
|
+
return self.__dict__ == other.__dict__
|
82
|
+
|
83
|
+
def __ne__(self, other):
|
84
|
+
"""Returns true if both objects are not equal"""
|
85
|
+
return not self == other
|