tencentcloud-sdk-python 3.0.1361__py2.py3-none-any.whl → 3.0.1363__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/batch/v20170312/models.py +12 -18
  3. tencentcloud/ccc/v20200210/ccc_client.py +23 -0
  4. tencentcloud/ccc/v20200210/errorcodes.py +3 -0
  5. tencentcloud/ccc/v20200210/models.py +91 -4
  6. tencentcloud/cdwch/v20200915/models.py +0 -12
  7. tencentcloud/cdwpg/v20201230/models.py +0 -136
  8. tencentcloud/cfw/v20190904/models.py +115 -12
  9. tencentcloud/chc/v20230418/models.py +15 -0
  10. tencentcloud/cme/v20191029/errorcodes.py +3 -0
  11. tencentcloud/common/abstract_client.py +29 -24
  12. tencentcloud/common/abstract_model.py +5 -1
  13. tencentcloud/common/common_client.py +14 -15
  14. tencentcloud/common/credential.py +68 -65
  15. tencentcloud/common/exception/tencent_cloud_sdk_exception.py +1 -1
  16. tencentcloud/common/profile/client_profile.py +32 -30
  17. tencentcloud/common/profile/http_profile.py +20 -12
  18. tencentcloud/common/retry.py +18 -0
  19. tencentcloud/cvm/v20170312/cvm_client.py +7 -1
  20. tencentcloud/cvm/v20170312/models.py +88 -68
  21. tencentcloud/cwp/v20180228/models.py +138 -12
  22. tencentcloud/cynosdb/v20190107/cynosdb_client.py +69 -0
  23. tencentcloud/cynosdb/v20190107/models.py +318 -0
  24. tencentcloud/dc/v20180410/models.py +2 -2
  25. tencentcloud/dlc/v20210125/models.py +0 -18
  26. tencentcloud/dts/v20211206/models.py +10 -6
  27. tencentcloud/es/v20250101/es_client.py +23 -0
  28. tencentcloud/es/v20250101/models.py +352 -1
  29. tencentcloud/ess/v20201111/models.py +15 -0
  30. tencentcloud/gaap/v20180529/gaap_client.py +1 -1
  31. tencentcloud/gaap/v20180529/models.py +2 -20
  32. tencentcloud/gs/v20191118/gs_client.py +46 -0
  33. tencentcloud/gs/v20191118/models.py +385 -8
  34. tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +69 -0
  35. tencentcloud/iotexplorer/v20190423/models.py +578 -0
  36. tencentcloud/lcic/v20220817/models.py +60 -0
  37. tencentcloud/lighthouse/v20200324/errorcodes.py +0 -6
  38. tencentcloud/lighthouse/v20200324/lighthouse_client.py +0 -56
  39. tencentcloud/lighthouse/v20200324/models.py +0 -158
  40. tencentcloud/lkeap/v20240522/models.py +2 -2
  41. tencentcloud/monitor/v20180724/models.py +169 -0
  42. tencentcloud/monitor/v20180724/monitor_client.py +23 -0
  43. tencentcloud/mps/v20190612/models.py +186 -35
  44. tencentcloud/oceanus/v20190422/models.py +2 -2
  45. tencentcloud/tcbr/v20220217/models.py +45 -0
  46. tencentcloud/tione/v20211111/models.py +91 -0
  47. tencentcloud/trocket/v20230308/models.py +141 -88
  48. tencentcloud/trocket/v20230308/trocket_client.py +2 -1
  49. tencentcloud/tts/v20190823/models.py +15 -15
  50. tencentcloud/tts/v20190823/tts_client.py +4 -3
  51. tencentcloud/vcube/v20220410/models.py +15 -0
  52. tencentcloud/vdb/v20230616/models.py +15 -0
  53. tencentcloud/vpc/v20170312/models.py +307 -78
  54. tencentcloud/vpc/v20170312/vpc_client.py +32 -4
  55. tencentcloud/vrs/v20200824/models.py +17 -0
  56. tencentcloud/waf/v20180125/errorcodes.py +9 -0
  57. tencentcloud/waf/v20180125/models.py +3041 -114
  58. tencentcloud/waf/v20180125/waf_client.py +138 -0
  59. tencentcloud/wedata/v20210820/models.py +55 -0
  60. {tencentcloud_sdk_python-3.0.1361.dist-info → tencentcloud_sdk_python-3.0.1363.dist-info}/METADATA +1 -1
  61. {tencentcloud_sdk_python-3.0.1361.dist-info → tencentcloud_sdk_python-3.0.1363.dist-info}/RECORD +64 -64
  62. {tencentcloud_sdk_python-3.0.1361.dist-info → tencentcloud_sdk_python-3.0.1363.dist-info}/LICENSE +0 -0
  63. {tencentcloud_sdk_python-3.0.1361.dist-info → tencentcloud_sdk_python-3.0.1363.dist-info}/WHEEL +0 -0
  64. {tencentcloud_sdk_python-3.0.1361.dist-info → tencentcloud_sdk_python-3.0.1363.dist-info}/top_level.txt +0 -0
@@ -35,20 +35,20 @@ from tencentcloud.common.profile.client_profile import ClientProfile
35
35
 
36
36
 
37
37
  class Credential(object):
38
+ """Tencent Cloud Credentials.
39
+
40
+ Access https://console.cloud.tencent.com/cam/capi to manage your credentials.
41
+
42
+ :param secret_id: The secret id of your credential.
43
+ :type secret_id: str
44
+ :param secret_key: The secret key of your credential.
45
+ :type secret_key: str
46
+ :param token: The federation token of your credential, if this field
47
+ is specified, secret_id and secret_key should be set
48
+ accordingly, see: https://cloud.tencent.com/document/product/598/13896
49
+ """
50
+
38
51
  def __init__(self, secret_id, secret_key, token=None):
39
- """Tencent Cloud Credentials.
40
-
41
- Access https://console.cloud.tencent.com/cam/capi to manage your
42
- credentials.
43
-
44
- :param secret_id: The secret id of your credential.
45
- :type secret_id: str
46
- :param secret_key: The secret key of your credential.
47
- :type secret_key: str
48
- :param token: The federation token of your credential, if this field
49
- is specified, secret_id and secret_key should be set
50
- accordingly, see: https://cloud.tencent.com/document/product/598/13896
51
- """
52
52
  if secret_id is None or secret_id.strip() == "":
53
53
  raise TencentCloudSDKException("InvalidCredential", "secret id should not be none or empty")
54
54
  if secret_id.strip() != secret_id:
@@ -73,6 +73,11 @@ class Credential(object):
73
73
 
74
74
 
75
75
  class CVMRoleCredential(object):
76
+ """Tencent Cloud Credential via CVM role
77
+
78
+ Automatically generates temporary credentials when binding a service role to instance.
79
+ See https://cloud.tencent.com/document/product/598/85616 for more information.
80
+ """
76
81
  _metadata_endpoint = "http://metadata.tencentyun.com/latest/meta-data/"
77
82
  _role_endpoint = _metadata_endpoint + "cam/security-credentials/"
78
83
  # In seconds.
@@ -156,9 +161,20 @@ class CVMRoleCredential(object):
156
161
 
157
162
 
158
163
  class STSAssumeRoleCredential(object):
159
- """使用STSAssumeRoleCredential,制动role,
160
- 可以自动生成临时凭证,并使用临时凭证调用接口
161
-
164
+ """Tencent Cloud Credential via STS service
165
+
166
+ Automatically generates temporary credentials for API calls.
167
+
168
+ :param secret_id: The secret id of your credential.
169
+ :type secret_id: str
170
+ :param secret_key: The secret key of your credential.
171
+ :type secret_key: str
172
+ :param role_arn: Resource descriptions of a role,see https://cloud.tencent.com/document/api/1312/48197
173
+ :type role_arn: str
174
+ :param role_session_name: User-defined temporary session name
175
+ :type role_session_name: str
176
+ :param duration_seconds: Specifies the validity period of credentials in seconds. Default value: 7200. Maximum value: 43200
177
+ :type duration_seconds: int
162
178
  """
163
179
  _region = "ap-guangzhou"
164
180
  _version = '2018-08-13'
@@ -167,17 +183,7 @@ class STSAssumeRoleCredential(object):
167
183
 
168
184
  def __init__(self, secret_id, secret_key, role_arn, role_session_name, duration_seconds=7200, endpoint=None):
169
185
  """
170
- :param secret_id: 接口调用凭证id
171
- :type secret_id: str
172
- :param secret_key: 接口调用凭证key
173
- :type secret_key: str
174
- https://cloud.tencent.com/document/api/1312/48197
175
- :param role_arn: 角色的资源描述,参考官网文档 https://cloud.tencent.com/document/api/1312/48197 中 RoleArn 参数的描述。
176
- :type role_arn: str
177
- :param role_session_name: 临时会话名称,由用户自定义名称
178
- :type role_session_name: str
179
- :param duration_seconds: 获取临时凭证的有效期,默认7200s
180
- :type duration_seconds: int
186
+
181
187
  """
182
188
  self._long_secret_id = secret_id
183
189
  self._long_secret_key = secret_key
@@ -221,19 +227,6 @@ class STSAssumeRoleCredential(object):
221
227
  return self._token
222
228
 
223
229
  def _need_refresh(self):
224
- """
225
- https://cloud.tencent.com/document/api/1312/48197
226
- 此函数自动使用初始secret_id和secret_key,自动调用上述链接中获取临时凭证的接口,并返回临时凭证
227
-
228
- :param role_arn: 角色的资源描述,上述链接RoleArn参数中有详细获取方式
229
- :type role_arn: str
230
- :param role_session_name: 临时会话名称,由用户自定义名称
231
- :type role_session_name: str
232
- :param duration_seconds: 获取临时凭证的有效期,默认7200s
233
- :type duration_seconds: int
234
-
235
- """
236
-
237
230
  if None in [self._token, self._tmp_secret_key, self._tmp_secret_id] or self._expired_time < int(time.time()):
238
231
  self.get_sts_tmp_role_arn()
239
232
 
@@ -260,18 +253,14 @@ class STSAssumeRoleCredential(object):
260
253
 
261
254
 
262
255
  class EnvironmentVariableCredential(object):
256
+ """Tencent Cloud EnvironmentVariableCredential.
263
257
 
264
- def get_credential(self):
265
- """Tencent Cloud EnvironmentVariableCredential.
266
-
267
- Access https://console.cloud.tencent.com/cam/capi to manage your
268
- credentials.
258
+ Acquire credential from environment variables.
259
+ Access https://console.cloud.tencent.com/cam/capi to manage your credentials.
260
+ Set secret id and secret key as `TENCENTCLOUD_SECRET_ID` and `TENCENTCLOUD_SECRET_KEY `in environment variables.
261
+ """
269
262
 
270
- :param secret_id: The secret id of your credential, get by environment variable TENCENTCLOUD_SECRET_ID
271
- :type secret_id: str
272
- :param secret_key: The secret key of your credential. get by environment variable TENCENTCLOUD_SECRET_KEY
273
- :type secret_key: str
274
- """
263
+ def get_credential(self):
275
264
  self.secret_id = os.environ.get('TENCENTCLOUD_SECRET_ID')
276
265
  self.secret_key = os.environ.get('TENCENTCLOUD_SECRET_KEY')
277
266
 
@@ -283,23 +272,17 @@ class EnvironmentVariableCredential(object):
283
272
 
284
273
 
285
274
  class ProfileCredential(object):
275
+ """Tencent Cloud ProfileCredential.
276
+
277
+ Access https://console.cloud.tencent.com/cam/capi to manage your credentials.
278
+ default file position is "~/.tencentcloud/credentials" or "/etc/tencentcloud/credentials", it is ini format.
279
+ such as:
280
+ [default]
281
+ secret_id=""
282
+ secret_key=""
283
+ """
286
284
 
287
285
  def get_credential(self):
288
- """Tencent Cloud ProfileCredential.
289
-
290
- Access https://console.cloud.tencent.com/cam/capi to manage your credentials.
291
-
292
- default file position is "~/.tencentcloud/credentials" or "/etc/tencentcloud/credentials", it is ini format.
293
- such as:
294
- [default]
295
- secret_id=""
296
- secret_key=""
297
-
298
- :param secret_id: The secret id of your credential.
299
- :type secret_id: str
300
- :param secret_key: The secret key of your credential.
301
- :type secret_key: str
302
- """
303
286
  home_path = os.environ.get('HOME') or os.environ.get('HOMEPATH')
304
287
  if os.path.exists(home_path + "/.tencentcloud/credentials"):
305
288
  file_path = home_path + "/.tencentcloud/credentials"
@@ -371,6 +354,7 @@ class DefaultCredentialProvider(object):
371
354
 
372
355
 
373
356
  class DefaultTkeOIDCRoleArnProvider(object):
357
+ """Acquire credential via TKE IdP automatically."""
374
358
  def get_credential(self):
375
359
  return self.get_credentials()
376
360
 
@@ -382,6 +366,25 @@ class DefaultTkeOIDCRoleArnProvider(object):
382
366
 
383
367
 
384
368
  class OIDCRoleArnCredential(object):
369
+ """TencentCloud OIDC Credential
370
+
371
+ OIDC is an authentication protocol built on OAuth 2.0. Tencent Cloud CAM supports OIDC role-based SSO.
372
+ See https://cloud.tencent.com/document/product/598/96013 for more information.
373
+ This will apply for an OIDC role credential automatically.
374
+
375
+ :param region: Region for AssumeRoleWithWebIdentity call. See https://cloud.tencent.com/document/product/1312/73070
376
+ :type region: str
377
+ :param provider_id: Identity provider name
378
+ :type provider_id: str
379
+ :param web_identity_token: OIDC token issued by the IdP
380
+ :type web_identity_token: str
381
+ :param role_arn: Role access description name
382
+ :type role_arn: str
383
+ :param role_session_name: Session name
384
+ :type role_session_name: str
385
+ :param duration_seconds: The validity period of the temporary credential in seconds. Default value: 7200s. Maximum value: 43200s.
386
+ :type duration_seconds: int
387
+ """
385
388
  _version = '2018-08-13'
386
389
  _service = "sts"
387
390
  _action = 'AssumeRoleWithWebIdentity'
@@ -3,7 +3,7 @@
3
3
  import sys
4
4
 
5
5
  class TencentCloudSDKException(Exception):
6
- """tencentcloudapi sdk 异常类"""
6
+ """tencentcloudapi sdk exception"""
7
7
 
8
8
  def __init__(self, code=None, message=None, requestId=None):
9
9
  self.code = code
@@ -18,25 +18,27 @@ from tencentcloud.common.profile.http_profile import HttpProfile
18
18
 
19
19
 
20
20
  class ClientProfile(object):
21
+ """SDK profile.
22
+
23
+ :param signMethod: The signature method, valid choice: HmacSHA1, HmacSHA256, TC3-HMAC-SHA256
24
+ :type signMethod: str
25
+ :param httpProfile: The http profile
26
+ :type httpProfile: :class:`HttpProfile`
27
+ :param language: Valid choice: en-US, zh-CN.
28
+ :type language: str
29
+ :param disable_region_breaker: Switch of region breaker.
30
+ :type disable_region_breaker: bool
31
+ :param region_breaker_profile: The region breaker profile.
32
+ :type region_breaker_profile: :class:`RegionBreakerProfile`
33
+ :param request_client: Custom request client.
34
+ :type request_client: str
35
+ :param retryer: Custom retry configuration.
36
+ :type retryer: :class:`tencentcloud.common.retry.StandardRetryer`
37
+ """
21
38
  unsignedPayload = False
22
39
 
23
40
  def __init__(self, signMethod=None, httpProfile=None, language="zh-CN",
24
41
  disable_region_breaker=True, region_breaker_profile=None, request_client=None, retryer=None):
25
- """SDK profile.
26
-
27
- :param signMethod: The signature method, valid choice: HmacSHA1, HmacSHA256, TC3-HMAC-SHA256
28
- :type signMethod: str
29
- :param httpProfile: The http profile
30
- :type httpProfile: :class:`HttpProfile`
31
- :param language: Valid choice: en-US, zh-CN.
32
- :type language: str
33
- :param disable_region_breaker: Switch of region breaker.
34
- :type disable_region_breaker: bool
35
- :param region_breaker_profile: The region breaker profile.
36
- :type region_breaker_profile: :class:`RegionBreakerProfile`
37
- :param request_client: Custom request client.
38
- :type request_client: str
39
- """
40
42
  self.httpProfile = HttpProfile() if httpProfile is None else httpProfile
41
43
  self.signMethod = "TC3-HMAC-SHA256" if signMethod is None else signMethod
42
44
  valid_language = ["zh-CN", "en-US"]
@@ -59,6 +61,21 @@ class ClientProfile(object):
59
61
 
60
62
 
61
63
  class RegionBreakerProfile(object):
64
+ """RegionBreaker profile.
65
+
66
+ :param backup_endpoint: Backup region of endpoint, default ap-guangzhou.tencentcloudapi.com.
67
+ :type backup_endpoint: str
68
+ :param max_fail_num: Max failure to trigger breaker, default 5.
69
+ :type max_fail_num: int
70
+ :param max_fail_percent: Max failure percent to trigger breaker, default 0.75.
71
+ :type max_fail_percent: float
72
+ :param window_interval: Decides when to reset counter if the state is StateClosed, default 5 minutes.
73
+ :type window_interval: int
74
+ :param timeout: Decides when to turn StateOpen to StateHalfOpen, default 60 seconds.
75
+ :type timeout: int
76
+ :param max_requests: Decides when to turn StateHalfOpen to StateClosed, default 5 successful requests.
77
+ :type max_requests: int
78
+ """
62
79
 
63
80
  def __init__(self, backup_endpoint="ap-guangzhou.tencentcloudapi.com",
64
81
  max_fail_num=5,
@@ -66,21 +83,6 @@ class RegionBreakerProfile(object):
66
83
  window_interval=60 * 5,
67
84
  timeout=60,
68
85
  max_requests=5):
69
- """RegionBreaker profile.
70
-
71
- :param backup_endpoint: Backup region of endpoint, default ap-guangzhou.tencentcloudapi.com.
72
- :type backup_endpoint: str
73
- :param max_fail_num: Max failure to trigger breaker, default 5.
74
- :type max_fail_num: int
75
- :param max_fail_percent: Max failure percent to trigger breaker, default 0.75.
76
- :type max_fail_percent: float
77
- :param window_interval: Decides when to reset counter if the state is StateClosed, default 5 minutes.
78
- :type window_interval: int
79
- :param timeout: Decides when to turn StateOpen to StateHalfOpen, default 1 minutes.
80
- :type timeout: int
81
- :param max_requests: Decides when to turn StateHalfOpen to StateClosed, default 5 successful requests.
82
- :type timeout: int
83
- """
84
86
  self.backup_endpoint = backup_endpoint
85
87
  if not self.check_endpoint():
86
88
  raise TencentCloudSDKException("ClientError", "the format of `backup_endpoint` must be tencentcloudapi.com "
@@ -14,22 +14,30 @@
14
14
 
15
15
 
16
16
  class HttpProfile(object):
17
+ """HTTP profile.
18
+
19
+ :param protocol: Request schema, http or https, default is https.
20
+ :type protocol: str
21
+ :param endpoint: The domain to access, like: cvm.tencentcloudapi.com
22
+ :type endpoint: str
23
+ :param reqMethod: The http method, valid choice: GET, POST
24
+ :type reqMethod: str
25
+ :param reqTimeout: The http timeout in second.
26
+ :type reqTimeout: int
27
+ :param keepAlive: Whether set keep alive.
28
+ :type keepAlive: bool
29
+ :param proxy: Custom proxy server, like: http(s)://{user}:{password}@{ip}:{port}.
30
+ :type proxy: str
31
+ :param rootDomain: The root domain to access, like: tencentcloudapi.com.
32
+ :type rootDomain: str
33
+ :param certification: Custom certificate path (typically not required).
34
+ Set `False` to disable certificate verification.
35
+ :type certification: str or bool
36
+ """
17
37
  scheme = "https"
18
38
 
19
39
  def __init__(self, protocol=None, endpoint=None, reqMethod="POST", reqTimeout=60,
20
40
  keepAlive=False, proxy=None, rootDomain=None, certification=None):
21
- """HTTP profile.
22
- :param protocol: http or https, default is https.
23
- :type protocol: str
24
- :param endpoint: The domain to access, like: cvm.tencentcloudapi.com
25
- :type endpoint: str
26
- :param reqMethod: the http method, valid choice: GET, POST
27
- :type reqMethod: str
28
- :param reqTimeout: The http timeout in second.
29
- :type reqTimeout: int
30
- :param rootDomain: The root domain to access, like: tencentcloudapi.com.
31
- :type rootDomain: str
32
- """
33
41
  self.endpoint = endpoint
34
42
  self.reqTimeout = 60 if reqTimeout is None else reqTimeout
35
43
  self.reqMethod = "POST" if reqMethod is None else reqMethod
@@ -5,11 +5,29 @@ from tencentcloud.common.exception import TencentCloudSDKException
5
5
 
6
6
 
7
7
  class NoopRetryer(object):
8
+ """configuration without retry
9
+
10
+ NoopRetryer is a retry policy that does nothing.
11
+ It is useful when you don't want to retry.
12
+ """
13
+
8
14
  def send_request(self, fn):
9
15
  return fn()
10
16
 
11
17
 
12
18
  class StandardRetryer(object):
19
+ """Retry configuration
20
+
21
+ StandardRetryer is a retry policy that retries on network errors or frequency limitation.
22
+ :param max_attempts: Maximum number of attempts.
23
+ :type max_attempts: int
24
+ :param backoff_fn: A function that takes the number of attempts and returns the number of seconds to sleep before the next retry.
25
+ Default sleep time is 2^n seconds, n is the number of attempts.
26
+ :type backoff_fn: function
27
+ :param logger: A logger to log retry attempts. If not provided, no logging will be performed.
28
+ :type logger: logging.Logger
29
+ """
30
+
13
31
  def __init__(self, max_attempts=3, backoff_fn=None, logger=None):
14
32
  self._max_attempts = max_attempts
15
33
  self._backoff_fn = backoff_fn or self.backoff
@@ -53,6 +53,9 @@ class CvmClient(AbstractClient):
53
53
  def AssociateInstancesKeyPairs(self, request):
54
54
  """本接口 (AssociateInstancesKeyPairs) 用于将密钥绑定到实例上。
55
55
 
56
+ * 仅支持对 `Linux` 操作系统实例进行绑定操作。
57
+ * 非强制关机场景下,仅支持对 [STOPPED](https://cloud.tencent.com/document/product/213/15753#InstanceStatus) 状态实例进行绑定操作。
58
+ * 强制关机场景下,先执行强制关机,再绑定密钥;如实例原状态为 [RUNNING](https://cloud.tencent.com/document/product/213/15753#InstanceStatus),绑定完成后实例会自动开机。
56
59
  * 将密钥的公钥写入到实例的`SSH`配置当中,用户就可以通过该密钥的私钥来登录实例。
57
60
  * 如果实例原来绑定过密钥,那么原来的密钥将失效。
58
61
  * 如果实例原来是通过密码登录,绑定密钥后无法使用密码登录。
@@ -1268,7 +1271,9 @@ class CvmClient(AbstractClient):
1268
1271
  def DisassociateInstancesKeyPairs(self, request):
1269
1272
  """本接口 (DisassociateInstancesKeyPairs) 用于解除实例的密钥绑定关系。
1270
1273
 
1271
- * 只支持[`STOPPED`](https://cloud.tencent.com/document/product/213/15753#InstanceStatus)状态的`Linux`操作系统的实例。
1274
+ * 仅支持对 Linux 操作系统实例进行解绑操作。
1275
+ * 非强制关机场景下,仅支持对 [STOPPED](https://cloud.tencent.com/document/product/213/15753#InstanceStatus) 状态实例进行解绑操作。
1276
+ * 强制关机场景下,先执行强制关机,再解绑密钥;如实例原状态为 [RUNNING](https://cloud.tencent.com/document/product/213/15753#InstanceStatus),解绑完成后实例会自动开机。
1272
1277
  * 解绑密钥后,实例可以通过原来设置的密码登录。
1273
1278
  * 如果原来没有设置密码,解绑后将无法使用 `SSH` 登录。可以调用 [ResetInstancesPassword](https://cloud.tencent.com/document/api/213/15736) 接口来设置登录密码。
1274
1279
  * 支持批量操作。每次请求批量实例的上限为100。如果批量实例存在不允许操作的实例,操作会以特定错误码返回。
@@ -2431,6 +2436,7 @@ class CvmClient(AbstractClient):
2431
2436
  * 默认扩容方式为关机后扩容。
2432
2437
  * 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
2433
2438
  * 如果是系统盘,目前只支持扩容,不支持缩容。
2439
+ * 如果是运行中的实例,必须指定ForceStop或ResizeOnline任意一个参数为true,否则操作失败。
2434
2440
 
2435
2441
  :param request: Request instance for ResizeInstanceDisks.
2436
2442
  :type request: :class:`tencentcloud.cvm.v20170312.models.ResizeInstanceDisksRequest`