huaweicloudsdksfsturbo 3.1.157__py2.py3-none-any.whl → 3.1.159__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.
- huaweicloudsdksfsturbo/v1/__init__.py +32 -0
- huaweicloudsdksfsturbo/v1/model/__init__.py +32 -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 +61 -3
- huaweicloudsdksfsturbo/v1/model/batch_add_shared_tags_request_body.py +7 -37
- huaweicloudsdksfsturbo/v1/model/bss_info.py +6 -6
- 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/client_ip_info.py +115 -0
- huaweicloudsdksfsturbo/v1/model/create_backend_target_request_body.py +3 -3
- huaweicloudsdksfsturbo/v1/model/create_backend_target_response.py +3 -3
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request_body.py +6 -6
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/create_fs_task_response.py +28 -3
- huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_req.py +3 -3
- huaweicloudsdksfsturbo/v1/model/create_ldap_config_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/create_ldap_config_request_body.py +21 -50
- huaweicloudsdksfsturbo/v1/model/create_ldap_config_response.py +31 -6
- huaweicloudsdksfsturbo/v1/model/create_perm_rule_request.py +3 -3
- 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 +6 -6
- huaweicloudsdksfsturbo/v1/model/delete_backend_target_response.py +3 -3
- huaweicloudsdksfsturbo/v1/model/delete_fs_dir_quota_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/delete_fs_dir_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/delete_fs_task_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/delete_fs_task_response.py +28 -1
- huaweicloudsdksfsturbo/v1/model/delete_ldap_config_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/delete_ldap_config_response.py +31 -6
- huaweicloudsdksfsturbo/v1/model/delete_perm_rule_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/delete_shared_tag_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/extend.py +6 -6
- huaweicloudsdksfsturbo/v1/model/get_sub_job_detail.py +21 -21
- huaweicloudsdksfsturbo/v1/model/list_backend_targets_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/list_fs_tasks_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/list_fs_tasks_response.py +28 -3
- huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/list_perm_rules_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/list_share_types_request.py +144 -0
- huaweicloudsdksfsturbo/v1/model/list_share_types_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request_body.py +1 -2
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_response.py +3 -3
- huaweicloudsdksfsturbo/v1/model/one_perm_rule_request_info.py +9 -12
- huaweicloudsdksfsturbo/v1/model/one_perm_rule_response_info.py +6 -6
- huaweicloudsdksfsturbo/v1/model/resource_tag.py +6 -6
- huaweicloudsdksfsturbo/v1/model/share.py +15 -15
- huaweicloudsdksfsturbo/v1/model/share_info.py +6 -6
- 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_response.py +3 -3
- huaweicloudsdksfsturbo/v1/model/show_backend_target_info_response_body.py +3 -3
- 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 +3 -3
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_usage_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/show_fs_task_response.py +28 -3
- huaweicloudsdksfsturbo/v1/model/show_job_detail_response.py +18 -18
- huaweicloudsdksfsturbo/v1/model/show_ldap_config_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/show_ldap_config_response.py +59 -34
- huaweicloudsdksfsturbo/v1/model/show_perm_rule_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/show_perm_rule_response.py +6 -6
- huaweicloudsdksfsturbo/v1/model/show_share_response.py +6 -6
- huaweicloudsdksfsturbo/v1/model/show_shared_tags_response.py +3 -32
- huaweicloudsdksfsturbo/v1/model/tag.py +3 -3
- 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 +3 -3
- huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request_body.py +6 -6
- huaweicloudsdksfsturbo/v1/model/update_hpc_share_request_body.py +3 -3
- huaweicloudsdksfsturbo/v1/model/update_ldap_config_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/update_ldap_config_request_body.py +18 -47
- huaweicloudsdksfsturbo/v1/model/update_ldap_config_response.py +31 -6
- huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request.py +6 -6
- huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request.py +6 -6
- huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_response.py +3 -3
- huaweicloudsdksfsturbo/v1/model/update_one_perm_rule_request_info.py +144 -0
- huaweicloudsdksfsturbo/v1/model/update_perm_rule_request.py +7 -7
- huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py +6 -6
- huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py +3 -0
- huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py +492 -41
- huaweicloudsdksfsturbo/v1/sfsturbo_client.py +492 -41
- {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.159.dist-info}/METADATA +2 -2
- {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.159.dist-info}/RECORD +105 -73
- {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.159.dist-info}/LICENSE +0 -0
- {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.159.dist-info}/WHEEL +0 -0
- {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.159.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,368 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShareTypeResponseBody:
|
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_type': 'str',
|
21
|
+
'scenario': 'str',
|
22
|
+
'attribution': 'ShareTypesAttribution',
|
23
|
+
'spec_id': 'str',
|
24
|
+
'share_type_usage': 'ShareTypeUsage',
|
25
|
+
'support_period': 'bool',
|
26
|
+
'available_zones': 'list[ShareTypeAvailableZone]',
|
27
|
+
'spec_code': 'str',
|
28
|
+
'storage_media': 'str',
|
29
|
+
'features': 'list[str]'
|
30
|
+
}
|
31
|
+
|
32
|
+
attribute_map = {
|
33
|
+
'share_type': 'share_type',
|
34
|
+
'scenario': 'scenario',
|
35
|
+
'attribution': 'attribution',
|
36
|
+
'spec_id': 'spec_id',
|
37
|
+
'share_type_usage': 'share_type_usage',
|
38
|
+
'support_period': 'support_period',
|
39
|
+
'available_zones': 'available_zones',
|
40
|
+
'spec_code': 'spec_code',
|
41
|
+
'storage_media': 'storage_media',
|
42
|
+
'features': 'features'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, share_type=None, scenario=None, attribution=None, spec_id=None, share_type_usage=None, support_period=None, available_zones=None, spec_code=None, storage_media=None, features=None):
|
46
|
+
r"""ShareTypeResponseBody
|
47
|
+
|
48
|
+
The model defined in huaweicloud sdk
|
49
|
+
|
50
|
+
:param share_type: 文件系统类型
|
51
|
+
:type share_type: str
|
52
|
+
:param scenario: 文件系统场景
|
53
|
+
:type scenario: str
|
54
|
+
:param attribution:
|
55
|
+
:type attribution: :class:`huaweicloudsdksfsturbo.v1.ShareTypesAttribution`
|
56
|
+
:param spec_id: 文件系统规格ID
|
57
|
+
:type spec_id: str
|
58
|
+
:param share_type_usage:
|
59
|
+
:type share_type_usage: :class:`huaweicloudsdksfsturbo.v1.ShareTypeUsage`
|
60
|
+
:param support_period: 是否支持包周期
|
61
|
+
:type support_period: bool
|
62
|
+
:param available_zones: 可用区
|
63
|
+
:type available_zones: list[:class:`huaweicloudsdksfsturbo.v1.ShareTypeAvailableZone`]
|
64
|
+
:param spec_code: 文件系统规格编码
|
65
|
+
:type spec_code: str
|
66
|
+
:param storage_media: 存储类型
|
67
|
+
:type storage_media: str
|
68
|
+
:param features: 实例支持的特性列表
|
69
|
+
:type features: list[str]
|
70
|
+
"""
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
self._share_type = None
|
75
|
+
self._scenario = None
|
76
|
+
self._attribution = None
|
77
|
+
self._spec_id = None
|
78
|
+
self._share_type_usage = None
|
79
|
+
self._support_period = None
|
80
|
+
self._available_zones = None
|
81
|
+
self._spec_code = None
|
82
|
+
self._storage_media = None
|
83
|
+
self._features = None
|
84
|
+
self.discriminator = None
|
85
|
+
|
86
|
+
if share_type is not None:
|
87
|
+
self.share_type = share_type
|
88
|
+
if scenario is not None:
|
89
|
+
self.scenario = scenario
|
90
|
+
if attribution is not None:
|
91
|
+
self.attribution = attribution
|
92
|
+
if spec_id is not None:
|
93
|
+
self.spec_id = spec_id
|
94
|
+
if share_type_usage is not None:
|
95
|
+
self.share_type_usage = share_type_usage
|
96
|
+
if support_period is not None:
|
97
|
+
self.support_period = support_period
|
98
|
+
if available_zones is not None:
|
99
|
+
self.available_zones = available_zones
|
100
|
+
if spec_code is not None:
|
101
|
+
self.spec_code = spec_code
|
102
|
+
if storage_media is not None:
|
103
|
+
self.storage_media = storage_media
|
104
|
+
if features is not None:
|
105
|
+
self.features = features
|
106
|
+
|
107
|
+
@property
|
108
|
+
def share_type(self):
|
109
|
+
r"""Gets the share_type of this ShareTypeResponseBody.
|
110
|
+
|
111
|
+
文件系统类型
|
112
|
+
|
113
|
+
:return: The share_type of this ShareTypeResponseBody.
|
114
|
+
:rtype: str
|
115
|
+
"""
|
116
|
+
return self._share_type
|
117
|
+
|
118
|
+
@share_type.setter
|
119
|
+
def share_type(self, share_type):
|
120
|
+
r"""Sets the share_type of this ShareTypeResponseBody.
|
121
|
+
|
122
|
+
文件系统类型
|
123
|
+
|
124
|
+
:param share_type: The share_type of this ShareTypeResponseBody.
|
125
|
+
:type share_type: str
|
126
|
+
"""
|
127
|
+
self._share_type = share_type
|
128
|
+
|
129
|
+
@property
|
130
|
+
def scenario(self):
|
131
|
+
r"""Gets the scenario of this ShareTypeResponseBody.
|
132
|
+
|
133
|
+
文件系统场景
|
134
|
+
|
135
|
+
:return: The scenario of this ShareTypeResponseBody.
|
136
|
+
:rtype: str
|
137
|
+
"""
|
138
|
+
return self._scenario
|
139
|
+
|
140
|
+
@scenario.setter
|
141
|
+
def scenario(self, scenario):
|
142
|
+
r"""Sets the scenario of this ShareTypeResponseBody.
|
143
|
+
|
144
|
+
文件系统场景
|
145
|
+
|
146
|
+
:param scenario: The scenario of this ShareTypeResponseBody.
|
147
|
+
:type scenario: str
|
148
|
+
"""
|
149
|
+
self._scenario = scenario
|
150
|
+
|
151
|
+
@property
|
152
|
+
def attribution(self):
|
153
|
+
r"""Gets the attribution of this ShareTypeResponseBody.
|
154
|
+
|
155
|
+
:return: The attribution of this ShareTypeResponseBody.
|
156
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ShareTypesAttribution`
|
157
|
+
"""
|
158
|
+
return self._attribution
|
159
|
+
|
160
|
+
@attribution.setter
|
161
|
+
def attribution(self, attribution):
|
162
|
+
r"""Sets the attribution of this ShareTypeResponseBody.
|
163
|
+
|
164
|
+
:param attribution: The attribution of this ShareTypeResponseBody.
|
165
|
+
:type attribution: :class:`huaweicloudsdksfsturbo.v1.ShareTypesAttribution`
|
166
|
+
"""
|
167
|
+
self._attribution = attribution
|
168
|
+
|
169
|
+
@property
|
170
|
+
def spec_id(self):
|
171
|
+
r"""Gets the spec_id of this ShareTypeResponseBody.
|
172
|
+
|
173
|
+
文件系统规格ID
|
174
|
+
|
175
|
+
:return: The spec_id of this ShareTypeResponseBody.
|
176
|
+
:rtype: str
|
177
|
+
"""
|
178
|
+
return self._spec_id
|
179
|
+
|
180
|
+
@spec_id.setter
|
181
|
+
def spec_id(self, spec_id):
|
182
|
+
r"""Sets the spec_id of this ShareTypeResponseBody.
|
183
|
+
|
184
|
+
文件系统规格ID
|
185
|
+
|
186
|
+
:param spec_id: The spec_id of this ShareTypeResponseBody.
|
187
|
+
:type spec_id: str
|
188
|
+
"""
|
189
|
+
self._spec_id = spec_id
|
190
|
+
|
191
|
+
@property
|
192
|
+
def share_type_usage(self):
|
193
|
+
r"""Gets the share_type_usage of this ShareTypeResponseBody.
|
194
|
+
|
195
|
+
:return: The share_type_usage of this ShareTypeResponseBody.
|
196
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ShareTypeUsage`
|
197
|
+
"""
|
198
|
+
return self._share_type_usage
|
199
|
+
|
200
|
+
@share_type_usage.setter
|
201
|
+
def share_type_usage(self, share_type_usage):
|
202
|
+
r"""Sets the share_type_usage of this ShareTypeResponseBody.
|
203
|
+
|
204
|
+
:param share_type_usage: The share_type_usage of this ShareTypeResponseBody.
|
205
|
+
:type share_type_usage: :class:`huaweicloudsdksfsturbo.v1.ShareTypeUsage`
|
206
|
+
"""
|
207
|
+
self._share_type_usage = share_type_usage
|
208
|
+
|
209
|
+
@property
|
210
|
+
def support_period(self):
|
211
|
+
r"""Gets the support_period of this ShareTypeResponseBody.
|
212
|
+
|
213
|
+
是否支持包周期
|
214
|
+
|
215
|
+
:return: The support_period of this ShareTypeResponseBody.
|
216
|
+
:rtype: bool
|
217
|
+
"""
|
218
|
+
return self._support_period
|
219
|
+
|
220
|
+
@support_period.setter
|
221
|
+
def support_period(self, support_period):
|
222
|
+
r"""Sets the support_period of this ShareTypeResponseBody.
|
223
|
+
|
224
|
+
是否支持包周期
|
225
|
+
|
226
|
+
:param support_period: The support_period of this ShareTypeResponseBody.
|
227
|
+
:type support_period: bool
|
228
|
+
"""
|
229
|
+
self._support_period = support_period
|
230
|
+
|
231
|
+
@property
|
232
|
+
def available_zones(self):
|
233
|
+
r"""Gets the available_zones of this ShareTypeResponseBody.
|
234
|
+
|
235
|
+
可用区
|
236
|
+
|
237
|
+
:return: The available_zones of this ShareTypeResponseBody.
|
238
|
+
:rtype: list[:class:`huaweicloudsdksfsturbo.v1.ShareTypeAvailableZone`]
|
239
|
+
"""
|
240
|
+
return self._available_zones
|
241
|
+
|
242
|
+
@available_zones.setter
|
243
|
+
def available_zones(self, available_zones):
|
244
|
+
r"""Sets the available_zones of this ShareTypeResponseBody.
|
245
|
+
|
246
|
+
可用区
|
247
|
+
|
248
|
+
:param available_zones: The available_zones of this ShareTypeResponseBody.
|
249
|
+
:type available_zones: list[:class:`huaweicloudsdksfsturbo.v1.ShareTypeAvailableZone`]
|
250
|
+
"""
|
251
|
+
self._available_zones = available_zones
|
252
|
+
|
253
|
+
@property
|
254
|
+
def spec_code(self):
|
255
|
+
r"""Gets the spec_code of this ShareTypeResponseBody.
|
256
|
+
|
257
|
+
文件系统规格编码
|
258
|
+
|
259
|
+
:return: The spec_code of this ShareTypeResponseBody.
|
260
|
+
:rtype: str
|
261
|
+
"""
|
262
|
+
return self._spec_code
|
263
|
+
|
264
|
+
@spec_code.setter
|
265
|
+
def spec_code(self, spec_code):
|
266
|
+
r"""Sets the spec_code of this ShareTypeResponseBody.
|
267
|
+
|
268
|
+
文件系统规格编码
|
269
|
+
|
270
|
+
:param spec_code: The spec_code of this ShareTypeResponseBody.
|
271
|
+
:type spec_code: str
|
272
|
+
"""
|
273
|
+
self._spec_code = spec_code
|
274
|
+
|
275
|
+
@property
|
276
|
+
def storage_media(self):
|
277
|
+
r"""Gets the storage_media of this ShareTypeResponseBody.
|
278
|
+
|
279
|
+
存储类型
|
280
|
+
|
281
|
+
:return: The storage_media of this ShareTypeResponseBody.
|
282
|
+
:rtype: str
|
283
|
+
"""
|
284
|
+
return self._storage_media
|
285
|
+
|
286
|
+
@storage_media.setter
|
287
|
+
def storage_media(self, storage_media):
|
288
|
+
r"""Sets the storage_media of this ShareTypeResponseBody.
|
289
|
+
|
290
|
+
存储类型
|
291
|
+
|
292
|
+
:param storage_media: The storage_media of this ShareTypeResponseBody.
|
293
|
+
:type storage_media: str
|
294
|
+
"""
|
295
|
+
self._storage_media = storage_media
|
296
|
+
|
297
|
+
@property
|
298
|
+
def features(self):
|
299
|
+
r"""Gets the features of this ShareTypeResponseBody.
|
300
|
+
|
301
|
+
实例支持的特性列表
|
302
|
+
|
303
|
+
:return: The features of this ShareTypeResponseBody.
|
304
|
+
:rtype: list[str]
|
305
|
+
"""
|
306
|
+
return self._features
|
307
|
+
|
308
|
+
@features.setter
|
309
|
+
def features(self, features):
|
310
|
+
r"""Sets the features of this ShareTypeResponseBody.
|
311
|
+
|
312
|
+
实例支持的特性列表
|
313
|
+
|
314
|
+
:param features: The features of this ShareTypeResponseBody.
|
315
|
+
:type features: list[str]
|
316
|
+
"""
|
317
|
+
self._features = features
|
318
|
+
|
319
|
+
def to_dict(self):
|
320
|
+
"""Returns the model properties as a dict"""
|
321
|
+
result = {}
|
322
|
+
|
323
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
324
|
+
value = getattr(self, attr)
|
325
|
+
if isinstance(value, list):
|
326
|
+
result[attr] = list(map(
|
327
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
328
|
+
value
|
329
|
+
))
|
330
|
+
elif hasattr(value, "to_dict"):
|
331
|
+
result[attr] = value.to_dict()
|
332
|
+
elif isinstance(value, dict):
|
333
|
+
result[attr] = dict(map(
|
334
|
+
lambda item: (item[0], item[1].to_dict())
|
335
|
+
if hasattr(item[1], "to_dict") else item,
|
336
|
+
value.items()
|
337
|
+
))
|
338
|
+
else:
|
339
|
+
if attr in self.sensitive_list:
|
340
|
+
result[attr] = "****"
|
341
|
+
else:
|
342
|
+
result[attr] = value
|
343
|
+
|
344
|
+
return result
|
345
|
+
|
346
|
+
def to_str(self):
|
347
|
+
"""Returns the string representation of the model"""
|
348
|
+
import simplejson as json
|
349
|
+
if six.PY2:
|
350
|
+
import sys
|
351
|
+
reload(sys)
|
352
|
+
sys.setdefaultencoding("utf-8")
|
353
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
354
|
+
|
355
|
+
def __repr__(self):
|
356
|
+
"""For `print`"""
|
357
|
+
return self.to_str()
|
358
|
+
|
359
|
+
def __eq__(self, other):
|
360
|
+
"""Returns true if both objects are equal"""
|
361
|
+
if not isinstance(other, ShareTypeResponseBody):
|
362
|
+
return False
|
363
|
+
|
364
|
+
return self.__dict__ == other.__dict__
|
365
|
+
|
366
|
+
def __ne__(self, other):
|
367
|
+
"""Returns true if both objects are not equal"""
|
368
|
+
return not self == other
|
@@ -0,0 +1,161 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShareTypeUsage:
|
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': 'ShareTypeUsageCapacity',
|
21
|
+
'bandwidth': 'ShareTypeUsageBandwidth',
|
22
|
+
'quantity': 'ShareTypeUsageQuantity'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'capacity': 'capacity',
|
27
|
+
'bandwidth': 'bandwidth',
|
28
|
+
'quantity': 'quantity'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, capacity=None, bandwidth=None, quantity=None):
|
32
|
+
r"""ShareTypeUsage
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param capacity:
|
37
|
+
:type capacity: :class:`huaweicloudsdksfsturbo.v1.ShareTypeUsageCapacity`
|
38
|
+
:param bandwidth:
|
39
|
+
:type bandwidth: :class:`huaweicloudsdksfsturbo.v1.ShareTypeUsageBandwidth`
|
40
|
+
:param quantity:
|
41
|
+
:type quantity: :class:`huaweicloudsdksfsturbo.v1.ShareTypeUsageQuantity`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._capacity = None
|
47
|
+
self._bandwidth = None
|
48
|
+
self._quantity = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if capacity is not None:
|
52
|
+
self.capacity = capacity
|
53
|
+
if bandwidth is not None:
|
54
|
+
self.bandwidth = bandwidth
|
55
|
+
if quantity is not None:
|
56
|
+
self.quantity = quantity
|
57
|
+
|
58
|
+
@property
|
59
|
+
def capacity(self):
|
60
|
+
r"""Gets the capacity of this ShareTypeUsage.
|
61
|
+
|
62
|
+
:return: The capacity of this ShareTypeUsage.
|
63
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ShareTypeUsageCapacity`
|
64
|
+
"""
|
65
|
+
return self._capacity
|
66
|
+
|
67
|
+
@capacity.setter
|
68
|
+
def capacity(self, capacity):
|
69
|
+
r"""Sets the capacity of this ShareTypeUsage.
|
70
|
+
|
71
|
+
:param capacity: The capacity of this ShareTypeUsage.
|
72
|
+
:type capacity: :class:`huaweicloudsdksfsturbo.v1.ShareTypeUsageCapacity`
|
73
|
+
"""
|
74
|
+
self._capacity = capacity
|
75
|
+
|
76
|
+
@property
|
77
|
+
def bandwidth(self):
|
78
|
+
r"""Gets the bandwidth of this ShareTypeUsage.
|
79
|
+
|
80
|
+
:return: The bandwidth of this ShareTypeUsage.
|
81
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ShareTypeUsageBandwidth`
|
82
|
+
"""
|
83
|
+
return self._bandwidth
|
84
|
+
|
85
|
+
@bandwidth.setter
|
86
|
+
def bandwidth(self, bandwidth):
|
87
|
+
r"""Sets the bandwidth of this ShareTypeUsage.
|
88
|
+
|
89
|
+
:param bandwidth: The bandwidth of this ShareTypeUsage.
|
90
|
+
:type bandwidth: :class:`huaweicloudsdksfsturbo.v1.ShareTypeUsageBandwidth`
|
91
|
+
"""
|
92
|
+
self._bandwidth = bandwidth
|
93
|
+
|
94
|
+
@property
|
95
|
+
def quantity(self):
|
96
|
+
r"""Gets the quantity of this ShareTypeUsage.
|
97
|
+
|
98
|
+
:return: The quantity of this ShareTypeUsage.
|
99
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ShareTypeUsageQuantity`
|
100
|
+
"""
|
101
|
+
return self._quantity
|
102
|
+
|
103
|
+
@quantity.setter
|
104
|
+
def quantity(self, quantity):
|
105
|
+
r"""Sets the quantity of this ShareTypeUsage.
|
106
|
+
|
107
|
+
:param quantity: The quantity of this ShareTypeUsage.
|
108
|
+
:type quantity: :class:`huaweicloudsdksfsturbo.v1.ShareTypeUsageQuantity`
|
109
|
+
"""
|
110
|
+
self._quantity = quantity
|
111
|
+
|
112
|
+
def to_dict(self):
|
113
|
+
"""Returns the model properties as a dict"""
|
114
|
+
result = {}
|
115
|
+
|
116
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
117
|
+
value = getattr(self, attr)
|
118
|
+
if isinstance(value, list):
|
119
|
+
result[attr] = list(map(
|
120
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
121
|
+
value
|
122
|
+
))
|
123
|
+
elif hasattr(value, "to_dict"):
|
124
|
+
result[attr] = value.to_dict()
|
125
|
+
elif isinstance(value, dict):
|
126
|
+
result[attr] = dict(map(
|
127
|
+
lambda item: (item[0], item[1].to_dict())
|
128
|
+
if hasattr(item[1], "to_dict") else item,
|
129
|
+
value.items()
|
130
|
+
))
|
131
|
+
else:
|
132
|
+
if attr in self.sensitive_list:
|
133
|
+
result[attr] = "****"
|
134
|
+
else:
|
135
|
+
result[attr] = value
|
136
|
+
|
137
|
+
return result
|
138
|
+
|
139
|
+
def to_str(self):
|
140
|
+
"""Returns the string representation of the model"""
|
141
|
+
import simplejson as json
|
142
|
+
if six.PY2:
|
143
|
+
import sys
|
144
|
+
reload(sys)
|
145
|
+
sys.setdefaultencoding("utf-8")
|
146
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
147
|
+
|
148
|
+
def __repr__(self):
|
149
|
+
"""For `print`"""
|
150
|
+
return self.to_str()
|
151
|
+
|
152
|
+
def __eq__(self, other):
|
153
|
+
"""Returns true if both objects are equal"""
|
154
|
+
if not isinstance(other, ShareTypeUsage):
|
155
|
+
return False
|
156
|
+
|
157
|
+
return self.__dict__ == other.__dict__
|
158
|
+
|
159
|
+
def __ne__(self, other):
|
160
|
+
"""Returns true if both objects are not equal"""
|
161
|
+
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 ShareTypeUsageBandwidth:
|
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"""ShareTypeUsageBandwidth
|
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 ShareTypeUsageBandwidth.
|
54
|
+
|
55
|
+
总带宽
|
56
|
+
|
57
|
+
:return: The total of this ShareTypeUsageBandwidth.
|
58
|
+
:rtype: int
|
59
|
+
"""
|
60
|
+
return self._total
|
61
|
+
|
62
|
+
@total.setter
|
63
|
+
def total(self, total):
|
64
|
+
r"""Sets the total of this ShareTypeUsageBandwidth.
|
65
|
+
|
66
|
+
总带宽
|
67
|
+
|
68
|
+
:param total: The total of this ShareTypeUsageBandwidth.
|
69
|
+
:type total: int
|
70
|
+
"""
|
71
|
+
self._total = total
|
72
|
+
|
73
|
+
@property
|
74
|
+
def usage(self):
|
75
|
+
r"""Gets the usage of this ShareTypeUsageBandwidth.
|
76
|
+
|
77
|
+
已用带宽
|
78
|
+
|
79
|
+
:return: The usage of this ShareTypeUsageBandwidth.
|
80
|
+
:rtype: int
|
81
|
+
"""
|
82
|
+
return self._usage
|
83
|
+
|
84
|
+
@usage.setter
|
85
|
+
def usage(self, usage):
|
86
|
+
r"""Sets the usage of this ShareTypeUsageBandwidth.
|
87
|
+
|
88
|
+
已用带宽
|
89
|
+
|
90
|
+
:param usage: The usage of this ShareTypeUsageBandwidth.
|
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, ShareTypeUsageBandwidth):
|
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
|