tencentcloud-sdk-python-cfs 3.0.1291__py2.py3-none-any.whl → 3.0.1308__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/cfs/v20190719/cfs_client.py +23 -0
- tencentcloud/cfs/v20190719/errorcodes.py +7 -4
- tencentcloud/cfs/v20190719/models.py +79 -0
- {tencentcloud_sdk_python_cfs-3.0.1291.dist-info → tencentcloud_sdk_python_cfs-3.0.1308.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_cfs-3.0.1308.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_cfs-3.0.1291.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_cfs-3.0.1291.dist-info → tencentcloud_sdk_python_cfs-3.0.1308.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_cfs-3.0.1291.dist-info → tencentcloud_sdk_python_cfs-3.0.1308.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -49,6 +49,29 @@ class CfsClient(AbstractClient):
|
|
|
49
49
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
50
50
|
|
|
51
51
|
|
|
52
|
+
def CreateAccessCert(self, request):
|
|
53
|
+
"""创建用于访问文件系统的凭证
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for CreateAccessCert.
|
|
56
|
+
:type request: :class:`tencentcloud.cfs.v20190719.models.CreateAccessCertRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.cfs.v20190719.models.CreateAccessCertResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("CreateAccessCert", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.CreateAccessCertResponse()
|
|
66
|
+
model._deserialize(response["Response"])
|
|
67
|
+
return model
|
|
68
|
+
except Exception as e:
|
|
69
|
+
if isinstance(e, TencentCloudSDKException):
|
|
70
|
+
raise
|
|
71
|
+
else:
|
|
72
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
|
+
|
|
74
|
+
|
|
52
75
|
def CreateAutoSnapshotPolicy(self, request):
|
|
53
76
|
"""创建定期快照策略
|
|
54
77
|
|
|
@@ -98,6 +98,9 @@ INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
|
|
98
98
|
# 自动扩容策略不存在
|
|
99
99
|
INVALIDPARAMETERVALUE_AUTOPOLICYNOTFOUND = 'InvalidParameterValue.AutoPolicyNotFound'
|
|
100
100
|
|
|
101
|
+
# 无效的文件系统路径
|
|
102
|
+
INVALIDPARAMETERVALUE_CFSPATH = 'InvalidParameterValue.CfsPath'
|
|
103
|
+
|
|
101
104
|
# 用于保证请求幂等性的字符串长度超过限制(不能超过64字节)。
|
|
102
105
|
INVALIDPARAMETERVALUE_CLIENTTOKENLIMITEXCEEDED = 'InvalidParameterValue.ClientTokenLimitExceeded'
|
|
103
106
|
|
|
@@ -170,15 +173,15 @@ INVALIDPARAMETERVALUE_INVALIDPGROUPID = 'InvalidParameterValue.InvalidPgroupId'
|
|
|
170
173
|
# 无效的权限组名称。
|
|
171
174
|
INVALIDPARAMETERVALUE_INVALIDPGROUPNAME = 'InvalidParameterValue.InvalidPgroupName'
|
|
172
175
|
|
|
176
|
+
# 目录路径中包含无效字符。
|
|
177
|
+
INVALIDPARAMETERVALUE_INVALIDPOLICYFSPATH = 'InvalidParameterValue.InvalidPolicyFsPath'
|
|
178
|
+
|
|
173
179
|
# 优先级设置错误。
|
|
174
180
|
INVALIDPARAMETERVALUE_INVALIDPRIORITY = 'InvalidParameterValue.InvalidPriority'
|
|
175
181
|
|
|
176
182
|
# 协议参数错误。
|
|
177
183
|
INVALIDPARAMETERVALUE_INVALIDPROTOCOL = 'InvalidParameterValue.InvalidProtocol'
|
|
178
184
|
|
|
179
|
-
# 设置配额的参数错误,UserId 跟DirectoryPath不可同时填写,两个参数必填一个
|
|
180
|
-
INVALIDPARAMETERVALUE_INVALIDQUOTAUSERIDORCFSDIRPATH = 'InvalidParameterValue.InvalidQuotaUserIdOrCfsDirPath'
|
|
181
|
-
|
|
182
185
|
# 用户区域选择错误 (ZoneName) 或 (ZoneId, Region)二者必选一。
|
|
183
186
|
INVALIDPARAMETERVALUE_INVALIDREGIONZONEINFO = 'InvalidParameterValue.InvalidRegionZoneInfo'
|
|
184
187
|
|
|
@@ -359,7 +362,7 @@ RESOURCEINSUFFICIENT_RULELIMITEXCEEDED = 'ResourceInsufficient.RuleLimitExceeded
|
|
|
359
362
|
# 文件系统过大,不支持快照
|
|
360
363
|
RESOURCEINSUFFICIENT_SNAPSHOTSIZELIMITEXCEEDED = 'ResourceInsufficient.SnapshotSizeLimitExceeded'
|
|
361
364
|
|
|
362
|
-
#
|
|
365
|
+
# 该子网下IP数量不足
|
|
363
366
|
RESOURCEINSUFFICIENT_SUBNETIPALLOCCUPIED = 'ResourceInsufficient.SubnetIpAllOccupied'
|
|
364
367
|
|
|
365
368
|
# 该资源的标签个数达到最大限制。
|
|
@@ -825,6 +825,85 @@ class BucketInfo(AbstractModel):
|
|
|
825
825
|
|
|
826
826
|
|
|
827
827
|
|
|
828
|
+
class CreateAccessCertRequest(AbstractModel):
|
|
829
|
+
"""CreateAccessCert请求参数结构体
|
|
830
|
+
|
|
831
|
+
"""
|
|
832
|
+
|
|
833
|
+
def __init__(self):
|
|
834
|
+
r"""
|
|
835
|
+
:param _CertDesc: 证书描述
|
|
836
|
+
:type CertDesc: str
|
|
837
|
+
"""
|
|
838
|
+
self._CertDesc = None
|
|
839
|
+
|
|
840
|
+
@property
|
|
841
|
+
def CertDesc(self):
|
|
842
|
+
"""证书描述
|
|
843
|
+
:rtype: str
|
|
844
|
+
"""
|
|
845
|
+
return self._CertDesc
|
|
846
|
+
|
|
847
|
+
@CertDesc.setter
|
|
848
|
+
def CertDesc(self, CertDesc):
|
|
849
|
+
self._CertDesc = CertDesc
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
def _deserialize(self, params):
|
|
853
|
+
self._CertDesc = params.get("CertDesc")
|
|
854
|
+
memeber_set = set(params.keys())
|
|
855
|
+
for name, value in vars(self).items():
|
|
856
|
+
property_name = name[1:]
|
|
857
|
+
if property_name in memeber_set:
|
|
858
|
+
memeber_set.remove(property_name)
|
|
859
|
+
if len(memeber_set) > 0:
|
|
860
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
861
|
+
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
class CreateAccessCertResponse(AbstractModel):
|
|
865
|
+
"""CreateAccessCert返回参数结构体
|
|
866
|
+
|
|
867
|
+
"""
|
|
868
|
+
|
|
869
|
+
def __init__(self):
|
|
870
|
+
r"""
|
|
871
|
+
:param _CertId: 凭证唯一标识
|
|
872
|
+
:type CertId: str
|
|
873
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
874
|
+
:type RequestId: str
|
|
875
|
+
"""
|
|
876
|
+
self._CertId = None
|
|
877
|
+
self._RequestId = None
|
|
878
|
+
|
|
879
|
+
@property
|
|
880
|
+
def CertId(self):
|
|
881
|
+
"""凭证唯一标识
|
|
882
|
+
:rtype: str
|
|
883
|
+
"""
|
|
884
|
+
return self._CertId
|
|
885
|
+
|
|
886
|
+
@CertId.setter
|
|
887
|
+
def CertId(self, CertId):
|
|
888
|
+
self._CertId = CertId
|
|
889
|
+
|
|
890
|
+
@property
|
|
891
|
+
def RequestId(self):
|
|
892
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
893
|
+
:rtype: str
|
|
894
|
+
"""
|
|
895
|
+
return self._RequestId
|
|
896
|
+
|
|
897
|
+
@RequestId.setter
|
|
898
|
+
def RequestId(self, RequestId):
|
|
899
|
+
self._RequestId = RequestId
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
def _deserialize(self, params):
|
|
903
|
+
self._CertId = params.get("CertId")
|
|
904
|
+
self._RequestId = params.get("RequestId")
|
|
905
|
+
|
|
906
|
+
|
|
828
907
|
class CreateAutoSnapshotPolicyRequest(AbstractModel):
|
|
829
908
|
"""CreateAutoSnapshotPolicy请求参数结构体
|
|
830
909
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cfs
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1308
|
|
4
4
|
Summary: Tencent Cloud Cfs SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common (==3.0.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common (==3.0.1308)
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=gjbatA3FLwwWeoY0ANQMAFFLqR5h6ymQlzDZqdiX4jg,631
|
|
2
|
+
tencentcloud/cfs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
tencentcloud/cfs/v20190719/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tencentcloud/cfs/v20190719/cfs_client.py,sha256=JmpkUIZCwwMFznzCtCxxmCAxVIpMjhcRE1sHDUWpB3Y,42239
|
|
5
|
+
tencentcloud/cfs/v20190719/errorcodes.py,sha256=35GB0UN2OJglcqTc7bTBhW14YYse9yadEP9uP-umoFA,16461
|
|
6
|
+
tencentcloud/cfs/v20190719/models.py,sha256=1XkYJENrdfCK0FnV-GFhlDcSel2a_KNyVD-YavBYn48,257285
|
|
7
|
+
tencentcloud_sdk_python_cfs-3.0.1308.dist-info/METADATA,sha256=5I9SDKIKnJ81jDbEKMFPfhsgBo7lZsIeFcgSkguCVUI,1496
|
|
8
|
+
tencentcloud_sdk_python_cfs-3.0.1308.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
9
|
+
tencentcloud_sdk_python_cfs-3.0.1308.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
10
|
+
tencentcloud_sdk_python_cfs-3.0.1308.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=Ux9ATZnVOxr5DAV-M8h9CjmBGxr60JKJ9oj3-WXQw0E,631
|
|
2
|
-
tencentcloud/cfs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
tencentcloud/cfs/v20190719/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
tencentcloud/cfs/v20190719/cfs_client.py,sha256=fcuzoWs-CAaQxCFz9eUUlPpVbtgtFrEyKm4ZvPMJFeM,41355
|
|
5
|
-
tencentcloud/cfs/v20190719/errorcodes.py,sha256=XGg1i0tBO3XCWaZmfYoOR1QQX1odCh561jYTTzImi6U,16453
|
|
6
|
-
tencentcloud/cfs/v20190719/models.py,sha256=m1LeC6YLx0B3nXb4oNRi_gplIycTbWH_eDoYuHFmU30,255086
|
|
7
|
-
tencentcloud_sdk_python_cfs-3.0.1291.dist-info/METADATA,sha256=oV7NLzrQpOrou0U5fIGZtdb0JJCf7viffE7BvCo8Otw,1496
|
|
8
|
-
tencentcloud_sdk_python_cfs-3.0.1291.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
9
|
-
tencentcloud_sdk_python_cfs-3.0.1291.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
10
|
-
tencentcloud_sdk_python_cfs-3.0.1291.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|