tencentcloud-sdk-python-cfs 3.1.27__tar.gz → 3.1.37__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.27 → tencentcloud_sdk_python_cfs-3.1.37}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_cfs-3.1.27 → tencentcloud_sdk_python_cfs-3.1.37}/setup.py +1 -1
  3. {tencentcloud_sdk_python_cfs-3.1.27 → tencentcloud_sdk_python_cfs-3.1.37}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_cfs-3.1.27 → tencentcloud_sdk_python_cfs-3.1.37}/tencentcloud/cfs/v20190719/cfs_client.py +1 -1
  5. {tencentcloud_sdk_python_cfs-3.1.27 → tencentcloud_sdk_python_cfs-3.1.37}/tencentcloud/cfs/v20190719/cfs_client_async.py +1 -1
  6. {tencentcloud_sdk_python_cfs-3.1.27 → tencentcloud_sdk_python_cfs-3.1.37}/tencentcloud/cfs/v20190719/errorcodes.py +6 -0
  7. {tencentcloud_sdk_python_cfs-3.1.27 → tencentcloud_sdk_python_cfs-3.1.37}/tencentcloud/cfs/v20190719/models.py +135 -8
  8. {tencentcloud_sdk_python_cfs-3.1.27 → tencentcloud_sdk_python_cfs-3.1.37}/tencentcloud_sdk_python_cfs.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_cfs-3.1.37/tencentcloud_sdk_python_cfs.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_cfs-3.1.27/tencentcloud_sdk_python_cfs.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_cfs-3.1.27 → tencentcloud_sdk_python_cfs-3.1.37}/README.rst +0 -0
  12. {tencentcloud_sdk_python_cfs-3.1.27 → tencentcloud_sdk_python_cfs-3.1.37}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_cfs-3.1.27 → tencentcloud_sdk_python_cfs-3.1.37}/tencentcloud/cfs/__init__.py +0 -0
  14. {tencentcloud_sdk_python_cfs-3.1.27 → tencentcloud_sdk_python_cfs-3.1.37}/tencentcloud/cfs/v20190719/__init__.py +0 -0
  15. {tencentcloud_sdk_python_cfs-3.1.27 → tencentcloud_sdk_python_cfs-3.1.37}/tencentcloud_sdk_python_cfs.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_cfs-3.1.27 → tencentcloud_sdk_python_cfs-3.1.37}/tencentcloud_sdk_python_cfs.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_cfs-3.1.27 → tencentcloud_sdk_python_cfs-3.1.37}/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.27
3
+ Version: 3.1.37
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.27
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.37
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.27,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.37,<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.27'
17
+ __version__ = '3.1.37'
@@ -925,7 +925,7 @@ class CfsClient(AbstractClient):
925
925
 
926
926
 
927
927
  def DoDirectoryOperation(self, request):
928
- r"""文件系统目录操作接口
928
+ r"""文件系统目录操作接口。当前仅 Turbo 系列文件系统支持调用此接口进行目录操作,通用系列文件系统(含增强型)不支持调用。
929
929
 
930
930
  :param request: Request instance for DoDirectoryOperation.
931
931
  :type request: :class:`tencentcloud.cfs.v20190719.models.DoDirectoryOperationRequest`
@@ -734,7 +734,7 @@ class CfsClient(AbstractClient):
734
734
  opts: Dict = None,
735
735
  ) -> models.DoDirectoryOperationResponse:
736
736
  """
737
- 文件系统目录操作接口
737
+ 文件系统目录操作接口。当前仅 Turbo 系列文件系统支持调用此接口进行目录操作,通用系列文件系统(含增强型)不支持调用。
738
738
  """
739
739
 
740
740
  kwargs = {}
@@ -119,6 +119,9 @@ INVALIDPARAMETERVALUE_DUPLICATEDRULEAUTHCLIENTIP = 'InvalidParameterValue.Duplic
119
119
  # 标签键重复
120
120
  INVALIDPARAMETERVALUE_DUPLICATEDTAGKEY = 'InvalidParameterValue.DuplicatedTagKey'
121
121
 
122
+ # ExternalStorage 生命周期模式只支持数据流动
123
+ INVALIDPARAMETERVALUE_EXTERNALSTORAGESUPPORTDATAFLOWONLY = 'InvalidParameterValue.ExternalStorageSupportDataflowOnly'
124
+
122
125
  # 用户自定义名称过长(超过64字节)。
123
126
  INVALIDPARAMETERVALUE_FSNAMELIMITEXCEEDED = 'InvalidParameterValue.FsNameLimitExceeded'
124
127
 
@@ -317,6 +320,9 @@ INVALIDPARAMETERVALUE_MISSINGZONEID = 'InvalidParameterValue.MissingZoneId'
317
320
  # 用户区域选择错误 (Zone) 或 (Zone_id)二者必选一。
318
321
  INVALIDPARAMETERVALUE_MISSINGZONEORZONEID = 'InvalidParameterValue.MissingZoneOrZoneId'
319
322
 
323
+ # 该文件系统目录已配置数据流动,请配置其他规则
324
+ INVALIDPARAMETERVALUE_PATHUSEDINDATAFLOW = 'InvalidParameterValue.PathUsedInDataflow'
325
+
320
326
  # 权限组描述长度超过限制(不能超过255字节)。
321
327
  INVALIDPARAMETERVALUE_PGROUPDESCINFOLIMITEXCEEDED = 'InvalidParameterValue.PgroupDescinfoLimitExceeded'
322
328
 
@@ -2552,12 +2552,15 @@ class CreateLifecycleDataTaskRequest(AbstractModel):
2552
2552
  :type TaskName: str
2553
2553
  :param _DataFlowId: 数据流动 ID ,该接口可以通过 DescribeDataFlow 查询
2554
2554
  :type DataFlowId: str
2555
+ :param _IsOverwrite: 当CFSTurbo内的文件和外置存储存在同名情况时,是否覆盖。 ture:覆盖 false:不覆盖(同时也不会释放热存数据) 为空时,默认为false
2556
+ :type IsOverwrite: bool
2555
2557
  """
2556
2558
  self._FileSystemId = None
2557
2559
  self._Type = None
2558
2560
  self._TaskPath = None
2559
2561
  self._TaskName = None
2560
2562
  self._DataFlowId = None
2563
+ self._IsOverwrite = None
2561
2564
 
2562
2565
  @property
2563
2566
  def FileSystemId(self):
@@ -2614,6 +2617,17 @@ class CreateLifecycleDataTaskRequest(AbstractModel):
2614
2617
  def DataFlowId(self, DataFlowId):
2615
2618
  self._DataFlowId = DataFlowId
2616
2619
 
2620
+ @property
2621
+ def IsOverwrite(self):
2622
+ r""" 当CFSTurbo内的文件和外置存储存在同名情况时,是否覆盖。 ture:覆盖 false:不覆盖(同时也不会释放热存数据) 为空时,默认为false
2623
+ :rtype: bool
2624
+ """
2625
+ return self._IsOverwrite
2626
+
2627
+ @IsOverwrite.setter
2628
+ def IsOverwrite(self, IsOverwrite):
2629
+ self._IsOverwrite = IsOverwrite
2630
+
2617
2631
 
2618
2632
  def _deserialize(self, params):
2619
2633
  self._FileSystemId = params.get("FileSystemId")
@@ -2621,6 +2635,7 @@ class CreateLifecycleDataTaskRequest(AbstractModel):
2621
2635
  self._TaskPath = params.get("TaskPath")
2622
2636
  self._TaskName = params.get("TaskName")
2623
2637
  self._DataFlowId = params.get("DataFlowId")
2638
+ self._IsOverwrite = params.get("IsOverwrite")
2624
2639
  memeber_set = set(params.keys())
2625
2640
  for name, value in vars(self).items():
2626
2641
  property_name = name[1:]
@@ -6382,7 +6397,7 @@ class DoDirectoryOperationRequest(AbstractModel):
6382
6397
 
6383
6398
  def __init__(self):
6384
6399
  r"""
6385
- :param _FileSystemId: 文件系统Id
6400
+ :param _FileSystemId: 文件系统 ID。当前仅 Turbo 系列文件系统支持调用此接口,通用系列文件系统(含增强型)不支持调用。
6386
6401
  :type FileSystemId: str
6387
6402
  :param _OpetationType: create:创建目录,等同于mkdir。
6388
6403
  check:确认目录是否存在,等同于stat。
@@ -6390,9 +6405,9 @@ move:对文件/目录进行重命名,等同于mv。
6390
6405
  :type OpetationType: str
6391
6406
  :param _DirectoryPath: 目录的绝对路径 默认递归创建(即如果目录中有子目录不存在,则先创建出对应子目录)
6392
6407
  :type DirectoryPath: str
6393
- :param _Mode: 创建目录的权限,若不传,默认为0755 若Operation Type为check,此值无实际意义
6408
+ :param _Mode: 创建目录的权限,若不传,默认为0755。若OperationType为 check,此值无实际意义。
6394
6409
  :type Mode: str
6395
- :param _DestPath: mv操作的目标目录名称;如果是turbo文件系统必须以/cfs/开头
6410
+ :param _DestPath: mv 操作的目标目录名称。路径必须以/cfs/开头
6396
6411
  :type DestPath: str
6397
6412
  """
6398
6413
  self._FileSystemId = None
@@ -6403,7 +6418,7 @@ move:对文件/目录进行重命名,等同于mv。
6403
6418
 
6404
6419
  @property
6405
6420
  def FileSystemId(self):
6406
- r"""文件系统Id
6421
+ r"""文件系统 ID。当前仅 Turbo 系列文件系统支持调用此接口,通用系列文件系统(含增强型)不支持调用。
6407
6422
  :rtype: str
6408
6423
  """
6409
6424
  return self._FileSystemId
@@ -6438,7 +6453,7 @@ move:对文件/目录进行重命名,等同于mv。
6438
6453
 
6439
6454
  @property
6440
6455
  def Mode(self):
6441
- r"""创建目录的权限,若不传,默认为0755 若Operation Type为check,此值无实际意义
6456
+ r"""创建目录的权限,若不传,默认为0755。若OperationType为 check,此值无实际意义。
6442
6457
  :rtype: str
6443
6458
  """
6444
6459
  return self._Mode
@@ -6449,7 +6464,7 @@ move:对文件/目录进行重命名,等同于mv。
6449
6464
 
6450
6465
  @property
6451
6466
  def DestPath(self):
6452
- r"""mv操作的目标目录名称;如果是turbo文件系统必须以/cfs/开头
6467
+ r"""mv 操作的目标目录名称。路径必须以/cfs/开头
6453
6468
  :rtype: str
6454
6469
  """
6455
6470
  return self._DestPath
@@ -6482,7 +6497,7 @@ class DoDirectoryOperationResponse(AbstractModel):
6482
6497
 
6483
6498
  def __init__(self):
6484
6499
  r"""
6485
- :param _Result: 1:成功 0:失败 创建目录的操作,1表示创建成功,0表示创建失败。 确认目录是否存在的操作,1表示目录存在,0表示目录不存在。 说明:创建目录操作若目录已存在,也会返回创建成功。
6500
+ :param _Result: 1:成功 0:失败。创建目录的操作,1表示创建成功,0表示创建失败。 确认目录是否存在的操作,1表示目录存在,0表示目录不存在。此外,创建目录操作若目录已存在,也会返回创建成功。
6486
6501
  :type Result: int
6487
6502
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6488
6503
  :type RequestId: str
@@ -6492,7 +6507,7 @@ class DoDirectoryOperationResponse(AbstractModel):
6492
6507
 
6493
6508
  @property
6494
6509
  def Result(self):
6495
- r"""1:成功 0:失败 创建目录的操作,1表示创建成功,0表示创建失败。 确认目录是否存在的操作,1表示目录存在,0表示目录不存在。 说明:创建目录操作若目录已存在,也会返回创建成功。
6510
+ r"""1:成功 0:失败。创建目录的操作,1表示创建成功,0表示创建失败。 确认目录是否存在的操作,1表示目录存在,0表示目录不存在。此外,创建目录操作若目录已存在,也会返回创建成功。
6496
6511
  :rtype: int
6497
6512
  """
6498
6513
  return self._Result
@@ -7388,6 +7403,13 @@ running:执行中,finished:已完成
7388
7403
  :type Type: str
7389
7404
  :param _DataFlowId: 数据流动Id
7390
7405
  :type DataFlowId: str
7406
+ :param _IsOverwrite: 当CFSTurbo内的文件和外置存储存在同名情况时,是否覆盖。
7407
+
7408
+ ture:覆盖
7409
+
7410
+ false:不覆盖(同时也不会释放热存数据)
7411
+ 为空时,默认为false
7412
+ :type IsOverwrite: bool
7391
7413
  """
7392
7414
  self._TaskId = None
7393
7415
  self._TaskStatus = None
@@ -7407,6 +7429,7 @@ running:执行中,finished:已完成
7407
7429
  self._TaskPath = None
7408
7430
  self._Type = None
7409
7431
  self._DataFlowId = None
7432
+ self._IsOverwrite = None
7410
7433
 
7411
7434
  @property
7412
7435
  def TaskId(self):
@@ -7615,6 +7638,22 @@ running:执行中,finished:已完成
7615
7638
  def DataFlowId(self, DataFlowId):
7616
7639
  self._DataFlowId = DataFlowId
7617
7640
 
7641
+ @property
7642
+ def IsOverwrite(self):
7643
+ r"""当CFSTurbo内的文件和外置存储存在同名情况时,是否覆盖。
7644
+
7645
+ ture:覆盖
7646
+
7647
+ false:不覆盖(同时也不会释放热存数据)
7648
+ 为空时,默认为false
7649
+ :rtype: bool
7650
+ """
7651
+ return self._IsOverwrite
7652
+
7653
+ @IsOverwrite.setter
7654
+ def IsOverwrite(self, IsOverwrite):
7655
+ self._IsOverwrite = IsOverwrite
7656
+
7618
7657
 
7619
7658
  def _deserialize(self, params):
7620
7659
  self._TaskId = params.get("TaskId")
@@ -7635,6 +7674,7 @@ running:执行中,finished:已完成
7635
7674
  self._TaskPath = params.get("TaskPath")
7636
7675
  self._Type = params.get("Type")
7637
7676
  self._DataFlowId = params.get("DataFlowId")
7677
+ self._IsOverwrite = params.get("IsOverwrite")
7638
7678
  memeber_set = set(params.keys())
7639
7679
  for name, value in vars(self).items():
7640
7680
  property_name = name[1:]
@@ -7779,6 +7819,20 @@ class LifecycleRule(AbstractModel):
7779
7819
  :param _FileMinSize: 数据转储文件最小规格。其数值需使用“数字+单位”格式进行表示,单位支持K(KiB)、M(MiB)、G(GiB)。
7780
7820
  注意:此字段可能返回 null,表示取不到有效值。
7781
7821
  :type FileMinSize: str
7822
+ :param _PolicyType: 策略类型
7823
+ :type PolicyType: str
7824
+ :param _ExpireThreshold: 阈值范围[10-90]
7825
+ :type ExpireThreshold: int
7826
+ :param _TargetThreshold: 阈值范围[10-90]
7827
+ :type TargetThreshold: int
7828
+ :param _IsOverwrite: 当CFSTurbo内的文件和外置存储存在同名情况时,是否覆盖。
7829
+
7830
+ ture:覆盖
7831
+
7832
+ false:不覆盖(同时也不会释放热存数据)
7833
+
7834
+ 为空时,默认为false
7835
+ :type IsOverwrite: bool
7782
7836
  """
7783
7837
  self._StorageType = None
7784
7838
  self._FileType = None
@@ -7786,6 +7840,10 @@ class LifecycleRule(AbstractModel):
7786
7840
  self._Interval = None
7787
7841
  self._FileMaxSize = None
7788
7842
  self._FileMinSize = None
7843
+ self._PolicyType = None
7844
+ self._ExpireThreshold = None
7845
+ self._TargetThreshold = None
7846
+ self._IsOverwrite = None
7789
7847
 
7790
7848
  @property
7791
7849
  def StorageType(self):
@@ -7856,6 +7914,56 @@ class LifecycleRule(AbstractModel):
7856
7914
  def FileMinSize(self, FileMinSize):
7857
7915
  self._FileMinSize = FileMinSize
7858
7916
 
7917
+ @property
7918
+ def PolicyType(self):
7919
+ r"""策略类型
7920
+ :rtype: str
7921
+ """
7922
+ return self._PolicyType
7923
+
7924
+ @PolicyType.setter
7925
+ def PolicyType(self, PolicyType):
7926
+ self._PolicyType = PolicyType
7927
+
7928
+ @property
7929
+ def ExpireThreshold(self):
7930
+ r"""阈值范围[10-90]
7931
+ :rtype: int
7932
+ """
7933
+ return self._ExpireThreshold
7934
+
7935
+ @ExpireThreshold.setter
7936
+ def ExpireThreshold(self, ExpireThreshold):
7937
+ self._ExpireThreshold = ExpireThreshold
7938
+
7939
+ @property
7940
+ def TargetThreshold(self):
7941
+ r"""阈值范围[10-90]
7942
+ :rtype: int
7943
+ """
7944
+ return self._TargetThreshold
7945
+
7946
+ @TargetThreshold.setter
7947
+ def TargetThreshold(self, TargetThreshold):
7948
+ self._TargetThreshold = TargetThreshold
7949
+
7950
+ @property
7951
+ def IsOverwrite(self):
7952
+ r"""当CFSTurbo内的文件和外置存储存在同名情况时,是否覆盖。
7953
+
7954
+ ture:覆盖
7955
+
7956
+ false:不覆盖(同时也不会释放热存数据)
7957
+
7958
+ 为空时,默认为false
7959
+ :rtype: bool
7960
+ """
7961
+ return self._IsOverwrite
7962
+
7963
+ @IsOverwrite.setter
7964
+ def IsOverwrite(self, IsOverwrite):
7965
+ self._IsOverwrite = IsOverwrite
7966
+
7859
7967
 
7860
7968
  def _deserialize(self, params):
7861
7969
  self._StorageType = params.get("StorageType")
@@ -7864,6 +7972,10 @@ class LifecycleRule(AbstractModel):
7864
7972
  self._Interval = params.get("Interval")
7865
7973
  self._FileMaxSize = params.get("FileMaxSize")
7866
7974
  self._FileMinSize = params.get("FileMinSize")
7975
+ self._PolicyType = params.get("PolicyType")
7976
+ self._ExpireThreshold = params.get("ExpireThreshold")
7977
+ self._TargetThreshold = params.get("TargetThreshold")
7978
+ self._IsOverwrite = params.get("IsOverwrite")
7867
7979
  memeber_set = set(params.keys())
7868
7980
  for name, value in vars(self).items():
7869
7981
  property_name = name[1:]
@@ -9249,9 +9361,12 @@ class PathInfo(AbstractModel):
9249
9361
  :type FileSystemId: str
9250
9362
  :param _Path: 目录绝对路径
9251
9363
  :type Path: str
9364
+ :param _DataFlowId: 数据流动Id
9365
+ :type DataFlowId: str
9252
9366
  """
9253
9367
  self._FileSystemId = None
9254
9368
  self._Path = None
9369
+ self._DataFlowId = None
9255
9370
 
9256
9371
  @property
9257
9372
  def FileSystemId(self):
@@ -9275,10 +9390,22 @@ class PathInfo(AbstractModel):
9275
9390
  def Path(self, Path):
9276
9391
  self._Path = Path
9277
9392
 
9393
+ @property
9394
+ def DataFlowId(self):
9395
+ r"""数据流动Id
9396
+ :rtype: str
9397
+ """
9398
+ return self._DataFlowId
9399
+
9400
+ @DataFlowId.setter
9401
+ def DataFlowId(self, DataFlowId):
9402
+ self._DataFlowId = DataFlowId
9403
+
9278
9404
 
9279
9405
  def _deserialize(self, params):
9280
9406
  self._FileSystemId = params.get("FileSystemId")
9281
9407
  self._Path = params.get("Path")
9408
+ self._DataFlowId = params.get("DataFlowId")
9282
9409
  memeber_set = set(params.keys())
9283
9410
  for name, value in vars(self).items():
9284
9411
  property_name = name[1:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cfs
3
- Version: 3.1.27
3
+ Version: 3.1.37
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.27
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.37
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.37
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.27