tencentcloud-sdk-python-cdwpg 3.0.1469__tar.gz → 3.1.44__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_cdwpg-3.1.44/PKG-INFO +46 -0
- {tencentcloud-sdk-python-cdwpg-3.0.1469 → tencentcloud_sdk_python_cdwpg-3.1.44}/setup.py +2 -1
- {tencentcloud-sdk-python-cdwpg-3.0.1469 → tencentcloud_sdk_python_cdwpg-3.1.44}/tencentcloud/__init__.py +1 -1
- tencentcloud_sdk_python_cdwpg-3.1.44/tencentcloud/cdwpg/v20201230/cdwpg_client_async.py +458 -0
- {tencentcloud-sdk-python-cdwpg-3.0.1469 → tencentcloud_sdk_python_cdwpg-3.1.44}/tencentcloud/cdwpg/v20201230/errorcodes.py +6 -0
- {tencentcloud-sdk-python-cdwpg-3.0.1469 → tencentcloud_sdk_python_cdwpg-3.1.44}/tencentcloud/cdwpg/v20201230/models.py +320 -0
- tencentcloud_sdk_python_cdwpg-3.1.44/tencentcloud_sdk_python_cdwpg.egg-info/PKG-INFO +46 -0
- {tencentcloud-sdk-python-cdwpg-3.0.1469 → tencentcloud_sdk_python_cdwpg-3.1.44}/tencentcloud_sdk_python_cdwpg.egg-info/SOURCES.txt +1 -0
- tencentcloud_sdk_python_cdwpg-3.1.44/tencentcloud_sdk_python_cdwpg.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cdwpg-3.0.1469/PKG-INFO +0 -45
- tencentcloud-sdk-python-cdwpg-3.0.1469/tencentcloud_sdk_python_cdwpg.egg-info/PKG-INFO +0 -45
- tencentcloud-sdk-python-cdwpg-3.0.1469/tencentcloud_sdk_python_cdwpg.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-cdwpg-3.0.1469 → tencentcloud_sdk_python_cdwpg-3.1.44}/README.rst +0 -0
- {tencentcloud-sdk-python-cdwpg-3.0.1469 → tencentcloud_sdk_python_cdwpg-3.1.44}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cdwpg-3.0.1469 → tencentcloud_sdk_python_cdwpg-3.1.44}/tencentcloud/cdwpg/__init__.py +0 -0
- {tencentcloud-sdk-python-cdwpg-3.0.1469 → tencentcloud_sdk_python_cdwpg-3.1.44}/tencentcloud/cdwpg/v20201230/__init__.py +0 -0
- {tencentcloud-sdk-python-cdwpg-3.0.1469 → tencentcloud_sdk_python_cdwpg-3.1.44}/tencentcloud/cdwpg/v20201230/cdwpg_client.py +0 -0
- {tencentcloud-sdk-python-cdwpg-3.0.1469 → tencentcloud_sdk_python_cdwpg-3.1.44}/tencentcloud_sdk_python_cdwpg.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cdwpg-3.0.1469 → tencentcloud_sdk_python_cdwpg-3.1.44}/tencentcloud_sdk_python_cdwpg.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-cdwpg
|
|
3
|
+
Version: 3.1.44
|
|
4
|
+
Summary: Tencent Cloud Cdwpg 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.44
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Cdwpg 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-cdwpg
|
|
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 cdwpg
|
|
46
|
+
|
|
@@ -8,7 +8,8 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-cdwpg',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.44,<4.0.0"],
|
|
12
|
+
|
|
12
13
|
version=tencentcloud.__version__,
|
|
13
14
|
description='Tencent Cloud Cdwpg SDK for Python',
|
|
14
15
|
long_description=open('README.rst').read(),
|
|
@@ -0,0 +1,458 @@
|
|
|
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.cdwpg.v20201230 import models
|
|
20
|
+
from typing import Dict
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CdwpgClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2020-12-30'
|
|
25
|
+
_endpoint = 'cdwpg.tencentcloudapi.com'
|
|
26
|
+
_service = 'cdwpg'
|
|
27
|
+
|
|
28
|
+
async def CreateInstanceByApi(
|
|
29
|
+
self,
|
|
30
|
+
request: models.CreateInstanceByApiRequest,
|
|
31
|
+
opts: Dict = None,
|
|
32
|
+
) -> models.CreateInstanceByApiResponse:
|
|
33
|
+
"""
|
|
34
|
+
创建集群
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
kwargs = {}
|
|
38
|
+
kwargs["action"] = "CreateInstanceByApi"
|
|
39
|
+
kwargs["params"] = request._serialize()
|
|
40
|
+
kwargs["resp_cls"] = models.CreateInstanceByApiResponse
|
|
41
|
+
kwargs["headers"] = request.headers
|
|
42
|
+
kwargs["opts"] = opts or {}
|
|
43
|
+
|
|
44
|
+
return await self.call_and_deserialize(**kwargs)
|
|
45
|
+
|
|
46
|
+
async def DescribeAccounts(
|
|
47
|
+
self,
|
|
48
|
+
request: models.DescribeAccountsRequest,
|
|
49
|
+
opts: Dict = None,
|
|
50
|
+
) -> models.DescribeAccountsResponse:
|
|
51
|
+
"""
|
|
52
|
+
获取云原生实例对应的账号列表
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
kwargs = {}
|
|
56
|
+
kwargs["action"] = "DescribeAccounts"
|
|
57
|
+
kwargs["params"] = request._serialize()
|
|
58
|
+
kwargs["resp_cls"] = models.DescribeAccountsResponse
|
|
59
|
+
kwargs["headers"] = request.headers
|
|
60
|
+
kwargs["opts"] = opts or {}
|
|
61
|
+
|
|
62
|
+
return await self.call_and_deserialize(**kwargs)
|
|
63
|
+
|
|
64
|
+
async def DescribeDBConfigHistory(
|
|
65
|
+
self,
|
|
66
|
+
request: models.DescribeDBConfigHistoryRequest,
|
|
67
|
+
opts: Dict = None,
|
|
68
|
+
) -> models.DescribeDBConfigHistoryResponse:
|
|
69
|
+
"""
|
|
70
|
+
DescribeDBConfigHistory1
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
kwargs = {}
|
|
74
|
+
kwargs["action"] = "DescribeDBConfigHistory"
|
|
75
|
+
kwargs["params"] = request._serialize()
|
|
76
|
+
kwargs["resp_cls"] = models.DescribeDBConfigHistoryResponse
|
|
77
|
+
kwargs["headers"] = request.headers
|
|
78
|
+
kwargs["opts"] = opts or {}
|
|
79
|
+
|
|
80
|
+
return await self.call_and_deserialize(**kwargs)
|
|
81
|
+
|
|
82
|
+
async def DescribeDBParams(
|
|
83
|
+
self,
|
|
84
|
+
request: models.DescribeDBParamsRequest,
|
|
85
|
+
opts: Dict = None,
|
|
86
|
+
) -> models.DescribeDBParamsResponse:
|
|
87
|
+
"""
|
|
88
|
+
配置描述
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
kwargs = {}
|
|
92
|
+
kwargs["action"] = "DescribeDBParams"
|
|
93
|
+
kwargs["params"] = request._serialize()
|
|
94
|
+
kwargs["resp_cls"] = models.DescribeDBParamsResponse
|
|
95
|
+
kwargs["headers"] = request.headers
|
|
96
|
+
kwargs["opts"] = opts or {}
|
|
97
|
+
|
|
98
|
+
return await self.call_and_deserialize(**kwargs)
|
|
99
|
+
|
|
100
|
+
async def DescribeErrorLog(
|
|
101
|
+
self,
|
|
102
|
+
request: models.DescribeErrorLogRequest,
|
|
103
|
+
opts: Dict = None,
|
|
104
|
+
) -> models.DescribeErrorLogResponse:
|
|
105
|
+
"""
|
|
106
|
+
查询错误日志
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
kwargs = {}
|
|
110
|
+
kwargs["action"] = "DescribeErrorLog"
|
|
111
|
+
kwargs["params"] = request._serialize()
|
|
112
|
+
kwargs["resp_cls"] = models.DescribeErrorLogResponse
|
|
113
|
+
kwargs["headers"] = request.headers
|
|
114
|
+
kwargs["opts"] = opts or {}
|
|
115
|
+
|
|
116
|
+
return await self.call_and_deserialize(**kwargs)
|
|
117
|
+
|
|
118
|
+
async def DescribeInstance(
|
|
119
|
+
self,
|
|
120
|
+
request: models.DescribeInstanceRequest,
|
|
121
|
+
opts: Dict = None,
|
|
122
|
+
) -> models.DescribeInstanceResponse:
|
|
123
|
+
"""
|
|
124
|
+
根据实例ID查询某个实例的具体信息
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
kwargs = {}
|
|
128
|
+
kwargs["action"] = "DescribeInstance"
|
|
129
|
+
kwargs["params"] = request._serialize()
|
|
130
|
+
kwargs["resp_cls"] = models.DescribeInstanceResponse
|
|
131
|
+
kwargs["headers"] = request.headers
|
|
132
|
+
kwargs["opts"] = opts or {}
|
|
133
|
+
|
|
134
|
+
return await self.call_and_deserialize(**kwargs)
|
|
135
|
+
|
|
136
|
+
async def DescribeInstanceInfo(
|
|
137
|
+
self,
|
|
138
|
+
request: models.DescribeInstanceInfoRequest,
|
|
139
|
+
opts: Dict = None,
|
|
140
|
+
) -> models.DescribeInstanceInfoResponse:
|
|
141
|
+
"""
|
|
142
|
+
获取集群信息
|
|
143
|
+
"""
|
|
144
|
+
|
|
145
|
+
kwargs = {}
|
|
146
|
+
kwargs["action"] = "DescribeInstanceInfo"
|
|
147
|
+
kwargs["params"] = request._serialize()
|
|
148
|
+
kwargs["resp_cls"] = models.DescribeInstanceInfoResponse
|
|
149
|
+
kwargs["headers"] = request.headers
|
|
150
|
+
kwargs["opts"] = opts or {}
|
|
151
|
+
|
|
152
|
+
return await self.call_and_deserialize(**kwargs)
|
|
153
|
+
|
|
154
|
+
async def DescribeInstanceNodes(
|
|
155
|
+
self,
|
|
156
|
+
request: models.DescribeInstanceNodesRequest,
|
|
157
|
+
opts: Dict = None,
|
|
158
|
+
) -> models.DescribeInstanceNodesResponse:
|
|
159
|
+
"""
|
|
160
|
+
节点list
|
|
161
|
+
"""
|
|
162
|
+
|
|
163
|
+
kwargs = {}
|
|
164
|
+
kwargs["action"] = "DescribeInstanceNodes"
|
|
165
|
+
kwargs["params"] = request._serialize()
|
|
166
|
+
kwargs["resp_cls"] = models.DescribeInstanceNodesResponse
|
|
167
|
+
kwargs["headers"] = request.headers
|
|
168
|
+
kwargs["opts"] = opts or {}
|
|
169
|
+
|
|
170
|
+
return await self.call_and_deserialize(**kwargs)
|
|
171
|
+
|
|
172
|
+
async def DescribeInstanceOperations(
|
|
173
|
+
self,
|
|
174
|
+
request: models.DescribeInstanceOperationsRequest,
|
|
175
|
+
opts: Dict = None,
|
|
176
|
+
) -> models.DescribeInstanceOperationsResponse:
|
|
177
|
+
"""
|
|
178
|
+
在集群详情页面,拉取该集群的操作
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
kwargs = {}
|
|
182
|
+
kwargs["action"] = "DescribeInstanceOperations"
|
|
183
|
+
kwargs["params"] = request._serialize()
|
|
184
|
+
kwargs["resp_cls"] = models.DescribeInstanceOperationsResponse
|
|
185
|
+
kwargs["headers"] = request.headers
|
|
186
|
+
kwargs["opts"] = opts or {}
|
|
187
|
+
|
|
188
|
+
return await self.call_and_deserialize(**kwargs)
|
|
189
|
+
|
|
190
|
+
async def DescribeInstanceState(
|
|
191
|
+
self,
|
|
192
|
+
request: models.DescribeInstanceStateRequest,
|
|
193
|
+
opts: Dict = None,
|
|
194
|
+
) -> models.DescribeInstanceStateResponse:
|
|
195
|
+
"""
|
|
196
|
+
集群详情页中显示集群状态、流程进度等
|
|
197
|
+
"""
|
|
198
|
+
|
|
199
|
+
kwargs = {}
|
|
200
|
+
kwargs["action"] = "DescribeInstanceState"
|
|
201
|
+
kwargs["params"] = request._serialize()
|
|
202
|
+
kwargs["resp_cls"] = models.DescribeInstanceStateResponse
|
|
203
|
+
kwargs["headers"] = request.headers
|
|
204
|
+
kwargs["opts"] = opts or {}
|
|
205
|
+
|
|
206
|
+
return await self.call_and_deserialize(**kwargs)
|
|
207
|
+
|
|
208
|
+
async def DescribeInstances(
|
|
209
|
+
self,
|
|
210
|
+
request: models.DescribeInstancesRequest,
|
|
211
|
+
opts: Dict = None,
|
|
212
|
+
) -> models.DescribeInstancesResponse:
|
|
213
|
+
"""
|
|
214
|
+
获取云原生实例列表
|
|
215
|
+
"""
|
|
216
|
+
|
|
217
|
+
kwargs = {}
|
|
218
|
+
kwargs["action"] = "DescribeInstances"
|
|
219
|
+
kwargs["params"] = request._serialize()
|
|
220
|
+
kwargs["resp_cls"] = models.DescribeInstancesResponse
|
|
221
|
+
kwargs["headers"] = request.headers
|
|
222
|
+
kwargs["opts"] = opts or {}
|
|
223
|
+
|
|
224
|
+
return await self.call_and_deserialize(**kwargs)
|
|
225
|
+
|
|
226
|
+
async def DescribeSimpleInstances(
|
|
227
|
+
self,
|
|
228
|
+
request: models.DescribeSimpleInstancesRequest,
|
|
229
|
+
opts: Dict = None,
|
|
230
|
+
) -> models.DescribeSimpleInstancesResponse:
|
|
231
|
+
"""
|
|
232
|
+
获取集群实例列表
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
kwargs = {}
|
|
236
|
+
kwargs["action"] = "DescribeSimpleInstances"
|
|
237
|
+
kwargs["params"] = request._serialize()
|
|
238
|
+
kwargs["resp_cls"] = models.DescribeSimpleInstancesResponse
|
|
239
|
+
kwargs["headers"] = request.headers
|
|
240
|
+
kwargs["opts"] = opts or {}
|
|
241
|
+
|
|
242
|
+
return await self.call_and_deserialize(**kwargs)
|
|
243
|
+
|
|
244
|
+
async def DescribeSlowLog(
|
|
245
|
+
self,
|
|
246
|
+
request: models.DescribeSlowLogRequest,
|
|
247
|
+
opts: Dict = None,
|
|
248
|
+
) -> models.DescribeSlowLogResponse:
|
|
249
|
+
"""
|
|
250
|
+
查询慢SQL日志
|
|
251
|
+
"""
|
|
252
|
+
|
|
253
|
+
kwargs = {}
|
|
254
|
+
kwargs["action"] = "DescribeSlowLog"
|
|
255
|
+
kwargs["params"] = request._serialize()
|
|
256
|
+
kwargs["resp_cls"] = models.DescribeSlowLogResponse
|
|
257
|
+
kwargs["headers"] = request.headers
|
|
258
|
+
kwargs["opts"] = opts or {}
|
|
259
|
+
|
|
260
|
+
return await self.call_and_deserialize(**kwargs)
|
|
261
|
+
|
|
262
|
+
async def DescribeUpgradeList(
|
|
263
|
+
self,
|
|
264
|
+
request: models.DescribeUpgradeListRequest,
|
|
265
|
+
opts: Dict = None,
|
|
266
|
+
) -> models.DescribeUpgradeListResponse:
|
|
267
|
+
"""
|
|
268
|
+
升级记录
|
|
269
|
+
"""
|
|
270
|
+
|
|
271
|
+
kwargs = {}
|
|
272
|
+
kwargs["action"] = "DescribeUpgradeList"
|
|
273
|
+
kwargs["params"] = request._serialize()
|
|
274
|
+
kwargs["resp_cls"] = models.DescribeUpgradeListResponse
|
|
275
|
+
kwargs["headers"] = request.headers
|
|
276
|
+
kwargs["opts"] = opts or {}
|
|
277
|
+
|
|
278
|
+
return await self.call_and_deserialize(**kwargs)
|
|
279
|
+
|
|
280
|
+
async def DescribeUserHbaConfig(
|
|
281
|
+
self,
|
|
282
|
+
request: models.DescribeUserHbaConfigRequest,
|
|
283
|
+
opts: Dict = None,
|
|
284
|
+
) -> models.DescribeUserHbaConfigResponse:
|
|
285
|
+
"""
|
|
286
|
+
user_hba
|
|
287
|
+
"""
|
|
288
|
+
|
|
289
|
+
kwargs = {}
|
|
290
|
+
kwargs["action"] = "DescribeUserHbaConfig"
|
|
291
|
+
kwargs["params"] = request._serialize()
|
|
292
|
+
kwargs["resp_cls"] = models.DescribeUserHbaConfigResponse
|
|
293
|
+
kwargs["headers"] = request.headers
|
|
294
|
+
kwargs["opts"] = opts or {}
|
|
295
|
+
|
|
296
|
+
return await self.call_and_deserialize(**kwargs)
|
|
297
|
+
|
|
298
|
+
async def DestroyInstanceByApi(
|
|
299
|
+
self,
|
|
300
|
+
request: models.DestroyInstanceByApiRequest,
|
|
301
|
+
opts: Dict = None,
|
|
302
|
+
) -> models.DestroyInstanceByApiResponse:
|
|
303
|
+
"""
|
|
304
|
+
销毁集群
|
|
305
|
+
"""
|
|
306
|
+
|
|
307
|
+
kwargs = {}
|
|
308
|
+
kwargs["action"] = "DestroyInstanceByApi"
|
|
309
|
+
kwargs["params"] = request._serialize()
|
|
310
|
+
kwargs["resp_cls"] = models.DestroyInstanceByApiResponse
|
|
311
|
+
kwargs["headers"] = request.headers
|
|
312
|
+
kwargs["opts"] = opts or {}
|
|
313
|
+
|
|
314
|
+
return await self.call_and_deserialize(**kwargs)
|
|
315
|
+
|
|
316
|
+
async def ModifyDBParameters(
|
|
317
|
+
self,
|
|
318
|
+
request: models.ModifyDBParametersRequest,
|
|
319
|
+
opts: Dict = None,
|
|
320
|
+
) -> models.ModifyDBParametersResponse:
|
|
321
|
+
"""
|
|
322
|
+
集群配置下发
|
|
323
|
+
"""
|
|
324
|
+
|
|
325
|
+
kwargs = {}
|
|
326
|
+
kwargs["action"] = "ModifyDBParameters"
|
|
327
|
+
kwargs["params"] = request._serialize()
|
|
328
|
+
kwargs["resp_cls"] = models.ModifyDBParametersResponse
|
|
329
|
+
kwargs["headers"] = request.headers
|
|
330
|
+
kwargs["opts"] = opts or {}
|
|
331
|
+
|
|
332
|
+
return await self.call_and_deserialize(**kwargs)
|
|
333
|
+
|
|
334
|
+
async def ModifyInstance(
|
|
335
|
+
self,
|
|
336
|
+
request: models.ModifyInstanceRequest,
|
|
337
|
+
opts: Dict = None,
|
|
338
|
+
) -> models.ModifyInstanceResponse:
|
|
339
|
+
"""
|
|
340
|
+
修改实例信息,目前为实例名称
|
|
341
|
+
"""
|
|
342
|
+
|
|
343
|
+
kwargs = {}
|
|
344
|
+
kwargs["action"] = "ModifyInstance"
|
|
345
|
+
kwargs["params"] = request._serialize()
|
|
346
|
+
kwargs["resp_cls"] = models.ModifyInstanceResponse
|
|
347
|
+
kwargs["headers"] = request.headers
|
|
348
|
+
kwargs["opts"] = opts or {}
|
|
349
|
+
|
|
350
|
+
return await self.call_and_deserialize(**kwargs)
|
|
351
|
+
|
|
352
|
+
async def ModifyUserHba(
|
|
353
|
+
self,
|
|
354
|
+
request: models.ModifyUserHbaRequest,
|
|
355
|
+
opts: Dict = None,
|
|
356
|
+
) -> models.ModifyUserHbaResponse:
|
|
357
|
+
"""
|
|
358
|
+
修改用户Hba配置
|
|
359
|
+
"""
|
|
360
|
+
|
|
361
|
+
kwargs = {}
|
|
362
|
+
kwargs["action"] = "ModifyUserHba"
|
|
363
|
+
kwargs["params"] = request._serialize()
|
|
364
|
+
kwargs["resp_cls"] = models.ModifyUserHbaResponse
|
|
365
|
+
kwargs["headers"] = request.headers
|
|
366
|
+
kwargs["opts"] = opts or {}
|
|
367
|
+
|
|
368
|
+
return await self.call_and_deserialize(**kwargs)
|
|
369
|
+
|
|
370
|
+
async def ResetAccountPassword(
|
|
371
|
+
self,
|
|
372
|
+
request: models.ResetAccountPasswordRequest,
|
|
373
|
+
opts: Dict = None,
|
|
374
|
+
) -> models.ResetAccountPasswordResponse:
|
|
375
|
+
"""
|
|
376
|
+
修改账号密码
|
|
377
|
+
"""
|
|
378
|
+
|
|
379
|
+
kwargs = {}
|
|
380
|
+
kwargs["action"] = "ResetAccountPassword"
|
|
381
|
+
kwargs["params"] = request._serialize()
|
|
382
|
+
kwargs["resp_cls"] = models.ResetAccountPasswordResponse
|
|
383
|
+
kwargs["headers"] = request.headers
|
|
384
|
+
kwargs["opts"] = opts or {}
|
|
385
|
+
|
|
386
|
+
return await self.call_and_deserialize(**kwargs)
|
|
387
|
+
|
|
388
|
+
async def RestartInstance(
|
|
389
|
+
self,
|
|
390
|
+
request: models.RestartInstanceRequest,
|
|
391
|
+
opts: Dict = None,
|
|
392
|
+
) -> models.RestartInstanceResponse:
|
|
393
|
+
"""
|
|
394
|
+
用户在控制台主动发起重启实例
|
|
395
|
+
"""
|
|
396
|
+
|
|
397
|
+
kwargs = {}
|
|
398
|
+
kwargs["action"] = "RestartInstance"
|
|
399
|
+
kwargs["params"] = request._serialize()
|
|
400
|
+
kwargs["resp_cls"] = models.RestartInstanceResponse
|
|
401
|
+
kwargs["headers"] = request.headers
|
|
402
|
+
kwargs["opts"] = opts or {}
|
|
403
|
+
|
|
404
|
+
return await self.call_and_deserialize(**kwargs)
|
|
405
|
+
|
|
406
|
+
async def ScaleOutInstance(
|
|
407
|
+
self,
|
|
408
|
+
request: models.ScaleOutInstanceRequest,
|
|
409
|
+
opts: Dict = None,
|
|
410
|
+
) -> models.ScaleOutInstanceResponse:
|
|
411
|
+
"""
|
|
412
|
+
水平扩容
|
|
413
|
+
"""
|
|
414
|
+
|
|
415
|
+
kwargs = {}
|
|
416
|
+
kwargs["action"] = "ScaleOutInstance"
|
|
417
|
+
kwargs["params"] = request._serialize()
|
|
418
|
+
kwargs["resp_cls"] = models.ScaleOutInstanceResponse
|
|
419
|
+
kwargs["headers"] = request.headers
|
|
420
|
+
kwargs["opts"] = opts or {}
|
|
421
|
+
|
|
422
|
+
return await self.call_and_deserialize(**kwargs)
|
|
423
|
+
|
|
424
|
+
async def ScaleUpInstance(
|
|
425
|
+
self,
|
|
426
|
+
request: models.ScaleUpInstanceRequest,
|
|
427
|
+
opts: Dict = None,
|
|
428
|
+
) -> models.ScaleUpInstanceResponse:
|
|
429
|
+
"""
|
|
430
|
+
控制台垂直变配集群
|
|
431
|
+
"""
|
|
432
|
+
|
|
433
|
+
kwargs = {}
|
|
434
|
+
kwargs["action"] = "ScaleUpInstance"
|
|
435
|
+
kwargs["params"] = request._serialize()
|
|
436
|
+
kwargs["resp_cls"] = models.ScaleUpInstanceResponse
|
|
437
|
+
kwargs["headers"] = request.headers
|
|
438
|
+
kwargs["opts"] = opts or {}
|
|
439
|
+
|
|
440
|
+
return await self.call_and_deserialize(**kwargs)
|
|
441
|
+
|
|
442
|
+
async def UpgradeInstance(
|
|
443
|
+
self,
|
|
444
|
+
request: models.UpgradeInstanceRequest,
|
|
445
|
+
opts: Dict = None,
|
|
446
|
+
) -> models.UpgradeInstanceResponse:
|
|
447
|
+
"""
|
|
448
|
+
在线升级
|
|
449
|
+
"""
|
|
450
|
+
|
|
451
|
+
kwargs = {}
|
|
452
|
+
kwargs["action"] = "UpgradeInstance"
|
|
453
|
+
kwargs["params"] = request._serialize()
|
|
454
|
+
kwargs["resp_cls"] = models.UpgradeInstanceResponse
|
|
455
|
+
kwargs["headers"] = request.headers
|
|
456
|
+
kwargs["opts"] = opts or {}
|
|
457
|
+
|
|
458
|
+
return await self.call_and_deserialize(**kwargs)
|
|
@@ -14,8 +14,14 @@
|
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
|
|
16
16
|
|
|
17
|
+
# 操作失败。
|
|
18
|
+
FAILEDOPERATION = 'FailedOperation'
|
|
19
|
+
|
|
17
20
|
# 内部错误。
|
|
18
21
|
INTERNALERROR = 'InternalError'
|
|
19
22
|
|
|
20
23
|
# InternalError.SystemError
|
|
21
24
|
INTERNALERROR_SYSTEMERROR = 'InternalError.SystemError'
|
|
25
|
+
|
|
26
|
+
# 参数错误。
|
|
27
|
+
INVALIDPARAMETER = 'InvalidParameter'
|
|
@@ -1811,11 +1811,14 @@ class DescribeInstanceOperationsResponse(AbstractModel):
|
|
|
1811
1811
|
:param _Operations: 操作记录具体数据
|
|
1812
1812
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1813
1813
|
:type Operations: list of InstanceOperation
|
|
1814
|
+
:param _ErrorMsg: 错误信息
|
|
1815
|
+
:type ErrorMsg: str
|
|
1814
1816
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1815
1817
|
:type RequestId: str
|
|
1816
1818
|
"""
|
|
1817
1819
|
self._TotalCount = None
|
|
1818
1820
|
self._Operations = None
|
|
1821
|
+
self._ErrorMsg = None
|
|
1819
1822
|
self._RequestId = None
|
|
1820
1823
|
|
|
1821
1824
|
@property
|
|
@@ -1841,6 +1844,17 @@ class DescribeInstanceOperationsResponse(AbstractModel):
|
|
|
1841
1844
|
def Operations(self, Operations):
|
|
1842
1845
|
self._Operations = Operations
|
|
1843
1846
|
|
|
1847
|
+
@property
|
|
1848
|
+
def ErrorMsg(self):
|
|
1849
|
+
r"""错误信息
|
|
1850
|
+
:rtype: str
|
|
1851
|
+
"""
|
|
1852
|
+
return self._ErrorMsg
|
|
1853
|
+
|
|
1854
|
+
@ErrorMsg.setter
|
|
1855
|
+
def ErrorMsg(self, ErrorMsg):
|
|
1856
|
+
self._ErrorMsg = ErrorMsg
|
|
1857
|
+
|
|
1844
1858
|
@property
|
|
1845
1859
|
def RequestId(self):
|
|
1846
1860
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -1861,6 +1875,7 @@ class DescribeInstanceOperationsResponse(AbstractModel):
|
|
|
1861
1875
|
obj = InstanceOperation()
|
|
1862
1876
|
obj._deserialize(item)
|
|
1863
1877
|
self._Operations.append(obj)
|
|
1878
|
+
self._ErrorMsg = params.get("ErrorMsg")
|
|
1864
1879
|
self._RequestId = params.get("RequestId")
|
|
1865
1880
|
|
|
1866
1881
|
|
|
@@ -1909,10 +1924,13 @@ class DescribeInstanceResponse(AbstractModel):
|
|
|
1909
1924
|
r"""
|
|
1910
1925
|
:param _InstanceInfo: 实例描述信息
|
|
1911
1926
|
:type InstanceInfo: :class:`tencentcloud.cdwpg.v20201230.models.InstanceInfo`
|
|
1927
|
+
:param _ErrorMsg: 错误信息
|
|
1928
|
+
:type ErrorMsg: str
|
|
1912
1929
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1913
1930
|
:type RequestId: str
|
|
1914
1931
|
"""
|
|
1915
1932
|
self._InstanceInfo = None
|
|
1933
|
+
self._ErrorMsg = None
|
|
1916
1934
|
self._RequestId = None
|
|
1917
1935
|
|
|
1918
1936
|
@property
|
|
@@ -1926,6 +1944,17 @@ class DescribeInstanceResponse(AbstractModel):
|
|
|
1926
1944
|
def InstanceInfo(self, InstanceInfo):
|
|
1927
1945
|
self._InstanceInfo = InstanceInfo
|
|
1928
1946
|
|
|
1947
|
+
@property
|
|
1948
|
+
def ErrorMsg(self):
|
|
1949
|
+
r"""错误信息
|
|
1950
|
+
:rtype: str
|
|
1951
|
+
"""
|
|
1952
|
+
return self._ErrorMsg
|
|
1953
|
+
|
|
1954
|
+
@ErrorMsg.setter
|
|
1955
|
+
def ErrorMsg(self, ErrorMsg):
|
|
1956
|
+
self._ErrorMsg = ErrorMsg
|
|
1957
|
+
|
|
1929
1958
|
@property
|
|
1930
1959
|
def RequestId(self):
|
|
1931
1960
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -1942,6 +1971,7 @@ class DescribeInstanceResponse(AbstractModel):
|
|
|
1942
1971
|
if params.get("InstanceInfo") is not None:
|
|
1943
1972
|
self._InstanceInfo = InstanceInfo()
|
|
1944
1973
|
self._InstanceInfo._deserialize(params.get("InstanceInfo"))
|
|
1974
|
+
self._ErrorMsg = params.get("ErrorMsg")
|
|
1945
1975
|
self._RequestId = params.get("RequestId")
|
|
1946
1976
|
|
|
1947
1977
|
|
|
@@ -2004,6 +2034,8 @@ class DescribeInstanceStateResponse(AbstractModel):
|
|
|
2004
2034
|
:type ProcessName: str
|
|
2005
2035
|
:param _BackupStatus: 集群备份任务开启状态
|
|
2006
2036
|
:type BackupStatus: int
|
|
2037
|
+
:param _BackupOpenStatus: 集群备份任务开启状态2
|
|
2038
|
+
:type BackupOpenStatus: int
|
|
2007
2039
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2008
2040
|
:type RequestId: str
|
|
2009
2041
|
"""
|
|
@@ -2015,6 +2047,7 @@ class DescribeInstanceStateResponse(AbstractModel):
|
|
|
2015
2047
|
self._FlowMsg = None
|
|
2016
2048
|
self._ProcessName = None
|
|
2017
2049
|
self._BackupStatus = None
|
|
2050
|
+
self._BackupOpenStatus = None
|
|
2018
2051
|
self._RequestId = None
|
|
2019
2052
|
|
|
2020
2053
|
@property
|
|
@@ -2105,6 +2138,17 @@ class DescribeInstanceStateResponse(AbstractModel):
|
|
|
2105
2138
|
def BackupStatus(self, BackupStatus):
|
|
2106
2139
|
self._BackupStatus = BackupStatus
|
|
2107
2140
|
|
|
2141
|
+
@property
|
|
2142
|
+
def BackupOpenStatus(self):
|
|
2143
|
+
r"""集群备份任务开启状态2
|
|
2144
|
+
:rtype: int
|
|
2145
|
+
"""
|
|
2146
|
+
return self._BackupOpenStatus
|
|
2147
|
+
|
|
2148
|
+
@BackupOpenStatus.setter
|
|
2149
|
+
def BackupOpenStatus(self, BackupOpenStatus):
|
|
2150
|
+
self._BackupOpenStatus = BackupOpenStatus
|
|
2151
|
+
|
|
2108
2152
|
@property
|
|
2109
2153
|
def RequestId(self):
|
|
2110
2154
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -2126,6 +2170,7 @@ class DescribeInstanceStateResponse(AbstractModel):
|
|
|
2126
2170
|
self._FlowMsg = params.get("FlowMsg")
|
|
2127
2171
|
self._ProcessName = params.get("ProcessName")
|
|
2128
2172
|
self._BackupStatus = params.get("BackupStatus")
|
|
2173
|
+
self._BackupOpenStatus = params.get("BackupOpenStatus")
|
|
2129
2174
|
self._RequestId = params.get("RequestId")
|
|
2130
2175
|
|
|
2131
2176
|
|
|
@@ -2808,11 +2853,14 @@ class DescribeUpgradeListResponse(AbstractModel):
|
|
|
2808
2853
|
:type UpgradeItems: list of UpgradeItem
|
|
2809
2854
|
:param _TotalCount: 升级记录总数
|
|
2810
2855
|
:type TotalCount: str
|
|
2856
|
+
:param _ErrorMsg: 错误信息
|
|
2857
|
+
:type ErrorMsg: str
|
|
2811
2858
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2812
2859
|
:type RequestId: str
|
|
2813
2860
|
"""
|
|
2814
2861
|
self._UpgradeItems = None
|
|
2815
2862
|
self._TotalCount = None
|
|
2863
|
+
self._ErrorMsg = None
|
|
2816
2864
|
self._RequestId = None
|
|
2817
2865
|
|
|
2818
2866
|
@property
|
|
@@ -2838,6 +2886,17 @@ class DescribeUpgradeListResponse(AbstractModel):
|
|
|
2838
2886
|
def TotalCount(self, TotalCount):
|
|
2839
2887
|
self._TotalCount = TotalCount
|
|
2840
2888
|
|
|
2889
|
+
@property
|
|
2890
|
+
def ErrorMsg(self):
|
|
2891
|
+
r"""错误信息
|
|
2892
|
+
:rtype: str
|
|
2893
|
+
"""
|
|
2894
|
+
return self._ErrorMsg
|
|
2895
|
+
|
|
2896
|
+
@ErrorMsg.setter
|
|
2897
|
+
def ErrorMsg(self, ErrorMsg):
|
|
2898
|
+
self._ErrorMsg = ErrorMsg
|
|
2899
|
+
|
|
2841
2900
|
@property
|
|
2842
2901
|
def RequestId(self):
|
|
2843
2902
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -2858,6 +2917,7 @@ class DescribeUpgradeListResponse(AbstractModel):
|
|
|
2858
2917
|
obj._deserialize(item)
|
|
2859
2918
|
self._UpgradeItems.append(obj)
|
|
2860
2919
|
self._TotalCount = params.get("TotalCount")
|
|
2920
|
+
self._ErrorMsg = params.get("ErrorMsg")
|
|
2861
2921
|
self._RequestId = params.get("RequestId")
|
|
2862
2922
|
|
|
2863
2923
|
|
|
@@ -3417,6 +3477,16 @@ class InstanceInfo(AbstractModel):
|
|
|
3417
3477
|
:type InstanceId: str
|
|
3418
3478
|
:param _AccessDetails: 访问信息
|
|
3419
3479
|
:type AccessDetails: list of AccessInfo
|
|
3480
|
+
:param _IsAz: 集群是否跨az,为0不跨az;为1跨az
|
|
3481
|
+
:type IsAz: int
|
|
3482
|
+
:param _SecondaryZone: 备可用区
|
|
3483
|
+
:type SecondaryZone: str
|
|
3484
|
+
:param _SecondarySubnet: 备子网
|
|
3485
|
+
:type SecondarySubnet: str
|
|
3486
|
+
:param _AccessInfo: 访问信息
|
|
3487
|
+
:type AccessInfo: str
|
|
3488
|
+
:param _GTMNodes: GTM节点信息
|
|
3489
|
+
:type GTMNodes: list of InstanceNodeGroup
|
|
3420
3490
|
"""
|
|
3421
3491
|
self._ID = None
|
|
3422
3492
|
self._InstanceType = None
|
|
@@ -3444,6 +3514,11 @@ class InstanceInfo(AbstractModel):
|
|
|
3444
3514
|
self._RenewFlag = None
|
|
3445
3515
|
self._InstanceId = None
|
|
3446
3516
|
self._AccessDetails = None
|
|
3517
|
+
self._IsAz = None
|
|
3518
|
+
self._SecondaryZone = None
|
|
3519
|
+
self._SecondarySubnet = None
|
|
3520
|
+
self._AccessInfo = None
|
|
3521
|
+
self._GTMNodes = None
|
|
3447
3522
|
|
|
3448
3523
|
@property
|
|
3449
3524
|
def ID(self):
|
|
@@ -3732,6 +3807,61 @@ class InstanceInfo(AbstractModel):
|
|
|
3732
3807
|
def AccessDetails(self, AccessDetails):
|
|
3733
3808
|
self._AccessDetails = AccessDetails
|
|
3734
3809
|
|
|
3810
|
+
@property
|
|
3811
|
+
def IsAz(self):
|
|
3812
|
+
r"""集群是否跨az,为0不跨az;为1跨az
|
|
3813
|
+
:rtype: int
|
|
3814
|
+
"""
|
|
3815
|
+
return self._IsAz
|
|
3816
|
+
|
|
3817
|
+
@IsAz.setter
|
|
3818
|
+
def IsAz(self, IsAz):
|
|
3819
|
+
self._IsAz = IsAz
|
|
3820
|
+
|
|
3821
|
+
@property
|
|
3822
|
+
def SecondaryZone(self):
|
|
3823
|
+
r"""备可用区
|
|
3824
|
+
:rtype: str
|
|
3825
|
+
"""
|
|
3826
|
+
return self._SecondaryZone
|
|
3827
|
+
|
|
3828
|
+
@SecondaryZone.setter
|
|
3829
|
+
def SecondaryZone(self, SecondaryZone):
|
|
3830
|
+
self._SecondaryZone = SecondaryZone
|
|
3831
|
+
|
|
3832
|
+
@property
|
|
3833
|
+
def SecondarySubnet(self):
|
|
3834
|
+
r"""备子网
|
|
3835
|
+
:rtype: str
|
|
3836
|
+
"""
|
|
3837
|
+
return self._SecondarySubnet
|
|
3838
|
+
|
|
3839
|
+
@SecondarySubnet.setter
|
|
3840
|
+
def SecondarySubnet(self, SecondarySubnet):
|
|
3841
|
+
self._SecondarySubnet = SecondarySubnet
|
|
3842
|
+
|
|
3843
|
+
@property
|
|
3844
|
+
def AccessInfo(self):
|
|
3845
|
+
r"""访问信息
|
|
3846
|
+
:rtype: str
|
|
3847
|
+
"""
|
|
3848
|
+
return self._AccessInfo
|
|
3849
|
+
|
|
3850
|
+
@AccessInfo.setter
|
|
3851
|
+
def AccessInfo(self, AccessInfo):
|
|
3852
|
+
self._AccessInfo = AccessInfo
|
|
3853
|
+
|
|
3854
|
+
@property
|
|
3855
|
+
def GTMNodes(self):
|
|
3856
|
+
r"""GTM节点信息
|
|
3857
|
+
:rtype: list of InstanceNodeGroup
|
|
3858
|
+
"""
|
|
3859
|
+
return self._GTMNodes
|
|
3860
|
+
|
|
3861
|
+
@GTMNodes.setter
|
|
3862
|
+
def GTMNodes(self, GTMNodes):
|
|
3863
|
+
self._GTMNodes = GTMNodes
|
|
3864
|
+
|
|
3735
3865
|
|
|
3736
3866
|
def _deserialize(self, params):
|
|
3737
3867
|
self._ID = params.get("ID")
|
|
@@ -3782,6 +3912,16 @@ class InstanceInfo(AbstractModel):
|
|
|
3782
3912
|
obj = AccessInfo()
|
|
3783
3913
|
obj._deserialize(item)
|
|
3784
3914
|
self._AccessDetails.append(obj)
|
|
3915
|
+
self._IsAz = params.get("IsAz")
|
|
3916
|
+
self._SecondaryZone = params.get("SecondaryZone")
|
|
3917
|
+
self._SecondarySubnet = params.get("SecondarySubnet")
|
|
3918
|
+
self._AccessInfo = params.get("AccessInfo")
|
|
3919
|
+
if params.get("GTMNodes") is not None:
|
|
3920
|
+
self._GTMNodes = []
|
|
3921
|
+
for item in params.get("GTMNodes"):
|
|
3922
|
+
obj = InstanceNodeGroup()
|
|
3923
|
+
obj._deserialize(item)
|
|
3924
|
+
self._GTMNodes.append(obj)
|
|
3785
3925
|
memeber_set = set(params.keys())
|
|
3786
3926
|
for name, value in vars(self).items():
|
|
3787
3927
|
property_name = name[1:]
|
|
@@ -3805,10 +3945,43 @@ class InstanceNode(AbstractModel):
|
|
|
3805
3945
|
:type NodeType: str
|
|
3806
3946
|
:param _NodeIp: ip
|
|
3807
3947
|
:type NodeIp: str
|
|
3948
|
+
:param _PrivateNetworkIp: 私有ip
|
|
3949
|
+
:type PrivateNetworkIp: str
|
|
3950
|
+
:param _NodeRole: 节点角色
|
|
3951
|
+
:type NodeRole: str
|
|
3952
|
+
:param _NodeName: 节点名称
|
|
3953
|
+
:type NodeName: str
|
|
3954
|
+
:param _SpecName: 规格名称
|
|
3955
|
+
:type SpecName: str
|
|
3956
|
+
:param _Cpu: cpu
|
|
3957
|
+
:type Cpu: int
|
|
3958
|
+
:param _Memory: 内存
|
|
3959
|
+
:type Memory: int
|
|
3960
|
+
:param _DataDiskCount: 数据盘数量
|
|
3961
|
+
:type DataDiskCount: int
|
|
3962
|
+
:param _DataDiskSize: 数据盘大小
|
|
3963
|
+
:type DataDiskSize: int
|
|
3964
|
+
:param _DataDiskType: 数据盘类型
|
|
3965
|
+
:type DataDiskType: str
|
|
3966
|
+
:param _UUID: 唯一uuid
|
|
3967
|
+
:type UUID: str
|
|
3968
|
+
:param _Zone: 区域
|
|
3969
|
+
:type Zone: str
|
|
3808
3970
|
"""
|
|
3809
3971
|
self._NodeId = None
|
|
3810
3972
|
self._NodeType = None
|
|
3811
3973
|
self._NodeIp = None
|
|
3974
|
+
self._PrivateNetworkIp = None
|
|
3975
|
+
self._NodeRole = None
|
|
3976
|
+
self._NodeName = None
|
|
3977
|
+
self._SpecName = None
|
|
3978
|
+
self._Cpu = None
|
|
3979
|
+
self._Memory = None
|
|
3980
|
+
self._DataDiskCount = None
|
|
3981
|
+
self._DataDiskSize = None
|
|
3982
|
+
self._DataDiskType = None
|
|
3983
|
+
self._UUID = None
|
|
3984
|
+
self._Zone = None
|
|
3812
3985
|
|
|
3813
3986
|
@property
|
|
3814
3987
|
def NodeId(self):
|
|
@@ -3843,11 +4016,143 @@ class InstanceNode(AbstractModel):
|
|
|
3843
4016
|
def NodeIp(self, NodeIp):
|
|
3844
4017
|
self._NodeIp = NodeIp
|
|
3845
4018
|
|
|
4019
|
+
@property
|
|
4020
|
+
def PrivateNetworkIp(self):
|
|
4021
|
+
r"""私有ip
|
|
4022
|
+
:rtype: str
|
|
4023
|
+
"""
|
|
4024
|
+
return self._PrivateNetworkIp
|
|
4025
|
+
|
|
4026
|
+
@PrivateNetworkIp.setter
|
|
4027
|
+
def PrivateNetworkIp(self, PrivateNetworkIp):
|
|
4028
|
+
self._PrivateNetworkIp = PrivateNetworkIp
|
|
4029
|
+
|
|
4030
|
+
@property
|
|
4031
|
+
def NodeRole(self):
|
|
4032
|
+
r"""节点角色
|
|
4033
|
+
:rtype: str
|
|
4034
|
+
"""
|
|
4035
|
+
return self._NodeRole
|
|
4036
|
+
|
|
4037
|
+
@NodeRole.setter
|
|
4038
|
+
def NodeRole(self, NodeRole):
|
|
4039
|
+
self._NodeRole = NodeRole
|
|
4040
|
+
|
|
4041
|
+
@property
|
|
4042
|
+
def NodeName(self):
|
|
4043
|
+
r"""节点名称
|
|
4044
|
+
:rtype: str
|
|
4045
|
+
"""
|
|
4046
|
+
return self._NodeName
|
|
4047
|
+
|
|
4048
|
+
@NodeName.setter
|
|
4049
|
+
def NodeName(self, NodeName):
|
|
4050
|
+
self._NodeName = NodeName
|
|
4051
|
+
|
|
4052
|
+
@property
|
|
4053
|
+
def SpecName(self):
|
|
4054
|
+
r"""规格名称
|
|
4055
|
+
:rtype: str
|
|
4056
|
+
"""
|
|
4057
|
+
return self._SpecName
|
|
4058
|
+
|
|
4059
|
+
@SpecName.setter
|
|
4060
|
+
def SpecName(self, SpecName):
|
|
4061
|
+
self._SpecName = SpecName
|
|
4062
|
+
|
|
4063
|
+
@property
|
|
4064
|
+
def Cpu(self):
|
|
4065
|
+
r"""cpu
|
|
4066
|
+
:rtype: int
|
|
4067
|
+
"""
|
|
4068
|
+
return self._Cpu
|
|
4069
|
+
|
|
4070
|
+
@Cpu.setter
|
|
4071
|
+
def Cpu(self, Cpu):
|
|
4072
|
+
self._Cpu = Cpu
|
|
4073
|
+
|
|
4074
|
+
@property
|
|
4075
|
+
def Memory(self):
|
|
4076
|
+
r"""内存
|
|
4077
|
+
:rtype: int
|
|
4078
|
+
"""
|
|
4079
|
+
return self._Memory
|
|
4080
|
+
|
|
4081
|
+
@Memory.setter
|
|
4082
|
+
def Memory(self, Memory):
|
|
4083
|
+
self._Memory = Memory
|
|
4084
|
+
|
|
4085
|
+
@property
|
|
4086
|
+
def DataDiskCount(self):
|
|
4087
|
+
r"""数据盘数量
|
|
4088
|
+
:rtype: int
|
|
4089
|
+
"""
|
|
4090
|
+
return self._DataDiskCount
|
|
4091
|
+
|
|
4092
|
+
@DataDiskCount.setter
|
|
4093
|
+
def DataDiskCount(self, DataDiskCount):
|
|
4094
|
+
self._DataDiskCount = DataDiskCount
|
|
4095
|
+
|
|
4096
|
+
@property
|
|
4097
|
+
def DataDiskSize(self):
|
|
4098
|
+
r"""数据盘大小
|
|
4099
|
+
:rtype: int
|
|
4100
|
+
"""
|
|
4101
|
+
return self._DataDiskSize
|
|
4102
|
+
|
|
4103
|
+
@DataDiskSize.setter
|
|
4104
|
+
def DataDiskSize(self, DataDiskSize):
|
|
4105
|
+
self._DataDiskSize = DataDiskSize
|
|
4106
|
+
|
|
4107
|
+
@property
|
|
4108
|
+
def DataDiskType(self):
|
|
4109
|
+
r"""数据盘类型
|
|
4110
|
+
:rtype: str
|
|
4111
|
+
"""
|
|
4112
|
+
return self._DataDiskType
|
|
4113
|
+
|
|
4114
|
+
@DataDiskType.setter
|
|
4115
|
+
def DataDiskType(self, DataDiskType):
|
|
4116
|
+
self._DataDiskType = DataDiskType
|
|
4117
|
+
|
|
4118
|
+
@property
|
|
4119
|
+
def UUID(self):
|
|
4120
|
+
r"""唯一uuid
|
|
4121
|
+
:rtype: str
|
|
4122
|
+
"""
|
|
4123
|
+
return self._UUID
|
|
4124
|
+
|
|
4125
|
+
@UUID.setter
|
|
4126
|
+
def UUID(self, UUID):
|
|
4127
|
+
self._UUID = UUID
|
|
4128
|
+
|
|
4129
|
+
@property
|
|
4130
|
+
def Zone(self):
|
|
4131
|
+
r"""区域
|
|
4132
|
+
:rtype: str
|
|
4133
|
+
"""
|
|
4134
|
+
return self._Zone
|
|
4135
|
+
|
|
4136
|
+
@Zone.setter
|
|
4137
|
+
def Zone(self, Zone):
|
|
4138
|
+
self._Zone = Zone
|
|
4139
|
+
|
|
3846
4140
|
|
|
3847
4141
|
def _deserialize(self, params):
|
|
3848
4142
|
self._NodeId = params.get("NodeId")
|
|
3849
4143
|
self._NodeType = params.get("NodeType")
|
|
3850
4144
|
self._NodeIp = params.get("NodeIp")
|
|
4145
|
+
self._PrivateNetworkIp = params.get("PrivateNetworkIp")
|
|
4146
|
+
self._NodeRole = params.get("NodeRole")
|
|
4147
|
+
self._NodeName = params.get("NodeName")
|
|
4148
|
+
self._SpecName = params.get("SpecName")
|
|
4149
|
+
self._Cpu = params.get("Cpu")
|
|
4150
|
+
self._Memory = params.get("Memory")
|
|
4151
|
+
self._DataDiskCount = params.get("DataDiskCount")
|
|
4152
|
+
self._DataDiskSize = params.get("DataDiskSize")
|
|
4153
|
+
self._DataDiskType = params.get("DataDiskType")
|
|
4154
|
+
self._UUID = params.get("UUID")
|
|
4155
|
+
self._Zone = params.get("Zone")
|
|
3851
4156
|
memeber_set = set(params.keys())
|
|
3852
4157
|
for name, value in vars(self).items():
|
|
3853
4158
|
property_name = name[1:]
|
|
@@ -5176,6 +5481,8 @@ class ParamDetail(AbstractModel):
|
|
|
5176
5481
|
:type ShortDesc: str
|
|
5177
5482
|
:param _ParameterName: 参数名
|
|
5178
5483
|
:type ParameterName: str
|
|
5484
|
+
:param _LatestValue: 最新修改值
|
|
5485
|
+
:type LatestValue: str
|
|
5179
5486
|
"""
|
|
5180
5487
|
self._ParamName = None
|
|
5181
5488
|
self._DefaultValue = None
|
|
@@ -5185,6 +5492,7 @@ class ParamDetail(AbstractModel):
|
|
|
5185
5492
|
self._Unit = None
|
|
5186
5493
|
self._ShortDesc = None
|
|
5187
5494
|
self._ParameterName = None
|
|
5495
|
+
self._LatestValue = None
|
|
5188
5496
|
|
|
5189
5497
|
@property
|
|
5190
5498
|
def ParamName(self):
|
|
@@ -5274,6 +5582,17 @@ class ParamDetail(AbstractModel):
|
|
|
5274
5582
|
def ParameterName(self, ParameterName):
|
|
5275
5583
|
self._ParameterName = ParameterName
|
|
5276
5584
|
|
|
5585
|
+
@property
|
|
5586
|
+
def LatestValue(self):
|
|
5587
|
+
r"""最新修改值
|
|
5588
|
+
:rtype: str
|
|
5589
|
+
"""
|
|
5590
|
+
return self._LatestValue
|
|
5591
|
+
|
|
5592
|
+
@LatestValue.setter
|
|
5593
|
+
def LatestValue(self, LatestValue):
|
|
5594
|
+
self._LatestValue = LatestValue
|
|
5595
|
+
|
|
5277
5596
|
|
|
5278
5597
|
def _deserialize(self, params):
|
|
5279
5598
|
self._ParamName = params.get("ParamName")
|
|
@@ -5286,6 +5605,7 @@ class ParamDetail(AbstractModel):
|
|
|
5286
5605
|
self._Unit = params.get("Unit")
|
|
5287
5606
|
self._ShortDesc = params.get("ShortDesc")
|
|
5288
5607
|
self._ParameterName = params.get("ParameterName")
|
|
5608
|
+
self._LatestValue = params.get("LatestValue")
|
|
5289
5609
|
memeber_set = set(params.keys())
|
|
5290
5610
|
for name, value in vars(self).items():
|
|
5291
5611
|
property_name = name[1:]
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-cdwpg
|
|
3
|
+
Version: 3.1.44
|
|
4
|
+
Summary: Tencent Cloud Cdwpg 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.44
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Cdwpg 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-cdwpg
|
|
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 cdwpg
|
|
46
|
+
|
|
@@ -5,6 +5,7 @@ tencentcloud/__init__.py
|
|
|
5
5
|
tencentcloud/cdwpg/__init__.py
|
|
6
6
|
tencentcloud/cdwpg/v20201230/__init__.py
|
|
7
7
|
tencentcloud/cdwpg/v20201230/cdwpg_client.py
|
|
8
|
+
tencentcloud/cdwpg/v20201230/cdwpg_client_async.py
|
|
8
9
|
tencentcloud/cdwpg/v20201230/errorcodes.py
|
|
9
10
|
tencentcloud/cdwpg/v20201230/models.py
|
|
10
11
|
tencentcloud_sdk_python_cdwpg.egg-info/PKG-INFO
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.44
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.2
|
|
2
|
-
Name: tencentcloud-sdk-python-cdwpg
|
|
3
|
-
Version: 3.0.1469
|
|
4
|
-
Summary: Tencent Cloud Cdwpg 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 Cdwpg 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-cdwpg
|
|
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 cdwpg
|
|
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-cdwpg
|
|
3
|
-
Version: 3.0.1469
|
|
4
|
-
Summary: Tencent Cloud Cdwpg 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 Cdwpg 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-cdwpg
|
|
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 cdwpg
|
|
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.1469
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|