tencentcloud-sdk-python-goosefs 3.0.1459__tar.gz → 3.1.56__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_goosefs-3.1.56/PKG-INFO +46 -0
- {tencentcloud-sdk-python-goosefs-3.0.1459 → tencentcloud_sdk_python_goosefs-3.1.56}/setup.py +2 -1
- {tencentcloud-sdk-python-goosefs-3.0.1459 → tencentcloud_sdk_python_goosefs-3.1.56}/tencentcloud/__init__.py +1 -1
- tencentcloud_sdk_python_goosefs-3.1.56/tencentcloud/goosefs/v20220519/errorcodes.py +45 -0
- {tencentcloud-sdk-python-goosefs-3.0.1459 → tencentcloud_sdk_python_goosefs-3.1.56}/tencentcloud/goosefs/v20220519/goosefs_client.py +214 -9
- tencentcloud_sdk_python_goosefs-3.1.56/tencentcloud/goosefs/v20220519/goosefs_client_async.py +674 -0
- {tencentcloud-sdk-python-goosefs-3.0.1459 → tencentcloud_sdk_python_goosefs-3.1.56}/tencentcloud/goosefs/v20220519/models.py +2060 -302
- tencentcloud_sdk_python_goosefs-3.1.56/tencentcloud_sdk_python_goosefs.egg-info/PKG-INFO +46 -0
- {tencentcloud-sdk-python-goosefs-3.0.1459 → tencentcloud_sdk_python_goosefs-3.1.56}/tencentcloud_sdk_python_goosefs.egg-info/SOURCES.txt +1 -0
- tencentcloud_sdk_python_goosefs-3.1.56/tencentcloud_sdk_python_goosefs.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-goosefs-3.0.1459/PKG-INFO +0 -45
- tencentcloud-sdk-python-goosefs-3.0.1459/tencentcloud/goosefs/v20220519/errorcodes.py +0 -15
- tencentcloud-sdk-python-goosefs-3.0.1459/tencentcloud_sdk_python_goosefs.egg-info/PKG-INFO +0 -45
- tencentcloud-sdk-python-goosefs-3.0.1459/tencentcloud_sdk_python_goosefs.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-goosefs-3.0.1459 → tencentcloud_sdk_python_goosefs-3.1.56}/README.rst +0 -0
- {tencentcloud-sdk-python-goosefs-3.0.1459 → tencentcloud_sdk_python_goosefs-3.1.56}/setup.cfg +0 -0
- {tencentcloud-sdk-python-goosefs-3.0.1459 → tencentcloud_sdk_python_goosefs-3.1.56}/tencentcloud/goosefs/__init__.py +0 -0
- {tencentcloud-sdk-python-goosefs-3.0.1459 → tencentcloud_sdk_python_goosefs-3.1.56}/tencentcloud/goosefs/v20220519/__init__.py +0 -0
- {tencentcloud-sdk-python-goosefs-3.0.1459 → tencentcloud_sdk_python_goosefs-3.1.56}/tencentcloud_sdk_python_goosefs.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-goosefs-3.0.1459 → tencentcloud_sdk_python_goosefs-3.1.56}/tencentcloud_sdk_python_goosefs.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-goosefs
|
|
3
|
+
Version: 3.1.56
|
|
4
|
+
Summary: Tencent Cloud Goosefs SDK for Python
|
|
5
|
+
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
+
Author: Tencent Cloud
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Platform: any
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Programming Language :: Python
|
|
14
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.56
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Goosefs SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
25
|
+
The SDK works on Python versions:
|
|
26
|
+
|
|
27
|
+
* 2.7 and greater, including 3.x
|
|
28
|
+
|
|
29
|
+
Quick Start
|
|
30
|
+
-----------
|
|
31
|
+
|
|
32
|
+
First, install the library:
|
|
33
|
+
|
|
34
|
+
.. code-block:: sh
|
|
35
|
+
|
|
36
|
+
$ pip install tencentcloud-sdk-python-common
|
|
37
|
+
$ pip install tencentcloud-sdk-python-goosefs
|
|
38
|
+
|
|
39
|
+
or download source code from github and install:
|
|
40
|
+
|
|
41
|
+
.. code-block:: sh
|
|
42
|
+
|
|
43
|
+
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
44
|
+
$ cd tencentcloud-sdk-python
|
|
45
|
+
$ python package.py --components common goosefs
|
|
46
|
+
|
{tencentcloud-sdk-python-goosefs-3.0.1459 → tencentcloud_sdk_python_goosefs-3.1.56}/setup.py
RENAMED
|
@@ -8,7 +8,8 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-goosefs',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.56,<4.0.0"],
|
|
12
|
+
|
|
12
13
|
version=tencentcloud.__version__,
|
|
13
14
|
description='Tencent Cloud Goosefs SDK for Python',
|
|
14
15
|
long_description=open('README.rst').read(),
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# 内部错误。
|
|
18
|
+
INTERNALERROR = 'InternalError'
|
|
19
|
+
|
|
20
|
+
# 无效的过滤器
|
|
21
|
+
INVALIDFILTER = 'InvalidFilter'
|
|
22
|
+
|
|
23
|
+
# 参数错误。
|
|
24
|
+
INVALIDPARAMETER = 'InvalidParameter'
|
|
25
|
+
|
|
26
|
+
# 参数取值错误。
|
|
27
|
+
INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
|
28
|
+
|
|
29
|
+
# 缺少参数错误。
|
|
30
|
+
MISSINGPARAMETER = 'MissingParameter'
|
|
31
|
+
|
|
32
|
+
# 地域错误
|
|
33
|
+
REGIONERROR = 'RegionError'
|
|
34
|
+
|
|
35
|
+
# 请求的次数超过了频率限制。
|
|
36
|
+
REQUESTLIMITEXCEEDED = 'RequestLimitExceeded'
|
|
37
|
+
|
|
38
|
+
# 资源不存在。
|
|
39
|
+
RESOURCENOTFOUND = 'ResourceNotFound'
|
|
40
|
+
|
|
41
|
+
# 未授权操作。
|
|
42
|
+
UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
|
|
43
|
+
|
|
44
|
+
# 操作不支持。
|
|
45
|
+
UNSUPPORTEDOPERATION = 'UnsupportedOperation'
|
|
@@ -141,6 +141,52 @@ class GoosefsClient(AbstractClient):
|
|
|
141
141
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
142
142
|
|
|
143
143
|
|
|
144
|
+
def BuildCustomerCluster(self, request):
|
|
145
|
+
r"""构建客户端集群
|
|
146
|
+
|
|
147
|
+
:param request: Request instance for BuildCustomerCluster.
|
|
148
|
+
:type request: :class:`tencentcloud.goosefs.v20220519.models.BuildCustomerClusterRequest`
|
|
149
|
+
:rtype: :class:`tencentcloud.goosefs.v20220519.models.BuildCustomerClusterResponse`
|
|
150
|
+
|
|
151
|
+
"""
|
|
152
|
+
try:
|
|
153
|
+
params = request._serialize()
|
|
154
|
+
headers = request.headers
|
|
155
|
+
body = self.call("BuildCustomerCluster", params, headers=headers)
|
|
156
|
+
response = json.loads(body)
|
|
157
|
+
model = models.BuildCustomerClusterResponse()
|
|
158
|
+
model._deserialize(response["Response"])
|
|
159
|
+
return model
|
|
160
|
+
except Exception as e:
|
|
161
|
+
if isinstance(e, TencentCloudSDKException):
|
|
162
|
+
raise
|
|
163
|
+
else:
|
|
164
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def CancelLoadTask(self, request):
|
|
168
|
+
r"""取消单个预热任务,仅任务在 waiting、running 状态时可以调用此接口。注意,该接口需要 GooseFS 集群版本 ≥ 1.5.1。
|
|
169
|
+
|
|
170
|
+
:param request: Request instance for CancelLoadTask.
|
|
171
|
+
:type request: :class:`tencentcloud.goosefs.v20220519.models.CancelLoadTaskRequest`
|
|
172
|
+
:rtype: :class:`tencentcloud.goosefs.v20220519.models.CancelLoadTaskResponse`
|
|
173
|
+
|
|
174
|
+
"""
|
|
175
|
+
try:
|
|
176
|
+
params = request._serialize()
|
|
177
|
+
headers = request.headers
|
|
178
|
+
body = self.call("CancelLoadTask", params, headers=headers)
|
|
179
|
+
response = json.loads(body)
|
|
180
|
+
model = models.CancelLoadTaskResponse()
|
|
181
|
+
model._deserialize(response["Response"])
|
|
182
|
+
return model
|
|
183
|
+
except Exception as e:
|
|
184
|
+
if isinstance(e, TencentCloudSDKException):
|
|
185
|
+
raise
|
|
186
|
+
else:
|
|
187
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
188
|
+
|
|
189
|
+
|
|
144
190
|
def CreateDataRepositoryTask(self, request):
|
|
145
191
|
r"""创建数据流通任务,包括从将文件系统的数据上传到存储桶下, 以及从存储桶下载到文件系统里。
|
|
146
192
|
|
|
@@ -210,6 +256,29 @@ class GoosefsClient(AbstractClient):
|
|
|
210
256
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
211
257
|
|
|
212
258
|
|
|
259
|
+
def CreateLoadTask(self, request):
|
|
260
|
+
r"""GooseFS 预热相关接口,用于下发,列出,查询,修改预热任务。用于元数据预热、数据预热场景。 注意,该接口需要 GooseFS 集群版本 ≥ 1.5.1。
|
|
261
|
+
|
|
262
|
+
:param request: Request instance for CreateLoadTask.
|
|
263
|
+
:type request: :class:`tencentcloud.goosefs.v20220519.models.CreateLoadTaskRequest`
|
|
264
|
+
:rtype: :class:`tencentcloud.goosefs.v20220519.models.CreateLoadTaskResponse`
|
|
265
|
+
|
|
266
|
+
"""
|
|
267
|
+
try:
|
|
268
|
+
params = request._serialize()
|
|
269
|
+
headers = request.headers
|
|
270
|
+
body = self.call("CreateLoadTask", params, headers=headers)
|
|
271
|
+
response = json.loads(body)
|
|
272
|
+
model = models.CreateLoadTaskResponse()
|
|
273
|
+
model._deserialize(response["Response"])
|
|
274
|
+
return model
|
|
275
|
+
except Exception as e:
|
|
276
|
+
if isinstance(e, TencentCloudSDKException):
|
|
277
|
+
raise
|
|
278
|
+
else:
|
|
279
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
280
|
+
|
|
281
|
+
|
|
213
282
|
def DeleteCrossVpcSubnetSupportForClientNode(self, request):
|
|
214
283
|
r"""为客户端节点删除跨vpc子网访问能力
|
|
215
284
|
|
|
@@ -233,6 +302,29 @@ class GoosefsClient(AbstractClient):
|
|
|
233
302
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
234
303
|
|
|
235
304
|
|
|
305
|
+
def DeleteCustomerCluster(self, request):
|
|
306
|
+
r"""删除客户端集群
|
|
307
|
+
|
|
308
|
+
:param request: Request instance for DeleteCustomerCluster.
|
|
309
|
+
:type request: :class:`tencentcloud.goosefs.v20220519.models.DeleteCustomerClusterRequest`
|
|
310
|
+
:rtype: :class:`tencentcloud.goosefs.v20220519.models.DeleteCustomerClusterResponse`
|
|
311
|
+
|
|
312
|
+
"""
|
|
313
|
+
try:
|
|
314
|
+
params = request._serialize()
|
|
315
|
+
headers = request.headers
|
|
316
|
+
body = self.call("DeleteCustomerCluster", params, headers=headers)
|
|
317
|
+
response = json.loads(body)
|
|
318
|
+
model = models.DeleteCustomerClusterResponse()
|
|
319
|
+
model._deserialize(response["Response"])
|
|
320
|
+
return model
|
|
321
|
+
except Exception as e:
|
|
322
|
+
if isinstance(e, TencentCloudSDKException):
|
|
323
|
+
raise
|
|
324
|
+
else:
|
|
325
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
326
|
+
|
|
327
|
+
|
|
236
328
|
def DeleteFileSystem(self, request):
|
|
237
329
|
r"""删除文件系统
|
|
238
330
|
|
|
@@ -348,22 +440,20 @@ class GoosefsClient(AbstractClient):
|
|
|
348
440
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
349
441
|
|
|
350
442
|
|
|
351
|
-
def
|
|
352
|
-
r"""
|
|
443
|
+
def DescribeCustomerCluster(self, request):
|
|
444
|
+
r"""查询客户端集群
|
|
353
445
|
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
:
|
|
357
|
-
:type request: :class:`tencentcloud.goosefs.v20220519.models.DescribeClusterRolesRequest`
|
|
358
|
-
:rtype: :class:`tencentcloud.goosefs.v20220519.models.DescribeClusterRolesResponse`
|
|
446
|
+
:param request: Request instance for DescribeCustomerCluster.
|
|
447
|
+
:type request: :class:`tencentcloud.goosefs.v20220519.models.DescribeCustomerClusterRequest`
|
|
448
|
+
:rtype: :class:`tencentcloud.goosefs.v20220519.models.DescribeCustomerClusterResponse`
|
|
359
449
|
|
|
360
450
|
"""
|
|
361
451
|
try:
|
|
362
452
|
params = request._serialize()
|
|
363
453
|
headers = request.headers
|
|
364
|
-
body = self.call("
|
|
454
|
+
body = self.call("DescribeCustomerCluster", params, headers=headers)
|
|
365
455
|
response = json.loads(body)
|
|
366
|
-
model = models.
|
|
456
|
+
model = models.DescribeCustomerClusterResponse()
|
|
367
457
|
model._deserialize(response["Response"])
|
|
368
458
|
return model
|
|
369
459
|
except Exception as e:
|
|
@@ -488,6 +578,29 @@ class GoosefsClient(AbstractClient):
|
|
|
488
578
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
489
579
|
|
|
490
580
|
|
|
581
|
+
def DescribeLoadTask(self, request):
|
|
582
|
+
r"""查询单个预热任务执行情况。注意,该接口需要 GooseFS 集群版本 ≥ 1.5.1。
|
|
583
|
+
|
|
584
|
+
:param request: Request instance for DescribeLoadTask.
|
|
585
|
+
:type request: :class:`tencentcloud.goosefs.v20220519.models.DescribeLoadTaskRequest`
|
|
586
|
+
:rtype: :class:`tencentcloud.goosefs.v20220519.models.DescribeLoadTaskResponse`
|
|
587
|
+
|
|
588
|
+
"""
|
|
589
|
+
try:
|
|
590
|
+
params = request._serialize()
|
|
591
|
+
headers = request.headers
|
|
592
|
+
body = self.call("DescribeLoadTask", params, headers=headers)
|
|
593
|
+
response = json.loads(body)
|
|
594
|
+
model = models.DescribeLoadTaskResponse()
|
|
595
|
+
model._deserialize(response["Response"])
|
|
596
|
+
return model
|
|
597
|
+
except Exception as e:
|
|
598
|
+
if isinstance(e, TencentCloudSDKException):
|
|
599
|
+
raise
|
|
600
|
+
else:
|
|
601
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
602
|
+
|
|
603
|
+
|
|
491
604
|
def DetachFileSystemBucket(self, request):
|
|
492
605
|
r"""解绑文件系统与Bucket的映射
|
|
493
606
|
|
|
@@ -534,6 +647,29 @@ class GoosefsClient(AbstractClient):
|
|
|
534
647
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
535
648
|
|
|
536
649
|
|
|
650
|
+
def ListLoadTasks(self, request):
|
|
651
|
+
r"""列出该集群下所有预热任务。注意,该接口需要 GooseFS 集群版本 ≥ 1.5.1。
|
|
652
|
+
|
|
653
|
+
:param request: Request instance for ListLoadTasks.
|
|
654
|
+
:type request: :class:`tencentcloud.goosefs.v20220519.models.ListLoadTasksRequest`
|
|
655
|
+
:rtype: :class:`tencentcloud.goosefs.v20220519.models.ListLoadTasksResponse`
|
|
656
|
+
|
|
657
|
+
"""
|
|
658
|
+
try:
|
|
659
|
+
params = request._serialize()
|
|
660
|
+
headers = request.headers
|
|
661
|
+
body = self.call("ListLoadTasks", params, headers=headers)
|
|
662
|
+
response = json.loads(body)
|
|
663
|
+
model = models.ListLoadTasksResponse()
|
|
664
|
+
model._deserialize(response["Response"])
|
|
665
|
+
return model
|
|
666
|
+
except Exception as e:
|
|
667
|
+
if isinstance(e, TencentCloudSDKException):
|
|
668
|
+
raise
|
|
669
|
+
else:
|
|
670
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
671
|
+
|
|
672
|
+
|
|
537
673
|
def ModifyDataRepositoryBandwidth(self, request):
|
|
538
674
|
r"""修改数据流动带宽
|
|
539
675
|
|
|
@@ -557,6 +693,52 @@ class GoosefsClient(AbstractClient):
|
|
|
557
693
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
558
694
|
|
|
559
695
|
|
|
696
|
+
def MountMultipleStorageFileSystem(self, request):
|
|
697
|
+
r"""客户端集群挂载存储集群
|
|
698
|
+
|
|
699
|
+
:param request: Request instance for MountMultipleStorageFileSystem.
|
|
700
|
+
:type request: :class:`tencentcloud.goosefs.v20220519.models.MountMultipleStorageFileSystemRequest`
|
|
701
|
+
:rtype: :class:`tencentcloud.goosefs.v20220519.models.MountMultipleStorageFileSystemResponse`
|
|
702
|
+
|
|
703
|
+
"""
|
|
704
|
+
try:
|
|
705
|
+
params = request._serialize()
|
|
706
|
+
headers = request.headers
|
|
707
|
+
body = self.call("MountMultipleStorageFileSystem", params, headers=headers)
|
|
708
|
+
response = json.loads(body)
|
|
709
|
+
model = models.MountMultipleStorageFileSystemResponse()
|
|
710
|
+
model._deserialize(response["Response"])
|
|
711
|
+
return model
|
|
712
|
+
except Exception as e:
|
|
713
|
+
if isinstance(e, TencentCloudSDKException):
|
|
714
|
+
raise
|
|
715
|
+
else:
|
|
716
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
def QueryClientNodeMountCommand(self, request):
|
|
720
|
+
r"""生成客户端的挂载命令
|
|
721
|
+
|
|
722
|
+
:param request: Request instance for QueryClientNodeMountCommand.
|
|
723
|
+
:type request: :class:`tencentcloud.goosefs.v20220519.models.QueryClientNodeMountCommandRequest`
|
|
724
|
+
:rtype: :class:`tencentcloud.goosefs.v20220519.models.QueryClientNodeMountCommandResponse`
|
|
725
|
+
|
|
726
|
+
"""
|
|
727
|
+
try:
|
|
728
|
+
params = request._serialize()
|
|
729
|
+
headers = request.headers
|
|
730
|
+
body = self.call("QueryClientNodeMountCommand", params, headers=headers)
|
|
731
|
+
response = json.loads(body)
|
|
732
|
+
model = models.QueryClientNodeMountCommandResponse()
|
|
733
|
+
model._deserialize(response["Response"])
|
|
734
|
+
return model
|
|
735
|
+
except Exception as e:
|
|
736
|
+
if isinstance(e, TencentCloudSDKException):
|
|
737
|
+
raise
|
|
738
|
+
else:
|
|
739
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
740
|
+
|
|
741
|
+
|
|
560
742
|
def QueryCrossVpcSubnetSupportForClientNode(self, request):
|
|
561
743
|
r"""查询客户端节点跨vpc子网访问能力
|
|
562
744
|
|
|
@@ -642,6 +824,29 @@ class GoosefsClient(AbstractClient):
|
|
|
642
824
|
model = models.UpdateFilesetGeneralConfigResponse()
|
|
643
825
|
model._deserialize(response["Response"])
|
|
644
826
|
return model
|
|
827
|
+
except Exception as e:
|
|
828
|
+
if isinstance(e, TencentCloudSDKException):
|
|
829
|
+
raise
|
|
830
|
+
else:
|
|
831
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
def UpdateLoadTaskPriority(self, request):
|
|
835
|
+
r"""变更已有 GooseFS 预热任务配置,仅任务状态为 waiting 时可调用该接口。注意,该接口需要 GooseFS 集群版本 ≥ 1.5.1。
|
|
836
|
+
|
|
837
|
+
:param request: Request instance for UpdateLoadTaskPriority.
|
|
838
|
+
:type request: :class:`tencentcloud.goosefs.v20220519.models.UpdateLoadTaskPriorityRequest`
|
|
839
|
+
:rtype: :class:`tencentcloud.goosefs.v20220519.models.UpdateLoadTaskPriorityResponse`
|
|
840
|
+
|
|
841
|
+
"""
|
|
842
|
+
try:
|
|
843
|
+
params = request._serialize()
|
|
844
|
+
headers = request.headers
|
|
845
|
+
body = self.call("UpdateLoadTaskPriority", params, headers=headers)
|
|
846
|
+
response = json.loads(body)
|
|
847
|
+
model = models.UpdateLoadTaskPriorityResponse()
|
|
848
|
+
model._deserialize(response["Response"])
|
|
849
|
+
return model
|
|
645
850
|
except Exception as e:
|
|
646
851
|
if isinstance(e, TencentCloudSDKException):
|
|
647
852
|
raise
|