tencentcloud-sdk-python-cfs 3.0.878__tar.gz → 3.0.881__tar.gz
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.
- {tencentcloud-sdk-python-cfs-3.0.878 → tencentcloud-sdk-python-cfs-3.0.881}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cfs-3.0.878 → tencentcloud-sdk-python-cfs-3.0.881}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-cfs-3.0.878 → tencentcloud-sdk-python-cfs-3.0.881}/tencentcloud/cfs/v20190719/cfs_client.py +46 -0
- {tencentcloud-sdk-python-cfs-3.0.878 → tencentcloud-sdk-python-cfs-3.0.881}/tencentcloud/cfs/v20190719/errorcodes.py +18 -0
- {tencentcloud-sdk-python-cfs-3.0.878 → tencentcloud-sdk-python-cfs-3.0.881}/tencentcloud/cfs/v20190719/models.py +123 -0
- {tencentcloud-sdk-python-cfs-3.0.878 → tencentcloud-sdk-python-cfs-3.0.881}/tencentcloud_sdk_python_cfs.egg-info/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cfs-3.0.878 → tencentcloud-sdk-python-cfs-3.0.881}/README.rst +0 -0
- {tencentcloud-sdk-python-cfs-3.0.878 → tencentcloud-sdk-python-cfs-3.0.881}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cfs-3.0.878 → tencentcloud-sdk-python-cfs-3.0.881}/setup.py +0 -0
- {tencentcloud-sdk-python-cfs-3.0.878 → tencentcloud-sdk-python-cfs-3.0.881}/tencentcloud/cfs/__init__.py +0 -0
- {tencentcloud-sdk-python-cfs-3.0.878 → tencentcloud-sdk-python-cfs-3.0.881}/tencentcloud/cfs/v20190719/__init__.py +0 -0
- {tencentcloud-sdk-python-cfs-3.0.878 → tencentcloud-sdk-python-cfs-3.0.881}/tencentcloud_sdk_python_cfs.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-cfs-3.0.878 → tencentcloud-sdk-python-cfs-3.0.881}/tencentcloud_sdk_python_cfs.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cfs-3.0.878 → tencentcloud-sdk-python-cfs-3.0.881}/tencentcloud_sdk_python_cfs.egg-info/top_level.txt +0 -0
|
@@ -697,6 +697,52 @@ class CfsClient(AbstractClient):
|
|
|
697
697
|
raise TencentCloudSDKException(e.message, e.message)
|
|
698
698
|
|
|
699
699
|
|
|
700
|
+
def ModifyFileSystemAutoScaleUpRule(self, request):
|
|
701
|
+
"""用来设置文件系统扩容策略
|
|
702
|
+
|
|
703
|
+
:param request: Request instance for ModifyFileSystemAutoScaleUpRule.
|
|
704
|
+
:type request: :class:`tencentcloud.cfs.v20190719.models.ModifyFileSystemAutoScaleUpRuleRequest`
|
|
705
|
+
:rtype: :class:`tencentcloud.cfs.v20190719.models.ModifyFileSystemAutoScaleUpRuleResponse`
|
|
706
|
+
|
|
707
|
+
"""
|
|
708
|
+
try:
|
|
709
|
+
params = request._serialize()
|
|
710
|
+
headers = request.headers
|
|
711
|
+
body = self.call("ModifyFileSystemAutoScaleUpRule", params, headers=headers)
|
|
712
|
+
response = json.loads(body)
|
|
713
|
+
model = models.ModifyFileSystemAutoScaleUpRuleResponse()
|
|
714
|
+
model._deserialize(response["Response"])
|
|
715
|
+
return model
|
|
716
|
+
except Exception as e:
|
|
717
|
+
if isinstance(e, TencentCloudSDKException):
|
|
718
|
+
raise
|
|
719
|
+
else:
|
|
720
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
def ScaleUpFileSystem(self, request):
|
|
724
|
+
"""该接口用于对turbo 文件系统扩容使用
|
|
725
|
+
|
|
726
|
+
:param request: Request instance for ScaleUpFileSystem.
|
|
727
|
+
:type request: :class:`tencentcloud.cfs.v20190719.models.ScaleUpFileSystemRequest`
|
|
728
|
+
:rtype: :class:`tencentcloud.cfs.v20190719.models.ScaleUpFileSystemResponse`
|
|
729
|
+
|
|
730
|
+
"""
|
|
731
|
+
try:
|
|
732
|
+
params = request._serialize()
|
|
733
|
+
headers = request.headers
|
|
734
|
+
body = self.call("ScaleUpFileSystem", params, headers=headers)
|
|
735
|
+
response = json.loads(body)
|
|
736
|
+
model = models.ScaleUpFileSystemResponse()
|
|
737
|
+
model._deserialize(response["Response"])
|
|
738
|
+
return model
|
|
739
|
+
except Exception as e:
|
|
740
|
+
if isinstance(e, TencentCloudSDKException):
|
|
741
|
+
raise
|
|
742
|
+
else:
|
|
743
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
744
|
+
|
|
745
|
+
|
|
700
746
|
def SetUserQuota(self, request):
|
|
701
747
|
"""设置文件系统配额,提供UID/GID的配额设置的接口
|
|
702
748
|
|
|
@@ -110,6 +110,9 @@ INVALIDPARAMETERVALUE_FSSIZELIMITEXCEEDED = 'InvalidParameterValue.FsSizeLimitEx
|
|
|
110
110
|
# 规则IP错误。
|
|
111
111
|
INVALIDPARAMETERVALUE_INVALIDAUTHCLIENTIP = 'InvalidParameterValue.InvalidAuthClientIp'
|
|
112
112
|
|
|
113
|
+
# 扩容策略参数无效
|
|
114
|
+
INVALIDPARAMETERVALUE_INVALIDAUTOSCALEUPPARAMS = 'InvalidParameterValue.InvalidAutoScaleUpParams'
|
|
115
|
+
|
|
113
116
|
# 用于保证请求幂等性的字符串错误。
|
|
114
117
|
INVALIDPARAMETERVALUE_INVALIDCLIENTTOKEN = 'InvalidParameterValue.InvalidClientToken'
|
|
115
118
|
|
|
@@ -164,6 +167,9 @@ INVALIDPARAMETERVALUE_INVALIDRESOURCETAGS = 'InvalidParameterValue.InvalidResour
|
|
|
164
167
|
# 读写权限设置错误。
|
|
165
168
|
INVALIDPARAMETERVALUE_INVALIDRWPERMISSION = 'InvalidParameterValue.InvalidRwPermission'
|
|
166
169
|
|
|
170
|
+
# 扩容目标容量参数错误
|
|
171
|
+
INVALIDPARAMETERVALUE_INVALIDSCALEUPTARGETCAPACITY = 'InvalidParameterValue.InvalidScaleupTargetCapacity'
|
|
172
|
+
|
|
167
173
|
# 无效的快照状态。
|
|
168
174
|
INVALIDPARAMETERVALUE_INVALIDSNAPSHOTSTATUS = 'InvalidParameterValue.InvalidSnapshotStatus'
|
|
169
175
|
|
|
@@ -326,24 +332,36 @@ RESOURCENOTFOUND = 'ResourceNotFound'
|
|
|
326
332
|
# 该文件系统不存在。
|
|
327
333
|
RESOURCENOTFOUND_FILESYSTEMNOTFOUND = 'ResourceNotFound.FileSystemNotFound'
|
|
328
334
|
|
|
335
|
+
# 文件系统不存在。
|
|
336
|
+
RESOURCENOTFOUND_FSNOTEXIST = 'ResourceNotFound.FsNotExist'
|
|
337
|
+
|
|
329
338
|
# 挂载点不存在。
|
|
330
339
|
RESOURCENOTFOUND_MOUNTTARGETNOTFOUND = 'ResourceNotFound.MountTargetNotFound'
|
|
331
340
|
|
|
332
341
|
# 权限组不存在。
|
|
333
342
|
RESOURCENOTFOUND_PGROUPNOTFOUND = 'ResourceNotFound.PgroupNotFound'
|
|
334
343
|
|
|
344
|
+
# 资源不存在:资源ID 不存在。
|
|
345
|
+
RESOURCENOTFOUND_RESOURCEPACKAGENOTFOUND = 'ResourceNotFound.ResourcePackageNotFound'
|
|
346
|
+
|
|
335
347
|
# 权限规则不存在。
|
|
336
348
|
RESOURCENOTFOUND_RULENOTFOUND = 'ResourceNotFound.RuleNotFound'
|
|
337
349
|
|
|
338
350
|
# 快照ID 不存在。
|
|
339
351
|
RESOURCENOTFOUND_SNAPSHOTNOTFOUND = 'ResourceNotFound.SnapshotNotFound'
|
|
340
352
|
|
|
353
|
+
# 未授权操作。
|
|
354
|
+
UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
|
|
355
|
+
|
|
341
356
|
# 操作不支持。
|
|
342
357
|
UNSUPPORTEDOPERATION = 'UnsupportedOperation'
|
|
343
358
|
|
|
344
359
|
# 该可用区不支持基础网络。
|
|
345
360
|
UNSUPPORTEDOPERATION_BASICNETINTERFACENOTSUPPORTED = 'UnsupportedOperation.BasicNetInterfaceNotSupported'
|
|
346
361
|
|
|
362
|
+
# appid不在kms白名单(kms目前是白名单开启状态)。
|
|
363
|
+
UNSUPPORTEDOPERATION_MISSINGKMSACCESSPERMISSION = 'UnsupportedOperation.MissingKmsAccessPermission'
|
|
364
|
+
|
|
347
365
|
# 用户已欠费, 请充值后重试。
|
|
348
366
|
UNSUPPORTEDOPERATION_OUTOFSERVICE = 'UnsupportedOperation.OutOfService'
|
|
349
367
|
|
|
@@ -2374,6 +2374,76 @@ class MigrationTaskInfo(AbstractModel):
|
|
|
2374
2374
|
|
|
2375
2375
|
|
|
2376
2376
|
|
|
2377
|
+
class ModifyFileSystemAutoScaleUpRuleRequest(AbstractModel):
|
|
2378
|
+
"""ModifyFileSystemAutoScaleUpRule请求参数结构体
|
|
2379
|
+
|
|
2380
|
+
"""
|
|
2381
|
+
|
|
2382
|
+
def __init__(self):
|
|
2383
|
+
r"""
|
|
2384
|
+
:param FileSystemId: 文件系统id
|
|
2385
|
+
:type FileSystemId: str
|
|
2386
|
+
:param ScaleUpThreshold: 扩容阈值,范围[10-90]
|
|
2387
|
+
:type ScaleUpThreshold: int
|
|
2388
|
+
:param TargetThreshold: 扩容后目标阈值,范围[10-90],该值要小于ScaleUpThreshold
|
|
2389
|
+
:type TargetThreshold: int
|
|
2390
|
+
:param Status: 规则状态0:关闭,1 开启
|
|
2391
|
+
|
|
2392
|
+
:type Status: int
|
|
2393
|
+
"""
|
|
2394
|
+
self.FileSystemId = None
|
|
2395
|
+
self.ScaleUpThreshold = None
|
|
2396
|
+
self.TargetThreshold = None
|
|
2397
|
+
self.Status = None
|
|
2398
|
+
|
|
2399
|
+
|
|
2400
|
+
def _deserialize(self, params):
|
|
2401
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
2402
|
+
self.ScaleUpThreshold = params.get("ScaleUpThreshold")
|
|
2403
|
+
self.TargetThreshold = params.get("TargetThreshold")
|
|
2404
|
+
self.Status = params.get("Status")
|
|
2405
|
+
memeber_set = set(params.keys())
|
|
2406
|
+
for name, value in vars(self).items():
|
|
2407
|
+
if name in memeber_set:
|
|
2408
|
+
memeber_set.remove(name)
|
|
2409
|
+
if len(memeber_set) > 0:
|
|
2410
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2411
|
+
|
|
2412
|
+
|
|
2413
|
+
|
|
2414
|
+
class ModifyFileSystemAutoScaleUpRuleResponse(AbstractModel):
|
|
2415
|
+
"""ModifyFileSystemAutoScaleUpRule返回参数结构体
|
|
2416
|
+
|
|
2417
|
+
"""
|
|
2418
|
+
|
|
2419
|
+
def __init__(self):
|
|
2420
|
+
r"""
|
|
2421
|
+
:param FileSystemId: 文件系统id
|
|
2422
|
+
:type FileSystemId: str
|
|
2423
|
+
:param Status: 规则状态0:关闭,1 开启
|
|
2424
|
+
:type Status: int
|
|
2425
|
+
:param ScaleUpThreshold: 扩容阈值,范围[10-90]
|
|
2426
|
+
:type ScaleUpThreshold: int
|
|
2427
|
+
:param TargetThreshold: 扩容后达到阈值,范围[10-90]
|
|
2428
|
+
:type TargetThreshold: int
|
|
2429
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2430
|
+
:type RequestId: str
|
|
2431
|
+
"""
|
|
2432
|
+
self.FileSystemId = None
|
|
2433
|
+
self.Status = None
|
|
2434
|
+
self.ScaleUpThreshold = None
|
|
2435
|
+
self.TargetThreshold = None
|
|
2436
|
+
self.RequestId = None
|
|
2437
|
+
|
|
2438
|
+
|
|
2439
|
+
def _deserialize(self, params):
|
|
2440
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
2441
|
+
self.Status = params.get("Status")
|
|
2442
|
+
self.ScaleUpThreshold = params.get("ScaleUpThreshold")
|
|
2443
|
+
self.TargetThreshold = params.get("TargetThreshold")
|
|
2444
|
+
self.RequestId = params.get("RequestId")
|
|
2445
|
+
|
|
2446
|
+
|
|
2377
2447
|
class MountInfo(AbstractModel):
|
|
2378
2448
|
"""挂载点信息
|
|
2379
2449
|
|
|
@@ -2550,6 +2620,59 @@ class PGroupRuleInfo(AbstractModel):
|
|
|
2550
2620
|
|
|
2551
2621
|
|
|
2552
2622
|
|
|
2623
|
+
class ScaleUpFileSystemRequest(AbstractModel):
|
|
2624
|
+
"""ScaleUpFileSystem请求参数结构体
|
|
2625
|
+
|
|
2626
|
+
"""
|
|
2627
|
+
|
|
2628
|
+
def __init__(self):
|
|
2629
|
+
r"""
|
|
2630
|
+
:param FileSystemId: 文件系统Id
|
|
2631
|
+
:type FileSystemId: str
|
|
2632
|
+
:param TargetCapacity: 扩容的目标容量
|
|
2633
|
+
:type TargetCapacity: int
|
|
2634
|
+
"""
|
|
2635
|
+
self.FileSystemId = None
|
|
2636
|
+
self.TargetCapacity = None
|
|
2637
|
+
|
|
2638
|
+
|
|
2639
|
+
def _deserialize(self, params):
|
|
2640
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
2641
|
+
self.TargetCapacity = params.get("TargetCapacity")
|
|
2642
|
+
memeber_set = set(params.keys())
|
|
2643
|
+
for name, value in vars(self).items():
|
|
2644
|
+
if name in memeber_set:
|
|
2645
|
+
memeber_set.remove(name)
|
|
2646
|
+
if len(memeber_set) > 0:
|
|
2647
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2648
|
+
|
|
2649
|
+
|
|
2650
|
+
|
|
2651
|
+
class ScaleUpFileSystemResponse(AbstractModel):
|
|
2652
|
+
"""ScaleUpFileSystem返回参数结构体
|
|
2653
|
+
|
|
2654
|
+
"""
|
|
2655
|
+
|
|
2656
|
+
def __init__(self):
|
|
2657
|
+
r"""
|
|
2658
|
+
:param FileSystemId: 文件系统Id
|
|
2659
|
+
:type FileSystemId: str
|
|
2660
|
+
:param TargetCapacity: 扩容的目标容量
|
|
2661
|
+
:type TargetCapacity: int
|
|
2662
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2663
|
+
:type RequestId: str
|
|
2664
|
+
"""
|
|
2665
|
+
self.FileSystemId = None
|
|
2666
|
+
self.TargetCapacity = None
|
|
2667
|
+
self.RequestId = None
|
|
2668
|
+
|
|
2669
|
+
|
|
2670
|
+
def _deserialize(self, params):
|
|
2671
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
2672
|
+
self.TargetCapacity = params.get("TargetCapacity")
|
|
2673
|
+
self.RequestId = params.get("RequestId")
|
|
2674
|
+
|
|
2675
|
+
|
|
2553
2676
|
class SetUserQuotaRequest(AbstractModel):
|
|
2554
2677
|
"""SetUserQuota请求参数结构体
|
|
2555
2678
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|