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 +1 -1
- tccli/services/emr/v20190103/api.json +9 -0
- tccli/services/ess/v20201111/api.json +11 -11
- tccli/services/ess/v20201111/examples.json +2 -2
- tccli/services/essbasic/v20210526/api.json +13 -13
- tccli/services/essbasic/v20210526/examples.json +2 -2
- tccli/services/iotexplorer/v20190423/api.json +49 -0
- tccli/services/iss/iss_client.py +114 -8
- tccli/services/iss/v20230517/api.json +221 -0
- tccli/services/iss/v20230517/examples.json +16 -0
- tccli/services/ses/ses_client.py +228 -16
- tccli/services/ses/v20201002/api.json +266 -0
- tccli/services/ses/v20201002/examples.json +32 -0
- tccli/services/ssl/v20191205/api.json +13 -3
- tccli/services/ssl/v20191205/examples.json +1 -1
- tccli/services/tcr/v20190924/api.json +5 -1
- tccli/services/tcr/v20190924/examples.json +1 -1
- tccli/services/tdmq/v20200217/api.json +2 -2
- tccli/services/vpc/v20170312/api.json +5 -5
- tccli/services/vpc/v20170312/examples.json +1 -1
- {tccli-3.0.1139.1.dist-info → tccli-3.0.1140.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1139.1.dist-info → tccli-3.0.1140.1.dist-info}/RECORD +25 -25
- {tccli-3.0.1139.1.dist-info → tccli-3.0.1140.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1139.1.dist-info → tccli-3.0.1140.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1139.1.dist-info → tccli-3.0.1140.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
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": "
|
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": "
|
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
|
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": "
|
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": "
|
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": "
|
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": "
|
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": "
|
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\": \"
|
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": "
|
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": "
|
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": "
|
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": "
|
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
|
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**:
|
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": "
|
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": "
|
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
|
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\": \"
|
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": [
|
tccli/services/iss/iss_client.py
CHANGED
@@ -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
|
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.
|
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.
|
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
|
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.
|
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.
|
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
|
-
"
|
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
|
-
"
|
4462
|
+
"QueryForbidPlayChannelList": doQueryForbidPlayChannelList,
|
4463
|
+
"ListRecordTemplates": doListRecordTemplates,
|
4358
4464
|
"ListRecordPlanDevices": doListRecordPlanDevices,
|
4359
4465
|
"UpgradeGateway": doUpgradeGateway,
|
4360
4466
|
"UpdateRecordBackupTemplate": doUpdateRecordBackupTemplate,
|