tccli 3.0.1391.1__py2.py3-none-any.whl → 3.0.1414.1__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.
Potentially problematic release.
This version of tccli might be problematic. Click here for more details.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +2 -1
- tccli/services/ai3d/v20250513/api.json +22 -4
- tccli/services/aiart/aiart_client.py +173 -67
- tccli/services/aiart/v20221229/api.json +193 -0
- tccli/services/aiart/v20221229/examples.json +16 -0
- tccli/services/apm/apm_client.py +53 -0
- tccli/services/apm/v20210622/api.json +354 -0
- tccli/services/apm/v20210622/examples.json +8 -0
- tccli/services/asr/v20190614/api.json +3 -3
- tccli/services/autoscaling/v20180419/api.json +24 -2
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/bda/bda_client.py +15 -704
- tccli/services/bda/v20200324/api.json +107 -1819
- tccli/services/bda/v20200324/examples.json +0 -176
- tccli/services/billing/billing_client.py +326 -8
- tccli/services/billing/v20180709/api.json +2200 -255
- tccli/services/billing/v20180709/examples.json +48 -0
- tccli/services/cam/v20190116/api.json +4 -4
- tccli/services/captcha/v20190722/api.json +3 -3
- tccli/services/cat/v20180409/api.json +7 -7
- tccli/services/ccc/ccc_client.py +235 -76
- tccli/services/ccc/v20200210/api.json +502 -18
- tccli/services/ccc/v20200210/examples.json +24 -0
- tccli/services/cdb/cdb_client.py +106 -0
- tccli/services/cdb/v20170320/api.json +257 -44
- tccli/services/cdb/v20170320/examples.json +22 -6
- tccli/services/cdn/cdn_client.py +4 -163
- tccli/services/cdn/v20180606/api.json +61 -310
- tccli/services/cdn/v20180606/examples.json +1 -25
- tccli/services/cdwdoris/v20211228/api.json +51 -12
- tccli/services/cdwpg/v20201230/api.json +11 -1
- tccli/services/cdwpg/v20201230/examples.json +1 -1
- tccli/services/cfg/v20210820/api.json +11 -1
- tccli/services/cfs/cfs_client.py +41 -94
- tccli/services/cfs/v20190719/api.json +171 -55
- tccli/services/cfs/v20190719/examples.json +1 -9
- tccli/services/cfw/v20190904/api.json +122 -10
- tccli/services/ckafka/ckafka_client.py +188 -29
- tccli/services/ckafka/v20190819/api.json +277 -4
- tccli/services/ckafka/v20190819/examples.json +25 -1
- tccli/services/clb/clb_client.py +0 -265
- tccli/services/clb/v20180317/api.json +130 -296
- tccli/services/clb/v20180317/examples.json +12 -40
- tccli/services/cloudapp/v20220530/api.json +55 -0
- tccli/services/cloudaudit/v20190319/api.json +11 -0
- tccli/services/cloudhsm/v20191112/api.json +10 -10
- tccli/services/cls/v20201016/api.json +63 -45
- tccli/services/cls/v20201016/examples.json +10 -4
- tccli/services/csip/v20221121/api.json +53 -3
- tccli/services/ctem/v20231128/api.json +320 -0
- tccli/services/ctem/v20231128/examples.json +3 -3
- tccli/services/cvm/cvm_client.py +0 -212
- tccli/services/cvm/v20170312/api.json +91 -843
- tccli/services/cvm/v20170312/examples.json +32 -58
- tccli/services/cynosdb/cynosdb_client.py +167 -8
- tccli/services/cynosdb/v20190107/api.json +1126 -148
- tccli/services/cynosdb/v20190107/examples.json +31 -7
- tccli/services/dbbrain/dbbrain_client.py +246 -87
- tccli/services/dbbrain/v20191016/api.json +74 -62
- tccli/services/dbbrain/v20191016/examples.json +1 -1
- tccli/services/dbbrain/v20210527/api.json +601 -177
- tccli/services/dbbrain/v20210527/examples.json +28 -4
- tccli/services/dc/v20180410/api.json +101 -3
- tccli/services/dcdb/v20180411/api.json +1 -1
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +237 -24
- tccli/services/dlc/v20210125/examples.json +12 -4
- tccli/services/dnspod/dnspod_client.py +106 -0
- tccli/services/dnspod/v20210323/api.json +126 -20
- tccli/services/dnspod/v20210323/examples.json +17 -7
- tccli/services/dsgc/v20190723/api.json +73 -15
- tccli/services/dts/v20180330/api.json +4 -4
- tccli/services/dts/v20211206/api.json +408 -127
- tccli/services/dts/v20211206/examples.json +15 -9
- tccli/services/eb/v20210416/api.json +41 -1
- tccli/services/eb/v20210416/examples.json +1 -1
- tccli/services/emr/v20190103/api.json +56 -9
- tccli/services/emr/v20190103/examples.json +5 -5
- tccli/services/es/es_client.py +273 -8
- tccli/services/es/v20180416/api.json +845 -33
- tccli/services/es/v20180416/examples.json +33 -1
- tccli/services/es/v20250101/api.json +135 -2
- tccli/services/es/v20250101/examples.json +8 -0
- tccli/services/ess/ess_client.py +509 -32
- tccli/services/ess/v20201111/api.json +1366 -113
- tccli/services/ess/v20201111/examples.json +94 -10
- tccli/services/essbasic/v20210526/api.json +265 -27
- tccli/services/essbasic/v20210526/examples.json +12 -12
- tccli/services/facefusion/v20220927/api.json +1 -1
- tccli/services/gaap/v20180529/api.json +18 -8
- tccli/services/gme/gme_client.py +53 -0
- tccli/services/gme/v20180711/api.json +241 -1
- tccli/services/gme/v20180711/examples.json +8 -0
- tccli/services/gs/gs_client.py +216 -4
- tccli/services/gs/v20191118/api.json +202 -1
- tccli/services/gs/v20191118/examples.json +32 -0
- tccli/services/gwlb/gwlb_client.py +53 -0
- tccli/services/gwlb/v20240906/api.json +150 -0
- tccli/services/gwlb/v20240906/examples.json +8 -0
- tccli/services/hai/v20230812/api.json +5 -5
- tccli/services/hunyuan/v20230901/api.json +3 -3
- tccli/services/hunyuan/v20230901/examples.json +1 -1
- tccli/services/iai/v20180301/api.json +227 -207
- tccli/services/iai/v20180301/examples.json +26 -26
- tccli/services/iai/v20200303/api.json +4 -4
- tccli/services/iai/v20200303/examples.json +1 -1
- tccli/services/ioa/ioa_client.py +265 -0
- tccli/services/ioa/v20220601/api.json +781 -85
- tccli/services/ioa/v20220601/examples.json +46 -0
- tccli/services/iotexplorer/iotexplorer_client.py +387 -16
- tccli/services/iotexplorer/v20190423/api.json +1183 -63
- tccli/services/iotexplorer/v20190423/examples.json +92 -0
- tccli/services/keewidb/v20220308/api.json +69 -17
- tccli/services/keewidb/v20220308/examples.json +5 -5
- tccli/services/lcic/v20220817/api.json +61 -15
- tccli/services/lighthouse/v20200324/api.json +193 -24
- tccli/services/lighthouse/v20200324/examples.json +9 -3
- tccli/services/live/v20180801/api.json +6 -6
- tccli/services/live/v20180801/examples.json +7 -1
- tccli/services/lke/lke_client.py +40 -93
- tccli/services/lke/v20231130/api.json +943 -390
- tccli/services/lke/v20231130/examples.json +38 -46
- tccli/services/lkeap/v20240522/api.json +39 -12
- tccli/services/lkeap/v20240522/examples.json +12 -0
- tccli/services/mariadb/v20170312/api.json +1 -1
- tccli/services/mna/v20210119/api.json +11 -2
- tccli/services/mna/v20210119/examples.json +1 -1
- tccli/services/mongodb/mongodb_client.py +334 -16
- tccli/services/mongodb/v20190725/api.json +1092 -383
- tccli/services/mongodb/v20190725/examples.json +69 -21
- tccli/services/monitor/monitor_client.py +106 -0
- tccli/services/monitor/v20180724/api.json +383 -12
- tccli/services/monitor/v20180724/examples.json +24 -2
- tccli/services/mps/mps_client.py +220 -8
- tccli/services/mps/v20190612/api.json +1999 -179
- tccli/services/mps/v20190612/examples.json +56 -6
- tccli/services/mqtt/v20240516/api.json +10 -0
- tccli/services/mqtt/v20240516/examples.json +3 -9
- tccli/services/nlp/v20190408/api.json +6 -6
- tccli/services/oceanus/oceanus_client.py +318 -0
- tccli/services/oceanus/v20190422/api.json +461 -26
- tccli/services/oceanus/v20190422/examples.json +50 -2
- tccli/services/ocr/ocr_client.py +41 -253
- tccli/services/ocr/v20181119/api.json +153 -659
- tccli/services/ocr/v20181119/examples.json +8 -40
- tccli/services/omics/v20221128/api.json +90 -7
- tccli/services/organization/v20210331/api.json +46 -7
- tccli/services/postgres/v20170312/api.json +333 -77
- tccli/services/postgres/v20170312/examples.json +37 -31
- tccli/services/privatedns/privatedns_client.py +641 -58
- tccli/services/privatedns/v20201028/api.json +930 -19
- tccli/services/privatedns/v20201028/examples.json +91 -3
- tccli/services/pts/v20210728/api.json +2 -2
- tccli/services/redis/v20180412/api.json +303 -109
- tccli/services/redis/v20180412/examples.json +12 -12
- tccli/services/region/v20220627/api.json +1 -1
- tccli/services/rum/v20210622/api.json +22 -4
- tccli/services/rum/v20210622/examples.json +2 -2
- tccli/services/sms/v20190711/api.json +12 -12
- tccli/services/sms/v20190711/examples.json +9 -3
- tccli/services/sms/v20210111/api.json +13 -13
- tccli/services/sms/v20210111/examples.json +8 -2
- tccli/services/sqlserver/v20180328/api.json +46 -7
- tccli/services/sqlserver/v20180328/examples.json +2 -2
- tccli/services/ssl/v20191205/api.json +28 -0
- tccli/services/svp/v20240125/api.json +14 -4
- tccli/services/tag/v20180813/api.json +3 -3
- tccli/services/tat/v20201028/api.json +22 -3
- tccli/services/tcb/v20180608/api.json +1 -1
- tccli/services/tcss/tcss_client.py +228 -69
- tccli/services/tcss/v20201101/api.json +273 -25
- tccli/services/tcss/v20201101/examples.json +26 -2
- tccli/services/teo/teo_client.py +317 -52
- tccli/services/teo/v20220901/api.json +1824 -242
- tccli/services/teo/v20220901/examples.json +109 -21
- tccli/services/thpc/thpc_client.py +57 -4
- tccli/services/thpc/v20230321/api.json +163 -21
- tccli/services/thpc/v20230321/examples.json +13 -5
- tccli/services/tione/tione_client.py +163 -4
- tccli/services/tione/v20211111/api.json +285 -21
- tccli/services/tione/v20211111/examples.json +27 -3
- tccli/services/tke/tke_client.py +8 -8
- tccli/services/tke/v20180525/api.json +168 -130
- tccli/services/tke/v20180525/examples.json +20 -20
- tccli/services/tke/v20220501/api.json +215 -3
- tccli/services/tke/v20220501/examples.json +8 -0
- tccli/services/tms/tms_client.py +106 -0
- tccli/services/tms/v20201229/api.json +249 -3
- tccli/services/tms/v20201229/examples.json +16 -0
- tccli/services/tmt/v20180321/api.json +78 -1
- tccli/services/trabbit/v20230418/api.json +271 -4
- tccli/services/trabbit/v20230418/examples.json +9 -3
- tccli/services/trocket/v20230308/api.json +4 -4
- tccli/services/trro/trro_client.py +106 -0
- tccli/services/trro/v20220325/api.json +456 -0
- tccli/services/trro/v20220325/examples.json +16 -0
- tccli/services/trtc/v20190722/api.json +197 -49
- tccli/services/trtc/v20190722/examples.json +4 -4
- tccli/services/tse/v20201207/api.json +69 -2
- tccli/services/tse/v20201207/examples.json +3 -3
- tccli/services/tsf/v20180326/api.json +70 -7
- tccli/services/tsf/v20180326/examples.json +2 -2
- tccli/services/vclm/v20240523/api.json +145 -0
- tccli/services/vclm/v20240523/examples.json +16 -0
- tccli/services/vclm/vclm_client.py +106 -0
- tccli/services/vcube/v20220410/api.json +1 -1
- tccli/services/vod/v20180717/api.json +7 -7
- tccli/services/vpc/v20170312/api.json +1216 -70
- tccli/services/vpc/v20170312/examples.json +139 -3
- tccli/services/vpc/vpc_client.py +1023 -122
- tccli/services/vrs/v20200824/api.json +11 -11
- tccli/services/vrs/v20200824/examples.json +1 -1
- tccli/services/vtc/v20240223/api.json +14 -14
- tccli/services/waf/v20180125/api.json +812 -143
- tccli/services/waf/v20180125/examples.json +2 -2
- tccli/services/wedata/v20210820/api.json +1281 -601
- tccli/services/wedata/v20210820/examples.json +127 -157
- tccli/services/wedata/v20250806/api.json +19335 -0
- tccli/services/wedata/v20250806/examples.json +999 -0
- tccli/services/wedata/wedata_client.py +7072 -1131
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/METADATA +9 -7
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/RECORD +226 -224
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/WHEEL +1 -1
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1391.1.dist-info/license_files → tccli-3.0.1414.1.dist-info/licenses}/LICENSE +0 -0
|
@@ -805,6 +805,13 @@
|
|
|
805
805
|
"output": "DescribeTaskMonitorInfosResponse",
|
|
806
806
|
"status": "online"
|
|
807
807
|
},
|
|
808
|
+
"DescribeTaskResourceUsage": {
|
|
809
|
+
"document": "返回任务洞察资源用量",
|
|
810
|
+
"input": "DescribeTaskResourceUsageRequest",
|
|
811
|
+
"name": "任务资源用量信息",
|
|
812
|
+
"output": "DescribeTaskResourceUsageResponse",
|
|
813
|
+
"status": "online"
|
|
814
|
+
},
|
|
808
815
|
"DescribeTaskResult": {
|
|
809
816
|
"document": "查询任务结果,仅支持30天以内的任务查询结果,且返回数据大小超过近50M会进行截断。",
|
|
810
817
|
"input": "DescribeTaskResultRequest",
|
|
@@ -3244,6 +3251,34 @@
|
|
|
3244
3251
|
],
|
|
3245
3252
|
"usage": "out"
|
|
3246
3253
|
},
|
|
3254
|
+
"CoreInfo": {
|
|
3255
|
+
"document": "任务 core 用量信息",
|
|
3256
|
+
"members": [
|
|
3257
|
+
{
|
|
3258
|
+
"disabled": false,
|
|
3259
|
+
"document": "时间戳(毫秒)数组",
|
|
3260
|
+
"example": "[1749193814000]",
|
|
3261
|
+
"member": "int64",
|
|
3262
|
+
"name": "Timestamp",
|
|
3263
|
+
"output_required": false,
|
|
3264
|
+
"required": false,
|
|
3265
|
+
"type": "list",
|
|
3266
|
+
"value_allowed_null": false
|
|
3267
|
+
},
|
|
3268
|
+
{
|
|
3269
|
+
"disabled": false,
|
|
3270
|
+
"document": "core 用量",
|
|
3271
|
+
"example": "[1,1]",
|
|
3272
|
+
"member": "int64",
|
|
3273
|
+
"name": "CoreUsage",
|
|
3274
|
+
"output_required": false,
|
|
3275
|
+
"required": false,
|
|
3276
|
+
"type": "list",
|
|
3277
|
+
"value_allowed_null": false
|
|
3278
|
+
}
|
|
3279
|
+
],
|
|
3280
|
+
"usage": "both"
|
|
3281
|
+
},
|
|
3247
3282
|
"CosPermission": {
|
|
3248
3283
|
"document": "cos权限描述",
|
|
3249
3284
|
"members": [
|
|
@@ -3922,6 +3957,16 @@
|
|
|
3922
3957
|
"CreateDataMaskStrategyResponse": {
|
|
3923
3958
|
"document": "CreateDataMaskStrategy返回参数结构体",
|
|
3924
3959
|
"members": [
|
|
3960
|
+
{
|
|
3961
|
+
"disabled": false,
|
|
3962
|
+
"document": "策略id",
|
|
3963
|
+
"example": "71a88499-266f-4b24-9944-2d80078ec0a6",
|
|
3964
|
+
"member": "string",
|
|
3965
|
+
"name": "StrategyId",
|
|
3966
|
+
"output_required": false,
|
|
3967
|
+
"type": "string",
|
|
3968
|
+
"value_allowed_null": false
|
|
3969
|
+
},
|
|
3925
3970
|
{
|
|
3926
3971
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
|
3927
3972
|
"member": "string",
|
|
@@ -5277,7 +5322,7 @@
|
|
|
5277
5322
|
{
|
|
5278
5323
|
"disabled": false,
|
|
5279
5324
|
"document": "标准引擎资源组名称",
|
|
5280
|
-
"example": "
|
|
5325
|
+
"example": "rg-demo",
|
|
5281
5326
|
"member": "string",
|
|
5282
5327
|
"name": "EngineResourceGroupName",
|
|
5283
5328
|
"required": true,
|
|
@@ -5286,7 +5331,7 @@
|
|
|
5286
5331
|
{
|
|
5287
5332
|
"disabled": false,
|
|
5288
5333
|
"document": "标准引擎名称",
|
|
5289
|
-
"example": "
|
|
5334
|
+
"example": "house-demo",
|
|
5290
5335
|
"member": "string",
|
|
5291
5336
|
"name": "DataEngineName",
|
|
5292
5337
|
"required": true,
|
|
@@ -5295,7 +5340,7 @@
|
|
|
5295
5340
|
{
|
|
5296
5341
|
"disabled": false,
|
|
5297
5342
|
"document": "自动启动,(任务提交自动拉起资源组)0-自动启动,1-不自动启动",
|
|
5298
|
-
"example": "
|
|
5343
|
+
"example": "0",
|
|
5299
5344
|
"member": "int64",
|
|
5300
5345
|
"name": "AutoLaunch",
|
|
5301
5346
|
"required": false,
|
|
@@ -5304,7 +5349,7 @@
|
|
|
5304
5349
|
{
|
|
5305
5350
|
"disabled": false,
|
|
5306
5351
|
"document": "自动挂起资源组。0-自动挂起,1-不自动挂起",
|
|
5307
|
-
"example": "
|
|
5352
|
+
"example": "0",
|
|
5308
5353
|
"member": "int64",
|
|
5309
5354
|
"name": "AutoPause",
|
|
5310
5355
|
"required": false,
|
|
@@ -5313,7 +5358,7 @@
|
|
|
5313
5358
|
{
|
|
5314
5359
|
"disabled": false,
|
|
5315
5360
|
"document": "driver的cu规格:\n当前支持:small(默认,1cu)、medium(2cu)、large(4cu)、xlarge(8cu),内存型cu为cpu:men=1:8,m.small(1cu内存型)、m.medium(2cu内存型)、m.large(4cu内存型)、m.xlarge(8cu内存型)",
|
|
5316
|
-
"example": "
|
|
5361
|
+
"example": "2",
|
|
5317
5362
|
"member": "string",
|
|
5318
5363
|
"name": "DriverCuSpec",
|
|
5319
5364
|
"required": false,
|
|
@@ -5322,7 +5367,7 @@
|
|
|
5322
5367
|
{
|
|
5323
5368
|
"disabled": false,
|
|
5324
5369
|
"document": "executor的cu规格:\n当前支持:small(默认,1cu)、medium(2cu)、large(4cu)、xlarge(8cu),内存型cu为cpu:men=1:8,m.small(1cu内存型)、m.medium(2cu内存型)、m.large(4cu内存型)、m.xlarge(8cu内存型)",
|
|
5325
|
-
"example": "
|
|
5370
|
+
"example": "16",
|
|
5326
5371
|
"member": "string",
|
|
5327
5372
|
"name": "ExecutorCuSpec",
|
|
5328
5373
|
"required": false,
|
|
@@ -5331,7 +5376,7 @@
|
|
|
5331
5376
|
{
|
|
5332
5377
|
"disabled": false,
|
|
5333
5378
|
"document": "executor最小数量,",
|
|
5334
|
-
"example": "
|
|
5379
|
+
"example": "1",
|
|
5335
5380
|
"member": "int64",
|
|
5336
5381
|
"name": "MinExecutorNums",
|
|
5337
5382
|
"required": false,
|
|
@@ -5340,7 +5385,7 @@
|
|
|
5340
5385
|
{
|
|
5341
5386
|
"disabled": false,
|
|
5342
5387
|
"document": "executor最大数量",
|
|
5343
|
-
"example": "
|
|
5388
|
+
"example": "1",
|
|
5344
5389
|
"member": "int64",
|
|
5345
5390
|
"name": "MaxExecutorNums",
|
|
5346
5391
|
"required": false,
|
|
@@ -5349,7 +5394,7 @@
|
|
|
5349
5394
|
{
|
|
5350
5395
|
"disabled": false,
|
|
5351
5396
|
"document": "创建资源组后是否直接拉起,0-拉起,1-不拉起",
|
|
5352
|
-
"example": "
|
|
5397
|
+
"example": "1",
|
|
5353
5398
|
"member": "int64",
|
|
5354
5399
|
"name": "IsLaunchNow",
|
|
5355
5400
|
"required": false,
|
|
@@ -5358,7 +5403,7 @@
|
|
|
5358
5403
|
{
|
|
5359
5404
|
"disabled": false,
|
|
5360
5405
|
"document": "自动挂起时间,单位分钟,取值范围在1-999(在无任务AutoPauseTime后,资源组自动挂起)",
|
|
5361
|
-
"example": "
|
|
5406
|
+
"example": "1",
|
|
5362
5407
|
"member": "int64",
|
|
5363
5408
|
"name": "AutoPauseTime",
|
|
5364
5409
|
"required": false,
|
|
@@ -5385,7 +5430,7 @@
|
|
|
5385
5430
|
{
|
|
5386
5431
|
"disabled": false,
|
|
5387
5432
|
"document": "任务并发数,默人是5个",
|
|
5388
|
-
"example": "
|
|
5433
|
+
"example": "1",
|
|
5389
5434
|
"member": "int64",
|
|
5390
5435
|
"name": "MaxConcurrency",
|
|
5391
5436
|
"required": false,
|
|
@@ -5394,7 +5439,7 @@
|
|
|
5394
5439
|
{
|
|
5395
5440
|
"disabled": false,
|
|
5396
5441
|
"document": "网络配置名称",
|
|
5397
|
-
"example": "
|
|
5442
|
+
"example": "[\"connectionName\"]",
|
|
5398
5443
|
"member": "string",
|
|
5399
5444
|
"name": "NetworkConfigNames",
|
|
5400
5445
|
"required": false,
|
|
@@ -5439,7 +5484,7 @@
|
|
|
5439
5484
|
{
|
|
5440
5485
|
"disabled": false,
|
|
5441
5486
|
"document": "镜像名称",
|
|
5442
|
-
"example": "image-xxx",
|
|
5487
|
+
"example": "image-xxx,若使用内置镜像,即ImageType为bulit-in,则不同框架对应的ImageName为machine-learning: pytorch-v2.5.1, scikit-learn-v1.6.0, tensorflow-v2.18.0 python: python-v3.10 spark-m: Standard-S 1.1",
|
|
5443
5488
|
"member": "string",
|
|
5444
5489
|
"name": "ImageName",
|
|
5445
5490
|
"required": false,
|
|
@@ -5507,6 +5552,51 @@
|
|
|
5507
5552
|
"name": "SparkSize",
|
|
5508
5553
|
"required": false,
|
|
5509
5554
|
"type": "int"
|
|
5555
|
+
},
|
|
5556
|
+
{
|
|
5557
|
+
"disabled": false,
|
|
5558
|
+
"document": "GPUDriver规格",
|
|
5559
|
+
"example": "1",
|
|
5560
|
+
"member": "int64",
|
|
5561
|
+
"name": "DriverGPUSpec",
|
|
5562
|
+
"required": false,
|
|
5563
|
+
"type": "int"
|
|
5564
|
+
},
|
|
5565
|
+
{
|
|
5566
|
+
"disabled": false,
|
|
5567
|
+
"document": "GPUExecutor规格",
|
|
5568
|
+
"example": "1",
|
|
5569
|
+
"member": "int64",
|
|
5570
|
+
"name": "ExecutorGPUSpec",
|
|
5571
|
+
"required": false,
|
|
5572
|
+
"type": "int"
|
|
5573
|
+
},
|
|
5574
|
+
{
|
|
5575
|
+
"disabled": false,
|
|
5576
|
+
"document": "GPU上限",
|
|
5577
|
+
"example": "1",
|
|
5578
|
+
"member": "int64",
|
|
5579
|
+
"name": "GPULimitSize",
|
|
5580
|
+
"required": false,
|
|
5581
|
+
"type": "int"
|
|
5582
|
+
},
|
|
5583
|
+
{
|
|
5584
|
+
"disabled": false,
|
|
5585
|
+
"document": "GPU规格",
|
|
5586
|
+
"example": "1",
|
|
5587
|
+
"member": "int64",
|
|
5588
|
+
"name": "GPUSize",
|
|
5589
|
+
"required": false,
|
|
5590
|
+
"type": "int"
|
|
5591
|
+
},
|
|
5592
|
+
{
|
|
5593
|
+
"disabled": false,
|
|
5594
|
+
"document": "Pod GPU规格上限",
|
|
5595
|
+
"example": "1",
|
|
5596
|
+
"member": "int64",
|
|
5597
|
+
"name": "PythonGPUSpec",
|
|
5598
|
+
"required": false,
|
|
5599
|
+
"type": "int"
|
|
5510
5600
|
}
|
|
5511
5601
|
],
|
|
5512
5602
|
"type": "object"
|
|
@@ -5819,7 +5909,7 @@
|
|
|
5819
5909
|
{
|
|
5820
5910
|
"disabled": false,
|
|
5821
5911
|
"document": "任务Id集合,按照执行顺序排列",
|
|
5822
|
-
"example": "[
|
|
5912
|
+
"example": "[\"esjkdss-23sdask-essadaa-dsalooe2\"]",
|
|
5823
5913
|
"member": "string",
|
|
5824
5914
|
"name": "TaskIdSet",
|
|
5825
5915
|
"output_required": true,
|
|
@@ -6106,7 +6196,7 @@
|
|
|
6106
6196
|
{
|
|
6107
6197
|
"disabled": false,
|
|
6108
6198
|
"document": "需要绑定到工作组的用户Id集合",
|
|
6109
|
-
"example": "[\"
|
|
6199
|
+
"example": "[\"213609\",\"214508\"]",
|
|
6110
6200
|
"member": "string",
|
|
6111
6201
|
"name": "UserIds",
|
|
6112
6202
|
"required": false,
|
|
@@ -11585,6 +11675,26 @@
|
|
|
11585
11675
|
"type": "list",
|
|
11586
11676
|
"value_allowed_null": false
|
|
11587
11677
|
},
|
|
11678
|
+
{
|
|
11679
|
+
"disabled": false,
|
|
11680
|
+
"document": "资源组总规格",
|
|
11681
|
+
"example": "0",
|
|
11682
|
+
"member": "int64",
|
|
11683
|
+
"name": "TotalSpec",
|
|
11684
|
+
"output_required": false,
|
|
11685
|
+
"type": "int",
|
|
11686
|
+
"value_allowed_null": false
|
|
11687
|
+
},
|
|
11688
|
+
{
|
|
11689
|
+
"disabled": false,
|
|
11690
|
+
"document": "资源组当前可用规格",
|
|
11691
|
+
"example": "0",
|
|
11692
|
+
"member": "int64",
|
|
11693
|
+
"name": "TotalAvailable",
|
|
11694
|
+
"output_required": false,
|
|
11695
|
+
"type": "int",
|
|
11696
|
+
"value_allowed_null": false
|
|
11697
|
+
},
|
|
11588
11698
|
{
|
|
11589
11699
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
|
11590
11700
|
"member": "string",
|
|
@@ -13753,6 +13863,43 @@
|
|
|
13753
13863
|
],
|
|
13754
13864
|
"type": "object"
|
|
13755
13865
|
},
|
|
13866
|
+
"DescribeTaskResourceUsageRequest": {
|
|
13867
|
+
"document": "DescribeTaskResourceUsage请求参数结构体",
|
|
13868
|
+
"members": [
|
|
13869
|
+
{
|
|
13870
|
+
"disabled": false,
|
|
13871
|
+
"document": "任务 id",
|
|
13872
|
+
"example": "87edc6a2-94a2-47fb-8044-3fdda2243c01",
|
|
13873
|
+
"member": "string",
|
|
13874
|
+
"name": "TaskInstanceId",
|
|
13875
|
+
"required": true,
|
|
13876
|
+
"type": "string"
|
|
13877
|
+
}
|
|
13878
|
+
],
|
|
13879
|
+
"type": "object"
|
|
13880
|
+
},
|
|
13881
|
+
"DescribeTaskResourceUsageResponse": {
|
|
13882
|
+
"document": "DescribeTaskResourceUsage返回参数结构体",
|
|
13883
|
+
"members": [
|
|
13884
|
+
{
|
|
13885
|
+
"disabled": false,
|
|
13886
|
+
"document": "core 用量信息",
|
|
13887
|
+
"example": "无",
|
|
13888
|
+
"member": "CoreInfo",
|
|
13889
|
+
"name": "CoreInfo",
|
|
13890
|
+
"output_required": false,
|
|
13891
|
+
"type": "object",
|
|
13892
|
+
"value_allowed_null": false
|
|
13893
|
+
},
|
|
13894
|
+
{
|
|
13895
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
|
13896
|
+
"member": "string",
|
|
13897
|
+
"name": "RequestId",
|
|
13898
|
+
"type": "string"
|
|
13899
|
+
}
|
|
13900
|
+
],
|
|
13901
|
+
"type": "object"
|
|
13902
|
+
},
|
|
13756
13903
|
"DescribeTaskResultRequest": {
|
|
13757
13904
|
"document": "DescribeTaskResult请求参数结构体",
|
|
13758
13905
|
"members": [
|
|
@@ -17743,7 +17890,7 @@
|
|
|
17743
17890
|
{
|
|
17744
17891
|
"disabled": false,
|
|
17745
17892
|
"document": "用户Id,和CAM侧Uin匹配",
|
|
17746
|
-
"example": "
|
|
17893
|
+
"example": "1000xxxx8195",
|
|
17747
17894
|
"member": "string",
|
|
17748
17895
|
"name": "UserId",
|
|
17749
17896
|
"required": true,
|
|
@@ -21228,6 +21375,17 @@
|
|
|
21228
21375
|
"required": false,
|
|
21229
21376
|
"type": "int",
|
|
21230
21377
|
"value_allowed_null": false
|
|
21378
|
+
},
|
|
21379
|
+
{
|
|
21380
|
+
"disabled": false,
|
|
21381
|
+
"document": "状态,STARTING、RUNNING、TERMINATED",
|
|
21382
|
+
"example": "RUNNING",
|
|
21383
|
+
"member": "string",
|
|
21384
|
+
"name": "State",
|
|
21385
|
+
"output_required": false,
|
|
21386
|
+
"required": false,
|
|
21387
|
+
"type": "string",
|
|
21388
|
+
"value_allowed_null": false
|
|
21231
21389
|
}
|
|
21232
21390
|
],
|
|
21233
21391
|
"usage": "both"
|
|
@@ -23471,12 +23629,22 @@
|
|
|
23471
23629
|
{
|
|
23472
23630
|
"disabled": false,
|
|
23473
23631
|
"document": "获取结果消耗的时间",
|
|
23474
|
-
"example": "150",
|
|
23632
|
+
"example": "150.1",
|
|
23475
23633
|
"member": "float",
|
|
23476
23634
|
"name": "QueryResultTime",
|
|
23477
23635
|
"output_required": false,
|
|
23478
23636
|
"type": "float",
|
|
23479
23637
|
"value_allowed_null": false
|
|
23638
|
+
},
|
|
23639
|
+
{
|
|
23640
|
+
"disabled": false,
|
|
23641
|
+
"document": "base64 编码结果集",
|
|
23642
|
+
"example": "fd19j9u1jc1j",
|
|
23643
|
+
"member": "string",
|
|
23644
|
+
"name": "ResultSetEncode",
|
|
23645
|
+
"output_required": false,
|
|
23646
|
+
"type": "string",
|
|
23647
|
+
"value_allowed_null": false
|
|
23480
23648
|
}
|
|
23481
23649
|
],
|
|
23482
23650
|
"usage": "out"
|
|
@@ -23761,7 +23929,7 @@
|
|
|
23761
23929
|
{
|
|
23762
23930
|
"disabled": false,
|
|
23763
23931
|
"document": "网络配置名称",
|
|
23764
|
-
"example": "
|
|
23932
|
+
"example": "connection_tmp",
|
|
23765
23933
|
"member": "string",
|
|
23766
23934
|
"name": "NetworkConnectionName",
|
|
23767
23935
|
"required": false,
|
|
@@ -24316,7 +24484,7 @@
|
|
|
24316
24484
|
{
|
|
24317
24485
|
"disabled": false,
|
|
24318
24486
|
"document": "引擎资源组名称",
|
|
24319
|
-
"example": "
|
|
24487
|
+
"example": "rg-1",
|
|
24320
24488
|
"member": "string",
|
|
24321
24489
|
"name": "EngineResourceGroupName",
|
|
24322
24490
|
"required": true,
|
|
@@ -24325,7 +24493,7 @@
|
|
|
24325
24493
|
{
|
|
24326
24494
|
"disabled": false,
|
|
24327
24495
|
"document": "driver的cu规格:\n当前支持:small(默认,1cu)、medium(2cu)、large(4cu)、xlarge(8cu),内存型cu为cpu:men=1:8,m.small(1cu内存型)、m.medium(2cu内存型)、m.large(4cu内存型)、m.xlarge(8cu内存型)",
|
|
24328
|
-
"example": "
|
|
24496
|
+
"example": "small",
|
|
24329
24497
|
"member": "string",
|
|
24330
24498
|
"name": "DriverCuSpec",
|
|
24331
24499
|
"required": false,
|
|
@@ -24334,7 +24502,7 @@
|
|
|
24334
24502
|
{
|
|
24335
24503
|
"disabled": false,
|
|
24336
24504
|
"document": "executor的cu规格:\n当前支持:small(默认,1cu)、medium(2cu)、large(4cu)、xlarge(8cu),内存型cu为cpu:men=1:8,m.small(1cu内存型)、m.medium(2cu内存型)、m.large(4cu内存型)、m.xlarge(8cu内存型)",
|
|
24337
|
-
"example": "
|
|
24505
|
+
"example": "small",
|
|
24338
24506
|
"member": "string",
|
|
24339
24507
|
"name": "ExecutorCuSpec",
|
|
24340
24508
|
"required": false,
|
|
@@ -24343,7 +24511,7 @@
|
|
|
24343
24511
|
{
|
|
24344
24512
|
"disabled": false,
|
|
24345
24513
|
"document": "executor最小数量,",
|
|
24346
|
-
"example": "
|
|
24514
|
+
"example": "1",
|
|
24347
24515
|
"member": "int64",
|
|
24348
24516
|
"name": "MinExecutorNums",
|
|
24349
24517
|
"required": false,
|
|
@@ -24352,7 +24520,7 @@
|
|
|
24352
24520
|
{
|
|
24353
24521
|
"disabled": false,
|
|
24354
24522
|
"document": "executor最大数量",
|
|
24355
|
-
"example": "
|
|
24523
|
+
"example": "1",
|
|
24356
24524
|
"member": "int64",
|
|
24357
24525
|
"name": "MaxExecutorNums",
|
|
24358
24526
|
"required": false,
|
|
@@ -24361,7 +24529,7 @@
|
|
|
24361
24529
|
{
|
|
24362
24530
|
"disabled": false,
|
|
24363
24531
|
"document": "是否立即重启资源组生效,0--立即生效,1--只保持不重启生效",
|
|
24364
|
-
"example": "
|
|
24532
|
+
"example": "1",
|
|
24365
24533
|
"member": "int64",
|
|
24366
24534
|
"name": "IsEffectiveNow",
|
|
24367
24535
|
"required": false,
|
|
@@ -24465,6 +24633,51 @@
|
|
|
24465
24633
|
"name": "SparkSize",
|
|
24466
24634
|
"required": false,
|
|
24467
24635
|
"type": "int"
|
|
24636
|
+
},
|
|
24637
|
+
{
|
|
24638
|
+
"disabled": false,
|
|
24639
|
+
"document": "gpuDriver规格",
|
|
24640
|
+
"example": "1",
|
|
24641
|
+
"member": "int64",
|
|
24642
|
+
"name": "DriverGPUSpec",
|
|
24643
|
+
"required": false,
|
|
24644
|
+
"type": "int"
|
|
24645
|
+
},
|
|
24646
|
+
{
|
|
24647
|
+
"disabled": false,
|
|
24648
|
+
"document": "gpuExcutor 规格",
|
|
24649
|
+
"example": "1",
|
|
24650
|
+
"member": "int64",
|
|
24651
|
+
"name": "ExecutorGPUSpec",
|
|
24652
|
+
"required": false,
|
|
24653
|
+
"type": "int"
|
|
24654
|
+
},
|
|
24655
|
+
{
|
|
24656
|
+
"disabled": false,
|
|
24657
|
+
"document": "gpu 上限",
|
|
24658
|
+
"example": "1",
|
|
24659
|
+
"member": "int64",
|
|
24660
|
+
"name": "GPULimitSize",
|
|
24661
|
+
"required": false,
|
|
24662
|
+
"type": "int"
|
|
24663
|
+
},
|
|
24664
|
+
{
|
|
24665
|
+
"disabled": false,
|
|
24666
|
+
"document": "gpu 规格",
|
|
24667
|
+
"example": "1",
|
|
24668
|
+
"member": "int64",
|
|
24669
|
+
"name": "GPUSize",
|
|
24670
|
+
"required": false,
|
|
24671
|
+
"type": "int"
|
|
24672
|
+
},
|
|
24673
|
+
{
|
|
24674
|
+
"disabled": false,
|
|
24675
|
+
"document": "gpupod 规格",
|
|
24676
|
+
"example": "1",
|
|
24677
|
+
"member": "int64",
|
|
24678
|
+
"name": "PythonGPUSpec",
|
|
24679
|
+
"required": false,
|
|
24680
|
+
"type": "int"
|
|
24468
24681
|
}
|
|
24469
24682
|
],
|
|
24470
24683
|
"type": "object"
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
{
|
|
205
205
|
"document": "",
|
|
206
206
|
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDataMaskStrategy\n<公共请求参数>\n\n{\n \"Strategy\": {\n \"StrategyName\": \"create_data_mask_tag\",\n \"Groups\": [\n {\n \"WorkGroupId\": 46920,\n \"StrategyType\": \"MASK_HASH\"\n }\n ]\n }\n}",
|
|
207
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"812228c6-45c7-43a2-af77-c7e67dc0b524\"\n }\n}",
|
|
207
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"812228c6-45c7-43a2-af77-c7e67dc0b524\",\n \"StrategyId\": \"71a88499-266f-4b24-9944-2d80078ec0a6\"\n }\n}",
|
|
208
208
|
"title": "创建数据脱敏策略"
|
|
209
209
|
}
|
|
210
210
|
],
|
|
@@ -938,6 +938,14 @@
|
|
|
938
938
|
"title": "获取任务监控信息"
|
|
939
939
|
}
|
|
940
940
|
],
|
|
941
|
+
"DescribeTaskResourceUsage": [
|
|
942
|
+
{
|
|
943
|
+
"document": "",
|
|
944
|
+
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskResourceUsage\n<公共请求参数>\n\n{\n \"TaskInstanceId\": \"15eb48854c1c11f083e8525400e26adf\"\n}",
|
|
945
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"请求ID的值\",\n \"CoreInfo\": {\n \"Timestamp\": [\n 1750238853000\n ],\n \"CoreUsage\": [\n 1\n ]\n }\n }\n}",
|
|
946
|
+
"title": "任务洞察资源用量"
|
|
947
|
+
}
|
|
948
|
+
],
|
|
941
949
|
"DescribeTaskResult": [
|
|
942
950
|
{
|
|
943
951
|
"document": "查询任务结果,每次返回1000行数据",
|
|
@@ -1357,9 +1365,9 @@
|
|
|
1357
1365
|
"UnboundDatasourceHouse": [
|
|
1358
1366
|
{
|
|
1359
1367
|
"document": "",
|
|
1360
|
-
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UnboundDatasourceHouse\n<公共请求参数>\n\n{\n \"NetworkConnectionName\": \"
|
|
1361
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
|
1362
|
-
"title": "
|
|
1368
|
+
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UnboundDatasourceHouse\n<公共请求参数>\n\n{\n \"NetworkConnectionName\": \"connection_tmp\"\n}",
|
|
1369
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"sjeisds-23dskda-ekdo2-dsaoe1-1erewr\"\n }\n}",
|
|
1370
|
+
"title": "UnboundDatasourceHouse"
|
|
1363
1371
|
}
|
|
1364
1372
|
],
|
|
1365
1373
|
"UnlockMetaData": [
|
|
@@ -2201,6 +2201,58 @@ def doDeleteDomainCustomLine(args, parsed_globals):
|
|
|
2201
2201
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2202
2202
|
|
|
2203
2203
|
|
|
2204
|
+
def doModifyDomainRecursiveStatusBatch(args, parsed_globals):
|
|
2205
|
+
g_param = parse_global_arg(parsed_globals)
|
|
2206
|
+
|
|
2207
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
2208
|
+
cred = credential.CVMRoleCredential()
|
|
2209
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
2210
|
+
cred = credential.STSAssumeRoleCredential(
|
|
2211
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2212
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2213
|
+
)
|
|
2214
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2215
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2216
|
+
else:
|
|
2217
|
+
cred = credential.Credential(
|
|
2218
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
2219
|
+
)
|
|
2220
|
+
http_profile = HttpProfile(
|
|
2221
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
2222
|
+
reqMethod="POST",
|
|
2223
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2224
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2225
|
+
)
|
|
2226
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
2227
|
+
if g_param[OptionsDefine.Language]:
|
|
2228
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
2229
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2230
|
+
client = mod.DnspodClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2231
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
2232
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2233
|
+
model = models.ModifyDomainRecursiveStatusBatchRequest()
|
|
2234
|
+
model.from_json_string(json.dumps(args))
|
|
2235
|
+
start_time = time.time()
|
|
2236
|
+
while True:
|
|
2237
|
+
rsp = client.ModifyDomainRecursiveStatusBatch(model)
|
|
2238
|
+
result = rsp.to_json_string()
|
|
2239
|
+
try:
|
|
2240
|
+
json_obj = json.loads(result)
|
|
2241
|
+
except TypeError as e:
|
|
2242
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
2243
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
2244
|
+
break
|
|
2245
|
+
cur_time = time.time()
|
|
2246
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
2247
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
2248
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
2249
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
2250
|
+
else:
|
|
2251
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
2252
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
2253
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2254
|
+
|
|
2255
|
+
|
|
2204
2256
|
def doDescribeDomainAliasList(args, parsed_globals):
|
|
2205
2257
|
g_param = parse_global_arg(parsed_globals)
|
|
2206
2258
|
|
|
@@ -3761,6 +3813,58 @@ def doModifyRecordStatus(args, parsed_globals):
|
|
|
3761
3813
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3762
3814
|
|
|
3763
3815
|
|
|
3816
|
+
def doModifyDomainCNAMESpeedupStatusBatch(args, parsed_globals):
|
|
3817
|
+
g_param = parse_global_arg(parsed_globals)
|
|
3818
|
+
|
|
3819
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
3820
|
+
cred = credential.CVMRoleCredential()
|
|
3821
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
3822
|
+
cred = credential.STSAssumeRoleCredential(
|
|
3823
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3824
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3825
|
+
)
|
|
3826
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3827
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3828
|
+
else:
|
|
3829
|
+
cred = credential.Credential(
|
|
3830
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
3831
|
+
)
|
|
3832
|
+
http_profile = HttpProfile(
|
|
3833
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
3834
|
+
reqMethod="POST",
|
|
3835
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3836
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3837
|
+
)
|
|
3838
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
3839
|
+
if g_param[OptionsDefine.Language]:
|
|
3840
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
3841
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3842
|
+
client = mod.DnspodClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3843
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
3844
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3845
|
+
model = models.ModifyDomainCNAMESpeedupStatusBatchRequest()
|
|
3846
|
+
model.from_json_string(json.dumps(args))
|
|
3847
|
+
start_time = time.time()
|
|
3848
|
+
while True:
|
|
3849
|
+
rsp = client.ModifyDomainCNAMESpeedupStatusBatch(model)
|
|
3850
|
+
result = rsp.to_json_string()
|
|
3851
|
+
try:
|
|
3852
|
+
json_obj = json.loads(result)
|
|
3853
|
+
except TypeError as e:
|
|
3854
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
3855
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
3856
|
+
break
|
|
3857
|
+
cur_time = time.time()
|
|
3858
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
3859
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
3860
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
3861
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
3862
|
+
else:
|
|
3863
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
3864
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
3865
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3866
|
+
|
|
3867
|
+
|
|
3764
3868
|
def doModifyDomainCustomLine(args, parsed_globals):
|
|
3765
3869
|
g_param = parse_global_arg(parsed_globals)
|
|
3766
3870
|
|
|
@@ -4802,6 +4906,7 @@ ACTION_MAP = {
|
|
|
4802
4906
|
"DescribeDomainVipList": doDescribeDomainVipList,
|
|
4803
4907
|
"DescribeDomainShareInfo": doDescribeDomainShareInfo,
|
|
4804
4908
|
"DeleteDomainCustomLine": doDeleteDomainCustomLine,
|
|
4909
|
+
"ModifyDomainRecursiveStatusBatch": doModifyDomainRecursiveStatusBatch,
|
|
4805
4910
|
"DescribeDomainAliasList": doDescribeDomainAliasList,
|
|
4806
4911
|
"DescribeSnapshotList": doDescribeSnapshotList,
|
|
4807
4912
|
"CreateSubDomainsAnalyticsFile": doCreateSubDomainsAnalyticsFile,
|
|
@@ -4832,6 +4937,7 @@ ACTION_MAP = {
|
|
|
4832
4937
|
"DeleteRecordGroup": doDeleteRecordGroup,
|
|
4833
4938
|
"DownloadSnapshot": doDownloadSnapshot,
|
|
4834
4939
|
"ModifyRecordStatus": doModifyRecordStatus,
|
|
4940
|
+
"ModifyDomainCNAMESpeedupStatusBatch": doModifyDomainCNAMESpeedupStatusBatch,
|
|
4835
4941
|
"ModifyDomainCustomLine": doModifyDomainCustomLine,
|
|
4836
4942
|
"DescribeVASStatistic": doDescribeVASStatistic,
|
|
4837
4943
|
"DeleteShareDomain": doDeleteShareDomain,
|