tccli 3.0.1103.1__py2.py3-none-any.whl → 3.0.1104.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 (72) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/aiart/v20221229/ImageToImage.md +1 -1
  3. tccli/examples/csip/v20221121/DescribeDbAssets.md +7 -0
  4. tccli/examples/csip/v20221121/DescribeOrganizationUserInfo.md +12 -1
  5. tccli/examples/cwp/v20180228/DescribePublicProxyInstallCommand.md +4 -4
  6. tccli/examples/cynosdb/v20190107/CreateCLSDelivery.md +18 -0
  7. tccli/examples/cynosdb/v20190107/DeleteCLSDelivery.md +18 -0
  8. tccli/examples/cynosdb/v20190107/DescribeInstanceCLSLogDelivery.md +18 -0
  9. tccli/examples/cynosdb/v20190107/StartCLSDelivery.md +18 -0
  10. tccli/examples/cynosdb/v20190107/StopCLSDelivery.md +18 -0
  11. tccli/examples/ess/v20201111/CreateUserVerifyUrl.md +29 -0
  12. tccli/examples/ess/v20201111/DescribeUserVerifyStatus.md +23 -0
  13. tccli/examples/hai/v20230812/DescribeInstances.md +3 -2
  14. tccli/examples/hunyuan/v20230901/QueryHunyuanImageJob.md +33 -0
  15. tccli/examples/hunyuan/v20230901/SubmitHunyuanImageJob.md +21 -0
  16. tccli/examples/live/v20180801/DescribeLivePadProcessorList.md +25 -0
  17. tccli/examples/live/v20180801/StopLivePadProcessor.md +23 -0
  18. tccli/examples/mrs/v20200910/DrugInstructionObject.md +98 -0
  19. tccli/examples/ssl/v20191205/DescribeDownloadCertificateUrl.md +23 -0
  20. tccli/examples/tke/v20220501/CreateNodePool.md +33 -0
  21. tccli/examples/tke/v20220501/DeleteNodePool.md +21 -0
  22. tccli/examples/tke/v20220501/DescribeNodePools.md +9 -3
  23. tccli/examples/tke/v20220501/ModifyNodePool.md +32 -0
  24. tccli/services/aiart/v20221229/api.json +3 -3
  25. tccli/services/aiart/v20221229/examples.json +1 -1
  26. tccli/services/apm/v20210622/api.json +1 -1
  27. tccli/services/batch/v20170312/api.json +1 -1
  28. tccli/services/billing/v20180709/api.json +2 -2
  29. tccli/services/cdb/v20170320/api.json +2 -2
  30. tccli/services/clb/v20180317/api.json +1 -1
  31. tccli/services/cls/v20201016/api.json +1 -1
  32. tccli/services/csip/v20221121/api.json +80 -2
  33. tccli/services/csip/v20221121/examples.json +4 -4
  34. tccli/services/cvm/v20170312/api.json +1 -1
  35. tccli/services/cwp/v20180228/api.json +17 -5
  36. tccli/services/cwp/v20180228/examples.json +2 -2
  37. tccli/services/cynosdb/cynosdb_client.py +269 -4
  38. tccli/services/cynosdb/v20190107/api.json +131 -0
  39. tccli/services/cynosdb/v20190107/examples.json +40 -0
  40. tccli/services/ess/ess_client.py +110 -4
  41. tccli/services/ess/v20201111/api.json +185 -5
  42. tccli/services/ess/v20201111/examples.json +16 -0
  43. tccli/services/essbasic/v20210526/api.json +4 -4
  44. tccli/services/faceid/v20180301/api.json +1 -1
  45. tccli/services/hai/v20230812/api.json +2 -2
  46. tccli/services/hai/v20230812/examples.json +1 -1
  47. tccli/services/hunyuan/hunyuan_client.py +110 -4
  48. tccli/services/hunyuan/v20230901/api.json +188 -4
  49. tccli/services/hunyuan/v20230901/examples.json +16 -0
  50. tccli/services/lighthouse/v20200324/api.json +15 -5
  51. tccli/services/live/live_client.py +114 -8
  52. tccli/services/live/v20180801/api.json +124 -0
  53. tccli/services/live/v20180801/examples.json +16 -0
  54. tccli/services/lke/v20231130/api.json +108 -2
  55. tccli/services/mrs/v20200910/api.json +1 -1
  56. tccli/services/mrs/v20200910/examples.json +1 -1
  57. tccli/services/ssl/ssl_client.py +57 -4
  58. tccli/services/ssl/v20191205/api.json +63 -0
  59. tccli/services/ssl/v20191205/examples.json +8 -0
  60. tccli/services/ssm/v20190923/api.json +1 -1
  61. tccli/services/tdmq/v20200217/api.json +10 -10
  62. tccli/services/teo/v20220901/api.json +34 -0
  63. tccli/services/tke/tke_client.py +171 -12
  64. tccli/services/tke/v20220501/api.json +1403 -86
  65. tccli/services/tke/v20220501/examples.json +25 -1
  66. tccli/services/trtc/v20190722/api.json +5 -8
  67. tccli/services/vpc/v20170312/api.json +1 -0
  68. {tccli-3.0.1103.1.dist-info → tccli-3.0.1104.1.dist-info}/METADATA +2 -2
  69. {tccli-3.0.1103.1.dist-info → tccli-3.0.1104.1.dist-info}/RECORD +72 -57
  70. {tccli-3.0.1103.1.dist-info → tccli-3.0.1104.1.dist-info}/WHEEL +0 -0
  71. {tccli-3.0.1103.1.dist-info → tccli-3.0.1104.1.dist-info}/entry_points.txt +0 -0
  72. {tccli-3.0.1103.1.dist-info → tccli-3.0.1104.1.dist-info}/license_files/LICENSE +0 -0
@@ -17,7 +17,7 @@ from tencentcloud.hunyuan.v20230901 import models as models_v20230901
17
17
  from jmespath import search
18
18
  import time
19
19
 
20
- def doChatCompletions(args, parsed_globals):
20
+ def doSubmitHunyuanImageJob(args, parsed_globals):
21
21
  g_param = parse_global_arg(parsed_globals)
22
22
 
23
23
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -46,11 +46,11 @@ def doChatCompletions(args, parsed_globals):
46
46
  client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
47
47
  client._sdkVersion += ("_CLI_" + __version__)
48
48
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
- model = models.ChatCompletionsRequest()
49
+ model = models.SubmitHunyuanImageJobRequest()
50
50
  model.from_json_string(json.dumps(args))
51
51
  start_time = time.time()
52
52
  while True:
53
- rsp = client.ChatCompletions(model)
53
+ rsp = client.SubmitHunyuanImageJob(model)
54
54
  result = rsp.to_json_string()
55
55
  try:
56
56
  json_obj = json.loads(result)
@@ -121,6 +121,58 @@ def doChatPro(args, parsed_globals):
121
121
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
122
122
 
123
123
 
124
+ def doQueryHunyuanImageJob(args, parsed_globals):
125
+ g_param = parse_global_arg(parsed_globals)
126
+
127
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
128
+ cred = credential.CVMRoleCredential()
129
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
130
+ cred = credential.STSAssumeRoleCredential(
131
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
132
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
133
+ )
134
+ 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):
135
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
136
+ else:
137
+ cred = credential.Credential(
138
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
139
+ )
140
+ http_profile = HttpProfile(
141
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
142
+ reqMethod="POST",
143
+ endpoint=g_param[OptionsDefine.Endpoint],
144
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
145
+ )
146
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
147
+ if g_param[OptionsDefine.Language]:
148
+ profile.language = g_param[OptionsDefine.Language]
149
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
150
+ client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
151
+ client._sdkVersion += ("_CLI_" + __version__)
152
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
153
+ model = models.QueryHunyuanImageJobRequest()
154
+ model.from_json_string(json.dumps(args))
155
+ start_time = time.time()
156
+ while True:
157
+ rsp = client.QueryHunyuanImageJob(model)
158
+ result = rsp.to_json_string()
159
+ try:
160
+ json_obj = json.loads(result)
161
+ except TypeError as e:
162
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
163
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
164
+ break
165
+ cur_time = time.time()
166
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
167
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
168
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
169
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
170
+ else:
171
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
172
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
173
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
174
+
175
+
124
176
  def doChatStd(args, parsed_globals):
125
177
  g_param = parse_global_arg(parsed_globals)
126
178
 
@@ -173,6 +225,58 @@ def doChatStd(args, parsed_globals):
173
225
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
174
226
 
175
227
 
228
+ def doChatCompletions(args, parsed_globals):
229
+ g_param = parse_global_arg(parsed_globals)
230
+
231
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
232
+ cred = credential.CVMRoleCredential()
233
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
234
+ cred = credential.STSAssumeRoleCredential(
235
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
236
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
237
+ )
238
+ 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):
239
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
240
+ else:
241
+ cred = credential.Credential(
242
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
243
+ )
244
+ http_profile = HttpProfile(
245
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
246
+ reqMethod="POST",
247
+ endpoint=g_param[OptionsDefine.Endpoint],
248
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
249
+ )
250
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
251
+ if g_param[OptionsDefine.Language]:
252
+ profile.language = g_param[OptionsDefine.Language]
253
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
254
+ client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
255
+ client._sdkVersion += ("_CLI_" + __version__)
256
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
257
+ model = models.ChatCompletionsRequest()
258
+ model.from_json_string(json.dumps(args))
259
+ start_time = time.time()
260
+ while True:
261
+ rsp = client.ChatCompletions(model)
262
+ result = rsp.to_json_string()
263
+ try:
264
+ json_obj = json.loads(result)
265
+ except TypeError as e:
266
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
267
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
268
+ break
269
+ cur_time = time.time()
270
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
271
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
272
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
273
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
274
+ else:
275
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
276
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
277
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
+
279
+
176
280
  def doGetTokenCount(args, parsed_globals):
177
281
  g_param = parse_global_arg(parsed_globals)
178
282
 
@@ -288,9 +392,11 @@ MODELS_MAP = {
288
392
  }
289
393
 
290
394
  ACTION_MAP = {
291
- "ChatCompletions": doChatCompletions,
395
+ "SubmitHunyuanImageJob": doSubmitHunyuanImageJob,
292
396
  "ChatPro": doChatPro,
397
+ "QueryHunyuanImageJob": doQueryHunyuanImageJob,
293
398
  "ChatStd": doChatStd,
399
+ "ChatCompletions": doChatCompletions,
294
400
  "GetTokenCount": doGetTokenCount,
295
401
  "GetEmbedding": doGetEmbedding,
296
402
 
@@ -34,6 +34,20 @@
34
34
  "name": "Token 计数",
35
35
  "output": "GetTokenCountResponse",
36
36
  "status": "online"
37
+ },
38
+ "QueryHunyuanImageJob": {
39
+ "document": "混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。\n提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。\n查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
40
+ "input": "QueryHunyuanImageJobRequest",
41
+ "name": "查询混元生图任务",
42
+ "output": "QueryHunyuanImageJobResponse",
43
+ "status": "online"
44
+ },
45
+ "SubmitHunyuanImageJob": {
46
+ "document": "混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。\n提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。\n查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
47
+ "input": "SubmitHunyuanImageJobRequest",
48
+ "name": "提交混元生图任务",
49
+ "output": "SubmitHunyuanImageJobResponse",
50
+ "status": "online"
37
51
  }
38
52
  },
39
53
  "metadata": {
@@ -48,8 +62,8 @@
48
62
  "members": [
49
63
  {
50
64
  "disabled": false,
51
- "document": "模型名称,可选值包括 hunyuan-lite、hunyuan-standard、hunyuan-pro。\n各模型介绍请阅读 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 中的说明。\n\n注意:\n不同的模型计费不同,请根据 [购买指南](https://cloud.tencent.com/document/product/1729/97731) 按需调用。",
52
- "example": "",
65
+ "document": "模型名称,可选值包括 hunyuan-lite、hunyuan-standard、hunyuan-standard-256K、hunyuan-pro。\n各模型介绍请阅读 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 中的说明。\n\n注意:\n不同的模型计费不同,请根据 [购买指南](https://cloud.tencent.com/document/product/1729/97731) 按需调用。",
66
+ "example": "hunyuan-standard",
53
67
  "member": "string",
54
68
  "name": "Model",
55
69
  "required": true,
@@ -85,7 +99,7 @@
85
99
  {
86
100
  "disabled": false,
87
101
  "document": "说明:\n1. 影响输出文本的多样性,取值越大,生成文本的多样性越强。\n2. 默认 1.0,取值区间为 [0.0, 1.0]。\n3. 非必要不建议使用,不合理的取值会影响效果。",
88
- "example": "",
102
+ "example": "1.0",
89
103
  "member": "float",
90
104
  "name": "TopP",
91
105
  "required": false,
@@ -94,7 +108,7 @@
94
108
  {
95
109
  "disabled": false,
96
110
  "document": "说明:\n1. 较高的数值会使输出更加随机,而较低的数值会使其更加集中和确定。\n2. 默认 1.0,取值区间为 [0.0, 2.0]。\n3. 非必要不建议使用,不合理的取值会影响效果。",
97
- "example": "",
111
+ "example": "1.0",
98
112
  "member": "float",
99
113
  "name": "Temperature",
100
114
  "required": false,
@@ -703,6 +717,176 @@
703
717
  ],
704
718
  "usage": "both"
705
719
  },
720
+ "QueryHunyuanImageJobRequest": {
721
+ "document": "QueryHunyuanImageJob请求参数结构体",
722
+ "members": [
723
+ {
724
+ "disabled": false,
725
+ "document": "任务 ID。",
726
+ "example": "无",
727
+ "member": "string",
728
+ "name": "JobId",
729
+ "required": true,
730
+ "type": "string"
731
+ }
732
+ ],
733
+ "type": "object"
734
+ },
735
+ "QueryHunyuanImageJobResponse": {
736
+ "document": "QueryHunyuanImageJob返回参数结构体",
737
+ "members": [
738
+ {
739
+ "disabled": false,
740
+ "document": "当前任务状态码:\n1:等待中、2:运行中、4:处理失败、5:处理完成。",
741
+ "example": "无",
742
+ "member": "string",
743
+ "name": "JobStatusCode",
744
+ "output_required": false,
745
+ "type": "string",
746
+ "value_allowed_null": false
747
+ },
748
+ {
749
+ "disabled": false,
750
+ "document": "当前任务状态:排队中、处理中、处理失败或者处理完成。\n",
751
+ "example": "无",
752
+ "member": "string",
753
+ "name": "JobStatusMsg",
754
+ "output_required": false,
755
+ "type": "string",
756
+ "value_allowed_null": false
757
+ },
758
+ {
759
+ "disabled": false,
760
+ "document": "任务处理失败错误码。\n",
761
+ "example": "无",
762
+ "member": "string",
763
+ "name": "JobErrorCode",
764
+ "output_required": false,
765
+ "type": "string",
766
+ "value_allowed_null": false
767
+ },
768
+ {
769
+ "disabled": false,
770
+ "document": "任务处理失败错误信息。\n",
771
+ "example": "无",
772
+ "member": "string",
773
+ "name": "JobErrorMsg",
774
+ "output_required": false,
775
+ "type": "string",
776
+ "value_allowed_null": false
777
+ },
778
+ {
779
+ "disabled": false,
780
+ "document": "生成图 URL 列表,有效期1小时,请及时保存。\n",
781
+ "example": "无",
782
+ "member": "string",
783
+ "name": "ResultImage",
784
+ "output_required": false,
785
+ "type": "list",
786
+ "value_allowed_null": false
787
+ },
788
+ {
789
+ "disabled": false,
790
+ "document": "结果 detail 数组,Success 代表成功。\n",
791
+ "example": "无",
792
+ "member": "string",
793
+ "name": "ResultDetails",
794
+ "output_required": false,
795
+ "type": "list",
796
+ "value_allowed_null": false
797
+ },
798
+ {
799
+ "disabled": false,
800
+ "document": "对应 SubmitTextToImageProJob 接口中 Revise 参数。开启扩写时,返回扩写后的 prompt 文本。 如果关闭扩写,将直接返回原始输入的 prompt。",
801
+ "example": "无",
802
+ "member": "string",
803
+ "name": "RevisedPrompt",
804
+ "output_required": false,
805
+ "type": "list",
806
+ "value_allowed_null": false
807
+ },
808
+ {
809
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
810
+ "member": "string",
811
+ "name": "RequestId",
812
+ "type": "string"
813
+ }
814
+ ],
815
+ "type": "object"
816
+ },
817
+ "SubmitHunyuanImageJobRequest": {
818
+ "document": "SubmitHunyuanImageJob请求参数结构体",
819
+ "members": [
820
+ {
821
+ "disabled": false,
822
+ "document": "文本描述。 算法将根据输入的文本智能生成与之相关的图像。 不能为空,推荐使用中文。最多可传100个 utf-8 字符。",
823
+ "example": "雨中, 竹林, 小路",
824
+ "member": "string",
825
+ "name": "Prompt",
826
+ "required": true,
827
+ "type": "string"
828
+ },
829
+ {
830
+ "disabled": false,
831
+ "document": "绘画风格。\n请在 [混元生图风格列表](https://cloud.tencent.com/document/product/1729/105846) 中选择期望的风格,传入风格编号。\n不传默认不指定风格。",
832
+ "example": "无",
833
+ "member": "string",
834
+ "name": "Style",
835
+ "required": false,
836
+ "type": "string"
837
+ },
838
+ {
839
+ "disabled": false,
840
+ "document": "生成图分辨率。\n支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1)、720:1280(9:16)、1280:720(16:9)、768:1280(3:5)、1280:768(5:3),不传默认使用1024:1024。",
841
+ "example": "无",
842
+ "member": "string",
843
+ "name": "Resolution",
844
+ "required": false,
845
+ "type": "string"
846
+ },
847
+ {
848
+ "disabled": false,
849
+ "document": "为生成结果图添加显式水印标识的开关,默认为1。 \n1:添加。 \n0:不添加。 \n其他数值:默认按1处理。 \n建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。",
850
+ "example": "无",
851
+ "member": "int64",
852
+ "name": "LogoAdd",
853
+ "required": false,
854
+ "type": "int"
855
+ },
856
+ {
857
+ "disabled": false,
858
+ "document": "prompt 扩写开关。1为开启,0为关闭,不传默认开启。\n开启扩写后,将自动扩写原始输入的 prompt 并使用扩写后的 prompt 生成图片,返回生成图片结果时将一并返回扩写后的 prompt 文本。\n如果关闭扩写,将直接使用原始输入的 prompt 生成图片。\n建议开启,在多数场景下可提升生成图片效果、丰富生成图片细节。",
859
+ "example": "无",
860
+ "member": "int64",
861
+ "name": "Revise",
862
+ "required": false,
863
+ "type": "int"
864
+ }
865
+ ],
866
+ "type": "object"
867
+ },
868
+ "SubmitHunyuanImageJobResponse": {
869
+ "document": "SubmitHunyuanImageJob返回参数结构体",
870
+ "members": [
871
+ {
872
+ "disabled": false,
873
+ "document": "任务 ID。",
874
+ "example": "无",
875
+ "member": "string",
876
+ "name": "JobId",
877
+ "output_required": false,
878
+ "type": "string",
879
+ "value_allowed_null": false
880
+ },
881
+ {
882
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
883
+ "member": "string",
884
+ "name": "RequestId",
885
+ "type": "string"
886
+ }
887
+ ],
888
+ "type": "object"
889
+ },
706
890
  "Usage": {
707
891
  "document": "Token 数量",
708
892
  "members": [
@@ -105,6 +105,22 @@
105
105
  "output": "{\n \"Response\": {\n \"RequestId\": \"c9e24deb-dd6d-4fe5-b0ca-c9292d1f1a9d\",\n \"TokenCount\": 2,\n \"CharacterCount\": 3,\n \"Tokens\": [\n \"你是\",\n \"谁\"\n ]\n }\n}",
106
106
  "title": "调用接口成功案例"
107
107
  }
108
+ ],
109
+ "QueryHunyuanImageJob": [
110
+ {
111
+ "document": "成功查询",
112
+ "input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryHunyuanImageJob\n<公共请求参数>\n\n{\n \"JobId\": \"test\"\n}",
113
+ "output": "{\n \"Response\": {\n \"JobErrorCode\": \"\",\n \"JobErrorMsg\": \"\",\n \"JobStatusCode\": \"5\",\n \"JobStatusMsg\": \"处理完成\",\n \"RequestId\": \"56b2ecae-46e4-4697-87d2-dc2b3bbbc2c6\",\n \"ResultDetails\": [\n \"Success\"\n ],\n \"ResultImage\": [\n \"https:/result.jpg\"\n ],\n \"RevisedPrompt\": [\n \"摄影风格,画面主要描述一座雄伟的山峰,山顶覆盖着白雪,阳光照耀下闪耀着光芒,背景是蔚蓝的天空,镜头是全景\"\n ]\n }\n}",
114
+ "title": "成功查询"
115
+ }
116
+ ],
117
+ "SubmitHunyuanImageJob": [
118
+ {
119
+ "document": "调用成功",
120
+ "input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitHunyuanImageJob\n<公共请求参数>\n\n{\n \"Prompt\": \"雪山\"\n}",
121
+ "output": "{\n \"Response\": {\n \"JobId\": \"test\",\n \"RequestId\": \"d4e1f224-fa21-40bc-9ee7-4bb13abece6e\"\n }\n}",
122
+ "title": "调用成功"
123
+ }
108
124
  ]
109
125
  },
110
126
  "version": "1.0"
@@ -155,7 +155,7 @@
155
155
  "status": "online"
156
156
  },
157
157
  "DeleteSnapshots": {
158
- "document": "本接口(DeleteSnapshots)用于删除快照。\n快照必须处于 NORMAL 状态,快照状态可以通过 DescribeSnapshots 接口查询,见输出参数中 SnapshotState 字段解释。",
158
+ "document": "本接口(DeleteSnapshots)用于删除快照。\n快照必须处于 NORMAL 状态,快照状态可以通过 <a href=\"https://cloud.tencent.com/document/product/1207/54388\" target=\"_blank\">DescribeSnapshots</a> 接口查询,见输出参数中 SnapshotState 字段解释。",
159
159
  "input": "DeleteSnapshotsRequest",
160
160
  "name": "删除快照",
161
161
  "output": "DeleteSnapshotsResponse",
@@ -3093,7 +3093,7 @@
3093
3093
  },
3094
3094
  {
3095
3095
  "disabled": false,
3096
- "document": "云硬盘大小。",
3096
+ "document": "云硬盘大小, 单位: GB。",
3097
3097
  "example": "50",
3098
3098
  "member": "int64",
3099
3099
  "name": "DiskSize",
@@ -6955,6 +6955,16 @@
6955
6955
  "type": "string",
6956
6956
  "value_allowed_null": false
6957
6957
  },
6958
+ {
6959
+ "disabled": false,
6960
+ "document": "实例最新操作的开始时间。\n注意:此字段可能返回 null,表示取不到有效值。",
6961
+ "example": "2023-12-01T06:34:59Z",
6962
+ "member": "datetime_iso",
6963
+ "name": "LatestOperationStartedTime",
6964
+ "output_required": false,
6965
+ "type": "string",
6966
+ "value_allowed_null": true
6967
+ },
6958
6968
  {
6959
6969
  "disabled": false,
6960
6970
  "document": "隔离时间。按照 ISO8601 标准表示,并且使用 UTC 时间。 \n格式为: YYYY-MM-DDThh:mm:ssZ。\n注意:此字段可能返回 null,表示取不到有效值。",
@@ -7201,7 +7211,7 @@
7201
7211
  "example": "lhins-xxxxxx",
7202
7212
  "member": "string",
7203
7213
  "name": "InstanceId",
7204
- "required": false,
7214
+ "output_required": true,
7205
7215
  "type": "string",
7206
7216
  "value_allowed_null": true
7207
7217
  },
@@ -7211,7 +7221,7 @@
7211
7221
  "example": "无",
7212
7222
  "member": "InstancePrice",
7213
7223
  "name": "InstancePrice",
7214
- "required": false,
7224
+ "output_required": true,
7215
7225
  "type": "object",
7216
7226
  "value_allowed_null": true
7217
7227
  },
@@ -7221,7 +7231,7 @@
7221
7231
  "example": "无",
7222
7232
  "member": "DiscountDetail",
7223
7233
  "name": "DiscountDetail",
7224
- "required": false,
7234
+ "output_required": true,
7225
7235
  "type": "list",
7226
7236
  "value_allowed_null": true
7227
7237
  }
@@ -1265,7 +1265,7 @@ def doCreateScreenshotTask(args, parsed_globals):
1265
1265
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1266
1266
 
1267
1267
 
1268
- def doDescribeLiveStreamMonitorList(args, parsed_globals):
1268
+ def doDescribeLiveRecordTemplates(args, parsed_globals):
1269
1269
  g_param = parse_global_arg(parsed_globals)
1270
1270
 
1271
1271
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1294,11 +1294,11 @@ def doDescribeLiveStreamMonitorList(args, parsed_globals):
1294
1294
  client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
1295
1295
  client._sdkVersion += ("_CLI_" + __version__)
1296
1296
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1297
- model = models.DescribeLiveStreamMonitorListRequest()
1297
+ model = models.DescribeLiveRecordTemplatesRequest()
1298
1298
  model.from_json_string(json.dumps(args))
1299
1299
  start_time = time.time()
1300
1300
  while True:
1301
- rsp = client.DescribeLiveStreamMonitorList(model)
1301
+ rsp = client.DescribeLiveRecordTemplates(model)
1302
1302
  result = rsp.to_json_string()
1303
1303
  try:
1304
1304
  json_obj = json.loads(result)
@@ -5529,6 +5529,58 @@ def doDescribeScreenshotTask(args, parsed_globals):
5529
5529
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5530
5530
 
5531
5531
 
5532
+ def doDescribeLivePadProcessorList(args, parsed_globals):
5533
+ g_param = parse_global_arg(parsed_globals)
5534
+
5535
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5536
+ cred = credential.CVMRoleCredential()
5537
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5538
+ cred = credential.STSAssumeRoleCredential(
5539
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5540
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5541
+ )
5542
+ 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):
5543
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5544
+ else:
5545
+ cred = credential.Credential(
5546
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5547
+ )
5548
+ http_profile = HttpProfile(
5549
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5550
+ reqMethod="POST",
5551
+ endpoint=g_param[OptionsDefine.Endpoint],
5552
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5553
+ )
5554
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5555
+ if g_param[OptionsDefine.Language]:
5556
+ profile.language = g_param[OptionsDefine.Language]
5557
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5558
+ client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
5559
+ client._sdkVersion += ("_CLI_" + __version__)
5560
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5561
+ model = models.DescribeLivePadProcessorListRequest()
5562
+ model.from_json_string(json.dumps(args))
5563
+ start_time = time.time()
5564
+ while True:
5565
+ rsp = client.DescribeLivePadProcessorList(model)
5566
+ result = rsp.to_json_string()
5567
+ try:
5568
+ json_obj = json.loads(result)
5569
+ except TypeError as e:
5570
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5571
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5572
+ break
5573
+ cur_time = time.time()
5574
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5575
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5576
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5577
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5578
+ else:
5579
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5580
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5581
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5582
+
5583
+
5532
5584
  def doDescribePushBandwidthAndFluxList(args, parsed_globals):
5533
5585
  g_param = parse_global_arg(parsed_globals)
5534
5586
 
@@ -6725,7 +6777,7 @@ def doDeleteLiveRecord(args, parsed_globals):
6725
6777
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6726
6778
 
6727
6779
 
6728
- def doDescribeLiveRecordTemplates(args, parsed_globals):
6780
+ def doDescribeLiveStreamMonitorList(args, parsed_globals):
6729
6781
  g_param = parse_global_arg(parsed_globals)
6730
6782
 
6731
6783
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6754,11 +6806,11 @@ def doDescribeLiveRecordTemplates(args, parsed_globals):
6754
6806
  client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
6755
6807
  client._sdkVersion += ("_CLI_" + __version__)
6756
6808
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6757
- model = models.DescribeLiveRecordTemplatesRequest()
6809
+ model = models.DescribeLiveStreamMonitorListRequest()
6758
6810
  model.from_json_string(json.dumps(args))
6759
6811
  start_time = time.time()
6760
6812
  while True:
6761
- rsp = client.DescribeLiveRecordTemplates(model)
6813
+ rsp = client.DescribeLiveStreamMonitorList(model)
6762
6814
  result = rsp.to_json_string()
6763
6815
  try:
6764
6816
  json_obj = json.loads(result)
@@ -7765,6 +7817,58 @@ def doCancelCommonMixStream(args, parsed_globals):
7765
7817
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7766
7818
 
7767
7819
 
7820
+ def doStopLivePadProcessor(args, parsed_globals):
7821
+ g_param = parse_global_arg(parsed_globals)
7822
+
7823
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
7824
+ cred = credential.CVMRoleCredential()
7825
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
7826
+ cred = credential.STSAssumeRoleCredential(
7827
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7828
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7829
+ )
7830
+ 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):
7831
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7832
+ else:
7833
+ cred = credential.Credential(
7834
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
7835
+ )
7836
+ http_profile = HttpProfile(
7837
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
7838
+ reqMethod="POST",
7839
+ endpoint=g_param[OptionsDefine.Endpoint],
7840
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7841
+ )
7842
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7843
+ if g_param[OptionsDefine.Language]:
7844
+ profile.language = g_param[OptionsDefine.Language]
7845
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
7846
+ client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
7847
+ client._sdkVersion += ("_CLI_" + __version__)
7848
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
7849
+ model = models.StopLivePadProcessorRequest()
7850
+ model.from_json_string(json.dumps(args))
7851
+ start_time = time.time()
7852
+ while True:
7853
+ rsp = client.StopLivePadProcessor(model)
7854
+ result = rsp.to_json_string()
7855
+ try:
7856
+ json_obj = json.loads(result)
7857
+ except TypeError as e:
7858
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
7859
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
7860
+ break
7861
+ cur_time = time.time()
7862
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
7863
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
7864
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
7865
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
7866
+ else:
7867
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
7868
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
7869
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7870
+
7871
+
7768
7872
  def doDescribeLivePackageInfo(args, parsed_globals):
7769
7873
  g_param = parse_global_arg(parsed_globals)
7770
7874
 
@@ -8060,7 +8164,7 @@ ACTION_MAP = {
8060
8164
  "DescribeTopClientIpSumInfoList": doDescribeTopClientIpSumInfoList,
8061
8165
  "ModifyPullStreamStatus": doModifyPullStreamStatus,
8062
8166
  "CreateScreenshotTask": doCreateScreenshotTask,
8063
- "DescribeLiveStreamMonitorList": doDescribeLiveStreamMonitorList,
8167
+ "DescribeLiveRecordTemplates": doDescribeLiveRecordTemplates,
8064
8168
  "AuthenticateDomainOwner": doAuthenticateDomainOwner,
8065
8169
  "ModifyLiveStreamMonitor": doModifyLiveStreamMonitor,
8066
8170
  "DescribeVisitTopSumInfoList": doDescribeVisitTopSumInfoList,
@@ -8142,6 +8246,7 @@ ACTION_MAP = {
8142
8246
  "DescribeLiveTimeShiftBillInfoList": doDescribeLiveTimeShiftBillInfoList,
8143
8247
  "DescribeLiveStreamPublishedList": doDescribeLiveStreamPublishedList,
8144
8248
  "DescribeScreenshotTask": doDescribeScreenshotTask,
8249
+ "DescribeLivePadProcessorList": doDescribeLivePadProcessorList,
8145
8250
  "DescribePushBandwidthAndFluxList": doDescribePushBandwidthAndFluxList,
8146
8251
  "DescribeLiveCallbackTemplate": doDescribeLiveCallbackTemplate,
8147
8252
  "DeleteScreenshotTask": doDeleteScreenshotTask,
@@ -8165,7 +8270,7 @@ ACTION_MAP = {
8165
8270
  "DescribeLiveWatermarkRules": doDescribeLiveWatermarkRules,
8166
8271
  "DescribeLivePadRules": doDescribeLivePadRules,
8167
8272
  "DeleteLiveRecord": doDeleteLiveRecord,
8168
- "DescribeLiveRecordTemplates": doDescribeLiveRecordTemplates,
8273
+ "DescribeLiveStreamMonitorList": doDescribeLiveStreamMonitorList,
8169
8274
  "CreateLiveSnapshotRule": doCreateLiveSnapshotRule,
8170
8275
  "CreateLiveTimeShiftTemplate": doCreateLiveTimeShiftTemplate,
8171
8276
  "DeleteLiveStreamMonitor": doDeleteLiveStreamMonitor,
@@ -8185,6 +8290,7 @@ ACTION_MAP = {
8185
8290
  "DescribeLiveTranscodeRules": doDescribeLiveTranscodeRules,
8186
8291
  "EnableLiveDomain": doEnableLiveDomain,
8187
8292
  "CancelCommonMixStream": doCancelCommonMixStream,
8293
+ "StopLivePadProcessor": doStopLivePadProcessor,
8188
8294
  "DescribeLivePackageInfo": doDescribeLivePackageInfo,
8189
8295
  "CreatePullStreamConfig": doCreatePullStreamConfig,
8190
8296
  "DescribeTranscodeTaskNum": doDescribeTranscodeTaskNum,