tencentcloud-sdk-python-cfs 3.0.1435__tar.gz → 3.0.1441__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.1435 → tencentcloud-sdk-python-cfs-3.0.1441}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-cfs-3.0.1435 → tencentcloud-sdk-python-cfs-3.0.1441}/setup.py +1 -1
  3. {tencentcloud-sdk-python-cfs-3.0.1435 → tencentcloud-sdk-python-cfs-3.0.1441}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-cfs-3.0.1435 → tencentcloud-sdk-python-cfs-3.0.1441}/tencentcloud/cfs/v20190719/cfs_client.py +23 -0
  5. {tencentcloud-sdk-python-cfs-3.0.1435 → tencentcloud-sdk-python-cfs-3.0.1441}/tencentcloud/cfs/v20190719/models.py +140 -18
  6. {tencentcloud-sdk-python-cfs-3.0.1435 → tencentcloud-sdk-python-cfs-3.0.1441}/tencentcloud_sdk_python_cfs.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-cfs-3.0.1441/tencentcloud_sdk_python_cfs.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-cfs-3.0.1435/tencentcloud_sdk_python_cfs.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-cfs-3.0.1435 → tencentcloud-sdk-python-cfs-3.0.1441}/README.rst +0 -0
  10. {tencentcloud-sdk-python-cfs-3.0.1435 → tencentcloud-sdk-python-cfs-3.0.1441}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-cfs-3.0.1435 → tencentcloud-sdk-python-cfs-3.0.1441}/tencentcloud/cfs/__init__.py +0 -0
  12. {tencentcloud-sdk-python-cfs-3.0.1435 → tencentcloud-sdk-python-cfs-3.0.1441}/tencentcloud/cfs/v20190719/__init__.py +0 -0
  13. {tencentcloud-sdk-python-cfs-3.0.1435 → tencentcloud-sdk-python-cfs-3.0.1441}/tencentcloud/cfs/v20190719/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-cfs-3.0.1435 → tencentcloud-sdk-python-cfs-3.0.1441}/tencentcloud_sdk_python_cfs.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-cfs-3.0.1435 → tencentcloud-sdk-python-cfs-3.0.1441}/tencentcloud_sdk_python_cfs.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-cfs-3.0.1435 → tencentcloud-sdk-python-cfs-3.0.1441}/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.1435
3
+ Version: 3.0.1441
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.1435,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.0.1441,<4.0.0"],
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.1435'
17
+ __version__ = '3.0.1441'
@@ -948,6 +948,29 @@ class CfsClient(AbstractClient):
948
948
  raise TencentCloudSDKException(type(e).__name__, str(e))
949
949
 
950
950
 
951
+ def DoDirectoryOperation(self, request):
952
+ """文件系统目录操作接口
953
+
954
+ :param request: Request instance for DoDirectoryOperation.
955
+ :type request: :class:`tencentcloud.cfs.v20190719.models.DoDirectoryOperationRequest`
956
+ :rtype: :class:`tencentcloud.cfs.v20190719.models.DoDirectoryOperationResponse`
957
+
958
+ """
959
+ try:
960
+ params = request._serialize()
961
+ headers = request.headers
962
+ body = self.call("DoDirectoryOperation", params, headers=headers)
963
+ response = json.loads(body)
964
+ model = models.DoDirectoryOperationResponse()
965
+ model._deserialize(response["Response"])
966
+ return model
967
+ except Exception as e:
968
+ if isinstance(e, TencentCloudSDKException):
969
+ raise
970
+ else:
971
+ raise TencentCloudSDKException(type(e).__name__, str(e))
972
+
973
+
951
974
  def ModifyDataFlow(self, request):
952
975
  """修改数据流动相关参数
953
976
 
@@ -4968,9 +4968,9 @@ class DescribeCfsSnapshotsRequest(AbstractModel):
4968
4968
 
4969
4969
  def __init__(self):
4970
4970
  r"""
4971
- :param _FileSystemId: 文件系统ID
4971
+ :param _FileSystemId: 文件系统 ID,通过查询文件系统 [DescribeCfsFileSystems](https://cloud.tencent.com/document/product/582/38170) 获取
4972
4972
  :type FileSystemId: str
4973
- :param _SnapshotId: 快照ID
4973
+ :param _SnapshotId: 快照 ID
4974
4974
  :type SnapshotId: str
4975
4975
  :param _Offset: 分页起始位置,默认为0
4976
4976
  :type Offset: int
@@ -4981,14 +4981,13 @@ class DescribeCfsSnapshotsRequest(AbstractModel):
4981
4981
  <br>SnapshotName - Array of String - 是否必填:否 -(过滤条件)按照快照名称过滤。
4982
4982
  <br>FileSystemId - Array of String - 是否必填:否 -(过滤条件)按文件系统ID过滤。
4983
4983
  <br>FsName - Array of String - 是否必填:否 -(过滤条件)按文件系统名过滤。
4984
- <br>Status - Array of String - 是否必填:否 -(过滤条件)按照快照状态过滤
4985
- (creating:创建中 | available:运行中| deleting: 删除中 | rollbacking_new:由快照创建新文件系统中| create-failed 创建失败)
4984
+ <br>Status - Array of String - 是否必填:否 -(过滤条件)按照快照状态过滤。状态分类:creating:创建中 | available:运行中 | deleting:删除中 | rollbacking_new:由快照创建新文件系统中 | create-failed:创建失败。
4986
4985
  <br>tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键进行过滤。
4987
- <br>tag:tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。
4986
+ <br>tag:tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键值对进行过滤。 tag-key 使用具体的标签键进行替换。
4988
4987
  :type Filters: list of Filter
4989
4988
  :param _OrderField: 按创建时间排序取值
4990
4989
  :type OrderField: str
4991
- :param _Order: 排序 升序或者降序
4990
+ :param _Order: 排序;升序或者降序
4992
4991
  :type Order: str
4993
4992
  """
4994
4993
  self._FileSystemId = None
@@ -5001,7 +5000,7 @@ class DescribeCfsSnapshotsRequest(AbstractModel):
5001
5000
 
5002
5001
  @property
5003
5002
  def FileSystemId(self):
5004
- """文件系统ID
5003
+ """文件系统 ID,通过查询文件系统 [DescribeCfsFileSystems](https://cloud.tencent.com/document/product/582/38170) 获取
5005
5004
  :rtype: str
5006
5005
  """
5007
5006
  return self._FileSystemId
@@ -5012,7 +5011,7 @@ class DescribeCfsSnapshotsRequest(AbstractModel):
5012
5011
 
5013
5012
  @property
5014
5013
  def SnapshotId(self):
5015
- """快照ID
5014
+ """快照 ID
5016
5015
  :rtype: str
5017
5016
  """
5018
5017
  return self._SnapshotId
@@ -5050,10 +5049,9 @@ class DescribeCfsSnapshotsRequest(AbstractModel):
5050
5049
  <br>SnapshotName - Array of String - 是否必填:否 -(过滤条件)按照快照名称过滤。
5051
5050
  <br>FileSystemId - Array of String - 是否必填:否 -(过滤条件)按文件系统ID过滤。
5052
5051
  <br>FsName - Array of String - 是否必填:否 -(过滤条件)按文件系统名过滤。
5053
- <br>Status - Array of String - 是否必填:否 -(过滤条件)按照快照状态过滤
5054
- (creating:创建中 | available:运行中| deleting: 删除中 | rollbacking_new:由快照创建新文件系统中| create-failed 创建失败)
5052
+ <br>Status - Array of String - 是否必填:否 -(过滤条件)按照快照状态过滤。状态分类:creating:创建中 | available:运行中 | deleting:删除中 | rollbacking_new:由快照创建新文件系统中 | create-failed:创建失败。
5055
5053
  <br>tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键进行过滤。
5056
- <br>tag:tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。
5054
+ <br>tag:tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键值对进行过滤。 tag-key 使用具体的标签键进行替换。
5057
5055
  :rtype: list of Filter
5058
5056
  """
5059
5057
  return self._Filters
@@ -5075,7 +5073,7 @@ class DescribeCfsSnapshotsRequest(AbstractModel):
5075
5073
 
5076
5074
  @property
5077
5075
  def Order(self):
5078
- """排序 升序或者降序
5076
+ """排序;升序或者降序
5079
5077
  :rtype: str
5080
5078
  """
5081
5079
  return self._Order
@@ -6228,6 +6226,130 @@ class DescribeUserQuotaResponse(AbstractModel):
6228
6226
  self._RequestId = params.get("RequestId")
6229
6227
 
6230
6228
 
6229
+ class DoDirectoryOperationRequest(AbstractModel):
6230
+ """DoDirectoryOperation请求参数结构体
6231
+
6232
+ """
6233
+
6234
+ def __init__(self):
6235
+ r"""
6236
+ :param _FileSystemId: 文件系统Id
6237
+ :type FileSystemId: str
6238
+ :param _OpetationType: create:创建目录 check:确认目录是否存在
6239
+ :type OpetationType: str
6240
+ :param _DirectoryPath: 目录的绝对路径 默认递归创建(即如果目录中有子目录不存在,则先创建出对应子目录)
6241
+ :type DirectoryPath: str
6242
+ :param _Mode: 创建目录的权限,若不传,默认为0755 若Operation Type为check,此值无实际意义
6243
+ :type Mode: str
6244
+ """
6245
+ self._FileSystemId = None
6246
+ self._OpetationType = None
6247
+ self._DirectoryPath = None
6248
+ self._Mode = None
6249
+
6250
+ @property
6251
+ def FileSystemId(self):
6252
+ """文件系统Id
6253
+ :rtype: str
6254
+ """
6255
+ return self._FileSystemId
6256
+
6257
+ @FileSystemId.setter
6258
+ def FileSystemId(self, FileSystemId):
6259
+ self._FileSystemId = FileSystemId
6260
+
6261
+ @property
6262
+ def OpetationType(self):
6263
+ """create:创建目录 check:确认目录是否存在
6264
+ :rtype: str
6265
+ """
6266
+ return self._OpetationType
6267
+
6268
+ @OpetationType.setter
6269
+ def OpetationType(self, OpetationType):
6270
+ self._OpetationType = OpetationType
6271
+
6272
+ @property
6273
+ def DirectoryPath(self):
6274
+ """目录的绝对路径 默认递归创建(即如果目录中有子目录不存在,则先创建出对应子目录)
6275
+ :rtype: str
6276
+ """
6277
+ return self._DirectoryPath
6278
+
6279
+ @DirectoryPath.setter
6280
+ def DirectoryPath(self, DirectoryPath):
6281
+ self._DirectoryPath = DirectoryPath
6282
+
6283
+ @property
6284
+ def Mode(self):
6285
+ """创建目录的权限,若不传,默认为0755 若Operation Type为check,此值无实际意义
6286
+ :rtype: str
6287
+ """
6288
+ return self._Mode
6289
+
6290
+ @Mode.setter
6291
+ def Mode(self, Mode):
6292
+ self._Mode = Mode
6293
+
6294
+
6295
+ def _deserialize(self, params):
6296
+ self._FileSystemId = params.get("FileSystemId")
6297
+ self._OpetationType = params.get("OpetationType")
6298
+ self._DirectoryPath = params.get("DirectoryPath")
6299
+ self._Mode = params.get("Mode")
6300
+ memeber_set = set(params.keys())
6301
+ for name, value in vars(self).items():
6302
+ property_name = name[1:]
6303
+ if property_name in memeber_set:
6304
+ memeber_set.remove(property_name)
6305
+ if len(memeber_set) > 0:
6306
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
6307
+
6308
+
6309
+
6310
+ class DoDirectoryOperationResponse(AbstractModel):
6311
+ """DoDirectoryOperation返回参数结构体
6312
+
6313
+ """
6314
+
6315
+ def __init__(self):
6316
+ r"""
6317
+ :param _Result: 1:成功 0:失败 创建目录的操作,1表示创建成功,0表示创建失败。 确认目录是否存在的操作,1表示目录存在,0表示目录不存在。 说明:创建目录操作若目录已存在,也会返回创建成功。
6318
+ :type Result: int
6319
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6320
+ :type RequestId: str
6321
+ """
6322
+ self._Result = None
6323
+ self._RequestId = None
6324
+
6325
+ @property
6326
+ def Result(self):
6327
+ """1:成功 0:失败 创建目录的操作,1表示创建成功,0表示创建失败。 确认目录是否存在的操作,1表示目录存在,0表示目录不存在。 说明:创建目录操作若目录已存在,也会返回创建成功。
6328
+ :rtype: int
6329
+ """
6330
+ return self._Result
6331
+
6332
+ @Result.setter
6333
+ def Result(self, Result):
6334
+ self._Result = Result
6335
+
6336
+ @property
6337
+ def RequestId(self):
6338
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6339
+ :rtype: str
6340
+ """
6341
+ return self._RequestId
6342
+
6343
+ @RequestId.setter
6344
+ def RequestId(self, RequestId):
6345
+ self._RequestId = RequestId
6346
+
6347
+
6348
+ def _deserialize(self, params):
6349
+ self._Result = params.get("Result")
6350
+ self._RequestId = params.get("RequestId")
6351
+
6352
+
6231
6353
  class ExstraPerformanceInfo(AbstractModel):
6232
6354
  """购买完额外性能之后的值
6233
6355
 
@@ -9249,7 +9371,7 @@ class SnapshotInfo(AbstractModel):
9249
9371
  :type SnapshotName: str
9250
9372
  :param _SnapshotId: 快照ID
9251
9373
  :type SnapshotId: str
9252
- :param _Status: 快照状态,createing-创建中;available-运行中;deleting-删除中;rollbacking-new 创建新文件系统中;create-failed 创建失败
9374
+ :param _Status: 快照状态,creating-创建中;available-运行中;deleting-删除中;rollbacking-new 创建新文件系统中;create-failed 创建失败
9253
9375
  :type Status: str
9254
9376
  :param _RegionName: 地域名称
9255
9377
  :type RegionName: str
@@ -9269,10 +9391,10 @@ class SnapshotInfo(AbstractModel):
9269
9391
  :type FsName: str
9270
9392
  :param _Tags: 快照标签
9271
9393
  :type Tags: list of TagInfo
9272
- :param _SnapshotType: 快照类型, general为通用系列快照,turbo为Turbo系列快照
9394
+ :param _SnapshotType: 快照类型,general为通用系列快照,turbo为Turbo系列快照
9273
9395
  注意:此字段可能返回 null,表示取不到有效值。
9274
9396
  :type SnapshotType: str
9275
- :param _SnapshotTime: 实际快照时间,反应快照对应文件系统某个时刻的数据。
9397
+ :param _SnapshotTime: 实际快照时间,反映快照对应文件系统某个时刻的数据。
9276
9398
  注意:此字段可能返回 null,表示取不到有效值。
9277
9399
  :type SnapshotTime: str
9278
9400
  """
@@ -9327,7 +9449,7 @@ class SnapshotInfo(AbstractModel):
9327
9449
 
9328
9450
  @property
9329
9451
  def Status(self):
9330
- """快照状态,createing-创建中;available-运行中;deleting-删除中;rollbacking-new 创建新文件系统中;create-failed 创建失败
9452
+ """快照状态,creating-创建中;available-运行中;deleting-删除中;rollbacking-new 创建新文件系统中;create-failed 创建失败
9331
9453
  :rtype: str
9332
9454
  """
9333
9455
  return self._Status
@@ -9437,7 +9559,7 @@ class SnapshotInfo(AbstractModel):
9437
9559
 
9438
9560
  @property
9439
9561
  def SnapshotType(self):
9440
- """快照类型, general为通用系列快照,turbo为Turbo系列快照
9562
+ """快照类型,general为通用系列快照,turbo为Turbo系列快照
9441
9563
  注意:此字段可能返回 null,表示取不到有效值。
9442
9564
  :rtype: str
9443
9565
  """
@@ -9449,7 +9571,7 @@ class SnapshotInfo(AbstractModel):
9449
9571
 
9450
9572
  @property
9451
9573
  def SnapshotTime(self):
9452
- """实际快照时间,反应快照对应文件系统某个时刻的数据。
9574
+ """实际快照时间,反映快照对应文件系统某个时刻的数据。
9453
9575
  注意:此字段可能返回 null,表示取不到有效值。
9454
9576
  :rtype: str
9455
9577
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-cfs
3
- Version: 3.0.1435
3
+ Version: 3.0.1441
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<4.0.0,>=3.0.1441
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.0.1435