tccli 3.0.1368.1__py2.py3-none-any.whl → 3.0.1370.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/autoscaling/v20180419/api.json +4 -3
- tccli/services/batch/v20170312/api.json +34 -1
- tccli/services/batch/v20170312/examples.json +1 -1
- tccli/services/cdb/v20170320/api.json +6 -6
- tccli/services/cdb/v20170320/examples.json +1 -1
- tccli/services/cdwch/v20200915/api.json +16 -7
- tccli/services/cfg/v20210820/api.json +9 -0
- tccli/services/cfs/cfs_client.py +61 -8
- tccli/services/cfs/v20190719/api.json +71 -0
- tccli/services/cfs/v20190719/examples.json +8 -0
- tccli/services/clb/v20180317/api.json +11 -11
- tccli/services/csip/csip_client.py +53 -0
- tccli/services/csip/v20221121/api.json +333 -3
- tccli/services/csip/v20221121/examples.json +8 -0
- tccli/services/dcdb/v20180411/api.json +31 -2
- tccli/services/dcdb/v20180411/examples.json +1 -1
- tccli/services/dlc/v20210125/api.json +14 -4
- tccli/services/dsgc/v20190723/api.json +8 -8
- tccli/services/dsgc/v20190723/examples.json +1 -1
- tccli/services/emr/v20190103/api.json +9 -0
- tccli/services/emr/v20190103/examples.json +1 -1
- tccli/services/es/v20180416/examples.json +3 -3
- tccli/services/ess/v20201111/api.json +4 -4
- tccli/services/ess/v20201111/examples.json +1 -1
- tccli/services/faceid/v20180301/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +4 -4
- tccli/services/iai/v20180301/api.json +1 -1
- tccli/services/iai/v20200303/api.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/mariadb/v20170312/api.json +30 -1
- tccli/services/mariadb/v20170312/examples.json +1 -1
- tccli/services/mongodb/v20180408/api.json +1 -1
- tccli/services/mongodb/v20190725/api.json +1 -1
- tccli/services/mps/v20190612/api.json +15 -5
- tccli/services/mps/v20190612/examples.json +1 -1
- tccli/services/omics/v20221128/api.json +105 -6
- tccli/services/organization/organization_client.py +53 -0
- tccli/services/organization/v20210331/api.json +175 -0
- tccli/services/organization/v20210331/examples.json +8 -0
- tccli/services/privatedns/v20201028/api.json +7 -7
- tccli/services/sqlserver/v20180328/api.json +20 -0
- tccli/services/tdmq/v20200217/api.json +12 -3
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/teo/v20220901/api.json +85 -2
- tccli/services/tione/v20211111/api.json +1 -1
- tccli/services/trocket/v20230308/api.json +18 -9
- tccli/services/trocket/v20230308/examples.json +1 -1
- tccli/services/tsf/v20180326/api.json +6 -6
- tccli/services/tts/v20190823/api.json +1 -1
- tccli/services/vdb/v20230616/api.json +12 -3
- tccli/services/vrs/v20200824/api.json +1 -1
- {tccli-3.0.1368.1.dist-info → tccli-3.0.1370.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1368.1.dist-info → tccli-3.0.1370.1.dist-info}/RECORD +58 -58
- {tccli-3.0.1368.1.dist-info → tccli-3.0.1370.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1368.1.dist-info → tccli-3.0.1370.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1368.1.dist-info → tccli-3.0.1370.1.dist-info}/license_files/LICENSE +0 -0
@@ -6068,6 +6068,15 @@
|
|
6068
6068
|
"name": "Type",
|
6069
6069
|
"required": false,
|
6070
6070
|
"type": "string"
|
6071
|
+
},
|
6072
|
+
{
|
6073
|
+
"disabled": false,
|
6074
|
+
"document": "是否包含具体参数建议等信息",
|
6075
|
+
"example": "false",
|
6076
|
+
"member": "bool",
|
6077
|
+
"name": "MustHasContext",
|
6078
|
+
"required": false,
|
6079
|
+
"type": "bool"
|
6071
6080
|
}
|
6072
6081
|
],
|
6073
6082
|
"type": "object"
|
@@ -244,7 +244,7 @@
|
|
244
244
|
{
|
245
245
|
"document": "",
|
246
246
|
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInsightList\n<公共请求参数>\n\n{\n \"InstanceId\": \"emr-d82w3t9p\",\n \"PageSize\": 10,\n \"StartTime\": 1701792000,\n \"EndTime\": 1701878399,\n \"Page\": 1\n}",
|
247
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 9,\n \"RequestId\": \"12345678999\",\n \"ResultList\": [\n {\n \"ScheduleTaskName\": \"\",\n \"RuleID\": \"HIVE-ScanManyPartition\",\n \"ScheduleTaskExecID\": \"\",\n \"ScheduleFlowName\": \"\",\n \"Detail\": \"easechen_dw.test_orc big scan\",\n \"Value\": 0,\n \"RuleExplain\": \"扫描分区数超过表总分区80%\",\n \"Suggestion\": \"添加分区扫描条件\",\n \"RuleName\": \"HIVE-大表扫描\",\n \"JobConf\": \"\",\n \"Type\": \"HIVE\",\n \"ID\": \"hadoop_20231206140857_1bbd81e2-b752-424b-aa61-a811a40c3099\"\n }\n ]\n }\n}",
|
247
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 9,\n \"RequestId\": \"12345678999\",\n \"ResultList\": [\n {\n \"ScheduleTaskName\": \"\",\n \"RuleID\": \"HIVE-ScanManyPartition\",\n \"ScheduleTaskExecID\": \"\",\n \"ScheduleFlowName\": \"\",\n \"Detail\": \"easechen_dw.test_orc big scan\",\n \"Value\": 0,\n \"RuleExplain\": \"扫描分区数超过表总分区80%\",\n \"Suggestion\": \"添加分区扫描条件\",\n \"RuleName\": \"HIVE-大表扫描\",\n \"JobConf\": \"\",\n \"Type\": \"HIVE\",\n \"ID\": \"hadoop_20231206140857_1bbd81e2-b752-424b-aa61-a811a40c3099\",\n \"Context\": \"{\\\"allocatedMemMBSeconds\\\":118066,\\\"confMemSizeMB\\\":4096,\\\"minimumWastePercent\\\":48,\\\"suggestMemSizeMB\\\":3072,\\\"totalWastePercent\\\":48}\"\n }\n ]\n }\n}",
|
248
248
|
"title": "获取洞察信息"
|
249
249
|
}
|
250
250
|
],
|
@@ -12,8 +12,8 @@
|
|
12
12
|
{
|
13
13
|
"document": "",
|
14
14
|
"input": "POST / HTTP/1.1\nHost: es.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterSnapshot\n<公共请求参数>\n\n{\n \"InstanceId\": \"es-xxx\",\n \"SnapshotName\": \"es-xxx-test_20240912\",\n \"Indices\": \"kibana_sample_data_flights\"\n}",
|
15
|
-
"output": "{\n \"Response\": {\n \"InstanceId\": \"es-xxx\",\n \"RequestId\": \"
|
16
|
-
"title": "
|
15
|
+
"output": "{\n \"Response\": {\n \"InstanceId\": \"es-xxx\",\n \"RequestId\": \"16eaxxxx-xxxx-xxxx-xxxx-xxxxxe45ae3c\"\n }\n}",
|
16
|
+
"title": "集群快照手动创建"
|
17
17
|
}
|
18
18
|
],
|
19
19
|
"CreateCosMigrateToServerlessInstance": [
|
@@ -356,7 +356,7 @@
|
|
356
356
|
{
|
357
357
|
"document": "",
|
358
358
|
"input": "POST / HTTP/1.1\nHost: es.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RestoreClusterSnapshot\n<公共请求参数>\n\n{\n \"InstanceId\": \"es-qpzizjym\",\n \"Password\": \"pass\",\n \"RepositoryName\": \"ES_AUTO_BACKUP\",\n \"SnapshotName\": \"test1\",\n \"Indices\": \"testnew\",\n \"Partial\": \"true\",\n \"TargetInstanceId\": \"es-qpzizjym\"\n}",
|
359
|
-
"output": "{\n \"Response\": {\n \"InstanceId\": \"es-qpzizjym\",\n \"RequestId\": \"
|
359
|
+
"output": "{\n \"Response\": {\n \"InstanceId\": \"es-qpzizjym\",\n \"RequestId\": \"test1\"\n }\n}",
|
360
360
|
"title": "RestoreClusterSnapshot 恢复快照数据到集群"
|
361
361
|
}
|
362
362
|
],
|
@@ -337,7 +337,7 @@
|
|
337
337
|
"status": "online"
|
338
338
|
},
|
339
339
|
"CreatePartnerAutoSignAuthUrl": {
|
340
|
-
"document": "创建一个用于他方自动签授权的链接(可选择他方授权或我方授权)。通过这个链接,合作方企业可以直接进入小程序,进行自动签授权操作。\n\n如果授权企业尚未开通企业自动签功能,该链接还将引导他们首先开通本企业的自动签服务\n\n注: \n1. <font color='red'>所在企业的超管、法人才有权限调用此接口</font>(Operator.UserId 需要传递超管或者法人的UserId)\n2. 已经在授权中或者授权成功的企业,无法重复授权\n3. 授权企业和被授权企业必须都是已认证企业\n4. <font color='red'>需要授权企业或被授权企业的超管或者法人打开链接</font>走开通逻辑。\n\n\n**该接口效果同控制台: 企业设置-> 扩展服务 -> 企业自动签署 -> 合作企业方授权**\n。通过这个链接,合作方企业可以直接进入小程序,进行自动签授权操作。\n\n如果授权企业尚未开通企业自动签功能,该链接还将引导他们首先开通本企业的自动签服务\n\n注: \n1. <font color='red'>所在企业的超管、法人才有权限调用此接口</font>(Operator.UserId 需要传递超管或者法人的UserId)\n2. 已经在授权中或者授权成功的企业,无法重复授权\n3. 授权企业和被授权企业必须都是已认证企业\n4. <font color='red'>需要授权企业或被授权企业的超管或者法人打开链接</font>走开通逻辑。\n\n\n**该接口效果同控制台: 企业设置-> 扩展服务 -> 企业自动签署 -> 合作企业方授权**\n",
|
341
341
|
"input": "CreatePartnerAutoSignAuthUrlRequest",
|
342
342
|
"name": "创建他方自动签授权链接",
|
343
343
|
"output": "CreatePartnerAutoSignAuthUrlResponse",
|
@@ -617,7 +617,7 @@
|
|
617
617
|
"status": "online"
|
618
618
|
},
|
619
619
|
"DescribeIntegrationRoles": {
|
620
|
-
"document": "此接口(DescribeIntegrationRoles
|
620
|
+
"document": "此接口(DescribeIntegrationRoles)用于分页查询企业角色列表,列表按照角色创建时间升序排列。\n\n角色分为系统默认角色与企业自定义角色,其中系统默认角色不可以禁用、删除、编辑权限项,只可往默认角色中添加成员。企业自定义角色为企业根据自身需要新增的角色,可根据企业具体情况设置各个角色的权限,例如新增财务岗、销售岗等角色。\n\n企业版的系统默认角色包含如下角色:\n\n| 角色名称 | 角色描述 |\n|------------------------------|--------------------------------------------------------------------------|\n| 超级管理员(电子签业务最高权限,e.g.法务/业务负责人) | 所有功能和数据管理权限,只能设置一位超管。 |\n| IT信息管理员(IT系统负责人,e.g. CTO) | 组织员工、计费模块、应用模块等权限能力。 |\n| 企业合同管理员(企业法务负责人) | 企业全部合同管理、可申请出证等权限能力。 |\n| 企业模板管理员 | 企业全部模板管理权限能力。 |\n| 企业印章管理员(企业行政负责人) | 管理企业的所有电子印章,如添加印章、启用停用印章、印章授权等。 |\n| 用印审批岗(各部门的印章管理岗) | 可对被授权的印章进行日常使用管理,如合同盖章用印的审核及登记。 |\n| 部门管理员(部门的合同+印章+模板管理) | 部门级(含子部门)所有合同管理权限能力。 |\n| 业务员(销售员、采购员) | 发起合同、签署合同(含填写、拒签)、撤销合同、持有印章等权限能力。 |",
|
621
621
|
"input": "DescribeIntegrationRolesRequest",
|
622
622
|
"name": "查询企业角色列表",
|
623
623
|
"output": "DescribeIntegrationRolesResponse",
|
@@ -6955,7 +6955,7 @@
|
|
6955
6955
|
{
|
6956
6956
|
"disabled": false,
|
6957
6957
|
"document": "在设置印章授权时,可以指定特定的印章类型,以确保在授权过程中只使用相应类型的印章。支持的印章类型包括:\n\n<ul>\n<li><strong>OFFICIAL</strong>:企业公章,用于代表企业对外的正式文件和重要事务的认证。</li>\n<li><strong>CONTRACT</strong>:合同专用章,专门用于签署各类合同。</li>\n<li><strong>FINANCE</strong>:财务专用章,用于企业的财务相关文件,如发票、收据等财务凭证的认证。</li>\n<li><strong>PERSONNEL</strong>:人事专用章,用于人事管理相关文件,如劳动合同、人事任命等。</li>\n</ul>",
|
6958
|
-
"example": "OFFICIAL",
|
6958
|
+
"example": "[\"OFFICIAL\"]",
|
6959
6959
|
"member": "string",
|
6960
6960
|
"name": "SealTypes",
|
6961
6961
|
"required": false,
|
@@ -6989,7 +6989,7 @@
|
|
6989
6989
|
{
|
6990
6990
|
"disabled": false,
|
6991
6991
|
"document": "从客户小程序或者客户APP跳转至腾讯电子签小程序进行批量签署的跳转路径",
|
6992
|
-
"example": "pages/guide?
|
6992
|
+
"example": "pages/guide?where=mini&shortKey=yDwivUAW1",
|
6993
6993
|
"member": "string",
|
6994
6994
|
"name": "MiniAppPath",
|
6995
6995
|
"output_required": false,
|
@@ -1696,7 +1696,7 @@
|
|
1696
1696
|
{
|
1697
1697
|
"document": "查询已实名员工列表\n1. Filter参数Key设置为\"Status\";\n2. Filter参数Values设置为\"IsVerified\",表示查询已实名员工;\n3. 设置Limit和Offset参数,从首页开始,每页查询20条数据返回。",
|
1698
1698
|
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeIntegrationEmployees\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"11234********************678901\"\n },\n \"Filters\": [\n {\n \"Key\": \"Status\",\n \"Values\": [\n \"IsVerified\"\n ]\n }\n ],\n \"Limit\": 20,\n \"Offset\": 0\n}",
|
1699
|
-
"output": "{\n \"Response\": {\n \"Employees\": [\n {\n \"CreatedOn\": 1658114069,\n \"Department\": {\n \"DepartmentId\": \"dp**********************155f2\",\n \"DepartmentName\": \"测试企业\"\n },\n \"DisplayName\": \"张三\",\n \"Email\": \"\",\n \"Mobile\": \"
|
1699
|
+
"output": "{\n \"Response\": {\n \"Employees\": [\n {\n \"CreatedOn\": 1658114069,\n \"Department\": {\n \"DepartmentId\": \"dp**********************155f2\",\n \"DepartmentName\": \"测试企业\"\n },\n \"DisplayName\": \"张三\",\n \"Email\": \"\",\n \"Mobile\": \"133****1233\",\n \"OpenId\": \"\",\n \"QuiteJob\": 0,\n \"ReceiveOpenId\": \"\",\n \"ReceiveUserId\": \"\",\n \"Roles\": [\n {\n \"RoleId\": \"ea4ab3******************a6902\",\n \"RoleName\": \"法人\"\n },\n {\n \"RoleId\": \"9b7d******************cf8e9\",\n \"RoleName\": \"业务员\"\n },\n {\n \"RoleId\": \"4dff1******************10b\",\n \"RoleName\": \"企业员工\"\n }\n ],\n \"UserId\": \"yDRt******************BKpnZs\",\n \"Verified\": true,\n \"VerifiedOn\": 1658114065,\n \"WeworkOpenId\": \"\"\n },\n {\n \"CreatedOn\": 1658114000,\n \"Department\": {\n \"DepartmentId\": \"dp**********************155f2\",\n \"DepartmentName\": \"测试企业\"\n },\n \"DisplayName\": \"李四\",\n \"Email\": \"\",\n \"Mobile\": \"135****1234\",\n \"OpenId\": \"\",\n \"QuiteJob\": 0,\n \"ReceiveOpenId\": \"\",\n \"ReceiveUserId\": \"\",\n \"Roles\": [\n {\n \"RoleId\": \"4fcbf3******************ea6c63\",\n \"RoleName\": \"超级管理员\"\n }\n ],\n \"UserId\": \"yDwJ******************BGQyov\",\n \"Verified\": true,\n \"VerifiedOn\": 1658114066,\n \"WeworkOpenId\": \"\"\n }\n ],\n \"Limit\": 20,\n \"Offset\": 0,\n \"RequestId\": \"s1663******************195\",\n \"TotalCount\": 2\n }\n}",
|
1700
1700
|
"title": "查询员工列表(查询已实名员工列表)"
|
1701
1701
|
}
|
1702
1702
|
],
|
@@ -262,7 +262,7 @@
|
|
262
262
|
},
|
263
263
|
"metadata": {
|
264
264
|
"apiVersion": "2018-03-01",
|
265
|
-
"api_brief": "
|
265
|
+
"api_brief": "腾讯云慧眼人脸核身是一组对用户身份信息真实性进行验证审核的服务套件,提供人脸核身、身份信息核验、银行卡要素核验和运营商类要素核验等各类实名信息认证能力。\n本章节API 主要介绍 api 的调用方式、如何通过API调用人脸核身SaaS和pass服务相关接口,以及如何调用实名信息认证相关产品。",
|
266
266
|
"serviceNameCN": "人脸核身",
|
267
267
|
"serviceShortName": "faceid"
|
268
268
|
},
|
@@ -150,7 +150,7 @@
|
|
150
150
|
},
|
151
151
|
"metadata": {
|
152
152
|
"apiVersion": "2023-09-01",
|
153
|
-
"api_brief": "腾讯混元大模型(Tencent Hunyuan)由腾讯公司全链路自研,在高质量内容创作、数理逻辑、代码生成和多轮对话上性能表现卓越,处于业界领先水平。混元 API 支持 AI 搜索联网插件,通过整合腾讯优质的内容生态,提供强大的时新、深度内容获取和 AI 问答能力。\n腾讯混元大模型支持的所有接口信息,请参见 [API 概览](https://cloud.tencent.com/document/product/1729/101848)。\n\n
|
153
|
+
"api_brief": "## 概述\n腾讯混元大模型(Tencent Hunyuan)由腾讯公司全链路自研,在高质量内容创作、数理逻辑、代码生成和多轮对话上性能表现卓越,处于业界领先水平。混元 API 支持 AI 搜索联网插件,通过整合腾讯优质的内容生态,提供强大的时新、深度内容获取和 AI 问答能力。\n腾讯混元大模型支持的所有接口信息,请参见 [API 概览](https://cloud.tencent.com/document/product/1729/101848)。\n\n## 术语表\n\n| 术语 | 说明 | \n|---------|---------|\n| 并发任务数 | 并发任务数(并发)指能同时处理的任务数量,如果并发任务数为1,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。 | \n| API 密钥 | API 密钥是用户访问腾讯云 API 进行身份验证时需要用到的安全凭证,由 SecretId 和 SecretKey 一起组成。 | \n\n## 使用限制\n对于 API 接口的参数限制,请参考各接口文档中的参数说明。\n\n## API 快速入门\n您可以使用 API Explorer 工具在线调用 API。\n本文以创建应用为例,通过 API Explorer 工具调用 API 接口的步骤如下:\n1.进入 [API Explorer](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions) 页面。更多 API Explorer 工具使用信息,请参见[文档](https://cloud.tencent.com/document/product/1278/46697) 。\n2.调用 [ChatCompletions](https://cloud.tencent.com/document/product/1729/105701) 接口,调用腾讯混元大模型。",
|
154
154
|
"serviceNameCN": "腾讯混元大模型",
|
155
155
|
"serviceShortName": "hunyuan"
|
156
156
|
},
|
@@ -3445,8 +3445,8 @@
|
|
3445
3445
|
},
|
3446
3446
|
{
|
3447
3447
|
"disabled": false,
|
3448
|
-
"document": "用于引导内容的参考图。\n图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 8MB,格式支持 jpg、jpeg、png
|
3449
|
-
"example": "
|
3448
|
+
"document": "用于引导内容的参考图。\n图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 8MB,格式支持 jpg、jpeg、png。",
|
3449
|
+
"example": "无",
|
3450
3450
|
"member": "Image",
|
3451
3451
|
"name": "ContentImage",
|
3452
3452
|
"required": false,
|
@@ -3482,7 +3482,7 @@
|
|
3482
3482
|
{
|
3483
3483
|
"disabled": false,
|
3484
3484
|
"document": "标识内容设置。\n默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。",
|
3485
|
-
"example": "
|
3485
|
+
"example": "无",
|
3486
3486
|
"member": "LogoParam",
|
3487
3487
|
"name": "LogoParam",
|
3488
3488
|
"required": false,
|
@@ -234,7 +234,7 @@
|
|
234
234
|
},
|
235
235
|
"metadata": {
|
236
236
|
"apiVersion": "2018-03-01",
|
237
|
-
"api_brief": "
|
237
|
+
"api_brief": "腾讯云神图·人脸识别(Face Recognition)基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、比对、搜索、验证、五官定位、活体检测等多种功能,为开发者和企业提供高性能高可用的人脸识别服务。\n本章节主要介绍介绍API调用方式、以及如何通过API 接入人脸检测与分析相、五官定位、人员库管理、人脸搜索、人脸验证、人脸静态活体检测(高精度版)等产品。",
|
238
238
|
"serviceNameCN": "人脸识别",
|
239
239
|
"serviceShortName": "iai"
|
240
240
|
},
|
@@ -255,7 +255,7 @@
|
|
255
255
|
},
|
256
256
|
"metadata": {
|
257
257
|
"apiVersion": "2020-03-03",
|
258
|
-
"api_brief": "
|
258
|
+
"api_brief": "腾讯云神图·人脸识别(Face Recognition)基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、比对、搜索、验证、五官定位、活体检测等多种功能,为开发者和企业提供高性能高可用的人脸识别服务。\n本章节主要介绍介绍API调用方式、以及如何通过API 接入人脸检测与分析相、五官定位、人员库管理、人脸搜索、人脸验证、人脸静态活体检测(高精度版)等产品。",
|
259
259
|
"serviceNameCN": "人脸识别",
|
260
260
|
"serviceShortName": "iai"
|
261
261
|
},
|
@@ -759,7 +759,7 @@
|
|
759
759
|
},
|
760
760
|
"metadata": {
|
761
761
|
"apiVersion": "2020-03-24",
|
762
|
-
"api_brief": "介绍如何使用API对
|
762
|
+
"api_brief": "介绍如何使用API对 Lighthouse 资源和服务进行相关操作,如启动实例、关闭实例、重启实例、查询实例列表等。",
|
763
763
|
"serviceNameCN": "轻量应用服务器",
|
764
764
|
"serviceShortName": "lighthouse"
|
765
765
|
},
|
@@ -2627,6 +2627,16 @@
|
|
2627
2627
|
"output_required": true,
|
2628
2628
|
"type": "string",
|
2629
2629
|
"value_allowed_null": false
|
2630
|
+
},
|
2631
|
+
{
|
2632
|
+
"disabled": false,
|
2633
|
+
"document": "实例删除保护标签,1: 已开启删除保护,0: 未开启删除保护",
|
2634
|
+
"example": "1",
|
2635
|
+
"member": "int64",
|
2636
|
+
"name": "ProtectedProperty",
|
2637
|
+
"output_required": true,
|
2638
|
+
"type": "int",
|
2639
|
+
"value_allowed_null": false
|
2630
2640
|
}
|
2631
2641
|
],
|
2632
2642
|
"usage": "out"
|
@@ -4412,6 +4422,16 @@
|
|
4412
4422
|
"type": "string",
|
4413
4423
|
"value_allowed_null": false
|
4414
4424
|
},
|
4425
|
+
{
|
4426
|
+
"disabled": false,
|
4427
|
+
"document": "删除保护标记,1: 已开启删除保护,0: 未开启删除保护",
|
4428
|
+
"example": "1",
|
4429
|
+
"member": "int64",
|
4430
|
+
"name": "ProtectedProperty",
|
4431
|
+
"output_required": true,
|
4432
|
+
"type": "int",
|
4433
|
+
"value_allowed_null": false
|
4434
|
+
},
|
4415
4435
|
{
|
4416
4436
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
4417
4437
|
"member": "string",
|
@@ -6632,6 +6652,15 @@
|
|
6632
6652
|
"name": "SessionId",
|
6633
6653
|
"required": true,
|
6634
6654
|
"type": "list"
|
6655
|
+
},
|
6656
|
+
{
|
6657
|
+
"disabled": false,
|
6658
|
+
"document": "节点ID,可指定主节点或者备节点进行kill。可选参数,不传默认为主节点。",
|
6659
|
+
"example": "681390887981",
|
6660
|
+
"member": "string",
|
6661
|
+
"name": "NodeId",
|
6662
|
+
"required": false,
|
6663
|
+
"type": "string"
|
6635
6664
|
}
|
6636
6665
|
],
|
6637
6666
|
"type": "object"
|
@@ -7108,7 +7137,7 @@
|
|
7108
7137
|
},
|
7109
7138
|
{
|
7110
7139
|
"disabled": false,
|
7111
|
-
"document": "要修改的安全组 ID 列表,一个或者多个安全组 ID
|
7140
|
+
"document": "要修改的安全组 ID 列表,一个或者多个安全组 ID 组成的数组。<br>注意:改入参会全量替换存量已有安全组集合,并非增量更新。修改需传入全量的预期集合。",
|
7112
7141
|
"example": "[\"sg-ajr1jzgj\\n\"]",
|
7113
7142
|
"member": "string",
|
7114
7143
|
"name": "SecurityGroupIds",
|
@@ -162,7 +162,7 @@
|
|
162
162
|
{
|
163
163
|
"document": "改接口用于获取实例的详细信息",
|
164
164
|
"input": "POST / HTTP/1.1\nHost: mariadb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBInstanceDetail\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsql-3ensoqb3\"\n}",
|
165
|
-
"output": "{\n \"Response\": {\n \"AutoRenewFlag\": 0,\n \"Cpu\": 1,\n \"CpuType\": \"Intel/AMD\",\n \"CreateTime\": \"2025-03-22 17:01:06\",\n \"DbEngine\": \"MySQL\",\n \"DbVersion\": \"8.0.30\",\n \"DbVersionId\": \"8.0\",\n \"DcnDstNum\": 0,\n \"DcnFlag\": 0,\n \"DcnStatus\": 0,\n \"EncryptStatus\": 0,\n \"ExclusterId\": \"dbdc-00wb5kz5\",\n \"ExclusterType\": 0,\n \"InstanceId\": \"tdsql-3ensoqb3\",\n \"InstanceName\": \"QT4sth9v8.0\",\n \"InstanceType\": 1,\n \"Ipv6Flag\": 0,\n \"IsAuditSupported\": true,\n \"IsDcnStrongSyncSupported\": 0,\n \"IsDcnSwitchSupported\": 1,\n \"IsEncryptSupported\": 1,\n \"IsMaxUserConnectionsSupported\": true,\n \"IsPhysicalReplicationSupported\": false,\n \"IsTmp\": 0,\n \"LogStorage\": 8,\n \"Machine\": \"\",\n \"MasterZone\": \"ap-guangzhou-2\",\n \"Memory\": 2,\n \"NodeCount\": 2,\n \"NodesInfo\": [\n {\n \"NodeId\": \"064eeaff8314\",\n \"Role\": \"master\",\n \"Zone\": \"ap-guangzhou-2\"\n },\n {\n \"NodeId\": \"2981e04659a2\",\n \"Role\": \"slave\",\n \"Zone\": \"ap-guangzhou-2\"\n }\n ],\n \"PayMode\": \"prepaid\",\n \"PeriodEndTime\": \"2025-03-28 15:33:44\",\n \"Pid\": 10890,\n \"ProjectId\": 0,\n \"ProxyVersion\": \"proxy-22.3.5\",\n \"Qps\": 2100,\n \"Region\": \"ap-guangzhou\",\n \"ReplicaConfig\": null,\n \"ReplicaStatus\": null,\n \"RequestId\": \"e86f7f08-d005-4f04-b917-7c9709299ff7\",\n \"ReservedNetResources\": [],\n \"ResourceTags\": [],\n \"RsAccessStrategy\": 0,\n \"SlaveZones\": [\n \"ap-guangzhou-2\"\n ],\n \"Status\": 2,\n \"StatusDesc\": \"运行中\",\n \"Storage\": 10,\n \"StorageUsage\": \"0.010\",\n \"SubnetId\": \"subnet-6rq8ehaq\",\n \"TdsqlVersion\": \"基于MySQL 8.0.30设计(兼容Mysql 8.0)\",\n \"Vip\": \"10.0.0.56\",\n \"Vip6\": \"\",\n \"VpcId\": \"vpc-ilhphh7v\",\n \"Vport\": 3306,\n \"WanDomain\": \"\",\n \"WanPort\": 0,\n \"WanPortIpv6\": 0,\n \"WanStatus\": 0,\n \"WanStatusIpv6\": 0,\n \"WanVip\": \"\",\n \"WanVipv6\": \"\",\n \"Zone\": \"ap-guangzhou-2\"\n }\n}",
|
165
|
+
"output": "{\n \"Response\": {\n \"AutoRenewFlag\": 0,\n \"Cpu\": 1,\n \"CpuType\": \"Intel/AMD\",\n \"CreateTime\": \"2025-03-22 17:01:06\",\n \"DbEngine\": \"MySQL\",\n \"DbVersion\": \"8.0.30\",\n \"DbVersionId\": \"8.0\",\n \"DcnDstNum\": 0,\n \"DcnFlag\": 0,\n \"DcnStatus\": 0,\n \"EncryptStatus\": 0,\n \"ExclusterId\": \"dbdc-00wb5kz5\",\n \"ExclusterType\": 0,\n \"InstanceId\": \"tdsql-3ensoqb3\",\n \"InstanceName\": \"QT4sth9v8.0\",\n \"InstanceType\": 1,\n \"Ipv6Flag\": 0,\n \"IsAuditSupported\": true,\n \"IsDcnStrongSyncSupported\": 0,\n \"IsDcnSwitchSupported\": 1,\n \"IsEncryptSupported\": 1,\n \"IsMaxUserConnectionsSupported\": true,\n \"IsPhysicalReplicationSupported\": false,\n \"IsTmp\": 0,\n \"LogStorage\": 8,\n \"Machine\": \"\",\n \"MasterZone\": \"ap-guangzhou-2\",\n \"Memory\": 2,\n \"NodeCount\": 2,\n \"NodesInfo\": [\n {\n \"NodeId\": \"064eeaff8314\",\n \"Role\": \"master\",\n \"Zone\": \"ap-guangzhou-2\"\n },\n {\n \"NodeId\": \"2981e04659a2\",\n \"Role\": \"slave\",\n \"Zone\": \"ap-guangzhou-2\"\n }\n ],\n \"PayMode\": \"prepaid\",\n \"PeriodEndTime\": \"2025-03-28 15:33:44\",\n \"Pid\": 10890,\n \"ProjectId\": 0,\n \"ProxyVersion\": \"proxy-22.3.5\",\n \"Qps\": 2100,\n \"Region\": \"ap-guangzhou\",\n \"ReplicaConfig\": null,\n \"ReplicaStatus\": null,\n \"RequestId\": \"e86f7f08-d005-4f04-b917-7c9709299ff7\",\n \"ReservedNetResources\": [],\n \"ResourceTags\": [],\n \"RsAccessStrategy\": 0,\n \"SlaveZones\": [\n \"ap-guangzhou-2\"\n ],\n \"Status\": 2,\n \"StatusDesc\": \"运行中\",\n \"Storage\": 10,\n \"StorageUsage\": \"0.010\",\n \"SubnetId\": \"subnet-6rq8ehaq\",\n \"TdsqlVersion\": \"基于MySQL 8.0.30设计(兼容Mysql 8.0)\",\n \"Vip\": \"10.0.0.56\",\n \"Vip6\": \"\",\n \"VpcId\": \"vpc-ilhphh7v\",\n \"Vport\": 3306,\n \"WanDomain\": \"\",\n \"WanPort\": 0,\n \"WanPortIpv6\": 0,\n \"WanStatus\": 0,\n \"WanStatusIpv6\": 0,\n \"WanVip\": \"\",\n \"WanVipv6\": \"\",\n \"Zone\": \"ap-guangzhou-2\",\n \"ProtectedProperty\": 1\n }\n}",
|
166
166
|
"title": "获取实例详情"
|
167
167
|
}
|
168
168
|
],
|
@@ -94,7 +94,7 @@
|
|
94
94
|
},
|
95
95
|
"metadata": {
|
96
96
|
"apiVersion": "2018-04-08",
|
97
|
-
"api_brief": "介绍如何使用API对云数据库
|
97
|
+
"api_brief": "介绍如何使用 API 对云数据库 MongoDB 进行操作,包括创建实例询价、创建云数据库实例、续费云数据库实例等。",
|
98
98
|
"serviceNameCN": "云数据库 MongoDB",
|
99
99
|
"serviceShortName": "mongodb"
|
100
100
|
},
|
@@ -367,7 +367,7 @@
|
|
367
367
|
},
|
368
368
|
"metadata": {
|
369
369
|
"apiVersion": "2019-07-25",
|
370
|
-
"api_brief": "介绍如何使用API对云数据库
|
370
|
+
"api_brief": "介绍如何使用 API 对云数据库 MongoDB 进行操作,包括创建实例询价、创建云数据库实例、续费云数据库实例等。",
|
371
371
|
"serviceNameCN": "云数据库 MongoDB",
|
372
372
|
"serviceShortName": "mongodb"
|
373
373
|
},
|
@@ -16327,7 +16327,7 @@
|
|
16327
16327
|
{
|
16328
16328
|
"disabled": false,
|
16329
16329
|
"document": "转码模板唯一标识过滤条件,数组长度限制:100。",
|
16330
|
-
"example": "10",
|
16330
|
+
"example": "[10]",
|
16331
16331
|
"member": "int64",
|
16332
16332
|
"name": "Definitions",
|
16333
16333
|
"required": false,
|
@@ -20175,21 +20175,31 @@
|
|
20175
20175
|
"members": [
|
20176
20176
|
{
|
20177
20177
|
"disabled": false,
|
20178
|
-
"document": "结果的类型,取值范围:\n<li>SegmentRecognition:拆条。</li>",
|
20178
|
+
"document": "结果的类型,取值范围:\n<li>SegmentRecognition:拆条。</li>\n<li>Highlight :集锦。</li>",
|
20179
20179
|
"example": "SegmentRecognition",
|
20180
20180
|
"member": "string",
|
20181
20181
|
"name": "Type",
|
20182
|
-
"
|
20182
|
+
"output_required": true,
|
20183
20183
|
"type": "string",
|
20184
20184
|
"value_allowed_null": false
|
20185
20185
|
},
|
20186
20186
|
{
|
20187
20187
|
"disabled": false,
|
20188
20188
|
"document": "拆条结果,当 Type 为\nSegmentRecognition 时有效。\n注意:此字段可能返回 null,表示取不到有效值。",
|
20189
|
-
"example": "
|
20189
|
+
"example": "无",
|
20190
20190
|
"member": "SegmentRecognitionItem",
|
20191
20191
|
"name": "SegmentResultSet",
|
20192
|
-
"
|
20192
|
+
"output_required": true,
|
20193
|
+
"type": "list",
|
20194
|
+
"value_allowed_null": true
|
20195
|
+
},
|
20196
|
+
{
|
20197
|
+
"disabled": false,
|
20198
|
+
"document": "集锦结果,当Type 为 Highlight 时有效。\n注意:此字段可能返回 null,表示取不到有效值。",
|
20199
|
+
"example": "无",
|
20200
|
+
"member": "MediaAiAnalysisHighlightItem",
|
20201
|
+
"name": "HighlightResultSet",
|
20202
|
+
"output_required": true,
|
20193
20203
|
"type": "list",
|
20194
20204
|
"value_allowed_null": true
|
20195
20205
|
}
|
@@ -243,7 +243,7 @@
|
|
243
243
|
"CreateTranscodeTemplate": [
|
244
244
|
{
|
245
245
|
"document": "",
|
246
|
-
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateTranscodeTemplate\n<公共请求参数>\n\n{\n \"RemoveVideo\": 0,\n \"Container\": \"mp4\",\n \"Name\": \"
|
246
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateTranscodeTemplate\n<公共请求参数>\n\n{\n \"RemoveVideo\": 0,\n \"Container\": \"mp4\",\n \"Name\": \"trans_test\",\n \"AudioTemplate\": {\n \"SampleRate\": 44100,\n \"Codec\": \"aac\",\n \"Bitrate\": 200\n },\n \"VideoTemplate\": {\n \"Codec\": \"h264\",\n \"Bitrate\": 256,\n \"Fps\": 45\n },\n \"RemoveAudio\": 0\n}",
|
247
247
|
"output": "{\n \"Response\": {\n \"Definition\": 1008,\n \"RequestId\": \"12ae8d8e-dce3-4151-9d4b-5594145287e1\"\n }\n}",
|
248
248
|
"title": "创建转码模板"
|
249
249
|
}
|
@@ -573,6 +573,24 @@
|
|
573
573
|
"name": "Capacity",
|
574
574
|
"required": false,
|
575
575
|
"type": "int"
|
576
|
+
},
|
577
|
+
{
|
578
|
+
"disabled": false,
|
579
|
+
"document": "是否开启默认扩容,仅turbo类型文件存储支持",
|
580
|
+
"example": "false",
|
581
|
+
"member": "bool",
|
582
|
+
"name": "EnableAutoScaleUp",
|
583
|
+
"required": false,
|
584
|
+
"type": "bool"
|
585
|
+
},
|
586
|
+
{
|
587
|
+
"disabled": false,
|
588
|
+
"document": "turbo文件系统元数据属性,basic:标准型元数据;enhanced:增强型元数据",
|
589
|
+
"example": "basic",
|
590
|
+
"member": "string",
|
591
|
+
"name": "MetaType",
|
592
|
+
"required": false,
|
593
|
+
"type": "string"
|
576
594
|
}
|
577
595
|
],
|
578
596
|
"type": "object"
|
@@ -3245,8 +3263,7 @@
|
|
3245
3263
|
"member": "string",
|
3246
3264
|
"name": "StorageType",
|
3247
3265
|
"required": true,
|
3248
|
-
"type": "string"
|
3249
|
-
"value_allowed_null": true
|
3266
|
+
"type": "string"
|
3250
3267
|
},
|
3251
3268
|
{
|
3252
3269
|
"disabled": false,
|
@@ -3255,8 +3272,7 @@
|
|
3255
3272
|
"member": "string",
|
3256
3273
|
"name": "Zone",
|
3257
3274
|
"required": true,
|
3258
|
-
"type": "string"
|
3259
|
-
"value_allowed_null": true
|
3275
|
+
"type": "string"
|
3260
3276
|
},
|
3261
3277
|
{
|
3262
3278
|
"disabled": false,
|
@@ -3265,8 +3281,25 @@
|
|
3265
3281
|
"member": "uint64",
|
3266
3282
|
"name": "Capacity",
|
3267
3283
|
"required": false,
|
3268
|
-
"type": "int"
|
3269
|
-
|
3284
|
+
"type": "int"
|
3285
|
+
},
|
3286
|
+
{
|
3287
|
+
"disabled": false,
|
3288
|
+
"document": "是否开启默认扩容,仅turbo类型文件存储支持",
|
3289
|
+
"example": "false",
|
3290
|
+
"member": "bool",
|
3291
|
+
"name": "EnableAutoScaleUp",
|
3292
|
+
"required": false,
|
3293
|
+
"type": "bool"
|
3294
|
+
},
|
3295
|
+
{
|
3296
|
+
"disabled": false,
|
3297
|
+
"document": "turbo文件系统元数据属性,basic:标准型元数据;enhanced:增强型元数据",
|
3298
|
+
"example": "basic",
|
3299
|
+
"member": "string",
|
3300
|
+
"name": "MetaType",
|
3301
|
+
"required": false,
|
3302
|
+
"type": "string"
|
3270
3303
|
}
|
3271
3304
|
],
|
3272
3305
|
"usage": "in"
|
@@ -3618,6 +3651,72 @@
|
|
3618
3651
|
"output_required": false,
|
3619
3652
|
"type": "string",
|
3620
3653
|
"value_allowed_null": false
|
3654
|
+
},
|
3655
|
+
{
|
3656
|
+
"disabled": false,
|
3657
|
+
"document": "turbo自动扩容策略",
|
3658
|
+
"example": "无",
|
3659
|
+
"member": "VolumeAutoScaleUpRule",
|
3660
|
+
"name": "AutoScaleUpRule",
|
3661
|
+
"output_required": false,
|
3662
|
+
"type": "object",
|
3663
|
+
"value_allowed_null": false
|
3664
|
+
},
|
3665
|
+
{
|
3666
|
+
"disabled": false,
|
3667
|
+
"document": "turbo元数据属性",
|
3668
|
+
"example": "basic",
|
3669
|
+
"member": "string",
|
3670
|
+
"name": "MetaType",
|
3671
|
+
"output_required": false,
|
3672
|
+
"type": "string",
|
3673
|
+
"value_allowed_null": false
|
3674
|
+
},
|
3675
|
+
{
|
3676
|
+
"disabled": false,
|
3677
|
+
"document": "可用区",
|
3678
|
+
"example": "ap-guangzhou-6",
|
3679
|
+
"member": "string",
|
3680
|
+
"name": "Zone",
|
3681
|
+
"output_required": false,
|
3682
|
+
"type": "string",
|
3683
|
+
"value_allowed_null": false
|
3684
|
+
}
|
3685
|
+
],
|
3686
|
+
"usage": "out"
|
3687
|
+
},
|
3688
|
+
"VolumeAutoScaleUpRule": {
|
3689
|
+
"document": "缓存卷自动扩容策略",
|
3690
|
+
"members": [
|
3691
|
+
{
|
3692
|
+
"disabled": false,
|
3693
|
+
"document": "自动扩容策略开启,关闭\n示例值:open,close",
|
3694
|
+
"example": "open",
|
3695
|
+
"member": "string",
|
3696
|
+
"name": "Status",
|
3697
|
+
"output_required": false,
|
3698
|
+
"type": "string",
|
3699
|
+
"value_allowed_null": false
|
3700
|
+
},
|
3701
|
+
{
|
3702
|
+
"disabled": false,
|
3703
|
+
"document": "集群用量占比,到达这个值后开始扩容,范围[10-90]",
|
3704
|
+
"example": "85",
|
3705
|
+
"member": "int64",
|
3706
|
+
"name": "ScaleThreshold",
|
3707
|
+
"output_required": false,
|
3708
|
+
"type": "int",
|
3709
|
+
"value_allowed_null": false
|
3710
|
+
},
|
3711
|
+
{
|
3712
|
+
"disabled": false,
|
3713
|
+
"document": "扩容后使用量跟集群总量比例,范围[10-90]",
|
3714
|
+
"example": "70",
|
3715
|
+
"member": "int64",
|
3716
|
+
"name": "TargetThreshold",
|
3717
|
+
"output_required": false,
|
3718
|
+
"type": "int",
|
3719
|
+
"value_allowed_null": false
|
3621
3720
|
}
|
3622
3721
|
],
|
3623
3722
|
"usage": "out"
|
@@ -4023,6 +4023,58 @@ def doDeleteOrganizationMembers(args, parsed_globals):
|
|
4023
4023
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4024
4024
|
|
4025
4025
|
|
4026
|
+
def doDescribeResourceToShareMember(args, parsed_globals):
|
4027
|
+
g_param = parse_global_arg(parsed_globals)
|
4028
|
+
|
4029
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4030
|
+
cred = credential.CVMRoleCredential()
|
4031
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4032
|
+
cred = credential.STSAssumeRoleCredential(
|
4033
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4034
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4035
|
+
)
|
4036
|
+
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):
|
4037
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4038
|
+
else:
|
4039
|
+
cred = credential.Credential(
|
4040
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4041
|
+
)
|
4042
|
+
http_profile = HttpProfile(
|
4043
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4044
|
+
reqMethod="POST",
|
4045
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4046
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4047
|
+
)
|
4048
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4049
|
+
if g_param[OptionsDefine.Language]:
|
4050
|
+
profile.language = g_param[OptionsDefine.Language]
|
4051
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4052
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
4053
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4054
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4055
|
+
model = models.DescribeResourceToShareMemberRequest()
|
4056
|
+
model.from_json_string(json.dumps(args))
|
4057
|
+
start_time = time.time()
|
4058
|
+
while True:
|
4059
|
+
rsp = client.DescribeResourceToShareMember(model)
|
4060
|
+
result = rsp.to_json_string()
|
4061
|
+
try:
|
4062
|
+
json_obj = json.loads(result)
|
4063
|
+
except TypeError as e:
|
4064
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4065
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4066
|
+
break
|
4067
|
+
cur_time = time.time()
|
4068
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4069
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4070
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4071
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4072
|
+
else:
|
4073
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4074
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4075
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4076
|
+
|
4077
|
+
|
4026
4078
|
def doListOrgServiceAssignMember(args, parsed_globals):
|
4027
4079
|
g_param = parse_global_arg(parsed_globals)
|
4028
4080
|
|
@@ -7337,6 +7389,7 @@ ACTION_MAP = {
|
|
7337
7389
|
"DismantleRoleConfiguration": doDismantleRoleConfiguration,
|
7338
7390
|
"DeleteShareUnit": doDeleteShareUnit,
|
7339
7391
|
"DeleteOrganizationMembers": doDeleteOrganizationMembers,
|
7392
|
+
"DescribeResourceToShareMember": doDescribeResourceToShareMember,
|
7340
7393
|
"ListOrgServiceAssignMember": doListOrgServiceAssignMember,
|
7341
7394
|
"RejectJoinShareUnitInvitation": doRejectJoinShareUnitInvitation,
|
7342
7395
|
"ListNonCompliantResource": doListNonCompliantResource,
|