tccli 3.0.1187.1__py2.py3-none-any.whl → 3.0.1189.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/aiart_client.py +53 -0
  3. tccli/services/aiart/v20221229/api.json +107 -0
  4. tccli/services/aiart/v20221229/examples.json +8 -0
  5. tccli/services/apm/v20210622/api.json +3 -1
  6. tccli/services/billing/v20180709/api.json +3 -0
  7. tccli/services/billing/v20180709/examples.json +1 -1
  8. tccli/services/cfg/v20210820/api.json +19 -4
  9. tccli/services/ckafka/v20190819/api.json +5 -5
  10. tccli/services/cvm/cvm_client.py +53 -0
  11. tccli/services/cvm/v20170312/api.json +107 -0
  12. tccli/services/cvm/v20170312/examples.json +8 -0
  13. tccli/services/dc/v20180410/api.json +19 -19
  14. tccli/services/dc/v20180410/examples.json +5 -5
  15. tccli/services/dcdb/dcdb_client.py +106 -0
  16. tccli/services/dcdb/v20180411/api.json +338 -2
  17. tccli/services/dcdb/v20180411/examples.json +28 -0
  18. tccli/services/dlc/dlc_client.py +106 -0
  19. tccli/services/dlc/v20210125/api.json +87 -0
  20. tccli/services/dlc/v20210125/examples.json +16 -0
  21. tccli/services/dnspod/dnspod_client.py +53 -0
  22. tccli/services/dnspod/v20210323/api.json +118 -0
  23. tccli/services/dnspod/v20210323/examples.json +8 -0
  24. tccli/services/dts/v20211206/api.json +1 -0
  25. tccli/services/emr/emr_client.py +322 -4
  26. tccli/services/emr/v20190103/api.json +862 -10
  27. tccli/services/emr/v20190103/examples.json +54 -0
  28. tccli/services/es/es_client.py +53 -0
  29. tccli/services/es/v20180416/api.json +155 -0
  30. tccli/services/es/v20180416/examples.json +14 -0
  31. tccli/services/ess/ess_client.py +53 -0
  32. tccli/services/ess/v20201111/api.json +147 -0
  33. tccli/services/ess/v20201111/examples.json +8 -0
  34. tccli/services/essbasic/essbasic_client.py +53 -0
  35. tccli/services/essbasic/v20210526/api.json +120 -0
  36. tccli/services/essbasic/v20210526/examples.json +8 -0
  37. tccli/services/mariadb/mariadb_client.py +110 -4
  38. tccli/services/mariadb/v20170312/api.json +339 -3
  39. tccli/services/mariadb/v20170312/examples.json +16 -0
  40. tccli/services/ocr/v20181119/api.json +12 -2
  41. tccli/services/rce/v20201103/api.json +2 -2
  42. tccli/services/redis/redis_client.py +110 -4
  43. tccli/services/redis/v20180412/api.json +209 -0
  44. tccli/services/redis/v20180412/examples.json +16 -0
  45. tccli/services/sms/v20190711/api.json +2 -2
  46. tccli/services/sms/v20210111/api.json +2 -2
  47. tccli/services/teo/v20220901/api.json +14 -14
  48. tccli/services/trtc/v20190722/api.json +11 -0
  49. tccli/services/tse/v20201207/api.json +18 -18
  50. tccli/services/tsf/v20180326/api.json +74 -29
  51. tccli/services/vclm/v20240523/api.json +2 -2
  52. tccli/services/vdb/v20230616/api.json +491 -0
  53. tccli/services/vdb/v20230616/examples.json +46 -0
  54. tccli/services/vdb/vdb_client.py +265 -0
  55. tccli/services/vpc/v20170312/api.json +5 -5
  56. tccli/services/vtc/v20240223/api.json +2 -2
  57. {tccli-3.0.1187.1.dist-info → tccli-3.0.1189.1.dist-info}/METADATA +2 -2
  58. {tccli-3.0.1187.1.dist-info → tccli-3.0.1189.1.dist-info}/RECORD +61 -61
  59. {tccli-3.0.1187.1.dist-info → tccli-3.0.1189.1.dist-info}/WHEEL +0 -0
  60. {tccli-3.0.1187.1.dist-info → tccli-3.0.1189.1.dist-info}/entry_points.txt +0 -0
  61. {tccli-3.0.1187.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": [
@@ -994,12 +1074,12 @@
994
1074
  "example": "1234qweri#",
995
1075
  "member": "string",
996
1076
  "name": "Password",
997
- "required": true,
1077
+ "required": false,
998
1078
  "type": "string"
999
1079
  },
1000
1080
  {
1001
1081
  "disabled": false,
1002
- "document": "是否创建为只读账号,0:否:; 1:只读账号,该账号的sql请求优先选择备机执行,备机延迟时选择主机执行;2:只读账号,优先选择备机执行,备机延迟时操作报错;3:只读账号,优先选择备机执行,忽略备机延迟只读备机;",
1082
+ "document": "是否创建为只读账号,0:否; 1:只读账号,该账号的sql请求优先选择备机执行,备机延迟时选择主机执行;2:只读账号,优先选择备机执行,备机延迟时操作报错;3:只读账号,优先选择备机执行,忽略备机延迟只读备机;",
1003
1083
  "example": "0",
1004
1084
  "member": "int64",
1005
1085
  "name": "ReadOnly",
@@ -1041,6 +1121,15 @@
1041
1121
  "name": "MaxUserConnections",
1042
1122
  "required": false,
1043
1123
  "type": "int"
1124
+ },
1125
+ {
1126
+ "disabled": false,
1127
+ "document": "使用GetPublicKey返回的RSA2048公钥加密后的密码",
1128
+ "example": "+5DzNPbJ5s6e/SkAFgMKQ4ezgmIyKqwHR/TtkwCQP5oFzYTpXJC6iEYVkAmlbreL8XX2I/YdNsqfy184B5sKt7LcfcvTCDspbQrDlRawvcWU0lLxvSpBgL4zXlixxOIR5UmC6lvSJFHOdMzoeK2UKGuV2EG3BMuvVthHAKaFDEQh5C5UP5FsN8G+Zsf27tofNm6KRFrQksNcYvFqMEnnGWV4luXISbJI0yK0m6kyKJSAgtHtDvsGBbJ1fA3RO1p5K/usvARNPB1jzjK5TJtG5eFDsPLXDHwiHh8clQpSLhYj531Ba1uXi9yL1Zkhoc0lf4y2xoJU3N+ce+6IAfJiaw==",
1129
+ "member": "string",
1130
+ "name": "EncryptedPassword",
1131
+ "required": false,
1132
+ "type": "string"
1044
1133
  }
1045
1134
  ],
1046
1135
  "type": "object"
@@ -3306,6 +3395,103 @@
3306
3395
  ],
3307
3396
  "type": "object"
3308
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
+ },
3309
3495
  "DescribeBackupFilesRequest": {
3310
3496
  "document": "DescribeBackupFiles请求参数结构体",
3311
3497
  "members": [
@@ -6558,6 +6744,87 @@
6558
6744
  ],
6559
6745
  "type": "object"
6560
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
+ },
6561
6828
  "ModifyBackupTimeRequest": {
6562
6829
  "document": "ModifyBackupTime请求参数结构体",
6563
6830
  "members": [
@@ -7178,6 +7445,66 @@
7178
7445
  ],
7179
7446
  "type": "object"
7180
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
+ },
7181
7508
  "NodeInfo": {
7182
7509
  "document": "描述实例的各个DB节点信息",
7183
7510
  "members": [
@@ -7646,7 +7973,16 @@
7646
7973
  "example": "abcd8765_.",
7647
7974
  "member": "string",
7648
7975
  "name": "Password",
7649
- "required": true,
7976
+ "required": false,
7977
+ "type": "string"
7978
+ },
7979
+ {
7980
+ "disabled": false,
7981
+ "document": "使用GetPublicKey返回的RSA2048公钥加密后的密码",
7982
+ "example": "+5DzNPbJ5s6e/SkAFgMKQ4ezgmIyKqwHR/TtkwCQP5oFzYTpXJC6iEYVkAmlbreL8XX2I/YdNsqfy184B5sKt7LcfcvTCDspbQrDlRawvcWU0lLxvSpBgL4zXlixxOIR5UmC6lvSJFHOdMzoeK2UKGuV2EG3BMuvVthHAKaFDEQh5C5UP5FsN8G+Zsf27tofNm6KRFrQksNcYvFqMEnnGWV4luXISbJI0yK0m6kyKJSAgtHtDvsGBbJ1fA3RO1p5K/usvARNPB1jzjK5TJtG5eFDsPLXDHwiHh8clQpSLhYj531Ba1uXi9yL1Zkhoc0lf4y2xoJU3N+ce+6IAfJiaw==",
7983
+ "member": "string",
7984
+ "name": "EncryptedPassword",
7985
+ "required": false,
7650
7986
  "type": "string"
7651
7987
  }
7652
7988
  ],
@@ -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 值。\n要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。\n图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。",
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 地址。\n要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。\n图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 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",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "actions": {
3
3
  "CreateNameList": {
4
- "document": "创建黑白名单列表的数据 包含列表名称 列表名单类型id 关联场景id 数据类型id 记录状态 备注 数据来源 手动输入数据或cos文件key",
4
+ "document": "创建黑白名单,黑白名单数量上限为100",
5
5
  "input": "CreateNameListRequest",
6
6
  "name": "创建黑白名单",
7
7
  "output": "CreateNameListResponse",
@@ -43,7 +43,7 @@
43
43
  "status": "online"
44
44
  },
45
45
  "ImportNameListData": {
46
- "document": "新增黑白名单详情数据 手动导入或批量导入",
46
+ "document": "新增黑白名单数据,所有黑白名单数据总量上限为10000",
47
47
  "input": "ImportNameListDataRequest",
48
48
  "name": "添加黑白名单数据",
49
49
  "output": "ImportNameListDataResponse",
@@ -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 doDescribeReplicationGroupInstance(args, parsed_globals):
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.DescribeReplicationGroupInstanceRequest()
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.DescribeReplicationGroupInstance(model)
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
- "DescribeReplicationGroupInstance": doDescribeReplicationGroupInstance,
5635
+ "DescribeInstanceLogDelivery": doDescribeInstanceLogDelivery,
5530
5636
  "DescribeProxySlowLog": doDescribeProxySlowLog,
5531
5637
  "ModifyInstanceAvailabilityZones": doModifyInstanceAvailabilityZones,
5532
5638
  "DescribeInstanceDealDetail": doDescribeInstanceDealDetail,