tccli 3.0.1092.1__py2.py3-none-any.whl → 3.0.1093.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/examples/ess/v20201111/CreateOrganizationAuthUrl.md +11 -1
- tccli/examples/rce/v20201103/ManageMarketingRisk.md +19 -56
- tccli/examples/svp/v20240125/CreateSavingPlanOrder.md +1 -1
- tccli/examples/tke/v20180525/DescribeSupportedRuntime.md +25 -0
- tccli/examples/tke/v20180525/ModifyClusterRuntimeConfig.md +27 -0
- tccli/examples/vod/v20180717/CreateSubAppId.md +1 -1
- tccli/examples/vod/v20180717/DescribeAdaptiveDynamicStreamingTemplates.md +5 -1
- tccli/examples/vod/v20180717/DescribeSubAppIds.md +8 -8
- tccli/examples/vod/v20180717/ModifySubAppIdInfo.md +3 -3
- tccli/examples/vod/v20180717/ModifySubAppIdStatus.md +1 -1
- tccli/services/aiart/v20221229/api.json +19 -0
- tccli/services/asr/v20190614/api.json +4 -4
- tccli/services/bsca/v20210811/api.json +19 -1
- tccli/services/ccc/v20200210/api.json +12 -12
- tccli/services/domain/v20180808/api.json +10 -10
- tccli/services/dts/v20211206/api.json +2 -2
- tccli/services/ess/v20201111/api.json +193 -1
- tccli/services/ess/v20201111/examples.json +2 -2
- tccli/services/lcic/v20220817/api.json +49 -0
- tccli/services/lke/v20231130/api.json +11 -1
- tccli/services/ocr/v20181119/api.json +24 -15
- tccli/services/rce/v20201103/api.json +4 -4
- tccli/services/rce/v20201103/examples.json +3 -3
- tccli/services/svp/v20240125/examples.json +1 -1
- tccli/services/tat/v20201028/api.json +3 -3
- tccli/services/tke/tke_client.py +106 -0
- tccli/services/tke/v20180525/api.json +229 -17
- tccli/services/tke/v20180525/examples.json +17 -1
- tccli/services/vod/v20180717/api.json +24 -24
- tccli/services/vod/v20180717/examples.json +8 -8
- {tccli-3.0.1092.1.dist-info → tccli-3.0.1093.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1092.1.dist-info → tccli-3.0.1093.1.dist-info}/RECORD +36 -34
- {tccli-3.0.1092.1.dist-info → tccli-3.0.1093.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1092.1.dist-info → tccli-3.0.1093.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1092.1.dist-info → tccli-3.0.1093.1.dist-info}/license_files/LICENSE +0 -0
@@ -4415,12 +4415,204 @@
|
|
4415
4415
|
},
|
4416
4416
|
"CreateOrganizationAuthUrlRequest": {
|
4417
4417
|
"document": "CreateOrganizationAuthUrl请求参数结构体",
|
4418
|
-
"members": [
|
4418
|
+
"members": [
|
4419
|
+
{
|
4420
|
+
"disabled": false,
|
4421
|
+
"document": "操作人信息",
|
4422
|
+
"example": "无",
|
4423
|
+
"member": "UserInfo",
|
4424
|
+
"name": "Operator",
|
4425
|
+
"required": true,
|
4426
|
+
"type": "object"
|
4427
|
+
},
|
4428
|
+
{
|
4429
|
+
"disabled": false,
|
4430
|
+
"document": "指定授权方式 支持多选:\n1-上传授权书方式\n2- 法人授权方式\n3- 法人身份认证方式",
|
4431
|
+
"example": "无",
|
4432
|
+
"member": "uint64",
|
4433
|
+
"name": "AuthorizationTypes",
|
4434
|
+
"required": false,
|
4435
|
+
"type": "list"
|
4436
|
+
},
|
4437
|
+
{
|
4438
|
+
"disabled": false,
|
4439
|
+
"document": "企业名称\nEndPointType=“H5”或者\"SHORT_H5\"时,该参数必填\n",
|
4440
|
+
"example": "无",
|
4441
|
+
"member": "string",
|
4442
|
+
"name": "OrganizationName",
|
4443
|
+
"required": false,
|
4444
|
+
"type": "string"
|
4445
|
+
},
|
4446
|
+
{
|
4447
|
+
"disabled": false,
|
4448
|
+
"document": "企业统一社会信用代码",
|
4449
|
+
"example": "无",
|
4450
|
+
"member": "string",
|
4451
|
+
"name": "UniformSocialCreditCode",
|
4452
|
+
"required": false,
|
4453
|
+
"type": "string"
|
4454
|
+
},
|
4455
|
+
{
|
4456
|
+
"disabled": false,
|
4457
|
+
"document": "法人姓名",
|
4458
|
+
"example": "无",
|
4459
|
+
"member": "string",
|
4460
|
+
"name": "LegalName",
|
4461
|
+
"required": false,
|
4462
|
+
"type": "string"
|
4463
|
+
},
|
4464
|
+
{
|
4465
|
+
"disabled": false,
|
4466
|
+
"document": "认证完成跳转链接",
|
4467
|
+
"example": "无",
|
4468
|
+
"member": "string",
|
4469
|
+
"name": "AutoJumpUrl",
|
4470
|
+
"required": false,
|
4471
|
+
"type": "string"
|
4472
|
+
},
|
4473
|
+
{
|
4474
|
+
"disabled": false,
|
4475
|
+
"document": "营业执照企业地址\n示例:xx省xx市xx县/区xx街道",
|
4476
|
+
"example": "无",
|
4477
|
+
"member": "string",
|
4478
|
+
"name": "OrganizationAddress",
|
4479
|
+
"required": false,
|
4480
|
+
"type": "string"
|
4481
|
+
},
|
4482
|
+
{
|
4483
|
+
"disabled": false,
|
4484
|
+
"document": "认证人姓名",
|
4485
|
+
"example": "无",
|
4486
|
+
"member": "string",
|
4487
|
+
"name": "AdminName",
|
4488
|
+
"required": false,
|
4489
|
+
"type": "string"
|
4490
|
+
},
|
4491
|
+
{
|
4492
|
+
"disabled": false,
|
4493
|
+
"document": "认证人手机号",
|
4494
|
+
"example": "无",
|
4495
|
+
"member": "string",
|
4496
|
+
"name": "AdminMobile",
|
4497
|
+
"required": false,
|
4498
|
+
"type": "string"
|
4499
|
+
},
|
4500
|
+
{
|
4501
|
+
"disabled": false,
|
4502
|
+
"document": "认证人身份证号",
|
4503
|
+
"example": "无",
|
4504
|
+
"member": "string",
|
4505
|
+
"name": "AdminIdCardNumber",
|
4506
|
+
"required": false,
|
4507
|
+
"type": "string"
|
4508
|
+
},
|
4509
|
+
{
|
4510
|
+
"disabled": false,
|
4511
|
+
"document": "认证人证件类型\n支持以下类型\n<ul><li>ID_CARD : 居民身份证 (默认值)</li>\n<li>HONGKONG_AND_MACAO : 港澳居民来往内地通行证</li>\n<li>HONGKONG_MACAO_AND_TAIWAN : 港澳台居民居住证(格式同居民身份证)</li></ul>\n",
|
4512
|
+
"example": "无",
|
4513
|
+
"member": "string",
|
4514
|
+
"name": "AdminIdCardType",
|
4515
|
+
"required": false,
|
4516
|
+
"type": "string"
|
4517
|
+
},
|
4518
|
+
{
|
4519
|
+
"disabled": false,
|
4520
|
+
"document": "营业执照的社会信用代码保持一致\nfalse 关闭-默认\ntrue 开启",
|
4521
|
+
"example": "无",
|
4522
|
+
"member": "bool",
|
4523
|
+
"name": "UniformSocialCreditCodeSame",
|
4524
|
+
"required": false,
|
4525
|
+
"type": "bool"
|
4526
|
+
},
|
4527
|
+
{
|
4528
|
+
"disabled": false,
|
4529
|
+
"document": "法人姓名保持一致\nfalse 关闭-默认\ntrue 开启",
|
4530
|
+
"example": "无",
|
4531
|
+
"member": "bool",
|
4532
|
+
"name": "LegalNameSame",
|
4533
|
+
"required": false,
|
4534
|
+
"type": "bool"
|
4535
|
+
},
|
4536
|
+
{
|
4537
|
+
"disabled": false,
|
4538
|
+
"document": "认证人姓名一致\nfalse 关闭-默认\ntrue 开启\n注意:\n开启后在认证过程前会校验拦截",
|
4539
|
+
"example": "无",
|
4540
|
+
"member": "bool",
|
4541
|
+
"name": "AdminNameSame",
|
4542
|
+
"required": false,
|
4543
|
+
"type": "bool"
|
4544
|
+
},
|
4545
|
+
{
|
4546
|
+
"disabled": false,
|
4547
|
+
"document": "认证人居民身份证件号一致\nfalse 关闭-默认\ntrue 开启\n注意:\n开启后在认证过程前会校验拦截",
|
4548
|
+
"example": "无",
|
4549
|
+
"member": "bool",
|
4550
|
+
"name": "AdminIdCardNumberSame",
|
4551
|
+
"required": false,
|
4552
|
+
"type": "bool"
|
4553
|
+
},
|
4554
|
+
{
|
4555
|
+
"disabled": false,
|
4556
|
+
"document": "认证人手机号一致\nfalse 关闭-默认\ntrue 开启\n注意:\n开启后在认证过程前会校验拦截",
|
4557
|
+
"example": "无",
|
4558
|
+
"member": "bool",
|
4559
|
+
"name": "AdminMobileSame",
|
4560
|
+
"required": false,
|
4561
|
+
"type": "bool"
|
4562
|
+
},
|
4563
|
+
{
|
4564
|
+
"disabled": false,
|
4565
|
+
"document": "企业名称保持一致\nfalse 关闭-默认\ntrue 开启",
|
4566
|
+
"example": "无",
|
4567
|
+
"member": "bool",
|
4568
|
+
"name": "OrganizationNameSame",
|
4569
|
+
"required": false,
|
4570
|
+
"type": "bool"
|
4571
|
+
},
|
4572
|
+
{
|
4573
|
+
"disabled": false,
|
4574
|
+
"document": "营业执照正面照(PNG或JPG) base64格式, 大小不超过5M",
|
4575
|
+
"example": "无",
|
4576
|
+
"member": "string",
|
4577
|
+
"name": "BusinessLicense",
|
4578
|
+
"required": false,
|
4579
|
+
"type": "string"
|
4580
|
+
},
|
4581
|
+
{
|
4582
|
+
"disabled": false,
|
4583
|
+
"document": "跳转链接类型:\n\"PC\"-PC端认证链接 \n\"APP\"-全屏或半屏跳转小程序链接\n“H5”-H5页面认证链接 \"SHORT_H5\"- H5认证短链\n\"SHORT_URL\"- 跳转小程序短链\t",
|
4584
|
+
"example": "无",
|
4585
|
+
"member": "string",
|
4586
|
+
"name": "Endpoint",
|
4587
|
+
"required": false,
|
4588
|
+
"type": "string"
|
4589
|
+
}
|
4590
|
+
],
|
4419
4591
|
"type": "object"
|
4420
4592
|
},
|
4421
4593
|
"CreateOrganizationAuthUrlResponse": {
|
4422
4594
|
"document": "CreateOrganizationAuthUrl返回参数结构体",
|
4423
4595
|
"members": [
|
4596
|
+
{
|
4597
|
+
"disabled": false,
|
4598
|
+
"document": "“H5”-H5长连接\n\"SHORT_H5\"- H5短链\n\"APP\"-小程序\n\"PC\"-PC浏览器\n链接有效期统一30天",
|
4599
|
+
"example": "无",
|
4600
|
+
"member": "string",
|
4601
|
+
"name": "AuthUrl",
|
4602
|
+
"output_required": true,
|
4603
|
+
"type": "string",
|
4604
|
+
"value_allowed_null": false
|
4605
|
+
},
|
4606
|
+
{
|
4607
|
+
"disabled": false,
|
4608
|
+
"document": "链接过期时间戳",
|
4609
|
+
"example": "无",
|
4610
|
+
"member": "int64",
|
4611
|
+
"name": "ExpiredTime",
|
4612
|
+
"output_required": true,
|
4613
|
+
"type": "int",
|
4614
|
+
"value_allowed_null": false
|
4615
|
+
},
|
4424
4616
|
{
|
4425
4617
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
4426
4618
|
"member": "string",
|
@@ -717,8 +717,8 @@
|
|
717
717
|
"CreateOrganizationAuthUrl": [
|
718
718
|
{
|
719
719
|
"document": "创建企业认证链接",
|
720
|
-
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationAuthUrl\n<公共请求参数>\n\n{}",
|
721
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"s168499xxxxx2608083\"\n }\n}",
|
720
|
+
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationAuthUrl\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDwfsUUckpsqt647UE6uSrk1ZWhYH56z\"\n },\n \"Endpoint\": \"PC\",\n \"AuthorizationTypes\": [\n 1,\n 2,\n 3\n ],\n \"LegalName\": \"11\",\n \"UniformSocialCreditCode\": \"11\",\n \"OrganizationName\": \"测试企业123123\",\n \"AutoJumpUrl\": \"https://xxxx.com.cn/xxx\"\n}",
|
721
|
+
"output": "{\n \"Response\": {\n \"AuthUrl\": \"https://test.qian.tencent.cn/console/register-callback?token=yDwFJUUckpsxxxxxWaLrSa3zzlXQh\",\n \"ExpiredTime\": 1668010213,\n \"RequestId\": \"s168499xxxxx2608083\"\n }\n}",
|
722
722
|
"title": "创建企业认证链接"
|
723
723
|
}
|
724
724
|
],
|
@@ -1340,6 +1340,15 @@
|
|
1340
1340
|
"name": "AutoHandleUnsupportedElement",
|
1341
1341
|
"required": false,
|
1342
1342
|
"type": "bool"
|
1343
|
+
},
|
1344
|
+
{
|
1345
|
+
"disabled": false,
|
1346
|
+
"document": "转码后文档的最小分辨率,不传、传空字符串或分辨率格式错误则使用文档原分辨率。示例:1280x720,注意分辨率宽高中间为英文字母\"xyz\"的\"x\"",
|
1347
|
+
"example": "1280x720",
|
1348
|
+
"member": "string",
|
1349
|
+
"name": "MinScaleResolution",
|
1350
|
+
"required": false,
|
1351
|
+
"type": "string"
|
1343
1352
|
}
|
1344
1353
|
],
|
1345
1354
|
"type": "object"
|
@@ -2536,6 +2545,26 @@
|
|
2536
2545
|
"type": "string",
|
2537
2546
|
"value_allowed_null": false
|
2538
2547
|
},
|
2548
|
+
{
|
2549
|
+
"disabled": false,
|
2550
|
+
"document": "文档的分辨率",
|
2551
|
+
"example": "793x1122",
|
2552
|
+
"member": "string",
|
2553
|
+
"name": "Resolution",
|
2554
|
+
"output_required": false,
|
2555
|
+
"type": "string",
|
2556
|
+
"value_allowed_null": false
|
2557
|
+
},
|
2558
|
+
{
|
2559
|
+
"disabled": false,
|
2560
|
+
"document": "转码后文档的最小分辨率,和创建文档时传入的参数一致。",
|
2561
|
+
"example": "1280x720",
|
2562
|
+
"member": "string",
|
2563
|
+
"name": "MinScaleResolution",
|
2564
|
+
"output_required": false,
|
2565
|
+
"type": "string",
|
2566
|
+
"value_allowed_null": false
|
2567
|
+
},
|
2539
2568
|
{
|
2540
2569
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2541
2570
|
"member": "string",
|
@@ -4035,6 +4064,26 @@
|
|
4035
4064
|
"output_required": true,
|
4036
4065
|
"type": "string",
|
4037
4066
|
"value_allowed_null": true
|
4067
|
+
},
|
4068
|
+
{
|
4069
|
+
"disabled": false,
|
4070
|
+
"document": "文档的分辨率\n注意:此字段可能返回 null,表示取不到有效值。",
|
4071
|
+
"example": "793x1122",
|
4072
|
+
"member": "string",
|
4073
|
+
"name": "Resolution",
|
4074
|
+
"output_required": true,
|
4075
|
+
"type": "string",
|
4076
|
+
"value_allowed_null": true
|
4077
|
+
},
|
4078
|
+
{
|
4079
|
+
"disabled": false,
|
4080
|
+
"document": "转码后文档的最小分辨率,和创建文档时传入的参数一致。\n注意:此字段可能返回 null,表示取不到有效值。",
|
4081
|
+
"example": "1280x720",
|
4082
|
+
"member": "string",
|
4083
|
+
"name": "MinScaleResolution",
|
4084
|
+
"output_required": true,
|
4085
|
+
"type": "string",
|
4086
|
+
"value_allowed_null": true
|
4038
4087
|
}
|
4039
4088
|
],
|
4040
4089
|
"usage": "out"
|
@@ -3226,7 +3226,7 @@
|
|
3226
3226
|
},
|
3227
3227
|
{
|
3228
3228
|
"disabled": false,
|
3229
|
-
"document": "
|
3229
|
+
"document": "文件存储目录",
|
3230
3230
|
"example": "无",
|
3231
3231
|
"member": "string",
|
3232
3232
|
"name": "FilePath",
|
@@ -3254,6 +3254,16 @@
|
|
3254
3254
|
"type": "string",
|
3255
3255
|
"value_allowed_null": false
|
3256
3256
|
},
|
3257
|
+
{
|
3258
|
+
"disabled": false,
|
3259
|
+
"document": "图片存储目录",
|
3260
|
+
"example": "无",
|
3261
|
+
"member": "string",
|
3262
|
+
"name": "ImagePath",
|
3263
|
+
"output_required": false,
|
3264
|
+
"type": "string",
|
3265
|
+
"value_allowed_null": false
|
3266
|
+
},
|
3257
3267
|
{
|
3258
3268
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3259
3269
|
"member": "string",
|
@@ -12644,6 +12644,7 @@
|
|
12644
12644
|
"example": "3102001968756",
|
12645
12645
|
"member": "string",
|
12646
12646
|
"name": "ID",
|
12647
|
+
"output_required": true,
|
12647
12648
|
"type": "string",
|
12648
12649
|
"value_allowed_null": false
|
12649
12650
|
},
|
@@ -12653,6 +12654,7 @@
|
|
12653
12654
|
"example": "นาย ธนกฤต บุญโญปกรุณ์",
|
12654
12655
|
"member": "string",
|
12655
12656
|
"name": "ThaiName",
|
12657
|
+
"output_required": true,
|
12656
12658
|
"type": "string",
|
12657
12659
|
"value_allowed_null": false
|
12658
12660
|
},
|
@@ -12662,51 +12664,57 @@
|
|
12662
12664
|
"example": "Mr. Thanakit",
|
12663
12665
|
"member": "string",
|
12664
12666
|
"name": "EnFirstName",
|
12667
|
+
"output_required": true,
|
12665
12668
|
"type": "string",
|
12666
12669
|
"value_allowed_null": false
|
12667
12670
|
},
|
12668
12671
|
{
|
12669
12672
|
"disabled": false,
|
12670
|
-
"document": "
|
12671
|
-
"example": "
|
12673
|
+
"document": "英文姓名",
|
12674
|
+
"example": "Boonyopakron",
|
12672
12675
|
"member": "string",
|
12673
|
-
"name": "
|
12676
|
+
"name": "EnLastName",
|
12677
|
+
"output_required": true,
|
12674
12678
|
"type": "string",
|
12675
12679
|
"value_allowed_null": false
|
12676
12680
|
},
|
12677
12681
|
{
|
12678
12682
|
"disabled": false,
|
12679
|
-
"document": "
|
12680
|
-
"example": "
|
12683
|
+
"document": "泰文签发日期",
|
12684
|
+
"example": "9ธ.ค.2559",
|
12681
12685
|
"member": "string",
|
12682
|
-
"name": "
|
12686
|
+
"name": "IssueDate",
|
12687
|
+
"output_required": true,
|
12683
12688
|
"type": "string",
|
12684
12689
|
"value_allowed_null": false
|
12685
12690
|
},
|
12686
12691
|
{
|
12687
12692
|
"disabled": false,
|
12688
|
-
"document": "
|
12689
|
-
"example": "
|
12693
|
+
"document": "泰文到期日期",
|
12694
|
+
"example": "13ธ.ค.2567",
|
12690
12695
|
"member": "string",
|
12691
|
-
"name": "
|
12696
|
+
"name": "ExpirationDate",
|
12697
|
+
"output_required": true,
|
12692
12698
|
"type": "string",
|
12693
12699
|
"value_allowed_null": false
|
12694
12700
|
},
|
12695
12701
|
{
|
12696
12702
|
"disabled": false,
|
12697
|
-
"document": "
|
12698
|
-
"example": "
|
12703
|
+
"document": "泰文出生日期",
|
12704
|
+
"example": "14ธ.ค.2509",
|
12699
12705
|
"member": "string",
|
12700
|
-
"name": "
|
12706
|
+
"name": "Birthday",
|
12707
|
+
"output_required": true,
|
12701
12708
|
"type": "string",
|
12702
12709
|
"value_allowed_null": false
|
12703
12710
|
},
|
12704
12711
|
{
|
12705
12712
|
"disabled": false,
|
12706
|
-
"document": "
|
12707
|
-
"example": "
|
12713
|
+
"document": "地址",
|
12714
|
+
"example": "ที่อยู่21/19หมู่ที่3ต.บางคูครัดอ.บางบัวทอง",
|
12708
12715
|
"member": "string",
|
12709
|
-
"name": "
|
12716
|
+
"name": "Address",
|
12717
|
+
"output_required": true,
|
12710
12718
|
"type": "string",
|
12711
12719
|
"value_allowed_null": false
|
12712
12720
|
},
|
@@ -12716,6 +12724,7 @@
|
|
12716
12724
|
"example": "无",
|
12717
12725
|
"member": "string",
|
12718
12726
|
"name": "PortraitImage",
|
12727
|
+
"output_required": true,
|
12719
12728
|
"type": "string",
|
12720
12729
|
"value_allowed_null": false
|
12721
12730
|
},
|
@@ -489,7 +489,7 @@
|
|
489
489
|
"example": "无",
|
490
490
|
"member": "OutputManageMarketingRisk",
|
491
491
|
"name": "Data",
|
492
|
-
"
|
492
|
+
"output_required": true,
|
493
493
|
"type": "object",
|
494
494
|
"value_allowed_null": false
|
495
495
|
},
|
@@ -572,7 +572,7 @@
|
|
572
572
|
},
|
573
573
|
{
|
574
574
|
"disabled": false,
|
575
|
-
"document": "MD5
|
575
|
+
"document": "账号绑定的MD5手机号。\n注释:只支持标准中国大陆11位手机号MD5加密后位的32位小写字符串。",
|
576
576
|
"example": "无",
|
577
577
|
"member": "string",
|
578
578
|
"name": "MobilePhone",
|
@@ -581,7 +581,7 @@
|
|
581
581
|
},
|
582
582
|
{
|
583
583
|
"disabled": false,
|
584
|
-
"document": "
|
584
|
+
"document": "用户设备号,支持IMEI、IMEIMD5、IDFA、IDFAMD5。\n注释:IMEIMD5、IDFAMD5加密方式,对IMEI、IDFA明文进行MD5加密,加密后取32位小写值。",
|
585
585
|
"example": "无",
|
586
586
|
"member": "string",
|
587
587
|
"name": "DeviceId",
|
@@ -730,7 +730,7 @@
|
|
730
730
|
"members": [
|
731
731
|
{
|
732
732
|
"disabled": false,
|
733
|
-
"document": "账号ID:对应输入参数。\n当AccountType为1时,对应QQ的OpenId。\n当AccountType为2时,对应微信的OpenId/UnionId。\n当AccountType为8时,对应IMEI、IDFA、IMEIMD5或者IDFAMD5。\n当AccountType为10004时,对应手机号的MD5值。\n
|
733
|
+
"document": "账号ID:对应输入参数。\n当AccountType为1时,对应QQ的OpenId。\n当AccountType为2时,对应微信的OpenId/UnionId。\n当AccountType为8时,对应IMEI、IDFA、IMEIMD5或者IDFAMD5。\n当AccountType为10004时,对应手机号的MD5值。\n注意:此字段可能返回 null,表示取不到有效值。",
|
734
734
|
"example": "3ac9aa8a9a0074918763bfd6ed526ed9",
|
735
735
|
"member": "string",
|
736
736
|
"name": "UserId",
|
@@ -18,9 +18,9 @@
|
|
18
18
|
],
|
19
19
|
"ManageMarketingRisk": [
|
20
20
|
{
|
21
|
-
"document": "",
|
22
|
-
"input": "POST / HTTP/1.1\nHost: rce.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ManageMarketingRisk\n<公共请求参数>\n\n{\n \"BusinessSecurityData\": {\n \"
|
23
|
-
"output": "{\n \"Response\": {\n \"Data\": {\n \"Code\": 0,\n \"Message\": \"OK\",\n \"Value\": {\n \"
|
21
|
+
"document": "使用手机号MD5请求方式",
|
22
|
+
"input": "POST / HTTP/1.1\nHost: rce.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ManageMarketingRisk\n<公共请求参数>\n\n{\n \"BusinessSecurityData\": {\n \"Account\": {\n \"AccountType\": 10004,\n \"OtherAccount\": {\n \"AccountId\": \"3ac9aa********************526ed9\"\n }\n },\n \"SceneCode\": \"e_activity_antirush\",\n \"UserIp\": \"113.***.***.150\",\n \"PostTime\": 1712841851\n }\n}",
|
23
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"Code\": 0,\n \"Message\": \"OK\",\n \"UUid\": \"9a570741-****-****-****-****0b788232\",\n \"Value\": {\n \"AssociateAccount\": \"\",\n \"ConstId\": \"\",\n \"PostTime\": 1712841851,\n \"RiskInformation\": null,\n \"RiskLevel\": \"reject\",\n \"RiskType\": [\n 201,\n 1,\n 21,\n 11,\n 2011\n ],\n \"UserId\": \"3ac9aa********************526ed9\",\n \"UserIp\": \"113.***.***.150\"\n }\n },\n \"RequestId\": \"5d9e8c5d-****-****-****-1c0dca666edb\"\n }\n}",
|
24
24
|
"title": "ManageMarketingRisk"
|
25
25
|
}
|
26
26
|
]
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"CreateSavingPlanOrder": [
|
4
4
|
{
|
5
5
|
"document": "",
|
6
|
-
"input": "POST / HTTP/1.1\nHost: svp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSavingPlanOrder\n<公共请求参数>\n\n{\n \"RegionId\": 47,\n \"ZoneId\": 470004,\n \"PrePayType\": \"1\",\n \"SpecifyEffectTime\": \"2023-10-21 00:00:00\",\n \"TimeSpan\": 1,\n \"TimeUnit\": \"y\",\n \"CommodityCode\": \"svp_common_CYq7cGNk3FaV\",\n \"PromiseUseAmount\": 10000,\n \"ClientToken\": \"sp-856f5555
|
6
|
+
"input": "POST / HTTP/1.1\nHost: svp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSavingPlanOrder\n<公共请求参数>\n\n{\n \"RegionId\": 47,\n \"ZoneId\": 470004,\n \"PrePayType\": \"1\",\n \"SpecifyEffectTime\": \"2023-10-21 00:00:00\",\n \"TimeSpan\": 1,\n \"TimeUnit\": \"y\",\n \"CommodityCode\": \"svp_common_CYq7cGNk3FaV\",\n \"PromiseUseAmount\": 10000,\n \"ClientToken\": \"sp-856f5555\"\n}",
|
7
7
|
"output": "{\n \"Response\": {\n \"BigDealId\": \"20231020400000764159521\",\n \"RequestId\": \"7525ef6b-ac63-4fa6-9bd4-d8c3c8b96220\"\n }\n}",
|
8
8
|
"title": "节省计划下单"
|
9
9
|
}
|
@@ -1798,12 +1798,12 @@
|
|
1798
1798
|
"type": "object"
|
1799
1799
|
},
|
1800
1800
|
"Filter": {
|
1801
|
-
"document": "
|
1801
|
+
"document": "> 描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等\n> - 若存在多个`Filter`时,`Filter`间的关系为逻辑与(`AND`)关系。\n> - 若同一个`Filter`存在多个`Values`,同一`Filter`下`Values`间的关系为逻辑或(`OR`)关系。\n> \n> 以[DescribeCommands](https://cloud.tencent.com/document/api/1340/52681)接口的`Filters`为例。若我们需要查询命令名称(`command-name`)为 “打印工作目录” ***并且*** 命令类型(`command-type`)为 “POWERSHELL” ***或者*** “BAT” 时,可如下实现:\n```\nFilters.0.Name=command-name\n&Filters.0.Values.0=打印工作目录\n\n&Filters.1.Name=command-type\n&Filters.1.Values.0=POWERSHELL\n&Filters.1.Values.1=BAT\n```",
|
1802
1802
|
"members": [
|
1803
1803
|
{
|
1804
1804
|
"disabled": false,
|
1805
1805
|
"document": "需要过滤的字段。",
|
1806
|
-
"example": "
|
1806
|
+
"example": "command-type",
|
1807
1807
|
"member": "string",
|
1808
1808
|
"name": "Name",
|
1809
1809
|
"required": true,
|
@@ -1812,7 +1812,7 @@
|
|
1812
1812
|
{
|
1813
1813
|
"disabled": false,
|
1814
1814
|
"document": "字段的过滤值。",
|
1815
|
-
"example": "
|
1815
|
+
"example": "[\"POWERSHELL\", \"BAT\"]",
|
1816
1816
|
"member": "string",
|
1817
1817
|
"name": "Values",
|
1818
1818
|
"required": true,
|
tccli/services/tke/tke_client.py
CHANGED
@@ -227,6 +227,58 @@ def doCreateCluster(args, parsed_globals):
|
|
227
227
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
228
228
|
|
229
229
|
|
230
|
+
def doDescribeSupportedRuntime(args, parsed_globals):
|
231
|
+
g_param = parse_global_arg(parsed_globals)
|
232
|
+
|
233
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
234
|
+
cred = credential.CVMRoleCredential()
|
235
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
236
|
+
cred = credential.STSAssumeRoleCredential(
|
237
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
238
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
239
|
+
)
|
240
|
+
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):
|
241
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
242
|
+
else:
|
243
|
+
cred = credential.Credential(
|
244
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
245
|
+
)
|
246
|
+
http_profile = HttpProfile(
|
247
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
248
|
+
reqMethod="POST",
|
249
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
250
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
251
|
+
)
|
252
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
253
|
+
if g_param[OptionsDefine.Language]:
|
254
|
+
profile.language = g_param[OptionsDefine.Language]
|
255
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
256
|
+
client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
|
257
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
258
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
259
|
+
model = models.DescribeSupportedRuntimeRequest()
|
260
|
+
model.from_json_string(json.dumps(args))
|
261
|
+
start_time = time.time()
|
262
|
+
while True:
|
263
|
+
rsp = client.DescribeSupportedRuntime(model)
|
264
|
+
result = rsp.to_json_string()
|
265
|
+
try:
|
266
|
+
json_obj = json.loads(result)
|
267
|
+
except TypeError as e:
|
268
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
269
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
270
|
+
break
|
271
|
+
cur_time = time.time()
|
272
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
273
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
274
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
275
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
276
|
+
else:
|
277
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
278
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
279
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
280
|
+
|
281
|
+
|
230
282
|
def doCreateClusterVirtualNodePool(args, parsed_globals):
|
231
283
|
g_param = parse_global_arg(parsed_globals)
|
232
284
|
|
@@ -11355,6 +11407,58 @@ def doCreateClusterEndpointVip(args, parsed_globals):
|
|
11355
11407
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
11356
11408
|
|
11357
11409
|
|
11410
|
+
def doModifyClusterRuntimeConfig(args, parsed_globals):
|
11411
|
+
g_param = parse_global_arg(parsed_globals)
|
11412
|
+
|
11413
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
11414
|
+
cred = credential.CVMRoleCredential()
|
11415
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
11416
|
+
cred = credential.STSAssumeRoleCredential(
|
11417
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
11418
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
11419
|
+
)
|
11420
|
+
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):
|
11421
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
11422
|
+
else:
|
11423
|
+
cred = credential.Credential(
|
11424
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
11425
|
+
)
|
11426
|
+
http_profile = HttpProfile(
|
11427
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
11428
|
+
reqMethod="POST",
|
11429
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
11430
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
11431
|
+
)
|
11432
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
11433
|
+
if g_param[OptionsDefine.Language]:
|
11434
|
+
profile.language = g_param[OptionsDefine.Language]
|
11435
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
11436
|
+
client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
|
11437
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
11438
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
11439
|
+
model = models.ModifyClusterRuntimeConfigRequest()
|
11440
|
+
model.from_json_string(json.dumps(args))
|
11441
|
+
start_time = time.time()
|
11442
|
+
while True:
|
11443
|
+
rsp = client.ModifyClusterRuntimeConfig(model)
|
11444
|
+
result = rsp.to_json_string()
|
11445
|
+
try:
|
11446
|
+
json_obj = json.loads(result)
|
11447
|
+
except TypeError as e:
|
11448
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
11449
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
11450
|
+
break
|
11451
|
+
cur_time = time.time()
|
11452
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
11453
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
11454
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
11455
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
11456
|
+
else:
|
11457
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
11458
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
11459
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
11460
|
+
|
11461
|
+
|
11358
11462
|
def doDescribeRouteTableConflicts(args, parsed_globals):
|
11359
11463
|
g_param = parse_global_arg(parsed_globals)
|
11360
11464
|
|
@@ -11424,6 +11528,7 @@ ACTION_MAP = {
|
|
11424
11528
|
"CreateECMInstances": doCreateECMInstances,
|
11425
11529
|
"DescribeClusterVirtualNode": doDescribeClusterVirtualNode,
|
11426
11530
|
"CreateCluster": doCreateCluster,
|
11531
|
+
"DescribeSupportedRuntime": doDescribeSupportedRuntime,
|
11427
11532
|
"CreateClusterVirtualNodePool": doCreateClusterVirtualNodePool,
|
11428
11533
|
"GetTkeAppChartList": doGetTkeAppChartList,
|
11429
11534
|
"ModifyClusterAsGroupOptionAttribute": doModifyClusterAsGroupOptionAttribute,
|
@@ -11638,6 +11743,7 @@ ACTION_MAP = {
|
|
11638
11743
|
"InstallLogAgent": doInstallLogAgent,
|
11639
11744
|
"CheckEdgeClusterCIDR": doCheckEdgeClusterCIDR,
|
11640
11745
|
"CreateClusterEndpointVip": doCreateClusterEndpointVip,
|
11746
|
+
"ModifyClusterRuntimeConfig": doModifyClusterRuntimeConfig,
|
11641
11747
|
"DescribeRouteTableConflicts": doDescribeRouteTableConflicts,
|
11642
11748
|
|
11643
11749
|
}
|