huaweicloudsdksfsturbo 3.1.157__py2.py3-none-any.whl → 3.1.158__py2.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 (105) hide show
  1. huaweicloudsdksfsturbo/v1/__init__.py +32 -0
  2. huaweicloudsdksfsturbo/v1/model/__init__.py +32 -0
  3. huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_request.py +139 -0
  4. huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_request_body.py +313 -0
  5. huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_response.py +141 -0
  6. huaweicloudsdksfsturbo/v1/model/auto_export_policy.py +61 -3
  7. huaweicloudsdksfsturbo/v1/model/batch_add_shared_tags_request_body.py +7 -37
  8. huaweicloudsdksfsturbo/v1/model/bss_info.py +6 -6
  9. huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_request_body.py +110 -0
  10. huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_v2_request.py +139 -0
  11. huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_v2_response.py +141 -0
  12. huaweicloudsdksfsturbo/v1/model/client_ip_info.py +115 -0
  13. huaweicloudsdksfsturbo/v1/model/create_backend_target_request_body.py +3 -3
  14. huaweicloudsdksfsturbo/v1/model/create_backend_target_response.py +3 -3
  15. huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request.py +3 -3
  16. huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request_body.py +6 -6
  17. huaweicloudsdksfsturbo/v1/model/create_fs_dir_request.py +3 -3
  18. huaweicloudsdksfsturbo/v1/model/create_fs_task_response.py +28 -3
  19. huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_req.py +3 -3
  20. huaweicloudsdksfsturbo/v1/model/create_ldap_config_request.py +3 -3
  21. huaweicloudsdksfsturbo/v1/model/create_ldap_config_request_body.py +21 -50
  22. huaweicloudsdksfsturbo/v1/model/create_ldap_config_response.py +31 -6
  23. huaweicloudsdksfsturbo/v1/model/create_perm_rule_request.py +3 -3
  24. huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_request.py +139 -0
  25. huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_request_body.py +142 -0
  26. huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_response.py +141 -0
  27. huaweicloudsdksfsturbo/v1/model/delete_backend_target_request.py +6 -6
  28. huaweicloudsdksfsturbo/v1/model/delete_backend_target_response.py +3 -3
  29. huaweicloudsdksfsturbo/v1/model/delete_fs_dir_quota_request.py +3 -3
  30. huaweicloudsdksfsturbo/v1/model/delete_fs_dir_request.py +3 -3
  31. huaweicloudsdksfsturbo/v1/model/delete_fs_task_request.py +3 -3
  32. huaweicloudsdksfsturbo/v1/model/delete_fs_task_response.py +28 -1
  33. huaweicloudsdksfsturbo/v1/model/delete_ldap_config_request.py +3 -3
  34. huaweicloudsdksfsturbo/v1/model/delete_ldap_config_response.py +31 -6
  35. huaweicloudsdksfsturbo/v1/model/delete_perm_rule_request.py +3 -3
  36. huaweicloudsdksfsturbo/v1/model/delete_shared_tag_request.py +3 -3
  37. huaweicloudsdksfsturbo/v1/model/extend.py +6 -6
  38. huaweicloudsdksfsturbo/v1/model/get_sub_job_detail.py +21 -21
  39. huaweicloudsdksfsturbo/v1/model/list_backend_targets_request.py +3 -3
  40. huaweicloudsdksfsturbo/v1/model/list_fs_tasks_request.py +3 -3
  41. huaweicloudsdksfsturbo/v1/model/list_fs_tasks_response.py +28 -3
  42. huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_request.py +3 -3
  43. huaweicloudsdksfsturbo/v1/model/list_perm_rules_request.py +3 -3
  44. huaweicloudsdksfsturbo/v1/model/list_share_types_request.py +144 -0
  45. huaweicloudsdksfsturbo/v1/model/list_share_types_response.py +141 -0
  46. huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request_body.py +1 -2
  47. huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_response.py +3 -3
  48. huaweicloudsdksfsturbo/v1/model/one_perm_rule_request_info.py +9 -12
  49. huaweicloudsdksfsturbo/v1/model/one_perm_rule_response_info.py +6 -6
  50. huaweicloudsdksfsturbo/v1/model/resource_tag.py +6 -6
  51. huaweicloudsdksfsturbo/v1/model/share.py +15 -15
  52. huaweicloudsdksfsturbo/v1/model/share_info.py +6 -6
  53. huaweicloudsdksfsturbo/v1/model/share_type_available_zone.py +144 -0
  54. huaweicloudsdksfsturbo/v1/model/share_type_response_body.py +368 -0
  55. huaweicloudsdksfsturbo/v1/model/share_type_usage.py +161 -0
  56. huaweicloudsdksfsturbo/v1/model/share_type_usage_bandwidth.py +144 -0
  57. huaweicloudsdksfsturbo/v1/model/share_type_usage_capacity.py +144 -0
  58. huaweicloudsdksfsturbo/v1/model/share_type_usage_quantity.py +144 -0
  59. huaweicloudsdksfsturbo/v1/model/share_types_attribution.py +186 -0
  60. huaweicloudsdksfsturbo/v1/model/share_types_attribution_bandwidth.py +231 -0
  61. huaweicloudsdksfsturbo/v1/model/share_types_attribution_capacity.py +173 -0
  62. huaweicloudsdksfsturbo/v1/model/share_types_attribution_iops.py +144 -0
  63. huaweicloudsdksfsturbo/v1/model/share_types_attribution_single_channel4_k_latency.py +144 -0
  64. huaweicloudsdksfsturbo/v1/model/show_active_directory_domain_request.py +114 -0
  65. huaweicloudsdksfsturbo/v1/model/show_active_directory_domain_response.py +286 -0
  66. huaweicloudsdksfsturbo/v1/model/show_backend_target_info_response.py +3 -3
  67. huaweicloudsdksfsturbo/v1/model/show_backend_target_info_response_body.py +3 -3
  68. huaweicloudsdksfsturbo/v1/model/show_client_ip_info_request.py +139 -0
  69. huaweicloudsdksfsturbo/v1/model/show_client_ip_info_request_body.py +110 -0
  70. huaweicloudsdksfsturbo/v1/model/show_client_ip_info_response.py +170 -0
  71. huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_request.py +3 -3
  72. huaweicloudsdksfsturbo/v1/model/show_fs_dir_request.py +3 -3
  73. huaweicloudsdksfsturbo/v1/model/show_fs_dir_usage_request.py +3 -3
  74. huaweicloudsdksfsturbo/v1/model/show_fs_task_response.py +28 -3
  75. huaweicloudsdksfsturbo/v1/model/show_job_detail_response.py +18 -18
  76. huaweicloudsdksfsturbo/v1/model/show_ldap_config_request.py +3 -3
  77. huaweicloudsdksfsturbo/v1/model/show_ldap_config_response.py +59 -34
  78. huaweicloudsdksfsturbo/v1/model/show_perm_rule_request.py +3 -3
  79. huaweicloudsdksfsturbo/v1/model/show_perm_rule_response.py +6 -6
  80. huaweicloudsdksfsturbo/v1/model/show_share_response.py +6 -6
  81. huaweicloudsdksfsturbo/v1/model/show_shared_tags_response.py +3 -32
  82. huaweicloudsdksfsturbo/v1/model/tag.py +3 -3
  83. huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_request.py +139 -0
  84. huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_request_body.py +313 -0
  85. huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_response.py +141 -0
  86. huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request.py +3 -3
  87. huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request_body.py +6 -6
  88. huaweicloudsdksfsturbo/v1/model/update_hpc_share_request_body.py +3 -3
  89. huaweicloudsdksfsturbo/v1/model/update_ldap_config_request.py +3 -3
  90. huaweicloudsdksfsturbo/v1/model/update_ldap_config_request_body.py +18 -47
  91. huaweicloudsdksfsturbo/v1/model/update_ldap_config_response.py +31 -6
  92. huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request.py +6 -6
  93. huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request.py +6 -6
  94. huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_response.py +3 -3
  95. huaweicloudsdksfsturbo/v1/model/update_one_perm_rule_request_info.py +144 -0
  96. huaweicloudsdksfsturbo/v1/model/update_perm_rule_request.py +7 -7
  97. huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py +6 -6
  98. huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py +3 -0
  99. huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py +492 -41
  100. huaweicloudsdksfsturbo/v1/sfsturbo_client.py +492 -41
  101. {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.158.dist-info}/METADATA +2 -2
  102. {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.158.dist-info}/RECORD +105 -73
  103. {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.158.dist-info}/LICENSE +0 -0
  104. {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.158.dist-info}/WHEEL +0 -0
  105. {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.158.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,286 @@
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 ShowActiveDirectoryDomainResponse(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
+ 'domain_name': 'str',
22
+ 'system_name': 'str',
23
+ 'dns_server': 'list[str]',
24
+ 'organization_unit': 'str',
25
+ 'vpc_id': 'str',
26
+ 'status': 'str',
27
+ 'x_request_id': 'str'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'domain_name': 'domain_name',
32
+ 'system_name': 'system_name',
33
+ 'dns_server': 'dns_server',
34
+ 'organization_unit': 'organization_unit',
35
+ 'vpc_id': 'vpc_id',
36
+ 'status': 'status',
37
+ 'x_request_id': 'X-request-id'
38
+ }
39
+
40
+ def __init__(self, domain_name=None, system_name=None, dns_server=None, organization_unit=None, vpc_id=None, status=None, x_request_id=None):
41
+ r"""ShowActiveDirectoryDomainResponse
42
+
43
+ The model defined in huaweicloud sdk
44
+
45
+ :param domain_name: 域控服务器的域名,在创建域服务器时指定
46
+ :type domain_name: str
47
+ :param system_name: 存储系统在AD域中的名称
48
+ :type system_name: str
49
+ :param dns_server: DNS服务器IP地址,用于解析AD域的域名
50
+ :type dns_server: list[str]
51
+ :param organization_unit: 域中包含的一类目录对象如用户、计算机、打印机等资源的总称,加入后将作为其中的一员。若不填,则默认加入到computers组织单元。
52
+ :type organization_unit: str
53
+ :param vpc_id: vpc的id
54
+ :type vpc_id: str
55
+ :param status: AD域当前状态信息
56
+ :type status: str
57
+ :param x_request_id:
58
+ :type x_request_id: str
59
+ """
60
+
61
+ super(ShowActiveDirectoryDomainResponse, self).__init__()
62
+
63
+ self._domain_name = None
64
+ self._system_name = None
65
+ self._dns_server = None
66
+ self._organization_unit = None
67
+ self._vpc_id = None
68
+ self._status = None
69
+ self._x_request_id = None
70
+ self.discriminator = None
71
+
72
+ if domain_name is not None:
73
+ self.domain_name = domain_name
74
+ if system_name is not None:
75
+ self.system_name = system_name
76
+ if dns_server is not None:
77
+ self.dns_server = dns_server
78
+ if organization_unit is not None:
79
+ self.organization_unit = organization_unit
80
+ if vpc_id is not None:
81
+ self.vpc_id = vpc_id
82
+ if status is not None:
83
+ self.status = status
84
+ if x_request_id is not None:
85
+ self.x_request_id = x_request_id
86
+
87
+ @property
88
+ def domain_name(self):
89
+ r"""Gets the domain_name of this ShowActiveDirectoryDomainResponse.
90
+
91
+ 域控服务器的域名,在创建域服务器时指定
92
+
93
+ :return: The domain_name of this ShowActiveDirectoryDomainResponse.
94
+ :rtype: str
95
+ """
96
+ return self._domain_name
97
+
98
+ @domain_name.setter
99
+ def domain_name(self, domain_name):
100
+ r"""Sets the domain_name of this ShowActiveDirectoryDomainResponse.
101
+
102
+ 域控服务器的域名,在创建域服务器时指定
103
+
104
+ :param domain_name: The domain_name of this ShowActiveDirectoryDomainResponse.
105
+ :type domain_name: str
106
+ """
107
+ self._domain_name = domain_name
108
+
109
+ @property
110
+ def system_name(self):
111
+ r"""Gets the system_name of this ShowActiveDirectoryDomainResponse.
112
+
113
+ 存储系统在AD域中的名称
114
+
115
+ :return: The system_name of this ShowActiveDirectoryDomainResponse.
116
+ :rtype: str
117
+ """
118
+ return self._system_name
119
+
120
+ @system_name.setter
121
+ def system_name(self, system_name):
122
+ r"""Sets the system_name of this ShowActiveDirectoryDomainResponse.
123
+
124
+ 存储系统在AD域中的名称
125
+
126
+ :param system_name: The system_name of this ShowActiveDirectoryDomainResponse.
127
+ :type system_name: str
128
+ """
129
+ self._system_name = system_name
130
+
131
+ @property
132
+ def dns_server(self):
133
+ r"""Gets the dns_server of this ShowActiveDirectoryDomainResponse.
134
+
135
+ DNS服务器IP地址,用于解析AD域的域名
136
+
137
+ :return: The dns_server of this ShowActiveDirectoryDomainResponse.
138
+ :rtype: list[str]
139
+ """
140
+ return self._dns_server
141
+
142
+ @dns_server.setter
143
+ def dns_server(self, dns_server):
144
+ r"""Sets the dns_server of this ShowActiveDirectoryDomainResponse.
145
+
146
+ DNS服务器IP地址,用于解析AD域的域名
147
+
148
+ :param dns_server: The dns_server of this ShowActiveDirectoryDomainResponse.
149
+ :type dns_server: list[str]
150
+ """
151
+ self._dns_server = dns_server
152
+
153
+ @property
154
+ def organization_unit(self):
155
+ r"""Gets the organization_unit of this ShowActiveDirectoryDomainResponse.
156
+
157
+ 域中包含的一类目录对象如用户、计算机、打印机等资源的总称,加入后将作为其中的一员。若不填,则默认加入到computers组织单元。
158
+
159
+ :return: The organization_unit of this ShowActiveDirectoryDomainResponse.
160
+ :rtype: str
161
+ """
162
+ return self._organization_unit
163
+
164
+ @organization_unit.setter
165
+ def organization_unit(self, organization_unit):
166
+ r"""Sets the organization_unit of this ShowActiveDirectoryDomainResponse.
167
+
168
+ 域中包含的一类目录对象如用户、计算机、打印机等资源的总称,加入后将作为其中的一员。若不填,则默认加入到computers组织单元。
169
+
170
+ :param organization_unit: The organization_unit of this ShowActiveDirectoryDomainResponse.
171
+ :type organization_unit: str
172
+ """
173
+ self._organization_unit = organization_unit
174
+
175
+ @property
176
+ def vpc_id(self):
177
+ r"""Gets the vpc_id of this ShowActiveDirectoryDomainResponse.
178
+
179
+ vpc的id
180
+
181
+ :return: The vpc_id of this ShowActiveDirectoryDomainResponse.
182
+ :rtype: str
183
+ """
184
+ return self._vpc_id
185
+
186
+ @vpc_id.setter
187
+ def vpc_id(self, vpc_id):
188
+ r"""Sets the vpc_id of this ShowActiveDirectoryDomainResponse.
189
+
190
+ vpc的id
191
+
192
+ :param vpc_id: The vpc_id of this ShowActiveDirectoryDomainResponse.
193
+ :type vpc_id: str
194
+ """
195
+ self._vpc_id = vpc_id
196
+
197
+ @property
198
+ def status(self):
199
+ r"""Gets the status of this ShowActiveDirectoryDomainResponse.
200
+
201
+ AD域当前状态信息
202
+
203
+ :return: The status of this ShowActiveDirectoryDomainResponse.
204
+ :rtype: str
205
+ """
206
+ return self._status
207
+
208
+ @status.setter
209
+ def status(self, status):
210
+ r"""Sets the status of this ShowActiveDirectoryDomainResponse.
211
+
212
+ AD域当前状态信息
213
+
214
+ :param status: The status of this ShowActiveDirectoryDomainResponse.
215
+ :type status: str
216
+ """
217
+ self._status = status
218
+
219
+ @property
220
+ def x_request_id(self):
221
+ r"""Gets the x_request_id of this ShowActiveDirectoryDomainResponse.
222
+
223
+ :return: The x_request_id of this ShowActiveDirectoryDomainResponse.
224
+ :rtype: str
225
+ """
226
+ return self._x_request_id
227
+
228
+ @x_request_id.setter
229
+ def x_request_id(self, x_request_id):
230
+ r"""Sets the x_request_id of this ShowActiveDirectoryDomainResponse.
231
+
232
+ :param x_request_id: The x_request_id of this ShowActiveDirectoryDomainResponse.
233
+ :type x_request_id: str
234
+ """
235
+ self._x_request_id = x_request_id
236
+
237
+ def to_dict(self):
238
+ """Returns the model properties as a dict"""
239
+ result = {}
240
+
241
+ for attr, _ in six.iteritems(self.openapi_types):
242
+ value = getattr(self, attr)
243
+ if isinstance(value, list):
244
+ result[attr] = list(map(
245
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
246
+ value
247
+ ))
248
+ elif hasattr(value, "to_dict"):
249
+ result[attr] = value.to_dict()
250
+ elif isinstance(value, dict):
251
+ result[attr] = dict(map(
252
+ lambda item: (item[0], item[1].to_dict())
253
+ if hasattr(item[1], "to_dict") else item,
254
+ value.items()
255
+ ))
256
+ else:
257
+ if attr in self.sensitive_list:
258
+ result[attr] = "****"
259
+ else:
260
+ result[attr] = value
261
+
262
+ return result
263
+
264
+ def to_str(self):
265
+ """Returns the string representation of the model"""
266
+ import simplejson as json
267
+ if six.PY2:
268
+ import sys
269
+ reload(sys)
270
+ sys.setdefaultencoding("utf-8")
271
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
272
+
273
+ def __repr__(self):
274
+ """For `print`"""
275
+ return self.to_str()
276
+
277
+ def __eq__(self, other):
278
+ """Returns true if both objects are equal"""
279
+ if not isinstance(other, ShowActiveDirectoryDomainResponse):
280
+ return False
281
+
282
+ return self.__dict__ == other.__dict__
283
+
284
+ def __ne__(self, other):
285
+ """Returns true if both objects are not equal"""
286
+ return not self == other
@@ -42,7 +42,7 @@ class ShowBackendTargetInfoResponse(SdkResponse):
42
42
 
43
43
  The model defined in huaweicloud sdk
44
44
 
45
- :param target_id: 绑定关系id
45
+ :param target_id: 绑定关系ID
46
46
  :type target_id: str
47
47
  :param creation_time: 绑定关系创建时间
48
48
  :type creation_time: str
@@ -88,7 +88,7 @@ class ShowBackendTargetInfoResponse(SdkResponse):
88
88
  def target_id(self):
89
89
  r"""Gets the target_id of this ShowBackendTargetInfoResponse.
90
90
 
91
- 绑定关系id
91
+ 绑定关系ID
92
92
 
93
93
  :return: The target_id of this ShowBackendTargetInfoResponse.
94
94
  :rtype: str
@@ -99,7 +99,7 @@ class ShowBackendTargetInfoResponse(SdkResponse):
99
99
  def target_id(self, target_id):
100
100
  r"""Sets the target_id of this ShowBackendTargetInfoResponse.
101
101
 
102
- 绑定关系id
102
+ 绑定关系ID
103
103
 
104
104
  :param target_id: The target_id of this ShowBackendTargetInfoResponse.
105
105
  :type target_id: str
@@ -39,7 +39,7 @@ class ShowBackendTargetInfoResponseBody:
39
39
 
40
40
  The model defined in huaweicloud sdk
41
41
 
42
- :param target_id: 绑定关系id
42
+ :param target_id: 绑定关系ID
43
43
  :type target_id: str
44
44
  :param creation_time: 绑定关系创建时间
45
45
  :type creation_time: str
@@ -80,7 +80,7 @@ class ShowBackendTargetInfoResponseBody:
80
80
  def target_id(self):
81
81
  r"""Gets the target_id of this ShowBackendTargetInfoResponseBody.
82
82
 
83
- 绑定关系id
83
+ 绑定关系ID
84
84
 
85
85
  :return: The target_id of this ShowBackendTargetInfoResponseBody.
86
86
  :rtype: str
@@ -91,7 +91,7 @@ class ShowBackendTargetInfoResponseBody:
91
91
  def target_id(self, target_id):
92
92
  r"""Sets the target_id of this ShowBackendTargetInfoResponseBody.
93
93
 
94
- 绑定关系id
94
+ 绑定关系ID
95
95
 
96
96
  :param target_id: The target_id of this ShowBackendTargetInfoResponseBody.
97
97
  :type target_id: str
@@ -0,0 +1,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowClientIpInfoRequest:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'share_id': 'str',
21
+ 'body': 'ShowClientIpInfoRequestBody'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'share_id': 'share_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, share_id=None, body=None):
30
+ r"""ShowClientIpInfoRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param share_id: 文件系统ID
35
+ :type share_id: str
36
+ :param body: Body of the ShowClientIpInfoRequest
37
+ :type body: :class:`huaweicloudsdksfsturbo.v1.ShowClientIpInfoRequestBody`
38
+ """
39
+
40
+
41
+
42
+ self._share_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.share_id = share_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def share_id(self):
52
+ r"""Gets the share_id of this ShowClientIpInfoRequest.
53
+
54
+ 文件系统ID
55
+
56
+ :return: The share_id of this ShowClientIpInfoRequest.
57
+ :rtype: str
58
+ """
59
+ return self._share_id
60
+
61
+ @share_id.setter
62
+ def share_id(self, share_id):
63
+ r"""Sets the share_id of this ShowClientIpInfoRequest.
64
+
65
+ 文件系统ID
66
+
67
+ :param share_id: The share_id of this ShowClientIpInfoRequest.
68
+ :type share_id: str
69
+ """
70
+ self._share_id = share_id
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this ShowClientIpInfoRequest.
75
+
76
+ :return: The body of this ShowClientIpInfoRequest.
77
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ShowClientIpInfoRequestBody`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this ShowClientIpInfoRequest.
84
+
85
+ :param body: The body of this ShowClientIpInfoRequest.
86
+ :type body: :class:`huaweicloudsdksfsturbo.v1.ShowClientIpInfoRequestBody`
87
+ """
88
+ self._body = body
89
+
90
+ def to_dict(self):
91
+ """Returns the model properties as a dict"""
92
+ result = {}
93
+
94
+ for attr, _ in six.iteritems(self.openapi_types):
95
+ value = getattr(self, attr)
96
+ if isinstance(value, list):
97
+ result[attr] = list(map(
98
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
99
+ value
100
+ ))
101
+ elif hasattr(value, "to_dict"):
102
+ result[attr] = value.to_dict()
103
+ elif isinstance(value, dict):
104
+ result[attr] = dict(map(
105
+ lambda item: (item[0], item[1].to_dict())
106
+ if hasattr(item[1], "to_dict") else item,
107
+ value.items()
108
+ ))
109
+ else:
110
+ if attr in self.sensitive_list:
111
+ result[attr] = "****"
112
+ else:
113
+ result[attr] = value
114
+
115
+ return result
116
+
117
+ def to_str(self):
118
+ """Returns the string representation of the model"""
119
+ import simplejson as json
120
+ if six.PY2:
121
+ import sys
122
+ reload(sys)
123
+ sys.setdefaultencoding("utf-8")
124
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
125
+
126
+ def __repr__(self):
127
+ """For `print`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, ShowClientIpInfoRequest):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other
@@ -0,0 +1,110 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowClientIpInfoRequestBody:
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
+ 'get_client_ips': 'ClientIpInfo'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'get_client_ips': 'get_client_ips'
25
+ }
26
+
27
+ def __init__(self, get_client_ips=None):
28
+ r"""ShowClientIpInfoRequestBody
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param get_client_ips:
33
+ :type get_client_ips: :class:`huaweicloudsdksfsturbo.v1.ClientIpInfo`
34
+ """
35
+
36
+
37
+
38
+ self._get_client_ips = None
39
+ self.discriminator = None
40
+
41
+ self.get_client_ips = get_client_ips
42
+
43
+ @property
44
+ def get_client_ips(self):
45
+ r"""Gets the get_client_ips of this ShowClientIpInfoRequestBody.
46
+
47
+ :return: The get_client_ips of this ShowClientIpInfoRequestBody.
48
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ClientIpInfo`
49
+ """
50
+ return self._get_client_ips
51
+
52
+ @get_client_ips.setter
53
+ def get_client_ips(self, get_client_ips):
54
+ r"""Sets the get_client_ips of this ShowClientIpInfoRequestBody.
55
+
56
+ :param get_client_ips: The get_client_ips of this ShowClientIpInfoRequestBody.
57
+ :type get_client_ips: :class:`huaweicloudsdksfsturbo.v1.ClientIpInfo`
58
+ """
59
+ self._get_client_ips = get_client_ips
60
+
61
+ def to_dict(self):
62
+ """Returns the model properties as a dict"""
63
+ result = {}
64
+
65
+ for attr, _ in six.iteritems(self.openapi_types):
66
+ value = getattr(self, attr)
67
+ if isinstance(value, list):
68
+ result[attr] = list(map(
69
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
70
+ value
71
+ ))
72
+ elif hasattr(value, "to_dict"):
73
+ result[attr] = value.to_dict()
74
+ elif isinstance(value, dict):
75
+ result[attr] = dict(map(
76
+ lambda item: (item[0], item[1].to_dict())
77
+ if hasattr(item[1], "to_dict") else item,
78
+ value.items()
79
+ ))
80
+ else:
81
+ if attr in self.sensitive_list:
82
+ result[attr] = "****"
83
+ else:
84
+ result[attr] = value
85
+
86
+ return result
87
+
88
+ def to_str(self):
89
+ """Returns the string representation of the model"""
90
+ import simplejson as json
91
+ if six.PY2:
92
+ import sys
93
+ reload(sys)
94
+ sys.setdefaultencoding("utf-8")
95
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
96
+
97
+ def __repr__(self):
98
+ """For `print`"""
99
+ return self.to_str()
100
+
101
+ def __eq__(self, other):
102
+ """Returns true if both objects are equal"""
103
+ if not isinstance(other, ShowClientIpInfoRequestBody):
104
+ return False
105
+
106
+ return self.__dict__ == other.__dict__
107
+
108
+ def __ne__(self, other):
109
+ """Returns true if both objects are not equal"""
110
+ return not self == other