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.
Files changed (191) hide show
  1. huaweicloudsdksfsturbo/__init__.py +0 -0
  2. huaweicloudsdksfsturbo/v1/__init__.py +187 -0
  3. huaweicloudsdksfsturbo/v1/model/__init__.py +184 -0
  4. huaweicloudsdksfsturbo/v1/model/action_progress.py +115 -0
  5. huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_request.py +139 -0
  6. huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_request_body.py +313 -0
  7. huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_response.py +141 -0
  8. huaweicloudsdksfsturbo/v1/model/auto_export_policy.py +173 -0
  9. huaweicloudsdksfsturbo/v1/model/batch_add_shared_tags_request.py +139 -0
  10. huaweicloudsdksfsturbo/v1/model/batch_add_shared_tags_request_body.py +142 -0
  11. huaweicloudsdksfsturbo/v1/model/batch_add_shared_tags_response.py +85 -0
  12. huaweicloudsdksfsturbo/v1/model/bss_info.py +200 -0
  13. huaweicloudsdksfsturbo/v1/model/bss_info_extend.py +115 -0
  14. huaweicloudsdksfsturbo/v1/model/change_security_group.py +114 -0
  15. huaweicloudsdksfsturbo/v1/model/change_security_group_request.py +139 -0
  16. huaweicloudsdksfsturbo/v1/model/change_security_group_request_body.py +110 -0
  17. huaweicloudsdksfsturbo/v1/model/change_security_group_response.py +116 -0
  18. huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_request_body.py +110 -0
  19. huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_v2_request.py +139 -0
  20. huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_v2_response.py +141 -0
  21. huaweicloudsdksfsturbo/v1/model/change_share_name_req.py +110 -0
  22. huaweicloudsdksfsturbo/v1/model/change_share_name_request.py +139 -0
  23. huaweicloudsdksfsturbo/v1/model/change_share_name_response.py +85 -0
  24. huaweicloudsdksfsturbo/v1/model/client_ip_info.py +115 -0
  25. huaweicloudsdksfsturbo/v1/model/config_nas_target.py +170 -0
  26. huaweicloudsdksfsturbo/v1/model/create_backend_target_request.py +139 -0
  27. huaweicloudsdksfsturbo/v1/model/create_backend_target_request_body.py +138 -0
  28. huaweicloudsdksfsturbo/v1/model/create_backend_target_response.py +278 -0
  29. huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request.py +139 -0
  30. huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request_body.py +172 -0
  31. huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_response.py +232 -0
  32. huaweicloudsdksfsturbo/v1/model/create_fs_dir_request.py +139 -0
  33. huaweicloudsdksfsturbo/v1/model/create_fs_dir_request_body.py +201 -0
  34. huaweicloudsdksfsturbo/v1/model/create_fs_dir_response.py +85 -0
  35. huaweicloudsdksfsturbo/v1/model/create_fs_task_request.py +167 -0
  36. huaweicloudsdksfsturbo/v1/model/create_fs_task_response.py +141 -0
  37. huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_req.py +253 -0
  38. huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_request.py +139 -0
  39. huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_response.py +141 -0
  40. huaweicloudsdksfsturbo/v1/model/create_ldap_config_request.py +139 -0
  41. huaweicloudsdksfsturbo/v1/model/create_ldap_config_request_body.py +345 -0
  42. huaweicloudsdksfsturbo/v1/model/create_ldap_config_response.py +141 -0
  43. huaweicloudsdksfsturbo/v1/model/create_perm_rule_request.py +139 -0
  44. huaweicloudsdksfsturbo/v1/model/create_perm_rule_response.py +116 -0
  45. huaweicloudsdksfsturbo/v1/model/create_perm_rules_request_body.py +114 -0
  46. huaweicloudsdksfsturbo/v1/model/create_share_request.py +111 -0
  47. huaweicloudsdksfsturbo/v1/model/create_share_request_body.py +135 -0
  48. huaweicloudsdksfsturbo/v1/model/create_share_response.py +174 -0
  49. huaweicloudsdksfsturbo/v1/model/create_shared_tag_request.py +139 -0
  50. huaweicloudsdksfsturbo/v1/model/create_shared_tag_request_body.py +110 -0
  51. huaweicloudsdksfsturbo/v1/model/create_shared_tag_response.py +85 -0
  52. huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_request.py +139 -0
  53. huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_request_body.py +142 -0
  54. huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_response.py +141 -0
  55. huaweicloudsdksfsturbo/v1/model/delete_backend_target_request.py +171 -0
  56. huaweicloudsdksfsturbo/v1/model/delete_backend_target_response.py +199 -0
  57. huaweicloudsdksfsturbo/v1/model/delete_fs_dir_quota_request.py +139 -0
  58. huaweicloudsdksfsturbo/v1/model/delete_fs_dir_quota_request_body.py +114 -0
  59. huaweicloudsdksfsturbo/v1/model/delete_fs_dir_quota_response.py +85 -0
  60. huaweicloudsdksfsturbo/v1/model/delete_fs_dir_request.py +139 -0
  61. huaweicloudsdksfsturbo/v1/model/delete_fs_dir_request_body.py +114 -0
  62. huaweicloudsdksfsturbo/v1/model/delete_fs_dir_response.py +85 -0
  63. huaweicloudsdksfsturbo/v1/model/delete_fs_task_request.py +170 -0
  64. huaweicloudsdksfsturbo/v1/model/delete_fs_task_response.py +112 -0
  65. huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_request.py +142 -0
  66. huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_response.py +112 -0
  67. huaweicloudsdksfsturbo/v1/model/delete_ldap_config_request.py +114 -0
  68. huaweicloudsdksfsturbo/v1/model/delete_ldap_config_response.py +141 -0
  69. huaweicloudsdksfsturbo/v1/model/delete_perm_rule_request.py +142 -0
  70. huaweicloudsdksfsturbo/v1/model/delete_perm_rule_response.py +85 -0
  71. huaweicloudsdksfsturbo/v1/model/delete_share_request.py +114 -0
  72. huaweicloudsdksfsturbo/v1/model/delete_share_response.py +85 -0
  73. huaweicloudsdksfsturbo/v1/model/delete_shared_tag_request.py +142 -0
  74. huaweicloudsdksfsturbo/v1/model/delete_shared_tag_response.py +85 -0
  75. huaweicloudsdksfsturbo/v1/model/expand_share_request.py +139 -0
  76. huaweicloudsdksfsturbo/v1/model/expand_share_request_body.py +110 -0
  77. huaweicloudsdksfsturbo/v1/model/expand_share_response.py +145 -0
  78. huaweicloudsdksfsturbo/v1/model/extend.py +168 -0
  79. huaweicloudsdksfsturbo/v1/model/failure_details_message.py +114 -0
  80. huaweicloudsdksfsturbo/v1/model/fs_dir_req.py +114 -0
  81. huaweicloudsdksfsturbo/v1/model/fs_dir_uasge.py +114 -0
  82. huaweicloudsdksfsturbo/v1/model/fs_du_info.py +198 -0
  83. huaweicloudsdksfsturbo/v1/model/fs_file_count.py +289 -0
  84. huaweicloudsdksfsturbo/v1/model/get_sub_job_detail.py +289 -0
  85. huaweicloudsdksfsturbo/v1/model/list_backend_targets_request.py +172 -0
  86. huaweicloudsdksfsturbo/v1/model/list_backend_targets_response.py +170 -0
  87. huaweicloudsdksfsturbo/v1/model/list_fs_tasks_request.py +200 -0
  88. huaweicloudsdksfsturbo/v1/model/list_fs_tasks_response.py +141 -0
  89. huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_request.py +288 -0
  90. huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_response.py +170 -0
  91. huaweicloudsdksfsturbo/v1/model/list_perm_rules_request.py +172 -0
  92. huaweicloudsdksfsturbo/v1/model/list_perm_rules_response.py +116 -0
  93. huaweicloudsdksfsturbo/v1/model/list_share_types_request.py +144 -0
  94. huaweicloudsdksfsturbo/v1/model/list_share_types_response.py +141 -0
  95. huaweicloudsdksfsturbo/v1/model/list_shared_tags_request.py +144 -0
  96. huaweicloudsdksfsturbo/v1/model/list_shared_tags_response.py +116 -0
  97. huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request.py +111 -0
  98. huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request_body.py +259 -0
  99. huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_resource.py +202 -0
  100. huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_response.py +170 -0
  101. huaweicloudsdksfsturbo/v1/model/list_shares_request.py +144 -0
  102. huaweicloudsdksfsturbo/v1/model/list_shares_response.py +145 -0
  103. huaweicloudsdksfsturbo/v1/model/metadata.py +231 -0
  104. huaweicloudsdksfsturbo/v1/model/obs_data_repository.py +192 -0
  105. huaweicloudsdksfsturbo/v1/model/obs_data_repository_policy.py +111 -0
  106. huaweicloudsdksfsturbo/v1/model/obs_target_attributes.py +202 -0
  107. huaweicloudsdksfsturbo/v1/model/one_fs_task_resp.py +223 -0
  108. huaweicloudsdksfsturbo/v1/model/one_hpc_cache_task_info_resp.py +366 -0
  109. huaweicloudsdksfsturbo/v1/model/one_perm_rule_request_info.py +170 -0
  110. huaweicloudsdksfsturbo/v1/model/one_perm_rule_response_info.py +198 -0
  111. huaweicloudsdksfsturbo/v1/model/req_config_hpc_cache_backend.py +110 -0
  112. huaweicloudsdksfsturbo/v1/model/req_update_hpc_cache_data.py +171 -0
  113. huaweicloudsdksfsturbo/v1/model/req_update_hpc_cache_info.py +138 -0
  114. huaweicloudsdksfsturbo/v1/model/resource_tag.py +142 -0
  115. huaweicloudsdksfsturbo/v1/model/set_hpc_cache_backend_request.py +139 -0
  116. huaweicloudsdksfsturbo/v1/model/set_hpc_cache_backend_response.py +112 -0
  117. huaweicloudsdksfsturbo/v1/model/share.py +451 -0
  118. huaweicloudsdksfsturbo/v1/model/share_info.py +919 -0
  119. huaweicloudsdksfsturbo/v1/model/share_info_feature.py +173 -0
  120. huaweicloudsdksfsturbo/v1/model/share_info_features.py +111 -0
  121. huaweicloudsdksfsturbo/v1/model/share_name.py +114 -0
  122. huaweicloudsdksfsturbo/v1/model/share_type_available_zone.py +144 -0
  123. huaweicloudsdksfsturbo/v1/model/share_type_response_body.py +368 -0
  124. huaweicloudsdksfsturbo/v1/model/share_type_usage.py +161 -0
  125. huaweicloudsdksfsturbo/v1/model/share_type_usage_bandwidth.py +144 -0
  126. huaweicloudsdksfsturbo/v1/model/share_type_usage_capacity.py +144 -0
  127. huaweicloudsdksfsturbo/v1/model/share_type_usage_quantity.py +144 -0
  128. huaweicloudsdksfsturbo/v1/model/share_types_attribution.py +186 -0
  129. huaweicloudsdksfsturbo/v1/model/share_types_attribution_bandwidth.py +231 -0
  130. huaweicloudsdksfsturbo/v1/model/share_types_attribution_capacity.py +173 -0
  131. huaweicloudsdksfsturbo/v1/model/share_types_attribution_iops.py +144 -0
  132. huaweicloudsdksfsturbo/v1/model/share_types_attribution_single_channel4_k_latency.py +144 -0
  133. huaweicloudsdksfsturbo/v1/model/show_active_directory_domain_request.py +114 -0
  134. huaweicloudsdksfsturbo/v1/model/show_active_directory_domain_response.py +286 -0
  135. huaweicloudsdksfsturbo/v1/model/show_backend_target_info_request.py +142 -0
  136. huaweicloudsdksfsturbo/v1/model/show_backend_target_info_response.py +278 -0
  137. huaweicloudsdksfsturbo/v1/model/show_backend_target_info_response_body.py +252 -0
  138. huaweicloudsdksfsturbo/v1/model/show_client_ip_info_request.py +139 -0
  139. huaweicloudsdksfsturbo/v1/model/show_client_ip_info_request_body.py +110 -0
  140. huaweicloudsdksfsturbo/v1/model/show_client_ip_info_response.py +170 -0
  141. huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_request.py +142 -0
  142. huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_response.py +232 -0
  143. huaweicloudsdksfsturbo/v1/model/show_fs_dir_request.py +142 -0
  144. huaweicloudsdksfsturbo/v1/model/show_fs_dir_response.py +203 -0
  145. huaweicloudsdksfsturbo/v1/model/show_fs_dir_usage_request.py +142 -0
  146. huaweicloudsdksfsturbo/v1/model/show_fs_dir_usage_response.py +137 -0
  147. huaweicloudsdksfsturbo/v1/model/show_fs_task_request.py +170 -0
  148. huaweicloudsdksfsturbo/v1/model/show_fs_task_response.py +253 -0
  149. huaweicloudsdksfsturbo/v1/model/show_hpc_cache_task_request.py +142 -0
  150. huaweicloudsdksfsturbo/v1/model/show_hpc_cache_task_response.py +402 -0
  151. huaweicloudsdksfsturbo/v1/model/show_job_detail_request.py +114 -0
  152. huaweicloudsdksfsturbo/v1/model/show_job_detail_response.py +344 -0
  153. huaweicloudsdksfsturbo/v1/model/show_ldap_config_request.py +114 -0
  154. huaweicloudsdksfsturbo/v1/model/show_ldap_config_response.py +344 -0
  155. huaweicloudsdksfsturbo/v1/model/show_perm_rule_request.py +142 -0
  156. huaweicloudsdksfsturbo/v1/model/show_perm_rule_response.py +203 -0
  157. huaweicloudsdksfsturbo/v1/model/show_share_request.py +114 -0
  158. huaweicloudsdksfsturbo/v1/model/show_share_response.py +920 -0
  159. huaweicloudsdksfsturbo/v1/model/show_shared_tags_request.py +114 -0
  160. huaweicloudsdksfsturbo/v1/model/show_shared_tags_response.py +116 -0
  161. huaweicloudsdksfsturbo/v1/model/tag.py +142 -0
  162. huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_request.py +139 -0
  163. huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_request_body.py +313 -0
  164. huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_response.py +141 -0
  165. huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request.py +139 -0
  166. huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request_body.py +172 -0
  167. huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_response.py +232 -0
  168. huaweicloudsdksfsturbo/v1/model/update_hpc_share_request.py +139 -0
  169. huaweicloudsdksfsturbo/v1/model/update_hpc_share_request_body.py +142 -0
  170. huaweicloudsdksfsturbo/v1/model/update_hpc_share_response.py +141 -0
  171. huaweicloudsdksfsturbo/v1/model/update_ldap_config_request.py +139 -0
  172. huaweicloudsdksfsturbo/v1/model/update_ldap_config_request_body.py +347 -0
  173. huaweicloudsdksfsturbo/v1/model/update_ldap_config_response.py +141 -0
  174. huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request.py +167 -0
  175. huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request_body.py +110 -0
  176. huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_response.py +166 -0
  177. huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request.py +167 -0
  178. huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request_body.py +110 -0
  179. huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_response.py +166 -0
  180. huaweicloudsdksfsturbo/v1/model/update_one_perm_rule_request_info.py +144 -0
  181. huaweicloudsdksfsturbo/v1/model/update_perm_rule_request.py +167 -0
  182. huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py +203 -0
  183. huaweicloudsdksfsturbo/v1/region/__init__.py +0 -0
  184. huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py +118 -0
  185. huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py +3722 -0
  186. huaweicloudsdksfsturbo/v1/sfsturbo_client.py +3719 -0
  187. huaweicloudsdksfsturbo-3.1.160.dist-info/LICENSE +13 -0
  188. huaweicloudsdksfsturbo-3.1.160.dist-info/METADATA +26 -0
  189. huaweicloudsdksfsturbo-3.1.160.dist-info/RECORD +191 -0
  190. huaweicloudsdksfsturbo-3.1.160.dist-info/WHEEL +5 -0
  191. 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 ListSharesRequest:
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
+ 'limit': 'int',
21
+ 'offset': 'int'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'limit': 'limit',
26
+ 'offset': 'offset'
27
+ }
28
+
29
+ def __init__(self, limit=None, offset=None):
30
+ r"""ListSharesRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param limit: 设置返回的文件系统个数的最大值,不填默认为1000个
35
+ :type limit: int
36
+ :param offset: 设置返回的文件系统的偏移量。
37
+ :type offset: int
38
+ """
39
+
40
+
41
+
42
+ self._limit = None
43
+ self._offset = None
44
+ self.discriminator = None
45
+
46
+ if limit is not None:
47
+ self.limit = limit
48
+ if offset is not None:
49
+ self.offset = offset
50
+
51
+ @property
52
+ def limit(self):
53
+ r"""Gets the limit of this ListSharesRequest.
54
+
55
+ 设置返回的文件系统个数的最大值,不填默认为1000个
56
+
57
+ :return: The limit of this ListSharesRequest.
58
+ :rtype: int
59
+ """
60
+ return self._limit
61
+
62
+ @limit.setter
63
+ def limit(self, limit):
64
+ r"""Sets the limit of this ListSharesRequest.
65
+
66
+ 设置返回的文件系统个数的最大值,不填默认为1000个
67
+
68
+ :param limit: The limit of this ListSharesRequest.
69
+ :type limit: int
70
+ """
71
+ self._limit = limit
72
+
73
+ @property
74
+ def offset(self):
75
+ r"""Gets the offset of this ListSharesRequest.
76
+
77
+ 设置返回的文件系统的偏移量。
78
+
79
+ :return: The offset of this ListSharesRequest.
80
+ :rtype: int
81
+ """
82
+ return self._offset
83
+
84
+ @offset.setter
85
+ def offset(self, offset):
86
+ r"""Sets the offset of this ListSharesRequest.
87
+
88
+ 设置返回的文件系统的偏移量。
89
+
90
+ :param offset: The offset of this ListSharesRequest.
91
+ :type offset: int
92
+ """
93
+ self._offset = offset
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, ListSharesRequest):
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,145 @@
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 ListSharesResponse(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
+ 'shares': 'list[ShareInfo]',
22
+ 'count': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'shares': 'shares',
27
+ 'count': 'count'
28
+ }
29
+
30
+ def __init__(self, shares=None, count=None):
31
+ r"""ListSharesResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param shares: SFS Turbo文件系统的列表。
36
+ :type shares: list[:class:`huaweicloudsdksfsturbo.v1.ShareInfo`]
37
+ :param count: SFS Turbo文件系统的数量。
38
+ :type count: int
39
+ """
40
+
41
+ super(ListSharesResponse, self).__init__()
42
+
43
+ self._shares = None
44
+ self._count = None
45
+ self.discriminator = None
46
+
47
+ if shares is not None:
48
+ self.shares = shares
49
+ if count is not None:
50
+ self.count = count
51
+
52
+ @property
53
+ def shares(self):
54
+ r"""Gets the shares of this ListSharesResponse.
55
+
56
+ SFS Turbo文件系统的列表。
57
+
58
+ :return: The shares of this ListSharesResponse.
59
+ :rtype: list[:class:`huaweicloudsdksfsturbo.v1.ShareInfo`]
60
+ """
61
+ return self._shares
62
+
63
+ @shares.setter
64
+ def shares(self, shares):
65
+ r"""Sets the shares of this ListSharesResponse.
66
+
67
+ SFS Turbo文件系统的列表。
68
+
69
+ :param shares: The shares of this ListSharesResponse.
70
+ :type shares: list[:class:`huaweicloudsdksfsturbo.v1.ShareInfo`]
71
+ """
72
+ self._shares = shares
73
+
74
+ @property
75
+ def count(self):
76
+ r"""Gets the count of this ListSharesResponse.
77
+
78
+ SFS Turbo文件系统的数量。
79
+
80
+ :return: The count of this ListSharesResponse.
81
+ :rtype: int
82
+ """
83
+ return self._count
84
+
85
+ @count.setter
86
+ def count(self, count):
87
+ r"""Sets the count of this ListSharesResponse.
88
+
89
+ SFS Turbo文件系统的数量。
90
+
91
+ :param count: The count of this ListSharesResponse.
92
+ :type count: int
93
+ """
94
+ self._count = count
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, ListSharesResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ 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 Metadata:
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
+ 'crypt_key_id': 'str',
21
+ 'dedicated_flavor': 'str',
22
+ 'dedicated_storage_id': 'str',
23
+ 'expand_type': 'str',
24
+ 'hpc_bw': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'crypt_key_id': 'crypt_key_id',
29
+ 'dedicated_flavor': 'dedicated_flavor',
30
+ 'dedicated_storage_id': 'dedicated_storage_id',
31
+ 'expand_type': 'expand_type',
32
+ 'hpc_bw': 'hpc_bw'
33
+ }
34
+
35
+ def __init__(self, crypt_key_id=None, dedicated_flavor=None, dedicated_storage_id=None, expand_type=None, hpc_bw=None):
36
+ r"""Metadata
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param crypt_key_id: 要创加密文件系统,该字段传KMS服务专业版密钥的ID。
41
+ :type crypt_key_id: str
42
+ :param dedicated_flavor: 创专属文件系统,要创建的虚拟机的规格。
43
+ :type dedicated_flavor: str
44
+ :param dedicated_storage_id: 创专属文件系统,要指定一个专属分布式存储的ID。
45
+ :type dedicated_storage_id: str
46
+ :param expand_type: 扩展类型;当文件系统正在创建时,该字段不返回。 - 创建增强型、20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 - 创建增强型的文件系统,包括标准型-增强版和性能型-增强版,需要填写\"bandwidth\"。 - 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB文件系统,需要填写\"hpc\"。 - 创建HPC缓存型,需要填写\"hpc_cache\"。
47
+ :type expand_type: str
48
+ :param hpc_bw: 文件系统的带宽规格。 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 20MB/s/TiB,填写\"20M\"。 40MB/s/TiB,填写\"40M\"。 125MB/s/TiB,填写\"125M\"。 250MB/s/TiB,填写\"250M\"。 500MB/s/TiB,填写\"500M\"。 1000MB/s/TiB,填写\"1000M\"。 HPC缓存型,填写\"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"。
49
+ :type hpc_bw: str
50
+ """
51
+
52
+
53
+
54
+ self._crypt_key_id = None
55
+ self._dedicated_flavor = None
56
+ self._dedicated_storage_id = None
57
+ self._expand_type = None
58
+ self._hpc_bw = None
59
+ self.discriminator = None
60
+
61
+ if crypt_key_id is not None:
62
+ self.crypt_key_id = crypt_key_id
63
+ if dedicated_flavor is not None:
64
+ self.dedicated_flavor = dedicated_flavor
65
+ if dedicated_storage_id is not None:
66
+ self.dedicated_storage_id = dedicated_storage_id
67
+ if expand_type is not None:
68
+ self.expand_type = expand_type
69
+ if hpc_bw is not None:
70
+ self.hpc_bw = hpc_bw
71
+
72
+ @property
73
+ def crypt_key_id(self):
74
+ r"""Gets the crypt_key_id of this Metadata.
75
+
76
+ 要创加密文件系统,该字段传KMS服务专业版密钥的ID。
77
+
78
+ :return: The crypt_key_id of this Metadata.
79
+ :rtype: str
80
+ """
81
+ return self._crypt_key_id
82
+
83
+ @crypt_key_id.setter
84
+ def crypt_key_id(self, crypt_key_id):
85
+ r"""Sets the crypt_key_id of this Metadata.
86
+
87
+ 要创加密文件系统,该字段传KMS服务专业版密钥的ID。
88
+
89
+ :param crypt_key_id: The crypt_key_id of this Metadata.
90
+ :type crypt_key_id: str
91
+ """
92
+ self._crypt_key_id = crypt_key_id
93
+
94
+ @property
95
+ def dedicated_flavor(self):
96
+ r"""Gets the dedicated_flavor of this Metadata.
97
+
98
+ 创专属文件系统,要创建的虚拟机的规格。
99
+
100
+ :return: The dedicated_flavor of this Metadata.
101
+ :rtype: str
102
+ """
103
+ return self._dedicated_flavor
104
+
105
+ @dedicated_flavor.setter
106
+ def dedicated_flavor(self, dedicated_flavor):
107
+ r"""Sets the dedicated_flavor of this Metadata.
108
+
109
+ 创专属文件系统,要创建的虚拟机的规格。
110
+
111
+ :param dedicated_flavor: The dedicated_flavor of this Metadata.
112
+ :type dedicated_flavor: str
113
+ """
114
+ self._dedicated_flavor = dedicated_flavor
115
+
116
+ @property
117
+ def dedicated_storage_id(self):
118
+ r"""Gets the dedicated_storage_id of this Metadata.
119
+
120
+ 创专属文件系统,要指定一个专属分布式存储的ID。
121
+
122
+ :return: The dedicated_storage_id of this Metadata.
123
+ :rtype: str
124
+ """
125
+ return self._dedicated_storage_id
126
+
127
+ @dedicated_storage_id.setter
128
+ def dedicated_storage_id(self, dedicated_storage_id):
129
+ r"""Sets the dedicated_storage_id of this Metadata.
130
+
131
+ 创专属文件系统,要指定一个专属分布式存储的ID。
132
+
133
+ :param dedicated_storage_id: The dedicated_storage_id of this Metadata.
134
+ :type dedicated_storage_id: str
135
+ """
136
+ self._dedicated_storage_id = dedicated_storage_id
137
+
138
+ @property
139
+ def expand_type(self):
140
+ r"""Gets the expand_type of this Metadata.
141
+
142
+ 扩展类型;当文件系统正在创建时,该字段不返回。 - 创建增强型、20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 - 创建增强型的文件系统,包括标准型-增强版和性能型-增强版,需要填写\"bandwidth\"。 - 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB文件系统,需要填写\"hpc\"。 - 创建HPC缓存型,需要填写\"hpc_cache\"。
143
+
144
+ :return: The expand_type of this Metadata.
145
+ :rtype: str
146
+ """
147
+ return self._expand_type
148
+
149
+ @expand_type.setter
150
+ def expand_type(self, expand_type):
151
+ r"""Sets the expand_type of this Metadata.
152
+
153
+ 扩展类型;当文件系统正在创建时,该字段不返回。 - 创建增强型、20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 - 创建增强型的文件系统,包括标准型-增强版和性能型-增强版,需要填写\"bandwidth\"。 - 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB文件系统,需要填写\"hpc\"。 - 创建HPC缓存型,需要填写\"hpc_cache\"。
154
+
155
+ :param expand_type: The expand_type of this Metadata.
156
+ :type expand_type: str
157
+ """
158
+ self._expand_type = expand_type
159
+
160
+ @property
161
+ def hpc_bw(self):
162
+ r"""Gets the hpc_bw of this Metadata.
163
+
164
+ 文件系统的带宽规格。 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 20MB/s/TiB,填写\"20M\"。 40MB/s/TiB,填写\"40M\"。 125MB/s/TiB,填写\"125M\"。 250MB/s/TiB,填写\"250M\"。 500MB/s/TiB,填写\"500M\"。 1000MB/s/TiB,填写\"1000M\"。 HPC缓存型,填写\"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"。
165
+
166
+ :return: The hpc_bw of this Metadata.
167
+ :rtype: str
168
+ """
169
+ return self._hpc_bw
170
+
171
+ @hpc_bw.setter
172
+ def hpc_bw(self, hpc_bw):
173
+ r"""Sets the hpc_bw of this Metadata.
174
+
175
+ 文件系统的带宽规格。 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 20MB/s/TiB,填写\"20M\"。 40MB/s/TiB,填写\"40M\"。 125MB/s/TiB,填写\"125M\"。 250MB/s/TiB,填写\"250M\"。 500MB/s/TiB,填写\"500M\"。 1000MB/s/TiB,填写\"1000M\"。 HPC缓存型,填写\"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"。
176
+
177
+ :param hpc_bw: The hpc_bw of this Metadata.
178
+ :type hpc_bw: str
179
+ """
180
+ self._hpc_bw = hpc_bw
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, Metadata):
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