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
@@ -29,7 +29,7 @@
29
29
  "status": "online"
30
30
  },
31
31
  "CreateRecTask": {
32
- "document": "本接口服务对时长5小时以内的录音文件进行识别,异步返回识别全部结果。\n• 支持中文普通话、英语、粤语、日语、越南语、马来语、印度尼西亚语、菲律宾语、葡萄牙语、土耳其语、上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话。\n• 支持wav、mp3、m4a、flv、mp4、wma、3gp、amr、aac、ogg-opus、flac格式。\n• 支持语音 URL 和本地语音文件两种请求方式。语音 URL 的音频时长不能长于5小时,文件大小不超过1GB。本地语音文件调用不能大于5MB。推荐使用 [ 腾讯云COS](https://cloud.tencent.com/document/product/436/38484) 来存储&生成URL提交任务,无外网&流量下行费用,节约成本、提升任务速度。(COS桶权限需要设置公有读私有写,或URL设置外部可访问)\n• 提交录音文件识别请求后,在3小时内完成识别(大多数情况下1小时音频约3分钟以内完成识别,半小时内发送超过1000小时录音或者2万条识别任务的除外),识别结果在服务端可保存7天。\n• 支持回调或轮询的方式获取结果,结果获取请参考[ 录音文件识别结果查询](https://cloud.tencent.com/document/product/1093/37822)。\n• 生成字幕场景可设置参数ResTextFormat为3,解析ResultDetail结构生成字幕,可参考 [生成字幕最佳实践](https://cloud.tencent.com/document/product/1093/84291)。\n• 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法v3。\n• 默认接口请求频率限制:20次/秒,如您有提高请求频率限制的需求,请提[工单](https://console.cloud.tencent.com/workorder/category)进行咨询。",
32
+ "document": "本接口服务对时长5小时以内的录音文件进行识别,异步返回识别全部结果。\n• 支持中文普通话、英语、粤语、日语、越南语、马来语、印度尼西亚语、菲律宾语、葡萄牙语、土耳其语、上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话。\n• 支持wav、mp3、m4a、flv、mp4、wma、3gp、amr、aac、ogg-opus、flac格式。\n• 支持语音 URL 和本地语音文件两种请求方式。语音 URL 的音频时长不能长于5小时,文件大小不超过1GB。本地语音文件调用不能大于5MB。推荐使用 [ 腾讯云COS](https://cloud.tencent.com/document/product/436/38484) 来存储&生成URL提交任务,无外网&流量下行费用,节约成本、提升任务速度。(COS桶权限需要设置公有读私有写,或URL设置外部可访问)\n• 提交录音文件识别请求后,在3小时内完成识别(大多数情况下1小时音频约3分钟以内完成识别,半小时内发送超过1000小时录音或者2万条识别任务的除外),识别结果在服务端可保存7天。\n• 支持回调或轮询的方式获取结果,结果获取请参考[ 录音文件识别结果查询](https://cloud.tencent.com/document/product/1093/37822)。\n• 生成字幕场景可设置参数ResTextFormat为3,解析ResultDetail结构生成字幕,可参考 [生成字幕最佳实践](https://cloud.tencent.com/document/product/1093/84291)。\n• 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法v3。\n• 默认接口请求频率限制:20次/秒。",
33
33
  "input": "CreateRecTaskRequest",
34
34
  "name": "录音文件识别请求",
35
35
  "output": "CreateRecTaskResponse",
@@ -515,7 +515,7 @@
515
515
  },
516
516
  {
517
517
  "disabled": false,
518
- "document": "是否开启说话人分离,0:不开启,1:开启(仅支持8k_zh16k_zh,16k_zh_video,单声道音频),默认值为 0。\n注意:8k电话场景建议使用双声道来区分通话双方,设置ChannelNum=2即可,不用开启说话人分离。",
518
+ "document": "是否开启说话人分离,0:不开启,1:开启(仅支持8k_zh/16k_zh,ChannelNum=1时可用),默认值为 0。\n注意:8k电话场景建议使用双声道来区分通话双方,设置ChannelNum=2即可,不用开启说话人分离,如果设置了ChannelNum=1,后台会先转码成单声道,说话人分离结果可能产生偏差。",
519
519
  "example": "0",
520
520
  "member": "int64",
521
521
  "name": "SpeakerDiarization",
@@ -678,6 +678,7 @@
678
678
  "example": "无",
679
679
  "member": "Task",
680
680
  "name": "Data",
681
+ "output_required": true,
681
682
  "type": "object",
682
683
  "value_allowed_null": false
683
684
  },
@@ -10503,6 +10503,7 @@
10503
10503
  "example": "1",
10504
10504
  "member": "int64",
10505
10505
  "name": "ExpireDays",
10506
+ "output_required": true,
10506
10507
  "type": "int",
10507
10508
  "value_allowed_null": false
10508
10509
  },
@@ -10512,6 +10513,7 @@
10512
10513
  "example": "on",
10513
10514
  "member": "string",
10514
10515
  "name": "RemoteBackupSave",
10516
+ "output_required": true,
10515
10517
  "type": "string",
10516
10518
  "value_allowed_null": false
10517
10519
  },
@@ -10521,6 +10523,7 @@
10521
10523
  "example": "on",
10522
10524
  "member": "string",
10523
10525
  "name": "RemoteBinlogSave",
10526
+ "output_required": true,
10524
10527
  "type": "string",
10525
10528
  "value_allowed_null": false
10526
10529
  },
@@ -10530,6 +10533,7 @@
10530
10533
  "example": "[\"ap-guangzhou\"]",
10531
10534
  "member": "string",
10532
10535
  "name": "RemoteRegion",
10536
+ "output_required": true,
10533
10537
  "type": "list",
10534
10538
  "value_allowed_null": false
10535
10539
  },
@@ -10539,6 +10543,7 @@
10539
10543
  "example": "[\"ap-guangzhou\"]",
10540
10544
  "member": "string",
10541
10545
  "name": "RegionList",
10546
+ "output_required": true,
10542
10547
  "type": "list",
10543
10548
  "value_allowed_null": false
10544
10549
  },
@@ -16167,78 +16172,78 @@
16167
16172
  "document": "代理实例",
16168
16173
  "members": [
16169
16174
  {
16170
- "default": "",
16171
16175
  "disabled": false,
16172
16176
  "document": "实例ID\n注意:此字段可能返回 null,表示取不到有效值。",
16173
16177
  "example": "cdb-aykuksx3",
16174
16178
  "member": "string",
16175
16179
  "name": "InstanceId",
16180
+ "output_required": true,
16176
16181
  "required": false,
16177
16182
  "type": "string",
16178
16183
  "value_allowed_null": true
16179
16184
  },
16180
16185
  {
16181
- "default": "",
16182
16186
  "disabled": false,
16183
16187
  "document": "实例名称\n注意:此字段可能返回 null,表示取不到有效值。",
16184
16188
  "example": "test",
16185
16189
  "member": "string",
16186
16190
  "name": "InstanceName",
16191
+ "output_required": true,
16187
16192
  "required": false,
16188
16193
  "type": "string",
16189
16194
  "value_allowed_null": true
16190
16195
  },
16191
16196
  {
16192
- "default": "",
16193
16197
  "disabled": false,
16194
- "document": "实例类型\n注意:此字段可能返回 null,表示取不到有效值。",
16195
- "example": "master",
16196
- "member": "string",
16198
+ "document": "实例类型:1 master 主实例; 2 ro 只读实例; 3 dr 灾备实例; 4 sdr 小灾备实例\n注意:此字段可能返回 null,表示取不到有效值。",
16199
+ "example": "1",
16200
+ "member": "int64",
16197
16201
  "name": "InstanceType",
16202
+ "output_required": true,
16198
16203
  "required": false,
16199
- "type": "string",
16204
+ "type": "int",
16200
16205
  "value_allowed_null": true
16201
16206
  },
16202
16207
  {
16203
- "default": "",
16204
16208
  "disabled": false,
16205
16209
  "document": "实例状态,可能的返回值:0-创建中;1-运行中;4-隔离中;5-已隔离\n注意:此字段可能返回 null,表示取不到有效值。",
16206
16210
  "example": "1",
16207
16211
  "member": "int64",
16208
16212
  "name": "Status",
16213
+ "output_required": true,
16209
16214
  "required": false,
16210
16215
  "type": "int",
16211
16216
  "value_allowed_null": true
16212
16217
  },
16213
16218
  {
16214
- "default": "",
16215
16219
  "disabled": false,
16216
16220
  "document": "只读权重,如果权重为系统自动分配,改值不生效,只代表是否启用该实例\n注意:此字段可能返回 null,表示取不到有效值。",
16217
16221
  "example": "100",
16218
16222
  "member": "uint64",
16219
16223
  "name": "Weight",
16224
+ "output_required": true,
16220
16225
  "required": false,
16221
16226
  "type": "int",
16222
16227
  "value_allowed_null": true
16223
16228
  },
16224
16229
  {
16225
- "default": "",
16226
16230
  "disabled": false,
16227
16231
  "document": "实例所属地域\n注意:此字段可能返回 null,表示取不到有效值。",
16228
16232
  "example": "ap-guangzhou",
16229
16233
  "member": "string",
16230
16234
  "name": "Region",
16235
+ "output_required": true,
16231
16236
  "required": false,
16232
16237
  "type": "string",
16233
16238
  "value_allowed_null": true
16234
16239
  },
16235
16240
  {
16236
- "default": "",
16237
16241
  "disabled": false,
16238
16242
  "document": "实例所属可用区\n注意:此字段可能返回 null,表示取不到有效值。",
16239
16243
  "example": "ap-guangzhou-1",
16240
16244
  "member": "string",
16241
16245
  "name": "Zone",
16246
+ "output_required": true,
16242
16247
  "required": false,
16243
16248
  "type": "string",
16244
16249
  "value_allowed_null": true
@@ -121,7 +121,7 @@ def doDescribeScdnConfig(args, parsed_globals):
121
121
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
122
122
 
123
123
 
124
- def doListScdnTopBotData(args, parsed_globals):
124
+ def doModifyDomainConfig(args, parsed_globals):
125
125
  g_param = parse_global_arg(parsed_globals)
126
126
 
127
127
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -150,11 +150,11 @@ def doListScdnTopBotData(args, parsed_globals):
150
150
  client = mod.CdnClient(cred, g_param[OptionsDefine.Region], profile)
151
151
  client._sdkVersion += ("_CLI_" + __version__)
152
152
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
153
- model = models.ListScdnTopBotDataRequest()
153
+ model = models.ModifyDomainConfigRequest()
154
154
  model.from_json_string(json.dumps(args))
155
155
  start_time = time.time()
156
156
  while True:
157
- rsp = client.ListScdnTopBotData(model)
157
+ rsp = client.ModifyDomainConfig(model)
158
158
  result = rsp.to_json_string()
159
159
  try:
160
160
  json_obj = json.loads(result)
@@ -1993,6 +1993,58 @@ def doDescribeImageConfig(args, parsed_globals):
1993
1993
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1994
1994
 
1995
1995
 
1996
+ def doListScdnTopBotData(args, parsed_globals):
1997
+ g_param = parse_global_arg(parsed_globals)
1998
+
1999
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2000
+ cred = credential.CVMRoleCredential()
2001
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2002
+ cred = credential.STSAssumeRoleCredential(
2003
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2004
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2005
+ )
2006
+ 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):
2007
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2008
+ else:
2009
+ cred = credential.Credential(
2010
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2011
+ )
2012
+ http_profile = HttpProfile(
2013
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2014
+ reqMethod="POST",
2015
+ endpoint=g_param[OptionsDefine.Endpoint],
2016
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2017
+ )
2018
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2019
+ if g_param[OptionsDefine.Language]:
2020
+ profile.language = g_param[OptionsDefine.Language]
2021
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2022
+ client = mod.CdnClient(cred, g_param[OptionsDefine.Region], profile)
2023
+ client._sdkVersion += ("_CLI_" + __version__)
2024
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2025
+ model = models.ListScdnTopBotDataRequest()
2026
+ model.from_json_string(json.dumps(args))
2027
+ start_time = time.time()
2028
+ while True:
2029
+ rsp = client.ListScdnTopBotData(model)
2030
+ result = rsp.to_json_string()
2031
+ try:
2032
+ json_obj = json.loads(result)
2033
+ except TypeError as e:
2034
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2035
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2036
+ break
2037
+ cur_time = time.time()
2038
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2039
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2040
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2041
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2042
+ else:
2043
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2044
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2045
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2046
+
2047
+
1996
2048
  def doDescribeScdnTopData(args, parsed_globals):
1997
2049
  g_param = parse_global_arg(parsed_globals)
1998
2050
 
@@ -4190,7 +4242,7 @@ MODELS_MAP = {
4190
4242
  ACTION_MAP = {
4191
4243
  "AddCLSTopicDomains": doAddCLSTopicDomains,
4192
4244
  "DescribeScdnConfig": doDescribeScdnConfig,
4193
- "ListScdnTopBotData": doListScdnTopBotData,
4245
+ "ModifyDomainConfig": doModifyDomainConfig,
4194
4246
  "DescribeIpStatus": doDescribeIpStatus,
4195
4247
  "DescribeMapInfo": doDescribeMapInfo,
4196
4248
  "DeleteCdnDomain": doDeleteCdnDomain,
@@ -4226,6 +4278,7 @@ ACTION_MAP = {
4226
4278
  "CreateScdnLogTask": doCreateScdnLogTask,
4227
4279
  "DescribePushQuota": doDescribePushQuota,
4228
4280
  "DescribeImageConfig": doDescribeImageConfig,
4281
+ "ListScdnTopBotData": doListScdnTopBotData,
4229
4282
  "DescribeScdnTopData": doDescribeScdnTopData,
4230
4283
  "StopCdnDomain": doStopCdnDomain,
4231
4284
  "ListTopData": doListTopData,
@@ -462,6 +462,13 @@
462
462
  "output": "ManageClsTopicDomainsResponse",
463
463
  "status": "online"
464
464
  },
465
+ "ModifyDomainConfig": {
466
+ "document": "ModifyDomainConfig 用于修改内容分发网络加速域名配置信息\n注意:\nRoute 字段,使用点分隔,最后一段称为叶子节点,非叶子节点配置保持不变;\nValue 字段,使用 json 进行序列化,其中固定 update 作为 key,配置路径值参考 https://cloud.tencent.com/document/product/228/41116 接口各配置项复杂类型,为配置路径对应复杂类型下的节点。\n云审计相关:接口的入参可能包含密钥等敏感信息,所以此接口的入参不会上报到云审计。",
467
+ "input": "ModifyDomainConfigRequest",
468
+ "name": "变更加速域名配置",
469
+ "output": "ModifyDomainConfigResponse",
470
+ "status": "online"
471
+ },
465
472
  "ModifyPurgeFetchTaskStatus": {
466
473
  "document": "ModifyPurgeFetchTaskStatus 用于上报定时刷新预热任务执行状态",
467
474
  "input": "ModifyPurgeFetchTaskStatusRequest",
@@ -12725,6 +12732,51 @@
12725
12732
  ],
12726
12733
  "usage": "both"
12727
12734
  },
12735
+ "ModifyDomainConfigRequest": {
12736
+ "document": "ModifyDomainConfig请求参数结构体",
12737
+ "members": [
12738
+ {
12739
+ "disabled": false,
12740
+ "document": "域名",
12741
+ "example": "www.test.com",
12742
+ "member": "string",
12743
+ "name": "Domain",
12744
+ "required": true,
12745
+ "type": "string"
12746
+ },
12747
+ {
12748
+ "disabled": false,
12749
+ "document": "配置路径",
12750
+ "example": "Https.CertInfo.CertId",
12751
+ "member": "string",
12752
+ "name": "Route",
12753
+ "required": true,
12754
+ "type": "string"
12755
+ },
12756
+ {
12757
+ "disabled": false,
12758
+ "document": "配置路径值,使用 json 进行序列化,其中固定 update 作为 key",
12759
+ "example": "{\\\"update\\\":\\\"0VpOXiPz\\\"}",
12760
+ "member": "string",
12761
+ "name": "Value",
12762
+ "required": true,
12763
+ "type": "string"
12764
+ }
12765
+ ],
12766
+ "type": "object"
12767
+ },
12768
+ "ModifyDomainConfigResponse": {
12769
+ "document": "ModifyDomainConfig返回参数结构体",
12770
+ "members": [
12771
+ {
12772
+ "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
12773
+ "member": "string",
12774
+ "name": "RequestId",
12775
+ "type": "string"
12776
+ }
12777
+ ],
12778
+ "type": "object"
12779
+ },
12728
12780
  "ModifyPurgeFetchTaskStatusRequest": {
12729
12781
  "document": "ModifyPurgeFetchTaskStatus请求参数结构体",
12730
12782
  "members": [
@@ -528,6 +528,32 @@
528
528
  "title": "管理日志主题下域名列表"
529
529
  }
530
530
  ],
531
+ "ModifyDomainConfig": [
532
+ {
533
+ "document": "更新 HTTPS 服务器证书 ID(在 SSL 证书管理进行证书托管时自动生成)",
534
+ "input": "POST / HTTP/1.1\nHost: cdn.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDomainConfig\n<公共请求参数>\n\n{\n \"Domain\": \"www.test.com\",\n \"Route\": \"Https.CertInfo.CertId\",\n \"Value\": \"{\\\"update\\\":\\\"0VpOXiPz\\\"}\"\n}",
535
+ "output": "{\n \"Response\": {\n \"RequestId\": \"56a166ec-d784-4001-a850-7d62a5c07971\"\n }\n}",
536
+ "title": "更新 HTTPS 服务器证书 ID(在 SSL 证书管理进行证书托管时自动生成)"
537
+ },
538
+ {
539
+ "document": "更新域名回源建连超时时间",
540
+ "input": "POST / HTTP/1.1\nHost: cdn.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDomainConfig\n<公共请求参数>\n\n{\n \"Domain\": \"www.test.com\",\n \"Route\": \"OriginPullTimeout.ConnectTimeout\",\n \"Value\": \"{\\\"update\\\":10}\"\n}",
541
+ "output": "{\n \"Response\": {\n \"RequestId\": \"23cd4005-496f-4bc4-87d8-ab348d5b0c11\"\n }\n}",
542
+ "title": "更新域名回源建连超时时间"
543
+ },
544
+ {
545
+ "document": "更新域名回源超时配置",
546
+ "input": "POST / HTTP/1.1\nHost: cdn.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDomainConfig\n<公共请求参数>\n\n{\n \"Domain\": \"www.test.com\",\n \"Route\": \"OriginPullTimeout\",\n \"Value\": \"{\\\"update\\\":{\\\"ConnectTimeout\\\":10,\\\"ReceiveTimeout\\\":10}}\"\n}",
547
+ "output": "{\n \"Response\": {\n \"RequestId\": \"23cd4005-496f-4bc4-87d8-ab348d5b0c21\"\n }\n}",
548
+ "title": "更新域名回源超时配置"
549
+ },
550
+ {
551
+ "document": "更新域名源站配置",
552
+ "input": "POST / HTTP/1.1\nHost: cdn.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDomainConfig\n<公共请求参数>\n\n{\n \"Domain\": \"www.test.com\",\n \"Route\": \"Origin.Origins\",\n \"Value\": \"{\\\"update\\\":[\\\"1.1.1.1\\\"]}\"\n}",
553
+ "output": "{\n \"Response\": {\n \"RequestId\": \"eb029ee0-7e91-4a18-86f3-7fac952a446e\"\n }\n}",
554
+ "title": "更新域名源站配置"
555
+ }
556
+ ],
531
557
  "ModifyPurgeFetchTaskStatus": [
532
558
  {
533
559
  "document": "",
@@ -1436,6 +1436,7 @@
1436
1436
  "example": "无",
1437
1437
  "member": "string",
1438
1438
  "name": "TaskId",
1439
+ "output_required": true,
1439
1440
  "type": "string",
1440
1441
  "value_allowed_null": false
1441
1442
  },
@@ -3304,6 +3305,7 @@
3304
3305
  "example": "cfs-x",
3305
3306
  "member": "string",
3306
3307
  "name": "FileSystemId",
3308
+ "output_required": true,
3307
3309
  "type": "string",
3308
3310
  "value_allowed_null": false
3309
3311
  },
@@ -3313,6 +3315,7 @@
3313
3315
  "example": "0",
3314
3316
  "member": "uint64",
3315
3317
  "name": "Status",
3318
+ "output_required": true,
3316
3319
  "type": "int",
3317
3320
  "value_allowed_null": false
3318
3321
  },
@@ -3322,6 +3325,7 @@
3322
3325
  "example": "85",
3323
3326
  "member": "uint64",
3324
3327
  "name": "ScaleUpThreshold",
3328
+ "output_required": true,
3325
3329
  "type": "int",
3326
3330
  "value_allowed_null": false
3327
3331
  },
@@ -3331,6 +3335,7 @@
3331
3335
  "example": "75",
3332
3336
  "member": "uint64",
3333
3337
  "name": "TargetThreshold",
3338
+ "output_required": true,
3334
3339
  "type": "int",
3335
3340
  "value_allowed_null": false
3336
3341
  },
@@ -3652,6 +3657,7 @@
3652
3657
  "example": "cfs-x",
3653
3658
  "member": "string",
3654
3659
  "name": "FileSystemId",
3660
+ "output_required": true,
3655
3661
  "type": "string",
3656
3662
  "value_allowed_null": false
3657
3663
  },
@@ -3661,6 +3667,7 @@
3661
3667
  "example": "10240",
3662
3668
  "member": "uint64",
3663
3669
  "name": "TargetCapacity",
3670
+ "output_required": true,
3664
3671
  "type": "int",
3665
3672
  "value_allowed_null": false
3666
3673
  },
@@ -50,7 +50,7 @@
50
50
  ],
51
51
  "CreateMigrationTask": [
52
52
  {
53
- "document": "用于创建数据迁移任务,需开启白名单后才能使用。",
53
+ "document": "用于创建数据迁移任务",
54
54
  "input": "POST / HTTP/1.1\nHost: cfs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateMigrationTask\n<公共请求参数>\n\n{\n \"BucketRegion\": \"ap-nanjing\",\n \"SrcService\": \"COS\",\n \"CoverType\": \"1\",\n \"SrcSecretKey\": \"*****************************\",\n \"BucketPath\": \"cos/\",\n \"MigrationMode\": \"0\",\n \"FileSystemId\": \"cfs-8dd58fd7\",\n \"BucketName\": \"test-1-1256238147\",\n \"FsPath\": \"/test/\",\n \"MigrationType\": \"0\",\n \"TaskName\": \"test\",\n \"SrcSecretId\": \"**************************************************\",\n \"FsName\": \"test\"\n}",
55
55
  "output": "{\n \"Response\": {\n \"TaskId\": \"cfsmigrate-dfe9b1f2\",\n \"RequestId\": \"91cd4a08-a105-4c59-b229-82f0fs7363b8\"\n }\n}",
56
56
  "title": "创建迁移任务"
@@ -101,7 +101,7 @@
101
101
  "document": "用于删除数据迁移任务",
102
102
  "input": "POST / HTTP/1.1\nHost: cfs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteMigrationTask\n<公共请求参数>\n\n{\n \"TaskId\": \"cfsmigrate-4e78dae8\"\n}",
103
103
  "output": "{\n \"Response\": {\n \"RequestId\": \"b72e3de2-6770-4388-af42-7e511935ad8e\"\n }\n}",
104
- "title": "删除迁移"
104
+ "title": "删除迁移任务"
105
105
  }
106
106
  ],
107
107
  "DeleteMountTarget": [
@@ -237,7 +237,7 @@
237
237
  "document": "更新文件系统自动扩容策略",
238
238
  "input": "POST / HTTP/1.1\nHost: cfs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyCFSFileSystemAutoScaleRule\n<公共请求参数>\n\n{\n \"FileSystemId\": \"cfs-agaga\",\n \"Status\": 1,\n \"ScaleUpThreshold\": 85,\n \"TargetThreshold\": 70\n}",
239
239
  "output": "{\n \"Response\": {\n \"RequestId\": \"gagagagad-xdx\",\n \"FileSystemId\": \"cfs-agaga\",\n \"Status\": 1,\n \"ScaleUpThreshold\": 85,\n \"TargetThreshold\": 70\n }\n}",
240
- "title": "ModifyCFSFileSystemAutoScaleRule"
240
+ "title": "更新文件系统自动扩容策略"
241
241
  }
242
242
  ],
243
243
  "ScaleUpFileSystem": [
@@ -245,7 +245,7 @@
245
245
  "document": "扩容文件系统",
246
246
  "input": "POST / HTTP/1.1\nHost: cfs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpgradeCFSFileSystem\n<公共请求参数>\n\n{\n \"FileSystemId\": \"cfs-agagag\",\n \"TargetCapacity\": 1\n}",
247
247
  "output": "{\n \"Response\": {\n \"RequestId\": \"agagaga-tatatatata-tatata\",\n \"FileSystemId\": \"cfs-agagag\",\n \"TargetCapacity\": 10\n }\n}",
248
- "title": "UpgradeCFSFileSystem"
248
+ "title": "扩容文件系统"
249
249
  }
250
250
  ],
251
251
  "SetUserQuota": [
@@ -2461,6 +2461,58 @@ def doFetchLatestDatahubMessageList(args, parsed_globals):
2461
2461
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2462
2462
 
2463
2463
 
2464
+ def doCreateUser(args, parsed_globals):
2465
+ g_param = parse_global_arg(parsed_globals)
2466
+
2467
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2468
+ cred = credential.CVMRoleCredential()
2469
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2470
+ cred = credential.STSAssumeRoleCredential(
2471
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2472
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2473
+ )
2474
+ 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):
2475
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2476
+ else:
2477
+ cred = credential.Credential(
2478
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2479
+ )
2480
+ http_profile = HttpProfile(
2481
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2482
+ reqMethod="POST",
2483
+ endpoint=g_param[OptionsDefine.Endpoint],
2484
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2485
+ )
2486
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2487
+ if g_param[OptionsDefine.Language]:
2488
+ profile.language = g_param[OptionsDefine.Language]
2489
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2490
+ client = mod.CkafkaClient(cred, g_param[OptionsDefine.Region], profile)
2491
+ client._sdkVersion += ("_CLI_" + __version__)
2492
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2493
+ model = models.CreateUserRequest()
2494
+ model.from_json_string(json.dumps(args))
2495
+ start_time = time.time()
2496
+ while True:
2497
+ rsp = client.CreateUser(model)
2498
+ result = rsp.to_json_string()
2499
+ try:
2500
+ json_obj = json.loads(result)
2501
+ except TypeError as e:
2502
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2503
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2504
+ break
2505
+ cur_time = time.time()
2506
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2507
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2508
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2509
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2510
+ else:
2511
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2512
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2513
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2514
+
2515
+
2464
2516
  def doDescribeTaskStatus(args, parsed_globals):
2465
2517
  g_param = parse_global_arg(parsed_globals)
2466
2518
 
@@ -3501,7 +3553,7 @@ def doDescribeTopicProduceConnection(args, parsed_globals):
3501
3553
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3502
3554
 
3503
3555
 
3504
- def doDescribeTopic(args, parsed_globals):
3556
+ def doCreatePostPaidInstance(args, parsed_globals):
3505
3557
  g_param = parse_global_arg(parsed_globals)
3506
3558
 
3507
3559
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3530,11 +3582,11 @@ def doDescribeTopic(args, parsed_globals):
3530
3582
  client = mod.CkafkaClient(cred, g_param[OptionsDefine.Region], profile)
3531
3583
  client._sdkVersion += ("_CLI_" + __version__)
3532
3584
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3533
- model = models.DescribeTopicRequest()
3585
+ model = models.CreatePostPaidInstanceRequest()
3534
3586
  model.from_json_string(json.dumps(args))
3535
3587
  start_time = time.time()
3536
3588
  while True:
3537
- rsp = client.DescribeTopic(model)
3589
+ rsp = client.CreatePostPaidInstance(model)
3538
3590
  result = rsp.to_json_string()
3539
3591
  try:
3540
3592
  json_obj = json.loads(result)
@@ -3813,7 +3865,7 @@ def doDescribeConnectResources(args, parsed_globals):
3813
3865
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3814
3866
 
3815
3867
 
3816
- def doCreateUser(args, parsed_globals):
3868
+ def doDescribeTopic(args, parsed_globals):
3817
3869
  g_param = parse_global_arg(parsed_globals)
3818
3870
 
3819
3871
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3842,11 +3894,11 @@ def doCreateUser(args, parsed_globals):
3842
3894
  client = mod.CkafkaClient(cred, g_param[OptionsDefine.Region], profile)
3843
3895
  client._sdkVersion += ("_CLI_" + __version__)
3844
3896
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3845
- model = models.CreateUserRequest()
3897
+ model = models.DescribeTopicRequest()
3846
3898
  model.from_json_string(json.dumps(args))
3847
3899
  start_time = time.time()
3848
3900
  while True:
3849
- rsp = client.CreateUser(model)
3901
+ rsp = client.DescribeTopic(model)
3850
3902
  result = rsp.to_json_string()
3851
3903
  try:
3852
3904
  json_obj = json.loads(result)
@@ -4131,6 +4183,7 @@ ACTION_MAP = {
4131
4183
  "DeleteRouteTriggerTime": doDeleteRouteTriggerTime,
4132
4184
  "CreatePartition": doCreatePartition,
4133
4185
  "FetchLatestDatahubMessageList": doFetchLatestDatahubMessageList,
4186
+ "CreateUser": doCreateUser,
4134
4187
  "DescribeTaskStatus": doDescribeTaskStatus,
4135
4188
  "BatchModifyGroupOffsets": doBatchModifyGroupOffsets,
4136
4189
  "FetchDatahubMessageByOffset": doFetchDatahubMessageByOffset,
@@ -4151,13 +4204,13 @@ ACTION_MAP = {
4151
4204
  "DescribeTopicAttributes": doDescribeTopicAttributes,
4152
4205
  "AuthorizeToken": doAuthorizeToken,
4153
4206
  "DescribeTopicProduceConnection": doDescribeTopicProduceConnection,
4154
- "DescribeTopic": doDescribeTopic,
4207
+ "CreatePostPaidInstance": doCreatePostPaidInstance,
4155
4208
  "CreateAclRule": doCreateAclRule,
4156
4209
  "ModifyInstanceAttributes": doModifyInstanceAttributes,
4157
4210
  "DescribeCkafkaZone": doDescribeCkafkaZone,
4158
4211
  "DescribeRegion": doDescribeRegion,
4159
4212
  "DescribeConnectResources": doDescribeConnectResources,
4160
- "CreateUser": doCreateUser,
4213
+ "DescribeTopic": doDescribeTopic,
4161
4214
  "DeleteTopic": doDeleteTopic,
4162
4215
  "ModifyPassword": doModifyPassword,
4163
4216
  "InquireCkafkaPrice": doInquireCkafkaPrice,