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,167 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdatePermRuleRequest:
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
+ 'rule_id': 'str',
22
+ 'body': 'UpdateOnePermRuleRequestInfo'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'share_id': 'share_id',
27
+ 'rule_id': 'rule_id',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, share_id=None, rule_id=None, body=None):
32
+ r"""UpdatePermRuleRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param share_id: 文件系统ID
37
+ :type share_id: str
38
+ :param rule_id: 权限规则id
39
+ :type rule_id: str
40
+ :param body: Body of the UpdatePermRuleRequest
41
+ :type body: :class:`huaweicloudsdksfsturbo.v1.UpdateOnePermRuleRequestInfo`
42
+ """
43
+
44
+
45
+
46
+ self._share_id = None
47
+ self._rule_id = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ self.share_id = share_id
52
+ self.rule_id = rule_id
53
+ if body is not None:
54
+ self.body = body
55
+
56
+ @property
57
+ def share_id(self):
58
+ r"""Gets the share_id of this UpdatePermRuleRequest.
59
+
60
+ 文件系统ID
61
+
62
+ :return: The share_id of this UpdatePermRuleRequest.
63
+ :rtype: str
64
+ """
65
+ return self._share_id
66
+
67
+ @share_id.setter
68
+ def share_id(self, share_id):
69
+ r"""Sets the share_id of this UpdatePermRuleRequest.
70
+
71
+ 文件系统ID
72
+
73
+ :param share_id: The share_id of this UpdatePermRuleRequest.
74
+ :type share_id: str
75
+ """
76
+ self._share_id = share_id
77
+
78
+ @property
79
+ def rule_id(self):
80
+ r"""Gets the rule_id of this UpdatePermRuleRequest.
81
+
82
+ 权限规则id
83
+
84
+ :return: The rule_id of this UpdatePermRuleRequest.
85
+ :rtype: str
86
+ """
87
+ return self._rule_id
88
+
89
+ @rule_id.setter
90
+ def rule_id(self, rule_id):
91
+ r"""Sets the rule_id of this UpdatePermRuleRequest.
92
+
93
+ 权限规则id
94
+
95
+ :param rule_id: The rule_id of this UpdatePermRuleRequest.
96
+ :type rule_id: str
97
+ """
98
+ self._rule_id = rule_id
99
+
100
+ @property
101
+ def body(self):
102
+ r"""Gets the body of this UpdatePermRuleRequest.
103
+
104
+ :return: The body of this UpdatePermRuleRequest.
105
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateOnePermRuleRequestInfo`
106
+ """
107
+ return self._body
108
+
109
+ @body.setter
110
+ def body(self, body):
111
+ r"""Sets the body of this UpdatePermRuleRequest.
112
+
113
+ :param body: The body of this UpdatePermRuleRequest.
114
+ :type body: :class:`huaweicloudsdksfsturbo.v1.UpdateOnePermRuleRequestInfo`
115
+ """
116
+ self._body = body
117
+
118
+ def to_dict(self):
119
+ """Returns the model properties as a dict"""
120
+ result = {}
121
+
122
+ for attr, _ in six.iteritems(self.openapi_types):
123
+ value = getattr(self, attr)
124
+ if isinstance(value, list):
125
+ result[attr] = list(map(
126
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
127
+ value
128
+ ))
129
+ elif hasattr(value, "to_dict"):
130
+ result[attr] = value.to_dict()
131
+ elif isinstance(value, dict):
132
+ result[attr] = dict(map(
133
+ lambda item: (item[0], item[1].to_dict())
134
+ if hasattr(item[1], "to_dict") else item,
135
+ value.items()
136
+ ))
137
+ else:
138
+ if attr in self.sensitive_list:
139
+ result[attr] = "****"
140
+ else:
141
+ result[attr] = value
142
+
143
+ return result
144
+
145
+ def to_str(self):
146
+ """Returns the string representation of the model"""
147
+ import simplejson as json
148
+ if six.PY2:
149
+ import sys
150
+ reload(sys)
151
+ sys.setdefaultencoding("utf-8")
152
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
153
+
154
+ def __repr__(self):
155
+ """For `print`"""
156
+ return self.to_str()
157
+
158
+ def __eq__(self, other):
159
+ """Returns true if both objects are equal"""
160
+ if not isinstance(other, UpdatePermRuleRequest):
161
+ return False
162
+
163
+ return self.__dict__ == other.__dict__
164
+
165
+ def __ne__(self, other):
166
+ """Returns true if both objects are not equal"""
167
+ return not self == other
@@ -0,0 +1,203 @@
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 UpdatePermRuleResponse(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
+ 'id': 'str',
22
+ 'ip_cidr': 'str',
23
+ 'rw_type': 'str',
24
+ 'user_type': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'id': 'id',
29
+ 'ip_cidr': 'ip_cidr',
30
+ 'rw_type': 'rw_type',
31
+ 'user_type': 'user_type'
32
+ }
33
+
34
+ def __init__(self, id=None, ip_cidr=None, rw_type=None, user_type=None):
35
+ r"""UpdatePermRuleResponse
36
+
37
+ The model defined in huaweicloud sdk
38
+
39
+ :param id: 权限规格的id
40
+ :type id: str
41
+ :param ip_cidr: 授权对象的IP地址或网段
42
+ :type ip_cidr: str
43
+ :param rw_type: 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限
44
+ :type rw_type: str
45
+ :param user_type: 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。'
46
+ :type user_type: str
47
+ """
48
+
49
+ super(UpdatePermRuleResponse, self).__init__()
50
+
51
+ self._id = None
52
+ self._ip_cidr = None
53
+ self._rw_type = None
54
+ self._user_type = None
55
+ self.discriminator = None
56
+
57
+ if id is not None:
58
+ self.id = id
59
+ if ip_cidr is not None:
60
+ self.ip_cidr = ip_cidr
61
+ if rw_type is not None:
62
+ self.rw_type = rw_type
63
+ if user_type is not None:
64
+ self.user_type = user_type
65
+
66
+ @property
67
+ def id(self):
68
+ r"""Gets the id of this UpdatePermRuleResponse.
69
+
70
+ 权限规格的id
71
+
72
+ :return: The id of this UpdatePermRuleResponse.
73
+ :rtype: str
74
+ """
75
+ return self._id
76
+
77
+ @id.setter
78
+ def id(self, id):
79
+ r"""Sets the id of this UpdatePermRuleResponse.
80
+
81
+ 权限规格的id
82
+
83
+ :param id: The id of this UpdatePermRuleResponse.
84
+ :type id: str
85
+ """
86
+ self._id = id
87
+
88
+ @property
89
+ def ip_cidr(self):
90
+ r"""Gets the ip_cidr of this UpdatePermRuleResponse.
91
+
92
+ 授权对象的IP地址或网段
93
+
94
+ :return: The ip_cidr of this UpdatePermRuleResponse.
95
+ :rtype: str
96
+ """
97
+ return self._ip_cidr
98
+
99
+ @ip_cidr.setter
100
+ def ip_cidr(self, ip_cidr):
101
+ r"""Sets the ip_cidr of this UpdatePermRuleResponse.
102
+
103
+ 授权对象的IP地址或网段
104
+
105
+ :param ip_cidr: The ip_cidr of this UpdatePermRuleResponse.
106
+ :type ip_cidr: str
107
+ """
108
+ self._ip_cidr = ip_cidr
109
+
110
+ @property
111
+ def rw_type(self):
112
+ r"""Gets the rw_type of this UpdatePermRuleResponse.
113
+
114
+ 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限
115
+
116
+ :return: The rw_type of this UpdatePermRuleResponse.
117
+ :rtype: str
118
+ """
119
+ return self._rw_type
120
+
121
+ @rw_type.setter
122
+ def rw_type(self, rw_type):
123
+ r"""Sets the rw_type of this UpdatePermRuleResponse.
124
+
125
+ 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限
126
+
127
+ :param rw_type: The rw_type of this UpdatePermRuleResponse.
128
+ :type rw_type: str
129
+ """
130
+ self._rw_type = rw_type
131
+
132
+ @property
133
+ def user_type(self):
134
+ r"""Gets the user_type of this UpdatePermRuleResponse.
135
+
136
+ 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。'
137
+
138
+ :return: The user_type of this UpdatePermRuleResponse.
139
+ :rtype: str
140
+ """
141
+ return self._user_type
142
+
143
+ @user_type.setter
144
+ def user_type(self, user_type):
145
+ r"""Sets the user_type of this UpdatePermRuleResponse.
146
+
147
+ 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。'
148
+
149
+ :param user_type: The user_type of this UpdatePermRuleResponse.
150
+ :type user_type: str
151
+ """
152
+ self._user_type = user_type
153
+
154
+ def to_dict(self):
155
+ """Returns the model properties as a dict"""
156
+ result = {}
157
+
158
+ for attr, _ in six.iteritems(self.openapi_types):
159
+ value = getattr(self, attr)
160
+ if isinstance(value, list):
161
+ result[attr] = list(map(
162
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
163
+ value
164
+ ))
165
+ elif hasattr(value, "to_dict"):
166
+ result[attr] = value.to_dict()
167
+ elif isinstance(value, dict):
168
+ result[attr] = dict(map(
169
+ lambda item: (item[0], item[1].to_dict())
170
+ if hasattr(item[1], "to_dict") else item,
171
+ value.items()
172
+ ))
173
+ else:
174
+ if attr in self.sensitive_list:
175
+ result[attr] = "****"
176
+ else:
177
+ result[attr] = value
178
+
179
+ return result
180
+
181
+ def to_str(self):
182
+ """Returns the string representation of the model"""
183
+ import simplejson as json
184
+ if six.PY2:
185
+ import sys
186
+ reload(sys)
187
+ sys.setdefaultencoding("utf-8")
188
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
189
+
190
+ def __repr__(self):
191
+ """For `print`"""
192
+ return self.to_str()
193
+
194
+ def __eq__(self, other):
195
+ """Returns true if both objects are equal"""
196
+ if not isinstance(other, UpdatePermRuleResponse):
197
+ return False
198
+
199
+ return self.__dict__ == other.__dict__
200
+
201
+ def __ne__(self, other):
202
+ """Returns true if both objects are not equal"""
203
+ return not self == other
File without changes
@@ -0,0 +1,118 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.region.region import Region
4
+ from huaweicloudsdkcore.region.provider import RegionProviderChain
5
+
6
+ class SFSTurboRegion:
7
+ _PROVIDER = RegionProviderChain.get_default_region_provider_chain("SFSTURBO")
8
+
9
+ EU_WEST_101 = Region("eu-west-101",
10
+ "https://sfs-turbo.eu-west-101.myhuaweicloud.eu")
11
+ CN_EAST_2 = Region("cn-east-2",
12
+ "https://sfs-turbo.cn-east-2.myhuaweicloud.com")
13
+ CN_EAST_3 = Region("cn-east-3",
14
+ "https://sfs-turbo.cn-east-3.myhuaweicloud.com")
15
+ CN_NORTH_1 = Region("cn-north-1",
16
+ "https://sfs-turbo.cn-north-1.myhuaweicloud.com")
17
+ CN_NORTH_2 = Region("cn-north-2",
18
+ "https://sfs-turbo.cn-north-2.myhuaweicloud.com")
19
+ CN_NORTH_4 = Region("cn-north-4",
20
+ "https://sfs-turbo.cn-north-4.myhuaweicloud.com")
21
+ CN_NORTH_9 = Region("cn-north-9",
22
+ "https://sfs-turbo.cn-north-9.myhuaweicloud.com")
23
+ CN_SOUTH_1 = Region("cn-south-1",
24
+ "https://sfs-turbo.cn-south-1.myhuaweicloud.com")
25
+ CN_SOUTH_2 = Region("cn-south-2",
26
+ "https://sfs-turbo.cn-south-2.myhuaweicloud.com")
27
+ CN_SOUTHWEST_2 = Region("cn-southwest-2",
28
+ "https://sfs-turbo.cn-southwest-2.myhuaweicloud.com")
29
+ AP_SOUTHEAST_1 = Region("ap-southeast-1",
30
+ "https://sfs-turbo.ap-southeast-1.myhuaweicloud.com")
31
+ AP_SOUTHEAST_2 = Region("ap-southeast-2",
32
+ "https://sfs-turbo.ap-southeast-2.myhuaweicloud.com")
33
+ AP_SOUTHEAST_3 = Region("ap-southeast-3",
34
+ "https://sfs-turbo.ap-southeast-3.myhuaweicloud.com")
35
+ SA_BRAZIL_1 = Region("sa-brazil-1",
36
+ "https://sfs-turbo.sa-brazil-1.myhuaweicloud.com")
37
+ LA_SOUTH_2 = Region("la-south-2",
38
+ "https://sfs-turbo.la-south-2.myhuaweicloud.com")
39
+ LA_NORTH_2 = Region("la-north-2",
40
+ "https://sfs-turbo.la-north-2.myhuaweicloud.com")
41
+ AF_SOUTH_1 = Region("af-south-1",
42
+ "https://sfs-turbo.af-south-1.myhuaweicloud.com")
43
+ NA_MEXICO_1 = Region("na-mexico-1",
44
+ "https://sfs-turbo.na-mexico-1.myhuaweicloud.com")
45
+ TR_WEST_1 = Region("tr-west-1",
46
+ "https://sfs-turbo.tr-west-1.myhuaweicloud.com")
47
+ AP_SOUTHEAST_4 = Region("ap-southeast-4",
48
+ "https://sfs-turbo.ap-southeast-4.myhuaweicloud.com")
49
+ ME_EAST_1 = Region("me-east-1",
50
+ "https://sfs-turbo.me-east-1.myhuaweicloud.com")
51
+ CN_EAST_5 = Region("cn-east-5",
52
+ "https://sfs-turbo.cn-east-5.myhuaweicloud.com")
53
+ CN_SOUTH_4 = Region("cn-south-4",
54
+ "https://sfs-turbo.cn-south-4.myhuaweicloud.com")
55
+ RU_MOSCOW_1 = Region("ru-moscow-1",
56
+ "https://sfs-turbo.ru-moscow-1.myhuaweicloud.com")
57
+ MY_KUALALUMPUR_1 = Region("my-kualalumpur-1",
58
+ "https://sfs-turbo.my-kualalumpur-1.myhuaweicloud.com")
59
+ CN_EAST_4 = Region("cn-east-4",
60
+ "https://sfs-turbo.cn-east-4.myhuaweicloud.com")
61
+ AE_AD_1 = Region("ae-ad-1",
62
+ "https://sfs-turbo.ae-ad-1.myhuaweicloud.com")
63
+ CN_NORTH_11 = Region("cn-north-11",
64
+ "https://sfs-turbo.cn-north-11.myhuaweicloud.com")
65
+ AF_NORTH_1 = Region("af-north-1",
66
+ "https://sfs-turbo.af-north-1.myhuaweicloud.com")
67
+ CN_NORTH_12 = Region("cn-north-12",
68
+ "https://sfs-turbo.cn-north-12.myhuaweicloud.com")
69
+
70
+ static_fields = {
71
+ "eu-west-101": EU_WEST_101,
72
+ "cn-east-2": CN_EAST_2,
73
+ "cn-east-3": CN_EAST_3,
74
+ "cn-north-1": CN_NORTH_1,
75
+ "cn-north-2": CN_NORTH_2,
76
+ "cn-north-4": CN_NORTH_4,
77
+ "cn-north-9": CN_NORTH_9,
78
+ "cn-south-1": CN_SOUTH_1,
79
+ "cn-south-2": CN_SOUTH_2,
80
+ "cn-southwest-2": CN_SOUTHWEST_2,
81
+ "ap-southeast-1": AP_SOUTHEAST_1,
82
+ "ap-southeast-2": AP_SOUTHEAST_2,
83
+ "ap-southeast-3": AP_SOUTHEAST_3,
84
+ "sa-brazil-1": SA_BRAZIL_1,
85
+ "la-south-2": LA_SOUTH_2,
86
+ "la-north-2": LA_NORTH_2,
87
+ "af-south-1": AF_SOUTH_1,
88
+ "na-mexico-1": NA_MEXICO_1,
89
+ "tr-west-1": TR_WEST_1,
90
+ "ap-southeast-4": AP_SOUTHEAST_4,
91
+ "me-east-1": ME_EAST_1,
92
+ "cn-east-5": CN_EAST_5,
93
+ "cn-south-4": CN_SOUTH_4,
94
+ "ru-moscow-1": RU_MOSCOW_1,
95
+ "my-kualalumpur-1": MY_KUALALUMPUR_1,
96
+ "cn-east-4": CN_EAST_4,
97
+ "ae-ad-1": AE_AD_1,
98
+ "cn-north-11": CN_NORTH_11,
99
+ "af-north-1": AF_NORTH_1,
100
+ "cn-north-12": CN_NORTH_12,
101
+ }
102
+
103
+ @classmethod
104
+ def value_of(cls, region_id, static_fields=None):
105
+ if not region_id:
106
+ raise KeyError("Unexpected empty parameter: region_id")
107
+
108
+ fields = static_fields or cls.static_fields
109
+
110
+ region = cls._PROVIDER.get_region(region_id)
111
+ if region:
112
+ return region
113
+
114
+ if region_id in fields:
115
+ return fields.get(region_id)
116
+
117
+ raise KeyError("region_id '%s' is not in the following supported regions of service 'SFSTurbo': [%s]" % (
118
+ region_id, ", ".join(sorted(fields.keys()))))