tccli 3.0.897.1__py2.py3-none-any.whl → 3.0.899.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 (86) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cdn/v20180606/ModifyDomainConfig.md +88 -0
  3. tccli/examples/cfs/v20190719/CreateMigrationTask.md +1 -1
  4. tccli/examples/cfs/v20190719/DeleteMigrationTask.md +1 -1
  5. tccli/examples/cfs/v20190719/ModifyFileSystemAutoScaleUpRule.md +1 -1
  6. tccli/examples/cfs/v20190719/ScaleUpFileSystem.md +1 -1
  7. tccli/examples/ckafka/v20190819/CreatePostPaidInstance.md +154 -0
  8. tccli/examples/cls/v20201016/DeleteShipper.md +2 -2
  9. tccli/examples/cls/v20201016/ModifyShipper.md +2 -2
  10. tccli/examples/cynosdb/v20190107/DescribeSupportProxyVersion.md +24 -0
  11. tccli/examples/ess/v20201111/CreateFlowApprovers.md +3 -1
  12. tccli/examples/ess/v20201111/DescribeThirdPartyAuthCode.md +1 -1
  13. tccli/examples/live/v20180801/DescribeLiveDomains.md +1 -1
  14. tccli/examples/nlp/v20190408/AnalyzeSentiment.md +24 -0
  15. tccli/examples/nlp/v20190408/ClassifyContent.md +39 -0
  16. tccli/examples/nlp/v20190408/ComposeCouplet.md +27 -0
  17. tccli/examples/nlp/v20190408/ComposePoetry.md +29 -0
  18. tccli/examples/postgres/v20170312/CreateReadOnlyDBInstance.md +1 -1
  19. tccli/examples/postgres/v20170312/UpgradeDBInstanceKernelVersion.md +1 -1
  20. tccli/examples/sqlserver/v20180328/DescribeDBInstancesAttribute.md +6 -1
  21. tccli/examples/sqlserver/v20180328/DescribeDBs.md +1 -1
  22. tccli/examples/tdmq/v20200217/CreateCmqQueue.md +2 -2
  23. tccli/examples/tke/v20180525/CreateClusterEndpointVip.md +1 -1
  24. tccli/examples/trp/v20210515/CreateCodeBatch.md +11 -5
  25. tccli/examples/trp/v20210515/DescribeScanLogs.md +1 -1
  26. tccli/examples/trp/v20210515/DescribeTraceCodeById.md +16 -11
  27. tccli/examples/trp/v20210515/ModifyCodeBatch.md +3 -3
  28. tccli/examples/waf/v20180125/ModifySpartaProtection.md +154 -0
  29. tccli/examples/wedata/v20210820/DescribeDimensionScore.md +15 -3
  30. tccli/examples/wedata/v20210820/DescribeQualityScore.md +1 -1
  31. tccli/examples/wedata/v20210820/DescribeQualityScoreTrend.md +10 -2
  32. tccli/examples/wedata/v20210820/DescribeTableQualityDetails.md +1 -1
  33. tccli/examples/wedata/v20210820/DescribeTableScoreTrend.md +10 -2
  34. tccli/services/antiddos/v20200309/api.json +45 -26
  35. tccli/services/apigateway/v20180808/api.json +17 -28
  36. tccli/services/asr/v20190614/api.json +3 -2
  37. tccli/services/cdb/v20170320/api.json +16 -11
  38. tccli/services/cdn/cdn_client.py +57 -4
  39. tccli/services/cdn/v20180606/api.json +52 -0
  40. tccli/services/cdn/v20180606/examples.json +26 -0
  41. tccli/services/cfs/v20190719/api.json +7 -0
  42. tccli/services/cfs/v20190719/examples.json +4 -4
  43. tccli/services/ckafka/ckafka_client.py +61 -8
  44. tccli/services/ckafka/v20190819/api.json +296 -6
  45. tccli/services/ckafka/v20190819/examples.json +20 -0
  46. tccli/services/cls/v20201016/api.json +3 -4
  47. tccli/services/cls/v20201016/examples.json +4 -4
  48. tccli/services/cynosdb/cynosdb_client.py +53 -0
  49. tccli/services/cynosdb/v20190107/api.json +72 -0
  50. tccli/services/cynosdb/v20190107/examples.json +8 -0
  51. tccli/services/ess/v20201111/api.json +44 -11
  52. tccli/services/ess/v20201111/examples.json +3 -3
  53. tccli/services/essbasic/v20210526/api.json +27 -1
  54. tccli/services/live/v20180801/api.json +4 -11
  55. tccli/services/live/v20180801/examples.json +1 -1
  56. tccli/services/nlp/nlp_client.py +216 -4
  57. tccli/services/nlp/v20190408/api.json +329 -0
  58. tccli/services/nlp/v20190408/examples.json +32 -0
  59. tccli/services/postgres/v20170312/api.json +2 -31
  60. tccli/services/postgres/v20170312/examples.json +2 -2
  61. tccli/services/sqlserver/v20180328/api.json +72 -15
  62. tccli/services/sqlserver/v20180328/examples.json +3 -3
  63. tccli/services/tbaas/tbaas_client.py +4 -322
  64. tccli/services/tbaas/v20180416/api.json +123 -825
  65. tccli/services/tbaas/v20180416/examples.json +0 -48
  66. tccli/services/tdid/tdid_client.py +60 -1650
  67. tccli/services/tdid/v20210519/api.json +394 -3848
  68. tccli/services/tdid/v20210519/examples.json +0 -240
  69. tccli/services/tdmq/v20200217/api.json +2 -19
  70. tccli/services/tdmq/v20200217/examples.json +2 -2
  71. tccli/services/tione/v20211111/api.json +24 -2
  72. tccli/services/tke/v20180525/api.json +4 -6
  73. tccli/services/tke/v20180525/examples.json +2 -2
  74. tccli/services/trp/v20210515/api.json +285 -113
  75. tccli/services/trp/v20210515/examples.json +6 -6
  76. tccli/services/tts/v20190823/api.json +7 -3
  77. tccli/services/waf/v20180125/api.json +401 -0
  78. tccli/services/waf/v20180125/examples.json +26 -0
  79. tccli/services/waf/waf_client.py +57 -4
  80. tccli/services/wedata/v20210820/api.json +151 -83
  81. tccli/services/wedata/v20210820/examples.json +8 -8
  82. {tccli-3.0.897.1.dist-info → tccli-3.0.899.1.dist-info}/METADATA +2 -2
  83. {tccli-3.0.897.1.dist-info → tccli-3.0.899.1.dist-info}/RECORD +86 -78
  84. {tccli-3.0.897.1.dist-info → tccli-3.0.899.1.dist-info}/WHEEL +0 -0
  85. {tccli-3.0.897.1.dist-info → tccli-3.0.899.1.dist-info}/entry_points.txt +0 -0
  86. {tccli-3.0.897.1.dist-info → tccli-3.0.899.1.dist-info}/license_files/LICENSE +0 -0
@@ -112,6 +112,13 @@
112
112
  "output": "CreatePartitionResponse",
113
113
  "status": "online"
114
114
  },
115
+ "CreatePostPaidInstance": {
116
+ "document": "当前接口用来替代 CreateInstancePost 接口。创建按量计费实例。通常用于 SDK 或云 API 控制台调用接口,创建后付费 CKafka 实例。调用接口与在 CKafka 控制台购买按量付费实例效果相同。",
117
+ "input": "CreatePostPaidInstanceRequest",
118
+ "name": "创建按量计费实例(新)",
119
+ "output": "CreatePostPaidInstanceResponse",
120
+ "status": "online"
121
+ },
115
122
  "CreateRoute": {
116
123
  "document": "添加实例路由",
117
124
  "input": "CreateRouteRequest",
@@ -3407,6 +3414,52 @@
3407
3414
  ],
3408
3415
  "type": "object"
3409
3416
  },
3417
+ "CreateInstancePostData": {
3418
+ "document": "创建后付费接口返回的 Data 数据结构",
3419
+ "members": [
3420
+ {
3421
+ "disabled": false,
3422
+ "document": "CreateInstancePre返回固定为0,不能作为CheckTaskStatus的查询条件。只是为了保证和后台数据结构对齐。\n注意:此字段可能返回 null,表示取不到有效值。",
3423
+ "example": "0",
3424
+ "member": "int64",
3425
+ "name": "FlowId",
3426
+ "required": true,
3427
+ "type": "int",
3428
+ "value_allowed_null": true
3429
+ },
3430
+ {
3431
+ "disabled": false,
3432
+ "document": "订单号列表\n注意:此字段可能返回 null,表示取不到有效值。",
3433
+ "example": "[\"20230608002033882210000\"]",
3434
+ "member": "string",
3435
+ "name": "DealNames",
3436
+ "required": true,
3437
+ "type": "list",
3438
+ "value_allowed_null": true
3439
+ },
3440
+ {
3441
+ "disabled": false,
3442
+ "document": "实例Id,当购买多个实例时,默认返回购买的第一个实例 id\n注意:此字段可能返回 null,表示取不到有效值。",
3443
+ "example": "ckafka-e5vjxxxx",
3444
+ "member": "string",
3445
+ "name": "InstanceId",
3446
+ "required": true,
3447
+ "type": "string",
3448
+ "value_allowed_null": true
3449
+ },
3450
+ {
3451
+ "disabled": false,
3452
+ "document": "订单和购买实例对应映射列表\n注意:此字段可能返回 null,表示取不到有效值。",
3453
+ "example": "无",
3454
+ "member": "DealInstanceDTO",
3455
+ "name": "DealNameInstanceIdMapping",
3456
+ "required": false,
3457
+ "type": "list",
3458
+ "value_allowed_null": true
3459
+ }
3460
+ ],
3461
+ "usage": "out"
3462
+ },
3410
3463
  "CreateInstancePostRequest": {
3411
3464
  "document": "CreateInstancePost请求参数结构体",
3412
3465
  "members": [
@@ -3475,7 +3528,7 @@
3475
3528
  },
3476
3529
  {
3477
3530
  "disabled": false,
3478
- "document": "实例版本。目前支持 \"0.10.2\",\"1.1.1\",\"2.4.2\",\"2.8.1\"",
3531
+ "document": "实例版本。目前支持 \"0.10.2\",\"1.1.1\",\"2.4.1\",\"2.4.2\",\"2.8.1\"。\"2.4.1\" 与 \"2.4.2\" 属于同一个版本,传任意一个均可。",
3479
3532
  "example": "2.4.2",
3480
3533
  "member": "string",
3481
3534
  "name": "KafkaVersion",
@@ -3565,7 +3618,7 @@
3565
3618
  },
3566
3619
  {
3567
3620
  "disabled": false,
3568
- "document": "公网带宽大小,单位 Mbps。默认是没有加上免费 3Mbps 带宽。例如总共需要 3Mbps 公网带宽,此处传 0;总共需要 4Mbps 公网带宽,此处传 1",
3621
+ "document": "公网带宽大小,单位 Mbps。默认是没有加上免费 3Mbps 带宽。例如总共需要 3Mbps 公网带宽,此处传 0;总共需要 6Mbps 公网带宽,此处传 3。需要保证传入参数为 3 的整数倍",
3569
3622
  "example": "12",
3570
3623
  "member": "int64",
3571
3624
  "name": "PublicNetworkMonthly",
@@ -3575,6 +3628,42 @@
3575
3628
  ],
3576
3629
  "type": "object"
3577
3630
  },
3631
+ "CreateInstancePostResp": {
3632
+ "document": "后付费实例相关接口返回结构",
3633
+ "members": [
3634
+ {
3635
+ "disabled": false,
3636
+ "document": "返回的code,0为正常,非0为错误",
3637
+ "example": "0",
3638
+ "member": "string",
3639
+ "name": "ReturnCode",
3640
+ "required": true,
3641
+ "type": "string",
3642
+ "value_allowed_null": false
3643
+ },
3644
+ {
3645
+ "disabled": false,
3646
+ "document": "接口返回消息,当接口报错时提示错误信息",
3647
+ "example": "success",
3648
+ "member": "string",
3649
+ "name": "ReturnMessage",
3650
+ "required": true,
3651
+ "type": "string",
3652
+ "value_allowed_null": false
3653
+ },
3654
+ {
3655
+ "disabled": false,
3656
+ "document": "返回的Data数据\n注意:此字段可能返回 null,表示取不到有效值。",
3657
+ "example": "无",
3658
+ "member": "CreateInstancePostData",
3659
+ "name": "Data",
3660
+ "required": true,
3661
+ "type": "object",
3662
+ "value_allowed_null": true
3663
+ }
3664
+ ],
3665
+ "usage": "out"
3666
+ },
3578
3667
  "CreateInstancePostResponse": {
3579
3668
  "document": "CreateInstancePost返回参数结构体",
3580
3669
  "members": [
@@ -3584,6 +3673,7 @@
3584
3673
  "example": "无",
3585
3674
  "member": "JgwOperateResponse",
3586
3675
  "name": "Result",
3676
+ "output_required": true,
3587
3677
  "type": "object",
3588
3678
  "value_allowed_null": false
3589
3679
  },
@@ -3683,7 +3773,7 @@
3683
3773
  },
3684
3774
  {
3685
3775
  "disabled": false,
3686
- "document": "vpcId,不填默认基础网络",
3776
+ "document": "vpcId必填",
3687
3777
  "example": "vpc-xxx",
3688
3778
  "member": "string",
3689
3779
  "name": "VpcId",
@@ -3728,8 +3818,8 @@
3728
3818
  },
3729
3819
  {
3730
3820
  "disabled": false,
3731
- "document": "CKafka版本号[0.10.2、1.1.1、2.4.1], 默认是1.1.1",
3732
- "example": "0.10.2/1.1.1/2.4.1",
3821
+ "document": "CKafka版本号[0.10.2、1.1.1、2.4.1、2.4.2、2.8.1], 默认是1.1.1。2.4.1 与 2.4.2 属于同一个版本,传任意一个均可。",
3822
+ "example": "1.1.1",
3733
3823
  "member": "string",
3734
3824
  "name": "KafkaVersion",
3735
3825
  "required": false,
@@ -3809,12 +3899,21 @@
3809
3899
  },
3810
3900
  {
3811
3901
  "disabled": false,
3812
- "document": "公网带宽大小,单位 Mbps。默认是没有加上免费 3Mbps 带宽。例如总共需要 3Mbps 公网带宽,此处传 0;总共需要 4Mbps 公网带宽,此处传 1。默认值为 0",
3902
+ "document": "公网带宽大小,单位 Mbps。默认是没有加上免费 3Mbps 带宽。例如总共需要 3Mbps 公网带宽,此处传 0;总共需要 6Mbps 公网带宽,此处传 3。默认值为 0。需要保证传入参数为 3 的整数倍",
3813
3903
  "example": "12",
3814
3904
  "member": "int64",
3815
3905
  "name": "PublicNetworkMonthly",
3816
3906
  "required": false,
3817
3907
  "type": "int"
3908
+ },
3909
+ {
3910
+ "disabled": false,
3911
+ "document": "购买实例数量。非必填,默认值为 1。当传入该参数时,会创建多个 instanceName 加后缀区分的实例",
3912
+ "example": "1",
3913
+ "member": "int64",
3914
+ "name": "InstanceNum",
3915
+ "required": false,
3916
+ "type": "int"
3818
3917
  }
3819
3918
  ],
3820
3919
  "type": "object"
@@ -3874,6 +3973,7 @@
3874
3973
  "example": "无",
3875
3974
  "member": "CreateInstancePreResp",
3876
3975
  "name": "Result",
3976
+ "output_required": true,
3877
3977
  "type": "object",
3878
3978
  "value_allowed_null": false
3879
3979
  },
@@ -3939,6 +4039,196 @@
3939
4039
  ],
3940
4040
  "type": "object"
3941
4041
  },
4042
+ "CreatePostPaidInstanceRequest": {
4043
+ "document": "CreatePostPaidInstance请求参数结构体",
4044
+ "members": [
4045
+ {
4046
+ "disabled": false,
4047
+ "document": "实例名称,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)",
4048
+ "example": "testInstance",
4049
+ "member": "string",
4050
+ "name": "InstanceName",
4051
+ "required": false,
4052
+ "type": "string"
4053
+ },
4054
+ {
4055
+ "disabled": false,
4056
+ "document": "创建的实例默认接入点所在的 vpc 对应 vpcId。目前不支持创建基础网络实例,因此该参数必填",
4057
+ "example": "vpc-xxxxxxxx",
4058
+ "member": "string",
4059
+ "name": "VpcId",
4060
+ "required": false,
4061
+ "type": "string"
4062
+ },
4063
+ {
4064
+ "disabled": false,
4065
+ "document": "子网id。创建实例默认接入点所在的子网对应的子网 id",
4066
+ "example": "subnet-xxxxxxxx",
4067
+ "member": "string",
4068
+ "name": "SubnetId",
4069
+ "required": false,
4070
+ "type": "string"
4071
+ },
4072
+ {
4073
+ "disabled": false,
4074
+ "document": "实例规格。当创建标准版实例时必填,创建专业版实例时不需要填写。1:入门型;2:标准型;3:进阶型;4:容量型;5:高阶型1;6:高阶性2;7:高阶型3;8:高阶型4;9 :独占型",
4075
+ "example": "1",
4076
+ "member": "int64",
4077
+ "name": "InstanceType",
4078
+ "required": false,
4079
+ "type": "int"
4080
+ },
4081
+ {
4082
+ "disabled": false,
4083
+ "document": "实例日志的默认最长保留时间,单位分钟。不传入该参数时默认为 1440 分钟(1天),最大30天。当 topic 显式设置消息保留时间时,以 topic 保留时间为准",
4084
+ "example": "1440",
4085
+ "member": "int64",
4086
+ "name": "MsgRetentionTime",
4087
+ "required": false,
4088
+ "type": "int"
4089
+ },
4090
+ {
4091
+ "disabled": false,
4092
+ "document": "创建实例时可以选择集群Id, 该入参表示集群Id。不指定实例所在集群则不传入该参数",
4093
+ "example": "5914",
4094
+ "member": "int64",
4095
+ "name": "ClusterId",
4096
+ "required": false,
4097
+ "type": "int"
4098
+ },
4099
+ {
4100
+ "disabled": false,
4101
+ "document": "实例版本。目前支持 \"0.10.2\",\"1.1.1\",\"2.4.1\",\"2.4.2\",\"2.8.1\"。\"2.4.1\" 与 \"2.4.2\" 属于同一个版本,传任意一个均可。",
4102
+ "example": "2.4.2",
4103
+ "member": "string",
4104
+ "name": "KafkaVersion",
4105
+ "required": false,
4106
+ "type": "string"
4107
+ },
4108
+ {
4109
+ "disabled": false,
4110
+ "document": "实例类型。\"standard\":标准版,\"profession\":专业版",
4111
+ "example": "profession",
4112
+ "member": "string",
4113
+ "name": "SpecificationsType",
4114
+ "required": false,
4115
+ "type": "string"
4116
+ },
4117
+ {
4118
+ "disabled": false,
4119
+ "document": "实例硬盘类型,\"CLOUD_BASIC\":云硬盘,\"CLOUD_SSD\":高速云硬盘。不传默认为 \"CLOUD_BASIC\"",
4120
+ "example": "CLOUD_BASIC",
4121
+ "member": "string",
4122
+ "name": "DiskType",
4123
+ "required": false,
4124
+ "type": "string"
4125
+ },
4126
+ {
4127
+ "disabled": false,
4128
+ "document": "实例内网峰值带宽。单位 MB/s。标准版需传入当前实例规格所对应的峰值带宽。注意如果创建的实例为专业版实例,峰值带宽,分区数等参数配置需要满足专业版的计费规格。",
4129
+ "example": "20",
4130
+ "member": "int64",
4131
+ "name": "BandWidth",
4132
+ "required": false,
4133
+ "type": "int"
4134
+ },
4135
+ {
4136
+ "disabled": false,
4137
+ "document": "实例硬盘大小,需要满足当前实例的计费规格",
4138
+ "example": "200",
4139
+ "member": "int64",
4140
+ "name": "DiskSize",
4141
+ "required": false,
4142
+ "type": "int"
4143
+ },
4144
+ {
4145
+ "disabled": false,
4146
+ "document": "实例最大分区数量,需要满足当前实例的计费规格",
4147
+ "example": "400",
4148
+ "member": "int64",
4149
+ "name": "Partition",
4150
+ "required": false,
4151
+ "type": "int"
4152
+ },
4153
+ {
4154
+ "disabled": false,
4155
+ "document": "实例最大 topic 数量,需要满足当前实例的计费规格",
4156
+ "example": "200",
4157
+ "member": "int64",
4158
+ "name": "TopicNum",
4159
+ "required": false,
4160
+ "type": "int"
4161
+ },
4162
+ {
4163
+ "disabled": false,
4164
+ "document": "实例所在的可用区。当创建多可用区实例时,该参数为创建的默认接入点所在子网的可用区 id",
4165
+ "example": "100006",
4166
+ "member": "int64",
4167
+ "name": "ZoneId",
4168
+ "required": false,
4169
+ "type": "int"
4170
+ },
4171
+ {
4172
+ "disabled": false,
4173
+ "document": "当前实例是否为多可用区实例。",
4174
+ "example": "true",
4175
+ "member": "bool",
4176
+ "name": "MultiZoneFlag",
4177
+ "required": false,
4178
+ "type": "bool"
4179
+ },
4180
+ {
4181
+ "disabled": false,
4182
+ "document": "当实例为多可用区实例时,多可用区 id 列表。注意参数 ZoneId 对应的多可用区需要包含在该参数数组中",
4183
+ "example": "[100006,100007]",
4184
+ "member": "int64",
4185
+ "name": "ZoneIds",
4186
+ "required": false,
4187
+ "type": "list"
4188
+ },
4189
+ {
4190
+ "disabled": false,
4191
+ "document": "购买实例数量。非必填,默认值为 1。当传入该参数时,会创建多个 instanceName 加后缀区分的实例",
4192
+ "example": "1",
4193
+ "member": "int64",
4194
+ "name": "InstanceNum",
4195
+ "required": false,
4196
+ "type": "int"
4197
+ },
4198
+ {
4199
+ "disabled": false,
4200
+ "document": "公网带宽大小,单位 Mbps。默认是没有加上免费 3Mbps 带宽。例如总共需要 3Mbps 公网带宽,此处传 0;总共需要 6Mbps 公网带宽,此处传 3。需要保证传入参数为 3 的整数倍",
4201
+ "example": "12",
4202
+ "member": "int64",
4203
+ "name": "PublicNetworkMonthly",
4204
+ "required": false,
4205
+ "type": "int"
4206
+ }
4207
+ ],
4208
+ "type": "object"
4209
+ },
4210
+ "CreatePostPaidInstanceResponse": {
4211
+ "document": "CreatePostPaidInstance返回参数结构体",
4212
+ "members": [
4213
+ {
4214
+ "disabled": false,
4215
+ "document": "返回结果",
4216
+ "example": "无",
4217
+ "member": "CreateInstancePostResp",
4218
+ "name": "Result",
4219
+ "output_required": true,
4220
+ "type": "object",
4221
+ "value_allowed_null": false
4222
+ },
4223
+ {
4224
+ "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
4225
+ "member": "string",
4226
+ "name": "RequestId",
4227
+ "type": "string"
4228
+ }
4229
+ ],
4230
+ "type": "object"
4231
+ },
3942
4232
  "CreateRouteRequest": {
3943
4233
  "document": "CreateRoute请求参数结构体",
3944
4234
  "members": [
@@ -158,6 +158,26 @@
158
158
  "title": "增加主题分区"
159
159
  }
160
160
  ],
161
+ "CreatePostPaidInstance": [
162
+ {
163
+ "document": "创建硬盘大小 200GB,峰值带宽 20MB/s 的专业版后付费实例",
164
+ "input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePostPaidInstance\n<公共请求参数>\n\n{\n \"InstanceName\": \"test55\",\n \"VpcId\": \"vpc-rmcgxxxx\",\n \"SubnetId\": \"subnet-mnzcxxxx\",\n \"ZoneId\": 450001,\n \"InstanceType\": 1,\n \"KafkaVersion\": \"1.1.1\",\n \"SpecificationsType\": \"profession\",\n \"DiskSize\": 200,\n \"BandWidth\": 20,\n \"Partition\": 400,\n \"DiskType\": \"CLOUD_BASIC\",\n \"PublicNetworkMonthly\": 0\n}",
165
+ "output": "{\n \"Response\": {\n \"RequestId\": \"323c3bbe-db79-48c3-9b76-63aacd65b169\",\n \"Result\": {\n \"Data\": {\n \"DealNameInstanceIdMapping\": [\n {\n \"DealName\": \"20230608002033899990000\",\n \"InstanceIdList\": [\n \"ckafka-mom5xxxx\"\n ]\n }\n ],\n \"DealNames\": [\n \"2023060800203389990000\"\n ],\n \"FlowId\": 0,\n \"InstanceId\": \"ckafka-mom5xxxx\"\n },\n \"ReturnCode\": \"0\",\n \"ReturnMessage\": \"ok[apply ok]\"\n }\n }\n}",
166
+ "title": "创建后付费专业版实例"
167
+ },
168
+ {
169
+ "document": "同时创建三个后付费专业版实例",
170
+ "input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePostPaidInstance\n<公共请求参数>\n\n{\n \"InstanceName\": \"test58\",\n \"VpcId\": \"vpc-rmcg5cpf\",\n \"SubnetId\": \"subnet-mnzcs7gk\",\n \"KafkaVersion\": \"2.4.2\",\n \"SpecificationsType\": \"profession\",\n \"BandWidth\": 20,\n \"DiskSize\": 200,\n \"Partition\": 400,\n \"TopicNum\": 200,\n \"ZoneId\": 450001,\n \"InstanceNum\": 3,\n \"PublicNetworkMonthly\": 12\n}",
171
+ "output": "{\n \"Response\": {\n \"RequestId\": \"cda79237-6424-482a-b2d2-97d4853b33b4\",\n \"Result\": {\n \"Data\": {\n \"DealNameInstanceIdMapping\": [\n {\n \"DealName\": \"20230608002033915320000\",\n \"InstanceIdList\": [\n \"ckafka-bz4dxxxx\",\n \"ckafka-o9gdxxxx\",\n \"ckafka-aj5gxxxx\"\n ]\n }\n ],\n \"DealNames\": [\n \"20230608002033915320000\"\n ],\n \"FlowId\": 0,\n \"InstanceId\": \"ckafka-bz4dxxxx\"\n },\n \"ReturnCode\": \"0\",\n \"ReturnMessage\": \"ok[apply ok]\"\n }\n }\n}",
172
+ "title": "批量创建后付费专业版实例"
173
+ },
174
+ {
175
+ "document": "创建一个三可用区的专业版实例",
176
+ "input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePostPaidInstance\n<公共请求参数>\n\n{\n \"InstanceName\": \"test55\",\n \"VpcId\": \"vpc-rmcgxxxx\",\n \"SubnetId\": \"subnet-mnzcxxxx\",\n \"ZoneId\": 450001,\n \"InstanceType\": 1,\n \"KafkaVersion\": \"1.1.1\",\n \"SpecificationsType\": \"profession\",\n \"DiskSize\": 200,\n \"BandWidth\": 20,\n \"Partition\": 400,\n \"DiskType\": \"CLOUD_BASIC\",\n \"PublicNetworkMonthly\": 0,\n \"MultiZoneFlag\": true,\n \"ZoneIds\": [\n 450001,\n 450002,\n 450003\n ]\n}",
177
+ "output": "{\n \"Response\": {\n \"RequestId\": \"323c3bbe-db79-48c3-9b76-63aacd65b169\",\n \"Result\": {\n \"Data\": {\n \"DealNameInstanceIdMapping\": [\n {\n \"DealName\": \"20230608002033899990000\",\n \"InstanceIdList\": [\n \"ckafka-mom5xxxx\"\n ]\n }\n ],\n \"DealNames\": [\n \"2023060800203389990000\"\n ],\n \"FlowId\": 0,\n \"InstanceId\": \"ckafka-mom5xxxx\"\n },\n \"ReturnCode\": \"0\",\n \"ReturnMessage\": \"ok[apply ok]\"\n }\n }\n}",
178
+ "title": "创建后付费多可用区专业版实例"
179
+ }
180
+ ],
161
181
  "CreateRoute": [
162
182
  {
163
183
  "document": "",
@@ -183,9 +183,9 @@
183
183
  "status": "online"
184
184
  },
185
185
  "DeleteShipper": {
186
- "document": "删除投递规则",
186
+ "document": "删除投递COS任务",
187
187
  "input": "DeleteShipperRequest",
188
- "name": "删除投递规则",
188
+ "name": "删除投递COS任务",
189
189
  "output": "DeleteShipperResponse",
190
190
  "status": "online"
191
191
  },
@@ -416,7 +416,7 @@
416
416
  "ModifyShipper": {
417
417
  "document": "修改现有的投递规则,客户如果使用此接口,需要自行处理CLS对指定bucket的写权限。",
418
418
  "input": "ModifyShipperRequest",
419
- "name": "修改投递规则",
419
+ "name": "修改投递COS任务",
420
420
  "output": "ModifyShipperResponse",
421
421
  "status": "online"
422
422
  },
@@ -3812,7 +3812,6 @@
3812
3812
  "document": "DeleteShipper请求参数结构体",
3813
3813
  "members": [
3814
3814
  {
3815
- "default": "",
3816
3815
  "disabled": false,
3817
3816
  "document": "投递规则ID",
3818
3817
  "example": "57f5808c-4a55-11eb-b378-0242ac130002",
@@ -210,10 +210,10 @@
210
210
  ],
211
211
  "DeleteShipper": [
212
212
  {
213
- "document": "",
213
+ "document": "删除投递COS任务",
214
214
  "input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteShipper\n<公共请求参数>\n\n{\n \"ShipperId\": \"xxxxxxx-xxx-xxx-xxx-xxxxxxx\"\n}",
215
215
  "output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
216
- "title": "删除投递规则"
216
+ "title": "删除投递COS任务"
217
217
  }
218
218
  ],
219
219
  "DeleteTopic": [
@@ -474,10 +474,10 @@
474
474
  ],
475
475
  "ModifyShipper": [
476
476
  {
477
- "document": "修改cos投递规则",
477
+ "document": "修改投递COS任务",
478
478
  "input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyShipper\n<公共请求参数>\n\n{\n \"ShipperId\": \"xxxx-xx-xx-xx-xxxxxxxx\",\n \"Bucket\": \"test-1250000001\",\n \"Prefix\": \"test\",\n \"ShipperName\": \"myname\",\n \"Interval\": 300,\n \"MaxSize\": 256,\n \"Partition\": \"%Y%m%d\",\n \"Compress\": {\n \"Format\": \"none\"\n },\n \"FilterRules\": [\n {\n \"Key\": \"\",\n \"Regex\": \"\",\n \"Value\": \"\"\n }\n ],\n \"FilenameMode\": 0\n}",
479
479
  "output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
480
- "title": "修改投递规则"
480
+ "title": "修改投递COS任务"
481
481
  }
482
482
  ],
483
483
  "ModifyTopic": [
@@ -589,6 +589,58 @@ def doDescribeResourcePackageList(args, parsed_globals):
589
589
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
590
590
 
591
591
 
592
+ def doDescribeSupportProxyVersion(args, parsed_globals):
593
+ g_param = parse_global_arg(parsed_globals)
594
+
595
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
596
+ cred = credential.CVMRoleCredential()
597
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
598
+ cred = credential.STSAssumeRoleCredential(
599
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
600
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
601
+ )
602
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
603
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
604
+ else:
605
+ cred = credential.Credential(
606
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
607
+ )
608
+ http_profile = HttpProfile(
609
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
610
+ reqMethod="POST",
611
+ endpoint=g_param[OptionsDefine.Endpoint],
612
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
613
+ )
614
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
615
+ if g_param[OptionsDefine.Language]:
616
+ profile.language = g_param[OptionsDefine.Language]
617
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
618
+ client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
619
+ client._sdkVersion += ("_CLI_" + __version__)
620
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
621
+ model = models.DescribeSupportProxyVersionRequest()
622
+ model.from_json_string(json.dumps(args))
623
+ start_time = time.time()
624
+ while True:
625
+ rsp = client.DescribeSupportProxyVersion(model)
626
+ result = rsp.to_json_string()
627
+ try:
628
+ json_obj = json.loads(result)
629
+ except TypeError as e:
630
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
631
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
632
+ break
633
+ cur_time = time.time()
634
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
635
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
636
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
637
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
638
+ else:
639
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
640
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
641
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
642
+
643
+
592
644
  def doCreateAuditLogFile(args, parsed_globals):
593
645
  g_param = parse_global_arg(parsed_globals)
594
646
 
@@ -6643,6 +6695,7 @@ ACTION_MAP = {
6643
6695
  "CopyClusterPasswordComplexity": doCopyClusterPasswordComplexity,
6644
6696
  "CloseAuditService": doCloseAuditService,
6645
6697
  "DescribeResourcePackageList": doDescribeResourcePackageList,
6698
+ "DescribeSupportProxyVersion": doDescribeSupportProxyVersion,
6646
6699
  "CreateAuditLogFile": doCreateAuditLogFile,
6647
6700
  "SwitchClusterVpc": doSwitchClusterVpc,
6648
6701
  "CloseProxy": doCloseProxy,