tccli 3.0.1139.1__py2.py3-none-any.whl → 3.0.1140.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.1139.1'
1
+ __version__ = '3.0.1140.1'
@@ -11541,6 +11541,15 @@
11541
11541
  "name": "StopParams",
11542
11542
  "required": false,
11543
11543
  "type": "object"
11544
+ },
11545
+ {
11546
+ "disabled": false,
11547
+ "document": "当OpType为<li>StopMonitor</li>才有用,true表示进入维护模式但是仍然监控进程但是不拉起进程",
11548
+ "example": "无",
11549
+ "member": "bool",
11550
+ "name": "KeepMonitorButNotRecoverProcess",
11551
+ "required": false,
11552
+ "type": "bool"
11544
11553
  }
11545
11554
  ],
11546
11555
  "type": "object"
@@ -197,9 +197,9 @@
197
197
  "status": "online"
198
198
  },
199
199
  "CreateLegalSealQrCode": {
200
- "document": "该接口用于获取创建法人章的二维码<br/>\n\n**注意**\n1. 该二维码**有效期为7天**,过期后将失效,可重新创建 ",
200
+ "document": "该接口用于获取创建法人章的二维码,需要通过微信扫描。扫描后将跳转到腾讯电子签署,进入到创建法人章的流程。\n\n**注意**\n1. 该二维码**有效期为7天**,过期后将失效,可重新创建 。\n2. 每个公司**只能有1个法人章**,无法重复创建或者创建多个\n\n法人章的样式可以参考下图索引(也可以自己上传法人印章图片):\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/36a0a090750c45bb5cac5047ac461b2c.png)",
201
201
  "input": "CreateLegalSealQrCodeRequest",
202
- "name": "获取创建法人章二维码",
202
+ "name": "获取到电子签小程序创建法人章二维码",
203
203
  "output": "CreateLegalSealQrCodeResponse",
204
204
  "status": "online"
205
205
  },
@@ -470,7 +470,7 @@
470
470
  "status": "online"
471
471
  },
472
472
  "DescribeOrganizationSeals": {
473
- "document": "查询企业印章的列表,需要操作者具有查询印章权限\n客户指定需要获取的印章数量和偏移量,数量最多100,超过100按100处理;入参InfoType控制印章是否携带授权人信息,为1则携带,为0则返回的授权人信息为空数组。接口调用成功返回印章的信息列表还有企业印章的总数。",
473
+ "document": "查询企业印章列表。\n\n注:\n1. 此操作要求操作者具备<b>印章查询权限</b>(若调用者尚无此权限,请联系超级管理员前往Web控制台【组织管理】->【角色管理】添加相应权限)。",
474
474
  "input": "DescribeOrganizationSealsRequest",
475
475
  "name": "查询企业电子印章",
476
476
  "output": "DescribeOrganizationSealsResponse",
@@ -1715,7 +1715,7 @@
1715
1715
  "usage": "in"
1716
1716
  },
1717
1717
  "Component": {
1718
- "document": "此结构体 (Component) 用于描述控件属性。\n\n在通过文件发起合同时,对应的component有三种定位方式\n1. 绝对定位方式 (可以通过 [PDF坐标计算助手](https://qian.tencent.com/developers/tools/template-editor)计算控件的坐标)\n2. 表单域(FIELD)定位方式\n3. 关键字(KEYWORD)定位方式,使用关键字定位时,请确保PDF原始文件内是关键字以文字形式保存在PDF文件中,不支持对图片内文字进行关键字查找\n可以参考官网说明\nhttps://cloud.tencent.com/document/product/1323/78346#component-.E4.B8.89.E7.A7.8D.E5.AE.9A.E4.BD.8D.E6.96.B9.E5.BC.8F.E8.AF.B4.E6.98.8E",
1718
+ "document": "此结构体 (Component) 用于描述控件属性。\n\n在通过文件发起合同时,对应的component有三种定位方式\n1. 绝对定位方式 (可以通过 [PDF坐标计算助手](https://qian.tencent.com/developers/tools/template-editor)计算控件的坐标)\n2. 表单域(FIELD)定位方式\n3. 关键字(KEYWORD)定位方式,使用关键字定位时,请确保PDF原始文件内是关键字以文字形式保存在PDF文件中,不支持对图片内文字进行关键字查找",
1719
1719
  "members": [
1720
1720
  {
1721
1721
  "disabled": false,
@@ -4498,8 +4498,8 @@
4498
4498
  "members": [
4499
4499
  {
4500
4500
  "disabled": false,
4501
- "document": "二维码图片base64",
4502
- "example": "”xxxx“",
4501
+ "document": "二维码图片base64值,二维码有效期7天(604800秒)\n\n二维码图片的样式如下图:\n![image](https://qcloudimg.tencent-cloud.cn/raw/7ec2478761158a35a9c623882839a5df.png)",
4502
+ "example": "C61r2kWfiCz0jXdD1S60a4vI9Rt9O1nSr6a2S21Gzlm/V/8A4MY/+........(图片base64编码)",
4503
4503
  "member": "string",
4504
4504
  "name": "QrcodeBase64",
4505
4505
  "output_required": true,
@@ -8538,7 +8538,7 @@
8538
8538
  },
8539
8539
  {
8540
8540
  "disabled": false,
8541
- "document": "查询信息类型,取值如下:\n<ul>\n<li>0不返回授权用户</li>\n<li>1返回授权用户信息</li>\n</ul>",
8541
+ "document": "查询授权用户信息类型,取值如下:\n\n<ul> <li><b>0</b>:(默认)不返回授权用户信息</li> <li><b>1</b>:返回授权用户的信息</li> </ul>",
8542
8542
  "example": "1",
8543
8543
  "member": "int64",
8544
8544
  "name": "InfoType",
@@ -8547,7 +8547,7 @@
8547
8547
  },
8548
8548
  {
8549
8549
  "disabled": false,
8550
- "document": "印章id(没有输入返回所有)",
8550
+ "document": "印章id,是否查询特定的印章(没有输入返回所有)",
8551
8551
  "example": "无",
8552
8552
  "member": "string",
8553
8553
  "name": "SealId",
@@ -8556,7 +8556,7 @@
8556
8556
  },
8557
8557
  {
8558
8558
  "disabled": false,
8559
- "document": "印章类型列表(都是组织机构印章)。\n为空时查询所有类型的印章。\n目前支持以下类型:\n<ul>\n<li>OFFICIAL:企业公章;</li>\n<li>CONTRACT:合同专用章;</li>\n<li>ORGANIZATION_SEAL:企业印章(图片上传创建);</li>\n<li>LEGAL_PERSON_SEAL:法定代表人章</li>\n</ul>",
8559
+ "document": "印章种类列表(均为组织机构印章)。 若无特定需求,将展示所有类型的印章。 \n\n目前支持以下几种:\n\n<ul> <li><strong>OFFICIAL</strong>:企业公章;</li> <li><strong>CONTRACT</strong>:合同专用章;</li> <li><strong>ORGANIZATION_SEAL</strong>:企业印章(通过图片上传创建);</li> <li><strong>LEGAL_PERSON_SEAL</strong>:法定代表人章。</li> </ul>",
8560
8560
  "example": "无",
8561
8561
  "member": "string",
8562
8562
  "name": "SealTypes",
@@ -8574,7 +8574,7 @@
8574
8574
  },
8575
8575
  {
8576
8576
  "disabled": false,
8577
- "document": "查询的印章状态列表。\n<ul>\n<li>空,只查询启用状态的印章;</li>\n<li>ALL,查询所有状态的印章;</li>\n<li>CHECKING,查询待审核的印章;</li>\n<li>SUCCESS,查询启用状态的印章;</li>\n<li>FAIL,查询印章审核拒绝的印章;</li>\n<li>DISABLE,查询已停用的印章;</li>\n<li>STOPPED,查询已终止的印章;</li>\n<li>VOID,查询已作废的印章;</li>\n<li>INVALID,查询已失效的印章;</li>\n</ul>",
8577
+ "document": "需查询的印章状态列表。\n<ul>\n<li>空:(默认)仅查询启用状态的印章;</li>\n<li><strong>ALL</strong>:查询所有状态的印章;</li>\n<li><strong>CHECKING</strong>:查询待审核的印章;</li>\n<li><strong>SUCCESS</strong>:查询启用状态的印章;</li>\n<li><strong>FAIL</strong>:查询印章审核拒绝的印章;</li>\n<li><strong>DISABLE</strong>:查询已停用的印章;</li>\n<li><strong>STOPPED</strong>:查询已终止的印章;</li>\n<li><strong>VOID</strong>:查询已作废的印章;</li>\n<li><strong>INVALID</strong>:查询已失效的印章。</li>\n</ul>",
8578
8578
  "example": "无",
8579
8579
  "member": "string",
8580
8580
  "name": "SealStatuses",
@@ -8589,7 +8589,7 @@
8589
8589
  "members": [
8590
8590
  {
8591
8591
  "disabled": false,
8592
- "document": "在设置了SealId时返回0或1,没有设置时返回公司的总印章数量,可能比返回的印章数组数量多",
8592
+ "document": "在设定了SealId时,返回值为0或1;若未设定SealId,则返回公司的总印章数量",
8593
8593
  "example": "10",
8594
8594
  "member": "int64",
8595
8595
  "name": "TotalCount",
@@ -708,8 +708,8 @@
708
708
  {
709
709
  "document": "获取创建法人章二维码",
710
710
  "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateLegalSealQrCode\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDwfsUUckpsqt647UE6uSrk1ZWhYH56z\"\n }\n}",
711
- "output": "{\n \"Response\": {\n \"QrcodeBase64\": \"xxxxxxxxx\",\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
712
- "title": "获取创建法人章二维码"
711
+ "output": "{\n \"Response\": {\n \"QrcodeBase64\": \"5X8Af8AwfOf84uv+72f/fR6APgD/gyp/wCUpvx8/wCzAPin/wCtFfsq1/oOf8FNvCfirx7/AME2/wDgoN4F8C+GfEHjTxt40/Yg/av8J+DvB3hPRtR8R+KvFnirxH8BvH2j+HvDPhnw9o9teavr3iDXd(其他图片BASE64编码省略)\",\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
712
+ "title": "获取创建法人章二维码成功"
713
713
  }
714
714
  ],
715
715
  "CreateMultiFlowSignQRCode": [
@@ -246,9 +246,9 @@
246
246
  "status": "online"
247
247
  },
248
248
  "ChannelDescribeOrganizationSeals": {
249
- "document": "此接口(ChannelDescribeOrganizationSeals)查询子客企业电子印章。<br />\n注: \n1. `查询子客企业电子印章,需要操作者具有管理印章权限`\n2. `客户指定需要获取的印章数量和偏移量,数量最多100,超过100按100处理`\n3. `此接口只能查询启用的印章`",
249
+ "document": "此接口查询子企业电子印章。<br />\n\n注:\n1. 此操作要求操作者具备<b>印章查询权限</b>(若调用者尚无此权限,请联系超级管理员前往Web控制台【组织管理】->【角色管理】添加相应权限)。",
250
250
  "input": "ChannelDescribeOrganizationSealsRequest",
251
- "name": "查询子客企业电子印章",
251
+ "name": "查询子企业电子印章",
252
252
  "output": "ChannelDescribeOrganizationSealsResponse",
253
253
  "status": "online"
254
254
  },
@@ -365,9 +365,9 @@
365
365
  "status": "online"
366
366
  },
367
367
  "CreateLegalSealQrCode": {
368
- "document": "此接口用于获取创建法人章二维码图片base64",
368
+ "document": "该接口用于获取创建法人章的二维码,需要通过微信扫描。扫描后将跳转到腾讯电子签署,进入到创建法人章的流程。\n\n**注意**\n1. 该二维码**有效期为7天**,过期后将失效,可重新创建 。\n2. 每个公司**只能有1个法人章**,无法重复创建或者创建多个\n\n法人章的样式可以参考下图索引(也可以自己上传法人印章图片):\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/36a0a090750c45bb5cac5047ac461b2c.png)",
369
369
  "input": "CreateLegalSealQrCodeRequest",
370
- "name": "获取创建法人章二维码",
370
+ "name": "获取到电子签小程序创建法人章二维码",
371
371
  "output": "CreateLegalSealQrCodeResponse",
372
372
  "status": "online"
373
373
  },
@@ -4321,7 +4321,7 @@
4321
4321
  },
4322
4322
  {
4323
4323
  "disabled": false,
4324
- "document": "返回最大数量,最大为100",
4324
+ "document": "指定分页每页返回的数据条数,单页最大支持 100",
4325
4325
  "example": "10",
4326
4326
  "member": "int64",
4327
4327
  "name": "Limit",
@@ -4339,7 +4339,7 @@
4339
4339
  },
4340
4340
  {
4341
4341
  "disabled": false,
4342
- "document": "查询信息类型\n支持的值如下:\n<ul><li>0-默认,不返回授权用户信息</li>\n<li>1-返回授权用户信息</li>\n</ul>",
4342
+ "document": "查询授权用户信息类型,取值如下:\n\n<ul> <li><b>0</b>:(默认)不返回授权用户信息</li> <li><b>1</b>:返回授权用户的信息</li> </ul>",
4343
4343
  "example": "1",
4344
4344
  "member": "int64",
4345
4345
  "name": "InfoType",
@@ -4348,7 +4348,7 @@
4348
4348
  },
4349
4349
  {
4350
4350
  "disabled": false,
4351
- "document": "印章id(没有输入返回所有)\n\n注: `没有输入返回所有记录,最大返回100条。`",
4351
+ "document": "印章id,是否查询特定的印章(没有输入返回所有)\n\n注: `没有输入返回所有记录,最大返回100条。`",
4352
4352
  "example": "无",
4353
4353
  "member": "string",
4354
4354
  "name": "SealId",
@@ -4357,7 +4357,7 @@
4357
4357
  },
4358
4358
  {
4359
4359
  "disabled": false,
4360
- "document": "电子印章类型 , 可选类型如下: \n<ul><li>**OFFICIAL**: (默认)公章</li>\n<li>**CONTRACT**: 合同专用章;</li>\n<li>**FINANCE**: 财务专用章;</li>\n<li>**PERSONNEL**: 人事专用章</li>\n<li>**INVOICE**: 发票专用章</li>\n</ul>\n\n注: `为空时查询所有类型的印章。`",
4360
+ "document": "电子印章类型 , 可选类型如下: \n<ul><li>**OFFICIAL**: 公章</li>\n<li>**CONTRACT**: 合同专用章;</li>\n<li>**FINANCE**: 财务专用章;</li>\n<li>**PERSONNEL**: 人事专用章</li>\n<li>**INVOICE**: 发票专用章</li>\n</ul>\n\n注: `为空时查询所有类型的印章。`",
4361
4361
  "example": "无",
4362
4362
  "member": "string",
4363
4363
  "name": "SealTypes",
@@ -4366,7 +4366,7 @@
4366
4366
  },
4367
4367
  {
4368
4368
  "disabled": false,
4369
- "document": "查询的印章状态列表。 <ul> <li>空,只查询启用状态的印章;</li> <li>ALL,查询所有状态的印章;</li> <li>CHECKING,查询待审核的印章;</li> <li>SUCCESS,查询启用状态的印章;</li> <li>FAIL,查询印章审核拒绝的印章;</li> <li>DISABLE,查询已停用的印章;</li> <li>STOPPED,查询已终止的印章;</li> <li>VOID,查询已作废的印章;</li> <li>INVALID,查询已失效的印章;</li> </ul>",
4369
+ "document": "\n需查询的印章状态列表。\n\n<ul> <li>空,()仅查询启用状态的印章;</li> <li><strong>ALL</strong>,查询所有状态的印章;</li> <li><strong>CHECKING</strong>,查询待审核的印章;</li> <li><strong>SUCCESS</strong>,查询启用状态的印章;</li> <li><strong>FAIL</strong>,查询印章审核拒绝的印章;</li> <li><strong>DISABLE</strong>,查询已停用的印章;</li> <li><strong>STOPPED</strong>,查询已终止的印章;</li> <li><strong>VOID</strong>,查询已作废的印章;</li> <li><strong>INVALID</strong>,查询已失效的印章。</li> </ul>",
4370
4370
  "example": "无",
4371
4371
  "member": "string",
4372
4372
  "name": "SealStatuses",
@@ -4381,7 +4381,7 @@
4381
4381
  "members": [
4382
4382
  {
4383
4383
  "disabled": false,
4384
- "document": "在设置了SealId时返回0或1,没有设置时返回公司的总印章数量,可能比返回的印章数组数量多",
4384
+ "document": "在设定了SealId时,返回值为0或1;若未设定SealId,则返回公司的总印章数量",
4385
4385
  "example": "10",
4386
4386
  "member": "int64",
4387
4387
  "name": "TotalCount",
@@ -5490,7 +5490,7 @@
5490
5490
  "usage": "in"
5491
5491
  },
5492
5492
  "Component": {
5493
- "document": "此结构体 (Component) 用于描述控件属性。\n\n在通过文件发起合同时,对应的component有三种定位方式\n1. 绝对定位方式 (可以通过 [PDF坐标计算助手](https://qian.tencent.com/developers/tools/template-editor)计算控件的坐标)\n2. 表单域(FIELD)定位方式\n3. 关键字(KEYWORD)定位方式,使用关键字定位时,请确保PDF原始文件内是关键字以文字形式保存在PDF文件中,不支持对图片内文字进行关键字查找\n可以参考官网说明\nhttps://cloud.tencent.com/document/product/1323/78346#component-.E4.B8.89.E7.A7.8D.E5.AE.9A.E4.BD.8D.E6.96.B9.E5.BC.8F.E8.AF.B4.E6.98.8E",
5493
+ "document": "此结构体 (Component) 用于描述控件属性。\n\n在通过文件发起合同时,对应的component有三种定位方式\n1. 绝对定位方式 (可以通过 [PDF坐标计算助手](https://qian.tencent.com/developers/tools/template-editor)计算控件的坐标)\n2. 表单域(FIELD)定位方式\n3. 关键字(KEYWORD)定位方式,使用关键字定位时,请确保PDF原始文件内是关键字以文字形式保存在PDF文件中,不支持对图片内文字进行关键字查找",
5494
5494
  "members": [
5495
5495
  {
5496
5496
  "disabled": false,
@@ -6581,8 +6581,8 @@
6581
6581
  "members": [
6582
6582
  {
6583
6583
  "disabled": false,
6584
- "document": "二维码图片base64",
6585
- "example": "",
6584
+ "document": "二维码图片base64值,二维码有效期7天(604800秒)\n\n二维码图片的样式如下图:\n![image](https://qcloudimg.tencent-cloud.cn/raw/7ec2478761158a35a9c623882839a5df.png)",
6585
+ "example": "C61r2kWfiCz0jXdD1S60a4vI9Rt9O1nSr6a2S21Gzlm/V/8A4MY/+........(图片base64编码)",
6586
6586
  "member": "string",
6587
6587
  "name": "QrcodeBase64",
6588
6588
  "output_required": true,
@@ -798,8 +798,8 @@
798
798
  {
799
799
  "document": "获取创建法人章二维码",
800
800
  "input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateLegalSealQrCode\n<公共请求参数>\n\n{\n \"Agent\": {\n \"ProxyOrganizationOpenId\": \"org_dianziqian\",\n \"ProxyOperator\": {\n \"OpenId\": \"n9527\"\n },\n \"AppId\": \"yDwfwUUgygormhg1UuS2eARxjMT0mxAw\"\n }\n}",
801
- "output": "{\n \"Response\": {\n \"QrcodeBase64\": \"xxxxxxxxx\",\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
802
- "title": "获取创建法人章二维码"
801
+ "output": "{\n \"Response\": {\n \"QrcodeBase64\": \"5X8Af8AwfOf84uv+72f/fR6APgD/gyp/wCUpvx8/wCzAPin/wCtFfsq1/oOf8FNvCfirx7/AME2/wDgoN4F8C+GfEHjTxt40/Yg/av8J+DvB3hPRtR8R+KvFnirxH8BvH2j+HvDPhnw9o9teavr3iDXd(其他图片BASE64编码省略)\",\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
802
+ "title": "获取创建法人章二维码成功"
803
803
  }
804
804
  ],
805
805
  "CreatePartnerAutoSignAuthUrl": [
@@ -9237,6 +9237,16 @@
9237
9237
  "type": "int",
9238
9238
  "value_allowed_null": false
9239
9239
  },
9240
+ {
9241
+ "disabled": false,
9242
+ "document": "分类统计\n注意:此字段可能返回 null,表示取不到有效值。",
9243
+ "example": "无",
9244
+ "member": "TWeCallCategoryPkgInfo",
9245
+ "name": "TWeCallCategoryPkgList",
9246
+ "output_required": false,
9247
+ "type": "list",
9248
+ "value_allowed_null": true
9249
+ },
9240
9250
  {
9241
9251
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
9242
9252
  "member": "string",
@@ -12682,6 +12692,45 @@
12682
12692
  ],
12683
12693
  "usage": "out"
12684
12694
  },
12695
+ "TWeCallCategoryPkgInfo": {
12696
+ "document": "TWeCall分类统计数据",
12697
+ "members": [
12698
+ {
12699
+ "disabled": false,
12700
+ "document": "类型\n注意:此字段可能返回 null,表示取不到有效值。",
12701
+ "example": "1",
12702
+ "member": "int64",
12703
+ "name": "PkgType",
12704
+ "output_required": false,
12705
+ "required": false,
12706
+ "type": "int",
12707
+ "value_allowed_null": true
12708
+ },
12709
+ {
12710
+ "disabled": false,
12711
+ "document": "总数\n注意:此字段可能返回 null,表示取不到有效值。",
12712
+ "example": "10",
12713
+ "member": "int64",
12714
+ "name": "All",
12715
+ "output_required": false,
12716
+ "required": false,
12717
+ "type": "int",
12718
+ "value_allowed_null": true
12719
+ },
12720
+ {
12721
+ "disabled": false,
12722
+ "document": "已使用数\n注意:此字段可能返回 null,表示取不到有效值。",
12723
+ "example": "2",
12724
+ "member": "int64",
12725
+ "name": "Used",
12726
+ "output_required": false,
12727
+ "required": false,
12728
+ "type": "int",
12729
+ "value_allowed_null": true
12730
+ }
12731
+ ],
12732
+ "usage": "both"
12733
+ },
12685
12734
  "TWeCallInfo": {
12686
12735
  "document": "TWeCall信息",
12687
12736
  "members": [
@@ -2773,6 +2773,58 @@ def doAddRecordPlan(args, parsed_globals):
2773
2773
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2774
2774
 
2775
2775
 
2776
+ def doSetForbidPlayChannels(args, parsed_globals):
2777
+ g_param = parse_global_arg(parsed_globals)
2778
+
2779
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2780
+ cred = credential.CVMRoleCredential()
2781
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2782
+ cred = credential.STSAssumeRoleCredential(
2783
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2784
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2785
+ )
2786
+ 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):
2787
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2788
+ else:
2789
+ cred = credential.Credential(
2790
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2791
+ )
2792
+ http_profile = HttpProfile(
2793
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2794
+ reqMethod="POST",
2795
+ endpoint=g_param[OptionsDefine.Endpoint],
2796
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2797
+ )
2798
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2799
+ if g_param[OptionsDefine.Language]:
2800
+ profile.language = g_param[OptionsDefine.Language]
2801
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2802
+ client = mod.IssClient(cred, g_param[OptionsDefine.Region], profile)
2803
+ client._sdkVersion += ("_CLI_" + __version__)
2804
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2805
+ model = models.SetForbidPlayChannelsRequest()
2806
+ model.from_json_string(json.dumps(args))
2807
+ start_time = time.time()
2808
+ while True:
2809
+ rsp = client.SetForbidPlayChannels(model)
2810
+ result = rsp.to_json_string()
2811
+ try:
2812
+ json_obj = json.loads(result)
2813
+ except TypeError as e:
2814
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2815
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2816
+ break
2817
+ cur_time = time.time()
2818
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2819
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2820
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2821
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2822
+ else:
2823
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2824
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2825
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2826
+
2827
+
2776
2828
  def doUpdateRecordBackupPlan(args, parsed_globals):
2777
2829
  g_param = parse_global_arg(parsed_globals)
2778
2830
 
@@ -2825,7 +2877,7 @@ def doUpdateRecordBackupPlan(args, parsed_globals):
2825
2877
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2826
2878
 
2827
2879
 
2828
- def doListRecordTemplates(args, parsed_globals):
2880
+ def doListAITasks(args, parsed_globals):
2829
2881
  g_param = parse_global_arg(parsed_globals)
2830
2882
 
2831
2883
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2854,11 +2906,11 @@ def doListRecordTemplates(args, parsed_globals):
2854
2906
  client = mod.IssClient(cred, g_param[OptionsDefine.Region], profile)
2855
2907
  client._sdkVersion += ("_CLI_" + __version__)
2856
2908
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2857
- model = models.ListRecordTemplatesRequest()
2909
+ model = models.ListAITasksRequest()
2858
2910
  model.from_json_string(json.dumps(args))
2859
2911
  start_time = time.time()
2860
2912
  while True:
2861
- rsp = client.ListRecordTemplates(model)
2913
+ rsp = client.ListAITasks(model)
2862
2914
  result = rsp.to_json_string()
2863
2915
  try:
2864
2916
  json_obj = json.loads(result)
@@ -3241,7 +3293,7 @@ def doUpdateAITask(args, parsed_globals):
3241
3293
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3242
3294
 
3243
3295
 
3244
- def doListAITasks(args, parsed_globals):
3296
+ def doQueryForbidPlayChannelList(args, parsed_globals):
3245
3297
  g_param = parse_global_arg(parsed_globals)
3246
3298
 
3247
3299
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3270,11 +3322,63 @@ def doListAITasks(args, parsed_globals):
3270
3322
  client = mod.IssClient(cred, g_param[OptionsDefine.Region], profile)
3271
3323
  client._sdkVersion += ("_CLI_" + __version__)
3272
3324
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3273
- model = models.ListAITasksRequest()
3325
+ model = models.QueryForbidPlayChannelListRequest()
3274
3326
  model.from_json_string(json.dumps(args))
3275
3327
  start_time = time.time()
3276
3328
  while True:
3277
- rsp = client.ListAITasks(model)
3329
+ rsp = client.QueryForbidPlayChannelList(model)
3330
+ result = rsp.to_json_string()
3331
+ try:
3332
+ json_obj = json.loads(result)
3333
+ except TypeError as e:
3334
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3335
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3336
+ break
3337
+ cur_time = time.time()
3338
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3339
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3340
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3341
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3342
+ else:
3343
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3344
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3345
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3346
+
3347
+
3348
+ def doListRecordTemplates(args, parsed_globals):
3349
+ g_param = parse_global_arg(parsed_globals)
3350
+
3351
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3352
+ cred = credential.CVMRoleCredential()
3353
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3354
+ cred = credential.STSAssumeRoleCredential(
3355
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3356
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3357
+ )
3358
+ 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):
3359
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3360
+ else:
3361
+ cred = credential.Credential(
3362
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3363
+ )
3364
+ http_profile = HttpProfile(
3365
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3366
+ reqMethod="POST",
3367
+ endpoint=g_param[OptionsDefine.Endpoint],
3368
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3369
+ )
3370
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3371
+ if g_param[OptionsDefine.Language]:
3372
+ profile.language = g_param[OptionsDefine.Language]
3373
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3374
+ client = mod.IssClient(cred, g_param[OptionsDefine.Region], profile)
3375
+ client._sdkVersion += ("_CLI_" + __version__)
3376
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3377
+ model = models.ListRecordTemplatesRequest()
3378
+ model.from_json_string(json.dumps(args))
3379
+ start_time = time.time()
3380
+ while True:
3381
+ rsp = client.ListRecordTemplates(model)
3278
3382
  result = rsp.to_json_string()
3279
3383
  try:
3280
3384
  json_obj = json.loads(result)
@@ -4345,8 +4449,9 @@ ACTION_MAP = {
4345
4449
  "CheckDomain": doCheckDomain,
4346
4450
  "AddRecordTemplate": doAddRecordTemplate,
4347
4451
  "AddRecordPlan": doAddRecordPlan,
4452
+ "SetForbidPlayChannels": doSetForbidPlayChannels,
4348
4453
  "UpdateRecordBackupPlan": doUpdateRecordBackupPlan,
4349
- "ListRecordTemplates": doListRecordTemplates,
4454
+ "ListAITasks": doListAITasks,
4350
4455
  "DescribeOrganization": doDescribeOrganization,
4351
4456
  "ListOrganizationChannelNumbers": doListOrganizationChannelNumbers,
4352
4457
  "ListGateways": doListGateways,
@@ -4354,7 +4459,8 @@ ACTION_MAP = {
4354
4459
  "ControlDevicePTZ": doControlDevicePTZ,
4355
4460
  "UpdateAITaskStatus": doUpdateAITaskStatus,
4356
4461
  "UpdateAITask": doUpdateAITask,
4357
- "ListAITasks": doListAITasks,
4462
+ "QueryForbidPlayChannelList": doQueryForbidPlayChannelList,
4463
+ "ListRecordTemplates": doListRecordTemplates,
4358
4464
  "ListRecordPlanDevices": doListRecordPlanDevices,
4359
4465
  "UpgradeGateway": doUpgradeGateway,
4360
4466
  "UpdateRecordBackupTemplate": doUpdateRecordBackupTemplate,