tccli 3.0.1375.1__py2.py3-none-any.whl → 3.0.1376.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/cdb/v20170320/api.json +2 -2
- tccli/services/cdwdoris/v20211228/api.json +31 -1
- tccli/services/cfs/v20190719/api.json +10 -1
- tccli/services/chc/v20230418/examples.json +1 -1
- tccli/services/clb/v20180317/api.json +20 -0
- tccli/services/cls/v20201016/api.json +8 -8
- tccli/services/csip/v20221121/api.json +2 -2
- tccli/services/ctem/v20231128/api.json +22 -3
- tccli/services/ctem/v20231128/examples.json +2 -2
- tccli/services/ess/v20201111/api.json +5 -5
- tccli/services/essbasic/v20210526/api.json +2 -2
- tccli/services/ioa/v20220601/api.json +47 -10
- tccli/services/ioa/v20220601/examples.json +4 -10
- tccli/services/iss/iss_client.py +53 -0
- tccli/services/iss/v20230517/api.json +60 -0
- tccli/services/iss/v20230517/examples.json +8 -0
- tccli/services/oceanus/v20190422/api.json +5 -5
- tccli/services/omics/v20221128/api.json +1 -1
- tccli/services/organization/organization_client.py +69 -16
- tccli/services/organization/v20210331/api.json +216 -0
- tccli/services/organization/v20210331/examples.json +8 -0
- tccli/services/partners/v20180321/api.json +2 -2
- tccli/services/smh/v20210712/api.json +43 -12
- tccli/services/smh/v20210712/examples.json +1 -1
- tccli/services/tsf/v20180326/api.json +59 -59
- tccli/services/tsf/v20180326/examples.json +2 -2
- {tccli-3.0.1375.1.dist-info → tccli-3.0.1376.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1375.1.dist-info → tccli-3.0.1376.1.dist-info}/RECORD +32 -32
- {tccli-3.0.1375.1.dist-info → tccli-3.0.1376.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1375.1.dist-info → tccli-3.0.1376.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1375.1.dist-info → tccli-3.0.1376.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/iss/iss_client.py
CHANGED
@@ -1369,6 +1369,58 @@ def doDescribeRecordBackupTemplate(args, parsed_globals):
|
|
1369
1369
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1370
1370
|
|
1371
1371
|
|
1372
|
+
def doDescribeUserDeviceList(args, parsed_globals):
|
1373
|
+
g_param = parse_global_arg(parsed_globals)
|
1374
|
+
|
1375
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1376
|
+
cred = credential.CVMRoleCredential()
|
1377
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1378
|
+
cred = credential.STSAssumeRoleCredential(
|
1379
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1380
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1381
|
+
)
|
1382
|
+
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):
|
1383
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1384
|
+
else:
|
1385
|
+
cred = credential.Credential(
|
1386
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1387
|
+
)
|
1388
|
+
http_profile = HttpProfile(
|
1389
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1390
|
+
reqMethod="POST",
|
1391
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1392
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1393
|
+
)
|
1394
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1395
|
+
if g_param[OptionsDefine.Language]:
|
1396
|
+
profile.language = g_param[OptionsDefine.Language]
|
1397
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1398
|
+
client = mod.IssClient(cred, g_param[OptionsDefine.Region], profile)
|
1399
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1400
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1401
|
+
model = models.DescribeUserDeviceListRequest()
|
1402
|
+
model.from_json_string(json.dumps(args))
|
1403
|
+
start_time = time.time()
|
1404
|
+
while True:
|
1405
|
+
rsp = client.DescribeUserDeviceList(model)
|
1406
|
+
result = rsp.to_json_string()
|
1407
|
+
try:
|
1408
|
+
json_obj = json.loads(result)
|
1409
|
+
except TypeError as e:
|
1410
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1411
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1412
|
+
break
|
1413
|
+
cur_time = time.time()
|
1414
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1415
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1416
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1417
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1418
|
+
else:
|
1419
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1420
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1421
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1422
|
+
|
1423
|
+
|
1372
1424
|
def doDescribeVideoBitRate(args, parsed_globals):
|
1373
1425
|
g_param = parse_global_arg(parsed_globals)
|
1374
1426
|
|
@@ -4786,6 +4838,7 @@ ACTION_MAP = {
|
|
4786
4838
|
"DescribeDomainRegion": doDescribeDomainRegion,
|
4787
4839
|
"ListRecordBackupTemplates": doListRecordBackupTemplates,
|
4788
4840
|
"DescribeRecordBackupTemplate": doDescribeRecordBackupTemplate,
|
4841
|
+
"DescribeUserDeviceList": doDescribeUserDeviceList,
|
4789
4842
|
"DescribeVideoBitRate": doDescribeVideoBitRate,
|
4790
4843
|
"CreateVideoDownloadTask": doCreateVideoDownloadTask,
|
4791
4844
|
"DescribeRecordBackupPlan": doDescribeRecordBackupPlan,
|
@@ -385,6 +385,13 @@
|
|
385
385
|
"output": "DescribeUserDeviceResponse",
|
386
386
|
"status": "online"
|
387
387
|
},
|
388
|
+
"DescribeUserDeviceList": {
|
389
|
+
"document": "用于批量查询设备详细信息。",
|
390
|
+
"input": "DescribeUserDeviceListRequest",
|
391
|
+
"name": "批量查询设备详情",
|
392
|
+
"output": "DescribeUserDeviceListResponse",
|
393
|
+
"status": "online"
|
394
|
+
},
|
388
395
|
"DescribeVideoBitRate": {
|
389
396
|
"document": "用于获取视频通道的码率信息",
|
390
397
|
"input": "DescribeVideoBitRateRequest",
|
@@ -4238,6 +4245,22 @@
|
|
4238
4245
|
],
|
4239
4246
|
"usage": "out"
|
4240
4247
|
},
|
4248
|
+
"DescribeDeviceListData": {
|
4249
|
+
"document": "批量查询设备接口返回数据",
|
4250
|
+
"members": [
|
4251
|
+
{
|
4252
|
+
"disabled": false,
|
4253
|
+
"document": "设备详情列表",
|
4254
|
+
"example": " ",
|
4255
|
+
"member": "DescribeDeviceData",
|
4256
|
+
"name": "List",
|
4257
|
+
"output_required": true,
|
4258
|
+
"type": "list",
|
4259
|
+
"value_allowed_null": false
|
4260
|
+
}
|
4261
|
+
],
|
4262
|
+
"usage": "out"
|
4263
|
+
},
|
4241
4264
|
"DescribeDevicePresetData": {
|
4242
4265
|
"document": "查询设备预置位返回数据",
|
4243
4266
|
"members": [
|
@@ -6017,6 +6040,43 @@
|
|
6017
6040
|
],
|
6018
6041
|
"type": "object"
|
6019
6042
|
},
|
6043
|
+
"DescribeUserDeviceListRequest": {
|
6044
|
+
"document": "DescribeUserDeviceList请求参数结构体",
|
6045
|
+
"members": [
|
6046
|
+
{
|
6047
|
+
"disabled": false,
|
6048
|
+
"document": "设备Id列表",
|
6049
|
+
"example": "[\"cf40269b-324b-464b-b2aa-************\",\"9e05af80-edbd-4115-a706-************\"]",
|
6050
|
+
"member": "string",
|
6051
|
+
"name": "DeviceIds",
|
6052
|
+
"required": true,
|
6053
|
+
"type": "list"
|
6054
|
+
}
|
6055
|
+
],
|
6056
|
+
"type": "object"
|
6057
|
+
},
|
6058
|
+
"DescribeUserDeviceListResponse": {
|
6059
|
+
"document": "DescribeUserDeviceList返回参数结构体",
|
6060
|
+
"members": [
|
6061
|
+
{
|
6062
|
+
"disabled": false,
|
6063
|
+
"document": "返回结果",
|
6064
|
+
"example": " ",
|
6065
|
+
"member": "DescribeDeviceListData",
|
6066
|
+
"name": "Data",
|
6067
|
+
"output_required": true,
|
6068
|
+
"type": "object",
|
6069
|
+
"value_allowed_null": false
|
6070
|
+
},
|
6071
|
+
{
|
6072
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
6073
|
+
"member": "string",
|
6074
|
+
"name": "RequestId",
|
6075
|
+
"type": "string"
|
6076
|
+
}
|
6077
|
+
],
|
6078
|
+
"type": "object"
|
6079
|
+
},
|
6020
6080
|
"DescribeUserDeviceRequest": {
|
6021
6081
|
"document": "DescribeUserDevice请求参数结构体",
|
6022
6082
|
"members": [
|
@@ -554,6 +554,14 @@
|
|
554
554
|
"title": "无效的设备Id错误"
|
555
555
|
}
|
556
556
|
],
|
557
|
+
"DescribeUserDeviceList": [
|
558
|
+
{
|
559
|
+
"document": "",
|
560
|
+
"input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserDeviceList\n<公共请求参数>\n\n{\n \"DeviceIds\": [\n \"da238a8c-****-4a5b-****-************\"\n ]\n}",
|
561
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"423da921-fd90-4b07-a1a4-a17b8df24e37\",\n \"Data\": {\n \"List\": [\n {\n \"DeviceId\": \"da238a8c-****-4a5b-****-************\",\n \"Name\": \"rxxxxx2710\",\n \"Code\": \"xxxxx\",\n \"Status\": 0,\n \"Region\": \"ap-shanghai\",\n \"Type\": 1,\n \"TransportProtocol\": 0,\n \"AccessProtocol\": 1,\n \"OrganizationId\": \"1\",\n \"Manufacturer\": \"\",\n \"Description\": \"\",\n \"ClusterId\": \"41xxxxxxxad-4c16-xxx-dxxx3axxxxx90\",\n \"ClusterName\": \"xxxx区\",\n \"SipId\": \"\",\n \"SipDomain\": \"\",\n \"SipIp\": \"\",\n \"SipPort\": 0,\n \"Password\": \"\",\n \"PushStreamUrl\": \"\",\n \"GatewayId\": \"\",\n \"GatewayName\": \"\",\n \"ProtocolType\": 0,\n \"ProtocolTypeName\": \"\",\n \"Ip\": \"\",\n \"Port\": 0,\n \"Username\": \"\",\n \"AudioSwitch\": 1,\n \"SubscribeSwitch\": 0,\n \"AppName\": \"tesxxxxxx\",\n \"StreamName\": \"testsxxxxx\",\n \"SilentFrameSwitch\": 0\n }\n ]\n }\n }\n}",
|
562
|
+
"title": "成功"
|
563
|
+
}
|
564
|
+
],
|
557
565
|
"DescribeVideoBitRate": [
|
558
566
|
{
|
559
567
|
"document": "正常响应",
|
@@ -7623,7 +7623,7 @@
|
|
7623
7623
|
{
|
7624
7624
|
"disabled": false,
|
7625
7625
|
"document": "setats warehouse\n注意:此字段可能返回 null,表示取不到有效值。",
|
7626
|
-
"example": "
|
7626
|
+
"example": "无",
|
7627
7627
|
"member": "Warehouse",
|
7628
7628
|
"name": "Warehouse",
|
7629
7629
|
"output_required": false,
|
@@ -7634,7 +7634,7 @@
|
|
7634
7634
|
{
|
7635
7635
|
"disabled": false,
|
7636
7636
|
"document": "setats master 机器规格\n注意:此字段可能返回 null,表示取不到有效值。",
|
7637
|
-
"example": "
|
7637
|
+
"example": "无",
|
7638
7638
|
"member": "SetatsCvmInfo",
|
7639
7639
|
"name": "MasterInfo",
|
7640
7640
|
"output_required": false,
|
@@ -7645,7 +7645,7 @@
|
|
7645
7645
|
{
|
7646
7646
|
"disabled": false,
|
7647
7647
|
"document": "setats worker规格\n注意:此字段可能返回 null,表示取不到有效值。",
|
7648
|
-
"example": "
|
7648
|
+
"example": "无",
|
7649
7649
|
"member": "SetatsCvmInfo",
|
7650
7650
|
"name": "WorkerInfo",
|
7651
7651
|
"output_required": false,
|
@@ -7656,7 +7656,7 @@
|
|
7656
7656
|
{
|
7657
7657
|
"disabled": false,
|
7658
7658
|
"document": "标签\n注意:此字段可能返回 null,表示取不到有效值。",
|
7659
|
-
"example": "
|
7659
|
+
"example": "无",
|
7660
7660
|
"member": "Tag",
|
7661
7661
|
"name": "Tags",
|
7662
7662
|
"output_required": false,
|
@@ -7689,7 +7689,7 @@
|
|
7689
7689
|
{
|
7690
7690
|
"disabled": false,
|
7691
7691
|
"document": "过期时间 秒\n注意:此字段可能返回 null,表示取不到有效值。",
|
7692
|
-
"example": "
|
7692
|
+
"example": "854",
|
7693
7693
|
"member": "string",
|
7694
7694
|
"name": "SecondsUntilExpiry",
|
7695
7695
|
"output_required": false,
|
@@ -143,7 +143,7 @@
|
|
143
143
|
},
|
144
144
|
"metadata": {
|
145
145
|
"apiVersion": "2022-11-28",
|
146
|
-
"api_brief": "腾讯健康组学平台API",
|
146
|
+
"api_brief": "# API简介\n\n## 概述\n腾讯健康组学平台(Tencent HealthCare Omics Platform)为生命科学行业用户提供具备行业特征的一键上云整体解决方案。具备弹性云计算、任务调度及管理能力,助力大数据分析用户快速、便捷、高效的利用腾讯云资源进行组学相关数据分析。平台支持用户自定义工作流 WDL(Workflow Description Language)语言,通过工作流管理引擎 Cromwell、Nextflow 和自研任务调度引擎精细化管理和编排任务作业,有效而广泛连接不同数据分析应用场景。\n\n本章节介绍的腾讯健康组学平台API 接口均为 [API 3.0/API 2.0等] 接口。 \n您可以调用 API 对腾讯健康组学平台进行操作,例如运行工作流。 \n腾讯健康组学平台支持的所有接口信息,请参见 [API概览](https://cloud.tencent.com/document/product/1643/89110) 。\n\n## 术语表\n腾讯健康组学平台 API 接口的常见术语请参见下表:\n\n| 术语 | 描述 |\n|------|------|\n| 环境 (Environment) | 指应用运行所需云资源的集合,包含了若干台云服务器、对象存储、文件存储等资源。为工作流和应用提供隔离的、可复现的运行条件。 |\n| 缓存卷 (Volume) | 用于在任务运行期间缓存中间数据或持久化存储结果文件。缓存卷可以独立于计算环境存在,实现数据的复用与共享。提供了可扩展的共享文件存储服务。提供了标准的 NFS 文件系统访问协议,为多个实例提供共享的数据源,支持弹性容量和性能的扩展。 |\n| 任务批次 (Run Group) | 一次应用/工作流执行的逻辑集合。通常,一次提交运行会创建一个任务批次,其中包含一个或多个任务(Run)。 |\n| 任务 (Run) | 工作流或应用的单次执行实例。每个任务都有独立的生命周期状态(如运行中、成功、失败),并产生相应的日志和结果数据。 |\n| 工作流 (Workflow) | 一系列预定义的、按特定顺序执行的计算步骤或工具的组合,用于完成一个完整的组学分析流程(如基因测序数据比对、变异检测等)。在组学平台场景下, 特指由 WDL、Nextflow 等语言编写的生信分析工作流。 |\n| 应用 (Application) | 通常指一个封装好的、用于执行特定分析功能的单个工具或脚本。 |\n| 表格 (Table) | 用于结构化存储和管理输入数据的实体。例如样本数据表等。 |\n\n## 使用限制\nAPI 调用频率限制为 20次/秒。\n\n## API 快速入门\n您可以使用 API Explorer 工具在线调用 API。\n本文以运行工作流 [RunWorkflow]( https://cloud.tencent.com/document/api/1643/100857) 为例,通过 API Explorer 工具调用 API 接口的步骤如下:\n1.进入 [使用 API Explorer]( https://console.cloud.tencent.com/api/explorer) 工具页面。更多 API Explorer 工具使用信息,请参见 [使用 API Explorer]( https://cloud.tencent.com/document/product/1278/46697) 。\n2.调用 [RunWorkflow]( https://cloud.tencent.com/document/api/1643/100857) 接口,运行指定工作流。\n3.运行工作流后即可在组学平台网站对应工作项目页面查看到正在运行的工作流批次。",
|
147
147
|
"serviceNameCN": "腾讯健康组学平台",
|
148
148
|
"serviceShortName": "omics"
|
149
149
|
},
|
@@ -851,7 +851,7 @@ def doOpenIdentityCenter(args, parsed_globals):
|
|
851
851
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
852
852
|
|
853
853
|
|
854
|
-
def
|
854
|
+
def doListGroups(args, parsed_globals):
|
855
855
|
g_param = parse_global_arg(parsed_globals)
|
856
856
|
|
857
857
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -880,11 +880,11 @@ def doDeleteUser(args, parsed_globals):
|
|
880
880
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
881
881
|
client._sdkVersion += ("_CLI_" + __version__)
|
882
882
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
883
|
-
model = models.
|
883
|
+
model = models.ListGroupsRequest()
|
884
884
|
model.from_json_string(json.dumps(args))
|
885
885
|
start_time = time.time()
|
886
886
|
while True:
|
887
|
-
rsp = client.
|
887
|
+
rsp = client.ListGroups(model)
|
888
888
|
result = rsp.to_json_string()
|
889
889
|
try:
|
890
890
|
json_obj = json.loads(result)
|
@@ -955,7 +955,7 @@ def doGetRoleConfiguration(args, parsed_globals):
|
|
955
955
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
956
956
|
|
957
957
|
|
958
|
-
def
|
958
|
+
def doCreateOrganizationMember(args, parsed_globals):
|
959
959
|
g_param = parse_global_arg(parsed_globals)
|
960
960
|
|
961
961
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -984,11 +984,11 @@ def doDescribeShareUnitResources(args, parsed_globals):
|
|
984
984
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
985
985
|
client._sdkVersion += ("_CLI_" + __version__)
|
986
986
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
987
|
-
model = models.
|
987
|
+
model = models.CreateOrganizationMemberRequest()
|
988
988
|
model.from_json_string(json.dumps(args))
|
989
989
|
start_time = time.time()
|
990
990
|
while True:
|
991
|
-
rsp = client.
|
991
|
+
rsp = client.CreateOrganizationMember(model)
|
992
992
|
result = rsp.to_json_string()
|
993
993
|
try:
|
994
994
|
json_obj = json.loads(result)
|
@@ -4855,7 +4855,7 @@ def doUpdateSCIMSynchronizationStatus(args, parsed_globals):
|
|
4855
4855
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4856
4856
|
|
4857
4857
|
|
4858
|
-
def
|
4858
|
+
def doDeleteUser(args, parsed_globals):
|
4859
4859
|
g_param = parse_global_arg(parsed_globals)
|
4860
4860
|
|
4861
4861
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4884,11 +4884,11 @@ def doListGroups(args, parsed_globals):
|
|
4884
4884
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
4885
4885
|
client._sdkVersion += ("_CLI_" + __version__)
|
4886
4886
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4887
|
-
model = models.
|
4887
|
+
model = models.DeleteUserRequest()
|
4888
4888
|
model.from_json_string(json.dumps(args))
|
4889
4889
|
start_time = time.time()
|
4890
4890
|
while True:
|
4891
|
-
rsp = client.
|
4891
|
+
rsp = client.DeleteUser(model)
|
4892
4892
|
result = rsp.to_json_string()
|
4893
4893
|
try:
|
4894
4894
|
json_obj = json.loads(result)
|
@@ -4907,7 +4907,7 @@ def doListGroups(args, parsed_globals):
|
|
4907
4907
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4908
4908
|
|
4909
4909
|
|
4910
|
-
def
|
4910
|
+
def doDescribeShareUnitResources(args, parsed_globals):
|
4911
4911
|
g_param = parse_global_arg(parsed_globals)
|
4912
4912
|
|
4913
4913
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4936,11 +4936,11 @@ def doCreateOrganizationMember(args, parsed_globals):
|
|
4936
4936
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
4937
4937
|
client._sdkVersion += ("_CLI_" + __version__)
|
4938
4938
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4939
|
-
model = models.
|
4939
|
+
model = models.DescribeShareUnitResourcesRequest()
|
4940
4940
|
model.from_json_string(json.dumps(args))
|
4941
4941
|
start_time = time.time()
|
4942
4942
|
while True:
|
4943
|
-
rsp = client.
|
4943
|
+
rsp = client.DescribeShareUnitResources(model)
|
4944
4944
|
result = rsp.to_json_string()
|
4945
4945
|
try:
|
4946
4946
|
json_obj = json.loads(result)
|
@@ -5115,6 +5115,58 @@ def doCreatePolicy(args, parsed_globals):
|
|
5115
5115
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5116
5116
|
|
5117
5117
|
|
5118
|
+
def doDescribeOrganizationMembersAuthPolicy(args, parsed_globals):
|
5119
|
+
g_param = parse_global_arg(parsed_globals)
|
5120
|
+
|
5121
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5122
|
+
cred = credential.CVMRoleCredential()
|
5123
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5124
|
+
cred = credential.STSAssumeRoleCredential(
|
5125
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5126
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5127
|
+
)
|
5128
|
+
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):
|
5129
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5130
|
+
else:
|
5131
|
+
cred = credential.Credential(
|
5132
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5133
|
+
)
|
5134
|
+
http_profile = HttpProfile(
|
5135
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5136
|
+
reqMethod="POST",
|
5137
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5138
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5139
|
+
)
|
5140
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5141
|
+
if g_param[OptionsDefine.Language]:
|
5142
|
+
profile.language = g_param[OptionsDefine.Language]
|
5143
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5144
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
5145
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5146
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5147
|
+
model = models.DescribeOrganizationMembersAuthPolicyRequest()
|
5148
|
+
model.from_json_string(json.dumps(args))
|
5149
|
+
start_time = time.time()
|
5150
|
+
while True:
|
5151
|
+
rsp = client.DescribeOrganizationMembersAuthPolicy(model)
|
5152
|
+
result = rsp.to_json_string()
|
5153
|
+
try:
|
5154
|
+
json_obj = json.loads(result)
|
5155
|
+
except TypeError as e:
|
5156
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5157
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5158
|
+
break
|
5159
|
+
cur_time = time.time()
|
5160
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5161
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5162
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5163
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5164
|
+
else:
|
5165
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5166
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5167
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5168
|
+
|
5169
|
+
|
5118
5170
|
def doGetProvisioningTaskStatus(args, parsed_globals):
|
5119
5171
|
g_param = parse_global_arg(parsed_globals)
|
5120
5172
|
|
@@ -7328,9 +7380,9 @@ ACTION_MAP = {
|
|
7328
7380
|
"SendOrganizationInvitation": doSendOrganizationInvitation,
|
7329
7381
|
"CreateOrganizationMemberAuthIdentity": doCreateOrganizationMemberAuthIdentity,
|
7330
7382
|
"OpenIdentityCenter": doOpenIdentityCenter,
|
7331
|
-
"
|
7383
|
+
"ListGroups": doListGroups,
|
7332
7384
|
"GetRoleConfiguration": doGetRoleConfiguration,
|
7333
|
-
"
|
7385
|
+
"CreateOrganizationMember": doCreateOrganizationMember,
|
7334
7386
|
"DenyOrganizationInvitation": doDenyOrganizationInvitation,
|
7335
7387
|
"DescribeOrganizationMemberEmailBind": doDescribeOrganizationMemberEmailBind,
|
7336
7388
|
"DeleteShareUnitResources": doDeleteShareUnitResources,
|
@@ -7405,11 +7457,12 @@ ACTION_MAP = {
|
|
7405
7457
|
"DescribeOrganization": doDescribeOrganization,
|
7406
7458
|
"ListOrganizationMembers": doListOrganizationMembers,
|
7407
7459
|
"UpdateSCIMSynchronizationStatus": doUpdateSCIMSynchronizationStatus,
|
7408
|
-
"
|
7409
|
-
"
|
7460
|
+
"DeleteUser": doDeleteUser,
|
7461
|
+
"DescribeShareUnitResources": doDescribeShareUnitResources,
|
7410
7462
|
"BindOrganizationMemberAuthAccount": doBindOrganizationMemberAuthAccount,
|
7411
7463
|
"UpdateGroup": doUpdateGroup,
|
7412
7464
|
"CreatePolicy": doCreatePolicy,
|
7465
|
+
"DescribeOrganizationMembersAuthPolicy": doDescribeOrganizationMembersAuthPolicy,
|
7413
7466
|
"GetProvisioningTaskStatus": doGetProvisioningTaskStatus,
|
7414
7467
|
"UpdateOrganizationNode": doUpdateOrganizationNode,
|
7415
7468
|
"UpdateShareUnit": doUpdateShareUnit,
|
@@ -420,6 +420,13 @@
|
|
420
420
|
"output": "DescribeOrganizationMembersResponse",
|
421
421
|
"status": "online"
|
422
422
|
},
|
423
|
+
"DescribeOrganizationMembersAuthPolicy": {
|
424
|
+
"document": "查询组织成员访问策略列表",
|
425
|
+
"input": "DescribeOrganizationMembersAuthPolicyRequest",
|
426
|
+
"name": "查询组织成员访问策略列表",
|
427
|
+
"output": "DescribeOrganizationMembersAuthPolicyResponse",
|
428
|
+
"status": "online"
|
429
|
+
},
|
423
430
|
"DescribeOrganizationNodes": {
|
424
431
|
"document": "获取组织节点列表",
|
425
432
|
"input": "DescribeOrganizationNodesRequest",
|
@@ -4173,6 +4180,89 @@
|
|
4173
4180
|
],
|
4174
4181
|
"type": "object"
|
4175
4182
|
},
|
4183
|
+
"DescribeOrganizationMembersAuthPolicyRequest": {
|
4184
|
+
"document": "DescribeOrganizationMembersAuthPolicy请求参数结构体",
|
4185
|
+
"members": [
|
4186
|
+
{
|
4187
|
+
"disabled": false,
|
4188
|
+
"document": "偏移量。取值是limit的整数倍。默认值 : 0。",
|
4189
|
+
"example": "0",
|
4190
|
+
"member": "int64",
|
4191
|
+
"name": "Offset",
|
4192
|
+
"required": true,
|
4193
|
+
"type": "int"
|
4194
|
+
},
|
4195
|
+
{
|
4196
|
+
"disabled": false,
|
4197
|
+
"document": "限制数目。取值范围:1~50。默认值:10。",
|
4198
|
+
"example": "10",
|
4199
|
+
"member": "int64",
|
4200
|
+
"name": "Limit",
|
4201
|
+
"required": true,
|
4202
|
+
"type": "int"
|
4203
|
+
},
|
4204
|
+
{
|
4205
|
+
"disabled": false,
|
4206
|
+
"document": "成员uin。",
|
4207
|
+
"example": "0",
|
4208
|
+
"member": "int64",
|
4209
|
+
"name": "MemberUin",
|
4210
|
+
"required": false,
|
4211
|
+
"type": "int"
|
4212
|
+
},
|
4213
|
+
{
|
4214
|
+
"disabled": false,
|
4215
|
+
"document": "集团管理员子账号uin。",
|
4216
|
+
"example": "0",
|
4217
|
+
"member": "int64",
|
4218
|
+
"name": "OrgSubAccountUin",
|
4219
|
+
"required": false,
|
4220
|
+
"type": "int"
|
4221
|
+
},
|
4222
|
+
{
|
4223
|
+
"disabled": false,
|
4224
|
+
"document": "成员访问策略Id。",
|
4225
|
+
"example": "0",
|
4226
|
+
"member": "int64",
|
4227
|
+
"name": "PolicyId",
|
4228
|
+
"required": false,
|
4229
|
+
"type": "int"
|
4230
|
+
}
|
4231
|
+
],
|
4232
|
+
"type": "object"
|
4233
|
+
},
|
4234
|
+
"DescribeOrganizationMembersAuthPolicyResponse": {
|
4235
|
+
"document": "DescribeOrganizationMembersAuthPolicy返回参数结构体",
|
4236
|
+
"members": [
|
4237
|
+
{
|
4238
|
+
"disabled": false,
|
4239
|
+
"document": "访问授权策略列表。\n注意:此字段可能返回 null,表示取不到有效值。",
|
4240
|
+
"example": "无",
|
4241
|
+
"member": "OrgMembersAuthPolicy",
|
4242
|
+
"name": "Items",
|
4243
|
+
"output_required": true,
|
4244
|
+
"type": "list",
|
4245
|
+
"value_allowed_null": true
|
4246
|
+
},
|
4247
|
+
{
|
4248
|
+
"disabled": false,
|
4249
|
+
"document": "总数目。\n注意:此字段可能返回 null,表示取不到有效值。",
|
4250
|
+
"example": "1",
|
4251
|
+
"member": "uint64",
|
4252
|
+
"name": "Total",
|
4253
|
+
"output_required": true,
|
4254
|
+
"type": "int",
|
4255
|
+
"value_allowed_null": true
|
4256
|
+
},
|
4257
|
+
{
|
4258
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
4259
|
+
"member": "string",
|
4260
|
+
"name": "RequestId",
|
4261
|
+
"type": "string"
|
4262
|
+
}
|
4263
|
+
],
|
4264
|
+
"type": "object"
|
4265
|
+
},
|
4176
4266
|
"DescribeOrganizationMembersRequest": {
|
4177
4267
|
"document": "DescribeOrganizationMembers请求参数结构体",
|
4178
4268
|
"members": [
|
@@ -9336,6 +9426,132 @@
|
|
9336
9426
|
],
|
9337
9427
|
"usage": "out"
|
9338
9428
|
},
|
9429
|
+
"OrgMembersAuthPolicy": {
|
9430
|
+
"document": "组织成员访问授权策略",
|
9431
|
+
"members": [
|
9432
|
+
{
|
9433
|
+
"disabled": false,
|
9434
|
+
"document": "身份Id。\n注意:此字段可能返回 null,表示取不到有效值。",
|
9435
|
+
"example": "111",
|
9436
|
+
"member": "int64",
|
9437
|
+
"name": "IdentityId",
|
9438
|
+
"output_required": true,
|
9439
|
+
"type": "int",
|
9440
|
+
"value_allowed_null": true
|
9441
|
+
},
|
9442
|
+
{
|
9443
|
+
"disabled": false,
|
9444
|
+
"document": "身份的角色名。\n注意:此字段可能返回 null,表示取不到有效值。",
|
9445
|
+
"example": "test",
|
9446
|
+
"member": "string",
|
9447
|
+
"name": "IdentityRoleName",
|
9448
|
+
"output_required": true,
|
9449
|
+
"type": "string",
|
9450
|
+
"value_allowed_null": true
|
9451
|
+
},
|
9452
|
+
{
|
9453
|
+
"disabled": false,
|
9454
|
+
"document": "身份的角色别名。\n注意:此字段可能返回 null,表示取不到有效值。",
|
9455
|
+
"example": "test",
|
9456
|
+
"member": "string",
|
9457
|
+
"name": "IdentityRoleAliasName",
|
9458
|
+
"output_required": true,
|
9459
|
+
"type": "string",
|
9460
|
+
"value_allowed_null": true
|
9461
|
+
},
|
9462
|
+
{
|
9463
|
+
"disabled": false,
|
9464
|
+
"document": "创建时间。\n注意:此字段可能返回 null,表示取不到有效值。",
|
9465
|
+
"example": "2021-02-12 12:12:10",
|
9466
|
+
"member": "string",
|
9467
|
+
"name": "CreateTime",
|
9468
|
+
"output_required": true,
|
9469
|
+
"type": "string",
|
9470
|
+
"value_allowed_null": true
|
9471
|
+
},
|
9472
|
+
{
|
9473
|
+
"disabled": false,
|
9474
|
+
"document": "成员访问策略Id。\n注意:此字段可能返回 null,表示取不到有效值。",
|
9475
|
+
"example": "222",
|
9476
|
+
"member": "int64",
|
9477
|
+
"name": "PolicyId",
|
9478
|
+
"output_required": true,
|
9479
|
+
"type": "int",
|
9480
|
+
"value_allowed_null": true
|
9481
|
+
},
|
9482
|
+
{
|
9483
|
+
"disabled": false,
|
9484
|
+
"document": "成员访问策略名称。\n注意:此字段可能返回 null,表示取不到有效值。",
|
9485
|
+
"example": "policy-test",
|
9486
|
+
"member": "string",
|
9487
|
+
"name": "PolicyName",
|
9488
|
+
"output_required": true,
|
9489
|
+
"type": "string",
|
9490
|
+
"value_allowed_null": true
|
9491
|
+
},
|
9492
|
+
{
|
9493
|
+
"disabled": false,
|
9494
|
+
"document": "成员uin。\n注意:此字段可能返回 null,表示取不到有效值。",
|
9495
|
+
"example": "111111111111",
|
9496
|
+
"member": "int64",
|
9497
|
+
"name": "MemberUin",
|
9498
|
+
"output_required": true,
|
9499
|
+
"type": "int",
|
9500
|
+
"value_allowed_null": true
|
9501
|
+
},
|
9502
|
+
{
|
9503
|
+
"disabled": false,
|
9504
|
+
"document": "成员名称。\n注意:此字段可能返回 null,表示取不到有效值。",
|
9505
|
+
"example": "member-name",
|
9506
|
+
"member": "string",
|
9507
|
+
"name": "MemberName",
|
9508
|
+
"output_required": true,
|
9509
|
+
"type": "string",
|
9510
|
+
"value_allowed_null": true
|
9511
|
+
},
|
9512
|
+
{
|
9513
|
+
"disabled": false,
|
9514
|
+
"document": "子账号uin或者用户组Id。\n注意:此字段可能返回 null,表示取不到有效值。",
|
9515
|
+
"example": "222222222222",
|
9516
|
+
"member": "int64",
|
9517
|
+
"name": "OrgSubAccountUin",
|
9518
|
+
"output_required": true,
|
9519
|
+
"type": "int",
|
9520
|
+
"value_allowed_null": true
|
9521
|
+
},
|
9522
|
+
{
|
9523
|
+
"disabled": false,
|
9524
|
+
"document": "子账号名称或者用户组名称。\n注意:此字段可能返回 null,表示取不到有效值。",
|
9525
|
+
"example": "sub-name",
|
9526
|
+
"member": "string",
|
9527
|
+
"name": "OrgSubAccountName",
|
9528
|
+
"output_required": true,
|
9529
|
+
"type": "string",
|
9530
|
+
"value_allowed_null": true
|
9531
|
+
},
|
9532
|
+
{
|
9533
|
+
"disabled": false,
|
9534
|
+
"document": "绑定类型。1-子账号、2-用户组\n注意:此字段可能返回 null,表示取不到有效值。",
|
9535
|
+
"example": "1",
|
9536
|
+
"member": "uint64",
|
9537
|
+
"name": "BindType",
|
9538
|
+
"output_required": true,
|
9539
|
+
"type": "int",
|
9540
|
+
"value_allowed_null": true
|
9541
|
+
},
|
9542
|
+
{
|
9543
|
+
"disabled": false,
|
9544
|
+
"document": "成员信息。\n注意:此字段可能返回 null,表示取不到有效值。",
|
9545
|
+
"example": "[{\"MemberUin\":111111111111},\"MemberName\":\"member-name\"]",
|
9546
|
+
"member": "MemberMainInfo",
|
9547
|
+
"name": "Members",
|
9548
|
+
"output_required": false,
|
9549
|
+
"type": "list",
|
9550
|
+
"value_allowed_null": true
|
9551
|
+
}
|
9552
|
+
],
|
9553
|
+
"usage": "out"
|
9554
|
+
},
|
9339
9555
|
"OrgNode": {
|
9340
9556
|
"document": "企业组织单元",
|
9341
9557
|
"members": [
|
@@ -480,6 +480,14 @@
|
|
480
480
|
"title": "获取成员列表"
|
481
481
|
}
|
482
482
|
],
|
483
|
+
"DescribeOrganizationMembersAuthPolicy": [
|
484
|
+
{
|
485
|
+
"document": "查询组织成员访问授权策略列表",
|
486
|
+
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeListOrganizationMembersAuthPolicy\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 10\n}",
|
487
|
+
"output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2022-01-13 10:27:11\",\n \"IdentityId\": 1,\n \"IdentityRoleAliasName\": \"Admin\",\n \"IdentityRoleName\": \"TestRole\",\n \"MemberName\": \"\",\n \"MemberUin\": 111111111111,\n \"OrgSubAccountName\": \"test001\",\n \"OrgSubAccountUin\": 222222222222,\n \"PolicyId\": 111,\n \"PolicyName\": \"pocy01131027\"\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"ab3628b0-cce5-4337-9a01-e68f5242931e\"\n }\n}",
|
488
|
+
"title": "查询组织成员访问授权策略列表"
|
489
|
+
}
|
490
|
+
],
|
483
491
|
"DescribeOrganizationNodes": [
|
484
492
|
{
|
485
493
|
"document": "",
|