tccli 3.0.1112.1__py2.py3-none-any.whl → 3.0.1113.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 CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1112.1'
1
+ __version__ = '3.0.1113.1'
@@ -15137,7 +15137,7 @@
15137
15137
  "example": "jmx_export",
15138
15138
  "member": "string",
15139
15139
  "name": "Type",
15140
- "required": true,
15140
+ "output_required": true,
15141
15141
  "type": "string",
15142
15142
  "value_allowed_null": false
15143
15143
  },
@@ -15147,7 +15147,7 @@
15147
15147
  "example": "10.0.0.1",
15148
15148
  "member": "string",
15149
15149
  "name": "SourceIp",
15150
- "required": true,
15150
+ "output_required": true,
15151
15151
  "type": "string",
15152
15152
  "value_allowed_null": false
15153
15153
  },
@@ -15157,9 +15157,19 @@
15157
15157
  "example": "60002",
15158
15158
  "member": "int64",
15159
15159
  "name": "SourcePort",
15160
- "required": true,
15160
+ "output_required": true,
15161
15161
  "type": "int",
15162
15162
  "value_allowed_null": false
15163
+ },
15164
+ {
15165
+ "disabled": false,
15166
+ "document": "broker地址\n注意:此字段可能返回 null,表示取不到有效值。",
15167
+ "example": "10.0.1.10",
15168
+ "member": "string",
15169
+ "name": "BrokerIp",
15170
+ "output_required": false,
15171
+ "type": "string",
15172
+ "value_allowed_null": true
15163
15173
  }
15164
15174
  ],
15165
15175
  "usage": "out"
@@ -395,8 +395,8 @@
395
395
  },
396
396
  "metadata": {
397
397
  "apiVersion": "2019-10-18",
398
- "api_brief": "介绍如何使用API对SaaS堡垒机进行操作,包括管理用户、访问权限等资源。",
399
- "serviceNameCN": "T-Sec-堡垒机(BH)",
398
+ "api_brief": "介绍如何使用API对运维安全中心(堡垒机)进行操作,包括管理用户、访问权限等资源。",
399
+ "serviceNameCN": "运维安全中心(堡垒机)",
400
400
  "serviceShortName": "dasb"
401
401
  },
402
402
  "objects": {
@@ -50,7 +50,7 @@
50
50
  "status": "online"
51
51
  },
52
52
  "CreateBatchSignUrl": {
53
- "document": "通过此接口,创建小程序批量签署链接,个人/企业员工点击此链接即可跳转小程序进行批量签署。\n请确保生成链接时候的身份信息和签署合同参与方的信息保持一致。\n\n注:\n- 使用此接口生成链接,需要提前开通 `使用手机号验证签署方身份` 功能,在 `腾讯电子签网页端-企业设置-拓展服务` 中可以找到。\n- 参与人点击链接后需短信验证码才能查看合同内容。\n- 企业用户批量签署,需要传OrganizationName(参与方所在企业名称)参数生成签署链接,`请确保此企业已完成腾讯电子签企业认证`。\n- 个人批量签署,签名区`仅支持手写签名`。",
53
+ "document": "通过此接口,可以创建小程序批量签署链接,个人/企业员工可通过此链接跳转至小程序进行批量签署。请确保生成链接时的身份信息与签署合同参与方的信息保持一致。\n\n注意事项:\n- 使用此接口生成链接,需要贵企业先开通 <font color=\"red\">使用手机号验证签署方身份 </font>功能。您可以在 <b>【腾讯电子签网页端】->【企业设置】->【拓展服务】</b>中找到该功能。\n- 生成批量签署链接时,<font color=\"red\">合同目标参与方的状态必须为<b>待签署</b>状态</font>。签署人人点击链接后需要输入短信验证码才能查看合同内容。\n- 企业员工批量签署链接:需要传入签署方所在企业名称,用户名字和手机号(或者身份证件信息)参数来生成签署链接。<font color=\"red\">该签署方企业必须已完成腾讯电子签企业认证</font>\n- 个人批量签署链接:需要传入签署方用户名字和手机号(或者身份证件信息)参数来生成签署链接。<font color=\"red\">签名区仅支持手写签名</font>",
54
54
  "input": "CreateBatchSignUrlRequest",
55
55
  "name": "获取跳转至腾讯电子签小程序的批量签署链接",
56
56
  "output": "CreateBatchSignUrlResponse",
@@ -12020,7 +12020,7 @@
12020
12020
  },
12021
12021
  {
12022
12022
  "disabled": false,
12023
- "document": "组织机构超管姓名。\n在注册流程中,必须是超管本人进行操作。\n如果法人做为超管管理组织机构,超管姓名就是法人姓名",
12023
+ "document": "组织机构超管姓名。\n在注册流程中,必须是超管本人进行操作。\n如果法人做为超管管理组织机构,超管姓名就是法人姓名\n如果入参中传递超管授权书PowerOfAttorneys,则此参数为必填参数。",
12024
12024
  "example": "无",
12025
12025
  "member": "string",
12026
12026
  "name": "AdminName",
@@ -12029,7 +12029,7 @@
12029
12029
  },
12030
12030
  {
12031
12031
  "disabled": false,
12032
- "document": "组织机构超管姓名。\n在注册流程中,这个手机号必须跟操作人在电子签注册的个人手机号一致。",
12032
+ "document": "组织机构超管手机号。\n在注册流程中,这个手机号必须跟操作人在电子签注册的个人手机号一致。\n如果入参中传递超管授权书PowerOfAttorneys,则此参数为必填参数",
12033
12033
  "example": "无",
12034
12034
  "member": "string",
12035
12035
  "name": "AdminMobile",
@@ -12047,7 +12047,7 @@
12047
12047
  },
12048
12048
  {
12049
12049
  "disabled": false,
12050
- "document": "认证人身份证号",
12050
+ "document": "认证人身份证号,如果入参中传递超管授权书PowerOfAttorneys,则此参数为必填参数\n",
12051
12051
  "example": "无",
12052
12052
  "member": "string",
12053
12053
  "name": "AdminIdCardNumber",
@@ -12071,6 +12071,15 @@
12071
12071
  "name": "BusinessLicense",
12072
12072
  "required": false,
12073
12073
  "type": "string"
12074
+ },
12075
+ {
12076
+ "disabled": false,
12077
+ "document": "授权书(PNG或JPG或PDF) base64格式, 大小不超过8M 。\np.s. 如果上传授权书 ,需遵循以下条件\n1. 超管的信息(超管姓名,超管身份证,超管手机号)必须为必填参数。\n2. 超管的个人身份必须在电子签已经实名。\n2. 认证方式AuthorizationTypes必须只能是上传授权书方式 \n",
12078
+ "example": "超管授权书",
12079
+ "member": "string",
12080
+ "name": "PowerOfAttorneys",
12081
+ "required": false,
12082
+ "type": "list"
12074
12083
  }
12075
12084
  ],
12076
12085
  "usage": "in"
@@ -361,13 +361,13 @@
361
361
  },
362
362
  {
363
363
  "document": "1.通过PDF文件发起合同\n2.指定B端签署方为企业【典子谦示例企业】,经办人为【典子谦】\n3.通过绝对对位方式指定【典子谦示例企业】的签署控件为印章控件,控件位置为该文件的第1页,横坐标160,纵坐标260的位置,控件高宽为119x119(公章大小)\n4.指定C端签署方为个人【李四】,联系电话为【15100000000】\n5.通过绝对对位方式指定【李四】的签署控件为手写签名控件,控件位置为该文件的第1页,横坐标60,纵坐标260的位置,控件高宽为119x43(推荐的手写签名大小)\n6.通过绝对定位方式在合同文件的第1页,横坐标360,纵坐标360的位置放置一个单行文本控件,并写入内容【我是一个单行文本】\n7.完成合同发起",
364
- "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFlowByFiles\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"19561039c99fe825a934a132520fde6a\"\n },\n \"FlowName\": \"通过文件发起合同\",\n \"FlowDescription\": \"通过文件发起合同\",\n \"Unordered\": false,\n \"FlowType\": \"示例合同\",\n \"Deadline\": 1830268800,\n \"SignBeanTag\": 1,\n \"Approvers\": [\n {\n \"ApproverType\": 0,\n \"OrganizationName\": \"典子谦示例企业\",\n \"ApproverName\": \"典子谦\",\n \"ApproverMobile\": \"13200000000\",\n \"VerifyChannel\": [],\n \"ApproverIdCardType\": \"\",\n \"ApproverIdCardNumber\": \"\",\n \"SignComponents\": [\n {\n \"ComponentPage\": 1,\n \"ComponentPosX\": 160,\n \"ComponentPosY\": 260,\n \"ComponentHeight\": 119,\n \"ComponentWidth\": 119,\n \"FileIndex\": 0,\n \"ComponentType\": \"SIGN_SEAL\",\n \"ComponentValue\": \"\"\n }\n ]\n },\n {\n \"ApproverType\": 1,\n \"NotifyType\": \"NONE\",\n \"ApproverName\": \"李四\",\n \"ApproverMobile\": \"15100000000\",\n \"PreReadTime\": 10,\n \"SignComponents\": [\n {\n \"ComponentPage\": 1,\n \"ComponentPosX\": 60,\n \"ComponentPosY\": 260,\n \"ComponentWidth\": 119,\n \"ComponentHeight\": 43,\n \"FileIndex\": 0,\n \"ComponentType\": \"SIGN_SIGNATURE\"\n }\n ]\n }\n ],\n \"FileIds\": [\n \"yDwqYUUckp39gkfxUu14JJPxaTyM1ltq\"\n ],\n \"Components\": [\n {\n \"ComponentPage\": 1,\n \"ComponentPosX\": 360,\n \"ComponentPosY\": 360,\n \"ComponentWidth\": 100,\n \"ComponentHeight\": 100,\n \"ComponentType\": \"TEXT\",\n \"ComponentValue\": \"我是一个单行文本\",\n \"FileIndex\": 0\n }\n ]\n}",
364
+ "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFlowByFiles\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"19561039c99fe825a934a132520fde6a\"\n },\n \"FlowName\": \"通过文件发起合同\",\n \"FlowDescription\": \"通过文件发起合同\",\n \"Unordered\": false,\n \"FlowType\": \"示例合同\",\n \"Deadline\": 1830268800,\n \"Approvers\": [\n {\n \"ApproverType\": 0,\n \"OrganizationName\": \"典子谦示例企业\",\n \"ApproverName\": \"典子谦\",\n \"ApproverMobile\": \"13200000000\",\n \"VerifyChannel\": [],\n \"ApproverIdCardType\": \"\",\n \"ApproverIdCardNumber\": \"\",\n \"SignComponents\": [\n {\n \"ComponentPage\": 1,\n \"ComponentPosX\": 160,\n \"ComponentPosY\": 260,\n \"ComponentHeight\": 119,\n \"ComponentWidth\": 119,\n \"FileIndex\": 0,\n \"ComponentType\": \"SIGN_SEAL\",\n \"ComponentValue\": \"\"\n }\n ]\n },\n {\n \"ApproverType\": 1,\n \"NotifyType\": \"NONE\",\n \"ApproverName\": \"李四\",\n \"ApproverMobile\": \"15100000000\",\n \"PreReadTime\": 10,\n \"SignComponents\": [\n {\n \"ComponentPage\": 1,\n \"ComponentPosX\": 60,\n \"ComponentPosY\": 260,\n \"ComponentWidth\": 119,\n \"ComponentHeight\": 43,\n \"FileIndex\": 0,\n \"ComponentType\": \"SIGN_SIGNATURE\"\n }\n ]\n }\n ],\n \"FileIds\": [\n \"yDwqYUUckp39gkfxUu14JJPxaTyM1ltq\"\n ],\n \"Components\": [\n {\n \"ComponentPage\": 1,\n \"ComponentPosX\": 360,\n \"ComponentPosY\": 360,\n \"ComponentWidth\": 100,\n \"ComponentHeight\": 100,\n \"ComponentType\": \"TEXT\",\n \"ComponentValue\": \"我是一个单行文本\",\n \"FileIndex\": 0\n }\n ]\n}",
365
365
  "output": "{\n \"Response\": {\n \"Approvers\": [\n {\n \"SignId\": \"\",\n \"RecipientId\": \"yDw7hUUckpkmo432UunP4DaCo2sOe2oP\",\n \"ApproverRoleName\": \"\"\n }\n ],\n \"FlowId\": \"yDR4yUUgyg1qh6szUxt1qOK1Jy90khKS\",\n \"PreviewUrl\": \"\",\n \"RequestId\": \"s1665674603446404796\"\n }\n}",
366
366
  "title": "通过文件发起B2C合同-控件使用绝对定位方式"
367
367
  },
368
368
  {
369
369
  "document": "1.通过PDF文件发起合同\n2.指定B端签署方为企业【典子谦示例企业】,经办人为【典子谦】\n3.通过绝对对位方式指定【典子谦示例企业】的签署控件为印章控件,控件类型为【KEYWORD】关键字类型,并设置关键字为【签名】,关键字查找顺序为【Positive-正序】关键字位置模式为【Middle-居中】,控件高宽为119x119(公章大小)\n4.指定C端签署方为个人【李四】,联系电话为【15100000000】\n5.通过绝对对位方式指定【李四】的签署控件为手写签名控件,控件位置为该文件的第1页,横坐标60,纵坐标260的位置,控件高宽为119x43(推荐的手写签名大小)\n6.通过绝对定位方式在合同文件的第1页,横坐标360,纵坐标360的位置放置一个单行文本控件,并写入内容【我是一个单行文本】\n7.完成合同发起",
370
- "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFlowByFiles\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"19561039c99fe825a934a132520fde6a\"\n },\n \"FlowName\": \"通过文件发起合同-关键字定位\",\n \"FlowDescription\": \"通过文件发起合同\",\n \"Unordered\": false,\n \"FlowType\": \"示例合同\",\n \"Deadline\": 1830268800,\n \"SignBeanTag\": 1,\n \"Approvers\": [\n {\n \"ApproverType\": 0,\n \"OrganizationName\": \"典子谦示例企业\",\n \"ApproverName\": \"典子谦\",\n \"ApproverMobile\": \"13200000000\",\n \"VerifyChannel\": [],\n \"ApproverIdCardType\": \"\",\n \"ApproverIdCardNumber\": \"\",\n \"SignComponents\": [\n {\n \"ComponentPage\": 1,\n \"ComponentPosX\": 0,\n \"ComponentPosY\": 0,\n \"ComponentWidth\": 119,\n \"ComponentHeight\": 119,\n \"FileIndex\": 0,\n \"ComponentType\": \"SIGN_SEAL\",\n \"GenerateMode\": \"KEYWORD\",\n \"ComponentId\": \"签名\",\n \"KeywordOrder\": \"Positive\",\n \"RelativeLocation\": \"Middle\"\n }\n ]\n },\n {\n \"ApproverType\": 1,\n \"NotifyType\": \"NONE\",\n \"ApproverName\": \"李四\",\n \"ApproverMobile\": \"15100000000\",\n \"PreReadTime\": 10,\n \"SignComponents\": [\n {\n \"ComponentPage\": 1,\n \"ComponentPosX\": 60,\n \"ComponentPosY\": 260,\n \"ComponentWidth\": 119,\n \"ComponentHeight\": 43,\n \"FileIndex\": 0,\n \"ComponentType\": \"SIGN_SIGNATURE\"\n }\n ]\n }\n ],\n \"FileIds\": [\n \"yDwqYUUckp39gkfxUu14JJPxaTyM1ltq\"\n ],\n \"Components\": [\n {\n \"ComponentPage\": 1,\n \"ComponentPosX\": 360,\n \"ComponentPosY\": 360,\n \"ComponentWidth\": 100,\n \"ComponentHeight\": 100,\n \"ComponentType\": \"TEXT\",\n \"ComponentValue\": \"我是一个单行文本\",\n \"FileIndex\": 0\n }\n ]\n}",
370
+ "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFlowByFiles\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"19561039c99fe825a934a132520fde6a\"\n },\n \"FlowName\": \"通过文件发起合同-关键字定位\",\n \"FlowDescription\": \"通过文件发起合同\",\n \"Unordered\": false,\n \"FlowType\": \"示例合同\",\n \"Deadline\": 1830268800,\n \"Approvers\": [\n {\n \"ApproverType\": 0,\n \"OrganizationName\": \"典子谦示例企业\",\n \"ApproverName\": \"典子谦\",\n \"ApproverMobile\": \"13200000000\",\n \"VerifyChannel\": [],\n \"ApproverIdCardType\": \"\",\n \"ApproverIdCardNumber\": \"\",\n \"SignComponents\": [\n {\n \"ComponentPage\": 1,\n \"ComponentPosX\": 0,\n \"ComponentPosY\": 0,\n \"ComponentWidth\": 119,\n \"ComponentHeight\": 119,\n \"FileIndex\": 0,\n \"ComponentType\": \"SIGN_SEAL\",\n \"GenerateMode\": \"KEYWORD\",\n \"ComponentId\": \"签名\",\n \"KeywordOrder\": \"Positive\",\n \"RelativeLocation\": \"Middle\"\n }\n ]\n },\n {\n \"ApproverType\": 1,\n \"NotifyType\": \"NONE\",\n \"ApproverName\": \"李四\",\n \"ApproverMobile\": \"15100000000\",\n \"PreReadTime\": 10,\n \"SignComponents\": [\n {\n \"ComponentPage\": 1,\n \"ComponentPosX\": 60,\n \"ComponentPosY\": 260,\n \"ComponentWidth\": 119,\n \"ComponentHeight\": 43,\n \"FileIndex\": 0,\n \"ComponentType\": \"SIGN_SIGNATURE\"\n }\n ]\n }\n ],\n \"FileIds\": [\n \"yDwqYUUckp39gkfxUu14JJPxaTyM1ltq\"\n ],\n \"Components\": [\n {\n \"ComponentPage\": 1,\n \"ComponentPosX\": 360,\n \"ComponentPosY\": 360,\n \"ComponentWidth\": 100,\n \"ComponentHeight\": 100,\n \"ComponentType\": \"TEXT\",\n \"ComponentValue\": \"我是一个单行文本\",\n \"FileIndex\": 0\n }\n ]\n}",
371
371
  "output": "{\n \"Response\": {\n \"Approvers\": [\n {\n \"SignId\": \"\",\n \"RecipientId\": \"yDw7hUUckpkmo432UunP4DaCo2sOe2oP\",\n \"ApproverRoleName\": \"\"\n }\n ],\n \"FlowId\": \"yDR4yUUgyg1qh6szUxt1qOK1Jy90khKS\",\n \"PreviewUrl\": \"\",\n \"RequestId\": \"s1665674603446404796\"\n }\n}",
372
372
  "title": "通过文件发起B2C合同-控件使用关键字定位方式"
373
373
  },
@@ -6134,7 +6134,7 @@
6134
6134
  "members": [
6135
6135
  {
6136
6136
  "disabled": false,
6137
- "document": "跳转链接, 链接的有效期根据企业,员工状态和终端等有区别, 可以参考下表\n<table> <thead> <tr> <th>子客企业状态</th> <th>子客企业员工状态</th> <th>Endpoint</th> <th>链接有效期限</th> </tr> </thead> <tbody> <tr> <td>企业未激活</td> <td>员工未认证</td> <td>PC/PC_SHORT_URL</td> <td>5分钟</td> </tr> <tr> <td>企业未激活</td> <td>员工未认证</td> <td>CHANNEL/APP/H5/SHORT_H5</td> <td>30天</td> </tr> <tr> <td>企业已激活</td> <td>员工未认证</td> <td>PC/PC_SHORT_URL</td> <td>5分钟</td> </tr> <tr> <td>企业已激活</td> <td>员工未认证</td> <td>PC/CHANNEL/APP/H5/SHORT_H5</td> <td>30天</td> </tr> <tr> <td>企业已激活</td> <td>员工已认证</td> <td>PC</td> <td>5分钟</td> </tr> <tr> <td>企业已激活</td> <td>员工已认证</td> <td>CHANNEL/APP/H5/SHORT_H5</td> <td>30天</td> </tr> </tbody> </table>\n\n注: \n1. <font color=\"red\">链接仅单次有效</font>,每次登录需要需要重新创建新的链接\n2. 创建的链接应避免被转义,如:&被转义为\\u0026;如使用Postman请求后,请选择响应类型为 JSON,否则链接将被转义\n3. <font color=\"red\">生成的链路后面不能再增加参数</font>(会出现覆盖链接中已有参数导致错误)\n",
6137
+ "document": "跳转链接, 链接的有效期根据企业,员工状态和终端等有区别, 可以参考下表\n<table> <thead> <tr> <th>子客企业状态</th> <th>子客企业员工状态</th> <th>Endpoint</th> <th>链接有效期限</th> </tr> </thead> <tbody> <tr> <td>企业未激活</td> <td>员工未认证</td> <td>PC/PC_SHORT_URL</td> <td>5分钟</td> </tr> <tr> <td>企业未激活</td> <td>员工未认证</td> <td>CHANNEL/APP/H5/SHORT_H5</td> <td>30天</td> </tr> <tr> <td>企业已激活</td> <td>员工未认证</td> <td>PC/PC_SHORT_URL</td> <td>5分钟</td> </tr> <tr> <td>企业已激活</td> <td>员工未认证</td> <td>CHANNEL/APP/H5/SHORT_H5</td> <td>30天</td> </tr> <tr> <td>企业已激活</td> <td>员工已认证</td> <td>PC</td> <td>5分钟</td> </tr> <tr> <td>企业已激活</td> <td>员工已认证</td> <td>CHANNEL/APP/H5/SHORT_H5</td> <td>30天</td> </tr> </tbody> </table>\n\n注: \n1. <font color=\"red\">链接仅单次有效</font>,每次登录需要需要重新创建新的链接\n2. 创建的链接应避免被转义,如:&被转义为\\u0026;如使用Postman请求后,请选择响应类型为 JSON,否则链接将被转义\n3. <font color=\"red\">生成的链路后面不能再增加参数</font>(会出现覆盖链接中已有参数导致错误)\n",
6138
6138
  "example": "无",
6139
6139
  "member": "string",
6140
6140
  "name": "ConsoleUrl",
@@ -10638,7 +10638,7 @@
10638
10638
  },
10639
10639
  {
10640
10640
  "disabled": false,
10641
- "document": "授权书(PNG或JPG或PDF) base64格式, 大小不超过8M",
10641
+ "document": "授权书(PNG或JPG或PDF) base64格式, 大小不超过8M 。\np.s. 如果上传授权书 ,需遵循以下条件\n1. 超管的信息(超管姓名,超管身份证,超管手机号)必须为必填参数。\n2. 超管的个人身份必须在电子签已经实名。\n2. 认证方式AuthorizationTypes必须只能是上传授权书方式 \n",
10642
10642
  "example": "无",
10643
10643
  "member": "string",
10644
10644
  "name": "PowerOfAttorneys",
@@ -116,7 +116,7 @@
116
116
  },
117
117
  {
118
118
  "disabled": false,
119
- "document": "功能增强(如搜索)开关。\n说明:\n1. hunyuan-pro 模型可用,其它版本不生效。\n2. 未传值时默认打开开关。\n3. 关闭时将直接由主模型生成回复内容,可以降低响应时延(对于流式输出时的首字时延尤为明显)。但在少数场景里,回复效果可能会下降。\n4. 安全审核能力不属于功能增强范围,不受此字段影响。",
119
+ "document": "功能增强(如搜索)开关。\n说明:\n1. hunyuan-lite 无功能增强(如搜索)能力,该参数对 hunyuan-lite 版本不生效。\n2. 未传值时默认打开开关。\n3. 关闭时将直接由主模型生成回复内容,可以降低响应时延(对于流式输出时的首字时延尤为明显)。但在少数场景里,回复效果可能会下降。\n4. 安全审核能力不属于功能增强范围,不受此字段影响。",
120
120
  "example": "true",
121
121
  "member": "bool",
122
122
  "name": "EnableEnhancement",
@@ -4957,6 +4957,58 @@ def doDescribeBatchProduction(args, parsed_globals):
4957
4957
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4958
4958
 
4959
4959
 
4960
+ def doUpdateDeviceTWeCallAuthorizeStatus(args, parsed_globals):
4961
+ g_param = parse_global_arg(parsed_globals)
4962
+
4963
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4964
+ cred = credential.CVMRoleCredential()
4965
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4966
+ cred = credential.STSAssumeRoleCredential(
4967
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4968
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4969
+ )
4970
+ 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):
4971
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4972
+ else:
4973
+ cred = credential.Credential(
4974
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4975
+ )
4976
+ http_profile = HttpProfile(
4977
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4978
+ reqMethod="POST",
4979
+ endpoint=g_param[OptionsDefine.Endpoint],
4980
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4981
+ )
4982
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4983
+ if g_param[OptionsDefine.Language]:
4984
+ profile.language = g_param[OptionsDefine.Language]
4985
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4986
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
4987
+ client._sdkVersion += ("_CLI_" + __version__)
4988
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4989
+ model = models.UpdateDeviceTWeCallAuthorizeStatusRequest()
4990
+ model.from_json_string(json.dumps(args))
4991
+ start_time = time.time()
4992
+ while True:
4993
+ rsp = client.UpdateDeviceTWeCallAuthorizeStatus(model)
4994
+ result = rsp.to_json_string()
4995
+ try:
4996
+ json_obj = json.loads(result)
4997
+ except TypeError as e:
4998
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4999
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5000
+ break
5001
+ cur_time = time.time()
5002
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5003
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5004
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5005
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5006
+ else:
5007
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5008
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5009
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5010
+
5011
+
4960
5012
  def doDeleteCloudStorageEvent(args, parsed_globals):
4961
5013
  g_param = parse_global_arg(parsed_globals)
4962
5014
 
@@ -6831,6 +6883,7 @@ ACTION_MAP = {
6831
6883
  "GetStudioProductList": doGetStudioProductList,
6832
6884
  "DescribeModelDefinition": doDescribeModelDefinition,
6833
6885
  "DescribeBatchProduction": doDescribeBatchProduction,
6886
+ "UpdateDeviceTWeCallAuthorizeStatus": doUpdateDeviceTWeCallAuthorizeStatus,
6834
6887
  "DeleteCloudStorageEvent": doDeleteCloudStorageEvent,
6835
6888
  "DeleteDevices": doDeleteDevices,
6836
6889
  "GetGatewaySubDeviceList": doGetGatewaySubDeviceList,
@@ -882,6 +882,13 @@
882
882
  "output": "UnbindProductsResponse",
883
883
  "status": "online"
884
884
  },
885
+ "UpdateDeviceTWeCallAuthorizeStatus": {
886
+ "document": "更新用户对设备的TweCall授权状态",
887
+ "input": "UpdateDeviceTWeCallAuthorizeStatusRequest",
888
+ "name": "更新用户对设备的TweCall授权状态",
889
+ "output": "UpdateDeviceTWeCallAuthorizeStatusResponse",
890
+ "status": "online"
891
+ },
885
892
  "UpdateDevicesEnableState": {
886
893
  "document": "批量禁用启用设备",
887
894
  "input": "UpdateDevicesEnableStateRequest",
@@ -12129,6 +12136,60 @@
12129
12136
  ],
12130
12137
  "type": "object"
12131
12138
  },
12139
+ "UpdateDeviceTWeCallAuthorizeStatusRequest": {
12140
+ "document": "UpdateDeviceTWeCallAuthorizeStatus请求参数结构体",
12141
+ "members": [
12142
+ {
12143
+ "disabled": false,
12144
+ "document": "TweCall授权状态:0未授权,1已授权",
12145
+ "example": "1",
12146
+ "member": "uint64",
12147
+ "name": "Status",
12148
+ "required": false,
12149
+ "type": "int"
12150
+ },
12151
+ {
12152
+ "disabled": false,
12153
+ "document": "产品ID",
12154
+ "example": "ProductId1",
12155
+ "member": "string",
12156
+ "name": "ProductId",
12157
+ "required": false,
12158
+ "type": "string"
12159
+ },
12160
+ {
12161
+ "disabled": false,
12162
+ "document": "设备名",
12163
+ "example": "DeviceName1",
12164
+ "member": "string",
12165
+ "name": "DeviceName",
12166
+ "required": false,
12167
+ "type": "string"
12168
+ },
12169
+ {
12170
+ "disabled": false,
12171
+ "document": "微信用户的openId",
12172
+ "example": "111",
12173
+ "member": "string",
12174
+ "name": "WechatOpenId",
12175
+ "required": false,
12176
+ "type": "string"
12177
+ }
12178
+ ],
12179
+ "type": "object"
12180
+ },
12181
+ "UpdateDeviceTWeCallAuthorizeStatusResponse": {
12182
+ "document": "UpdateDeviceTWeCallAuthorizeStatus返回参数结构体",
12183
+ "members": [
12184
+ {
12185
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
12186
+ "member": "string",
12187
+ "name": "RequestId",
12188
+ "type": "string"
12189
+ }
12190
+ ],
12191
+ "type": "object"
12192
+ },
12132
12193
  "UpdateDevicesEnableStateRequest": {
12133
12194
  "document": "UpdateDevicesEnableState请求参数结构体",
12134
12195
  "members": [
@@ -1062,6 +1062,14 @@
1062
1062
  "title": "批量解绑子产品"
1063
1063
  }
1064
1064
  ],
1065
+ "UpdateDeviceTWeCallAuthorizeStatus": [
1066
+ {
1067
+ "document": "",
1068
+ "input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateDeviceTWeCallAuthorizeStatus\n<公共请求参数>\n\n{\n \"Status\": 1,\n \"ProductId\": \"ProductId1\",\n \"DeviceName\": \"DeviceName1\",\n \"WechatOpenId\": \"111111\"\n}",
1069
+ "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
1070
+ "title": "授权示例"
1071
+ }
1072
+ ],
1065
1073
  "UpdateDevicesEnableState": [
1066
1074
  {
1067
1075
  "document": "批量禁用启用设备",