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.
- 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/cvm/cvm_client.py +53 -0
- tccli/services/cvm/v20170312/api.json +107 -0
- tccli/services/cvm/v20170312/examples.json +8 -0
- tccli/services/dc/v20180410/api.json +19 -19
- tccli/services/dc/v20180410/examples.json +5 -5
- tccli/services/dcdb/dcdb_client.py +106 -0
- tccli/services/dcdb/v20180411/api.json +338 -2
- tccli/services/dcdb/v20180411/examples.json +28 -0
- tccli/services/dlc/dlc_client.py +106 -0
- tccli/services/dlc/v20210125/api.json +87 -0
- tccli/services/dlc/v20210125/examples.json +16 -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/dts/v20211206/api.json +1 -0
- tccli/services/emr/emr_client.py +322 -4
- tccli/services/emr/v20190103/api.json +862 -10
- tccli/services/emr/v20190103/examples.json +54 -0
- tccli/services/es/es_client.py +53 -0
- tccli/services/es/v20180416/api.json +155 -0
- tccli/services/es/v20180416/examples.json +14 -0
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +147 -0
- tccli/services/ess/v20201111/examples.json +8 -0
- 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 +339 -3
- tccli/services/mariadb/v20170312/examples.json +16 -0
- tccli/services/ocr/v20181119/api.json +12 -2
- tccli/services/rce/v20201103/api.json +2 -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/sms/v20190711/api.json +2 -2
- tccli/services/sms/v20210111/api.json +2 -2
- tccli/services/teo/v20220901/api.json +14 -14
- tccli/services/trtc/v20190722/api.json +11 -0
- tccli/services/tse/v20201207/api.json +18 -18
- tccli/services/tsf/v20180326/api.json +74 -29
- tccli/services/vclm/v20240523/api.json +2 -2
- 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 +5 -5
- tccli/services/vtc/v20240223/api.json +2 -2
- {tccli-3.0.1187.1.dist-info → tccli-3.0.1189.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1187.1.dist-info → tccli-3.0.1189.1.dist-info}/RECORD +61 -61
- {tccli-3.0.1187.1.dist-info → tccli-3.0.1189.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1187.1.dist-info → tccli-3.0.1189.1.dist-info}/entry_points.txt +0 -0
- {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",
|
@@ -392,6 +399,13 @@
|
|
392
399
|
"output": "ModifyAccountPrivilegesResponse",
|
393
400
|
"status": "online"
|
394
401
|
},
|
402
|
+
"ModifyBackupConfigs": {
|
403
|
+
"document": "本接口(ModifyBackupConfigs)用于修改数据库备份配置信息。\n\n1. 修改数据库超期备份配置,目前按年、按月、按日只支持一种,存在互斥关系,如当前策略按年备份,如果传入按月备份策略将会覆盖当前的按年备份策略,务必注意。",
|
404
|
+
"input": "ModifyBackupConfigsRequest",
|
405
|
+
"name": "修改云数据库备份配置信息",
|
406
|
+
"output": "ModifyBackupConfigsResponse",
|
407
|
+
"status": "online"
|
408
|
+
},
|
395
409
|
"ModifyDBEncryptAttributes": {
|
396
410
|
"document": "本接口(ModifyDBEncryptAttributes)用于修改实例数据加密。",
|
397
411
|
"input": "ModifyDBEncryptAttributesRequest",
|
@@ -678,6 +692,72 @@
|
|
678
692
|
],
|
679
693
|
"type": "object"
|
680
694
|
},
|
695
|
+
"BackupConfig": {
|
696
|
+
"document": "数据库超期备份配置",
|
697
|
+
"members": [
|
698
|
+
{
|
699
|
+
"disabled": false,
|
700
|
+
"document": "备份策略是否启用。",
|
701
|
+
"example": "true",
|
702
|
+
"member": "bool",
|
703
|
+
"name": "EnableBackupPolicy",
|
704
|
+
"output_required": true,
|
705
|
+
"type": "bool",
|
706
|
+
"value_allowed_null": false
|
707
|
+
},
|
708
|
+
{
|
709
|
+
"disabled": false,
|
710
|
+
"document": "超期保留开始日期,早于开始日期的超期备份不保留,格式:yyyy-mm-dd。",
|
711
|
+
"example": "2023-05-30",
|
712
|
+
"member": "string",
|
713
|
+
"name": "BeginDate",
|
714
|
+
"output_required": true,
|
715
|
+
"type": "string",
|
716
|
+
"value_allowed_null": false
|
717
|
+
},
|
718
|
+
{
|
719
|
+
"disabled": false,
|
720
|
+
"document": "超期备份保留时长,超出保留时间的超期备份将被删除,可填写1-3650整数。",
|
721
|
+
"example": "180",
|
722
|
+
"member": "int64",
|
723
|
+
"name": "MaxRetentionDays",
|
724
|
+
"output_required": true,
|
725
|
+
"type": "int",
|
726
|
+
"value_allowed_null": false
|
727
|
+
},
|
728
|
+
{
|
729
|
+
"disabled": false,
|
730
|
+
"document": "备份模式,可选择按年月周模式保存\n* 按年:annually\n* 按月:monthly\n* 按周:weekly",
|
731
|
+
"example": "monthly",
|
732
|
+
"member": "string",
|
733
|
+
"name": "Frequency",
|
734
|
+
"output_required": true,
|
735
|
+
"type": "string",
|
736
|
+
"value_allowed_null": false
|
737
|
+
},
|
738
|
+
{
|
739
|
+
"disabled": false,
|
740
|
+
"document": "Frequency等于weekly时生效。\n表示保留特定工作日备份。可选择周一到周日,支持多选,取星期英文:\n* 星期一 :Monday\n* 星期二 :Tuesday\n* 星期三:Wednesday\n* 星期四:Thursday\n* 星期五:Friday\n* 星期六:Saturday\n* 星期日:Sunday",
|
741
|
+
"example": "Monday",
|
742
|
+
"member": "string",
|
743
|
+
"name": "WeekDays",
|
744
|
+
"output_required": false,
|
745
|
+
"type": "list",
|
746
|
+
"value_allowed_null": false
|
747
|
+
},
|
748
|
+
{
|
749
|
+
"disabled": false,
|
750
|
+
"document": "保留备份个数,Frequency等于monthly或weekly时生效。\n备份模式选择按月时,可填写1-28整数;\n备份模式选择年时,可填写1-336整数。",
|
751
|
+
"example": "10",
|
752
|
+
"member": "int64",
|
753
|
+
"name": "BackupCount",
|
754
|
+
"output_required": false,
|
755
|
+
"type": "int",
|
756
|
+
"value_allowed_null": false
|
757
|
+
}
|
758
|
+
],
|
759
|
+
"usage": "out"
|
760
|
+
},
|
681
761
|
"BriefNodeInfo": {
|
682
762
|
"document": "描述分片DB节点信息",
|
683
763
|
"members": [
|
@@ -1094,7 +1174,7 @@
|
|
1094
1174
|
"example": "1234qweri#",
|
1095
1175
|
"member": "string",
|
1096
1176
|
"name": "Password",
|
1097
|
-
"required":
|
1177
|
+
"required": false,
|
1098
1178
|
"type": "string"
|
1099
1179
|
},
|
1100
1180
|
{
|
@@ -1141,6 +1221,15 @@
|
|
1141
1221
|
"name": "MaxUserConnections",
|
1142
1222
|
"required": false,
|
1143
1223
|
"type": "int"
|
1224
|
+
},
|
1225
|
+
{
|
1226
|
+
"disabled": false,
|
1227
|
+
"document": "使用GetPublicKey返回的RSA2048公钥加密后的密码",
|
1228
|
+
"example": "+5DzNPbJ5s6e/SkAFgMKQ4ezgmIyKqwHR/TtkwCQP5oFzYTpXJC6iEYVkAmlbreL8XX2I/YdNsqfy184B5sKt7LcfcvTCDspbQrDlRawvcWU0lLxvSpBgL4zXlixxOIR5UmC6lvSJFHOdMzoeK2UKGuV2EG3BMuvVthHAKaFDEQh5C5UP5FsN8G+Zsf27tofNm6KRFrQksNcYvFqMEnnGWV4luXISbJI0yK0m6kyKJSAgtHtDvsGBbJ1fA3RO1p5K/usvARNPB1jzjK5TJtG5eFDsPLXDHwiHh8clQpSLhYj531Ba1uXi9yL1Zkhoc0lf4y2xoJU3N+ce+6IAfJiaw==",
|
1229
|
+
"member": "string",
|
1230
|
+
"name": "EncryptedPassword",
|
1231
|
+
"required": false,
|
1232
|
+
"type": "string"
|
1144
1233
|
}
|
1145
1234
|
],
|
1146
1235
|
"type": "object"
|
@@ -3596,6 +3685,103 @@
|
|
3596
3685
|
],
|
3597
3686
|
"type": "object"
|
3598
3687
|
},
|
3688
|
+
"DescribeBackupConfigsRequest": {
|
3689
|
+
"document": "DescribeBackupConfigs请求参数结构体",
|
3690
|
+
"members": [
|
3691
|
+
{
|
3692
|
+
"disabled": false,
|
3693
|
+
"document": "实例 ID,格式如:tdsqlshard-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。",
|
3694
|
+
"example": "tdsqlshard-c1nl9rpv",
|
3695
|
+
"member": "string",
|
3696
|
+
"name": "InstanceId",
|
3697
|
+
"required": true,
|
3698
|
+
"type": "string"
|
3699
|
+
}
|
3700
|
+
],
|
3701
|
+
"type": "object"
|
3702
|
+
},
|
3703
|
+
"DescribeBackupConfigsResponse": {
|
3704
|
+
"document": "DescribeBackupConfigs返回参数结构体",
|
3705
|
+
"members": [
|
3706
|
+
{
|
3707
|
+
"disabled": false,
|
3708
|
+
"document": "实例 ID。",
|
3709
|
+
"example": "tdsqlshard-c1nl9rpv",
|
3710
|
+
"member": "string",
|
3711
|
+
"name": "InstanceId",
|
3712
|
+
"output_required": true,
|
3713
|
+
"type": "string",
|
3714
|
+
"value_allowed_null": false
|
3715
|
+
},
|
3716
|
+
{
|
3717
|
+
"disabled": false,
|
3718
|
+
"document": "常规备份存储时长,范围[1, 3650]。",
|
3719
|
+
"example": "30",
|
3720
|
+
"member": "uint64",
|
3721
|
+
"name": "Days",
|
3722
|
+
"output_required": true,
|
3723
|
+
"type": "int",
|
3724
|
+
"value_allowed_null": false
|
3725
|
+
},
|
3726
|
+
{
|
3727
|
+
"disabled": false,
|
3728
|
+
"document": "每天备份执行的区间的开始时间,格式 mm:ss,形如 22:00。",
|
3729
|
+
"example": "03:00",
|
3730
|
+
"member": "string",
|
3731
|
+
"name": "StartBackupTime",
|
3732
|
+
"output_required": true,
|
3733
|
+
"type": "string",
|
3734
|
+
"value_allowed_null": false
|
3735
|
+
},
|
3736
|
+
{
|
3737
|
+
"disabled": false,
|
3738
|
+
"document": "每天备份执行的区间的结束时间,格式 mm:ss,形如 23:59。",
|
3739
|
+
"example": "05:59",
|
3740
|
+
"member": "string",
|
3741
|
+
"name": "EndBackupTime",
|
3742
|
+
"output_required": true,
|
3743
|
+
"type": "string",
|
3744
|
+
"value_allowed_null": false
|
3745
|
+
},
|
3746
|
+
{
|
3747
|
+
"disabled": false,
|
3748
|
+
"document": "执行备份周期,枚举值:Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
|
3749
|
+
"example": "[Saturday, Sunday]",
|
3750
|
+
"member": "string",
|
3751
|
+
"name": "WeekDays",
|
3752
|
+
"output_required": true,
|
3753
|
+
"type": "list",
|
3754
|
+
"value_allowed_null": false
|
3755
|
+
},
|
3756
|
+
{
|
3757
|
+
"disabled": false,
|
3758
|
+
"document": "沉降到归档存储时长,-1表示关闭归档设置。",
|
3759
|
+
"example": "91",
|
3760
|
+
"member": "int64",
|
3761
|
+
"name": "ArchiveDays",
|
3762
|
+
"output_required": true,
|
3763
|
+
"type": "int",
|
3764
|
+
"value_allowed_null": false
|
3765
|
+
},
|
3766
|
+
{
|
3767
|
+
"disabled": false,
|
3768
|
+
"document": "超期备份配置。",
|
3769
|
+
"example": "无",
|
3770
|
+
"member": "BackupConfig",
|
3771
|
+
"name": "BackupConfigSet",
|
3772
|
+
"output_required": true,
|
3773
|
+
"type": "list",
|
3774
|
+
"value_allowed_null": false
|
3775
|
+
},
|
3776
|
+
{
|
3777
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3778
|
+
"member": "string",
|
3779
|
+
"name": "RequestId",
|
3780
|
+
"type": "string"
|
3781
|
+
}
|
3782
|
+
],
|
3783
|
+
"type": "object"
|
3784
|
+
},
|
3599
3785
|
"DescribeBackupFilesRequest": {
|
3600
3786
|
"document": "DescribeBackupFiles请求参数结构体",
|
3601
3787
|
"members": [
|
@@ -7132,6 +7318,87 @@
|
|
7132
7318
|
],
|
7133
7319
|
"type": "object"
|
7134
7320
|
},
|
7321
|
+
"ModifyBackupConfigsRequest": {
|
7322
|
+
"document": "ModifyBackupConfigs请求参数结构体",
|
7323
|
+
"members": [
|
7324
|
+
{
|
7325
|
+
"disabled": false,
|
7326
|
+
"document": "实例 ID,格式如:tdsqlshard-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。",
|
7327
|
+
"example": "tdsqlshard-c1nl9rpv",
|
7328
|
+
"member": "string",
|
7329
|
+
"name": "InstanceId",
|
7330
|
+
"required": true,
|
7331
|
+
"type": "string"
|
7332
|
+
},
|
7333
|
+
{
|
7334
|
+
"disabled": false,
|
7335
|
+
"document": "常规备份存储时长,范围[1, 3650]。",
|
7336
|
+
"example": "30",
|
7337
|
+
"member": "uint64",
|
7338
|
+
"name": "Days",
|
7339
|
+
"required": false,
|
7340
|
+
"type": "int"
|
7341
|
+
},
|
7342
|
+
{
|
7343
|
+
"disabled": false,
|
7344
|
+
"document": "每天备份执行的区间的开始时间,格式 mm:ss,形如 22:00。",
|
7345
|
+
"example": "03:00",
|
7346
|
+
"member": "string",
|
7347
|
+
"name": "StartBackupTime",
|
7348
|
+
"required": false,
|
7349
|
+
"type": "string"
|
7350
|
+
},
|
7351
|
+
{
|
7352
|
+
"disabled": false,
|
7353
|
+
"document": "每天备份执行的区间的结束时间,格式 mm:ss,形如 23:59。",
|
7354
|
+
"example": "05:59",
|
7355
|
+
"member": "string",
|
7356
|
+
"name": "EndBackupTime",
|
7357
|
+
"required": false,
|
7358
|
+
"type": "string"
|
7359
|
+
},
|
7360
|
+
{
|
7361
|
+
"disabled": false,
|
7362
|
+
"document": "执行备份周期,枚举值:Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
|
7363
|
+
"example": "[Saturday, Sunday]",
|
7364
|
+
"member": "string",
|
7365
|
+
"name": "WeekDays",
|
7366
|
+
"required": false,
|
7367
|
+
"type": "list"
|
7368
|
+
},
|
7369
|
+
{
|
7370
|
+
"disabled": false,
|
7371
|
+
"document": "沉降到归档存储时长,-1表示关闭归档设置。",
|
7372
|
+
"example": "91",
|
7373
|
+
"member": "int64",
|
7374
|
+
"name": "ArchiveDays",
|
7375
|
+
"required": false,
|
7376
|
+
"type": "int"
|
7377
|
+
},
|
7378
|
+
{
|
7379
|
+
"disabled": false,
|
7380
|
+
"document": "超期备份配置。",
|
7381
|
+
"example": "无",
|
7382
|
+
"member": "NewBackupConfig",
|
7383
|
+
"name": "BackupConfigSet",
|
7384
|
+
"required": false,
|
7385
|
+
"type": "list"
|
7386
|
+
}
|
7387
|
+
],
|
7388
|
+
"type": "object"
|
7389
|
+
},
|
7390
|
+
"ModifyBackupConfigsResponse": {
|
7391
|
+
"document": "ModifyBackupConfigs返回参数结构体",
|
7392
|
+
"members": [
|
7393
|
+
{
|
7394
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
7395
|
+
"member": "string",
|
7396
|
+
"name": "RequestId",
|
7397
|
+
"type": "string"
|
7398
|
+
}
|
7399
|
+
],
|
7400
|
+
"type": "object"
|
7401
|
+
},
|
7135
7402
|
"ModifyDBEncryptAttributesRequest": {
|
7136
7403
|
"document": "ModifyDBEncryptAttributes请求参数结构体",
|
7137
7404
|
"members": [
|
@@ -7615,6 +7882,66 @@
|
|
7615
7882
|
],
|
7616
7883
|
"type": "object"
|
7617
7884
|
},
|
7885
|
+
"NewBackupConfig": {
|
7886
|
+
"document": "数据库超期备份配置",
|
7887
|
+
"members": [
|
7888
|
+
{
|
7889
|
+
"disabled": false,
|
7890
|
+
"document": "备份策略是否启用。",
|
7891
|
+
"example": "true",
|
7892
|
+
"member": "bool",
|
7893
|
+
"name": "EnableBackupPolicy",
|
7894
|
+
"required": true,
|
7895
|
+
"type": "bool"
|
7896
|
+
},
|
7897
|
+
{
|
7898
|
+
"disabled": false,
|
7899
|
+
"document": "超期保留开始日期,早于开始日期的超期备份不保留,格式:yyyy-mm-dd。",
|
7900
|
+
"example": "2023-05-30",
|
7901
|
+
"member": "string",
|
7902
|
+
"name": "BeginDate",
|
7903
|
+
"required": true,
|
7904
|
+
"type": "string"
|
7905
|
+
},
|
7906
|
+
{
|
7907
|
+
"disabled": false,
|
7908
|
+
"document": "超期备份保留时长,超出保留时间的超期备份将被删除,可填写1-3650整数。",
|
7909
|
+
"example": "180",
|
7910
|
+
"member": "int64",
|
7911
|
+
"name": "MaxRetentionDays",
|
7912
|
+
"required": true,
|
7913
|
+
"type": "int"
|
7914
|
+
},
|
7915
|
+
{
|
7916
|
+
"disabled": false,
|
7917
|
+
"document": "备份模式,可选择按年月周模式保存\n* 按年:annually\n* 按月:monthly\n* 按周:weekly",
|
7918
|
+
"example": "monthly",
|
7919
|
+
"member": "string",
|
7920
|
+
"name": "Frequency",
|
7921
|
+
"required": true,
|
7922
|
+
"type": "string"
|
7923
|
+
},
|
7924
|
+
{
|
7925
|
+
"disabled": false,
|
7926
|
+
"document": "Frequency等于weekly时生效。\n表示保留特定工作日备份。可选择周一到周日,支持多选,取星期英文:\n* 星期一 :Monday\n* 星期二 :Tuesday\n* 星期三:Wednesday\n* 星期四:Thursday\n* 星期五:Friday\n* 星期六:Saturday\n* 星期日:Sunday",
|
7927
|
+
"example": "Monday",
|
7928
|
+
"member": "string",
|
7929
|
+
"name": "WeekDays",
|
7930
|
+
"required": false,
|
7931
|
+
"type": "list"
|
7932
|
+
},
|
7933
|
+
{
|
7934
|
+
"disabled": false,
|
7935
|
+
"document": "保留备份个数,Frequency等于monthly或weekly时生效。\n备份模式选择按月时,可填写1-28整数;\n备份模式选择年时,可填写1-336整数。",
|
7936
|
+
"example": "10",
|
7937
|
+
"member": "int64",
|
7938
|
+
"name": "BackupCount",
|
7939
|
+
"required": false,
|
7940
|
+
"type": "int"
|
7941
|
+
}
|
7942
|
+
],
|
7943
|
+
"usage": "in"
|
7944
|
+
},
|
7618
7945
|
"NodeInfo": {
|
7619
7946
|
"document": "描述DB节点信息",
|
7620
7947
|
"members": [
|
@@ -8163,7 +8490,16 @@
|
|
8163
8490
|
"example": "abcd8765_.",
|
8164
8491
|
"member": "string",
|
8165
8492
|
"name": "Password",
|
8166
|
-
"required":
|
8493
|
+
"required": false,
|
8494
|
+
"type": "string"
|
8495
|
+
},
|
8496
|
+
{
|
8497
|
+
"disabled": false,
|
8498
|
+
"document": "使用GetPublicKey返回的RSA2048公钥加密后的密码,加密算法是PKCS1v15",
|
8499
|
+
"example": "+5DzNPbJ5s6e/SkAFgMKQ4ezgmIyKqwHR/TtkwCQP5oFzYTpXJC6iEYVkAmlbreL8XX2I/YdNsqfy184B5sKt7LcfcvTCDspbQrDlRawvcWU0lLxvSpBgL4zXlixxOIR5UmC6lvSJFHOdMzoeK2UKGuV2EG3BMuvVthHAKaFDEQh5C5UP5FsN8G+Zsf27tofNm6KRFrQksNcYvFqMEnnGWV4luXISbJI0yK0m6kyKJSAgtHtDvsGBbJ1fA3RO1p5K/usvARNPB1jzjK5TJtG5eFDsPLXDHwiHh8clQpSLhYj531Ba1uXi9yL1Zkhoc0lf4y2xoJU3N+ce+6IAfJiaw==",
|
8500
|
+
"member": "string",
|
8501
|
+
"name": "EncryptedPassword",
|
8502
|
+
"required": false,
|
8167
8503
|
"type": "string"
|
8168
8504
|
}
|
8169
8505
|
],
|
@@ -112,6 +112,20 @@
|
|
112
112
|
"title": "无"
|
113
113
|
}
|
114
114
|
],
|
115
|
+
"DescribeBackupConfigs": [
|
116
|
+
{
|
117
|
+
"document": "获取超期备份策略",
|
118
|
+
"input": "POST / HTTP/1.1\nHost: dcdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBackupConfigs\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsqlshard-6cmpk1rd\"\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\": 1,\n \"BeginDate\": \"2023-06-08\",\n \"EnableBackupPolicy\": true,\n \"Frequency\": \"monthly\",\n \"MaxRetentionDays\": 365,\n \"WeekDays\": []\n }\n ],\n \"InstanceId\": \"tdsqlshard-6cmpk1rd\",\n \"RequestId\": \"827d5b16-d464-4f43-af92-06c63d25375e\"\n }\n}",
|
120
|
+
"title": "示例"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"document": "示例1",
|
124
|
+
"input": "POST / HTTP/1.1\nHost: dcdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBackupConfigs\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsqlshard-2500dqmh\"\n}",
|
125
|
+
"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\": 0,\n \"BeginDate\": \"2023-07-20\",\n \"EnableBackupPolicy\": true,\n \"Frequency\": \"weekly\",\n \"MaxRetentionDays\": 100,\n \"WeekDays\": [\n \"Monday\",\n \"Tuesday\"\n ]\n }\n ],\n \"InstanceId\": \"tdsqlshard-2500dqmh\",\n \"RequestId\": \"c4712e5d-78f3-4899-b8f4-0b6af5a17b77\"\n }\n}",
|
126
|
+
"title": "示例1"
|
127
|
+
}
|
128
|
+
],
|
115
129
|
"DescribeBackupFiles": [
|
116
130
|
{
|
117
131
|
"document": "",
|
@@ -448,6 +462,20 @@
|
|
448
462
|
"title": "修改云数据库实例账号的权限信息"
|
449
463
|
}
|
450
464
|
],
|
465
|
+
"ModifyBackupConfigs": [
|
466
|
+
{
|
467
|
+
"document": "近一年每个月保留一个备份",
|
468
|
+
"input": "POST / HTTP/1.1\nHost: dcdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyBackupConfigs\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsqlshard-6cmpk1rd\",\n \"BackupConfigSet\": [\n {\n \"EnableBackupPolicy\": true,\n \"BeginDate\": \"2023-06-08\",\n \"MaxRetentionDays\": 365,\n \"Frequency\": \"monthly\",\n \"BackupCount\": 1\n }\n ]\n}",
|
469
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a0495e38-cd59-420c-8f09-893207d28955\"\n }\n}",
|
470
|
+
"title": "示例"
|
471
|
+
},
|
472
|
+
{
|
473
|
+
"document": "按周保留备份",
|
474
|
+
"input": "POST / HTTP/1.1\nHost: dcdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyBackupConfigs\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsqlshard-2500dqmh\",\n \"BackupConfigSet\": [\n {\n \"EnableBackupPolicy\": true,\n \"BeginDate\": \"2023-07-20\",\n \"MaxRetentionDays\": 100,\n \"Frequency\": \"weekly\",\n \"WeekDays\": [\n \"Monday\",\n \"Tuesday\"\n ]\n }\n ]\n}",
|
475
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"45b034f3-1ace-45c7-b49e-1fca45f89d9e\"\n }\n}",
|
476
|
+
"title": "示例1"
|
477
|
+
}
|
478
|
+
],
|
451
479
|
"ModifyDBEncryptAttributes": [
|
452
480
|
{
|
453
481
|
"document": "用户开启实例的透明加密",
|
tccli/services/dlc/dlc_client.py
CHANGED
@@ -4489,6 +4489,58 @@ def doCreateCHDFSBindingProduct(args, parsed_globals):
|
|
4489
4489
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4490
4490
|
|
4491
4491
|
|
4492
|
+
def doQueryInternalTableWarehouse(args, parsed_globals):
|
4493
|
+
g_param = parse_global_arg(parsed_globals)
|
4494
|
+
|
4495
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4496
|
+
cred = credential.CVMRoleCredential()
|
4497
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4498
|
+
cred = credential.STSAssumeRoleCredential(
|
4499
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4500
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4501
|
+
)
|
4502
|
+
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):
|
4503
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4504
|
+
else:
|
4505
|
+
cred = credential.Credential(
|
4506
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4507
|
+
)
|
4508
|
+
http_profile = HttpProfile(
|
4509
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4510
|
+
reqMethod="POST",
|
4511
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4512
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4513
|
+
)
|
4514
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4515
|
+
if g_param[OptionsDefine.Language]:
|
4516
|
+
profile.language = g_param[OptionsDefine.Language]
|
4517
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4518
|
+
client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
|
4519
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4520
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4521
|
+
model = models.QueryInternalTableWarehouseRequest()
|
4522
|
+
model.from_json_string(json.dumps(args))
|
4523
|
+
start_time = time.time()
|
4524
|
+
while True:
|
4525
|
+
rsp = client.QueryInternalTableWarehouse(model)
|
4526
|
+
result = rsp.to_json_string()
|
4527
|
+
try:
|
4528
|
+
json_obj = json.loads(result)
|
4529
|
+
except TypeError as e:
|
4530
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4531
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4532
|
+
break
|
4533
|
+
cur_time = time.time()
|
4534
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4535
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4536
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4537
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4538
|
+
else:
|
4539
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4540
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4541
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4542
|
+
|
4543
|
+
|
4492
4544
|
def doDescribeDatasourceConnection(args, parsed_globals):
|
4493
4545
|
g_param = parse_global_arg(parsed_globals)
|
4494
4546
|
|
@@ -5113,6 +5165,58 @@ def doDeleteUser(args, parsed_globals):
|
|
5113
5165
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5114
5166
|
|
5115
5167
|
|
5168
|
+
def doDeleteTable(args, parsed_globals):
|
5169
|
+
g_param = parse_global_arg(parsed_globals)
|
5170
|
+
|
5171
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5172
|
+
cred = credential.CVMRoleCredential()
|
5173
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5174
|
+
cred = credential.STSAssumeRoleCredential(
|
5175
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5176
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5177
|
+
)
|
5178
|
+
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):
|
5179
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5180
|
+
else:
|
5181
|
+
cred = credential.Credential(
|
5182
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5183
|
+
)
|
5184
|
+
http_profile = HttpProfile(
|
5185
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5186
|
+
reqMethod="POST",
|
5187
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5188
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5189
|
+
)
|
5190
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5191
|
+
if g_param[OptionsDefine.Language]:
|
5192
|
+
profile.language = g_param[OptionsDefine.Language]
|
5193
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5194
|
+
client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
|
5195
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5196
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5197
|
+
model = models.DeleteTableRequest()
|
5198
|
+
model.from_json_string(json.dumps(args))
|
5199
|
+
start_time = time.time()
|
5200
|
+
while True:
|
5201
|
+
rsp = client.DeleteTable(model)
|
5202
|
+
result = rsp.to_json_string()
|
5203
|
+
try:
|
5204
|
+
json_obj = json.loads(result)
|
5205
|
+
except TypeError as e:
|
5206
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5207
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5208
|
+
break
|
5209
|
+
cur_time = time.time()
|
5210
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5211
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5212
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5213
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5214
|
+
else:
|
5215
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5216
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5217
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5218
|
+
|
5219
|
+
|
5116
5220
|
def doDescribeEngineUsageInfo(args, parsed_globals):
|
5117
5221
|
g_param = parse_global_arg(parsed_globals)
|
5118
5222
|
|
@@ -7446,6 +7550,7 @@ ACTION_MAP = {
|
|
7446
7550
|
"DropDMSPartitions": doDropDMSPartitions,
|
7447
7551
|
"CreateWorkGroup": doCreateWorkGroup,
|
7448
7552
|
"CreateCHDFSBindingProduct": doCreateCHDFSBindingProduct,
|
7553
|
+
"QueryInternalTableWarehouse": doQueryInternalTableWarehouse,
|
7449
7554
|
"DescribeDatasourceConnection": doDescribeDatasourceConnection,
|
7450
7555
|
"CheckDataEngineImageCanBeRollback": doCheckDataEngineImageCanBeRollback,
|
7451
7556
|
"CancelSparkSessionBatchSQL": doCancelSparkSessionBatchSQL,
|
@@ -7458,6 +7563,7 @@ ACTION_MAP = {
|
|
7458
7563
|
"CheckDataEngineConfigPairsValidity": doCheckDataEngineConfigPairsValidity,
|
7459
7564
|
"DeleteDataEngine": doDeleteDataEngine,
|
7460
7565
|
"DeleteUser": doDeleteUser,
|
7566
|
+
"DeleteTable": doDeleteTable,
|
7461
7567
|
"DescribeEngineUsageInfo": doDescribeEngineUsageInfo,
|
7462
7568
|
"DescribeTasksOverview": doDescribeTasksOverview,
|
7463
7569
|
"UpdateDataEngineConfig": doUpdateDataEngineConfig,
|