tencentcloud-sdk-python-cbs 3.0.1459__tar.gz → 3.1.25__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_cbs-3.1.25/PKG-INFO +46 -0
- {tencentcloud-sdk-python-cbs-3.0.1459 → tencentcloud_sdk_python_cbs-3.1.25}/setup.py +2 -1
- {tencentcloud-sdk-python-cbs-3.0.1459 → tencentcloud_sdk_python_cbs-3.1.25}/tencentcloud/__init__.py +1 -1
- tencentcloud_sdk_python_cbs-3.1.25/tencentcloud/cbs/v20170312/cbs_client_async.py +959 -0
- {tencentcloud-sdk-python-cbs-3.0.1459 → tencentcloud_sdk_python_cbs-3.1.25}/tencentcloud/cbs/v20170312/models.py +14 -14
- tencentcloud_sdk_python_cbs-3.1.25/tencentcloud_sdk_python_cbs.egg-info/PKG-INFO +46 -0
- {tencentcloud-sdk-python-cbs-3.0.1459 → tencentcloud_sdk_python_cbs-3.1.25}/tencentcloud_sdk_python_cbs.egg-info/SOURCES.txt +1 -0
- tencentcloud_sdk_python_cbs-3.1.25/tencentcloud_sdk_python_cbs.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cbs-3.0.1459/PKG-INFO +0 -45
- tencentcloud-sdk-python-cbs-3.0.1459/tencentcloud_sdk_python_cbs.egg-info/PKG-INFO +0 -45
- tencentcloud-sdk-python-cbs-3.0.1459/tencentcloud_sdk_python_cbs.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-cbs-3.0.1459 → tencentcloud_sdk_python_cbs-3.1.25}/README.rst +0 -0
- {tencentcloud-sdk-python-cbs-3.0.1459 → tencentcloud_sdk_python_cbs-3.1.25}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cbs-3.0.1459 → tencentcloud_sdk_python_cbs-3.1.25}/tencentcloud/cbs/__init__.py +0 -0
- {tencentcloud-sdk-python-cbs-3.0.1459 → tencentcloud_sdk_python_cbs-3.1.25}/tencentcloud/cbs/v20170312/__init__.py +0 -0
- {tencentcloud-sdk-python-cbs-3.0.1459 → tencentcloud_sdk_python_cbs-3.1.25}/tencentcloud/cbs/v20170312/cbs_client.py +0 -0
- {tencentcloud-sdk-python-cbs-3.0.1459 → tencentcloud_sdk_python_cbs-3.1.25}/tencentcloud/cbs/v20170312/errorcodes.py +0 -0
- {tencentcloud-sdk-python-cbs-3.0.1459 → tencentcloud_sdk_python_cbs-3.1.25}/tencentcloud_sdk_python_cbs.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cbs-3.0.1459 → tencentcloud_sdk_python_cbs-3.1.25}/tencentcloud_sdk_python_cbs.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-cbs
|
|
3
|
+
Version: 3.1.25
|
|
4
|
+
Summary: Tencent Cloud Cbs 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.25
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Cbs 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-cbs
|
|
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 cbs
|
|
46
|
+
|
|
@@ -8,7 +8,8 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-cbs',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.25,<4.0.0"],
|
|
12
|
+
|
|
12
13
|
version=tencentcloud.__version__,
|
|
13
14
|
description='Tencent Cloud Cbs SDK for Python',
|
|
14
15
|
long_description=open('README.rst').read(),
|
|
@@ -0,0 +1,959 @@
|
|
|
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
|
+
from tencentcloud.common.abstract_client_async import AbstractClient
|
|
19
|
+
from tencentcloud.cbs.v20170312 import models
|
|
20
|
+
from typing import Dict
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CbsClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2017-03-12'
|
|
25
|
+
_endpoint = 'cbs.tencentcloudapi.com'
|
|
26
|
+
_service = 'cbs'
|
|
27
|
+
|
|
28
|
+
async def ApplyDiskBackup(
|
|
29
|
+
self,
|
|
30
|
+
request: models.ApplyDiskBackupRequest,
|
|
31
|
+
opts: Dict = None,
|
|
32
|
+
) -> models.ApplyDiskBackupResponse:
|
|
33
|
+
"""
|
|
34
|
+
本接口(ApplyDiskBackup)用于回滚备份点到原云硬盘。
|
|
35
|
+
|
|
36
|
+
* 仅支持回滚到原云硬盘上。对于数据盘备份点,如果您需要复制备份点数据到其它云硬盘上,请先使用[CreateSnapshot](/document/product/362/15648) 将备份点转换为快照,然后使用[CreateDisks](/document/product/362/16312) 接口创建新的弹性云硬盘,将快照数据复制到新购云硬盘上。
|
|
37
|
+
* 用于回滚的备份点必须处于NORMAL状态。备份点状态可以通过[DescribeDiskBackups](/document/product/362/80278)接口查询,见输出参数中BackupState字段解释。
|
|
38
|
+
* 如果是弹性云硬盘,则云硬盘必须处于未挂载状态,云硬盘挂载状态可以通[DescribeDisks](/document/product/362/16315)接口查询,见Attached字段解释;如果是随实例一起购买的非弹性云硬盘,则实例必须处于关机状态,实例状态可以通过[DescribeInstancesStatus](/document/product/213/15738)接口查询。
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
kwargs = {}
|
|
42
|
+
kwargs["action"] = "ApplyDiskBackup"
|
|
43
|
+
kwargs["params"] = request._serialize()
|
|
44
|
+
kwargs["resp_cls"] = models.ApplyDiskBackupResponse
|
|
45
|
+
kwargs["headers"] = request.headers
|
|
46
|
+
kwargs["opts"] = opts or {}
|
|
47
|
+
|
|
48
|
+
return await self.call_and_deserialize(**kwargs)
|
|
49
|
+
|
|
50
|
+
async def ApplySnapshot(
|
|
51
|
+
self,
|
|
52
|
+
request: models.ApplySnapshotRequest,
|
|
53
|
+
opts: Dict = None,
|
|
54
|
+
) -> models.ApplySnapshotResponse:
|
|
55
|
+
"""
|
|
56
|
+
本接口(ApplySnapshot)用于回滚快照到原云硬盘。
|
|
57
|
+
|
|
58
|
+
* 仅支持回滚到原云硬盘上。对于数据盘快照,如果您需要复制快照数据到其它云硬盘上,请使用[CreateDisks](/document/product/362/16312)接口创建新的弹性云盘,将快照数据复制到新购云盘上。
|
|
59
|
+
* 用于回滚的快照必须处于NORMAL状态。快照状态可以通过[DescribeSnapshots](/document/product/362/15647)接口查询,见输出参数中SnapshotState字段解释。
|
|
60
|
+
* 如果是弹性云盘,则云盘必须处于未挂载状态,云硬盘挂载状态可以通过[DescribeDisks](/document/product/362/16315)接口查询,见Attached字段解释;如果是随实例一起购买的非弹性云盘,则实例必须处于关机状态,实例状态可以通过[DescribeInstancesStatus](/document/product/213/15738)接口查询。
|
|
61
|
+
"""
|
|
62
|
+
|
|
63
|
+
kwargs = {}
|
|
64
|
+
kwargs["action"] = "ApplySnapshot"
|
|
65
|
+
kwargs["params"] = request._serialize()
|
|
66
|
+
kwargs["resp_cls"] = models.ApplySnapshotResponse
|
|
67
|
+
kwargs["headers"] = request.headers
|
|
68
|
+
kwargs["opts"] = opts or {}
|
|
69
|
+
|
|
70
|
+
return await self.call_and_deserialize(**kwargs)
|
|
71
|
+
|
|
72
|
+
async def ApplySnapshotGroup(
|
|
73
|
+
self,
|
|
74
|
+
request: models.ApplySnapshotGroupRequest,
|
|
75
|
+
opts: Dict = None,
|
|
76
|
+
) -> models.ApplySnapshotGroupResponse:
|
|
77
|
+
"""
|
|
78
|
+
本接口(ApplySnapshotGroup)用于回滚快照组,将实例恢复到创建快照组时刻的状态。
|
|
79
|
+
* 1.可选择快照组全部或部分盘进行回滚;
|
|
80
|
+
* 2.如果回滚的盘中包含已挂载的盘,要求这些盘必须挂载在同一实例上,且要求该实例已关机才能回滚;
|
|
81
|
+
* 3.回滚为异步操作,接口返回成功不代表回滚成功,可通过调DescribeSnapshotGroups接口查询快照组的状态。
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
kwargs = {}
|
|
85
|
+
kwargs["action"] = "ApplySnapshotGroup"
|
|
86
|
+
kwargs["params"] = request._serialize()
|
|
87
|
+
kwargs["resp_cls"] = models.ApplySnapshotGroupResponse
|
|
88
|
+
kwargs["headers"] = request.headers
|
|
89
|
+
kwargs["opts"] = opts or {}
|
|
90
|
+
|
|
91
|
+
return await self.call_and_deserialize(**kwargs)
|
|
92
|
+
|
|
93
|
+
async def AttachDisks(
|
|
94
|
+
self,
|
|
95
|
+
request: models.AttachDisksRequest,
|
|
96
|
+
opts: Dict = None,
|
|
97
|
+
) -> models.AttachDisksResponse:
|
|
98
|
+
"""
|
|
99
|
+
本接口(AttachDisks)用于挂载云硬盘。
|
|
100
|
+
|
|
101
|
+
* 支持批量操作,将多块云盘挂载到同一云主机。如果多个云盘中存在不允许挂载的云盘,则操作不执行,返回特定的错误码。
|
|
102
|
+
* 本接口为异步接口,当挂载云盘的请求成功返回时,表示后台已发起挂载云盘的操作,可通过接口[DescribeDisks](/document/product/362/16315)来查询对应云盘的状态,如果云盘的状态由“ATTACHING”变为“ATTACHED”,则为挂载成功。
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
kwargs = {}
|
|
106
|
+
kwargs["action"] = "AttachDisks"
|
|
107
|
+
kwargs["params"] = request._serialize()
|
|
108
|
+
kwargs["resp_cls"] = models.AttachDisksResponse
|
|
109
|
+
kwargs["headers"] = request.headers
|
|
110
|
+
kwargs["opts"] = opts or {}
|
|
111
|
+
|
|
112
|
+
return await self.call_and_deserialize(**kwargs)
|
|
113
|
+
|
|
114
|
+
async def BindAutoSnapshotPolicy(
|
|
115
|
+
self,
|
|
116
|
+
request: models.BindAutoSnapshotPolicyRequest,
|
|
117
|
+
opts: Dict = None,
|
|
118
|
+
) -> models.BindAutoSnapshotPolicyResponse:
|
|
119
|
+
"""
|
|
120
|
+
本接口(BindAutoSnapshotPolicy)用于绑定云硬盘到指定的定期快照策略。
|
|
121
|
+
|
|
122
|
+
* 每个地域下的定期快照策略配额限制请参考文档[定期快照](/document/product/362/8191)。
|
|
123
|
+
* 当已绑定定期快照策略的云硬盘处于未使用状态(即弹性云盘未挂载或非弹性云盘的主机处于关机状态)将不会创建定期快照。
|
|
124
|
+
"""
|
|
125
|
+
|
|
126
|
+
kwargs = {}
|
|
127
|
+
kwargs["action"] = "BindAutoSnapshotPolicy"
|
|
128
|
+
kwargs["params"] = request._serialize()
|
|
129
|
+
kwargs["resp_cls"] = models.BindAutoSnapshotPolicyResponse
|
|
130
|
+
kwargs["headers"] = request.headers
|
|
131
|
+
kwargs["opts"] = opts or {}
|
|
132
|
+
|
|
133
|
+
return await self.call_and_deserialize(**kwargs)
|
|
134
|
+
|
|
135
|
+
async def CopySnapshotCrossRegions(
|
|
136
|
+
self,
|
|
137
|
+
request: models.CopySnapshotCrossRegionsRequest,
|
|
138
|
+
opts: Dict = None,
|
|
139
|
+
) -> models.CopySnapshotCrossRegionsResponse:
|
|
140
|
+
"""
|
|
141
|
+
本接口(CopySnapshotCrossRegions)用于快照跨地域复制。
|
|
142
|
+
|
|
143
|
+
* 本接口为异步接口,当跨地域复制的请求下发成功后会返回一个新的快照ID,此时快照未立即复制到目标地域,可请求目标地域的[DescribeSnapshots](/document/product/362/15647)接口查询新快照的状态,判断是否复制完成。如果快照的状态为“NORMAL”,表示快照复制完成。
|
|
144
|
+
* 本接口实现的快照跨地域复制操作将产生跨地域流量,预计2025年第三季度会针对此功能进行商业化计费;请留意后续站内信公告,避免产生预期外扣费。
|
|
145
|
+
"""
|
|
146
|
+
|
|
147
|
+
kwargs = {}
|
|
148
|
+
kwargs["action"] = "CopySnapshotCrossRegions"
|
|
149
|
+
kwargs["params"] = request._serialize()
|
|
150
|
+
kwargs["resp_cls"] = models.CopySnapshotCrossRegionsResponse
|
|
151
|
+
kwargs["headers"] = request.headers
|
|
152
|
+
kwargs["opts"] = opts or {}
|
|
153
|
+
|
|
154
|
+
return await self.call_and_deserialize(**kwargs)
|
|
155
|
+
|
|
156
|
+
async def CreateAutoSnapshotPolicy(
|
|
157
|
+
self,
|
|
158
|
+
request: models.CreateAutoSnapshotPolicyRequest,
|
|
159
|
+
opts: Dict = None,
|
|
160
|
+
) -> models.CreateAutoSnapshotPolicyResponse:
|
|
161
|
+
"""
|
|
162
|
+
本接口(CreateAutoSnapshotPolicy)用于创建定期快照策略。
|
|
163
|
+
|
|
164
|
+
* 每个地域可创建的定期快照策略数量限制请参考文档[定期快照](/document/product/362/8191)。
|
|
165
|
+
* 每个地域可创建的快照有数量和容量的限制,具体请见腾讯云控制台快照页面提示,如果快照超配额,定期快照创建会失败。
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
kwargs = {}
|
|
169
|
+
kwargs["action"] = "CreateAutoSnapshotPolicy"
|
|
170
|
+
kwargs["params"] = request._serialize()
|
|
171
|
+
kwargs["resp_cls"] = models.CreateAutoSnapshotPolicyResponse
|
|
172
|
+
kwargs["headers"] = request.headers
|
|
173
|
+
kwargs["opts"] = opts or {}
|
|
174
|
+
|
|
175
|
+
return await self.call_and_deserialize(**kwargs)
|
|
176
|
+
|
|
177
|
+
async def CreateDiskBackup(
|
|
178
|
+
self,
|
|
179
|
+
request: models.CreateDiskBackupRequest,
|
|
180
|
+
opts: Dict = None,
|
|
181
|
+
) -> models.CreateDiskBackupResponse:
|
|
182
|
+
"""
|
|
183
|
+
为云硬盘创建一个备份点。
|
|
184
|
+
"""
|
|
185
|
+
|
|
186
|
+
kwargs = {}
|
|
187
|
+
kwargs["action"] = "CreateDiskBackup"
|
|
188
|
+
kwargs["params"] = request._serialize()
|
|
189
|
+
kwargs["resp_cls"] = models.CreateDiskBackupResponse
|
|
190
|
+
kwargs["headers"] = request.headers
|
|
191
|
+
kwargs["opts"] = opts or {}
|
|
192
|
+
|
|
193
|
+
return await self.call_and_deserialize(**kwargs)
|
|
194
|
+
|
|
195
|
+
async def CreateDisks(
|
|
196
|
+
self,
|
|
197
|
+
request: models.CreateDisksRequest,
|
|
198
|
+
opts: Dict = None,
|
|
199
|
+
) -> models.CreateDisksResponse:
|
|
200
|
+
"""
|
|
201
|
+
本接口(CreateDisks)用于创建云硬盘。
|
|
202
|
+
|
|
203
|
+
* 预付费云盘的购买会预先扣除本次云盘购买所需金额,在调用本接口前请确保账户余额充足。
|
|
204
|
+
* 本接口支持传入数据盘快照来创建云盘,实现将快照数据复制到新购云盘上。
|
|
205
|
+
* 本接口为异步接口,当创建请求下发成功后会返回一个新建的云盘ID列表,此时云盘的创建并未立即完成。可以通过调用[DescribeDisks](/document/product/362/16315)接口根据DiskId查询对应云盘,如果能查到云盘,且状态为'UNATTACHED'或'ATTACHED',则表示创建成功。
|
|
206
|
+
"""
|
|
207
|
+
|
|
208
|
+
kwargs = {}
|
|
209
|
+
kwargs["action"] = "CreateDisks"
|
|
210
|
+
kwargs["params"] = request._serialize()
|
|
211
|
+
kwargs["resp_cls"] = models.CreateDisksResponse
|
|
212
|
+
kwargs["headers"] = request.headers
|
|
213
|
+
kwargs["opts"] = opts or {}
|
|
214
|
+
|
|
215
|
+
return await self.call_and_deserialize(**kwargs)
|
|
216
|
+
|
|
217
|
+
async def CreateSnapshot(
|
|
218
|
+
self,
|
|
219
|
+
request: models.CreateSnapshotRequest,
|
|
220
|
+
opts: Dict = None,
|
|
221
|
+
) -> models.CreateSnapshotResponse:
|
|
222
|
+
"""
|
|
223
|
+
本接口(CreateSnapshot)用于对指定云盘创建快照。
|
|
224
|
+
|
|
225
|
+
* 只有具有快照能力的云硬盘才能创建快照。云硬盘是否具有快照能力可由[DescribeDisks](/document/product/362/16315)接口查询,见SnapshotAbility字段。
|
|
226
|
+
* 可创建快照数量限制见[产品使用限制](https://cloud.tencent.com/doc/product/362/5145)。
|
|
227
|
+
* 当前支持将备份点转化为普通快照,转化之后可能会收取快照使用费用,备份点不保留,其占用的备份点配额也将被释放。
|
|
228
|
+
"""
|
|
229
|
+
|
|
230
|
+
kwargs = {}
|
|
231
|
+
kwargs["action"] = "CreateSnapshot"
|
|
232
|
+
kwargs["params"] = request._serialize()
|
|
233
|
+
kwargs["resp_cls"] = models.CreateSnapshotResponse
|
|
234
|
+
kwargs["headers"] = request.headers
|
|
235
|
+
kwargs["opts"] = opts or {}
|
|
236
|
+
|
|
237
|
+
return await self.call_and_deserialize(**kwargs)
|
|
238
|
+
|
|
239
|
+
async def CreateSnapshotGroup(
|
|
240
|
+
self,
|
|
241
|
+
request: models.CreateSnapshotGroupRequest,
|
|
242
|
+
opts: Dict = None,
|
|
243
|
+
) -> models.CreateSnapshotGroupResponse:
|
|
244
|
+
"""
|
|
245
|
+
本接口(CreateSnapshotGroup)用于创建快照组。
|
|
246
|
+
* 创建快照组的云硬盘列表必须挂载在同一实例上;
|
|
247
|
+
* 可选择挂载在实例上的全部或部分盘创建快照组。
|
|
248
|
+
"""
|
|
249
|
+
|
|
250
|
+
kwargs = {}
|
|
251
|
+
kwargs["action"] = "CreateSnapshotGroup"
|
|
252
|
+
kwargs["params"] = request._serialize()
|
|
253
|
+
kwargs["resp_cls"] = models.CreateSnapshotGroupResponse
|
|
254
|
+
kwargs["headers"] = request.headers
|
|
255
|
+
kwargs["opts"] = opts or {}
|
|
256
|
+
|
|
257
|
+
return await self.call_and_deserialize(**kwargs)
|
|
258
|
+
|
|
259
|
+
async def DeleteAutoSnapshotPolicies(
|
|
260
|
+
self,
|
|
261
|
+
request: models.DeleteAutoSnapshotPoliciesRequest,
|
|
262
|
+
opts: Dict = None,
|
|
263
|
+
) -> models.DeleteAutoSnapshotPoliciesResponse:
|
|
264
|
+
"""
|
|
265
|
+
本接口(DeleteAutoSnapshotPolicies)用于删除定期快照策略。
|
|
266
|
+
|
|
267
|
+
* 支持批量操作。如果多个定期快照策略存在无法删除的,则操作不执行,以特定错误码返回。
|
|
268
|
+
"""
|
|
269
|
+
|
|
270
|
+
kwargs = {}
|
|
271
|
+
kwargs["action"] = "DeleteAutoSnapshotPolicies"
|
|
272
|
+
kwargs["params"] = request._serialize()
|
|
273
|
+
kwargs["resp_cls"] = models.DeleteAutoSnapshotPoliciesResponse
|
|
274
|
+
kwargs["headers"] = request.headers
|
|
275
|
+
kwargs["opts"] = opts or {}
|
|
276
|
+
|
|
277
|
+
return await self.call_and_deserialize(**kwargs)
|
|
278
|
+
|
|
279
|
+
async def DeleteDiskBackups(
|
|
280
|
+
self,
|
|
281
|
+
request: models.DeleteDiskBackupsRequest,
|
|
282
|
+
opts: Dict = None,
|
|
283
|
+
) -> models.DeleteDiskBackupsResponse:
|
|
284
|
+
"""
|
|
285
|
+
批量删除指定的云硬盘备份点。
|
|
286
|
+
"""
|
|
287
|
+
|
|
288
|
+
kwargs = {}
|
|
289
|
+
kwargs["action"] = "DeleteDiskBackups"
|
|
290
|
+
kwargs["params"] = request._serialize()
|
|
291
|
+
kwargs["resp_cls"] = models.DeleteDiskBackupsResponse
|
|
292
|
+
kwargs["headers"] = request.headers
|
|
293
|
+
kwargs["opts"] = opts or {}
|
|
294
|
+
|
|
295
|
+
return await self.call_and_deserialize(**kwargs)
|
|
296
|
+
|
|
297
|
+
async def DeleteSnapshotGroup(
|
|
298
|
+
self,
|
|
299
|
+
request: models.DeleteSnapshotGroupRequest,
|
|
300
|
+
opts: Dict = None,
|
|
301
|
+
) -> models.DeleteSnapshotGroupResponse:
|
|
302
|
+
"""
|
|
303
|
+
本接口(DeleteSnapshotGroup)用于删除快照组,一次调用仅支持删除一个快照组。
|
|
304
|
+
* 默认会删除快照组内的所有快照;
|
|
305
|
+
* 如果快照组内的快照有关联镜像,则删除失败,所有快照均不会删除;如果需要同时删除快照绑定的镜像,可传入参数DeleteBindImages等于true。
|
|
306
|
+
"""
|
|
307
|
+
|
|
308
|
+
kwargs = {}
|
|
309
|
+
kwargs["action"] = "DeleteSnapshotGroup"
|
|
310
|
+
kwargs["params"] = request._serialize()
|
|
311
|
+
kwargs["resp_cls"] = models.DeleteSnapshotGroupResponse
|
|
312
|
+
kwargs["headers"] = request.headers
|
|
313
|
+
kwargs["opts"] = opts or {}
|
|
314
|
+
|
|
315
|
+
return await self.call_and_deserialize(**kwargs)
|
|
316
|
+
|
|
317
|
+
async def DeleteSnapshots(
|
|
318
|
+
self,
|
|
319
|
+
request: models.DeleteSnapshotsRequest,
|
|
320
|
+
opts: Dict = None,
|
|
321
|
+
) -> models.DeleteSnapshotsResponse:
|
|
322
|
+
"""
|
|
323
|
+
本接口(DeleteSnapshots)用于删除快照。
|
|
324
|
+
|
|
325
|
+
* 快照必须处于NORMAL状态,快照状态可以通过[DescribeSnapshots](/document/product/362/15647)接口查询,见输出参数中SnapshotState字段解释。
|
|
326
|
+
* 支持批量操作。如果多个快照存在无法删除的快照,则操作不执行,以特定的错误码返回。
|
|
327
|
+
"""
|
|
328
|
+
|
|
329
|
+
kwargs = {}
|
|
330
|
+
kwargs["action"] = "DeleteSnapshots"
|
|
331
|
+
kwargs["params"] = request._serialize()
|
|
332
|
+
kwargs["resp_cls"] = models.DeleteSnapshotsResponse
|
|
333
|
+
kwargs["headers"] = request.headers
|
|
334
|
+
kwargs["opts"] = opts or {}
|
|
335
|
+
|
|
336
|
+
return await self.call_and_deserialize(**kwargs)
|
|
337
|
+
|
|
338
|
+
async def DescribeAutoSnapshotPolicies(
|
|
339
|
+
self,
|
|
340
|
+
request: models.DescribeAutoSnapshotPoliciesRequest,
|
|
341
|
+
opts: Dict = None,
|
|
342
|
+
) -> models.DescribeAutoSnapshotPoliciesResponse:
|
|
343
|
+
"""
|
|
344
|
+
本接口(DescribeAutoSnapshotPolicies)用于查询定期快照策略。
|
|
345
|
+
|
|
346
|
+
* 可以根据定期快照策略ID、名称或者状态等信息来查询定期快照策略的详细信息,不同条件之间为与(AND)的关系,过滤信息详细请见过滤器`Filter`。
|
|
347
|
+
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的定期快照策略表。
|
|
348
|
+
"""
|
|
349
|
+
|
|
350
|
+
kwargs = {}
|
|
351
|
+
kwargs["action"] = "DescribeAutoSnapshotPolicies"
|
|
352
|
+
kwargs["params"] = request._serialize()
|
|
353
|
+
kwargs["resp_cls"] = models.DescribeAutoSnapshotPoliciesResponse
|
|
354
|
+
kwargs["headers"] = request.headers
|
|
355
|
+
kwargs["opts"] = opts or {}
|
|
356
|
+
|
|
357
|
+
return await self.call_and_deserialize(**kwargs)
|
|
358
|
+
|
|
359
|
+
async def DescribeDiskAssociatedAutoSnapshotPolicy(
|
|
360
|
+
self,
|
|
361
|
+
request: models.DescribeDiskAssociatedAutoSnapshotPolicyRequest,
|
|
362
|
+
opts: Dict = None,
|
|
363
|
+
) -> models.DescribeDiskAssociatedAutoSnapshotPolicyResponse:
|
|
364
|
+
"""
|
|
365
|
+
本接口(DescribeDiskAssociatedAutoSnapshotPolicy)用于查询云盘绑定的定期快照策略。
|
|
366
|
+
"""
|
|
367
|
+
|
|
368
|
+
kwargs = {}
|
|
369
|
+
kwargs["action"] = "DescribeDiskAssociatedAutoSnapshotPolicy"
|
|
370
|
+
kwargs["params"] = request._serialize()
|
|
371
|
+
kwargs["resp_cls"] = models.DescribeDiskAssociatedAutoSnapshotPolicyResponse
|
|
372
|
+
kwargs["headers"] = request.headers
|
|
373
|
+
kwargs["opts"] = opts or {}
|
|
374
|
+
|
|
375
|
+
return await self.call_and_deserialize(**kwargs)
|
|
376
|
+
|
|
377
|
+
async def DescribeDiskBackups(
|
|
378
|
+
self,
|
|
379
|
+
request: models.DescribeDiskBackupsRequest,
|
|
380
|
+
opts: Dict = None,
|
|
381
|
+
) -> models.DescribeDiskBackupsResponse:
|
|
382
|
+
"""
|
|
383
|
+
本接口(DescribeDiskBackups)用于查询备份点的详细信息。
|
|
384
|
+
|
|
385
|
+
根据备份点ID、创建备份点的云硬盘ID、创建备份点的云硬盘类型等对结果进行过滤,不同条件之间为与(AND)的关系,过滤信息详细请见过滤器Filter。
|
|
386
|
+
如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的备份点列表。
|
|
387
|
+
"""
|
|
388
|
+
|
|
389
|
+
kwargs = {}
|
|
390
|
+
kwargs["action"] = "DescribeDiskBackups"
|
|
391
|
+
kwargs["params"] = request._serialize()
|
|
392
|
+
kwargs["resp_cls"] = models.DescribeDiskBackupsResponse
|
|
393
|
+
kwargs["headers"] = request.headers
|
|
394
|
+
kwargs["opts"] = opts or {}
|
|
395
|
+
|
|
396
|
+
return await self.call_and_deserialize(**kwargs)
|
|
397
|
+
|
|
398
|
+
async def DescribeDiskConfigQuota(
|
|
399
|
+
self,
|
|
400
|
+
request: models.DescribeDiskConfigQuotaRequest,
|
|
401
|
+
opts: Dict = None,
|
|
402
|
+
) -> models.DescribeDiskConfigQuotaResponse:
|
|
403
|
+
"""
|
|
404
|
+
本接口(DescribeDiskConfigQuota)用于查询云硬盘配额。
|
|
405
|
+
"""
|
|
406
|
+
|
|
407
|
+
kwargs = {}
|
|
408
|
+
kwargs["action"] = "DescribeDiskConfigQuota"
|
|
409
|
+
kwargs["params"] = request._serialize()
|
|
410
|
+
kwargs["resp_cls"] = models.DescribeDiskConfigQuotaResponse
|
|
411
|
+
kwargs["headers"] = request.headers
|
|
412
|
+
kwargs["opts"] = opts or {}
|
|
413
|
+
|
|
414
|
+
return await self.call_and_deserialize(**kwargs)
|
|
415
|
+
|
|
416
|
+
async def DescribeDiskStoragePool(
|
|
417
|
+
self,
|
|
418
|
+
request: models.DescribeDiskStoragePoolRequest,
|
|
419
|
+
opts: Dict = None,
|
|
420
|
+
) -> models.DescribeDiskStoragePoolResponse:
|
|
421
|
+
"""
|
|
422
|
+
本接口(DescribeDiskStoragePool)查询用户的云硬盘独享集群列表。
|
|
423
|
+
|
|
424
|
+
* 可以根据独享集群ID(CdcId)、可用区(zone)等信息来查询和过滤云硬盘独享集群详细信息,不同的过滤条件之间为与(AND)的关系,过滤信息详细请见过滤器`Filter`。
|
|
425
|
+
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的云硬盘独享集群列表。
|
|
426
|
+
"""
|
|
427
|
+
|
|
428
|
+
kwargs = {}
|
|
429
|
+
kwargs["action"] = "DescribeDiskStoragePool"
|
|
430
|
+
kwargs["params"] = request._serialize()
|
|
431
|
+
kwargs["resp_cls"] = models.DescribeDiskStoragePoolResponse
|
|
432
|
+
kwargs["headers"] = request.headers
|
|
433
|
+
kwargs["opts"] = opts or {}
|
|
434
|
+
|
|
435
|
+
return await self.call_and_deserialize(**kwargs)
|
|
436
|
+
|
|
437
|
+
async def DescribeDisks(
|
|
438
|
+
self,
|
|
439
|
+
request: models.DescribeDisksRequest,
|
|
440
|
+
opts: Dict = None,
|
|
441
|
+
) -> models.DescribeDisksResponse:
|
|
442
|
+
"""
|
|
443
|
+
本接口(DescribeDisks)用于查询云硬盘列表。
|
|
444
|
+
|
|
445
|
+
* 可以根据云硬盘ID、云硬盘类型或者云硬盘状态等信息来查询云硬盘的详细信息,不同条件之间为与(AND)的关系,过滤信息详细请见过滤器`Filter`。
|
|
446
|
+
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的云硬盘列表。
|
|
447
|
+
"""
|
|
448
|
+
|
|
449
|
+
kwargs = {}
|
|
450
|
+
kwargs["action"] = "DescribeDisks"
|
|
451
|
+
kwargs["params"] = request._serialize()
|
|
452
|
+
kwargs["resp_cls"] = models.DescribeDisksResponse
|
|
453
|
+
kwargs["headers"] = request.headers
|
|
454
|
+
kwargs["opts"] = opts or {}
|
|
455
|
+
|
|
456
|
+
return await self.call_and_deserialize(**kwargs)
|
|
457
|
+
|
|
458
|
+
async def DescribeInstancesDiskNum(
|
|
459
|
+
self,
|
|
460
|
+
request: models.DescribeInstancesDiskNumRequest,
|
|
461
|
+
opts: Dict = None,
|
|
462
|
+
) -> models.DescribeInstancesDiskNumResponse:
|
|
463
|
+
"""
|
|
464
|
+
本接口(DescribeInstancesDiskNum)用于查询实例已挂载云硬盘数量。
|
|
465
|
+
|
|
466
|
+
* 支持批量操作,当传入多个云服务器实例ID,返回结果会分别列出每个云服务器挂载的云硬盘数量。
|
|
467
|
+
"""
|
|
468
|
+
|
|
469
|
+
kwargs = {}
|
|
470
|
+
kwargs["action"] = "DescribeInstancesDiskNum"
|
|
471
|
+
kwargs["params"] = request._serialize()
|
|
472
|
+
kwargs["resp_cls"] = models.DescribeInstancesDiskNumResponse
|
|
473
|
+
kwargs["headers"] = request.headers
|
|
474
|
+
kwargs["opts"] = opts or {}
|
|
475
|
+
|
|
476
|
+
return await self.call_and_deserialize(**kwargs)
|
|
477
|
+
|
|
478
|
+
async def DescribeSnapshotGroups(
|
|
479
|
+
self,
|
|
480
|
+
request: models.DescribeSnapshotGroupsRequest,
|
|
481
|
+
opts: Dict = None,
|
|
482
|
+
) -> models.DescribeSnapshotGroupsResponse:
|
|
483
|
+
"""
|
|
484
|
+
本接口(DescribeSnapshotGroups)用于查询快照组列表。
|
|
485
|
+
* 可以根据快照组ID、快照组状态、快照组关联的快照ID等来查询快照组列表,不同条件之间为与(AND)的关系,过滤信息详细请见过滤器`Filter`。
|
|
486
|
+
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的快照组列表。
|
|
487
|
+
"""
|
|
488
|
+
|
|
489
|
+
kwargs = {}
|
|
490
|
+
kwargs["action"] = "DescribeSnapshotGroups"
|
|
491
|
+
kwargs["params"] = request._serialize()
|
|
492
|
+
kwargs["resp_cls"] = models.DescribeSnapshotGroupsResponse
|
|
493
|
+
kwargs["headers"] = request.headers
|
|
494
|
+
kwargs["opts"] = opts or {}
|
|
495
|
+
|
|
496
|
+
return await self.call_and_deserialize(**kwargs)
|
|
497
|
+
|
|
498
|
+
async def DescribeSnapshotOverview(
|
|
499
|
+
self,
|
|
500
|
+
request: models.DescribeSnapshotOverviewRequest,
|
|
501
|
+
opts: Dict = None,
|
|
502
|
+
) -> models.DescribeSnapshotOverviewResponse:
|
|
503
|
+
"""
|
|
504
|
+
该接口用于查询用户快照使用概览,包括快照总容量、计费容量等信息。
|
|
505
|
+
"""
|
|
506
|
+
|
|
507
|
+
kwargs = {}
|
|
508
|
+
kwargs["action"] = "DescribeSnapshotOverview"
|
|
509
|
+
kwargs["params"] = request._serialize()
|
|
510
|
+
kwargs["resp_cls"] = models.DescribeSnapshotOverviewResponse
|
|
511
|
+
kwargs["headers"] = request.headers
|
|
512
|
+
kwargs["opts"] = opts or {}
|
|
513
|
+
|
|
514
|
+
return await self.call_and_deserialize(**kwargs)
|
|
515
|
+
|
|
516
|
+
async def DescribeSnapshotSharePermission(
|
|
517
|
+
self,
|
|
518
|
+
request: models.DescribeSnapshotSharePermissionRequest,
|
|
519
|
+
opts: Dict = None,
|
|
520
|
+
) -> models.DescribeSnapshotSharePermissionResponse:
|
|
521
|
+
"""
|
|
522
|
+
本接口(DescribeSnapshotSharePermission)用于查询快照的分享信息。
|
|
523
|
+
"""
|
|
524
|
+
|
|
525
|
+
kwargs = {}
|
|
526
|
+
kwargs["action"] = "DescribeSnapshotSharePermission"
|
|
527
|
+
kwargs["params"] = request._serialize()
|
|
528
|
+
kwargs["resp_cls"] = models.DescribeSnapshotSharePermissionResponse
|
|
529
|
+
kwargs["headers"] = request.headers
|
|
530
|
+
kwargs["opts"] = opts or {}
|
|
531
|
+
|
|
532
|
+
return await self.call_and_deserialize(**kwargs)
|
|
533
|
+
|
|
534
|
+
async def DescribeSnapshots(
|
|
535
|
+
self,
|
|
536
|
+
request: models.DescribeSnapshotsRequest,
|
|
537
|
+
opts: Dict = None,
|
|
538
|
+
) -> models.DescribeSnapshotsResponse:
|
|
539
|
+
"""
|
|
540
|
+
本接口(DescribeSnapshots)用于查询快照的详细信息。
|
|
541
|
+
|
|
542
|
+
* 根据快照ID、创建快照的云硬盘ID、创建快照的云硬盘类型等对结果进行过滤,不同条件之间为与(AND)的关系,过滤信息详细请见过滤器`Filter`。
|
|
543
|
+
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的快照列表。
|
|
544
|
+
"""
|
|
545
|
+
|
|
546
|
+
kwargs = {}
|
|
547
|
+
kwargs["action"] = "DescribeSnapshots"
|
|
548
|
+
kwargs["params"] = request._serialize()
|
|
549
|
+
kwargs["resp_cls"] = models.DescribeSnapshotsResponse
|
|
550
|
+
kwargs["headers"] = request.headers
|
|
551
|
+
kwargs["opts"] = opts or {}
|
|
552
|
+
|
|
553
|
+
return await self.call_and_deserialize(**kwargs)
|
|
554
|
+
|
|
555
|
+
async def DetachDisks(
|
|
556
|
+
self,
|
|
557
|
+
request: models.DetachDisksRequest,
|
|
558
|
+
opts: Dict = None,
|
|
559
|
+
) -> models.DetachDisksResponse:
|
|
560
|
+
"""
|
|
561
|
+
本接口(DetachDisks)用于卸载云硬盘。
|
|
562
|
+
|
|
563
|
+
* 支持批量操作,卸载挂载在同一主机上的多块云盘。如果多块云盘中存在不允许卸载的云盘,则操作不执行,返回特定的错误码。
|
|
564
|
+
* 本接口为异步接口,当请求成功返回时,云盘并未立即从主机卸载,可通过接口[DescribeDisks](/document/product/362/16315)来查询对应云盘的状态,如果云盘的状态由“ATTACHED”变为“UNATTACHED”,则为卸载成功。
|
|
565
|
+
"""
|
|
566
|
+
|
|
567
|
+
kwargs = {}
|
|
568
|
+
kwargs["action"] = "DetachDisks"
|
|
569
|
+
kwargs["params"] = request._serialize()
|
|
570
|
+
kwargs["resp_cls"] = models.DetachDisksResponse
|
|
571
|
+
kwargs["headers"] = request.headers
|
|
572
|
+
kwargs["opts"] = opts or {}
|
|
573
|
+
|
|
574
|
+
return await self.call_and_deserialize(**kwargs)
|
|
575
|
+
|
|
576
|
+
async def GetSnapOverview(
|
|
577
|
+
self,
|
|
578
|
+
request: models.GetSnapOverviewRequest,
|
|
579
|
+
opts: Dict = None,
|
|
580
|
+
) -> models.GetSnapOverviewResponse:
|
|
581
|
+
"""
|
|
582
|
+
为进一步规范化API命名,该接口决定预下线,新接口命名为:DescribeSnapshotOverview
|
|
583
|
+
|
|
584
|
+
获取快照概览信息
|
|
585
|
+
"""
|
|
586
|
+
|
|
587
|
+
kwargs = {}
|
|
588
|
+
kwargs["action"] = "GetSnapOverview"
|
|
589
|
+
kwargs["params"] = request._serialize()
|
|
590
|
+
kwargs["resp_cls"] = models.GetSnapOverviewResponse
|
|
591
|
+
kwargs["headers"] = request.headers
|
|
592
|
+
kwargs["opts"] = opts or {}
|
|
593
|
+
|
|
594
|
+
return await self.call_and_deserialize(**kwargs)
|
|
595
|
+
|
|
596
|
+
async def InitializeDisks(
|
|
597
|
+
self,
|
|
598
|
+
request: models.InitializeDisksRequest,
|
|
599
|
+
opts: Dict = None,
|
|
600
|
+
) -> models.InitializeDisksResponse:
|
|
601
|
+
"""
|
|
602
|
+
重新初始化云硬盘至云硬盘初始创建时的状态。使用云硬盘的重新初始化功能时需要注意以下4点:
|
|
603
|
+
1. 如果云硬盘是由快照创建的,则重新初始化会通过此快照重新回滚此云硬盘,即将云硬盘恢复为与快照一致的状态;
|
|
604
|
+
2. 如果云硬盘不是通过快照创建的,则重新初始化会清空此云硬盘的数据;请在重新初始化云硬盘前检查并备份必要的数据;
|
|
605
|
+
3. 当前仅未挂载的、非共享属性的数据盘云硬盘支持重新初始化;
|
|
606
|
+
4. 当创建此云硬盘的原始快照被删除时,不再支持重新初始化此云硬盘。
|
|
607
|
+
"""
|
|
608
|
+
|
|
609
|
+
kwargs = {}
|
|
610
|
+
kwargs["action"] = "InitializeDisks"
|
|
611
|
+
kwargs["params"] = request._serialize()
|
|
612
|
+
kwargs["resp_cls"] = models.InitializeDisksResponse
|
|
613
|
+
kwargs["headers"] = request.headers
|
|
614
|
+
kwargs["opts"] = opts or {}
|
|
615
|
+
|
|
616
|
+
return await self.call_and_deserialize(**kwargs)
|
|
617
|
+
|
|
618
|
+
async def InquirePriceModifyDiskBackupQuota(
|
|
619
|
+
self,
|
|
620
|
+
request: models.InquirePriceModifyDiskBackupQuotaRequest,
|
|
621
|
+
opts: Dict = None,
|
|
622
|
+
) -> models.InquirePriceModifyDiskBackupQuotaResponse:
|
|
623
|
+
"""
|
|
624
|
+
本接口(InquirePricePriceModifyDiskBackupQuota)用于修改云硬盘备份点配额询价。
|
|
625
|
+
"""
|
|
626
|
+
|
|
627
|
+
kwargs = {}
|
|
628
|
+
kwargs["action"] = "InquirePriceModifyDiskBackupQuota"
|
|
629
|
+
kwargs["params"] = request._serialize()
|
|
630
|
+
kwargs["resp_cls"] = models.InquirePriceModifyDiskBackupQuotaResponse
|
|
631
|
+
kwargs["headers"] = request.headers
|
|
632
|
+
kwargs["opts"] = opts or {}
|
|
633
|
+
|
|
634
|
+
return await self.call_and_deserialize(**kwargs)
|
|
635
|
+
|
|
636
|
+
async def InquirePriceModifyDiskExtraPerformance(
|
|
637
|
+
self,
|
|
638
|
+
request: models.InquirePriceModifyDiskExtraPerformanceRequest,
|
|
639
|
+
opts: Dict = None,
|
|
640
|
+
) -> models.InquirePriceModifyDiskExtraPerformanceResponse:
|
|
641
|
+
"""
|
|
642
|
+
本接口(InquirePriceModifyDiskExtraPerformance)用于调整云硬盘额外性能询价。
|
|
643
|
+
"""
|
|
644
|
+
|
|
645
|
+
kwargs = {}
|
|
646
|
+
kwargs["action"] = "InquirePriceModifyDiskExtraPerformance"
|
|
647
|
+
kwargs["params"] = request._serialize()
|
|
648
|
+
kwargs["resp_cls"] = models.InquirePriceModifyDiskExtraPerformanceResponse
|
|
649
|
+
kwargs["headers"] = request.headers
|
|
650
|
+
kwargs["opts"] = opts or {}
|
|
651
|
+
|
|
652
|
+
return await self.call_and_deserialize(**kwargs)
|
|
653
|
+
|
|
654
|
+
async def InquiryPriceCreateDisks(
|
|
655
|
+
self,
|
|
656
|
+
request: models.InquiryPriceCreateDisksRequest,
|
|
657
|
+
opts: Dict = None,
|
|
658
|
+
) -> models.InquiryPriceCreateDisksResponse:
|
|
659
|
+
"""
|
|
660
|
+
本接口(InquiryPriceCreateDisks)用于创建云硬盘询价。
|
|
661
|
+
|
|
662
|
+
* 支持查询创建多块云硬盘的价格,此时返回结果为总价格。
|
|
663
|
+
"""
|
|
664
|
+
|
|
665
|
+
kwargs = {}
|
|
666
|
+
kwargs["action"] = "InquiryPriceCreateDisks"
|
|
667
|
+
kwargs["params"] = request._serialize()
|
|
668
|
+
kwargs["resp_cls"] = models.InquiryPriceCreateDisksResponse
|
|
669
|
+
kwargs["headers"] = request.headers
|
|
670
|
+
kwargs["opts"] = opts or {}
|
|
671
|
+
|
|
672
|
+
return await self.call_and_deserialize(**kwargs)
|
|
673
|
+
|
|
674
|
+
async def InquiryPriceRenewDisks(
|
|
675
|
+
self,
|
|
676
|
+
request: models.InquiryPriceRenewDisksRequest,
|
|
677
|
+
opts: Dict = None,
|
|
678
|
+
) -> models.InquiryPriceRenewDisksResponse:
|
|
679
|
+
"""
|
|
680
|
+
本接口(InquiryPriceRenewDisks)用于续费云硬盘询价。
|
|
681
|
+
|
|
682
|
+
* 只支持查询预付费模式的弹性云盘续费价格。
|
|
683
|
+
* 支持与挂载实例一起续费的场景,需要在[DiskChargePrepaid](/document/product/362/15669#DiskChargePrepaid)参数中指定CurInstanceDeadline,此时会按对齐到实例续费后的到期时间来续费询价。
|
|
684
|
+
* 支持为多块云盘指定不同的续费时长,此时返回的价格为多块云盘续费的总价格。
|
|
685
|
+
"""
|
|
686
|
+
|
|
687
|
+
kwargs = {}
|
|
688
|
+
kwargs["action"] = "InquiryPriceRenewDisks"
|
|
689
|
+
kwargs["params"] = request._serialize()
|
|
690
|
+
kwargs["resp_cls"] = models.InquiryPriceRenewDisksResponse
|
|
691
|
+
kwargs["headers"] = request.headers
|
|
692
|
+
kwargs["opts"] = opts or {}
|
|
693
|
+
|
|
694
|
+
return await self.call_and_deserialize(**kwargs)
|
|
695
|
+
|
|
696
|
+
async def InquiryPriceResizeDisk(
|
|
697
|
+
self,
|
|
698
|
+
request: models.InquiryPriceResizeDiskRequest,
|
|
699
|
+
opts: Dict = None,
|
|
700
|
+
) -> models.InquiryPriceResizeDiskResponse:
|
|
701
|
+
"""
|
|
702
|
+
本接口(InquiryPriceResizeDisk)用于扩容云硬盘询价。
|
|
703
|
+
"""
|
|
704
|
+
|
|
705
|
+
kwargs = {}
|
|
706
|
+
kwargs["action"] = "InquiryPriceResizeDisk"
|
|
707
|
+
kwargs["params"] = request._serialize()
|
|
708
|
+
kwargs["resp_cls"] = models.InquiryPriceResizeDiskResponse
|
|
709
|
+
kwargs["headers"] = request.headers
|
|
710
|
+
kwargs["opts"] = opts or {}
|
|
711
|
+
|
|
712
|
+
return await self.call_and_deserialize(**kwargs)
|
|
713
|
+
|
|
714
|
+
async def ModifyAutoSnapshotPolicyAttribute(
|
|
715
|
+
self,
|
|
716
|
+
request: models.ModifyAutoSnapshotPolicyAttributeRequest,
|
|
717
|
+
opts: Dict = None,
|
|
718
|
+
) -> models.ModifyAutoSnapshotPolicyAttributeResponse:
|
|
719
|
+
"""
|
|
720
|
+
本接口(ModifyAutoSnapshotPolicyAttribute)用于修改定期快照策略属性。
|
|
721
|
+
|
|
722
|
+
* 可通过该接口修改定期快照策略的执行策略、名称、是否激活等属性。
|
|
723
|
+
* 修改保留天数时必须保证不与是否永久保留属性冲突,否则整个操作失败,以特定的错误码返回。
|
|
724
|
+
"""
|
|
725
|
+
|
|
726
|
+
kwargs = {}
|
|
727
|
+
kwargs["action"] = "ModifyAutoSnapshotPolicyAttribute"
|
|
728
|
+
kwargs["params"] = request._serialize()
|
|
729
|
+
kwargs["resp_cls"] = models.ModifyAutoSnapshotPolicyAttributeResponse
|
|
730
|
+
kwargs["headers"] = request.headers
|
|
731
|
+
kwargs["opts"] = opts or {}
|
|
732
|
+
|
|
733
|
+
return await self.call_and_deserialize(**kwargs)
|
|
734
|
+
|
|
735
|
+
async def ModifyDiskAttributes(
|
|
736
|
+
self,
|
|
737
|
+
request: models.ModifyDiskAttributesRequest,
|
|
738
|
+
opts: Dict = None,
|
|
739
|
+
) -> models.ModifyDiskAttributesResponse:
|
|
740
|
+
"""
|
|
741
|
+
* 只支持修改弹性云盘的项目ID。随云主机创建的云硬盘项目ID与云主机联动。是否是弹性云盘可以通过[DescribeDisks](/document/product/362/16315)接口查询,见输出参数中Portable字段解释。
|
|
742
|
+
* “云硬盘名称”仅为方便用户自己管理之用,腾讯云并不以此名称作为提交工单或是进行云盘管理操作的依据。
|
|
743
|
+
* 支持批量操作,如果传入多个云盘ID,则所有云盘修改为同一属性。如果存在不允许操作的云盘,则操作不执行,以特定错误码返回。
|
|
744
|
+
"""
|
|
745
|
+
|
|
746
|
+
kwargs = {}
|
|
747
|
+
kwargs["action"] = "ModifyDiskAttributes"
|
|
748
|
+
kwargs["params"] = request._serialize()
|
|
749
|
+
kwargs["resp_cls"] = models.ModifyDiskAttributesResponse
|
|
750
|
+
kwargs["headers"] = request.headers
|
|
751
|
+
kwargs["opts"] = opts or {}
|
|
752
|
+
|
|
753
|
+
return await self.call_and_deserialize(**kwargs)
|
|
754
|
+
|
|
755
|
+
async def ModifyDiskBackupQuota(
|
|
756
|
+
self,
|
|
757
|
+
request: models.ModifyDiskBackupQuotaRequest,
|
|
758
|
+
opts: Dict = None,
|
|
759
|
+
) -> models.ModifyDiskBackupQuotaResponse:
|
|
760
|
+
"""
|
|
761
|
+
此接口 (ModifyDiskBackupQuota) 用于修改云硬盘备份点配额。
|
|
762
|
+
"""
|
|
763
|
+
|
|
764
|
+
kwargs = {}
|
|
765
|
+
kwargs["action"] = "ModifyDiskBackupQuota"
|
|
766
|
+
kwargs["params"] = request._serialize()
|
|
767
|
+
kwargs["resp_cls"] = models.ModifyDiskBackupQuotaResponse
|
|
768
|
+
kwargs["headers"] = request.headers
|
|
769
|
+
kwargs["opts"] = opts or {}
|
|
770
|
+
|
|
771
|
+
return await self.call_and_deserialize(**kwargs)
|
|
772
|
+
|
|
773
|
+
async def ModifyDiskExtraPerformance(
|
|
774
|
+
self,
|
|
775
|
+
request: models.ModifyDiskExtraPerformanceRequest,
|
|
776
|
+
opts: Dict = None,
|
|
777
|
+
) -> models.ModifyDiskExtraPerformanceResponse:
|
|
778
|
+
"""
|
|
779
|
+
本接口(ModifyDiskExtraPerformance)用于调整云硬盘额外的性能。
|
|
780
|
+
|
|
781
|
+
* 目前仅支持增强型SSD云硬盘(CLOUD_HSSD)和极速型SSD云硬盘(CLOUD_TSSD)。
|
|
782
|
+
"""
|
|
783
|
+
|
|
784
|
+
kwargs = {}
|
|
785
|
+
kwargs["action"] = "ModifyDiskExtraPerformance"
|
|
786
|
+
kwargs["params"] = request._serialize()
|
|
787
|
+
kwargs["resp_cls"] = models.ModifyDiskExtraPerformanceResponse
|
|
788
|
+
kwargs["headers"] = request.headers
|
|
789
|
+
kwargs["opts"] = opts or {}
|
|
790
|
+
|
|
791
|
+
return await self.call_and_deserialize(**kwargs)
|
|
792
|
+
|
|
793
|
+
async def ModifyDisksChargeType(
|
|
794
|
+
self,
|
|
795
|
+
request: models.ModifyDisksChargeTypeRequest,
|
|
796
|
+
opts: Dict = None,
|
|
797
|
+
) -> models.ModifyDisksChargeTypeResponse:
|
|
798
|
+
"""
|
|
799
|
+
本接口 (ModifyDisksChargeType) 用于切换云硬盘的计费模式。
|
|
800
|
+
|
|
801
|
+
非弹性云硬盘不支持此接口,请通过修改实例计费模式接口将实例连同非弹性云硬盘一起转换。
|
|
802
|
+
"""
|
|
803
|
+
|
|
804
|
+
kwargs = {}
|
|
805
|
+
kwargs["action"] = "ModifyDisksChargeType"
|
|
806
|
+
kwargs["params"] = request._serialize()
|
|
807
|
+
kwargs["resp_cls"] = models.ModifyDisksChargeTypeResponse
|
|
808
|
+
kwargs["headers"] = request.headers
|
|
809
|
+
kwargs["opts"] = opts or {}
|
|
810
|
+
|
|
811
|
+
return await self.call_and_deserialize(**kwargs)
|
|
812
|
+
|
|
813
|
+
async def ModifyDisksRenewFlag(
|
|
814
|
+
self,
|
|
815
|
+
request: models.ModifyDisksRenewFlagRequest,
|
|
816
|
+
opts: Dict = None,
|
|
817
|
+
) -> models.ModifyDisksRenewFlagResponse:
|
|
818
|
+
"""
|
|
819
|
+
本接口(ModifyDisksRenewFlag)用于修改云硬盘续费标识,支持批量修改。
|
|
820
|
+
"""
|
|
821
|
+
|
|
822
|
+
kwargs = {}
|
|
823
|
+
kwargs["action"] = "ModifyDisksRenewFlag"
|
|
824
|
+
kwargs["params"] = request._serialize()
|
|
825
|
+
kwargs["resp_cls"] = models.ModifyDisksRenewFlagResponse
|
|
826
|
+
kwargs["headers"] = request.headers
|
|
827
|
+
kwargs["opts"] = opts or {}
|
|
828
|
+
|
|
829
|
+
return await self.call_and_deserialize(**kwargs)
|
|
830
|
+
|
|
831
|
+
async def ModifySnapshotAttribute(
|
|
832
|
+
self,
|
|
833
|
+
request: models.ModifySnapshotAttributeRequest,
|
|
834
|
+
opts: Dict = None,
|
|
835
|
+
) -> models.ModifySnapshotAttributeResponse:
|
|
836
|
+
"""
|
|
837
|
+
本接口(ModifySnapshotAttribute)用于修改指定快照的属性。
|
|
838
|
+
|
|
839
|
+
* 本接口支持修改快照名称及到期时间,以及将非永久快照修改为永久快照。
|
|
840
|
+
* “快照名称”仅为方便用户管理之用,腾讯云并不以此名称作为提交工单或是进行快照管理操作的依据。
|
|
841
|
+
"""
|
|
842
|
+
|
|
843
|
+
kwargs = {}
|
|
844
|
+
kwargs["action"] = "ModifySnapshotAttribute"
|
|
845
|
+
kwargs["params"] = request._serialize()
|
|
846
|
+
kwargs["resp_cls"] = models.ModifySnapshotAttributeResponse
|
|
847
|
+
kwargs["headers"] = request.headers
|
|
848
|
+
kwargs["opts"] = opts or {}
|
|
849
|
+
|
|
850
|
+
return await self.call_and_deserialize(**kwargs)
|
|
851
|
+
|
|
852
|
+
async def ModifySnapshotsSharePermission(
|
|
853
|
+
self,
|
|
854
|
+
request: models.ModifySnapshotsSharePermissionRequest,
|
|
855
|
+
opts: Dict = None,
|
|
856
|
+
) -> models.ModifySnapshotsSharePermissionResponse:
|
|
857
|
+
"""
|
|
858
|
+
本接口(ModifySnapshotsSharePermission)用于修改快照分享信息。
|
|
859
|
+
|
|
860
|
+
分享快照后,被分享账户可以通过该快照创建云硬盘。
|
|
861
|
+
* 每个快照最多可分享给50个账户。
|
|
862
|
+
* 分享快照无法更改名称,描述,仅可用于创建云硬盘。
|
|
863
|
+
* 只支持分享到对方账户相同地域。
|
|
864
|
+
* 仅支持分享数据盘快照。
|
|
865
|
+
"""
|
|
866
|
+
|
|
867
|
+
kwargs = {}
|
|
868
|
+
kwargs["action"] = "ModifySnapshotsSharePermission"
|
|
869
|
+
kwargs["params"] = request._serialize()
|
|
870
|
+
kwargs["resp_cls"] = models.ModifySnapshotsSharePermissionResponse
|
|
871
|
+
kwargs["headers"] = request.headers
|
|
872
|
+
kwargs["opts"] = opts or {}
|
|
873
|
+
|
|
874
|
+
return await self.call_and_deserialize(**kwargs)
|
|
875
|
+
|
|
876
|
+
async def RenewDisk(
|
|
877
|
+
self,
|
|
878
|
+
request: models.RenewDiskRequest,
|
|
879
|
+
opts: Dict = None,
|
|
880
|
+
) -> models.RenewDiskResponse:
|
|
881
|
+
"""
|
|
882
|
+
本接口(RenewDisk)用于续费云硬盘。
|
|
883
|
+
|
|
884
|
+
* 只支持预付费的云硬盘。云硬盘类型可以通过[DescribeDisks](/document/product/362/16315)接口查询,见输出参数中DiskChargeType字段解释。
|
|
885
|
+
* 支持与挂载实例一起续费的场景,需要在[DiskChargePrepaid](/document/product/362/15669#DiskChargePrepaid)参数中指定CurInstanceDeadline,此时会按对齐到子机续费后的到期时间来续费。
|
|
886
|
+
"""
|
|
887
|
+
|
|
888
|
+
kwargs = {}
|
|
889
|
+
kwargs["action"] = "RenewDisk"
|
|
890
|
+
kwargs["params"] = request._serialize()
|
|
891
|
+
kwargs["resp_cls"] = models.RenewDiskResponse
|
|
892
|
+
kwargs["headers"] = request.headers
|
|
893
|
+
kwargs["opts"] = opts or {}
|
|
894
|
+
|
|
895
|
+
return await self.call_and_deserialize(**kwargs)
|
|
896
|
+
|
|
897
|
+
async def ResizeDisk(
|
|
898
|
+
self,
|
|
899
|
+
request: models.ResizeDiskRequest,
|
|
900
|
+
opts: Dict = None,
|
|
901
|
+
) -> models.ResizeDiskResponse:
|
|
902
|
+
"""
|
|
903
|
+
本接口(ResizeDisk)用于扩容云硬盘。
|
|
904
|
+
|
|
905
|
+
* 只支持扩容弹性云盘。云硬盘类型可以通过[DescribeDisks](/document/product/362/16315)接口查询,见输出参数中Portable字段解释。非弹性云硬盘需通过[ResizeInstanceDisks](/document/product/213/15731)接口扩容。
|
|
906
|
+
* 本接口为异步接口,接口成功返回时,云盘并未立即扩容到指定大小,可通过接口[DescribeDisks](/document/product/362/16315)来查询对应云盘的状态,如果云盘的状态为“EXPANDING”,表示正在扩容中。
|
|
907
|
+
"""
|
|
908
|
+
|
|
909
|
+
kwargs = {}
|
|
910
|
+
kwargs["action"] = "ResizeDisk"
|
|
911
|
+
kwargs["params"] = request._serialize()
|
|
912
|
+
kwargs["resp_cls"] = models.ResizeDiskResponse
|
|
913
|
+
kwargs["headers"] = request.headers
|
|
914
|
+
kwargs["opts"] = opts or {}
|
|
915
|
+
|
|
916
|
+
return await self.call_and_deserialize(**kwargs)
|
|
917
|
+
|
|
918
|
+
async def TerminateDisks(
|
|
919
|
+
self,
|
|
920
|
+
request: models.TerminateDisksRequest,
|
|
921
|
+
opts: Dict = None,
|
|
922
|
+
) -> models.TerminateDisksResponse:
|
|
923
|
+
"""
|
|
924
|
+
本接口(TerminateDisks)用于退还云硬盘。
|
|
925
|
+
|
|
926
|
+
* 不再使用的云盘,可通过本接口主动退还。
|
|
927
|
+
* 本接口支持退还预付费云盘和按小时后付费云盘。按小时后付费云盘可直接退还,预付费云盘需符合退还规则。
|
|
928
|
+
* 支持批量操作,每次请求批量云硬盘的上限为100。如果批量云盘存在不允许操作的,请求会以特定错误码返回。
|
|
929
|
+
"""
|
|
930
|
+
|
|
931
|
+
kwargs = {}
|
|
932
|
+
kwargs["action"] = "TerminateDisks"
|
|
933
|
+
kwargs["params"] = request._serialize()
|
|
934
|
+
kwargs["resp_cls"] = models.TerminateDisksResponse
|
|
935
|
+
kwargs["headers"] = request.headers
|
|
936
|
+
kwargs["opts"] = opts or {}
|
|
937
|
+
|
|
938
|
+
return await self.call_and_deserialize(**kwargs)
|
|
939
|
+
|
|
940
|
+
async def UnbindAutoSnapshotPolicy(
|
|
941
|
+
self,
|
|
942
|
+
request: models.UnbindAutoSnapshotPolicyRequest,
|
|
943
|
+
opts: Dict = None,
|
|
944
|
+
) -> models.UnbindAutoSnapshotPolicyResponse:
|
|
945
|
+
"""
|
|
946
|
+
本接口(UnbindAutoSnapshotPolicy)用于解除云硬盘绑定的定期快照策略。
|
|
947
|
+
|
|
948
|
+
* 支持批量操作,可一次解除多个云盘与同一定期快照策略的绑定。
|
|
949
|
+
* 如果传入的云盘未绑定到当前定期快照策略,接口将自动跳过,仅解绑与当前定期快照策略绑定的云盘。
|
|
950
|
+
"""
|
|
951
|
+
|
|
952
|
+
kwargs = {}
|
|
953
|
+
kwargs["action"] = "UnbindAutoSnapshotPolicy"
|
|
954
|
+
kwargs["params"] = request._serialize()
|
|
955
|
+
kwargs["resp_cls"] = models.UnbindAutoSnapshotPolicyResponse
|
|
956
|
+
kwargs["headers"] = request.headers
|
|
957
|
+
kwargs["opts"] = opts or {}
|
|
958
|
+
|
|
959
|
+
return await self.call_and_deserialize(**kwargs)
|
|
@@ -6387,13 +6387,13 @@ class InquiryPriceRenewDisksRequest(AbstractModel):
|
|
|
6387
6387
|
|
|
6388
6388
|
def __init__(self):
|
|
6389
6389
|
r"""
|
|
6390
|
-
:param _DiskIds:
|
|
6390
|
+
:param _DiskIds: <p>云硬盘ID, 通过<a href="/document/product/362/16315">DescribeDisks</a>接口查询。</p>
|
|
6391
6391
|
:type DiskIds: list of str
|
|
6392
|
-
:param _DiskChargePrepaids:
|
|
6392
|
+
:param _DiskChargePrepaids: <p>预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月云盘的购买时长。如果在该参数中指定CurInstanceDeadline,则会按对齐到子机到期时间来续费。如果是批量续费询价,该参数与Disks参数一一对应,元素数量需保持一致。</p>
|
|
6393
6393
|
:type DiskChargePrepaids: list of DiskChargePrepaid
|
|
6394
|
-
:param _NewDeadline:
|
|
6394
|
+
:param _NewDeadline: <p>指定云硬盘新的到期时间,形式如:2017-12-17 00:00:00。参数<code>NewDeadline</code>和<code>DiskChargePrepaids</code>是两种指定询价时长的方式,两者必传一个。</p>
|
|
6395
6395
|
:type NewDeadline: str
|
|
6396
|
-
:param _ProjectId:
|
|
6396
|
+
:param _ProjectId: <p>云硬盘所属项目ID。该参数可以通过调用<a href="https://cloud.tencent.com/document/api/651/78725">DescribeProject</a> 的返回值中的 projectId 字段来获取。 如传入则仅用于鉴权。</p>
|
|
6397
6397
|
:type ProjectId: int
|
|
6398
6398
|
"""
|
|
6399
6399
|
self._DiskIds = None
|
|
@@ -6403,7 +6403,7 @@ class InquiryPriceRenewDisksRequest(AbstractModel):
|
|
|
6403
6403
|
|
|
6404
6404
|
@property
|
|
6405
6405
|
def DiskIds(self):
|
|
6406
|
-
r"""
|
|
6406
|
+
r"""<p>云硬盘ID, 通过<a href="/document/product/362/16315">DescribeDisks</a>接口查询。</p>
|
|
6407
6407
|
:rtype: list of str
|
|
6408
6408
|
"""
|
|
6409
6409
|
return self._DiskIds
|
|
@@ -6414,7 +6414,7 @@ class InquiryPriceRenewDisksRequest(AbstractModel):
|
|
|
6414
6414
|
|
|
6415
6415
|
@property
|
|
6416
6416
|
def DiskChargePrepaids(self):
|
|
6417
|
-
r"""
|
|
6417
|
+
r"""<p>预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月云盘的购买时长。如果在该参数中指定CurInstanceDeadline,则会按对齐到子机到期时间来续费。如果是批量续费询价,该参数与Disks参数一一对应,元素数量需保持一致。</p>
|
|
6418
6418
|
:rtype: list of DiskChargePrepaid
|
|
6419
6419
|
"""
|
|
6420
6420
|
return self._DiskChargePrepaids
|
|
@@ -6425,7 +6425,7 @@ class InquiryPriceRenewDisksRequest(AbstractModel):
|
|
|
6425
6425
|
|
|
6426
6426
|
@property
|
|
6427
6427
|
def NewDeadline(self):
|
|
6428
|
-
r"""
|
|
6428
|
+
r"""<p>指定云硬盘新的到期时间,形式如:2017-12-17 00:00:00。参数<code>NewDeadline</code>和<code>DiskChargePrepaids</code>是两种指定询价时长的方式,两者必传一个。</p>
|
|
6429
6429
|
:rtype: str
|
|
6430
6430
|
"""
|
|
6431
6431
|
return self._NewDeadline
|
|
@@ -6436,7 +6436,7 @@ class InquiryPriceRenewDisksRequest(AbstractModel):
|
|
|
6436
6436
|
|
|
6437
6437
|
@property
|
|
6438
6438
|
def ProjectId(self):
|
|
6439
|
-
r"""
|
|
6439
|
+
r"""<p>云硬盘所属项目ID。该参数可以通过调用<a href="https://cloud.tencent.com/document/api/651/78725">DescribeProject</a> 的返回值中的 projectId 字段来获取。 如传入则仅用于鉴权。</p>
|
|
6440
6440
|
:rtype: int
|
|
6441
6441
|
"""
|
|
6442
6442
|
return self._ProjectId
|
|
@@ -6473,7 +6473,7 @@ class InquiryPriceRenewDisksResponse(AbstractModel):
|
|
|
6473
6473
|
|
|
6474
6474
|
def __init__(self):
|
|
6475
6475
|
r"""
|
|
6476
|
-
:param _DiskPrice:
|
|
6476
|
+
:param _DiskPrice: <p>描述了续费云盘的价格。</p>
|
|
6477
6477
|
:type DiskPrice: :class:`tencentcloud.cbs.v20170312.models.PrepayPrice`
|
|
6478
6478
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6479
6479
|
:type RequestId: str
|
|
@@ -6483,7 +6483,7 @@ class InquiryPriceRenewDisksResponse(AbstractModel):
|
|
|
6483
6483
|
|
|
6484
6484
|
@property
|
|
6485
6485
|
def DiskPrice(self):
|
|
6486
|
-
r"""
|
|
6486
|
+
r"""<p>描述了续费云盘的价格。</p>
|
|
6487
6487
|
:rtype: :class:`tencentcloud.cbs.v20170312.models.PrepayPrice`
|
|
6488
6488
|
"""
|
|
6489
6489
|
return self._DiskPrice
|
|
@@ -8084,9 +8084,9 @@ class RenewDiskRequest(AbstractModel):
|
|
|
8084
8084
|
|
|
8085
8085
|
def __init__(self):
|
|
8086
8086
|
r"""
|
|
8087
|
-
:param _DiskChargePrepaid:
|
|
8087
|
+
:param _DiskChargePrepaid: <p>预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月云硬盘的续费时长。<br>在云硬盘与挂载的实例一起续费的场景下,可以指定参数CurInstanceDeadline,此时云硬盘会按对齐到实例续费后的到期时间来续费。</p>
|
|
8088
8088
|
:type DiskChargePrepaid: :class:`tencentcloud.cbs.v20170312.models.DiskChargePrepaid`
|
|
8089
|
-
:param _DiskId:
|
|
8089
|
+
:param _DiskId: <p>云硬盘ID, 通过<a href="/document/product/362/16315">DescribeDisks</a>接口查询。</p>
|
|
8090
8090
|
:type DiskId: str
|
|
8091
8091
|
"""
|
|
8092
8092
|
self._DiskChargePrepaid = None
|
|
@@ -8094,7 +8094,7 @@ class RenewDiskRequest(AbstractModel):
|
|
|
8094
8094
|
|
|
8095
8095
|
@property
|
|
8096
8096
|
def DiskChargePrepaid(self):
|
|
8097
|
-
r"""
|
|
8097
|
+
r"""<p>预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月云硬盘的续费时长。<br>在云硬盘与挂载的实例一起续费的场景下,可以指定参数CurInstanceDeadline,此时云硬盘会按对齐到实例续费后的到期时间来续费。</p>
|
|
8098
8098
|
:rtype: :class:`tencentcloud.cbs.v20170312.models.DiskChargePrepaid`
|
|
8099
8099
|
"""
|
|
8100
8100
|
return self._DiskChargePrepaid
|
|
@@ -8105,7 +8105,7 @@ class RenewDiskRequest(AbstractModel):
|
|
|
8105
8105
|
|
|
8106
8106
|
@property
|
|
8107
8107
|
def DiskId(self):
|
|
8108
|
-
r"""
|
|
8108
|
+
r"""<p>云硬盘ID, 通过<a href="/document/product/362/16315">DescribeDisks</a>接口查询。</p>
|
|
8109
8109
|
:rtype: str
|
|
8110
8110
|
"""
|
|
8111
8111
|
return self._DiskId
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-cbs
|
|
3
|
+
Version: 3.1.25
|
|
4
|
+
Summary: Tencent Cloud Cbs 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.25
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Cbs 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-cbs
|
|
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 cbs
|
|
46
|
+
|
|
@@ -5,6 +5,7 @@ tencentcloud/__init__.py
|
|
|
5
5
|
tencentcloud/cbs/__init__.py
|
|
6
6
|
tencentcloud/cbs/v20170312/__init__.py
|
|
7
7
|
tencentcloud/cbs/v20170312/cbs_client.py
|
|
8
|
+
tencentcloud/cbs/v20170312/cbs_client_async.py
|
|
8
9
|
tencentcloud/cbs/v20170312/errorcodes.py
|
|
9
10
|
tencentcloud/cbs/v20170312/models.py
|
|
10
11
|
tencentcloud_sdk_python_cbs.egg-info/PKG-INFO
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.25
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.2
|
|
2
|
-
Name: tencentcloud-sdk-python-cbs
|
|
3
|
-
Version: 3.0.1459
|
|
4
|
-
Summary: Tencent Cloud Cbs 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
|
-
Description: ============================
|
|
10
|
-
Tencent Cloud SDK for Python
|
|
11
|
-
============================
|
|
12
|
-
|
|
13
|
-
Tencent Cloud Python Cbs 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.
|
|
14
|
-
The SDK works on Python versions:
|
|
15
|
-
|
|
16
|
-
* 2.7 and greater, including 3.x
|
|
17
|
-
|
|
18
|
-
Quick Start
|
|
19
|
-
-----------
|
|
20
|
-
|
|
21
|
-
First, install the library:
|
|
22
|
-
|
|
23
|
-
.. code-block:: sh
|
|
24
|
-
|
|
25
|
-
$ pip install tencentcloud-sdk-python-common
|
|
26
|
-
$ pip install tencentcloud-sdk-python-cbs
|
|
27
|
-
|
|
28
|
-
or download source code from github and install:
|
|
29
|
-
|
|
30
|
-
.. code-block:: sh
|
|
31
|
-
|
|
32
|
-
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
33
|
-
$ cd tencentcloud-sdk-python
|
|
34
|
-
$ python package.py --components common cbs
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
Platform: any
|
|
38
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
39
|
-
Classifier: Intended Audience :: Developers
|
|
40
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
41
|
-
Classifier: Programming Language :: Python
|
|
42
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
43
|
-
Classifier: Programming Language :: Python :: 3
|
|
44
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
45
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.2
|
|
2
|
-
Name: tencentcloud-sdk-python-cbs
|
|
3
|
-
Version: 3.0.1459
|
|
4
|
-
Summary: Tencent Cloud Cbs 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
|
-
Description: ============================
|
|
10
|
-
Tencent Cloud SDK for Python
|
|
11
|
-
============================
|
|
12
|
-
|
|
13
|
-
Tencent Cloud Python Cbs 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.
|
|
14
|
-
The SDK works on Python versions:
|
|
15
|
-
|
|
16
|
-
* 2.7 and greater, including 3.x
|
|
17
|
-
|
|
18
|
-
Quick Start
|
|
19
|
-
-----------
|
|
20
|
-
|
|
21
|
-
First, install the library:
|
|
22
|
-
|
|
23
|
-
.. code-block:: sh
|
|
24
|
-
|
|
25
|
-
$ pip install tencentcloud-sdk-python-common
|
|
26
|
-
$ pip install tencentcloud-sdk-python-cbs
|
|
27
|
-
|
|
28
|
-
or download source code from github and install:
|
|
29
|
-
|
|
30
|
-
.. code-block:: sh
|
|
31
|
-
|
|
32
|
-
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
33
|
-
$ cd tencentcloud-sdk-python
|
|
34
|
-
$ python package.py --components common cbs
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
Platform: any
|
|
38
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
39
|
-
Classifier: Intended Audience :: Developers
|
|
40
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
41
|
-
Classifier: Programming Language :: Python
|
|
42
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
43
|
-
Classifier: Programming Language :: Python :: 3
|
|
44
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
45
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.0.1459
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|