tccli 3.0.1165.1__py2.py3-none-any.whl → 3.0.1167.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/cvm/v20170312/api.json +13 -13
- tccli/services/cvm/v20170312/examples.json +4 -10
- tccli/services/dsgc/v20190723/api.json +64 -58
- tccli/services/dsgc/v20190723/examples.json +3 -3
- tccli/services/ess/v20201111/api.json +5 -5
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/hunyuan/hunyuan_client.py +114 -8
- tccli/services/hunyuan/v20230901/api.json +70 -2
- tccli/services/hunyuan/v20230901/examples.json +16 -0
- tccli/services/ocr/v20181119/api.json +26 -16
- tccli/services/pts/v20210728/api.json +4 -4
- tccli/services/pts/v20210728/examples.json +9 -9
- tccli/services/redis/v20180412/api.json +20 -11
- tccli/services/redis/v20180412/examples.json +3 -3
- tccli/services/tcb/v20180608/api.json +17 -7
- tccli/services/tcb/v20180608/examples.json +7 -1
- tccli/services/tds/v20220801/api.json +69 -0
- tccli/services/tds/v20220801/examples.json +1 -1
- tccli/services/trtc/v20190722/api.json +1 -1
- tccli/services/tts/v20190823/api.json +2 -2
- tccli/services/vpc/v20170312/api.json +97 -1
- tccli/services/vpc/v20170312/examples.json +5 -5
- tccli/services/vrs/v20200824/api.json +96 -9
- tccli/services/wedata/v20210820/api.json +690 -28
- tccli/services/wedata/v20210820/examples.json +10 -2
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1165.1.dist-info → tccli-3.0.1167.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1165.1.dist-info → tccli-3.0.1167.1.dist-info}/RECORD +32 -32
- {tccli-3.0.1165.1.dist-info → tccli-3.0.1167.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1165.1.dist-info → tccli-3.0.1167.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1165.1.dist-info → tccli-3.0.1167.1.dist-info}/license_files/LICENSE +0 -0
@@ -99,7 +99,7 @@
|
|
99
99
|
"status": "online"
|
100
100
|
},
|
101
101
|
"CreateFlowApprovers": {
|
102
|
-
"document": "**适用场景 :**\n\n当通过模板或文件发起合同时, 签署人不制定, 等合同发起后再指定 可以用下面2种方案\n\n<b><font color=\"red\">1. 或签合同</font>: 若未指定企业签署人信息(只指定企业的名字),合同变成或签合同(个人签署方不支持或签合同)</b>。需调用此接口补充或添加签署人。或签签署人在控制台上的展示样式如下(会带有<b>或签</b>标识):\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/b2715f0236faee807cfc0521f93cf01b.png)\n\n<b><font color=\"red\">2. 动态签署人合同</font>: 若未指定具体签署人的信息,则合同变成动态签署人合同</b>。需调用此接口补充或添加签署人。可以参考文档
|
102
|
+
"document": "**适用场景 :**\n\n当通过模板或文件发起合同时, 签署人不制定, 等合同发起后再指定 可以用下面2种方案\n\n<b><font color=\"red\">1. 或签合同</font>: 若未指定企业签署人信息(只指定企业的名字),合同变成或签合同(个人签署方不支持或签合同)</b>。需调用此接口补充或添加签署人。或签签署人在控制台上的展示样式如下(会带有<b>或签</b>标识):\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/b2715f0236faee807cfc0521f93cf01b.png)\n\n<b><font color=\"red\">2. 动态签署人合同</font>: 若未指定具体签署人的信息,则合同变成动态签署人合同</b>。需调用此接口补充或添加签署人。可以参考文档 [动态签署人合同](https://qian.tencent.com/developers/company/dynamic_signer/) 。动态签署人在控制台上的展示样式如下:\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/2729477978e020c3bbb4d2e767bb78eb.png)\n\n实际签署人需要通过[获取跳转至腾讯电子签小程序的签署链接](https://qian.tencent.com/developers/companyApis/startFlows/CreateSchemeUrl/)生成的链接进入小程序,领取合同并签署。同一签署环节可补充多个员工作为或签署人,最终实际签署人取决于谁先领取合同完成签署。\n\n\n**限制条件**:\n\n1.本企业(发起方企业)企业微信签署人仅支持通过企业微信UserId或姓名+手机号进行补充。\n\n2.本企业(发起方企业)非企业微信签署人仅支持通过姓名+手机号进行补充。\n\n3.他方企业仅支持通过姓名+手机号进行补充。\n\n4.个人签署人支持通过姓名+手机号进行补充(若<b>个人用户已完成实名</b>,动态签署人合同也可以可通过姓名+证件号码进行补充)\n\n\n**整体流程如下图:**\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/29a0fba0ceebf9227849459947384862.png)",
|
103
103
|
"input": "CreateFlowApproversRequest",
|
104
104
|
"name": "补充签署流程签署人信息",
|
105
105
|
"output": "CreateFlowApproversResponse",
|
@@ -155,7 +155,7 @@
|
|
155
155
|
"status": "online"
|
156
156
|
},
|
157
157
|
"CreateFlowSignReview": {
|
158
|
-
"document": "提交企业流程审批结果 \n**当前存在两种审核操作:**\n<ul>\n<li>签署审核\n<ul>\n<li>在通过接口<ul>\n<li>CreateFlowByFiles</li>\n<li>CreateFlow</li>\n<li>CreateFlowGroupByTemplates</li>\n<li>CreateFlowGroupByFiles</li>\n<li>CreatePrepareFlow</li>\n</ul> \n发起签署流程时,通过指定NeedSignReview为true,则可以调用此接口,并指定operate=SignReview
|
158
|
+
"document": "提交企业流程审批结果 \n**当前存在两种审核操作:**\n<ul>\n<li>签署审核\n<ul>\n<li>在通过接口<ul>\n<li>CreateFlowByFiles</li>\n<li>CreateFlow</li>\n<li>CreateFlowGroupByTemplates</li>\n<li>CreateFlowGroupByFiles</li>\n<li>CreatePrepareFlow</li>\n</ul> \n发起签署流程时,通过指定NeedSignReview为true,则可以调用此接口,并指定operate=SignReview,以提交企业内部签署审批结果(<font color=\"red\">审核对象:本企业合同参与方的签署动作</font>)</li>\n<li>在通过接口\n<ul>\n<li>CreateFlowByFiles</li>\n<li>CreateFlow</li>\n<li>CreateFlowGroupByTemplates</li>\n<li>CreateFlowGroupByFiles</li>\n</ul>\n发起签署流程时,通过指定签署人ApproverNeedSignReview为true,则可以调用此接口,并指定operate=SignReview,并指定RecipientId,以提交企业内部签署审批结果(<font color=\"red\">审核对象:本企业、合同企业、自然人合同参与方的签署动作</font>)</li>\n</ul>\n</li>\n\n对应签署人在签署页面会看到下面的提示:\n![image](https://qcloudimg.tencent-cloud.cn/raw/3bf065bf5afa6de862e80da316be1c53.png)\n\n<li>发起审核\n <ul>\n<li>通过接口CreatePrepareFlow指定发起后需要审核,那么可以调用此接口,并指定operate=CreateReview,以提交企业内部审批结果。可以多次提交审批结果,但一旦审批通过,后续提交的结果将无效(<font color=\"red\">审核对象:本企业合同发起方的发起动作</font>)\n</li>\n</ul>\n\n对应发起人在发起合同的最后环节会有<b>提交审批</b>的按钮:\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/cb4857b7b57302fdcbcf37dad31214a8.png)\n\n</li>\n</ul>",
|
159
159
|
"input": "CreateFlowSignReviewRequest",
|
160
160
|
"name": "提交签署流程审批结果",
|
161
161
|
"output": "CreateFlowSignReviewResponse",
|
@@ -874,7 +874,7 @@
|
|
874
874
|
},
|
875
875
|
{
|
876
876
|
"disabled": false,
|
877
|
-
"document": "您可以指定签署方签署合同的认证校验方式,可传递以下值:\n<ul><li>**1**:人脸认证,需进行人脸识别成功后才能签署合同;</li>\n<li>**2**:签署密码,需输入与用户在腾讯电子签设置的密码一致才能校验成功进行合同签署;</li>\n<li>**3**:运营商三要素,需到运营商处比对手机号实名信息(名字、手机号、证件号)校验一致才能成功进行合同签署。(如果是港澳台客户,建议不要选择这个)</li></ul>\n\n默认为1(人脸认证 ),2(签署密码),3(运营商三要素)\n\n注:\n1. 用<font color='red'>模板创建合同场景</font>, 签署人的认证方式需要在配置模板的时候指定, <font color='red'>在创建合同重新指定无效</font>\
|
877
|
+
"document": "您可以指定签署方签署合同的认证校验方式,可传递以下值:\n<ul><li>**1**:人脸认证,需进行人脸识别成功后才能签署合同;</li>\n<li>**2**:签署密码,需输入与用户在腾讯电子签设置的密码一致才能校验成功进行合同签署;</li>\n<li>**3**:运营商三要素,需到运营商处比对手机号实名信息(名字、手机号、证件号)校验一致才能成功进行合同签署。(如果是港澳台客户,建议不要选择这个)</li>\n<li>**5**:设备指纹识别,需要对比手机机主预留的指纹信息,校验一致才能成功进行合同签署。(iOS系统暂不支持该校验方式)</li>\n<li>**6**:设备面容识别,需要对比手机机主预留的人脸信息,校验一致才能成功进行合同签署。(Android系统暂不支持该校验方式)</li></ul>\n\n\n默认为1(人脸认证 ),2(签署密码),3(运营商三要素),5(设备指纹识别),6(设备面容识别)\n\n注:\n1. 用<font color='red'>模板创建合同场景</font>, 签署人的认证方式需要在配置模板的时候指定, <font color='red'>在创建合同重新指定无效</font>\n2. 运营商三要素认证方式对手机号运营商及前缀有限制,可以参考[运营商支持列表类](https://qian.tencent.com/developers/company/mobile_support)得到具体的支持说明\n3. 校验方式不允许只包含<font color='red'>设备指纹识别</font>和<font color='red'>设备面容识别</font>,至少需要再增加一种其他校验方式。\n4. <font color='red'>设备指纹识别</font>和<font color='red'>设备面容识别</font>只支持小程序使用,其他端暂不支持。",
|
878
878
|
"example": "[1,2,3]",
|
879
879
|
"member": "int64",
|
880
880
|
"name": "ApproverSignTypes",
|
@@ -10347,7 +10347,7 @@
|
|
10347
10347
|
},
|
10348
10348
|
{
|
10349
10349
|
"disabled": false,
|
10350
|
-
"document": "您可以指定签署方签署合同的认证校验方式,可传递以下值:\n<ul><li>**1**:人脸认证,需进行人脸识别成功后才能签署合同;</li>\n<li>**2**:签署密码,需输入与用户在腾讯电子签设置的密码一致才能校验成功进行合同签署;</li>\n<li>**3**:运营商三要素,需到运营商处比对手机号实名信息(名字、手机号、证件号)校验一致才能成功进行合同签署。(如果是港澳台客户,建议不要选择这个)</li></ul>\n注:\n<ul><li>默认情况下,认证校验方式为人脸认证和签署密码两种形式;</li>\n<li>您可以传递多种值,表示可用多种认证校验方式。</li></ul>\n\n注:\n`此参数仅针对文件发起设置生效,模板发起合同签署流程, 请以模板配置为主`",
|
10350
|
+
"document": "您可以指定签署方签署合同的认证校验方式,可传递以下值:\n<ul><li>**1**:人脸认证,需进行人脸识别成功后才能签署合同;</li>\n<li>**2**:签署密码,需输入与用户在腾讯电子签设置的密码一致才能校验成功进行合同签署;</li>\n<li>**3**:运营商三要素,需到运营商处比对手机号实名信息(名字、手机号、证件号)校验一致才能成功进行合同签署。(如果是港澳台客户,建议不要选择这个)</li>\n<li>**5**:设备指纹识别,需要对比手机机主预留的指纹信息,校验一致才能成功进行合同签署。(iOS系统暂不支持该校验方式)</li>\n<li>**6**:设备面容识别,需要对比手机机主预留的人脸信息,校验一致才能成功进行合同签署。(Android系统暂不支持该校验方式)</li></ul>\n\n注:\n<ul><li>默认情况下,认证校验方式为人脸认证和签署密码两种形式;</li>\n<li>您可以传递多种值,表示可用多种认证校验方式。</li>\n<li>校验方式不允许只包含设备指纹识别和设备面容识别,至少需要再增加一种其他校验方式。</li>\n<li>设备指纹识别和设备面容识别只支持小程序使用,其他端暂不支持。</li></ul>\n\n注:\n`此参数仅针对文件发起设置生效,模板发起合同签署流程, 请以模板配置为主`",
|
10351
10351
|
"example": "[1,2]",
|
10352
10352
|
"member": "uint64",
|
10353
10353
|
"name": "ApproverSignTypes",
|
@@ -12492,7 +12492,7 @@
|
|
12492
12492
|
},
|
12493
12493
|
{
|
12494
12494
|
"disabled": false,
|
12495
|
-
"document": "签署人进行合同签署时的认证方式,支持的类型如下:\n<ul><li> 1 :人脸认证</li>\n<li> 2 :签署密码</li>\n<li> 3 :运营商三要素认证</li>\n<li> 4 :UKey认证</li></ul>",
|
12495
|
+
"document": "签署人进行合同签署时的认证方式,支持的类型如下:\n<ul><li> 1 :人脸认证</li>\n<li> 2 :签署密码</li>\n<li> 3 :运营商三要素认证</li>\n<li> 4 :UKey认证</li>\n<li> 5 :设备指纹识别</li>\n<li> 6 :设备面容识别</li></ul>",
|
12496
12496
|
"example": "无",
|
12497
12497
|
"member": "int64",
|
12498
12498
|
"name": "ApproverSignTypes",
|
@@ -5504,7 +5504,7 @@
|
|
5504
5504
|
},
|
5505
5505
|
{
|
5506
5506
|
"disabled": false,
|
5507
|
-
"document": "签署人签署合同时的认证方式\n<ul><li> **1** :人脸认证</li>\n<li> **2** :签署密码</li>\n<li> **3** :运营商三要素</li></ul>\n\n默认为1(人脸认证 ),2(签署密码)\n\n注: \n1. 用<font color='red'>模板创建合同场景</font>, 签署人的认证方式需要在配置模板的时候指定, <font color='red'>在创建合同重新指定无效</font>\n2. 运营商三要素认证方式对手机号运营商及前缀有限制,可以参考[运营商支持列表类](https://qian.tencent.com/developers/partner/mobile_support)
|
5507
|
+
"document": "签署人签署合同时的认证方式\n<ul><li> **1** :人脸认证</li>\n<li> **2** :签署密码</li>\n<li> **3** :运营商三要素</li>\n<li> **5** :设备指纹识别</li>\n<li> **6** :设备面容识别</li></ul>\n\n默认为1(人脸认证 ),2(签署密码),3(运营商三要素),5(设备指纹识别),6(设备面容识别)\n\n注: \n1. 用<font color='red'>模板创建合同场景</font>, 签署人的认证方式需要在配置模板的时候指定, <font color='red'>在创建合同重新指定无效</font>\n2. 运营商三要素认证方式对手机号运营商及前缀有限制,可以参考[运营商支持列表类](https://qian.tencent.com/developers/partner/mobile_support)得到具体的支持说明\n3. 校验方式不允许只包含<font color='red'>设备指纹识别</font>和<font color='red'>设备面容识别</font>,至少需要再增加一种其他校验方式。\n4. <font color='red'>设备指纹识别</font>和<font color='red'>设备面容识别</font>只支持小程序使用,其他端暂不支持。",
|
5508
5508
|
"example": "[1,2,3]\t",
|
5509
5509
|
"member": "int64",
|
5510
5510
|
"name": "ApproverSignTypes",
|
@@ -8679,7 +8679,7 @@
|
|
8679
8679
|
},
|
8680
8680
|
{
|
8681
8681
|
"disabled": false,
|
8682
|
-
"document": "签署人签署合同时的认证方式\n<ul><li> **1** :人脸认证</li>\n<li> **2** :签署密码</li>\n<li> **3** :运营商三要素(如果是港澳台客户,建议不要选择这个)</li></ul>\n\n默认为1(人脸认证 ),2(签署密码),3(运营商三要素)\n\n注: \n1. 用<font color='red'>模板创建合同场景</font>, 签署人的认证方式需要在配置模板的时候指定, <font color='red'>在创建合同重新指定无效</font>\n2. 运营商三要素认证方式对手机号运营商及前缀有限制,可以参考[运营商支持列表类](https://qian.tencent.com/developers/partner/mobile_support)
|
8682
|
+
"document": "签署人签署合同时的认证方式\n<ul><li> **1** :人脸认证</li>\n<li> **2** :签署密码</li>\n<li> **3** :运营商三要素(如果是港澳台客户,建议不要选择这个)</li>\n<li>**5**:设备指纹识别,需要对比手机机主预留的指纹信息,校验一致才能成功进行合同签署。(iOS系统暂不支持该校验方式)</li>\n<li>**6**:设备面容识别,需要对比手机机主预留的人脸信息,校验一致才能成功进行合同签署。(Android系统暂不支持该校验方式)</li></ul>\n\n默认为1(人脸认证 ),2(签署密码),3(运营商三要素),5(设备指纹识别),6(设备面容识别)\n\n注: \n1. 用<font color='red'>模板创建合同场景</font>, 签署人的认证方式需要在配置模板的时候指定, <font color='red'>在创建合同重新指定无效</font>\n2. 运营商三要素认证方式对手机号运营商及前缀有限制,可以参考[运营商支持列表类](https://qian.tencent.com/developers/partner/mobile_support)得到具体的支持说明\n3. 校验方式不允许只包含<font color='red'>设备指纹识别</font>和<font color='red'>设备面容识别</font>,至少需要再增加一种其他校验方式。\n4. <font color='red'>设备指纹识别</font>和<font color='red'>设备面容识别</font>只支持小程序使用,其他端暂不支持。",
|
8683
8683
|
"example": "[1,2,3]",
|
8684
8684
|
"member": "int64",
|
8685
8685
|
"name": "ApproverSignTypes",
|
@@ -10752,7 +10752,7 @@
|
|
10752
10752
|
},
|
10753
10753
|
{
|
10754
10754
|
"disabled": false,
|
10755
|
-
"document": "签署人进行合同签署时的认证方式,支持的类型如下:\n<ul><li> 1 :人脸认证</li>\n<li> 2 :签署密码</li>\n<li> 3 :运营商三要素认证</li>\n<li> 4 :UKey认证</li></ul>",
|
10755
|
+
"document": "签署人进行合同签署时的认证方式,支持的类型如下:\n<ul><li> 1 :人脸认证</li>\n<li> 2 :签署密码</li>\n<li> 3 :运营商三要素认证</li>\n<li> 4 :UKey认证</li>\n<li> 5 :设备指纹识别</li>\n<li> 6 :设备面容识别</li></ul>",
|
10756
10756
|
"example": "[1,2,3]",
|
10757
10757
|
"member": "int64",
|
10758
10758
|
"name": "ApproverSignTypes",
|
@@ -121,6 +121,58 @@ def doQueryHunyuanImageJob(args, parsed_globals):
|
|
121
121
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
122
122
|
|
123
123
|
|
124
|
+
def doGetTokenCount(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.GetTokenCountRequest()
|
154
|
+
model.from_json_string(json.dumps(args))
|
155
|
+
start_time = time.time()
|
156
|
+
while True:
|
157
|
+
rsp = client.GetTokenCount(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 doChatCompletions(args, parsed_globals):
|
125
177
|
g_param = parse_global_arg(parsed_globals)
|
126
178
|
|
@@ -173,7 +225,7 @@ def doChatCompletions(args, parsed_globals):
|
|
173
225
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
226
|
|
175
227
|
|
176
|
-
def
|
228
|
+
def doGetEmbedding(args, parsed_globals):
|
177
229
|
g_param = parse_global_arg(parsed_globals)
|
178
230
|
|
179
231
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -202,11 +254,63 @@ def doGetTokenCount(args, parsed_globals):
|
|
202
254
|
client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
203
255
|
client._sdkVersion += ("_CLI_" + __version__)
|
204
256
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
205
|
-
model = models.
|
257
|
+
model = models.GetEmbeddingRequest()
|
206
258
|
model.from_json_string(json.dumps(args))
|
207
259
|
start_time = time.time()
|
208
260
|
while True:
|
209
|
-
rsp = client.
|
261
|
+
rsp = client.GetEmbedding(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
|
+
|
280
|
+
def doSetPayMode(args, parsed_globals):
|
281
|
+
g_param = parse_global_arg(parsed_globals)
|
282
|
+
|
283
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
284
|
+
cred = credential.CVMRoleCredential()
|
285
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
286
|
+
cred = credential.STSAssumeRoleCredential(
|
287
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
288
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
289
|
+
)
|
290
|
+
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):
|
291
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
292
|
+
else:
|
293
|
+
cred = credential.Credential(
|
294
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
295
|
+
)
|
296
|
+
http_profile = HttpProfile(
|
297
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
298
|
+
reqMethod="POST",
|
299
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
300
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
301
|
+
)
|
302
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
303
|
+
if g_param[OptionsDefine.Language]:
|
304
|
+
profile.language = g_param[OptionsDefine.Language]
|
305
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
306
|
+
client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
307
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
308
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
309
|
+
model = models.SetPayModeRequest()
|
310
|
+
model.from_json_string(json.dumps(args))
|
311
|
+
start_time = time.time()
|
312
|
+
while True:
|
313
|
+
rsp = client.SetPayMode(model)
|
210
314
|
result = rsp.to_json_string()
|
211
315
|
try:
|
212
316
|
json_obj = json.loads(result)
|
@@ -277,7 +381,7 @@ def doTextToImageLite(args, parsed_globals):
|
|
277
381
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
278
382
|
|
279
383
|
|
280
|
-
def
|
384
|
+
def doActivateService(args, parsed_globals):
|
281
385
|
g_param = parse_global_arg(parsed_globals)
|
282
386
|
|
283
387
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -306,11 +410,11 @@ def doGetEmbedding(args, parsed_globals):
|
|
306
410
|
client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
307
411
|
client._sdkVersion += ("_CLI_" + __version__)
|
308
412
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
309
|
-
model = models.
|
413
|
+
model = models.ActivateServiceRequest()
|
310
414
|
model.from_json_string(json.dumps(args))
|
311
415
|
start_time = time.time()
|
312
416
|
while True:
|
313
|
-
rsp = client.
|
417
|
+
rsp = client.ActivateService(model)
|
314
418
|
result = rsp.to_json_string()
|
315
419
|
try:
|
316
420
|
json_obj = json.loads(result)
|
@@ -342,10 +446,12 @@ MODELS_MAP = {
|
|
342
446
|
ACTION_MAP = {
|
343
447
|
"SubmitHunyuanImageJob": doSubmitHunyuanImageJob,
|
344
448
|
"QueryHunyuanImageJob": doQueryHunyuanImageJob,
|
345
|
-
"ChatCompletions": doChatCompletions,
|
346
449
|
"GetTokenCount": doGetTokenCount,
|
347
|
-
"
|
450
|
+
"ChatCompletions": doChatCompletions,
|
348
451
|
"GetEmbedding": doGetEmbedding,
|
452
|
+
"SetPayMode": doSetPayMode,
|
453
|
+
"TextToImageLite": doTextToImageLite,
|
454
|
+
"ActivateService": doActivateService,
|
349
455
|
|
350
456
|
}
|
351
457
|
|
@@ -1,5 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"ActivateService": {
|
4
|
+
"document": "开通服务",
|
5
|
+
"input": "ActivateServiceRequest",
|
6
|
+
"name": "开通服务",
|
7
|
+
"output": "ActivateServiceResponse",
|
8
|
+
"status": "online"
|
9
|
+
},
|
3
10
|
"ChatCompletions": {
|
4
11
|
"document": "腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。\n\n 1. 本接口暂不支持返回图片内容。\n 2. 默认每种模型单账号限制并发数为 5 路,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。\n 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。\n 4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。",
|
5
12
|
"input": "ChatCompletionsRequest",
|
@@ -28,6 +35,13 @@
|
|
28
35
|
"output": "QueryHunyuanImageJobResponse",
|
29
36
|
"status": "online"
|
30
37
|
},
|
38
|
+
"SetPayMode": {
|
39
|
+
"document": "设置付费模式",
|
40
|
+
"input": "SetPayModeRequest",
|
41
|
+
"name": "设置付费模式",
|
42
|
+
"output": "SetPayModeResponse",
|
43
|
+
"status": "online"
|
44
|
+
},
|
31
45
|
"SubmitHunyuanImageJob": {
|
32
46
|
"document": "混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。\n提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。\n查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
|
33
47
|
"input": "SubmitHunyuanImageJobRequest",
|
@@ -50,6 +64,33 @@
|
|
50
64
|
"serviceShortName": "hunyuan"
|
51
65
|
},
|
52
66
|
"objects": {
|
67
|
+
"ActivateServiceRequest": {
|
68
|
+
"document": "ActivateService请求参数结构体",
|
69
|
+
"members": [
|
70
|
+
{
|
71
|
+
"disabled": false,
|
72
|
+
"document": "开通之后,是否关闭后付费;默认为0,不关闭;1为关闭",
|
73
|
+
"example": "0",
|
74
|
+
"member": "uint64",
|
75
|
+
"name": "PayMode",
|
76
|
+
"required": false,
|
77
|
+
"type": "int"
|
78
|
+
}
|
79
|
+
],
|
80
|
+
"type": "object"
|
81
|
+
},
|
82
|
+
"ActivateServiceResponse": {
|
83
|
+
"document": "ActivateService返回参数结构体",
|
84
|
+
"members": [
|
85
|
+
{
|
86
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
87
|
+
"member": "string",
|
88
|
+
"name": "RequestId",
|
89
|
+
"type": "string"
|
90
|
+
}
|
91
|
+
],
|
92
|
+
"type": "object"
|
93
|
+
},
|
53
94
|
"ChatCompletionsRequest": {
|
54
95
|
"document": "ChatCompletions请求参数结构体",
|
55
96
|
"members": [
|
@@ -91,7 +132,7 @@
|
|
91
132
|
},
|
92
133
|
{
|
93
134
|
"disabled": false,
|
94
|
-
"document": "说明:\n1.
|
135
|
+
"document": "说明:\n1. 影响输出文本的多样性,取值区间为 [0.0, 1.0]。取值越大,生成文本的多样性越强。\n2. 模型已有默认参数,不传值时使用各模型推荐值,不推荐用户修改。",
|
95
136
|
"example": "无",
|
96
137
|
"member": "float",
|
97
138
|
"name": "TopP",
|
@@ -100,7 +141,7 @@
|
|
100
141
|
},
|
101
142
|
{
|
102
143
|
"disabled": false,
|
103
|
-
"document": "说明:\n1.
|
144
|
+
"document": "说明:\n1. 影响模型输出多样性,取值区间为 [0.0, 2.0]。较高的数值会使输出更加多样化和不可预测,而较低的数值会使其更加集中和确定。\n2. 模型已有默认参数,不传值时使用各模型推荐值,不推荐用户修改。",
|
104
145
|
"example": "无",
|
105
146
|
"member": "float",
|
106
147
|
"name": "Temperature",
|
@@ -865,6 +906,33 @@
|
|
865
906
|
],
|
866
907
|
"usage": "both"
|
867
908
|
},
|
909
|
+
"SetPayModeRequest": {
|
910
|
+
"document": "SetPayMode请求参数结构体",
|
911
|
+
"members": [
|
912
|
+
{
|
913
|
+
"disabled": false,
|
914
|
+
"document": "设置后付费状态,0:后付费;1:预付费",
|
915
|
+
"example": "无",
|
916
|
+
"member": "int64",
|
917
|
+
"name": "PayMode",
|
918
|
+
"required": true,
|
919
|
+
"type": "int"
|
920
|
+
}
|
921
|
+
],
|
922
|
+
"type": "object"
|
923
|
+
},
|
924
|
+
"SetPayModeResponse": {
|
925
|
+
"document": "SetPayMode返回参数结构体",
|
926
|
+
"members": [
|
927
|
+
{
|
928
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
929
|
+
"member": "string",
|
930
|
+
"name": "RequestId",
|
931
|
+
"type": "string"
|
932
|
+
}
|
933
|
+
],
|
934
|
+
"type": "object"
|
935
|
+
},
|
868
936
|
"SubmitHunyuanImageJobRequest": {
|
869
937
|
"document": "SubmitHunyuanImageJob请求参数结构体",
|
870
938
|
"members": [
|
@@ -1,5 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"ActivateService": [
|
4
|
+
{
|
5
|
+
"document": "示例\t\n",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ActivateService\n<公共请求参数>\n\n{\n \"PayMode\": 1\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
8
|
+
"title": "示例\t"
|
9
|
+
}
|
10
|
+
],
|
3
11
|
"ChatCompletions": [
|
4
12
|
{
|
5
13
|
"document": "推荐使用 API Explorer 调用接口,见本文档顶部说明。该示例说明 system prompt 的使用方法。",
|
@@ -80,6 +88,14 @@
|
|
80
88
|
"title": "成功查询"
|
81
89
|
}
|
82
90
|
],
|
91
|
+
"SetPayMode": [
|
92
|
+
{
|
93
|
+
"document": "",
|
94
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SetPayMode\n<公共请求参数>\n\n{}",
|
95
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
96
|
+
"title": "示例\t"
|
97
|
+
}
|
98
|
+
],
|
83
99
|
"SubmitHunyuanImageJob": [
|
84
100
|
{
|
85
101
|
"document": "调用成功",
|
@@ -18224,7 +18224,7 @@
|
|
18224
18224
|
"example": "无",
|
18225
18225
|
"member": "string",
|
18226
18226
|
"name": "Title",
|
18227
|
-
"
|
18227
|
+
"output_required": true,
|
18228
18228
|
"type": "string",
|
18229
18229
|
"value_allowed_null": false
|
18230
18230
|
},
|
@@ -18234,7 +18234,7 @@
|
|
18234
18234
|
"example": "无",
|
18235
18235
|
"member": "string",
|
18236
18236
|
"name": "Number",
|
18237
|
-
"
|
18237
|
+
"output_required": true,
|
18238
18238
|
"type": "string",
|
18239
18239
|
"value_allowed_null": false
|
18240
18240
|
},
|
@@ -18244,7 +18244,7 @@
|
|
18244
18244
|
"example": "无",
|
18245
18245
|
"member": "string",
|
18246
18246
|
"name": "Date",
|
18247
|
-
"
|
18247
|
+
"output_required": true,
|
18248
18248
|
"type": "string",
|
18249
18249
|
"value_allowed_null": false
|
18250
18250
|
},
|
@@ -18254,7 +18254,7 @@
|
|
18254
18254
|
"example": "无",
|
18255
18255
|
"member": "string",
|
18256
18256
|
"name": "PretaxAmount",
|
18257
|
-
"
|
18257
|
+
"output_required": true,
|
18258
18258
|
"type": "string",
|
18259
18259
|
"value_allowed_null": false
|
18260
18260
|
},
|
@@ -18264,7 +18264,7 @@
|
|
18264
18264
|
"example": "无",
|
18265
18265
|
"member": "string",
|
18266
18266
|
"name": "Tax",
|
18267
|
-
"
|
18267
|
+
"output_required": true,
|
18268
18268
|
"type": "string",
|
18269
18269
|
"value_allowed_null": false
|
18270
18270
|
},
|
@@ -18274,7 +18274,7 @@
|
|
18274
18274
|
"example": "无",
|
18275
18275
|
"member": "string",
|
18276
18276
|
"name": "Total",
|
18277
|
-
"
|
18277
|
+
"output_required": true,
|
18278
18278
|
"type": "string",
|
18279
18279
|
"value_allowed_null": false
|
18280
18280
|
},
|
@@ -18284,7 +18284,7 @@
|
|
18284
18284
|
"example": "无",
|
18285
18285
|
"member": "string",
|
18286
18286
|
"name": "TotalCn",
|
18287
|
-
"
|
18287
|
+
"output_required": true,
|
18288
18288
|
"type": "string",
|
18289
18289
|
"value_allowed_null": false
|
18290
18290
|
},
|
@@ -18294,7 +18294,7 @@
|
|
18294
18294
|
"example": "无",
|
18295
18295
|
"member": "string",
|
18296
18296
|
"name": "Seller",
|
18297
|
-
"
|
18297
|
+
"output_required": true,
|
18298
18298
|
"type": "string",
|
18299
18299
|
"value_allowed_null": false
|
18300
18300
|
},
|
@@ -18304,7 +18304,7 @@
|
|
18304
18304
|
"example": "无",
|
18305
18305
|
"member": "string",
|
18306
18306
|
"name": "SellerTaxID",
|
18307
|
-
"
|
18307
|
+
"output_required": true,
|
18308
18308
|
"type": "string",
|
18309
18309
|
"value_allowed_null": false
|
18310
18310
|
},
|
@@ -18314,7 +18314,7 @@
|
|
18314
18314
|
"example": "无",
|
18315
18315
|
"member": "string",
|
18316
18316
|
"name": "Buyer",
|
18317
|
-
"
|
18317
|
+
"output_required": true,
|
18318
18318
|
"type": "string",
|
18319
18319
|
"value_allowed_null": false
|
18320
18320
|
},
|
@@ -18324,7 +18324,7 @@
|
|
18324
18324
|
"example": "无",
|
18325
18325
|
"member": "string",
|
18326
18326
|
"name": "BuyerTaxID",
|
18327
|
-
"
|
18327
|
+
"output_required": true,
|
18328
18328
|
"type": "string",
|
18329
18329
|
"value_allowed_null": false
|
18330
18330
|
},
|
@@ -18334,7 +18334,7 @@
|
|
18334
18334
|
"example": "无",
|
18335
18335
|
"member": "string",
|
18336
18336
|
"name": "Issuer",
|
18337
|
-
"
|
18337
|
+
"output_required": true,
|
18338
18338
|
"type": "string",
|
18339
18339
|
"value_allowed_null": false
|
18340
18340
|
},
|
@@ -18344,7 +18344,7 @@
|
|
18344
18344
|
"example": "无",
|
18345
18345
|
"member": "string",
|
18346
18346
|
"name": "Remark",
|
18347
|
-
"
|
18347
|
+
"output_required": true,
|
18348
18348
|
"type": "string",
|
18349
18349
|
"value_allowed_null": false
|
18350
18350
|
},
|
@@ -18354,7 +18354,7 @@
|
|
18354
18354
|
"example": "无",
|
18355
18355
|
"member": "string",
|
18356
18356
|
"name": "SubTotal",
|
18357
|
-
"
|
18357
|
+
"output_required": true,
|
18358
18358
|
"type": "string",
|
18359
18359
|
"value_allowed_null": false
|
18360
18360
|
},
|
@@ -18364,7 +18364,7 @@
|
|
18364
18364
|
"example": "无",
|
18365
18365
|
"member": "string",
|
18366
18366
|
"name": "SubTax",
|
18367
|
-
"
|
18367
|
+
"output_required": true,
|
18368
18368
|
"type": "string",
|
18369
18369
|
"value_allowed_null": false
|
18370
18370
|
},
|
@@ -18374,9 +18374,19 @@
|
|
18374
18374
|
"example": "无",
|
18375
18375
|
"member": "VatElectronicItemInfo",
|
18376
18376
|
"name": "VatElectronicItems",
|
18377
|
-
"
|
18377
|
+
"output_required": true,
|
18378
18378
|
"type": "list",
|
18379
18379
|
"value_allowed_null": false
|
18380
|
+
},
|
18381
|
+
{
|
18382
|
+
"disabled": false,
|
18383
|
+
"document": "业务类型标志",
|
18384
|
+
"example": "无",
|
18385
|
+
"member": "string",
|
18386
|
+
"name": "ServiceTypeLabel",
|
18387
|
+
"output_required": true,
|
18388
|
+
"type": "string",
|
18389
|
+
"value_allowed_null": false
|
18380
18390
|
}
|
18381
18391
|
],
|
18382
18392
|
"usage": "out"
|
@@ -6803,7 +6803,7 @@
|
|
6803
6803
|
"example": "job-xx",
|
6804
6804
|
"member": "string",
|
6805
6805
|
"name": "JobId",
|
6806
|
-
"
|
6806
|
+
"output_required": true,
|
6807
6807
|
"type": "string",
|
6808
6808
|
"value_allowed_null": false
|
6809
6809
|
},
|
@@ -7268,8 +7268,8 @@
|
|
7268
7268
|
},
|
7269
7269
|
{
|
7270
7270
|
"disabled": false,
|
7271
|
-
"document": "
|
7272
|
-
"example": "
|
7271
|
+
"document": "场景名;调用该接口时,请将 Scenario 中不需要修改的字段保持原样也作为接口的入参,否则场景可能会不可用。",
|
7272
|
+
"example": "scenario name",
|
7273
7273
|
"member": "string",
|
7274
7274
|
"name": "Name",
|
7275
7275
|
"required": false,
|
@@ -7287,7 +7287,7 @@
|
|
7287
7287
|
{
|
7288
7288
|
"disabled": false,
|
7289
7289
|
"document": "压测场景的模式类型。取值范围:pts-http 代表简单模式,pts-js 代表脚本模式,pts-jmeter 代表 JMeter 模式。",
|
7290
|
-
"example": "
|
7290
|
+
"example": "pts-http",
|
7291
7291
|
"member": "string",
|
7292
7292
|
"name": "Type",
|
7293
7293
|
"required": false,
|
@@ -3,8 +3,8 @@
|
|
3
3
|
"AbortCronJobs": [
|
4
4
|
{
|
5
5
|
"document": "停止定时任务",
|
6
|
-
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AbortCronJobs\n<公共请求参数>\n\n{\n \"ProjectId\": \"xx\",\n \"CronJobIds\": [\n \"xx\"\n ]\n}",
|
7
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"xx\"\n }\n}",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AbortCronJobs\n<公共请求参数>\n\n{\n \"ProjectId\": \"project-xx\",\n \"CronJobIds\": [\n \"cron-xx\"\n ]\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"req-xx\"\n }\n}",
|
8
8
|
"title": "停止定时任务"
|
9
9
|
}
|
10
10
|
],
|
@@ -91,8 +91,8 @@
|
|
91
91
|
"DeleteCronJobs": [
|
92
92
|
{
|
93
93
|
"document": "删除定时任务",
|
94
|
-
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteCronJobs\n<公共请求参数>\n\n{\n \"ProjectId\": \"xx\",\n \"CronJobIds\": [\n \"xx\"\n ]\n}",
|
95
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"xx\"\n }\n}",
|
94
|
+
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteCronJobs\n<公共请求参数>\n\n{\n \"ProjectId\": \"project-xx\",\n \"CronJobIds\": [\n \"cron-xx\"\n ]\n}",
|
95
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"req-xx\"\n }\n}",
|
96
96
|
"title": "删除定时任务"
|
97
97
|
}
|
98
98
|
],
|
@@ -323,16 +323,16 @@
|
|
323
323
|
"RestartCronJobs": [
|
324
324
|
{
|
325
325
|
"document": "重启状态为已中止的定时任务",
|
326
|
-
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RestartCronJobs\n<公共请求参数>\n\n{\n \"ProjectId\": \"xx\",\n \"CronJobIds\": [\n \"xx\"\n ]\n}",
|
327
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"xx\"\n }\n}",
|
326
|
+
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RestartCronJobs\n<公共请求参数>\n\n{\n \"ProjectId\": \"project-xx\",\n \"CronJobIds\": [\n \"cron-xx\"\n ]\n}",
|
327
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"req-xx\"\n }\n}",
|
328
328
|
"title": "重启定时任务"
|
329
329
|
}
|
330
330
|
],
|
331
331
|
"StartJob": [
|
332
332
|
{
|
333
|
-
"document": "",
|
334
|
-
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartJob\n<公共请求参数>\n\n{\n \"ProjectId\": \"project-xx\",\n \"JobOwner\": \"
|
335
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"xx\",\n \"JobId\": \"job-xx\"\n }\n}",
|
333
|
+
"document": "创建并启动任务",
|
334
|
+
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartJob\n<公共请求参数>\n\n{\n \"ProjectId\": \"project-xx\",\n \"JobOwner\": \"xiaohong\",\n \"ScenarioId\": \"scenario-xx\"\n}",
|
335
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"req-xx\",\n \"JobId\": \"job-xx\"\n }\n}",
|
336
336
|
"title": "创建并启动任务"
|
337
337
|
}
|
338
338
|
],
|