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,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShareTypeUsageCapacity:
|
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
|
+
'total': 'int',
|
21
|
+
'usage': 'int'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'total': 'total',
|
26
|
+
'usage': 'usage'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, total=None, usage=None):
|
30
|
+
r"""ShareTypeUsageCapacity
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param total: 总容量
|
35
|
+
:type total: int
|
36
|
+
:param usage: 已用容量
|
37
|
+
:type usage: int
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._total = None
|
43
|
+
self._usage = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if total is not None:
|
47
|
+
self.total = total
|
48
|
+
if usage is not None:
|
49
|
+
self.usage = usage
|
50
|
+
|
51
|
+
@property
|
52
|
+
def total(self):
|
53
|
+
r"""Gets the total of this ShareTypeUsageCapacity.
|
54
|
+
|
55
|
+
总容量
|
56
|
+
|
57
|
+
:return: The total of this ShareTypeUsageCapacity.
|
58
|
+
:rtype: int
|
59
|
+
"""
|
60
|
+
return self._total
|
61
|
+
|
62
|
+
@total.setter
|
63
|
+
def total(self, total):
|
64
|
+
r"""Sets the total of this ShareTypeUsageCapacity.
|
65
|
+
|
66
|
+
总容量
|
67
|
+
|
68
|
+
:param total: The total of this ShareTypeUsageCapacity.
|
69
|
+
:type total: int
|
70
|
+
"""
|
71
|
+
self._total = total
|
72
|
+
|
73
|
+
@property
|
74
|
+
def usage(self):
|
75
|
+
r"""Gets the usage of this ShareTypeUsageCapacity.
|
76
|
+
|
77
|
+
已用容量
|
78
|
+
|
79
|
+
:return: The usage of this ShareTypeUsageCapacity.
|
80
|
+
:rtype: int
|
81
|
+
"""
|
82
|
+
return self._usage
|
83
|
+
|
84
|
+
@usage.setter
|
85
|
+
def usage(self, usage):
|
86
|
+
r"""Sets the usage of this ShareTypeUsageCapacity.
|
87
|
+
|
88
|
+
已用容量
|
89
|
+
|
90
|
+
:param usage: The usage of this ShareTypeUsageCapacity.
|
91
|
+
:type usage: int
|
92
|
+
"""
|
93
|
+
self._usage = usage
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, ShareTypeUsageCapacity):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShareTypeUsageQuantity:
|
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
|
+
'total': 'int',
|
21
|
+
'usage': 'int'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'total': 'total',
|
26
|
+
'usage': 'usage'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, total=None, usage=None):
|
30
|
+
r"""ShareTypeUsageQuantity
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param total: 总文件系统数量
|
35
|
+
:type total: int
|
36
|
+
:param usage: 文件系统已用数量
|
37
|
+
:type usage: int
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._total = None
|
43
|
+
self._usage = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if total is not None:
|
47
|
+
self.total = total
|
48
|
+
if usage is not None:
|
49
|
+
self.usage = usage
|
50
|
+
|
51
|
+
@property
|
52
|
+
def total(self):
|
53
|
+
r"""Gets the total of this ShareTypeUsageQuantity.
|
54
|
+
|
55
|
+
总文件系统数量
|
56
|
+
|
57
|
+
:return: The total of this ShareTypeUsageQuantity.
|
58
|
+
:rtype: int
|
59
|
+
"""
|
60
|
+
return self._total
|
61
|
+
|
62
|
+
@total.setter
|
63
|
+
def total(self, total):
|
64
|
+
r"""Sets the total of this ShareTypeUsageQuantity.
|
65
|
+
|
66
|
+
总文件系统数量
|
67
|
+
|
68
|
+
:param total: The total of this ShareTypeUsageQuantity.
|
69
|
+
:type total: int
|
70
|
+
"""
|
71
|
+
self._total = total
|
72
|
+
|
73
|
+
@property
|
74
|
+
def usage(self):
|
75
|
+
r"""Gets the usage of this ShareTypeUsageQuantity.
|
76
|
+
|
77
|
+
文件系统已用数量
|
78
|
+
|
79
|
+
:return: The usage of this ShareTypeUsageQuantity.
|
80
|
+
:rtype: int
|
81
|
+
"""
|
82
|
+
return self._usage
|
83
|
+
|
84
|
+
@usage.setter
|
85
|
+
def usage(self, usage):
|
86
|
+
r"""Sets the usage of this ShareTypeUsageQuantity.
|
87
|
+
|
88
|
+
文件系统已用数量
|
89
|
+
|
90
|
+
:param usage: The usage of this ShareTypeUsageQuantity.
|
91
|
+
:type usage: int
|
92
|
+
"""
|
93
|
+
self._usage = usage
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, ShareTypeUsageQuantity):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|
@@ -0,0 +1,186 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShareTypesAttribution:
|
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
|
+
'capacity': 'ShareTypesAttributionCapacity',
|
21
|
+
'bandwidth': 'ShareTypesAttributionBandwidth',
|
22
|
+
'iops': 'ShareTypesAttributionIops',
|
23
|
+
'single_channel_4k_latency': 'ShareTypesAttributionSingleChannel4KLatency'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'capacity': 'capacity',
|
28
|
+
'bandwidth': 'bandwidth',
|
29
|
+
'iops': 'iops',
|
30
|
+
'single_channel_4k_latency': 'single_channel_4k_latency'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, capacity=None, bandwidth=None, iops=None, single_channel_4k_latency=None):
|
34
|
+
r"""ShareTypesAttribution
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param capacity:
|
39
|
+
:type capacity: :class:`huaweicloudsdksfsturbo.v1.ShareTypesAttributionCapacity`
|
40
|
+
:param bandwidth:
|
41
|
+
:type bandwidth: :class:`huaweicloudsdksfsturbo.v1.ShareTypesAttributionBandwidth`
|
42
|
+
:param iops:
|
43
|
+
:type iops: :class:`huaweicloudsdksfsturbo.v1.ShareTypesAttributionIops`
|
44
|
+
:param single_channel_4k_latency:
|
45
|
+
:type single_channel_4k_latency: :class:`huaweicloudsdksfsturbo.v1.ShareTypesAttributionSingleChannel4KLatency`
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._capacity = None
|
51
|
+
self._bandwidth = None
|
52
|
+
self._iops = None
|
53
|
+
self._single_channel_4k_latency = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if capacity is not None:
|
57
|
+
self.capacity = capacity
|
58
|
+
if bandwidth is not None:
|
59
|
+
self.bandwidth = bandwidth
|
60
|
+
if iops is not None:
|
61
|
+
self.iops = iops
|
62
|
+
if single_channel_4k_latency is not None:
|
63
|
+
self.single_channel_4k_latency = single_channel_4k_latency
|
64
|
+
|
65
|
+
@property
|
66
|
+
def capacity(self):
|
67
|
+
r"""Gets the capacity of this ShareTypesAttribution.
|
68
|
+
|
69
|
+
:return: The capacity of this ShareTypesAttribution.
|
70
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ShareTypesAttributionCapacity`
|
71
|
+
"""
|
72
|
+
return self._capacity
|
73
|
+
|
74
|
+
@capacity.setter
|
75
|
+
def capacity(self, capacity):
|
76
|
+
r"""Sets the capacity of this ShareTypesAttribution.
|
77
|
+
|
78
|
+
:param capacity: The capacity of this ShareTypesAttribution.
|
79
|
+
:type capacity: :class:`huaweicloudsdksfsturbo.v1.ShareTypesAttributionCapacity`
|
80
|
+
"""
|
81
|
+
self._capacity = capacity
|
82
|
+
|
83
|
+
@property
|
84
|
+
def bandwidth(self):
|
85
|
+
r"""Gets the bandwidth of this ShareTypesAttribution.
|
86
|
+
|
87
|
+
:return: The bandwidth of this ShareTypesAttribution.
|
88
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ShareTypesAttributionBandwidth`
|
89
|
+
"""
|
90
|
+
return self._bandwidth
|
91
|
+
|
92
|
+
@bandwidth.setter
|
93
|
+
def bandwidth(self, bandwidth):
|
94
|
+
r"""Sets the bandwidth of this ShareTypesAttribution.
|
95
|
+
|
96
|
+
:param bandwidth: The bandwidth of this ShareTypesAttribution.
|
97
|
+
:type bandwidth: :class:`huaweicloudsdksfsturbo.v1.ShareTypesAttributionBandwidth`
|
98
|
+
"""
|
99
|
+
self._bandwidth = bandwidth
|
100
|
+
|
101
|
+
@property
|
102
|
+
def iops(self):
|
103
|
+
r"""Gets the iops of this ShareTypesAttribution.
|
104
|
+
|
105
|
+
:return: The iops of this ShareTypesAttribution.
|
106
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ShareTypesAttributionIops`
|
107
|
+
"""
|
108
|
+
return self._iops
|
109
|
+
|
110
|
+
@iops.setter
|
111
|
+
def iops(self, iops):
|
112
|
+
r"""Sets the iops of this ShareTypesAttribution.
|
113
|
+
|
114
|
+
:param iops: The iops of this ShareTypesAttribution.
|
115
|
+
:type iops: :class:`huaweicloudsdksfsturbo.v1.ShareTypesAttributionIops`
|
116
|
+
"""
|
117
|
+
self._iops = iops
|
118
|
+
|
119
|
+
@property
|
120
|
+
def single_channel_4k_latency(self):
|
121
|
+
r"""Gets the single_channel_4k_latency of this ShareTypesAttribution.
|
122
|
+
|
123
|
+
:return: The single_channel_4k_latency of this ShareTypesAttribution.
|
124
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ShareTypesAttributionSingleChannel4KLatency`
|
125
|
+
"""
|
126
|
+
return self._single_channel_4k_latency
|
127
|
+
|
128
|
+
@single_channel_4k_latency.setter
|
129
|
+
def single_channel_4k_latency(self, single_channel_4k_latency):
|
130
|
+
r"""Sets the single_channel_4k_latency of this ShareTypesAttribution.
|
131
|
+
|
132
|
+
:param single_channel_4k_latency: The single_channel_4k_latency of this ShareTypesAttribution.
|
133
|
+
:type single_channel_4k_latency: :class:`huaweicloudsdksfsturbo.v1.ShareTypesAttributionSingleChannel4KLatency`
|
134
|
+
"""
|
135
|
+
self._single_channel_4k_latency = single_channel_4k_latency
|
136
|
+
|
137
|
+
def to_dict(self):
|
138
|
+
"""Returns the model properties as a dict"""
|
139
|
+
result = {}
|
140
|
+
|
141
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
142
|
+
value = getattr(self, attr)
|
143
|
+
if isinstance(value, list):
|
144
|
+
result[attr] = list(map(
|
145
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
146
|
+
value
|
147
|
+
))
|
148
|
+
elif hasattr(value, "to_dict"):
|
149
|
+
result[attr] = value.to_dict()
|
150
|
+
elif isinstance(value, dict):
|
151
|
+
result[attr] = dict(map(
|
152
|
+
lambda item: (item[0], item[1].to_dict())
|
153
|
+
if hasattr(item[1], "to_dict") else item,
|
154
|
+
value.items()
|
155
|
+
))
|
156
|
+
else:
|
157
|
+
if attr in self.sensitive_list:
|
158
|
+
result[attr] = "****"
|
159
|
+
else:
|
160
|
+
result[attr] = value
|
161
|
+
|
162
|
+
return result
|
163
|
+
|
164
|
+
def to_str(self):
|
165
|
+
"""Returns the string representation of the model"""
|
166
|
+
import simplejson as json
|
167
|
+
if six.PY2:
|
168
|
+
import sys
|
169
|
+
reload(sys)
|
170
|
+
sys.setdefaultencoding("utf-8")
|
171
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
172
|
+
|
173
|
+
def __repr__(self):
|
174
|
+
"""For `print`"""
|
175
|
+
return self.to_str()
|
176
|
+
|
177
|
+
def __eq__(self, other):
|
178
|
+
"""Returns true if both objects are equal"""
|
179
|
+
if not isinstance(other, ShareTypesAttribution):
|
180
|
+
return False
|
181
|
+
|
182
|
+
return self.__dict__ == other.__dict__
|
183
|
+
|
184
|
+
def __ne__(self, other):
|
185
|
+
"""Returns true if both objects are not equal"""
|
186
|
+
return not self == other
|
@@ -0,0 +1,231 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShareTypesAttributionBandwidth:
|
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
|
+
'max': 'int',
|
21
|
+
'min': 'int',
|
22
|
+
'step': 'int',
|
23
|
+
'density': 'float',
|
24
|
+
'base': 'int'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'max': 'max',
|
29
|
+
'min': 'min',
|
30
|
+
'step': 'step',
|
31
|
+
'density': 'density',
|
32
|
+
'base': 'base'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, max=None, min=None, step=None, density=None, base=None):
|
36
|
+
r"""ShareTypesAttributionBandwidth
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param max: 最大带宽
|
41
|
+
:type max: int
|
42
|
+
:param min: 最小带宽
|
43
|
+
:type min: int
|
44
|
+
:param step: 带宽梯度
|
45
|
+
:type step: int
|
46
|
+
:param density: 带宽密度
|
47
|
+
:type density: float
|
48
|
+
:param base: 基础带宽
|
49
|
+
:type base: int
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._max = None
|
55
|
+
self._min = None
|
56
|
+
self._step = None
|
57
|
+
self._density = None
|
58
|
+
self._base = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if max is not None:
|
62
|
+
self.max = max
|
63
|
+
if min is not None:
|
64
|
+
self.min = min
|
65
|
+
if step is not None:
|
66
|
+
self.step = step
|
67
|
+
if density is not None:
|
68
|
+
self.density = density
|
69
|
+
if base is not None:
|
70
|
+
self.base = base
|
71
|
+
|
72
|
+
@property
|
73
|
+
def max(self):
|
74
|
+
r"""Gets the max of this ShareTypesAttributionBandwidth.
|
75
|
+
|
76
|
+
最大带宽
|
77
|
+
|
78
|
+
:return: The max of this ShareTypesAttributionBandwidth.
|
79
|
+
:rtype: int
|
80
|
+
"""
|
81
|
+
return self._max
|
82
|
+
|
83
|
+
@max.setter
|
84
|
+
def max(self, max):
|
85
|
+
r"""Sets the max of this ShareTypesAttributionBandwidth.
|
86
|
+
|
87
|
+
最大带宽
|
88
|
+
|
89
|
+
:param max: The max of this ShareTypesAttributionBandwidth.
|
90
|
+
:type max: int
|
91
|
+
"""
|
92
|
+
self._max = max
|
93
|
+
|
94
|
+
@property
|
95
|
+
def min(self):
|
96
|
+
r"""Gets the min of this ShareTypesAttributionBandwidth.
|
97
|
+
|
98
|
+
最小带宽
|
99
|
+
|
100
|
+
:return: The min of this ShareTypesAttributionBandwidth.
|
101
|
+
:rtype: int
|
102
|
+
"""
|
103
|
+
return self._min
|
104
|
+
|
105
|
+
@min.setter
|
106
|
+
def min(self, min):
|
107
|
+
r"""Sets the min of this ShareTypesAttributionBandwidth.
|
108
|
+
|
109
|
+
最小带宽
|
110
|
+
|
111
|
+
:param min: The min of this ShareTypesAttributionBandwidth.
|
112
|
+
:type min: int
|
113
|
+
"""
|
114
|
+
self._min = min
|
115
|
+
|
116
|
+
@property
|
117
|
+
def step(self):
|
118
|
+
r"""Gets the step of this ShareTypesAttributionBandwidth.
|
119
|
+
|
120
|
+
带宽梯度
|
121
|
+
|
122
|
+
:return: The step of this ShareTypesAttributionBandwidth.
|
123
|
+
:rtype: int
|
124
|
+
"""
|
125
|
+
return self._step
|
126
|
+
|
127
|
+
@step.setter
|
128
|
+
def step(self, step):
|
129
|
+
r"""Sets the step of this ShareTypesAttributionBandwidth.
|
130
|
+
|
131
|
+
带宽梯度
|
132
|
+
|
133
|
+
:param step: The step of this ShareTypesAttributionBandwidth.
|
134
|
+
:type step: int
|
135
|
+
"""
|
136
|
+
self._step = step
|
137
|
+
|
138
|
+
@property
|
139
|
+
def density(self):
|
140
|
+
r"""Gets the density of this ShareTypesAttributionBandwidth.
|
141
|
+
|
142
|
+
带宽密度
|
143
|
+
|
144
|
+
:return: The density of this ShareTypesAttributionBandwidth.
|
145
|
+
:rtype: float
|
146
|
+
"""
|
147
|
+
return self._density
|
148
|
+
|
149
|
+
@density.setter
|
150
|
+
def density(self, density):
|
151
|
+
r"""Sets the density of this ShareTypesAttributionBandwidth.
|
152
|
+
|
153
|
+
带宽密度
|
154
|
+
|
155
|
+
:param density: The density of this ShareTypesAttributionBandwidth.
|
156
|
+
:type density: float
|
157
|
+
"""
|
158
|
+
self._density = density
|
159
|
+
|
160
|
+
@property
|
161
|
+
def base(self):
|
162
|
+
r"""Gets the base of this ShareTypesAttributionBandwidth.
|
163
|
+
|
164
|
+
基础带宽
|
165
|
+
|
166
|
+
:return: The base of this ShareTypesAttributionBandwidth.
|
167
|
+
:rtype: int
|
168
|
+
"""
|
169
|
+
return self._base
|
170
|
+
|
171
|
+
@base.setter
|
172
|
+
def base(self, base):
|
173
|
+
r"""Sets the base of this ShareTypesAttributionBandwidth.
|
174
|
+
|
175
|
+
基础带宽
|
176
|
+
|
177
|
+
:param base: The base of this ShareTypesAttributionBandwidth.
|
178
|
+
:type base: int
|
179
|
+
"""
|
180
|
+
self._base = base
|
181
|
+
|
182
|
+
def to_dict(self):
|
183
|
+
"""Returns the model properties as a dict"""
|
184
|
+
result = {}
|
185
|
+
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
187
|
+
value = getattr(self, attr)
|
188
|
+
if isinstance(value, list):
|
189
|
+
result[attr] = list(map(
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
191
|
+
value
|
192
|
+
))
|
193
|
+
elif hasattr(value, "to_dict"):
|
194
|
+
result[attr] = value.to_dict()
|
195
|
+
elif isinstance(value, dict):
|
196
|
+
result[attr] = dict(map(
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
199
|
+
value.items()
|
200
|
+
))
|
201
|
+
else:
|
202
|
+
if attr in self.sensitive_list:
|
203
|
+
result[attr] = "****"
|
204
|
+
else:
|
205
|
+
result[attr] = value
|
206
|
+
|
207
|
+
return result
|
208
|
+
|
209
|
+
def to_str(self):
|
210
|
+
"""Returns the string representation of the model"""
|
211
|
+
import simplejson as json
|
212
|
+
if six.PY2:
|
213
|
+
import sys
|
214
|
+
reload(sys)
|
215
|
+
sys.setdefaultencoding("utf-8")
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
217
|
+
|
218
|
+
def __repr__(self):
|
219
|
+
"""For `print`"""
|
220
|
+
return self.to_str()
|
221
|
+
|
222
|
+
def __eq__(self, other):
|
223
|
+
"""Returns true if both objects are equal"""
|
224
|
+
if not isinstance(other, ShareTypesAttributionBandwidth):
|
225
|
+
return False
|
226
|
+
|
227
|
+
return self.__dict__ == other.__dict__
|
228
|
+
|
229
|
+
def __ne__(self, other):
|
230
|
+
"""Returns true if both objects are not equal"""
|
231
|
+
return not self == other
|