tccli 3.0.1188.1__py2.py3-none-any.whl → 3.0.1189.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.
- tccli/__init__.py +1 -1
- tccli/services/aiart/aiart_client.py +53 -0
- tccli/services/aiart/v20221229/api.json +107 -0
- tccli/services/aiart/v20221229/examples.json +8 -0
- tccli/services/apm/v20210622/api.json +3 -1
- tccli/services/billing/v20180709/api.json +3 -0
- tccli/services/billing/v20180709/examples.json +1 -1
- tccli/services/cfg/v20210820/api.json +19 -4
- tccli/services/ckafka/v20190819/api.json +5 -5
- tccli/services/dcdb/dcdb_client.py +106 -0
- tccli/services/dcdb/v20180411/api.json +318 -0
- tccli/services/dcdb/v20180411/examples.json +28 -0
- tccli/services/dnspod/dnspod_client.py +53 -0
- tccli/services/dnspod/v20210323/api.json +118 -0
- tccli/services/dnspod/v20210323/examples.json +8 -0
- tccli/services/emr/emr_client.py +269 -4
- tccli/services/emr/v20190103/api.json +591 -0
- tccli/services/emr/v20190103/examples.json +46 -0
- tccli/services/es/es_client.py +53 -0
- tccli/services/es/v20180416/api.json +54 -0
- tccli/services/es/v20180416/examples.json +14 -0
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/ess/v20201111/examples.json +1 -1
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +120 -0
- tccli/services/essbasic/v20210526/examples.json +8 -0
- tccli/services/mariadb/mariadb_client.py +110 -4
- tccli/services/mariadb/v20170312/api.json +318 -0
- tccli/services/mariadb/v20170312/examples.json +16 -0
- tccli/services/ocr/v20181119/api.json +12 -2
- tccli/services/redis/redis_client.py +110 -4
- tccli/services/redis/v20180412/api.json +209 -0
- tccli/services/redis/v20180412/examples.json +16 -0
- tccli/services/teo/v20220901/api.json +14 -14
- tccli/services/tsf/v20180326/api.json +74 -29
- tccli/services/vdb/v20230616/api.json +491 -0
- tccli/services/vdb/v20230616/examples.json +46 -0
- tccli/services/vdb/vdb_client.py +265 -0
- tccli/services/vpc/v20170312/api.json +4 -4
- {tccli-3.0.1188.1.dist-info → tccli-3.0.1189.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1188.1.dist-info → tccli-3.0.1189.1.dist-info}/RECORD +44 -44
- {tccli-3.0.1188.1.dist-info → tccli-3.0.1189.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1188.1.dist-info → tccli-3.0.1189.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1188.1.dist-info → tccli-3.0.1189.1.dist-info}/license_files/LICENSE +0 -0
@@ -98,6 +98,13 @@
|
|
98
98
|
"output": "DescribeAccountsResponse",
|
99
99
|
"status": "online"
|
100
100
|
},
|
101
|
+
"DescribeBackupConfigs": {
|
102
|
+
"document": "本接口(DescribeBackupConfigs)用于查询数据库备份配置信息。",
|
103
|
+
"input": "DescribeBackupConfigsRequest",
|
104
|
+
"name": "查询云数据库备份配置信息",
|
105
|
+
"output": "DescribeBackupConfigsResponse",
|
106
|
+
"status": "online"
|
107
|
+
},
|
101
108
|
"DescribeBackupFiles": {
|
102
109
|
"document": "本接口(DescribeBackupFiles)用于查看备份文件列表。",
|
103
110
|
"input": "DescribeBackupFilesRequest",
|
@@ -364,6 +371,13 @@
|
|
364
371
|
"output": "ModifyAccountPrivilegesResponse",
|
365
372
|
"status": "online"
|
366
373
|
},
|
374
|
+
"ModifyBackupConfigs": {
|
375
|
+
"document": "本接口(ModifyBackupConfigs)用于修改数据库备份配置信息。\n\n1. 修改数据库超期备份配置,目前按年、按月、按日只支持一种,存在互斥关系,如当前策略按年备份,如果传入按月备份策略将会覆盖当前的按年备份策略,务必注意。",
|
376
|
+
"input": "ModifyBackupConfigsRequest",
|
377
|
+
"name": "修改云数据库备份配置信息",
|
378
|
+
"output": "ModifyBackupConfigsResponse",
|
379
|
+
"status": "online"
|
380
|
+
},
|
367
381
|
"ModifyBackupTime": {
|
368
382
|
"document": "本接口(ModifyBackupTime)用于设置云数据库实例的备份时间。后台系统将根据此配置定期进行实例备份。",
|
369
383
|
"input": "ModifyBackupTimeRequest",
|
@@ -642,6 +656,72 @@
|
|
642
656
|
],
|
643
657
|
"type": "object"
|
644
658
|
},
|
659
|
+
"BackupConfig": {
|
660
|
+
"document": "数据库超期备份配置",
|
661
|
+
"members": [
|
662
|
+
{
|
663
|
+
"disabled": false,
|
664
|
+
"document": "备份策略是否启用。",
|
665
|
+
"example": "true",
|
666
|
+
"member": "bool",
|
667
|
+
"name": "EnableBackupPolicy",
|
668
|
+
"output_required": true,
|
669
|
+
"type": "bool",
|
670
|
+
"value_allowed_null": false
|
671
|
+
},
|
672
|
+
{
|
673
|
+
"disabled": false,
|
674
|
+
"document": "超期保留开始日期,早于开始日期的超期备份不保留,格式:yyyy-mm-dd。",
|
675
|
+
"example": "2023-05-30",
|
676
|
+
"member": "string",
|
677
|
+
"name": "BeginDate",
|
678
|
+
"output_required": true,
|
679
|
+
"type": "string",
|
680
|
+
"value_allowed_null": false
|
681
|
+
},
|
682
|
+
{
|
683
|
+
"disabled": false,
|
684
|
+
"document": "超期备份保留时长,超出保留时间的超期备份将被删除,可填写1-3650整数。",
|
685
|
+
"example": "180",
|
686
|
+
"member": "int64",
|
687
|
+
"name": "MaxRetentionDays",
|
688
|
+
"output_required": true,
|
689
|
+
"type": "int",
|
690
|
+
"value_allowed_null": false
|
691
|
+
},
|
692
|
+
{
|
693
|
+
"disabled": false,
|
694
|
+
"document": "备份模式,可选择按年月周模式保存\n* 按年:annually\n* 按月:monthly\n* 按周:weekly",
|
695
|
+
"example": "monthly",
|
696
|
+
"member": "string",
|
697
|
+
"name": "Frequency",
|
698
|
+
"output_required": true,
|
699
|
+
"type": "string",
|
700
|
+
"value_allowed_null": false
|
701
|
+
},
|
702
|
+
{
|
703
|
+
"disabled": false,
|
704
|
+
"document": "Frequency等于weekly时生效。\n表示保留特定工作日备份。可选择周一到周日,支持多选,取星期英文:\n* 星期一 :Monday\n* 星期二 :Tuesday\n* 星期三:Wednesday\n* 星期四:Thursday\n* 星期五:Friday\n* 星期六:Saturday\n* 星期日:Sunday",
|
705
|
+
"example": "Monday",
|
706
|
+
"member": "string",
|
707
|
+
"name": "WeekDays",
|
708
|
+
"output_required": false,
|
709
|
+
"type": "list",
|
710
|
+
"value_allowed_null": false
|
711
|
+
},
|
712
|
+
{
|
713
|
+
"disabled": false,
|
714
|
+
"document": "保留备份个数,Frequency等于monthly或weekly时生效。\n备份模式选择按月时,可填写1-28整数;\n备份模式选择年时,可填写1-336整数。",
|
715
|
+
"example": "10",
|
716
|
+
"member": "int64",
|
717
|
+
"name": "BackupCount",
|
718
|
+
"output_required": false,
|
719
|
+
"type": "int",
|
720
|
+
"value_allowed_null": false
|
721
|
+
}
|
722
|
+
],
|
723
|
+
"usage": "out"
|
724
|
+
},
|
645
725
|
"CancelDcnJobRequest": {
|
646
726
|
"document": "CancelDcnJob请求参数结构体",
|
647
727
|
"members": [
|
@@ -3315,6 +3395,103 @@
|
|
3315
3395
|
],
|
3316
3396
|
"type": "object"
|
3317
3397
|
},
|
3398
|
+
"DescribeBackupConfigsRequest": {
|
3399
|
+
"document": "DescribeBackupConfigs请求参数结构体",
|
3400
|
+
"members": [
|
3401
|
+
{
|
3402
|
+
"disabled": false,
|
3403
|
+
"document": "实例 ID,格式如:tdsql-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。",
|
3404
|
+
"example": "tdsql-c1nl9rpv",
|
3405
|
+
"member": "string",
|
3406
|
+
"name": "InstanceId",
|
3407
|
+
"required": true,
|
3408
|
+
"type": "string"
|
3409
|
+
}
|
3410
|
+
],
|
3411
|
+
"type": "object"
|
3412
|
+
},
|
3413
|
+
"DescribeBackupConfigsResponse": {
|
3414
|
+
"document": "DescribeBackupConfigs返回参数结构体",
|
3415
|
+
"members": [
|
3416
|
+
{
|
3417
|
+
"disabled": false,
|
3418
|
+
"document": "实例 ID。",
|
3419
|
+
"example": "tdsql-c1nl9rpv",
|
3420
|
+
"member": "string",
|
3421
|
+
"name": "InstanceId",
|
3422
|
+
"output_required": true,
|
3423
|
+
"type": "string",
|
3424
|
+
"value_allowed_null": false
|
3425
|
+
},
|
3426
|
+
{
|
3427
|
+
"disabled": false,
|
3428
|
+
"document": "常规备份存储时长,范围[1, 3650]。",
|
3429
|
+
"example": "30",
|
3430
|
+
"member": "uint64",
|
3431
|
+
"name": "Days",
|
3432
|
+
"output_required": true,
|
3433
|
+
"type": "int",
|
3434
|
+
"value_allowed_null": false
|
3435
|
+
},
|
3436
|
+
{
|
3437
|
+
"disabled": false,
|
3438
|
+
"document": "每天备份执行的区间的开始时间,格式 mm:ss,形如 22:00。",
|
3439
|
+
"example": "03:00",
|
3440
|
+
"member": "string",
|
3441
|
+
"name": "StartBackupTime",
|
3442
|
+
"output_required": true,
|
3443
|
+
"type": "string",
|
3444
|
+
"value_allowed_null": false
|
3445
|
+
},
|
3446
|
+
{
|
3447
|
+
"disabled": false,
|
3448
|
+
"document": "每天备份执行的区间的结束时间,格式 mm:ss,形如 23:59。",
|
3449
|
+
"example": "05:59",
|
3450
|
+
"member": "string",
|
3451
|
+
"name": "EndBackupTime",
|
3452
|
+
"output_required": true,
|
3453
|
+
"type": "string",
|
3454
|
+
"value_allowed_null": false
|
3455
|
+
},
|
3456
|
+
{
|
3457
|
+
"disabled": false,
|
3458
|
+
"document": "执行备份周期,枚举值:Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
|
3459
|
+
"example": "[Saturday, Sunday]",
|
3460
|
+
"member": "string",
|
3461
|
+
"name": "WeekDays",
|
3462
|
+
"output_required": true,
|
3463
|
+
"type": "list",
|
3464
|
+
"value_allowed_null": false
|
3465
|
+
},
|
3466
|
+
{
|
3467
|
+
"disabled": false,
|
3468
|
+
"document": "沉降到归档存储时长,-1表示关闭归档设置。",
|
3469
|
+
"example": "91",
|
3470
|
+
"member": "int64",
|
3471
|
+
"name": "ArchiveDays",
|
3472
|
+
"output_required": true,
|
3473
|
+
"type": "int",
|
3474
|
+
"value_allowed_null": false
|
3475
|
+
},
|
3476
|
+
{
|
3477
|
+
"disabled": false,
|
3478
|
+
"document": "超期备份配置。",
|
3479
|
+
"example": "无",
|
3480
|
+
"member": "BackupConfig",
|
3481
|
+
"name": "BackupConfigSet",
|
3482
|
+
"output_required": true,
|
3483
|
+
"type": "list",
|
3484
|
+
"value_allowed_null": false
|
3485
|
+
},
|
3486
|
+
{
|
3487
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3488
|
+
"member": "string",
|
3489
|
+
"name": "RequestId",
|
3490
|
+
"type": "string"
|
3491
|
+
}
|
3492
|
+
],
|
3493
|
+
"type": "object"
|
3494
|
+
},
|
3318
3495
|
"DescribeBackupFilesRequest": {
|
3319
3496
|
"document": "DescribeBackupFiles请求参数结构体",
|
3320
3497
|
"members": [
|
@@ -6567,6 +6744,87 @@
|
|
6567
6744
|
],
|
6568
6745
|
"type": "object"
|
6569
6746
|
},
|
6747
|
+
"ModifyBackupConfigsRequest": {
|
6748
|
+
"document": "ModifyBackupConfigs请求参数结构体",
|
6749
|
+
"members": [
|
6750
|
+
{
|
6751
|
+
"disabled": false,
|
6752
|
+
"document": "实例 ID,格式如:tdsql-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。",
|
6753
|
+
"example": "tdsql-c1nl9rpv",
|
6754
|
+
"member": "string",
|
6755
|
+
"name": "InstanceId",
|
6756
|
+
"required": true,
|
6757
|
+
"type": "string"
|
6758
|
+
},
|
6759
|
+
{
|
6760
|
+
"disabled": false,
|
6761
|
+
"document": "常规备份存储时长,范围[1, 3650]。",
|
6762
|
+
"example": "30",
|
6763
|
+
"member": "uint64",
|
6764
|
+
"name": "Days",
|
6765
|
+
"required": false,
|
6766
|
+
"type": "int"
|
6767
|
+
},
|
6768
|
+
{
|
6769
|
+
"disabled": false,
|
6770
|
+
"document": "每天备份执行的区间的开始时间,格式 mm:ss,形如 22:00。",
|
6771
|
+
"example": "03:00",
|
6772
|
+
"member": "string",
|
6773
|
+
"name": "StartBackupTime",
|
6774
|
+
"required": false,
|
6775
|
+
"type": "string"
|
6776
|
+
},
|
6777
|
+
{
|
6778
|
+
"disabled": false,
|
6779
|
+
"document": "每天备份执行的区间的结束时间,格式 mm:ss,形如 23:59。",
|
6780
|
+
"example": "05:59",
|
6781
|
+
"member": "string",
|
6782
|
+
"name": "EndBackupTime",
|
6783
|
+
"required": false,
|
6784
|
+
"type": "string"
|
6785
|
+
},
|
6786
|
+
{
|
6787
|
+
"disabled": false,
|
6788
|
+
"document": "执行备份周期,枚举值:Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
|
6789
|
+
"example": "[Saturday, Sunday]",
|
6790
|
+
"member": "string",
|
6791
|
+
"name": "WeekDays",
|
6792
|
+
"required": false,
|
6793
|
+
"type": "list"
|
6794
|
+
},
|
6795
|
+
{
|
6796
|
+
"disabled": false,
|
6797
|
+
"document": "沉降到归档存储时长,-1表示关闭归档设置。",
|
6798
|
+
"example": "91",
|
6799
|
+
"member": "int64",
|
6800
|
+
"name": "ArchiveDays",
|
6801
|
+
"required": false,
|
6802
|
+
"type": "int"
|
6803
|
+
},
|
6804
|
+
{
|
6805
|
+
"disabled": false,
|
6806
|
+
"document": "超期备份配置。",
|
6807
|
+
"example": "无",
|
6808
|
+
"member": "NewBackupConfig",
|
6809
|
+
"name": "BackupConfigSet",
|
6810
|
+
"required": false,
|
6811
|
+
"type": "list"
|
6812
|
+
}
|
6813
|
+
],
|
6814
|
+
"type": "object"
|
6815
|
+
},
|
6816
|
+
"ModifyBackupConfigsResponse": {
|
6817
|
+
"document": "ModifyBackupConfigs返回参数结构体",
|
6818
|
+
"members": [
|
6819
|
+
{
|
6820
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
6821
|
+
"member": "string",
|
6822
|
+
"name": "RequestId",
|
6823
|
+
"type": "string"
|
6824
|
+
}
|
6825
|
+
],
|
6826
|
+
"type": "object"
|
6827
|
+
},
|
6570
6828
|
"ModifyBackupTimeRequest": {
|
6571
6829
|
"document": "ModifyBackupTime请求参数结构体",
|
6572
6830
|
"members": [
|
@@ -7187,6 +7445,66 @@
|
|
7187
7445
|
],
|
7188
7446
|
"type": "object"
|
7189
7447
|
},
|
7448
|
+
"NewBackupConfig": {
|
7449
|
+
"document": "数据库超期备份配置",
|
7450
|
+
"members": [
|
7451
|
+
{
|
7452
|
+
"disabled": false,
|
7453
|
+
"document": "备份策略是否启用。",
|
7454
|
+
"example": "true",
|
7455
|
+
"member": "bool",
|
7456
|
+
"name": "EnableBackupPolicy",
|
7457
|
+
"required": true,
|
7458
|
+
"type": "bool"
|
7459
|
+
},
|
7460
|
+
{
|
7461
|
+
"disabled": false,
|
7462
|
+
"document": "超期保留开始日期,早于开始日期的超期备份不保留,格式:yyyy-mm-dd。",
|
7463
|
+
"example": "2023-05-30",
|
7464
|
+
"member": "string",
|
7465
|
+
"name": "BeginDate",
|
7466
|
+
"required": true,
|
7467
|
+
"type": "string"
|
7468
|
+
},
|
7469
|
+
{
|
7470
|
+
"disabled": false,
|
7471
|
+
"document": "超期备份保留时长,超出保留时间的超期备份将被删除,可填写1-3650整数。",
|
7472
|
+
"example": "180",
|
7473
|
+
"member": "int64",
|
7474
|
+
"name": "MaxRetentionDays",
|
7475
|
+
"required": true,
|
7476
|
+
"type": "int"
|
7477
|
+
},
|
7478
|
+
{
|
7479
|
+
"disabled": false,
|
7480
|
+
"document": "备份模式,可选择按年月周模式保存\n* 按年:annually\n* 按月:monthly\n* 按周:weekly",
|
7481
|
+
"example": "monthly",
|
7482
|
+
"member": "string",
|
7483
|
+
"name": "Frequency",
|
7484
|
+
"required": true,
|
7485
|
+
"type": "string"
|
7486
|
+
},
|
7487
|
+
{
|
7488
|
+
"disabled": false,
|
7489
|
+
"document": "Frequency等于weekly时生效。\n表示保留特定工作日备份。可选择周一到周日,支持多选,取星期英文: \n* 星期一 :Monday \n* 星期二 :Tuesday \n* 星期三:Wednesday\n* 星期四:Thursday \n* 星期五:Friday\n* 星期六:Saturday\n* 星期日:Sunday",
|
7490
|
+
"example": "Monday",
|
7491
|
+
"member": "string",
|
7492
|
+
"name": "WeekDays",
|
7493
|
+
"required": false,
|
7494
|
+
"type": "list"
|
7495
|
+
},
|
7496
|
+
{
|
7497
|
+
"disabled": false,
|
7498
|
+
"document": "保留备份个数,Frequency等于monthly或weekly时生效。\n备份模式选择按月时,可填写1-28整数;\n备份模式选择年时,可填写1-336整数。",
|
7499
|
+
"example": "10",
|
7500
|
+
"member": "int64",
|
7501
|
+
"name": "BackupCount",
|
7502
|
+
"required": false,
|
7503
|
+
"type": "int"
|
7504
|
+
}
|
7505
|
+
],
|
7506
|
+
"usage": "in"
|
7507
|
+
},
|
7190
7508
|
"NodeInfo": {
|
7191
7509
|
"document": "描述实例的各个DB节点信息",
|
7192
7510
|
"members": [
|
@@ -112,6 +112,14 @@
|
|
112
112
|
"title": "无"
|
113
113
|
}
|
114
114
|
],
|
115
|
+
"DescribeBackupConfigs": [
|
116
|
+
{
|
117
|
+
"document": "示例1",
|
118
|
+
"input": "POST / HTTP/1.1\nHost: mariadb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBackupConfigs\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsql-5a6zl9ez\"\n}",
|
119
|
+
"output": "{\n \"Response\": {\n \"Days\": 30,\n \"StartBackupTime\": \"03:00\",\n \"EndBackupTime\": \"05:00\",\n \"WeekDays\": [\n \"Monday\",\n \"Sunday\"\n ],\n \"ArchiveDays\": 91,\n \"BackupConfigSet\": [\n {\n \"BackupCount\": 2,\n \"BeginDate\": \"2023-07-01\",\n \"EnableBackupPolicy\": true,\n \"Frequency\": \"annually\",\n \"MaxRetentionDays\": 101,\n \"WeekDays\": [\n \"Monday\"\n ]\n }\n ],\n \"InstanceId\": \"tdsql-5a6zl9ez\",\n \"RequestId\": \"3a2996d9-e46b-4b2c-98d2-d654f3f7db3e\"\n }\n}",
|
120
|
+
"title": "示例1"
|
121
|
+
}
|
122
|
+
],
|
115
123
|
"DescribeBackupFiles": [
|
116
124
|
{
|
117
125
|
"document": "",
|
@@ -416,6 +424,14 @@
|
|
416
424
|
"title": "修改云数据库实例账号的权限信息"
|
417
425
|
}
|
418
426
|
],
|
427
|
+
"ModifyBackupConfigs": [
|
428
|
+
{
|
429
|
+
"document": "每年保留2个超期备份",
|
430
|
+
"input": "POST / HTTP/1.1\nHost: mariadb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyBackupConfigs\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsql-5a6zl9ez\",\n \"BackupConfigSet\": [\n {\n \"EnableBackupPolicy\": true,\n \"BeginDate\": \"2023-07-01\",\n \"MaxRetentionDays\": 101,\n \"Frequency\": \"annually\",\n \"BackupCount\": 2\n }\n ]\n}",
|
431
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"58c161ee-c463-463a-bb5a-b34c81132063\"\n }\n}",
|
432
|
+
"title": "示例1"
|
433
|
+
}
|
434
|
+
],
|
419
435
|
"ModifyBackupTime": [
|
420
436
|
{
|
421
437
|
"document": "",
|
@@ -5793,7 +5793,7 @@
|
|
5793
5793
|
"members": [
|
5794
5794
|
{
|
5795
5795
|
"disabled": false,
|
5796
|
-
"document": "图片/PDF的 Base64
|
5796
|
+
"document": "图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。",
|
5797
5797
|
"example": "无",
|
5798
5798
|
"member": "string",
|
5799
5799
|
"name": "ImageBase64",
|
@@ -5802,7 +5802,7 @@
|
|
5802
5802
|
},
|
5803
5803
|
{
|
5804
5804
|
"disabled": false,
|
5805
|
-
"document": "图片/PDF的 Url
|
5805
|
+
"document": "图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。",
|
5806
5806
|
"example": "https://xx/a.jpg",
|
5807
5807
|
"member": "string",
|
5808
5808
|
"name": "ImageUrl",
|
@@ -10451,6 +10451,16 @@
|
|
10451
10451
|
"type": "string",
|
10452
10452
|
"value_allowed_null": false
|
10453
10453
|
},
|
10454
|
+
{
|
10455
|
+
"disabled": false,
|
10456
|
+
"document": "返回类型",
|
10457
|
+
"example": "往来港澳通行证",
|
10458
|
+
"member": "string",
|
10459
|
+
"name": "Type",
|
10460
|
+
"output_required": false,
|
10461
|
+
"type": "string",
|
10462
|
+
"value_allowed_null": false
|
10463
|
+
},
|
10454
10464
|
{
|
10455
10465
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
10456
10466
|
"member": "string",
|
@@ -2045,6 +2045,58 @@ def doRenewInstance(args, parsed_globals):
|
|
2045
2045
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2046
2046
|
|
2047
2047
|
|
2048
|
+
def doModifyInstanceLogDelivery(args, parsed_globals):
|
2049
|
+
g_param = parse_global_arg(parsed_globals)
|
2050
|
+
|
2051
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2052
|
+
cred = credential.CVMRoleCredential()
|
2053
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2054
|
+
cred = credential.STSAssumeRoleCredential(
|
2055
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2056
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2057
|
+
)
|
2058
|
+
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):
|
2059
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2060
|
+
else:
|
2061
|
+
cred = credential.Credential(
|
2062
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2063
|
+
)
|
2064
|
+
http_profile = HttpProfile(
|
2065
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2066
|
+
reqMethod="POST",
|
2067
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2068
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2069
|
+
)
|
2070
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2071
|
+
if g_param[OptionsDefine.Language]:
|
2072
|
+
profile.language = g_param[OptionsDefine.Language]
|
2073
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2074
|
+
client = mod.RedisClient(cred, g_param[OptionsDefine.Region], profile)
|
2075
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2076
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2077
|
+
model = models.ModifyInstanceLogDeliveryRequest()
|
2078
|
+
model.from_json_string(json.dumps(args))
|
2079
|
+
start_time = time.time()
|
2080
|
+
while True:
|
2081
|
+
rsp = client.ModifyInstanceLogDelivery(model)
|
2082
|
+
result = rsp.to_json_string()
|
2083
|
+
try:
|
2084
|
+
json_obj = json.loads(result)
|
2085
|
+
except TypeError as e:
|
2086
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2087
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2088
|
+
break
|
2089
|
+
cur_time = time.time()
|
2090
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2091
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2092
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2093
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2094
|
+
else:
|
2095
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2096
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2097
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2098
|
+
|
2099
|
+
|
2048
2100
|
def doDescribeBackupUrl(args, parsed_globals):
|
2049
2101
|
g_param = parse_global_arg(parsed_globals)
|
2050
2102
|
|
@@ -3761,6 +3813,58 @@ def doDescribeInstanceMonitorBigKey(args, parsed_globals):
|
|
3761
3813
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3762
3814
|
|
3763
3815
|
|
3816
|
+
def doDescribeReplicationGroupInstance(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.RedisClient(cred, g_param[OptionsDefine.Region], profile)
|
3843
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3844
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3845
|
+
model = models.DescribeReplicationGroupInstanceRequest()
|
3846
|
+
model.from_json_string(json.dumps(args))
|
3847
|
+
start_time = time.time()
|
3848
|
+
while True:
|
3849
|
+
rsp = client.DescribeReplicationGroupInstance(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 doDescribeRedisClusters(args, parsed_globals):
|
3765
3869
|
g_param = parse_global_arg(parsed_globals)
|
3766
3870
|
|
@@ -4697,7 +4801,7 @@ def doDescribeBandwidthRange(args, parsed_globals):
|
|
4697
4801
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4698
4802
|
|
4699
4803
|
|
4700
|
-
def
|
4804
|
+
def doDescribeInstanceLogDelivery(args, parsed_globals):
|
4701
4805
|
g_param = parse_global_arg(parsed_globals)
|
4702
4806
|
|
4703
4807
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4726,11 +4830,11 @@ def doDescribeReplicationGroupInstance(args, parsed_globals):
|
|
4726
4830
|
client = mod.RedisClient(cred, g_param[OptionsDefine.Region], profile)
|
4727
4831
|
client._sdkVersion += ("_CLI_" + __version__)
|
4728
4832
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4729
|
-
model = models.
|
4833
|
+
model = models.DescribeInstanceLogDeliveryRequest()
|
4730
4834
|
model.from_json_string(json.dumps(args))
|
4731
4835
|
start_time = time.time()
|
4732
4836
|
while True:
|
4733
|
-
rsp = client.
|
4837
|
+
rsp = client.DescribeInstanceLogDelivery(model)
|
4734
4838
|
result = rsp.to_json_string()
|
4735
4839
|
try:
|
4736
4840
|
json_obj = json.loads(result)
|
@@ -5475,6 +5579,7 @@ ACTION_MAP = {
|
|
5475
5579
|
"DescribeInstanceDTSInfo": doDescribeInstanceDTSInfo,
|
5476
5580
|
"InquiryPriceUpgradeInstance": doInquiryPriceUpgradeInstance,
|
5477
5581
|
"RenewInstance": doRenewInstance,
|
5582
|
+
"ModifyInstanceLogDelivery": doModifyInstanceLogDelivery,
|
5478
5583
|
"DescribeBackupUrl": doDescribeBackupUrl,
|
5479
5584
|
"DescribeProjectSecurityGroups": doDescribeProjectSecurityGroups,
|
5480
5585
|
"DescribeTendisSlowLog": doDescribeTendisSlowLog,
|
@@ -5508,6 +5613,7 @@ ACTION_MAP = {
|
|
5508
5613
|
"AssociateSecurityGroups": doAssociateSecurityGroups,
|
5509
5614
|
"DescribeSSLStatus": doDescribeSSLStatus,
|
5510
5615
|
"DescribeInstanceMonitorBigKey": doDescribeInstanceMonitorBigKey,
|
5616
|
+
"DescribeReplicationGroupInstance": doDescribeReplicationGroupInstance,
|
5511
5617
|
"DescribeRedisClusters": doDescribeRedisClusters,
|
5512
5618
|
"KillMasterGroup": doKillMasterGroup,
|
5513
5619
|
"DescribeCommonDBInstances": doDescribeCommonDBInstances,
|
@@ -5526,7 +5632,7 @@ ACTION_MAP = {
|
|
5526
5632
|
"OpenSSL": doOpenSSL,
|
5527
5633
|
"DescribeAutoBackupConfig": doDescribeAutoBackupConfig,
|
5528
5634
|
"DescribeBandwidthRange": doDescribeBandwidthRange,
|
5529
|
-
"
|
5635
|
+
"DescribeInstanceLogDelivery": doDescribeInstanceLogDelivery,
|
5530
5636
|
"DescribeProxySlowLog": doDescribeProxySlowLog,
|
5531
5637
|
"ModifyInstanceAvailabilityZones": doModifyInstanceAvailabilityZones,
|
5532
5638
|
"DescribeInstanceDealDetail": doDescribeInstanceDealDetail,
|