tccli 3.0.1206.1__py2.py3-none-any.whl → 3.0.1207.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/cbs/v20170312/api.json +5 -5
- tccli/services/cdn/v20180606/api.json +1 -1
- tccli/services/cdwch/v20200915/api.json +20 -0
- tccli/services/clb/v20180317/api.json +6 -6
- tccli/services/cvm/v20170312/examples.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +84 -2
- tccli/services/cynosdb/v20190107/examples.json +1 -1
- tccli/services/dsgc/v20190723/api.json +150 -22
- tccli/services/dsgc/v20190723/examples.json +4 -4
- tccli/services/ess/v20201111/api.json +73 -15
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +95 -2
- tccli/services/essbasic/v20210526/examples.json +8 -0
- tccli/services/iotexplorer/iotexplorer_client.py +106 -0
- tccli/services/iotexplorer/v20190423/api.json +198 -0
- tccli/services/iotexplorer/v20190423/examples.json +22 -0
- tccli/services/lke/v20231130/api.json +1 -1
- tccli/services/mongodb/v20190725/api.json +1 -1
- tccli/services/mps/mps_client.py +220 -8
- tccli/services/mps/v20190612/api.json +627 -11
- tccli/services/mps/v20190612/examples.json +40 -2
- tccli/services/oceanus/oceanus_client.py +53 -0
- tccli/services/oceanus/v20190422/api.json +88 -0
- tccli/services/oceanus/v20190422/examples.json +8 -0
- tccli/services/redis/redis_client.py +53 -0
- tccli/services/redis/v20180412/api.json +75 -8
- tccli/services/redis/v20180412/examples.json +8 -0
- tccli/services/tcss/v20201101/api.json +10 -10
- tccli/services/tms/v20201229/api.json +17 -17
- tccli/services/trtc/v20190722/api.json +23 -5
- tccli/services/waf/v20180125/api.json +655 -1
- tccli/services/waf/v20180125/examples.json +22 -0
- tccli/services/waf/waf_client.py +114 -8
- {tccli-3.0.1206.1.dist-info → tccli-3.0.1207.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1206.1.dist-info → tccli-3.0.1207.1.dist-info}/RECORD +39 -39
- {tccli-3.0.1206.1.dist-info → tccli-3.0.1207.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1206.1.dist-info → tccli-3.0.1207.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1206.1.dist-info → tccli-3.0.1207.1.dist-info}/license_files/LICENSE +0 -0
@@ -582,7 +582,7 @@
|
|
582
582
|
"status": "online"
|
583
583
|
},
|
584
584
|
"ModifyExtendedService": {
|
585
|
-
"document": "
|
585
|
+
"document": "管理企业扩展服务\n\n- **直接开通的情形:** 若在操作过程中接口没有返回跳转链接,这表明无需进行任何跳转操作。此时,相应的企业拓展服务将会直接被开通或关闭。\n\n- **需要法人或者超管签署开通协议的情形:** 当需要开通以下企业拓展服务时, 系统将返回一个操作链接。贵方需要主动联系并通知企业的超级管理员(超管)或法人。由他们点击该链接,完成服务的开通操作。\n - **OPEN_SERVER_SIGN(企业自动签)**\n - **OVERSEA_SIGN(企业与港澳台居民签署合同)**\n\n注意: `在调用此接口以管理企业扩展服务时,操作者(入参中的Operator)必须是企业的超级管理员(超管)或法人`\n\n\n对应的扩展服务能力可以在控制台的【扩展服务】中找到\n",
|
586
586
|
"input": "ModifyExtendedServiceRequest",
|
587
587
|
"name": "管理企业扩展服务",
|
588
588
|
"output": "ModifyExtendedServiceResponse",
|
@@ -5210,6 +5210,15 @@
|
|
5210
5210
|
"name": "ApproverComponentLimitTypes",
|
5211
5211
|
"required": false,
|
5212
5212
|
"type": "list"
|
5213
|
+
},
|
5214
|
+
{
|
5215
|
+
"disabled": false,
|
5216
|
+
"document": "禁止个人用户重复签署,默认不禁止,即同一用户可多次扫码签署多份合同。若要求同一用户仅能扫码签署一份合同,请传入true。",
|
5217
|
+
"example": "true",
|
5218
|
+
"member": "bool",
|
5219
|
+
"name": "ForbidPersonalMultipleSign",
|
5220
|
+
"required": false,
|
5221
|
+
"type": "bool"
|
5213
5222
|
}
|
5214
5223
|
],
|
5215
5224
|
"type": "object"
|
@@ -6512,7 +6521,7 @@
|
|
6512
6521
|
},
|
6513
6522
|
{
|
6514
6523
|
"disabled": false,
|
6515
|
-
"document": "要跳转到的页面类型
|
6524
|
+
"document": "要跳转到的页面类型 <ul><li> **0** : 腾讯电子签小程序个人首页 (默认) <a href=\"https://qcloudimg.tencent-cloud.cn/raw/a2667ea84ec993cc060321afe3191d65.jpg\" target=\"_blank\" >点击查看示例页面</a></li><li> **1** : 腾讯电子签小程序流程合同的详情页,即合同签署页面(注:`仅生成短链或者小程序Path时支持跳转合同详情页,即EndPoint传HTTP_SHORT_URL或者APP`)<a href=\"https://qcloudimg.tencent-cloud.cn/raw/446a679f09b1b7f40eb84e67face8acc.jpg\" target=\"_blank\" >点击查看示例页面</a></li><li> **2** : 腾讯电子签小程序合同列表页 <a href=\"https://qcloudimg.tencent-cloud.cn/raw/c7b80e44c1d68ae3270a6fc4939c7214.jpg\" target=\"_blank\" >点击查看示例页面</a> </li><li> **3** : 腾讯电子签小程序合同封面页 (注:`生成动态签署人补充链接时,必须指定为封面页`)<a href=\"https://qcloudimg.tencent-cloud.cn/raw/0d22cc587be4bf084877c151350c3bf7.jpg\" target=\"_blank\" >点击查看示例页面</a></li></ul>",
|
6516
6525
|
"example": "1",
|
6517
6526
|
"member": "uint64",
|
6518
6527
|
"name": "PathType",
|
@@ -9323,7 +9332,7 @@
|
|
9323
9332
|
"example": "10",
|
9324
9333
|
"member": "int64",
|
9325
9334
|
"name": "Limit",
|
9326
|
-
"required":
|
9335
|
+
"required": false,
|
9327
9336
|
"type": "int"
|
9328
9337
|
},
|
9329
9338
|
{
|
@@ -9991,6 +10000,45 @@
|
|
9991
10000
|
],
|
9992
10001
|
"usage": "both"
|
9993
10002
|
},
|
10003
|
+
"ExtendScene": {
|
10004
|
+
"document": "印章扩展信息",
|
10005
|
+
"members": [
|
10006
|
+
{
|
10007
|
+
"disabled": false,
|
10008
|
+
"document": "印章来源类型\n注意:此字段可能返回 null,表示取不到有效值。",
|
10009
|
+
"example": "无",
|
10010
|
+
"member": "string",
|
10011
|
+
"name": "GenerateType",
|
10012
|
+
"output_required": false,
|
10013
|
+
"required": false,
|
10014
|
+
"type": "string",
|
10015
|
+
"value_allowed_null": true
|
10016
|
+
},
|
10017
|
+
{
|
10018
|
+
"disabled": false,
|
10019
|
+
"document": "印章来源类型描述\n注意:此字段可能返回 null,表示取不到有效值。",
|
10020
|
+
"example": "无",
|
10021
|
+
"member": "string",
|
10022
|
+
"name": "GenerateTypeDesc",
|
10023
|
+
"output_required": false,
|
10024
|
+
"required": false,
|
10025
|
+
"type": "string",
|
10026
|
+
"value_allowed_null": true
|
10027
|
+
},
|
10028
|
+
{
|
10029
|
+
"disabled": false,
|
10030
|
+
"document": "印章来源logo\n注意:此字段可能返回 null,表示取不到有效值。",
|
10031
|
+
"example": "无",
|
10032
|
+
"member": "string",
|
10033
|
+
"name": "GenerateTypeLogo",
|
10034
|
+
"output_required": false,
|
10035
|
+
"required": false,
|
10036
|
+
"type": "string",
|
10037
|
+
"value_allowed_null": true
|
10038
|
+
}
|
10039
|
+
],
|
10040
|
+
"usage": "both"
|
10041
|
+
},
|
9994
10042
|
"FailedCreateRoleData": {
|
9995
10043
|
"document": "绑定角色失败信息",
|
9996
10044
|
"members": [
|
@@ -12132,7 +12180,7 @@
|
|
12132
12180
|
"members": [
|
12133
12181
|
{
|
12134
12182
|
"disabled": false,
|
12135
|
-
"document": "
|
12183
|
+
"document": "操作跳转链接\n<ul>\n<li><strong>有效期:</strong> 跳转链接的有效期为24小时。</li>\n<li><strong>无跳转链接返回的情况:</strong> 如果在操作过程中没有返回跳转链接,这意味着无需进行跳转操作。在这种情况下,服务将会直接被开通或关闭。\n<li><strong>有跳转链接返回的情况:</strong> 当操作类型为“OPEN”(开通服务),并且扩展服务类型为以下之一时, 系统将返回一个操作链接。当前操作人(超级管理员或法人)需要点击此链接,以完成服务的开通操作。\n\n<ul>\n<li><strong>OPEN_SERVER_SIGN</strong>(开放服务器签名)</li>\n<li><strong>OVERSEA_SIGN</strong>(海外签名)</li>\n</ul></li></li>\n</ul>",
|
12136
12184
|
"example": "https://res.ess.tencent.cn/cdn/h5-activity-dev/jump-mp.html?to=OPEN_SERVER_SIGN&request_token=xxxxx&organizationId=xxxxx&channelType=xxxxx&expired_time=1673428532&login=1&verify=1",
|
12137
12185
|
"member": "string",
|
12138
12186
|
"name": "OperateUrl",
|
@@ -12453,7 +12501,7 @@
|
|
12453
12501
|
"example": "无",
|
12454
12502
|
"member": "string",
|
12455
12503
|
"name": "SealId",
|
12456
|
-
"
|
12504
|
+
"output_required": true,
|
12457
12505
|
"type": "string",
|
12458
12506
|
"value_allowed_null": false
|
12459
12507
|
},
|
@@ -12463,7 +12511,7 @@
|
|
12463
12511
|
"example": "无",
|
12464
12512
|
"member": "string",
|
12465
12513
|
"name": "SealName",
|
12466
|
-
"
|
12514
|
+
"output_required": true,
|
12467
12515
|
"type": "string",
|
12468
12516
|
"value_allowed_null": false
|
12469
12517
|
},
|
@@ -12473,7 +12521,7 @@
|
|
12473
12521
|
"example": "无",
|
12474
12522
|
"member": "int64",
|
12475
12523
|
"name": "CreateOn",
|
12476
|
-
"
|
12524
|
+
"output_required": true,
|
12477
12525
|
"type": "int",
|
12478
12526
|
"value_allowed_null": false
|
12479
12527
|
},
|
@@ -12483,7 +12531,7 @@
|
|
12483
12531
|
"example": "无",
|
12484
12532
|
"member": "string",
|
12485
12533
|
"name": "Creator",
|
12486
|
-
"
|
12534
|
+
"output_required": true,
|
12487
12535
|
"type": "string",
|
12488
12536
|
"value_allowed_null": false
|
12489
12537
|
},
|
@@ -12493,7 +12541,7 @@
|
|
12493
12541
|
"example": "无",
|
12494
12542
|
"member": "string",
|
12495
12543
|
"name": "SealPolicyId",
|
12496
|
-
"
|
12544
|
+
"output_required": true,
|
12497
12545
|
"type": "string",
|
12498
12546
|
"value_allowed_null": false
|
12499
12547
|
},
|
@@ -12503,7 +12551,7 @@
|
|
12503
12551
|
"example": "无",
|
12504
12552
|
"member": "string",
|
12505
12553
|
"name": "SealStatus",
|
12506
|
-
"
|
12554
|
+
"output_required": true,
|
12507
12555
|
"type": "string",
|
12508
12556
|
"value_allowed_null": false
|
12509
12557
|
},
|
@@ -12513,7 +12561,7 @@
|
|
12513
12561
|
"example": "无",
|
12514
12562
|
"member": "string",
|
12515
12563
|
"name": "FailReason",
|
12516
|
-
"
|
12564
|
+
"output_required": true,
|
12517
12565
|
"type": "string",
|
12518
12566
|
"value_allowed_null": true
|
12519
12567
|
},
|
@@ -12523,7 +12571,7 @@
|
|
12523
12571
|
"example": "无",
|
12524
12572
|
"member": "string",
|
12525
12573
|
"name": "Url",
|
12526
|
-
"
|
12574
|
+
"output_required": true,
|
12527
12575
|
"type": "string",
|
12528
12576
|
"value_allowed_null": false
|
12529
12577
|
},
|
@@ -12533,7 +12581,7 @@
|
|
12533
12581
|
"example": "无",
|
12534
12582
|
"member": "string",
|
12535
12583
|
"name": "SealType",
|
12536
|
-
"
|
12584
|
+
"output_required": true,
|
12537
12585
|
"type": "string",
|
12538
12586
|
"value_allowed_null": false
|
12539
12587
|
},
|
@@ -12543,7 +12591,7 @@
|
|
12543
12591
|
"example": "无",
|
12544
12592
|
"member": "bool",
|
12545
12593
|
"name": "IsAllTime",
|
12546
|
-
"
|
12594
|
+
"output_required": true,
|
12547
12595
|
"type": "bool",
|
12548
12596
|
"value_allowed_null": false
|
12549
12597
|
},
|
@@ -12553,9 +12601,19 @@
|
|
12553
12601
|
"example": "无",
|
12554
12602
|
"member": "AuthorizedUser",
|
12555
12603
|
"name": "AuthorizedUsers",
|
12556
|
-
"
|
12604
|
+
"output_required": true,
|
12557
12605
|
"type": "list",
|
12558
12606
|
"value_allowed_null": true
|
12607
|
+
},
|
12608
|
+
{
|
12609
|
+
"disabled": false,
|
12610
|
+
"document": "印章扩展数据信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
12611
|
+
"example": "无",
|
12612
|
+
"member": "ExtendScene",
|
12613
|
+
"name": "ExtendScene",
|
12614
|
+
"output_required": false,
|
12615
|
+
"type": "object",
|
12616
|
+
"value_allowed_null": true
|
12559
12617
|
}
|
12560
12618
|
],
|
12561
12619
|
"usage": "out"
|
@@ -2827,6 +2827,58 @@ def doCreateBatchInitOrganizationUrl(args, parsed_globals):
|
|
2827
2827
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2828
2828
|
|
2829
2829
|
|
2830
|
+
def doChannelDescribeAccountBillDetail(args, parsed_globals):
|
2831
|
+
g_param = parse_global_arg(parsed_globals)
|
2832
|
+
|
2833
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2834
|
+
cred = credential.CVMRoleCredential()
|
2835
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2836
|
+
cred = credential.STSAssumeRoleCredential(
|
2837
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2838
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2839
|
+
)
|
2840
|
+
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):
|
2841
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2842
|
+
else:
|
2843
|
+
cred = credential.Credential(
|
2844
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2845
|
+
)
|
2846
|
+
http_profile = HttpProfile(
|
2847
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2848
|
+
reqMethod="POST",
|
2849
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2850
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2851
|
+
)
|
2852
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2853
|
+
if g_param[OptionsDefine.Language]:
|
2854
|
+
profile.language = g_param[OptionsDefine.Language]
|
2855
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2856
|
+
client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile)
|
2857
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2858
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2859
|
+
model = models.ChannelDescribeAccountBillDetailRequest()
|
2860
|
+
model.from_json_string(json.dumps(args))
|
2861
|
+
start_time = time.time()
|
2862
|
+
while True:
|
2863
|
+
rsp = client.ChannelDescribeAccountBillDetail(model)
|
2864
|
+
result = rsp.to_json_string()
|
2865
|
+
try:
|
2866
|
+
json_obj = json.loads(result)
|
2867
|
+
except TypeError as e:
|
2868
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2869
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2870
|
+
break
|
2871
|
+
cur_time = time.time()
|
2872
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2873
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2874
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2875
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2876
|
+
else:
|
2877
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2878
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2879
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2880
|
+
|
2881
|
+
|
2830
2882
|
def doSendFlow(args, parsed_globals):
|
2831
2883
|
g_param = parse_global_arg(parsed_globals)
|
2832
2884
|
|
@@ -6898,6 +6950,7 @@ ACTION_MAP = {
|
|
6898
6950
|
"DescribeResourceUrlsByFlows": doDescribeResourceUrlsByFlows,
|
6899
6951
|
"DescribeChannelOrganizations": doDescribeChannelOrganizations,
|
6900
6952
|
"CreateBatchInitOrganizationUrl": doCreateBatchInitOrganizationUrl,
|
6953
|
+
"ChannelDescribeAccountBillDetail": doChannelDescribeAccountBillDetail,
|
6901
6954
|
"SendFlow": doSendFlow,
|
6902
6955
|
"DescribeFaceIdPhotos": doDescribeFaceIdPhotos,
|
6903
6956
|
"ChannelDescribeFlowComponents": doChannelDescribeFlowComponents,
|
@@ -224,6 +224,13 @@
|
|
224
224
|
"output": "ChannelDeleteSealPoliciesResponse",
|
225
225
|
"status": "online"
|
226
226
|
},
|
227
|
+
"ChannelDescribeAccountBillDetail": {
|
228
|
+
"document": "通过此接口(ChannelDescribeAccountBillDetail)查询该第三方平台子客账号计费详情。\n<ul>\n<li>对于渠道客户企业的查询,通过指定渠道企业的唯一标识(Agent.ProxyOrganizationId)来查询子客账号消耗详情</li>\n</ul>",
|
229
|
+
"input": "ChannelDescribeAccountBillDetailRequest",
|
230
|
+
"name": "查询渠道子客账号计费详情",
|
231
|
+
"output": "ChannelDescribeAccountBillDetailResponse",
|
232
|
+
"status": "online"
|
233
|
+
},
|
227
234
|
"ChannelDescribeBillUsageDetail": {
|
228
235
|
"document": "通过此接口(ChannelDescribeBillUsageDetail)查询该第三方平台子客企业的套餐消耗详情。可以支持单个子客和整个应用下所有子客的查询。\n<ul>\n<li>对于单个子客企业的查询,通过指定子客的唯一标识(Agent.ProxyOrganizationOpenId)来查询该子客消耗详情</li>\n<li>对于整个应用下所有企业的查询,不需要指定子客的唯一标识,只需要传入渠道应用标识(Agent.AppId)直接查询整个应用下所有子客企业消耗详情</li>\n</ul>",
|
229
236
|
"input": "ChannelDescribeBillUsageDetailRequest",
|
@@ -505,7 +512,7 @@
|
|
505
512
|
"status": "online"
|
506
513
|
},
|
507
514
|
"ModifyExtendedService": {
|
508
|
-
"document": "
|
515
|
+
"document": "管理企业扩展服务\n\n- **直接开通的情形:** 若在操作过程中接口没有返回跳转链接,这表明无需进行任何跳转操作。此时,相应的企业拓展服务将会直接被开通或关闭。\n\n- **需要法人或者超管签署开通协议的情形:** 当需要开通以下企业拓展服务时, 系统将返回一个操作链接。贵方需要主动联系并通知企业的超级管理员(超管)或法人。由他们点击该链接,完成服务的开通操作。\n - **AUTO_SIGN(企业自动签)**\n - **DOWNLOAD_FLOW(授权渠道下载合同)**\n - **OVERSEA_SIGN(企业与港澳台居民签署合同)**\n\n注意: `在调用此接口以管理企业扩展服务时,操作者( Agent.ProxyOperator.OpenId)必须是企业的超级管理员(超管)或法人`\n\n\n对应的扩展服务能力可以在控制台的【扩展服务】中找到\n",
|
509
516
|
"input": "ModifyExtendedServiceRequest",
|
510
517
|
"name": "管理企业扩展服务",
|
511
518
|
"output": "ModifyExtendedServiceResponse",
|
@@ -2891,6 +2898,15 @@
|
|
2891
2898
|
"name": "Operator",
|
2892
2899
|
"required": false,
|
2893
2900
|
"type": "object"
|
2901
|
+
},
|
2902
|
+
{
|
2903
|
+
"disabled": false,
|
2904
|
+
"document": "禁止个人用户重复签署,默认不禁止,即同一用户可多次扫码签署多份合同。若要求同一用户仅能扫码签署一份合同,请传入true。",
|
2905
|
+
"example": "无",
|
2906
|
+
"member": "bool",
|
2907
|
+
"name": "ForbidPersonalMultipleSign",
|
2908
|
+
"required": false,
|
2909
|
+
"type": "bool"
|
2894
2910
|
}
|
2895
2911
|
],
|
2896
2912
|
"type": "object"
|
@@ -4139,6 +4155,83 @@
|
|
4139
4155
|
],
|
4140
4156
|
"type": "object"
|
4141
4157
|
},
|
4158
|
+
"ChannelDescribeAccountBillDetailRequest": {
|
4159
|
+
"document": "ChannelDescribeAccountBillDetail请求参数结构体",
|
4160
|
+
"members": [
|
4161
|
+
{
|
4162
|
+
"disabled": false,
|
4163
|
+
"document": "关于渠道应用的相关信息,包括渠道应用标识、第三方平台子客企业标识及第三方平台子客企业中的员工标识等内容,您可以参阅开发者中心所提供的 Agent 结构体以获取详细定义。\n\n此接口下面信息必填。\n<ul>\n<li>渠道应用标识: Agent.AppId</li>\n</ul>\n第三方平台子客企业必须已经经过实名认证",
|
4164
|
+
"example": "无",
|
4165
|
+
"member": "Agent",
|
4166
|
+
"name": "Agent",
|
4167
|
+
"required": true,
|
4168
|
+
"type": "object"
|
4169
|
+
}
|
4170
|
+
],
|
4171
|
+
"type": "object"
|
4172
|
+
},
|
4173
|
+
"ChannelDescribeAccountBillDetailResponse": {
|
4174
|
+
"document": "ChannelDescribeAccountBillDetail返回参数结构体",
|
4175
|
+
"members": [
|
4176
|
+
{
|
4177
|
+
"disabled": false,
|
4178
|
+
"document": "当前绑定中账号数量",
|
4179
|
+
"example": "100",
|
4180
|
+
"member": "int64",
|
4181
|
+
"name": "BoundAccountsNumber",
|
4182
|
+
"output_required": false,
|
4183
|
+
"type": "int",
|
4184
|
+
"value_allowed_null": false
|
4185
|
+
},
|
4186
|
+
{
|
4187
|
+
"disabled": false,
|
4188
|
+
"document": "剩余可绑定账号数量",
|
4189
|
+
"example": "15",
|
4190
|
+
"member": "int64",
|
4191
|
+
"name": "RemainAvailableAccountsNumber",
|
4192
|
+
"output_required": false,
|
4193
|
+
"type": "int",
|
4194
|
+
"value_allowed_null": false
|
4195
|
+
},
|
4196
|
+
{
|
4197
|
+
"disabled": false,
|
4198
|
+
"document": "已失效账号数量",
|
4199
|
+
"example": "25",
|
4200
|
+
"member": "int64",
|
4201
|
+
"name": "InvalidAccountsNumber",
|
4202
|
+
"output_required": false,
|
4203
|
+
"type": "int",
|
4204
|
+
"value_allowed_null": false
|
4205
|
+
},
|
4206
|
+
{
|
4207
|
+
"disabled": false,
|
4208
|
+
"document": "购买数量",
|
4209
|
+
"example": "25",
|
4210
|
+
"member": "int64",
|
4211
|
+
"name": "TotalBuyAccountsNumber",
|
4212
|
+
"output_required": false,
|
4213
|
+
"type": "int",
|
4214
|
+
"value_allowed_null": false
|
4215
|
+
},
|
4216
|
+
{
|
4217
|
+
"disabled": false,
|
4218
|
+
"document": "赠送数量",
|
4219
|
+
"example": "25",
|
4220
|
+
"member": "int64",
|
4221
|
+
"name": "TotalGiftAccountsNumber",
|
4222
|
+
"output_required": false,
|
4223
|
+
"type": "int",
|
4224
|
+
"value_allowed_null": false
|
4225
|
+
},
|
4226
|
+
{
|
4227
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
4228
|
+
"member": "string",
|
4229
|
+
"name": "RequestId",
|
4230
|
+
"type": "string"
|
4231
|
+
}
|
4232
|
+
],
|
4233
|
+
"type": "object"
|
4234
|
+
},
|
4142
4235
|
"ChannelDescribeBillUsageDetailRequest": {
|
4143
4236
|
"document": "ChannelDescribeBillUsageDetail请求参数结构体",
|
4144
4237
|
"members": [
|
@@ -10070,7 +10163,7 @@
|
|
10070
10163
|
"members": [
|
10071
10164
|
{
|
10072
10165
|
"disabled": false,
|
10073
|
-
"document": "
|
10166
|
+
"document": "操作跳转链接\n<ul><li><strong>链接有效期:</strong> 跳转链接的有效期为24小时。</li>\n<li><strong>没有返回链接的情形:</strong> 如果在操作时没有返回跳转链接,说明此次操作无需进行跳转,服务将会直接被开通或关闭。</li>\n<li><strong>返回链接的情形:</strong> 当操作类型为“OPEN”(开通服务),并且扩展服务类型为“AUTO_SIGN”(自动签名)、“DOWNLOAD_FLOW”(下载流程)或“OVERSEA_SIGN”(海外签名)时,系统将返回一个操作链接。收到操作链接后,贵方需主动联系超级管理员(超管)或法人。由超管或法人点击链接,以完成服务的开通操作。</li>\n</ul>\n\n",
|
10074
10167
|
"example": "https://res.ess.tencent.cn/cdn/h5-activity-dev/jump-mp.html?to=OPEN_SERVER_SIGN&request_token=xxxxx&organizationId=xxxxx&channelType=xxxxx&expired_time=1673428532&login=1&verify=1",
|
10075
10168
|
"member": "string",
|
10076
10169
|
"name": "OperateUrl",
|
@@ -574,6 +574,14 @@
|
|
574
574
|
"title": "删除单个用户的印章授权"
|
575
575
|
}
|
576
576
|
],
|
577
|
+
"ChannelDescribeAccountBillDetail": [
|
578
|
+
{
|
579
|
+
"document": "查询平台子客(对应的OrganizationOpenId为org_dianziqian)计费详情",
|
580
|
+
"input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChannelDescribeAccountBillDetail\n<公共请求参数>\n\n{\n \"Agent\": {\n \"ProxyOperator\": {\n \"OpenId\": \"n9527\"\n },\n \"ProxyOrganizationOpenId\": \"org_dianziqian\",\n \"AppId\": \"yDCWpUUckpvv76rqUxjIE8qvXHjCqG4t\"\n }\n}",
|
581
|
+
"output": "{\n \"Response\": {\n \"BoundAccountsNumber\": 1,\n \"InvalidAccountsNumber\": 0,\n \"RemainAvailableAccountsNumber\": 9,\n \"RequestId\": \"d8e66faf-6a5e-4592-9a8e-180b00577571\",\n \"TotalBuyAccountsNumber\": 0,\n \"TotalGiftAccountsNumber\": 9\n }\n}",
|
582
|
+
"title": "查询该第三方平台子客账号计费详情"
|
583
|
+
}
|
584
|
+
],
|
577
585
|
"ChannelDescribeBillUsageDetail": [
|
578
586
|
{
|
579
587
|
"document": "",
|
@@ -2773,6 +2773,58 @@ def doResetCloudStorage(args, parsed_globals):
|
|
2773
2773
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2774
2774
|
|
2775
2775
|
|
2776
|
+
def doInvokeExternalSourceAIServiceTask(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.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
2803
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2804
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2805
|
+
model = models.InvokeExternalSourceAIServiceTaskRequest()
|
2806
|
+
model.from_json_string(json.dumps(args))
|
2807
|
+
start_time = time.time()
|
2808
|
+
while True:
|
2809
|
+
rsp = client.InvokeExternalSourceAIServiceTask(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 doDescribeLoRaFrequency(args, parsed_globals):
|
2777
2829
|
g_param = parse_global_arg(parsed_globals)
|
2778
2830
|
|
@@ -5477,6 +5529,58 @@ def doDescribeBatchProduction(args, parsed_globals):
|
|
5477
5529
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5478
5530
|
|
5479
5531
|
|
5532
|
+
def doCreateExternalSourceAIServiceTask(args, parsed_globals):
|
5533
|
+
g_param = parse_global_arg(parsed_globals)
|
5534
|
+
|
5535
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5536
|
+
cred = credential.CVMRoleCredential()
|
5537
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5538
|
+
cred = credential.STSAssumeRoleCredential(
|
5539
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5540
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5541
|
+
)
|
5542
|
+
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):
|
5543
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5544
|
+
else:
|
5545
|
+
cred = credential.Credential(
|
5546
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5547
|
+
)
|
5548
|
+
http_profile = HttpProfile(
|
5549
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5550
|
+
reqMethod="POST",
|
5551
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5552
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5553
|
+
)
|
5554
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5555
|
+
if g_param[OptionsDefine.Language]:
|
5556
|
+
profile.language = g_param[OptionsDefine.Language]
|
5557
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5558
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
5559
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5560
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5561
|
+
model = models.CreateExternalSourceAIServiceTaskRequest()
|
5562
|
+
model.from_json_string(json.dumps(args))
|
5563
|
+
start_time = time.time()
|
5564
|
+
while True:
|
5565
|
+
rsp = client.CreateExternalSourceAIServiceTask(model)
|
5566
|
+
result = rsp.to_json_string()
|
5567
|
+
try:
|
5568
|
+
json_obj = json.loads(result)
|
5569
|
+
except TypeError as e:
|
5570
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5571
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5572
|
+
break
|
5573
|
+
cur_time = time.time()
|
5574
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5575
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5576
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5577
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5578
|
+
else:
|
5579
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5580
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5581
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5582
|
+
|
5583
|
+
|
5480
5584
|
def doActivateTWeCallLicense(args, parsed_globals):
|
5481
5585
|
g_param = parse_global_arg(parsed_globals)
|
5482
5586
|
|
@@ -7517,6 +7621,7 @@ ACTION_MAP = {
|
|
7517
7621
|
"DescribeFirmwareTask": doDescribeFirmwareTask,
|
7518
7622
|
"GetPositionSpaceList": doGetPositionSpaceList,
|
7519
7623
|
"ResetCloudStorage": doResetCloudStorage,
|
7624
|
+
"InvokeExternalSourceAIServiceTask": doInvokeExternalSourceAIServiceTask,
|
7520
7625
|
"DescribeLoRaFrequency": doDescribeLoRaFrequency,
|
7521
7626
|
"ModifyPositionSpace": doModifyPositionSpace,
|
7522
7627
|
"DescribeCloudStorageTime": doDescribeCloudStorageTime,
|
@@ -7569,6 +7674,7 @@ ACTION_MAP = {
|
|
7569
7674
|
"GetStudioProductList": doGetStudioProductList,
|
7570
7675
|
"DescribeModelDefinition": doDescribeModelDefinition,
|
7571
7676
|
"DescribeBatchProduction": doDescribeBatchProduction,
|
7677
|
+
"CreateExternalSourceAIServiceTask": doCreateExternalSourceAIServiceTask,
|
7572
7678
|
"ActivateTWeCallLicense": doActivateTWeCallLicense,
|
7573
7679
|
"UpdateDeviceTWeCallAuthorizeStatus": doUpdateDeviceTWeCallAuthorizeStatus,
|
7574
7680
|
"DeleteCloudStorageEvent": doDeleteCloudStorageEvent,
|