tencentcloud-sdk-python-cfs 3.0.1304__tar.gz → 3.0.1306__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 (16) hide show
  1. {tencentcloud-sdk-python-cfs-3.0.1304 → tencentcloud-sdk-python-cfs-3.0.1306}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-cfs-3.0.1304 → tencentcloud-sdk-python-cfs-3.0.1306}/setup.py +1 -1
  3. {tencentcloud-sdk-python-cfs-3.0.1304 → tencentcloud-sdk-python-cfs-3.0.1306}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-cfs-3.0.1304 → tencentcloud-sdk-python-cfs-3.0.1306}/tencentcloud/cfs/v20190719/cfs_client.py +23 -0
  5. {tencentcloud-sdk-python-cfs-3.0.1304 → tencentcloud-sdk-python-cfs-3.0.1306}/tencentcloud/cfs/v20190719/models.py +79 -0
  6. {tencentcloud-sdk-python-cfs-3.0.1304 → tencentcloud-sdk-python-cfs-3.0.1306}/tencentcloud_sdk_python_cfs.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-cfs-3.0.1306/tencentcloud_sdk_python_cfs.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-cfs-3.0.1304/tencentcloud_sdk_python_cfs.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-cfs-3.0.1304 → tencentcloud-sdk-python-cfs-3.0.1306}/README.rst +0 -0
  10. {tencentcloud-sdk-python-cfs-3.0.1304 → tencentcloud-sdk-python-cfs-3.0.1306}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-cfs-3.0.1304 → tencentcloud-sdk-python-cfs-3.0.1306}/tencentcloud/cfs/__init__.py +0 -0
  12. {tencentcloud-sdk-python-cfs-3.0.1304 → tencentcloud-sdk-python-cfs-3.0.1306}/tencentcloud/cfs/v20190719/__init__.py +0 -0
  13. {tencentcloud-sdk-python-cfs-3.0.1304 → tencentcloud-sdk-python-cfs-3.0.1306}/tencentcloud/cfs/v20190719/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-cfs-3.0.1304 → tencentcloud-sdk-python-cfs-3.0.1306}/tencentcloud_sdk_python_cfs.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-cfs-3.0.1304 → tencentcloud-sdk-python-cfs-3.0.1306}/tencentcloud_sdk_python_cfs.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-cfs-3.0.1304 → tencentcloud-sdk-python-cfs-3.0.1306}/tencentcloud_sdk_python_cfs.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-cfs
3
- Version: 3.0.1304
3
+ Version: 3.0.1306
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
@@ -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.0.1304"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1306"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Cfs SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1304'
17
+ __version__ = '3.0.1306'
@@ -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
 
@@ -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: 1.2
2
2
  Name: tencentcloud-sdk-python-cfs
3
- Version: 3.0.1304
3
+ Version: 3.0.1306
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1306
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1304