tencentcloud-sdk-python-cfs 3.1.84__tar.gz → 3.1.95__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_cfs-3.1.84 → tencentcloud_sdk_python_cfs-3.1.95}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_cfs-3.1.84 → tencentcloud_sdk_python_cfs-3.1.95}/setup.py +1 -1
  3. {tencentcloud_sdk_python_cfs-3.1.84 → tencentcloud_sdk_python_cfs-3.1.95}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_cfs-3.1.84 → tencentcloud_sdk_python_cfs-3.1.95}/tencentcloud/cfs/v20190719/cfs_client.py +23 -0
  5. {tencentcloud_sdk_python_cfs-3.1.84 → tencentcloud_sdk_python_cfs-3.1.95}/tencentcloud/cfs/v20190719/cfs_client_async.py +18 -0
  6. {tencentcloud_sdk_python_cfs-3.1.84 → tencentcloud_sdk_python_cfs-3.1.95}/tencentcloud/cfs/v20190719/models.py +185 -0
  7. {tencentcloud_sdk_python_cfs-3.1.84 → tencentcloud_sdk_python_cfs-3.1.95}/tencentcloud_sdk_python_cfs.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_cfs-3.1.95/tencentcloud_sdk_python_cfs.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_cfs-3.1.84/tencentcloud_sdk_python_cfs.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_cfs-3.1.84 → tencentcloud_sdk_python_cfs-3.1.95}/README.rst +0 -0
  11. {tencentcloud_sdk_python_cfs-3.1.84 → tencentcloud_sdk_python_cfs-3.1.95}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_cfs-3.1.84 → tencentcloud_sdk_python_cfs-3.1.95}/tencentcloud/cfs/__init__.py +0 -0
  13. {tencentcloud_sdk_python_cfs-3.1.84 → tencentcloud_sdk_python_cfs-3.1.95}/tencentcloud/cfs/v20190719/__init__.py +0 -0
  14. {tencentcloud_sdk_python_cfs-3.1.84 → tencentcloud_sdk_python_cfs-3.1.95}/tencentcloud/cfs/v20190719/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_cfs-3.1.84 → tencentcloud_sdk_python_cfs-3.1.95}/tencentcloud_sdk_python_cfs.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_cfs-3.1.84 → tencentcloud_sdk_python_cfs-3.1.95}/tencentcloud_sdk_python_cfs.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_cfs-3.1.84 → tencentcloud_sdk_python_cfs-3.1.95}/tencentcloud_sdk_python_cfs.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cfs
3
- Version: 3.1.84
3
+ Version: 3.1.95
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<4.0.0,>=3.1.84
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.95
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-cfs',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.84,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.95,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Cfs SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.84'
17
+ __version__ = '3.1.95'
@@ -1016,6 +1016,29 @@ class CfsClient(AbstractClient):
1016
1016
  raise TencentCloudSDKException(type(e).__name__, str(e))
1017
1017
 
1018
1018
 
1019
+ def OverrideCfsRules(self, request):
1020
+ r"""本接口(OverrideCfsRules)用于批量覆盖式创建权限组规则。
1021
+
1022
+ :param request: Request instance for OverrideCfsRules.
1023
+ :type request: :class:`tencentcloud.cfs.v20190719.models.OverrideCfsRulesRequest`
1024
+ :rtype: :class:`tencentcloud.cfs.v20190719.models.OverrideCfsRulesResponse`
1025
+
1026
+ """
1027
+ try:
1028
+ params = request._serialize()
1029
+ headers = request.headers
1030
+ body = self.call("OverrideCfsRules", params, headers=headers)
1031
+ response = json.loads(body)
1032
+ model = models.OverrideCfsRulesResponse()
1033
+ model._deserialize(response["Response"])
1034
+ return model
1035
+ except Exception as e:
1036
+ if isinstance(e, TencentCloudSDKException):
1037
+ raise
1038
+ else:
1039
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1040
+
1041
+
1019
1042
  def ScaleUpFileSystem(self, request):
1020
1043
  r"""该接口用于对turbo 文件系统扩容使用,该接口只支持扩容不支持缩容。turbo标准型扩容步长是10240GIB,turbo性能型扩容步长是5120GIB
1021
1044
 
@@ -800,6 +800,24 @@ class CfsClient(AbstractClient):
800
800
 
801
801
  return await self.call_and_deserialize(**kwargs)
802
802
 
803
+ async def OverrideCfsRules(
804
+ self,
805
+ request: models.OverrideCfsRulesRequest,
806
+ opts: Dict = None,
807
+ ) -> models.OverrideCfsRulesResponse:
808
+ """
809
+ 本接口(OverrideCfsRules)用于批量覆盖式创建权限组规则。
810
+ """
811
+
812
+ kwargs = {}
813
+ kwargs["action"] = "OverrideCfsRules"
814
+ kwargs["params"] = request._serialize()
815
+ kwargs["resp_cls"] = models.OverrideCfsRulesResponse
816
+ kwargs["headers"] = request.headers
817
+ kwargs["opts"] = opts or {}
818
+
819
+ return await self.call_and_deserialize(**kwargs)
820
+
803
821
  async def ScaleUpFileSystem(
804
822
  self,
805
823
  request: models.ScaleUpFileSystemRequest,
@@ -7361,6 +7361,87 @@ class Filter(AbstractModel):
7361
7361
 
7362
7362
 
7363
7363
 
7364
+ class InputPermissionGroupRules(AbstractModel):
7365
+ r"""入参权限组规则列表
7366
+
7367
+ """
7368
+
7369
+ def __init__(self):
7370
+ r"""
7371
+ :param _AuthClientIp: 允许访问的客户端IP
7372
+ :type AuthClientIp: str
7373
+ :param _RWPermission: 读写权限, ro为只读,rw为读写
7374
+ :type RWPermission: str
7375
+ :param _UserPermission: 用户权限。其中all_squash为所有访问用户都会被映射为匿名用户或用户组;no_all_squash为访问用户会先与本机用户匹配,匹配失败后再映射为匿名用户或用户组;root_squash为将来访的root用户映射为匿名用户或用户组;no_root_squash为来访的root用户保持root帐号权限。
7376
+ :type UserPermission: str
7377
+ :param _Priority: 规则优先级,1-100。 其中 1 为最高,100为最低
7378
+ :type Priority: int
7379
+ """
7380
+ self._AuthClientIp = None
7381
+ self._RWPermission = None
7382
+ self._UserPermission = None
7383
+ self._Priority = None
7384
+
7385
+ @property
7386
+ def AuthClientIp(self):
7387
+ r"""允许访问的客户端IP
7388
+ :rtype: str
7389
+ """
7390
+ return self._AuthClientIp
7391
+
7392
+ @AuthClientIp.setter
7393
+ def AuthClientIp(self, AuthClientIp):
7394
+ self._AuthClientIp = AuthClientIp
7395
+
7396
+ @property
7397
+ def RWPermission(self):
7398
+ r"""读写权限, ro为只读,rw为读写
7399
+ :rtype: str
7400
+ """
7401
+ return self._RWPermission
7402
+
7403
+ @RWPermission.setter
7404
+ def RWPermission(self, RWPermission):
7405
+ self._RWPermission = RWPermission
7406
+
7407
+ @property
7408
+ def UserPermission(self):
7409
+ r"""用户权限。其中all_squash为所有访问用户都会被映射为匿名用户或用户组;no_all_squash为访问用户会先与本机用户匹配,匹配失败后再映射为匿名用户或用户组;root_squash为将来访的root用户映射为匿名用户或用户组;no_root_squash为来访的root用户保持root帐号权限。
7410
+ :rtype: str
7411
+ """
7412
+ return self._UserPermission
7413
+
7414
+ @UserPermission.setter
7415
+ def UserPermission(self, UserPermission):
7416
+ self._UserPermission = UserPermission
7417
+
7418
+ @property
7419
+ def Priority(self):
7420
+ r"""规则优先级,1-100。 其中 1 为最高,100为最低
7421
+ :rtype: int
7422
+ """
7423
+ return self._Priority
7424
+
7425
+ @Priority.setter
7426
+ def Priority(self, Priority):
7427
+ self._Priority = Priority
7428
+
7429
+
7430
+ def _deserialize(self, params):
7431
+ self._AuthClientIp = params.get("AuthClientIp")
7432
+ self._RWPermission = params.get("RWPermission")
7433
+ self._UserPermission = params.get("UserPermission")
7434
+ self._Priority = params.get("Priority")
7435
+ memeber_set = set(params.keys())
7436
+ for name, value in vars(self).items():
7437
+ property_name = name[1:]
7438
+ if property_name in memeber_set:
7439
+ memeber_set.remove(property_name)
7440
+ if len(memeber_set) > 0:
7441
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7442
+
7443
+
7444
+
7364
7445
  class LifecycleDataTaskInfo(AbstractModel):
7365
7446
  r"""生命周期任务
7366
7447
 
@@ -9109,6 +9190,110 @@ create_failed: 创建失败
9109
9190
 
9110
9191
 
9111
9192
 
9193
+ class OverrideCfsRulesRequest(AbstractModel):
9194
+ r"""OverrideCfsRules请求参数结构体
9195
+
9196
+ """
9197
+
9198
+ def __init__(self):
9199
+ r"""
9200
+ :param _PermissionGroupId: 权限组 ID
9201
+ :type PermissionGroupId: str
9202
+ :param _RuleList: 权限组规则列表
9203
+ :type RuleList: list of InputPermissionGroupRules
9204
+ """
9205
+ self._PermissionGroupId = None
9206
+ self._RuleList = None
9207
+
9208
+ @property
9209
+ def PermissionGroupId(self):
9210
+ r"""权限组 ID
9211
+ :rtype: str
9212
+ """
9213
+ return self._PermissionGroupId
9214
+
9215
+ @PermissionGroupId.setter
9216
+ def PermissionGroupId(self, PermissionGroupId):
9217
+ self._PermissionGroupId = PermissionGroupId
9218
+
9219
+ @property
9220
+ def RuleList(self):
9221
+ r"""权限组规则列表
9222
+ :rtype: list of InputPermissionGroupRules
9223
+ """
9224
+ return self._RuleList
9225
+
9226
+ @RuleList.setter
9227
+ def RuleList(self, RuleList):
9228
+ self._RuleList = RuleList
9229
+
9230
+
9231
+ def _deserialize(self, params):
9232
+ self._PermissionGroupId = params.get("PermissionGroupId")
9233
+ if params.get("RuleList") is not None:
9234
+ self._RuleList = []
9235
+ for item in params.get("RuleList"):
9236
+ obj = InputPermissionGroupRules()
9237
+ obj._deserialize(item)
9238
+ self._RuleList.append(obj)
9239
+ memeber_set = set(params.keys())
9240
+ for name, value in vars(self).items():
9241
+ property_name = name[1:]
9242
+ if property_name in memeber_set:
9243
+ memeber_set.remove(property_name)
9244
+ if len(memeber_set) > 0:
9245
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
9246
+
9247
+
9248
+
9249
+ class OverrideCfsRulesResponse(AbstractModel):
9250
+ r"""OverrideCfsRules返回参数结构体
9251
+
9252
+ """
9253
+
9254
+ def __init__(self):
9255
+ r"""
9256
+ :param _RuleList: 权限组规则列表
9257
+ :type RuleList: list of PGroupRuleInfo
9258
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9259
+ :type RequestId: str
9260
+ """
9261
+ self._RuleList = None
9262
+ self._RequestId = None
9263
+
9264
+ @property
9265
+ def RuleList(self):
9266
+ r"""权限组规则列表
9267
+ :rtype: list of PGroupRuleInfo
9268
+ """
9269
+ return self._RuleList
9270
+
9271
+ @RuleList.setter
9272
+ def RuleList(self, RuleList):
9273
+ self._RuleList = RuleList
9274
+
9275
+ @property
9276
+ def RequestId(self):
9277
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9278
+ :rtype: str
9279
+ """
9280
+ return self._RequestId
9281
+
9282
+ @RequestId.setter
9283
+ def RequestId(self, RequestId):
9284
+ self._RequestId = RequestId
9285
+
9286
+
9287
+ def _deserialize(self, params):
9288
+ if params.get("RuleList") is not None:
9289
+ self._RuleList = []
9290
+ for item in params.get("RuleList"):
9291
+ obj = PGroupRuleInfo()
9292
+ obj._deserialize(item)
9293
+ self._RuleList.append(obj)
9294
+ self._RequestId = params.get("RequestId")
9295
+
9296
+
9112
9297
  class PGroup(AbstractModel):
9113
9298
  r"""文件系统绑定权限组信息
9114
9299
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cfs
3
- Version: 3.1.84
3
+ Version: 3.1.95
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<4.0.0,>=3.1.84
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.95
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.95
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.84