tencentcloud-sdk-python 3.0.1338__py2.py3-none-any.whl → 3.0.1372__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/advisor/v20200721/models.py +0 -26
- tencentcloud/ams/v20201229/ams_client.py +17 -6
- tencentcloud/ams/v20201229/models.py +8 -6
- tencentcloud/antiddos/v20200309/antiddos_client.py +0 -50
- tencentcloud/antiddos/v20200309/models.py +44 -837
- tencentcloud/apm/v20210622/models.py +60 -60
- tencentcloud/autoscaling/v20180419/autoscaling_client.py +28 -1
- tencentcloud/autoscaling/v20180419/models.py +352 -210
- tencentcloud/batch/v20170312/batch_client.py +0 -46
- tencentcloud/batch/v20170312/errorcodes.py +0 -9
- tencentcloud/batch/v20170312/models.py +44 -1179
- tencentcloud/bh/v20230418/bh_client.py +253 -0
- tencentcloud/bh/v20230418/errorcodes.py +15 -0
- tencentcloud/bh/v20230418/models.py +3489 -1335
- tencentcloud/bi/v20220105/models.py +242 -2
- tencentcloud/billing/v20180709/billing_client.py +0 -23
- tencentcloud/billing/v20180709/models.py +34 -926
- tencentcloud/bpaas/v20181217/models.py +0 -54
- tencentcloud/cam/v20190116/errorcodes.py +3 -0
- tencentcloud/cam/v20190116/models.py +2 -86
- tencentcloud/captcha/v20190722/models.py +21 -54
- tencentcloud/cat/v20180409/cat_client.py +23 -0
- tencentcloud/cat/v20180409/models.py +509 -0
- tencentcloud/cbs/v20170312/cbs_client.py +1 -1
- tencentcloud/cbs/v20170312/models.py +75 -96
- tencentcloud/ccc/v20200210/ccc_client.py +184 -0
- tencentcloud/ccc/v20200210/errorcodes.py +12 -0
- tencentcloud/ccc/v20200210/models.py +2552 -1026
- tencentcloud/cdb/v20170320/cdb_client.py +27 -4
- tencentcloud/cdb/v20170320/models.py +180 -20
- tencentcloud/cdc/v20201214/cdc_client.py +46 -0
- tencentcloud/cdc/v20201214/errorcodes.py +18 -0
- tencentcloud/cdc/v20201214/models.py +202 -86
- tencentcloud/cdn/v20180606/cdn_client.py +70 -24
- tencentcloud/cdn/v20180606/models.py +19 -50
- tencentcloud/cdwch/v20200915/errorcodes.py +15 -0
- tencentcloud/cdwch/v20200915/models.py +242 -260
- tencentcloud/cdwdoris/v20211228/models.py +330 -0
- tencentcloud/cdwpg/v20201230/models.py +196 -516
- tencentcloud/cdz/v20221123/models.py +0 -12
- tencentcloud/cfg/v20210820/models.py +30 -198
- tencentcloud/cfs/v20190719/errorcodes.py +3 -0
- tencentcloud/cfs/v20190719/models.py +15 -0
- tencentcloud/cfw/v20190904/cfw_client.py +23 -0
- tencentcloud/cfw/v20190904/models.py +331 -4
- tencentcloud/chc/__init__.py +0 -0
- tencentcloud/chc/v20230418/__init__.py +0 -0
- tencentcloud/chc/v20230418/chc_client.py +877 -0
- tencentcloud/chc/v20230418/errorcodes.py +15 -0
- tencentcloud/chc/v20230418/models.py +10146 -0
- tencentcloud/chdfs/v20201112/models.py +2 -2
- tencentcloud/ckafka/v20190819/ckafka_client.py +46 -0
- tencentcloud/ckafka/v20190819/models.py +371 -1230
- tencentcloud/clb/v20180317/clb_client.py +3 -3
- tencentcloud/clb/v20180317/models.py +395 -406
- tencentcloud/cls/v20201016/cls_client.py +41 -18
- tencentcloud/cls/v20201016/models.py +256 -606
- tencentcloud/cme/v20191029/cme_client.py +0 -1
- tencentcloud/cme/v20191029/errorcodes.py +3 -0
- tencentcloud/cme/v20191029/models.py +10 -14
- tencentcloud/cmq/v20190304/models.py +0 -90
- tencentcloud/common/abstract_client.py +29 -24
- tencentcloud/common/abstract_model.py +5 -1
- tencentcloud/common/common_client.py +14 -15
- tencentcloud/common/credential.py +68 -65
- tencentcloud/common/exception/tencent_cloud_sdk_exception.py +1 -1
- tencentcloud/common/profile/client_profile.py +32 -30
- tencentcloud/common/profile/http_profile.py +20 -12
- tencentcloud/common/retry.py +18 -0
- tencentcloud/controlcenter/v20230110/models.py +0 -58
- tencentcloud/cvm/v20170312/cvm_client.py +42 -10
- tencentcloud/cvm/v20170312/errorcodes.py +25 -1
- tencentcloud/cvm/v20170312/models.py +835 -290
- tencentcloud/cwp/v20180228/cwp_client.py +1 -1
- tencentcloud/cwp/v20180228/models.py +362 -58
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +69 -0
- tencentcloud/cynosdb/v20190107/models.py +451 -824
- tencentcloud/dbbrain/v20191016/dbbrain_client.py +23 -0
- tencentcloud/dbbrain/v20191016/models.py +605 -52
- tencentcloud/dbbrain/v20210527/dbbrain_client.py +322 -0
- tencentcloud/dbbrain/v20210527/models.py +6071 -2974
- tencentcloud/dbdc/v20201029/models.py +0 -16
- tencentcloud/dc/v20180410/models.py +25 -12
- tencentcloud/dcdb/v20180411/errorcodes.py +3 -0
- tencentcloud/dcdb/v20180411/models.py +175 -114
- tencentcloud/dlc/v20210125/dlc_client.py +69 -0
- tencentcloud/dlc/v20210125/errorcodes.py +3 -0
- tencentcloud/dlc/v20210125/models.py +1217 -592
- tencentcloud/dnspod/v20210323/dnspod_client.py +69 -0
- tencentcloud/dnspod/v20210323/errorcodes.py +9 -0
- tencentcloud/dnspod/v20210323/models.py +718 -110
- tencentcloud/domain/v20180808/domain_client.py +4 -2
- tencentcloud/domain/v20180808/errorcodes.py +3 -0
- tencentcloud/domain/v20180808/models.py +628 -324
- tencentcloud/dsgc/v20190723/dsgc_client.py +0 -23
- tencentcloud/dsgc/v20190723/models.py +53 -34
- tencentcloud/dts/v20180330/models.py +0 -10
- tencentcloud/dts/v20211206/models.py +118 -585
- tencentcloud/ecdn/v20191012/ecdn_client.py +24 -225
- tencentcloud/ecdn/v20191012/errorcodes.py +0 -63
- tencentcloud/ecdn/v20191012/models.py +4 -1047
- tencentcloud/emr/v20190103/emr_client.py +47 -1
- tencentcloud/emr/v20190103/models.py +1174 -146
- tencentcloud/es/v20180416/errorcodes.py +3 -0
- tencentcloud/es/v20180416/models.py +74 -6
- tencentcloud/es/v20250101/__init__.py +0 -0
- tencentcloud/es/v20250101/errorcodes.py +45 -0
- tencentcloud/es/v20250101/es_client.py +251 -0
- tencentcloud/es/v20250101/models.py +2519 -0
- tencentcloud/ess/v20201111/ess_client.py +43 -5
- tencentcloud/ess/v20201111/models.py +854 -60
- tencentcloud/essbasic/v20210526/essbasic_client.py +35 -2
- tencentcloud/essbasic/v20210526/models.py +726 -43
- tencentcloud/facefusion/v20220927/models.py +4 -2
- tencentcloud/fmu/v20191213/errorcodes.py +3 -21
- tencentcloud/fmu/v20191213/fmu_client.py +0 -75
- tencentcloud/fmu/v20191213/models.py +4 -531
- tencentcloud/gaap/v20180529/gaap_client.py +1 -1
- tencentcloud/gaap/v20180529/models.py +2 -276
- tencentcloud/goosefs/v20220519/models.py +0 -2
- tencentcloud/gs/v20191118/errorcodes.py +36 -0
- tencentcloud/gs/v20191118/gs_client.py +1074 -12
- tencentcloud/gs/v20191118/models.py +6976 -492
- tencentcloud/gwlb/v20240906/errorcodes.py +3 -0
- tencentcloud/gwlb/v20240906/gwlb_client.py +5 -8
- tencentcloud/gwlb/v20240906/models.py +94 -84
- tencentcloud/hai/v20230812/errorcodes.py +7 -1
- tencentcloud/hai/v20230812/hai_client.py +23 -0
- tencentcloud/hai/v20230812/models.py +111 -136
- tencentcloud/hunyuan/v20230901/errorcodes.py +27 -0
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +71 -0
- tencentcloud/hunyuan/v20230901/models.py +1089 -119
- tencentcloud/ims/v20201229/models.py +25 -4
- tencentcloud/ioa/v20220601/ioa_client.py +92 -0
- tencentcloud/ioa/v20220601/models.py +1136 -225
- tencentcloud/iotcloud/v20210408/models.py +2 -4
- tencentcloud/iotexplorer/v20190423/errorcodes.py +12 -0
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +234 -52
- tencentcloud/iotexplorer/v20190423/models.py +2906 -1063
- tencentcloud/iotvideo/v20191126/models.py +0 -4
- tencentcloud/iotvideo/v20201215/models.py +17 -0
- tencentcloud/iotvideo/v20211125/iotvideo_client.py +69 -0
- tencentcloud/iotvideo/v20211125/models.py +476 -0
- tencentcloud/iotvideoindustry/v20201201/iotvideoindustry_client.py +2 -2
- tencentcloud/iotvideoindustry/v20201201/models.py +30 -486
- tencentcloud/iss/v20230517/errorcodes.py +9 -0
- tencentcloud/iss/v20230517/iss_client.py +161 -0
- tencentcloud/iss/v20230517/models.py +1716 -743
- tencentcloud/kms/v20190118/models.py +101 -0
- tencentcloud/lcic/v20220817/errorcodes.py +2 -2
- tencentcloud/lcic/v20220817/lcic_client.py +47 -1
- tencentcloud/lcic/v20220817/models.py +357 -72
- tencentcloud/lighthouse/v20200324/errorcodes.py +12 -15
- tencentcloud/lighthouse/v20200324/lighthouse_client.py +39 -76
- tencentcloud/lighthouse/v20200324/models.py +237 -259
- tencentcloud/live/v20180801/models.py +61 -46
- tencentcloud/lke/v20231130/errorcodes.py +3 -0
- tencentcloud/lke/v20231130/lke_client.py +8 -29
- tencentcloud/lke/v20231130/models.py +561 -115
- tencentcloud/lkeap/v20240522/lkeap_client.py +33 -4
- tencentcloud/lkeap/v20240522/models.py +290 -18
- tencentcloud/lowcode/v20210108/errorcodes.py +3 -0
- tencentcloud/lowcode/v20210108/models.py +0 -2
- tencentcloud/mariadb/v20170312/models.py +155 -140
- tencentcloud/memcached/v20190318/models.py +2 -2
- tencentcloud/mmps/v20200710/models.py +0 -66
- tencentcloud/mna/v20210119/errorcodes.py +0 -36
- tencentcloud/mna/v20210119/mna_client.py +0 -75
- tencentcloud/mna/v20210119/models.py +0 -1002
- tencentcloud/mongodb/v20190725/models.py +115 -6
- tencentcloud/mongodb/v20190725/mongodb_client.py +23 -0
- tencentcloud/monitor/v20180724/errorcodes.py +3 -0
- tencentcloud/monitor/v20180724/models.py +1055 -74
- tencentcloud/monitor/v20180724/monitor_client.py +94 -2
- tencentcloud/mps/v20190612/errorcodes.py +36 -0
- tencentcloud/mps/v20190612/models.py +4866 -448
- tencentcloud/mps/v20190612/mps_client.py +208 -0
- tencentcloud/mqtt/v20240516/errorcodes.py +15 -0
- tencentcloud/mqtt/v20240516/models.py +705 -372
- tencentcloud/mqtt/v20240516/mqtt_client.py +4 -4
- tencentcloud/oceanus/v20190422/models.py +14 -2
- tencentcloud/ocr/v20181119/errorcodes.py +0 -12
- tencentcloud/ocr/v20181119/models.py +311 -1042
- tencentcloud/ocr/v20181119/ocr_client.py +5 -102
- tencentcloud/organization/v20210331/errorcodes.py +3 -0
- tencentcloud/organization/v20210331/models.py +45 -82
- tencentcloud/partners/v20180321/models.py +169 -0
- tencentcloud/partners/v20180321/partners_client.py +23 -0
- tencentcloud/postgres/v20170312/models.py +36 -328
- tencentcloud/postgres/v20170312/postgres_client.py +15 -5
- tencentcloud/privatedns/v20201028/models.py +36 -28
- tencentcloud/rce/v20201103/models.py +0 -15
- tencentcloud/redis/v20180412/models.py +233 -18
- tencentcloud/redis/v20180412/redis_client.py +23 -0
- tencentcloud/rum/v20210622/models.py +0 -2
- tencentcloud/ses/v20201002/models.py +32 -4
- tencentcloud/smop/v20201203/smop_client.py +3 -1
- tencentcloud/soe/v20180724/models.py +4 -2
- tencentcloud/sqlserver/v20180328/models.py +75 -0
- tencentcloud/ssl/v20191205/models.py +7 -319
- tencentcloud/ssm/v20190923/models.py +45 -0
- tencentcloud/sts/v20180813/errorcodes.py +9 -0
- tencentcloud/sts/v20180813/models.py +171 -0
- tencentcloud/sts/v20180813/sts_client.py +23 -0
- tencentcloud/svp/v20240125/errorcodes.py +3 -0
- tencentcloud/svp/v20240125/models.py +506 -44
- tencentcloud/svp/v20240125/svp_client.py +23 -0
- tencentcloud/tan/v20220420/tan_client.py +3 -1
- tencentcloud/tat/v20201028/errorcodes.py +12 -0
- tencentcloud/tat/v20201028/models.py +138 -42
- tencentcloud/tbaas/v20180416/models.py +0 -58
- tencentcloud/tcb/v20180608/errorcodes.py +3 -0
- tencentcloud/tcb/v20180608/models.py +189 -582
- tencentcloud/tcb/v20180608/tcb_client.py +23 -23
- tencentcloud/tcbr/v20220217/models.py +45 -0
- tencentcloud/tchd/v20230306/models.py +166 -0
- tencentcloud/tchd/v20230306/tchd_client.py +24 -0
- tencentcloud/tcr/v20190924/models.py +44 -174
- tencentcloud/tcss/v20201101/models.py +1458 -2066
- tencentcloud/tcss/v20201101/tcss_client.py +92 -125
- tencentcloud/tdid/v20210519/models.py +0 -10
- tencentcloud/tdmq/v20200217/models.py +405 -575
- tencentcloud/tdmq/v20200217/tdmq_client.py +12 -54
- tencentcloud/tds/v20220801/models.py +441 -0
- tencentcloud/tds/v20220801/tds_client.py +23 -0
- tencentcloud/tem/v20210701/models.py +0 -498
- tencentcloud/teo/v20220106/teo_client.py +6 -2
- tencentcloud/teo/v20220901/errorcodes.py +9 -0
- tencentcloud/teo/v20220901/models.py +1828 -472
- tencentcloud/teo/v20220901/teo_client.py +54 -4
- tencentcloud/thpc/v20211109/models.py +0 -6
- tencentcloud/thpc/v20220401/models.py +0 -14
- tencentcloud/thpc/v20230321/models.py +64 -52
- tencentcloud/tione/v20211111/errorcodes.py +114 -0
- tencentcloud/tione/v20211111/models.py +2288 -160
- tencentcloud/tione/v20211111/tione_client.py +138 -0
- tencentcloud/tiw/v20190919/errorcodes.py +3 -24
- tencentcloud/tiw/v20190919/models.py +3657 -8172
- tencentcloud/tiw/v20190919/tiw_client.py +1 -580
- tencentcloud/tke/v20180525/models.py +705 -721
- tencentcloud/tke/v20180525/tke_client.py +23 -0
- tencentcloud/tke/v20220501/models.py +0 -34
- tencentcloud/trocket/v20230308/models.py +1630 -160
- tencentcloud/trocket/v20230308/trocket_client.py +238 -0
- tencentcloud/trro/v20220325/models.py +1132 -44
- tencentcloud/trro/v20220325/trro_client.py +142 -0
- tencentcloud/trtc/v20190722/models.py +94 -90
- tencentcloud/trtc/v20190722/trtc_client.py +4 -0
- tencentcloud/tse/v20201207/models.py +90 -1010
- tencentcloud/tsf/v20180326/errorcodes.py +6 -0
- tencentcloud/tsf/v20180326/models.py +350 -582
- tencentcloud/tsf/v20180326/tsf_client.py +26 -1
- tencentcloud/tts/v20190823/models.py +15 -15
- tencentcloud/tts/v20190823/tts_client.py +6 -5
- tencentcloud/vclm/v20240523/models.py +2 -2
- tencentcloud/vcube/v20220410/models.py +66 -158
- tencentcloud/vcube/v20220410/vcube_client.py +2 -2
- tencentcloud/vdb/v20230616/models.py +1487 -29
- tencentcloud/vdb/v20230616/vdb_client.py +185 -1
- tencentcloud/vm/v20210922/models.py +2 -2
- tencentcloud/vm/v20210922/vm_client.py +16 -8
- tencentcloud/vod/v20180717/errorcodes.py +3 -0
- tencentcloud/vod/v20180717/models.py +106 -417
- tencentcloud/vod/v20180717/vod_client.py +2 -1
- tencentcloud/vod/v20240718/errorcodes.py +33 -0
- tencentcloud/vod/v20240718/models.py +1839 -0
- tencentcloud/vod/v20240718/vod_client.py +146 -0
- tencentcloud/vpc/v20170312/errorcodes.py +12 -0
- tencentcloud/vpc/v20170312/models.py +2052 -519
- tencentcloud/vpc/v20170312/vpc_client.py +229 -11
- tencentcloud/vrs/v20200824/models.py +49 -0
- tencentcloud/waf/v20180125/errorcodes.py +9 -0
- tencentcloud/waf/v20180125/models.py +4191 -0
- tencentcloud/waf/v20180125/waf_client.py +276 -0
- tencentcloud/wedata/v20210820/models.py +5404 -394
- tencentcloud/wedata/v20210820/wedata_client.py +161 -0
- tencentcloud/weilingwith/v20230427/models.py +0 -964
- tencentcloud/weilingwith/v20230427/weilingwith_client.py +3 -1
- {tencentcloud_sdk_python-3.0.1338.dist-info → tencentcloud_sdk_python-3.0.1372.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1338.dist-info → tencentcloud_sdk_python-3.0.1372.dist-info}/RECORD +284 -275
- {tencentcloud_sdk_python-3.0.1338.dist-info → tencentcloud_sdk_python-3.0.1372.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1338.dist-info → tencentcloud_sdk_python-3.0.1372.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1338.dist-info → tencentcloud_sdk_python-3.0.1372.dist-info}/top_level.txt +0 -0
@@ -61,6 +61,8 @@ False -- 不开启
|
|
61
61
|
:type EnableRotation: bool
|
62
62
|
:param _RotationFrequency: 轮转周期,以天为单位,默认为1天。
|
63
63
|
:type RotationFrequency: int
|
64
|
+
:param _KmsHsmClusterId: KMS的独享集群的ID。当KmsKeyId为空,并且用户的KMS存在有效的HsmClusterId时有效。
|
65
|
+
:type KmsHsmClusterId: str
|
64
66
|
"""
|
65
67
|
self._SecretName = None
|
66
68
|
self._UserNamePrefix = None
|
@@ -74,6 +76,7 @@ False -- 不开启
|
|
74
76
|
self._RotationBeginTime = None
|
75
77
|
self._EnableRotation = None
|
76
78
|
self._RotationFrequency = None
|
79
|
+
self._KmsHsmClusterId = None
|
77
80
|
|
78
81
|
@property
|
79
82
|
def SecretName(self):
|
@@ -219,6 +222,17 @@ False -- 不开启
|
|
219
222
|
def RotationFrequency(self, RotationFrequency):
|
220
223
|
self._RotationFrequency = RotationFrequency
|
221
224
|
|
225
|
+
@property
|
226
|
+
def KmsHsmClusterId(self):
|
227
|
+
"""KMS的独享集群的ID。当KmsKeyId为空,并且用户的KMS存在有效的HsmClusterId时有效。
|
228
|
+
:rtype: str
|
229
|
+
"""
|
230
|
+
return self._KmsHsmClusterId
|
231
|
+
|
232
|
+
@KmsHsmClusterId.setter
|
233
|
+
def KmsHsmClusterId(self, KmsHsmClusterId):
|
234
|
+
self._KmsHsmClusterId = KmsHsmClusterId
|
235
|
+
|
222
236
|
|
223
237
|
def _deserialize(self, params):
|
224
238
|
self._SecretName = params.get("SecretName")
|
@@ -243,6 +257,7 @@ False -- 不开启
|
|
243
257
|
self._RotationBeginTime = params.get("RotationBeginTime")
|
244
258
|
self._EnableRotation = params.get("EnableRotation")
|
245
259
|
self._RotationFrequency = params.get("RotationFrequency")
|
260
|
+
self._KmsHsmClusterId = params.get("KmsHsmClusterId")
|
246
261
|
memeber_set = set(params.keys())
|
247
262
|
for name, value in vars(self).items():
|
248
263
|
property_name = name[1:]
|
@@ -362,6 +377,8 @@ class CreateSSHKeyPairSecretRequest(AbstractModel):
|
|
362
377
|
:type Tags: list of Tag
|
363
378
|
:param _SSHKeyName: 用户自定义输入的SSH密钥对的名称,可由数字,字母和下划线组成,只能以数字和字母开头,长度不超过25个字符。
|
364
379
|
:type SSHKeyName: str
|
380
|
+
:param _KmsHsmClusterId: KMS的独享集群的ID。当KmsKeyId为空,并且用户的KMS存在有效的HsmClusterId时有效。
|
381
|
+
:type KmsHsmClusterId: str
|
365
382
|
"""
|
366
383
|
self._SecretName = None
|
367
384
|
self._ProjectId = None
|
@@ -369,6 +386,7 @@ class CreateSSHKeyPairSecretRequest(AbstractModel):
|
|
369
386
|
self._KmsKeyId = None
|
370
387
|
self._Tags = None
|
371
388
|
self._SSHKeyName = None
|
389
|
+
self._KmsHsmClusterId = None
|
372
390
|
|
373
391
|
@property
|
374
392
|
def SecretName(self):
|
@@ -438,6 +456,17 @@ class CreateSSHKeyPairSecretRequest(AbstractModel):
|
|
438
456
|
def SSHKeyName(self, SSHKeyName):
|
439
457
|
self._SSHKeyName = SSHKeyName
|
440
458
|
|
459
|
+
@property
|
460
|
+
def KmsHsmClusterId(self):
|
461
|
+
"""KMS的独享集群的ID。当KmsKeyId为空,并且用户的KMS存在有效的HsmClusterId时有效。
|
462
|
+
:rtype: str
|
463
|
+
"""
|
464
|
+
return self._KmsHsmClusterId
|
465
|
+
|
466
|
+
@KmsHsmClusterId.setter
|
467
|
+
def KmsHsmClusterId(self, KmsHsmClusterId):
|
468
|
+
self._KmsHsmClusterId = KmsHsmClusterId
|
469
|
+
|
441
470
|
|
442
471
|
def _deserialize(self, params):
|
443
472
|
self._SecretName = params.get("SecretName")
|
@@ -451,6 +480,7 @@ class CreateSSHKeyPairSecretRequest(AbstractModel):
|
|
451
480
|
obj._deserialize(item)
|
452
481
|
self._Tags.append(obj)
|
453
482
|
self._SSHKeyName = params.get("SSHKeyName")
|
483
|
+
self._KmsHsmClusterId = params.get("KmsHsmClusterId")
|
454
484
|
memeber_set = set(params.keys())
|
455
485
|
for name, value in vars(self).items():
|
456
486
|
property_name = name[1:]
|
@@ -589,6 +619,8 @@ class CreateSecretRequest(AbstractModel):
|
|
589
619
|
:type AdditionalConfig: str
|
590
620
|
:param _Tags: 标签列表
|
591
621
|
:type Tags: list of Tag
|
622
|
+
:param _KmsHsmClusterId: KMS的独享集群的ID。当KmsKeyId为空,并且用户的KMS存在有效的HsmClusterId时有效。
|
623
|
+
:type KmsHsmClusterId: str
|
592
624
|
"""
|
593
625
|
self._SecretName = None
|
594
626
|
self._VersionId = None
|
@@ -599,6 +631,7 @@ class CreateSecretRequest(AbstractModel):
|
|
599
631
|
self._SecretString = None
|
600
632
|
self._AdditionalConfig = None
|
601
633
|
self._Tags = None
|
634
|
+
self._KmsHsmClusterId = None
|
602
635
|
|
603
636
|
@property
|
604
637
|
def SecretName(self):
|
@@ -699,6 +732,17 @@ class CreateSecretRequest(AbstractModel):
|
|
699
732
|
def Tags(self, Tags):
|
700
733
|
self._Tags = Tags
|
701
734
|
|
735
|
+
@property
|
736
|
+
def KmsHsmClusterId(self):
|
737
|
+
"""KMS的独享集群的ID。当KmsKeyId为空,并且用户的KMS存在有效的HsmClusterId时有效。
|
738
|
+
:rtype: str
|
739
|
+
"""
|
740
|
+
return self._KmsHsmClusterId
|
741
|
+
|
742
|
+
@KmsHsmClusterId.setter
|
743
|
+
def KmsHsmClusterId(self, KmsHsmClusterId):
|
744
|
+
self._KmsHsmClusterId = KmsHsmClusterId
|
745
|
+
|
702
746
|
|
703
747
|
def _deserialize(self, params):
|
704
748
|
self._SecretName = params.get("SecretName")
|
@@ -715,6 +759,7 @@ class CreateSecretRequest(AbstractModel):
|
|
715
759
|
obj = Tag()
|
716
760
|
obj._deserialize(item)
|
717
761
|
self._Tags.append(obj)
|
762
|
+
self._KmsHsmClusterId = params.get("KmsHsmClusterId")
|
718
763
|
memeber_set = set(params.keys())
|
719
764
|
for name, value in vars(self).items():
|
720
765
|
property_name = name[1:]
|
@@ -17,6 +17,15 @@
|
|
17
17
|
# 密钥不合法。
|
18
18
|
AUTHFAILURE_ACCESSKEYILLEGAL = 'AuthFailure.AccessKeyIllegal'
|
19
19
|
|
20
|
+
# 校验MFA失败
|
21
|
+
FAILEDOPERATION_CHECKMFAERROR = 'FailedOperation.CheckMFAError'
|
22
|
+
|
23
|
+
# MFA类型不支持
|
24
|
+
FAILEDOPERATION_MFATYPENOTSUPPORTED = 'FailedOperation.MFATypeNotSupported'
|
25
|
+
|
26
|
+
# 该接口不支持临时密钥调用
|
27
|
+
FAILEDOPERATION_TEMPKEYNOTALLOWED = 'FailedOperation.TempKeyNotAllowed'
|
28
|
+
|
20
29
|
# DB错误。
|
21
30
|
INTERNALERROR_DBERROR = 'InternalError.DbError'
|
22
31
|
|
@@ -115,6 +115,10 @@ qcs::cam::uin/12345678:role/tencentcloudServiceRole/4611686018427397920、qcs::c
|
|
115
115
|
:type Tags: list of Tag
|
116
116
|
:param _SourceIdentity: 调用者身份uin
|
117
117
|
:type SourceIdentity: str
|
118
|
+
:param _SerialNumber: MFA序列号,与进行调用的CAM用户关联的MFA设备的标识号。格式qcs::cam:uin/${ownerUin}::mfa/${mfaType}。mfaType支持softToken(软token)
|
119
|
+
:type SerialNumber: str
|
120
|
+
:param _TokenCode: mfa身份验证码。
|
121
|
+
:type TokenCode: str
|
118
122
|
"""
|
119
123
|
self._RoleArn = None
|
120
124
|
self._RoleSessionName = None
|
@@ -123,6 +127,8 @@ qcs::cam::uin/12345678:role/tencentcloudServiceRole/4611686018427397920、qcs::c
|
|
123
127
|
self._ExternalId = None
|
124
128
|
self._Tags = None
|
125
129
|
self._SourceIdentity = None
|
130
|
+
self._SerialNumber = None
|
131
|
+
self._TokenCode = None
|
126
132
|
|
127
133
|
@property
|
128
134
|
def RoleArn(self):
|
@@ -211,6 +217,28 @@ qcs::cam::uin/12345678:role/tencentcloudServiceRole/4611686018427397920、qcs::c
|
|
211
217
|
def SourceIdentity(self, SourceIdentity):
|
212
218
|
self._SourceIdentity = SourceIdentity
|
213
219
|
|
220
|
+
@property
|
221
|
+
def SerialNumber(self):
|
222
|
+
"""MFA序列号,与进行调用的CAM用户关联的MFA设备的标识号。格式qcs::cam:uin/${ownerUin}::mfa/${mfaType}。mfaType支持softToken(软token)
|
223
|
+
:rtype: str
|
224
|
+
"""
|
225
|
+
return self._SerialNumber
|
226
|
+
|
227
|
+
@SerialNumber.setter
|
228
|
+
def SerialNumber(self, SerialNumber):
|
229
|
+
self._SerialNumber = SerialNumber
|
230
|
+
|
231
|
+
@property
|
232
|
+
def TokenCode(self):
|
233
|
+
"""mfa身份验证码。
|
234
|
+
:rtype: str
|
235
|
+
"""
|
236
|
+
return self._TokenCode
|
237
|
+
|
238
|
+
@TokenCode.setter
|
239
|
+
def TokenCode(self, TokenCode):
|
240
|
+
self._TokenCode = TokenCode
|
241
|
+
|
214
242
|
|
215
243
|
def _deserialize(self, params):
|
216
244
|
self._RoleArn = params.get("RoleArn")
|
@@ -225,6 +253,8 @@ qcs::cam::uin/12345678:role/tencentcloudServiceRole/4611686018427397920、qcs::c
|
|
225
253
|
obj._deserialize(item)
|
226
254
|
self._Tags.append(obj)
|
227
255
|
self._SourceIdentity = params.get("SourceIdentity")
|
256
|
+
self._SerialNumber = params.get("SerialNumber")
|
257
|
+
self._TokenCode = params.get("TokenCode")
|
228
258
|
memeber_set = set(params.keys())
|
229
259
|
for name, value in vars(self).items():
|
230
260
|
property_name = name[1:]
|
@@ -986,6 +1016,147 @@ class GetFederationTokenResponse(AbstractModel):
|
|
986
1016
|
self._RequestId = params.get("RequestId")
|
987
1017
|
|
988
1018
|
|
1019
|
+
class GetSessionTokenRequest(AbstractModel):
|
1020
|
+
"""GetSessionToken请求参数结构体
|
1021
|
+
|
1022
|
+
"""
|
1023
|
+
|
1024
|
+
def __init__(self):
|
1025
|
+
r"""
|
1026
|
+
:param _SerialNumber: MFA序列号,与进行调用的CAM用户关联的MFA设备的标识号。格式qcs::cam:uin/${ownerUin}::mfa/${mfaType}。mfaType支持softToken(软token)
|
1027
|
+
:type SerialNumber: str
|
1028
|
+
:param _TokenCode: mfa身份验证码。
|
1029
|
+
:type TokenCode: str
|
1030
|
+
:param _DurationSeconds: 指定临时证书的有效期,单位:秒,默认1800秒,主账号最长可设定有效期为7200秒,子账号最长可设定有效期为129600秒。
|
1031
|
+
:type DurationSeconds: int
|
1032
|
+
"""
|
1033
|
+
self._SerialNumber = None
|
1034
|
+
self._TokenCode = None
|
1035
|
+
self._DurationSeconds = None
|
1036
|
+
|
1037
|
+
@property
|
1038
|
+
def SerialNumber(self):
|
1039
|
+
"""MFA序列号,与进行调用的CAM用户关联的MFA设备的标识号。格式qcs::cam:uin/${ownerUin}::mfa/${mfaType}。mfaType支持softToken(软token)
|
1040
|
+
:rtype: str
|
1041
|
+
"""
|
1042
|
+
return self._SerialNumber
|
1043
|
+
|
1044
|
+
@SerialNumber.setter
|
1045
|
+
def SerialNumber(self, SerialNumber):
|
1046
|
+
self._SerialNumber = SerialNumber
|
1047
|
+
|
1048
|
+
@property
|
1049
|
+
def TokenCode(self):
|
1050
|
+
"""mfa身份验证码。
|
1051
|
+
:rtype: str
|
1052
|
+
"""
|
1053
|
+
return self._TokenCode
|
1054
|
+
|
1055
|
+
@TokenCode.setter
|
1056
|
+
def TokenCode(self, TokenCode):
|
1057
|
+
self._TokenCode = TokenCode
|
1058
|
+
|
1059
|
+
@property
|
1060
|
+
def DurationSeconds(self):
|
1061
|
+
"""指定临时证书的有效期,单位:秒,默认1800秒,主账号最长可设定有效期为7200秒,子账号最长可设定有效期为129600秒。
|
1062
|
+
:rtype: int
|
1063
|
+
"""
|
1064
|
+
return self._DurationSeconds
|
1065
|
+
|
1066
|
+
@DurationSeconds.setter
|
1067
|
+
def DurationSeconds(self, DurationSeconds):
|
1068
|
+
self._DurationSeconds = DurationSeconds
|
1069
|
+
|
1070
|
+
|
1071
|
+
def _deserialize(self, params):
|
1072
|
+
self._SerialNumber = params.get("SerialNumber")
|
1073
|
+
self._TokenCode = params.get("TokenCode")
|
1074
|
+
self._DurationSeconds = params.get("DurationSeconds")
|
1075
|
+
memeber_set = set(params.keys())
|
1076
|
+
for name, value in vars(self).items():
|
1077
|
+
property_name = name[1:]
|
1078
|
+
if property_name in memeber_set:
|
1079
|
+
memeber_set.remove(property_name)
|
1080
|
+
if len(memeber_set) > 0:
|
1081
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1082
|
+
|
1083
|
+
|
1084
|
+
|
1085
|
+
class GetSessionTokenResponse(AbstractModel):
|
1086
|
+
"""GetSessionToken返回参数结构体
|
1087
|
+
|
1088
|
+
"""
|
1089
|
+
|
1090
|
+
def __init__(self):
|
1091
|
+
r"""
|
1092
|
+
:param _Credentials: 临时访问凭证
|
1093
|
+
:type Credentials: :class:`tencentcloud.sts.v20180813.models.Credentials`
|
1094
|
+
:param _ExpiredTime: 证书无效的时间,返回 Unix 时间戳,精确到秒
|
1095
|
+
:type ExpiredTime: int
|
1096
|
+
:param _Expiration: 临时访问凭证的过期时间,以 iso8601 格式的 UTC 时间表示
|
1097
|
+
:type Expiration: str
|
1098
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1099
|
+
:type RequestId: str
|
1100
|
+
"""
|
1101
|
+
self._Credentials = None
|
1102
|
+
self._ExpiredTime = None
|
1103
|
+
self._Expiration = None
|
1104
|
+
self._RequestId = None
|
1105
|
+
|
1106
|
+
@property
|
1107
|
+
def Credentials(self):
|
1108
|
+
"""临时访问凭证
|
1109
|
+
:rtype: :class:`tencentcloud.sts.v20180813.models.Credentials`
|
1110
|
+
"""
|
1111
|
+
return self._Credentials
|
1112
|
+
|
1113
|
+
@Credentials.setter
|
1114
|
+
def Credentials(self, Credentials):
|
1115
|
+
self._Credentials = Credentials
|
1116
|
+
|
1117
|
+
@property
|
1118
|
+
def ExpiredTime(self):
|
1119
|
+
"""证书无效的时间,返回 Unix 时间戳,精确到秒
|
1120
|
+
:rtype: int
|
1121
|
+
"""
|
1122
|
+
return self._ExpiredTime
|
1123
|
+
|
1124
|
+
@ExpiredTime.setter
|
1125
|
+
def ExpiredTime(self, ExpiredTime):
|
1126
|
+
self._ExpiredTime = ExpiredTime
|
1127
|
+
|
1128
|
+
@property
|
1129
|
+
def Expiration(self):
|
1130
|
+
"""临时访问凭证的过期时间,以 iso8601 格式的 UTC 时间表示
|
1131
|
+
:rtype: str
|
1132
|
+
"""
|
1133
|
+
return self._Expiration
|
1134
|
+
|
1135
|
+
@Expiration.setter
|
1136
|
+
def Expiration(self, Expiration):
|
1137
|
+
self._Expiration = Expiration
|
1138
|
+
|
1139
|
+
@property
|
1140
|
+
def RequestId(self):
|
1141
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1142
|
+
:rtype: str
|
1143
|
+
"""
|
1144
|
+
return self._RequestId
|
1145
|
+
|
1146
|
+
@RequestId.setter
|
1147
|
+
def RequestId(self, RequestId):
|
1148
|
+
self._RequestId = RequestId
|
1149
|
+
|
1150
|
+
|
1151
|
+
def _deserialize(self, params):
|
1152
|
+
if params.get("Credentials") is not None:
|
1153
|
+
self._Credentials = Credentials()
|
1154
|
+
self._Credentials._deserialize(params.get("Credentials"))
|
1155
|
+
self._ExpiredTime = params.get("ExpiredTime")
|
1156
|
+
self._Expiration = params.get("Expiration")
|
1157
|
+
self._RequestId = params.get("RequestId")
|
1158
|
+
|
1159
|
+
|
989
1160
|
class QueryApiKeyRequest(AbstractModel):
|
990
1161
|
"""QueryApiKey请求参数结构体
|
991
1162
|
|
@@ -168,6 +168,29 @@ class StsClient(AbstractClient):
|
|
168
168
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
169
169
|
|
170
170
|
|
171
|
+
def GetSessionToken(self, request):
|
172
|
+
"""获取MFA临时证书
|
173
|
+
|
174
|
+
:param request: Request instance for GetSessionToken.
|
175
|
+
:type request: :class:`tencentcloud.sts.v20180813.models.GetSessionTokenRequest`
|
176
|
+
:rtype: :class:`tencentcloud.sts.v20180813.models.GetSessionTokenResponse`
|
177
|
+
|
178
|
+
"""
|
179
|
+
try:
|
180
|
+
params = request._serialize()
|
181
|
+
headers = request.headers
|
182
|
+
body = self.call("GetSessionToken", params, headers=headers)
|
183
|
+
response = json.loads(body)
|
184
|
+
model = models.GetSessionTokenResponse()
|
185
|
+
model._deserialize(response["Response"])
|
186
|
+
return model
|
187
|
+
except Exception as e:
|
188
|
+
if isinstance(e, TencentCloudSDKException):
|
189
|
+
raise
|
190
|
+
else:
|
191
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
192
|
+
|
193
|
+
|
171
194
|
def QueryApiKey(self, request):
|
172
195
|
"""拉取API密钥列表
|
173
196
|
|