tencentcloud-sdk-python-cfs 3.0.1436__tar.gz → 3.0.1447__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.
- {tencentcloud-sdk-python-cfs-3.0.1436 → tencentcloud-sdk-python-cfs-3.0.1447}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cfs-3.0.1436 → tencentcloud-sdk-python-cfs-3.0.1447}/setup.py +1 -1
- {tencentcloud-sdk-python-cfs-3.0.1436 → tencentcloud-sdk-python-cfs-3.0.1447}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-cfs-3.0.1436 → tencentcloud-sdk-python-cfs-3.0.1447}/tencentcloud/cfs/v20190719/cfs_client.py +23 -0
- {tencentcloud-sdk-python-cfs-3.0.1436 → tencentcloud-sdk-python-cfs-3.0.1447}/tencentcloud/cfs/v20190719/models.py +143 -0
- {tencentcloud-sdk-python-cfs-3.0.1436 → tencentcloud-sdk-python-cfs-3.0.1447}/tencentcloud_sdk_python_cfs.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-cfs-3.0.1447/tencentcloud_sdk_python_cfs.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cfs-3.0.1436/tencentcloud_sdk_python_cfs.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-cfs-3.0.1436 → tencentcloud-sdk-python-cfs-3.0.1447}/README.rst +0 -0
- {tencentcloud-sdk-python-cfs-3.0.1436 → tencentcloud-sdk-python-cfs-3.0.1447}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cfs-3.0.1436 → tencentcloud-sdk-python-cfs-3.0.1447}/tencentcloud/cfs/__init__.py +0 -0
- {tencentcloud-sdk-python-cfs-3.0.1436 → tencentcloud-sdk-python-cfs-3.0.1447}/tencentcloud/cfs/v20190719/__init__.py +0 -0
- {tencentcloud-sdk-python-cfs-3.0.1436 → tencentcloud-sdk-python-cfs-3.0.1447}/tencentcloud/cfs/v20190719/errorcodes.py +0 -0
- {tencentcloud-sdk-python-cfs-3.0.1436 → tencentcloud-sdk-python-cfs-3.0.1447}/tencentcloud_sdk_python_cfs.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-cfs-3.0.1436 → tencentcloud-sdk-python-cfs-3.0.1447}/tencentcloud_sdk_python_cfs.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cfs-3.0.1436 → tencentcloud-sdk-python-cfs-3.0.1447}/tencentcloud_sdk_python_cfs.egg-info/top_level.txt +0 -0
|
@@ -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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.0.1447,<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(),
|
|
@@ -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
|
|
|
@@ -6226,6 +6226,149 @@ class DescribeUserQuotaResponse(AbstractModel):
|
|
|
6226
6226
|
self._RequestId = params.get("RequestId")
|
|
6227
6227
|
|
|
6228
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:创建目录,等同于mkdir。
|
|
6239
|
+
check:确认目录是否存在,等同于stat。
|
|
6240
|
+
move:对文件/目录进行重命名,等同于mv。
|
|
6241
|
+
:type OpetationType: str
|
|
6242
|
+
:param _DirectoryPath: 目录的绝对路径 默认递归创建(即如果目录中有子目录不存在,则先创建出对应子目录)
|
|
6243
|
+
:type DirectoryPath: str
|
|
6244
|
+
:param _Mode: 创建目录的权限,若不传,默认为0755 若Operation Type为check,此值无实际意义
|
|
6245
|
+
:type Mode: str
|
|
6246
|
+
:param _DestPath: mv操作的目标目录名称;如果是turbo文件系统必须以/cfs/开头
|
|
6247
|
+
:type DestPath: str
|
|
6248
|
+
"""
|
|
6249
|
+
self._FileSystemId = None
|
|
6250
|
+
self._OpetationType = None
|
|
6251
|
+
self._DirectoryPath = None
|
|
6252
|
+
self._Mode = None
|
|
6253
|
+
self._DestPath = None
|
|
6254
|
+
|
|
6255
|
+
@property
|
|
6256
|
+
def FileSystemId(self):
|
|
6257
|
+
"""文件系统Id
|
|
6258
|
+
:rtype: str
|
|
6259
|
+
"""
|
|
6260
|
+
return self._FileSystemId
|
|
6261
|
+
|
|
6262
|
+
@FileSystemId.setter
|
|
6263
|
+
def FileSystemId(self, FileSystemId):
|
|
6264
|
+
self._FileSystemId = FileSystemId
|
|
6265
|
+
|
|
6266
|
+
@property
|
|
6267
|
+
def OpetationType(self):
|
|
6268
|
+
"""create:创建目录,等同于mkdir。
|
|
6269
|
+
check:确认目录是否存在,等同于stat。
|
|
6270
|
+
move:对文件/目录进行重命名,等同于mv。
|
|
6271
|
+
:rtype: str
|
|
6272
|
+
"""
|
|
6273
|
+
return self._OpetationType
|
|
6274
|
+
|
|
6275
|
+
@OpetationType.setter
|
|
6276
|
+
def OpetationType(self, OpetationType):
|
|
6277
|
+
self._OpetationType = OpetationType
|
|
6278
|
+
|
|
6279
|
+
@property
|
|
6280
|
+
def DirectoryPath(self):
|
|
6281
|
+
"""目录的绝对路径 默认递归创建(即如果目录中有子目录不存在,则先创建出对应子目录)
|
|
6282
|
+
:rtype: str
|
|
6283
|
+
"""
|
|
6284
|
+
return self._DirectoryPath
|
|
6285
|
+
|
|
6286
|
+
@DirectoryPath.setter
|
|
6287
|
+
def DirectoryPath(self, DirectoryPath):
|
|
6288
|
+
self._DirectoryPath = DirectoryPath
|
|
6289
|
+
|
|
6290
|
+
@property
|
|
6291
|
+
def Mode(self):
|
|
6292
|
+
"""创建目录的权限,若不传,默认为0755 若Operation Type为check,此值无实际意义
|
|
6293
|
+
:rtype: str
|
|
6294
|
+
"""
|
|
6295
|
+
return self._Mode
|
|
6296
|
+
|
|
6297
|
+
@Mode.setter
|
|
6298
|
+
def Mode(self, Mode):
|
|
6299
|
+
self._Mode = Mode
|
|
6300
|
+
|
|
6301
|
+
@property
|
|
6302
|
+
def DestPath(self):
|
|
6303
|
+
"""mv操作的目标目录名称;如果是turbo文件系统必须以/cfs/开头
|
|
6304
|
+
:rtype: str
|
|
6305
|
+
"""
|
|
6306
|
+
return self._DestPath
|
|
6307
|
+
|
|
6308
|
+
@DestPath.setter
|
|
6309
|
+
def DestPath(self, DestPath):
|
|
6310
|
+
self._DestPath = DestPath
|
|
6311
|
+
|
|
6312
|
+
|
|
6313
|
+
def _deserialize(self, params):
|
|
6314
|
+
self._FileSystemId = params.get("FileSystemId")
|
|
6315
|
+
self._OpetationType = params.get("OpetationType")
|
|
6316
|
+
self._DirectoryPath = params.get("DirectoryPath")
|
|
6317
|
+
self._Mode = params.get("Mode")
|
|
6318
|
+
self._DestPath = params.get("DestPath")
|
|
6319
|
+
memeber_set = set(params.keys())
|
|
6320
|
+
for name, value in vars(self).items():
|
|
6321
|
+
property_name = name[1:]
|
|
6322
|
+
if property_name in memeber_set:
|
|
6323
|
+
memeber_set.remove(property_name)
|
|
6324
|
+
if len(memeber_set) > 0:
|
|
6325
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6326
|
+
|
|
6327
|
+
|
|
6328
|
+
|
|
6329
|
+
class DoDirectoryOperationResponse(AbstractModel):
|
|
6330
|
+
"""DoDirectoryOperation返回参数结构体
|
|
6331
|
+
|
|
6332
|
+
"""
|
|
6333
|
+
|
|
6334
|
+
def __init__(self):
|
|
6335
|
+
r"""
|
|
6336
|
+
:param _Result: 1:成功 0:失败 创建目录的操作,1表示创建成功,0表示创建失败。 确认目录是否存在的操作,1表示目录存在,0表示目录不存在。 说明:创建目录操作若目录已存在,也会返回创建成功。
|
|
6337
|
+
:type Result: int
|
|
6338
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6339
|
+
:type RequestId: str
|
|
6340
|
+
"""
|
|
6341
|
+
self._Result = None
|
|
6342
|
+
self._RequestId = None
|
|
6343
|
+
|
|
6344
|
+
@property
|
|
6345
|
+
def Result(self):
|
|
6346
|
+
"""1:成功 0:失败 创建目录的操作,1表示创建成功,0表示创建失败。 确认目录是否存在的操作,1表示目录存在,0表示目录不存在。 说明:创建目录操作若目录已存在,也会返回创建成功。
|
|
6347
|
+
:rtype: int
|
|
6348
|
+
"""
|
|
6349
|
+
return self._Result
|
|
6350
|
+
|
|
6351
|
+
@Result.setter
|
|
6352
|
+
def Result(self, Result):
|
|
6353
|
+
self._Result = Result
|
|
6354
|
+
|
|
6355
|
+
@property
|
|
6356
|
+
def RequestId(self):
|
|
6357
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6358
|
+
:rtype: str
|
|
6359
|
+
"""
|
|
6360
|
+
return self._RequestId
|
|
6361
|
+
|
|
6362
|
+
@RequestId.setter
|
|
6363
|
+
def RequestId(self, RequestId):
|
|
6364
|
+
self._RequestId = RequestId
|
|
6365
|
+
|
|
6366
|
+
|
|
6367
|
+
def _deserialize(self, params):
|
|
6368
|
+
self._Result = params.get("Result")
|
|
6369
|
+
self._RequestId = params.get("RequestId")
|
|
6370
|
+
|
|
6371
|
+
|
|
6229
6372
|
class ExstraPerformanceInfo(AbstractModel):
|
|
6230
6373
|
"""购买完额外性能之后的值
|
|
6231
6374
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.0.1447
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.0.1436
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|