huaweicloudsdksfsturbo 3.1.86__py2.py3-none-any.whl → 3.1.132__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- huaweicloudsdksfsturbo/v1/__init__.py +17 -1
- huaweicloudsdksfsturbo/v1/model/__init__.py +17 -1
- huaweicloudsdksfsturbo/v1/model/auto_export_policy.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_body.py +6 -6
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_response.py +6 -6
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_request_body.py +3 -3
- huaweicloudsdksfsturbo/v1/model/create_fs_task_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_req.py +34 -9
- huaweicloudsdksfsturbo/v1/model/create_ldap_config_request_body.py +122 -6
- huaweicloudsdksfsturbo/v1/model/create_ldap_config_response.py +3 -3
- huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_response.py +112 -0
- huaweicloudsdksfsturbo/v1/model/delete_ldap_config_response.py +3 -3
- huaweicloudsdksfsturbo/v1/model/delete_shared_tag_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/extend.py +3 -3
- huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_request.py +61 -3
- huaweicloudsdksfsturbo/v1/model/list_perm_rules_request.py +61 -3
- huaweicloudsdksfsturbo/v1/model/list_shared_tags_request.py +61 -1
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request.py +111 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request_body.py +260 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_resource.py +202 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_response.py +170 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_request.py +6 -6
- huaweicloudsdksfsturbo/v1/model/metadata.py +6 -6
- huaweicloudsdksfsturbo/v1/model/obs_data_repository.py +53 -3
- huaweicloudsdksfsturbo/v1/model/obs_data_repository_policy.py +111 -0
- huaweicloudsdksfsturbo/v1/model/obs_target_attributes.py +202 -0
- huaweicloudsdksfsturbo/v1/model/one_perm_rule_request_info.py +6 -6
- huaweicloudsdksfsturbo/v1/model/one_perm_rule_response_info.py +6 -6
- huaweicloudsdksfsturbo/v1/model/req_update_hpc_cache_data.py +6 -35
- huaweicloudsdksfsturbo/v1/model/resource_tag.py +6 -6
- huaweicloudsdksfsturbo/v1/model/share.py +18 -18
- huaweicloudsdksfsturbo/v1/model/share_info.py +185 -15
- huaweicloudsdksfsturbo/v1/model/share_info_feature.py +173 -0
- huaweicloudsdksfsturbo/v1/model/share_info_features.py +111 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_response.py +6 -6
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_response.py +9 -9
- huaweicloudsdksfsturbo/v1/model/show_ldap_config_response.py +119 -3
- huaweicloudsdksfsturbo/v1/model/show_perm_rule_response.py +6 -6
- huaweicloudsdksfsturbo/v1/model/show_share_response.py +185 -15
- huaweicloudsdksfsturbo/v1/model/tag.py +3 -3
- huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request_body.py +6 -6
- huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_response.py +6 -6
- huaweicloudsdksfsturbo/v1/model/update_hpc_share_request_body.py +3 -3
- huaweicloudsdksfsturbo/v1/model/update_ldap_config_request_body.py +122 -6
- huaweicloudsdksfsturbo/v1/model/update_ldap_config_response.py +3 -3
- huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request.py +167 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request_body.py +110 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_response.py +166 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request.py +167 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request_body.py +110 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_response.py +166 -0
- huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py +6 -6
- huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py +21 -0
- huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py +311 -13
- huaweicloudsdksfsturbo/v1/sfsturbo_client.py +311 -13
- {huaweicloudsdksfsturbo-3.1.86.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdksfsturbo-3.1.86.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/RECORD +63 -47
- {huaweicloudsdksfsturbo-3.1.86.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/WHEEL +1 -1
- huaweicloudsdksfsturbo/v1/model/config_obs_target.py +0 -198
- {huaweicloudsdksfsturbo-3.1.86.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdksfsturbo-3.1.86.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/top_level.txt +0 -0
@@ -39,7 +39,13 @@ class ShareInfo:
|
|
39
39
|
'subnet_id': 'str',
|
40
40
|
'vpc_id': 'str',
|
41
41
|
'enterprise_project_id': 'str',
|
42
|
-
'tags': 'list[ResourceTag]'
|
42
|
+
'tags': 'list[ResourceTag]',
|
43
|
+
'optional_endpoint': 'str',
|
44
|
+
'hpc_bw': 'str',
|
45
|
+
'instance_id': 'str',
|
46
|
+
'instance_type': 'str',
|
47
|
+
'status_detail': 'str',
|
48
|
+
'features': 'ShareInfoFeatures'
|
43
49
|
}
|
44
50
|
|
45
51
|
attribute_map = {
|
@@ -65,10 +71,16 @@ class ShareInfo:
|
|
65
71
|
'subnet_id': 'subnet_id',
|
66
72
|
'vpc_id': 'vpc_id',
|
67
73
|
'enterprise_project_id': 'enterprise_project_id',
|
68
|
-
'tags': 'tags'
|
74
|
+
'tags': 'tags',
|
75
|
+
'optional_endpoint': 'optional_endpoint',
|
76
|
+
'hpc_bw': 'hpc_bw',
|
77
|
+
'instance_id': 'instanceId',
|
78
|
+
'instance_type': 'instanceType',
|
79
|
+
'status_detail': 'statusDetail',
|
80
|
+
'features': 'features'
|
69
81
|
}
|
70
82
|
|
71
|
-
def __init__(self, action_progress=None, version=None, avail_capacity=None, availability_zone=None, az_name=None, created_at=None, crypt_key_id=None, expand_type=None, export_location=None, id=None, name=None, pay_model=None, region=None, security_group_id=None, share_proto=None, share_type=None, size=None, status=None, sub_status=None, subnet_id=None, vpc_id=None, enterprise_project_id=None, tags=None):
|
83
|
+
def __init__(self, action_progress=None, version=None, avail_capacity=None, availability_zone=None, az_name=None, created_at=None, crypt_key_id=None, expand_type=None, export_location=None, id=None, name=None, pay_model=None, region=None, security_group_id=None, share_proto=None, share_type=None, size=None, status=None, sub_status=None, subnet_id=None, vpc_id=None, enterprise_project_id=None, tags=None, optional_endpoint=None, hpc_bw=None, instance_id=None, instance_type=None, status_detail=None, features=None):
|
72
84
|
"""ShareInfo
|
73
85
|
|
74
86
|
The model defined in huaweicloud sdk
|
@@ -87,15 +99,15 @@ class ShareInfo:
|
|
87
99
|
:type created_at: datetime
|
88
100
|
:param crypt_key_id: 用户指定的加密密钥ID,非加密盘时不返回。
|
89
101
|
:type crypt_key_id: str
|
90
|
-
:param expand_type:
|
102
|
+
:param expand_type: 如果是增强版文件系统,该字段返回bandwidth;如果是20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB,该字段返回hpc;否则不返回。
|
91
103
|
:type expand_type: str
|
92
|
-
:param export_location: SFS Turbo
|
104
|
+
:param export_location: SFS Turbo文件系统的挂载端点。例如\"192.168.0.90:/\"。如果文件系统正在创建,该字段不返回。
|
93
105
|
:type export_location: str
|
94
106
|
:param id: SFS Turbo的文件系统ID。
|
95
107
|
:type id: str
|
96
108
|
:param name: 创建时指定的SFS Turbo文件系统名称。
|
97
109
|
:type name: str
|
98
|
-
:param pay_model: SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'
|
110
|
+
:param pay_model: SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。如果文件系统正在创建,该字段不返回。
|
99
111
|
:type pay_model: str
|
100
112
|
:param region: SFS Turbo文件系统所在区域。
|
101
113
|
:type region: str
|
@@ -109,7 +121,7 @@ class ShareInfo:
|
|
109
121
|
:type size: str
|
110
122
|
:param status: SFS Turbo文件系统的状态。'100'表示创建中,'200'表示可用,'303'表示创建失败,'800'表示实例被冻结。
|
111
123
|
:type status: str
|
112
|
-
:param sub_status: SFS Turbo
|
124
|
+
:param sub_status: SFS Turbo文件系统的子状态。当用户未对文件系统有修改类操作时,该字段不返回。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中。 '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功。 '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败。
|
113
125
|
:type sub_status: str
|
114
126
|
:param subnet_id: 用户指定的子网的网络ID。
|
115
127
|
:type subnet_id: str
|
@@ -119,6 +131,18 @@ class ShareInfo:
|
|
119
131
|
:type enterprise_project_id: str
|
120
132
|
:param tags: tag标签的列表。
|
121
133
|
:type tags: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
|
134
|
+
:param optional_endpoint: 可选的挂载IP地址。上一代文件系统规格类型不返回该字段。
|
135
|
+
:type optional_endpoint: str
|
136
|
+
:param hpc_bw: 文件系统的带宽规格。 - \"20M\"表示20MB/s/TiB - \"40M\"表示40MB/s/TiB - \"125M\"表示125MB/s/TiB - \"250M\"表示250MB/s/TiB - \"500M\"表示500MB/s/TiB - \"1000M\"表示1000MB/s/TiB - \"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"表示HPC缓存型的带宽规格。
|
137
|
+
:type hpc_bw: str
|
138
|
+
:param instance_id: 文件系统规格的节点id,为预留字段,不具备实际含义。
|
139
|
+
:type instance_id: str
|
140
|
+
:param instance_type: 文件系统规格的节点类型,为预留字段,不具备实际含义。
|
141
|
+
:type instance_type: str
|
142
|
+
:param status_detail: 文件系统的请求ID,为预留字段,不具备实际含义。
|
143
|
+
:type status_detail: str
|
144
|
+
:param features:
|
145
|
+
:type features: :class:`huaweicloudsdksfsturbo.v1.ShareInfoFeatures`
|
122
146
|
"""
|
123
147
|
|
124
148
|
|
@@ -146,6 +170,12 @@ class ShareInfo:
|
|
146
170
|
self._vpc_id = None
|
147
171
|
self._enterprise_project_id = None
|
148
172
|
self._tags = None
|
173
|
+
self._optional_endpoint = None
|
174
|
+
self._hpc_bw = None
|
175
|
+
self._instance_id = None
|
176
|
+
self._instance_type = None
|
177
|
+
self._status_detail = None
|
178
|
+
self._features = None
|
149
179
|
self.discriminator = None
|
150
180
|
|
151
181
|
if action_progress is not None:
|
@@ -194,6 +224,18 @@ class ShareInfo:
|
|
194
224
|
self.enterprise_project_id = enterprise_project_id
|
195
225
|
if tags is not None:
|
196
226
|
self.tags = tags
|
227
|
+
if optional_endpoint is not None:
|
228
|
+
self.optional_endpoint = optional_endpoint
|
229
|
+
if hpc_bw is not None:
|
230
|
+
self.hpc_bw = hpc_bw
|
231
|
+
if instance_id is not None:
|
232
|
+
self.instance_id = instance_id
|
233
|
+
if instance_type is not None:
|
234
|
+
self.instance_type = instance_type
|
235
|
+
if status_detail is not None:
|
236
|
+
self.status_detail = status_detail
|
237
|
+
if features is not None:
|
238
|
+
self.features = features
|
197
239
|
|
198
240
|
@property
|
199
241
|
def action_progress(self):
|
@@ -349,7 +391,7 @@ class ShareInfo:
|
|
349
391
|
def expand_type(self):
|
350
392
|
"""Gets the expand_type of this ShareInfo.
|
351
393
|
|
352
|
-
|
394
|
+
如果是增强版文件系统,该字段返回bandwidth;如果是20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB,该字段返回hpc;否则不返回。
|
353
395
|
|
354
396
|
:return: The expand_type of this ShareInfo.
|
355
397
|
:rtype: str
|
@@ -360,7 +402,7 @@ class ShareInfo:
|
|
360
402
|
def expand_type(self, expand_type):
|
361
403
|
"""Sets the expand_type of this ShareInfo.
|
362
404
|
|
363
|
-
|
405
|
+
如果是增强版文件系统,该字段返回bandwidth;如果是20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB,该字段返回hpc;否则不返回。
|
364
406
|
|
365
407
|
:param expand_type: The expand_type of this ShareInfo.
|
366
408
|
:type expand_type: str
|
@@ -371,7 +413,7 @@ class ShareInfo:
|
|
371
413
|
def export_location(self):
|
372
414
|
"""Gets the export_location of this ShareInfo.
|
373
415
|
|
374
|
-
SFS Turbo
|
416
|
+
SFS Turbo文件系统的挂载端点。例如\"192.168.0.90:/\"。如果文件系统正在创建,该字段不返回。
|
375
417
|
|
376
418
|
:return: The export_location of this ShareInfo.
|
377
419
|
:rtype: str
|
@@ -382,7 +424,7 @@ class ShareInfo:
|
|
382
424
|
def export_location(self, export_location):
|
383
425
|
"""Sets the export_location of this ShareInfo.
|
384
426
|
|
385
|
-
SFS Turbo
|
427
|
+
SFS Turbo文件系统的挂载端点。例如\"192.168.0.90:/\"。如果文件系统正在创建,该字段不返回。
|
386
428
|
|
387
429
|
:param export_location: The export_location of this ShareInfo.
|
388
430
|
:type export_location: str
|
@@ -437,7 +479,7 @@ class ShareInfo:
|
|
437
479
|
def pay_model(self):
|
438
480
|
"""Gets the pay_model of this ShareInfo.
|
439
481
|
|
440
|
-
SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'
|
482
|
+
SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。如果文件系统正在创建,该字段不返回。
|
441
483
|
|
442
484
|
:return: The pay_model of this ShareInfo.
|
443
485
|
:rtype: str
|
@@ -448,7 +490,7 @@ class ShareInfo:
|
|
448
490
|
def pay_model(self, pay_model):
|
449
491
|
"""Sets the pay_model of this ShareInfo.
|
450
492
|
|
451
|
-
SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'
|
493
|
+
SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。如果文件系统正在创建,该字段不返回。
|
452
494
|
|
453
495
|
:param pay_model: The pay_model of this ShareInfo.
|
454
496
|
:type pay_model: str
|
@@ -591,7 +633,7 @@ class ShareInfo:
|
|
591
633
|
def sub_status(self):
|
592
634
|
"""Gets the sub_status of this ShareInfo.
|
593
635
|
|
594
|
-
SFS Turbo
|
636
|
+
SFS Turbo文件系统的子状态。当用户未对文件系统有修改类操作时,该字段不返回。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中。 '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功。 '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败。
|
595
637
|
|
596
638
|
:return: The sub_status of this ShareInfo.
|
597
639
|
:rtype: str
|
@@ -602,7 +644,7 @@ class ShareInfo:
|
|
602
644
|
def sub_status(self, sub_status):
|
603
645
|
"""Sets the sub_status of this ShareInfo.
|
604
646
|
|
605
|
-
SFS Turbo
|
647
|
+
SFS Turbo文件系统的子状态。当用户未对文件系统有修改类操作时,该字段不返回。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中。 '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功。 '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败。
|
606
648
|
|
607
649
|
:param sub_status: The sub_status of this ShareInfo.
|
608
650
|
:type sub_status: str
|
@@ -697,6 +739,134 @@ class ShareInfo:
|
|
697
739
|
"""
|
698
740
|
self._tags = tags
|
699
741
|
|
742
|
+
@property
|
743
|
+
def optional_endpoint(self):
|
744
|
+
"""Gets the optional_endpoint of this ShareInfo.
|
745
|
+
|
746
|
+
可选的挂载IP地址。上一代文件系统规格类型不返回该字段。
|
747
|
+
|
748
|
+
:return: The optional_endpoint of this ShareInfo.
|
749
|
+
:rtype: str
|
750
|
+
"""
|
751
|
+
return self._optional_endpoint
|
752
|
+
|
753
|
+
@optional_endpoint.setter
|
754
|
+
def optional_endpoint(self, optional_endpoint):
|
755
|
+
"""Sets the optional_endpoint of this ShareInfo.
|
756
|
+
|
757
|
+
可选的挂载IP地址。上一代文件系统规格类型不返回该字段。
|
758
|
+
|
759
|
+
:param optional_endpoint: The optional_endpoint of this ShareInfo.
|
760
|
+
:type optional_endpoint: str
|
761
|
+
"""
|
762
|
+
self._optional_endpoint = optional_endpoint
|
763
|
+
|
764
|
+
@property
|
765
|
+
def hpc_bw(self):
|
766
|
+
"""Gets the hpc_bw of this ShareInfo.
|
767
|
+
|
768
|
+
文件系统的带宽规格。 - \"20M\"表示20MB/s/TiB - \"40M\"表示40MB/s/TiB - \"125M\"表示125MB/s/TiB - \"250M\"表示250MB/s/TiB - \"500M\"表示500MB/s/TiB - \"1000M\"表示1000MB/s/TiB - \"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"表示HPC缓存型的带宽规格。
|
769
|
+
|
770
|
+
:return: The hpc_bw of this ShareInfo.
|
771
|
+
:rtype: str
|
772
|
+
"""
|
773
|
+
return self._hpc_bw
|
774
|
+
|
775
|
+
@hpc_bw.setter
|
776
|
+
def hpc_bw(self, hpc_bw):
|
777
|
+
"""Sets the hpc_bw of this ShareInfo.
|
778
|
+
|
779
|
+
文件系统的带宽规格。 - \"20M\"表示20MB/s/TiB - \"40M\"表示40MB/s/TiB - \"125M\"表示125MB/s/TiB - \"250M\"表示250MB/s/TiB - \"500M\"表示500MB/s/TiB - \"1000M\"表示1000MB/s/TiB - \"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"表示HPC缓存型的带宽规格。
|
780
|
+
|
781
|
+
:param hpc_bw: The hpc_bw of this ShareInfo.
|
782
|
+
:type hpc_bw: str
|
783
|
+
"""
|
784
|
+
self._hpc_bw = hpc_bw
|
785
|
+
|
786
|
+
@property
|
787
|
+
def instance_id(self):
|
788
|
+
"""Gets the instance_id of this ShareInfo.
|
789
|
+
|
790
|
+
文件系统规格的节点id,为预留字段,不具备实际含义。
|
791
|
+
|
792
|
+
:return: The instance_id of this ShareInfo.
|
793
|
+
:rtype: str
|
794
|
+
"""
|
795
|
+
return self._instance_id
|
796
|
+
|
797
|
+
@instance_id.setter
|
798
|
+
def instance_id(self, instance_id):
|
799
|
+
"""Sets the instance_id of this ShareInfo.
|
800
|
+
|
801
|
+
文件系统规格的节点id,为预留字段,不具备实际含义。
|
802
|
+
|
803
|
+
:param instance_id: The instance_id of this ShareInfo.
|
804
|
+
:type instance_id: str
|
805
|
+
"""
|
806
|
+
self._instance_id = instance_id
|
807
|
+
|
808
|
+
@property
|
809
|
+
def instance_type(self):
|
810
|
+
"""Gets the instance_type of this ShareInfo.
|
811
|
+
|
812
|
+
文件系统规格的节点类型,为预留字段,不具备实际含义。
|
813
|
+
|
814
|
+
:return: The instance_type of this ShareInfo.
|
815
|
+
:rtype: str
|
816
|
+
"""
|
817
|
+
return self._instance_type
|
818
|
+
|
819
|
+
@instance_type.setter
|
820
|
+
def instance_type(self, instance_type):
|
821
|
+
"""Sets the instance_type of this ShareInfo.
|
822
|
+
|
823
|
+
文件系统规格的节点类型,为预留字段,不具备实际含义。
|
824
|
+
|
825
|
+
:param instance_type: The instance_type of this ShareInfo.
|
826
|
+
:type instance_type: str
|
827
|
+
"""
|
828
|
+
self._instance_type = instance_type
|
829
|
+
|
830
|
+
@property
|
831
|
+
def status_detail(self):
|
832
|
+
"""Gets the status_detail of this ShareInfo.
|
833
|
+
|
834
|
+
文件系统的请求ID,为预留字段,不具备实际含义。
|
835
|
+
|
836
|
+
:return: The status_detail of this ShareInfo.
|
837
|
+
:rtype: str
|
838
|
+
"""
|
839
|
+
return self._status_detail
|
840
|
+
|
841
|
+
@status_detail.setter
|
842
|
+
def status_detail(self, status_detail):
|
843
|
+
"""Sets the status_detail of this ShareInfo.
|
844
|
+
|
845
|
+
文件系统的请求ID,为预留字段,不具备实际含义。
|
846
|
+
|
847
|
+
:param status_detail: The status_detail of this ShareInfo.
|
848
|
+
:type status_detail: str
|
849
|
+
"""
|
850
|
+
self._status_detail = status_detail
|
851
|
+
|
852
|
+
@property
|
853
|
+
def features(self):
|
854
|
+
"""Gets the features of this ShareInfo.
|
855
|
+
|
856
|
+
:return: The features of this ShareInfo.
|
857
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ShareInfoFeatures`
|
858
|
+
"""
|
859
|
+
return self._features
|
860
|
+
|
861
|
+
@features.setter
|
862
|
+
def features(self, features):
|
863
|
+
"""Sets the features of this ShareInfo.
|
864
|
+
|
865
|
+
:param features: The features of this ShareInfo.
|
866
|
+
:type features: :class:`huaweicloudsdksfsturbo.v1.ShareInfoFeatures`
|
867
|
+
"""
|
868
|
+
self._features = features
|
869
|
+
|
700
870
|
def to_dict(self):
|
701
871
|
"""Returns the model properties as a dict"""
|
702
872
|
result = {}
|
@@ -0,0 +1,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShareInfoFeature:
|
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
|
+
'is_support': 'bool',
|
21
|
+
'message': 'str',
|
22
|
+
'msg_code': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'is_support': 'is_support',
|
27
|
+
'message': 'message',
|
28
|
+
'msg_code': 'msg_code'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, is_support=None, message=None, msg_code=None):
|
32
|
+
"""ShareInfoFeature
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param is_support: 文件系统是否支持该特性
|
37
|
+
:type is_support: bool
|
38
|
+
:param message: 文件系统是否支持该特性的详细信息
|
39
|
+
:type message: str
|
40
|
+
:param msg_code: 文件系统是否支持该特性的详细信息
|
41
|
+
:type msg_code: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._is_support = None
|
47
|
+
self._message = None
|
48
|
+
self._msg_code = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if is_support is not None:
|
52
|
+
self.is_support = is_support
|
53
|
+
if message is not None:
|
54
|
+
self.message = message
|
55
|
+
if msg_code is not None:
|
56
|
+
self.msg_code = msg_code
|
57
|
+
|
58
|
+
@property
|
59
|
+
def is_support(self):
|
60
|
+
"""Gets the is_support of this ShareInfoFeature.
|
61
|
+
|
62
|
+
文件系统是否支持该特性
|
63
|
+
|
64
|
+
:return: The is_support of this ShareInfoFeature.
|
65
|
+
:rtype: bool
|
66
|
+
"""
|
67
|
+
return self._is_support
|
68
|
+
|
69
|
+
@is_support.setter
|
70
|
+
def is_support(self, is_support):
|
71
|
+
"""Sets the is_support of this ShareInfoFeature.
|
72
|
+
|
73
|
+
文件系统是否支持该特性
|
74
|
+
|
75
|
+
:param is_support: The is_support of this ShareInfoFeature.
|
76
|
+
:type is_support: bool
|
77
|
+
"""
|
78
|
+
self._is_support = is_support
|
79
|
+
|
80
|
+
@property
|
81
|
+
def message(self):
|
82
|
+
"""Gets the message of this ShareInfoFeature.
|
83
|
+
|
84
|
+
文件系统是否支持该特性的详细信息
|
85
|
+
|
86
|
+
:return: The message of this ShareInfoFeature.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._message
|
90
|
+
|
91
|
+
@message.setter
|
92
|
+
def message(self, message):
|
93
|
+
"""Sets the message of this ShareInfoFeature.
|
94
|
+
|
95
|
+
文件系统是否支持该特性的详细信息
|
96
|
+
|
97
|
+
:param message: The message of this ShareInfoFeature.
|
98
|
+
:type message: str
|
99
|
+
"""
|
100
|
+
self._message = message
|
101
|
+
|
102
|
+
@property
|
103
|
+
def msg_code(self):
|
104
|
+
"""Gets the msg_code of this ShareInfoFeature.
|
105
|
+
|
106
|
+
文件系统是否支持该特性的详细信息
|
107
|
+
|
108
|
+
:return: The msg_code of this ShareInfoFeature.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._msg_code
|
112
|
+
|
113
|
+
@msg_code.setter
|
114
|
+
def msg_code(self, msg_code):
|
115
|
+
"""Sets the msg_code of this ShareInfoFeature.
|
116
|
+
|
117
|
+
文件系统是否支持该特性的详细信息
|
118
|
+
|
119
|
+
:param msg_code: The msg_code of this ShareInfoFeature.
|
120
|
+
:type msg_code: str
|
121
|
+
"""
|
122
|
+
self._msg_code = msg_code
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, ShareInfoFeature):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
return not self == other
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShareInfoFeatures:
|
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
|
+
'backup': 'ShareInfoFeature'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'backup': 'backup'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, backup=None):
|
28
|
+
"""ShareInfoFeatures
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param backup:
|
33
|
+
:type backup: :class:`huaweicloudsdksfsturbo.v1.ShareInfoFeature`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._backup = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if backup is not None:
|
42
|
+
self.backup = backup
|
43
|
+
|
44
|
+
@property
|
45
|
+
def backup(self):
|
46
|
+
"""Gets the backup of this ShareInfoFeatures.
|
47
|
+
|
48
|
+
:return: The backup of this ShareInfoFeatures.
|
49
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ShareInfoFeature`
|
50
|
+
"""
|
51
|
+
return self._backup
|
52
|
+
|
53
|
+
@backup.setter
|
54
|
+
def backup(self, backup):
|
55
|
+
"""Sets the backup of this ShareInfoFeatures.
|
56
|
+
|
57
|
+
:param backup: The backup of this ShareInfoFeatures.
|
58
|
+
:type backup: :class:`huaweicloudsdksfsturbo.v1.ShareInfoFeature`
|
59
|
+
"""
|
60
|
+
self._backup = backup
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, ShareInfoFeatures):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
return not self == other
|
@@ -44,9 +44,9 @@ class ShowFsDirQuotaResponse(SdkResponse):
|
|
44
44
|
:type capacity: int
|
45
45
|
:param inode: 目录的inode数量限制
|
46
46
|
:type inode: int
|
47
|
-
:param used_capacity: 目录已使用的容量大小,单位:MB。仅SFSTurbo
|
47
|
+
:param used_capacity: 目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段。数据可能有延迟。
|
48
48
|
:type used_capacity: int
|
49
|
-
:param used_inode: 目录的已使用的inode数量。仅SFSTurbo
|
49
|
+
:param used_inode: 目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段。数据可能有延迟。
|
50
50
|
:type used_inode: int
|
51
51
|
"""
|
52
52
|
|
@@ -140,7 +140,7 @@ class ShowFsDirQuotaResponse(SdkResponse):
|
|
140
140
|
def used_capacity(self):
|
141
141
|
"""Gets the used_capacity of this ShowFsDirQuotaResponse.
|
142
142
|
|
143
|
-
目录已使用的容量大小,单位:MB。仅SFSTurbo
|
143
|
+
目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段。数据可能有延迟。
|
144
144
|
|
145
145
|
:return: The used_capacity of this ShowFsDirQuotaResponse.
|
146
146
|
:rtype: int
|
@@ -151,7 +151,7 @@ class ShowFsDirQuotaResponse(SdkResponse):
|
|
151
151
|
def used_capacity(self, used_capacity):
|
152
152
|
"""Sets the used_capacity of this ShowFsDirQuotaResponse.
|
153
153
|
|
154
|
-
目录已使用的容量大小,单位:MB。仅SFSTurbo
|
154
|
+
目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段。数据可能有延迟。
|
155
155
|
|
156
156
|
:param used_capacity: The used_capacity of this ShowFsDirQuotaResponse.
|
157
157
|
:type used_capacity: int
|
@@ -162,7 +162,7 @@ class ShowFsDirQuotaResponse(SdkResponse):
|
|
162
162
|
def used_inode(self):
|
163
163
|
"""Gets the used_inode of this ShowFsDirQuotaResponse.
|
164
164
|
|
165
|
-
目录的已使用的inode数量。仅SFSTurbo
|
165
|
+
目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段。数据可能有延迟。
|
166
166
|
|
167
167
|
:return: The used_inode of this ShowFsDirQuotaResponse.
|
168
168
|
:rtype: int
|
@@ -173,7 +173,7 @@ class ShowFsDirQuotaResponse(SdkResponse):
|
|
173
173
|
def used_inode(self, used_inode):
|
174
174
|
"""Sets the used_inode of this ShowFsDirQuotaResponse.
|
175
175
|
|
176
|
-
目录的已使用的inode数量。仅SFSTurbo
|
176
|
+
目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段。数据可能有延迟。
|
177
177
|
|
178
178
|
:param used_inode: The used_inode of this ShowFsDirQuotaResponse.
|
179
179
|
:type used_inode: int
|