tccli 3.0.1172.1__py2.py3-none-any.whl → 3.0.1174.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/asr/v20190614/api.json +2 -2
  3. tccli/services/ccc/v20200210/api.json +9 -0
  4. tccli/services/cfg/v20210820/api.json +25 -0
  5. tccli/services/cls/v20201016/api.json +148 -16
  6. tccli/services/cls/v20201016/examples.json +5 -5
  7. tccli/services/cwp/v20180228/api.json +41 -14
  8. tccli/services/dlc/v20210125/api.json +137 -19
  9. tccli/services/dlc/v20210125/examples.json +6 -6
  10. tccli/services/ess/ess_client.py +57 -4
  11. tccli/services/ess/v20201111/api.json +138 -0
  12. tccli/services/ess/v20201111/examples.json +8 -0
  13. tccli/services/essbasic/v20210526/api.json +11 -0
  14. tccli/services/facefusion/v20181201/api.json +15 -21
  15. tccli/services/facefusion/v20220927/api.json +17 -21
  16. tccli/services/goosefs/v20220519/api.json +56 -11
  17. tccli/services/hunyuan/v20230901/api.json +9 -0
  18. tccli/services/iotexplorer/v20190423/api.json +20 -10
  19. tccli/services/iss/v20230517/api.json +58 -0
  20. tccli/services/iss/v20230517/examples.json +13 -7
  21. tccli/services/lighthouse/v20200324/api.json +18 -0
  22. tccli/services/mna/mna_client.py +53 -0
  23. tccli/services/mna/v20210119/api.json +80 -0
  24. tccli/services/mna/v20210119/examples.json +8 -0
  25. tccli/services/mps/v20190612/api.json +47 -5
  26. tccli/services/ms/v20180408/api.json +46 -46
  27. tccli/services/ocr/ocr_client.py +413 -307
  28. tccli/services/ocr/v20181119/api.json +166 -4
  29. tccli/services/ocr/v20181119/examples.json +16 -0
  30. tccli/services/tdmq/v20200217/api.json +25 -6
  31. tccli/services/teo/v20220901/api.json +2 -2
  32. tccli/services/tmt/v20180321/api.json +1 -1
  33. tccli/services/trtc/v20190722/api.json +22 -0
  34. tccli/services/vpc/v20170312/api.json +93 -0
  35. {tccli-3.0.1172.1.dist-info → tccli-3.0.1174.1.dist-info}/METADATA +2 -2
  36. {tccli-3.0.1172.1.dist-info → tccli-3.0.1174.1.dist-info}/RECORD +39 -39
  37. {tccli-3.0.1172.1.dist-info → tccli-3.0.1174.1.dist-info}/WHEEL +0 -0
  38. {tccli-3.0.1172.1.dist-info → tccli-3.0.1174.1.dist-info}/entry_points.txt +0 -0
  39. {tccli-3.0.1172.1.dist-info → tccli-3.0.1174.1.dist-info}/license_files/LICENSE +0 -0
@@ -2248,6 +2248,24 @@
2248
2248
  "name": "SNCode",
2249
2249
  "required": false,
2250
2250
  "type": "string"
2251
+ },
2252
+ {
2253
+ "disabled": false,
2254
+ "document": "RTMP推流地址自定义AppName(仅RTMP需要,支持英文、数字组合限制32个字符内)",
2255
+ "example": "live",
2256
+ "member": "string",
2257
+ "name": "AppName",
2258
+ "required": false,
2259
+ "type": "string"
2260
+ },
2261
+ {
2262
+ "disabled": false,
2263
+ "document": "RTMP推流地址自定义StreamName(仅RTMP需要,支持英文、数字组合限制32个字符内)",
2264
+ "example": "00cuDZBadN",
2265
+ "member": "string",
2266
+ "name": "StreamName",
2267
+ "required": false,
2268
+ "type": "string"
2251
2269
  }
2252
2270
  ],
2253
2271
  "type": "object"
@@ -3444,6 +3462,15 @@
3444
3462
  "name": "ClusterId",
3445
3463
  "required": true,
3446
3464
  "type": "string"
3465
+ },
3466
+ {
3467
+ "disabled": false,
3468
+ "document": "域名类型,0:拉流域名 1:推流域名",
3469
+ "example": "1",
3470
+ "member": "int64",
3471
+ "name": "DomainType",
3472
+ "required": false,
3473
+ "type": "int"
3447
3474
  }
3448
3475
  ],
3449
3476
  "type": "object"
@@ -3895,6 +3922,26 @@
3895
3922
  "output_required": false,
3896
3923
  "type": "int",
3897
3924
  "value_allowed_null": true
3925
+ },
3926
+ {
3927
+ "disabled": false,
3928
+ "document": "RTMP推流地址自定义appName\n注意:此字段可能返回 null,表示取不到有效值。",
3929
+ "example": "live",
3930
+ "member": "string",
3931
+ "name": "AppName",
3932
+ "output_required": false,
3933
+ "type": "string",
3934
+ "value_allowed_null": true
3935
+ },
3936
+ {
3937
+ "disabled": false,
3938
+ "document": "RTMP推流地址自定义streamName\n注意:此字段可能返回 null,表示取不到有效值。",
3939
+ "example": "00cuDZBadN",
3940
+ "member": "string",
3941
+ "name": "StreamName",
3942
+ "output_required": false,
3943
+ "type": "string",
3944
+ "value_allowed_null": true
3898
3945
  }
3899
3946
  ],
3900
3947
  "usage": "out"
@@ -4107,6 +4154,16 @@
4107
4154
  "output_required": false,
4108
4155
  "type": "string",
4109
4156
  "value_allowed_null": true
4157
+ },
4158
+ {
4159
+ "disabled": false,
4160
+ "document": "域名类型 0:拉流域名 1:推流域名\n注意:此字段可能返回 null,表示取不到有效值。",
4161
+ "example": "0",
4162
+ "member": "int64",
4163
+ "name": "DomainType",
4164
+ "output_required": false,
4165
+ "type": "int",
4166
+ "value_allowed_null": true
4110
4167
  }
4111
4168
  ],
4112
4169
  "usage": "out"
@@ -4188,6 +4245,7 @@
4188
4245
  "example": "无",
4189
4246
  "member": "DescribeDomainData",
4190
4247
  "name": "Data",
4248
+ "output_required": true,
4191
4249
  "type": "list",
4192
4250
  "value_allowed_null": false
4193
4251
  },
@@ -85,13 +85,13 @@
85
85
  "AddUserDevice": [
86
86
  {
87
87
  "document": " ",
88
- "input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddUserDevice\n<公共请求参数>\n\n{\n \"Name\": \"rtmp10087\",\n \"AccessProtocol\": 1,\n \"Type\": 1,\n \"OrganizationId\": \"192\",\n \"ClusterId\": \"4169d92e-60ad-4c16-ac7e-d313abdd0790\"\n}",
88
+ "input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddUserDevice\n<公共请求参数>\n\n{\n \"Name\": \"rtmp10087\",\n \"AccessProtocol\": 1,\n \"Type\": 1,\n \"OrganizationId\": \"192\",\n \"ClusterId\": \"4169d92e-****-****-****-************\"\n}",
89
89
  "output": "{\n \"Response\": {\n \"Data\": {\n \"AccessProtocol\": 1,\n \"AppId\": 1300000000,\n \"ClusterId\": \"4169d92e-****-4c16-****-d313****0790\",\n \"ClusterName\": \"上海一区\",\n \"Code\": \"0******Ofl\",\n \"Description\": \"\",\n \"GatewayId\": \"\",\n \"DeviceId\": \"********-53e4-****-a16e-*************\",\n \"Ip\": \"\",\n \"Name\": \"rtmp10087\",\n \"OrganizationId\": 1000192,\n \"Password\": \"\",\n \"Port\": 0,\n \"TransportProtocol\": 0,\n \"Type\": 1,\n \"Username\": \"\",\n \"ProtocolType\": 1,\n \"Status\": 1\n },\n \"RequestId\": \"6836e76d-8e7d-48d3-98c2-bc0df3bf23c2\"\n }\n}",
90
90
  "title": "rtmp成功"
91
91
  },
92
92
  {
93
93
  "document": " ",
94
- "input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddUserDevice\n<公共请求参数>\n\n{\n \"Name\": \"rtmp10086\",\n \"AccessProtocol\": 1,\n \"Type\": 2,\n \"OrganizationId\": \"10092\",\n \"ClusterId\": \"12345678-abcd-efgh-ijkl-1234567890abcd\"\n}",
94
+ "input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddUserDevice\n<公共请求参数>\n\n{\n \"Name\": \"rtmp10086\",\n \"AccessProtocol\": 1,\n \"Type\": 2,\n \"OrganizationId\": \"10092\",\n \"ClusterId\": \"12345678-****-****-****-************\"\n}",
95
95
  "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameterValue\",\n \"Message\": \"无效的参数\"\n },\n \"RequestId\": \"1647459e-2715-4adb-a074-0c3d4df7d6a4\"\n }\n}",
96
96
  "title": "设备类型错误"
97
97
  },
@@ -100,6 +100,12 @@
100
100
  "input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddUserDevice\n<公共请求参数>\n\n{\n \"Name\": \"rtmp10086\",\n \"AccessProtocol\": 1,\n \"Type\": 2,\n \"OrganizationId\": \"10092\",\n \"ClusterId\": \"********-60ad-*****-ac7e-d******dd0790\"\n}",
101
101
  "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameterValue.InvalidDeviceType\",\n \"Message\": \"无效的设备类型\"\n },\n \"RequestId\": \"d4a82b07-08a2-47ba-8f22-04ce429a0dcd\"\n }\n}",
102
102
  "title": "无效的设备类型"
103
+ },
104
+ {
105
+ "document": "成功",
106
+ "input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddUserDevice\n<公共请求参数>\n\n{\n \"Name\": \"testrtmp\",\n \"AccessProtocol\": 1,\n \"Type\": 1,\n \"OrganizationId\": \"189\",\n \"ClusterId\": \"4169d92e-****-****-****-************\",\n \"TransportProtocol\": 0,\n \"Password\": \"123\",\n \"ProtocolType\": 0,\n \"AppName\": \"testapp\",\n \"StreamName\": \"teststream\"\n}",
107
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"AccessProtocol\": 1,\n \"AppId\": 1300056079,\n \"ClusterId\": \"4169d92e-****-****-****-************\",\n \"ClusterName\": \"上海一区\",\n \"Code\": \"0HQq******\",\n \"Description\": \"\",\n \"DeviceId\": \"f1f9baae-****-****-****-************\",\n \"GatewayId\": \"\",\n \"Ip\": \"\",\n \"Name\": \"testrtmp\",\n \"OrganizationId\": 189,\n \"Password\": \"123\",\n \"Port\": 0,\n \"ProtocolType\": 0,\n \"Status\": 0,\n \"TransportProtocol\": 0,\n \"Type\": 1,\n \"Username\": \"\"\n },\n \"RequestId\": \"56d8591d-85cb-498d-a5b6-52133305e69c\"\n }\n}",
108
+ "title": "success"
103
109
  }
104
110
  ],
105
111
  "BatchOperateDevice": [
@@ -299,7 +305,7 @@
299
305
  "DescribeCNAME": [
300
306
  {
301
307
  "document": " ",
302
- "input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCNAME\n<公共请求参数>\n\n{\n \"ClusterId\": \"********-****-****-****-************\"\n}",
308
+ "input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCNAME\n<公共请求参数>\n\n{\n \"ClusterId\": \"********-****-****-****-************\",\n \"DomainType\": 0\n}",
303
309
  "output": "{\n \"Response\": {\n \"Data\": \"****************.play-ivc.ap-shanghai.tencentivc.cn\",\n \"RequestId\": \"91297e34-b7bc-4d90-9c14-20bcd08f0db4\"\n }\n}",
304
310
  "title": "成功"
305
311
  }
@@ -338,7 +344,7 @@
338
344
  {
339
345
  "document": " ",
340
346
  "input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDomain\n<公共请求参数>\n\n{}",
341
- "output": "{\n \"Response\": {\n \"Data\": [\n {\n \"AppId\": 1300000000,\n \"ClusterId\": \"********-****-****-****-**********\",\n \"ClusterName\": \"上海一区\",\n \"HaveCert\": 0,\n \"Id\": \"********-****-****-****-**********\",\n \"InternalDomain\": \"******************************.play-ivc.tencentivc.cn\",\n \"PlayDomain\": \"******.com.cn\"\n }\n ],\n \"RequestId\": \"7c69cd07-ee8e-4682-ab63-64a2e94d24f9\"\n }\n}",
347
+ "output": "{\n \"Response\": {\n \"Data\": [\n {\n \"AppId\": 1300000000,\n \"ClusterId\": \"********-****-****-****-**********\",\n \"ClusterName\": \"上海一区\",\n \"HaveCert\": 0,\n \"Id\": \"********-****-****-****-**********\",\n \"InternalDomain\": \"******************************.play-ivc.tencentivc.cn\",\n \"PlayDomain\": \"******.com.cn\",\n \"DomainType\": 0\n }\n ],\n \"RequestId\": \"7c69cd07-ee8e-4682-ab63-64a2e94d24f9\"\n }\n}",
342
348
  "title": "成功"
343
349
  }
344
350
  ],
@@ -491,8 +497,8 @@
491
497
  "DescribeUserDevice": [
492
498
  {
493
499
  "document": "ok",
494
- "input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserDevice\n<公共请求参数>\n\n{\n \"DeviceId\": \"da238a8c-****-4a5b-****-ddba25945b48\"\n}",
495
- "output": "{\n \"Response\": {\n \"Data\": {\n \"AccessProtocol\": 1,\n \"ClusterId\": \"12345678-abcd-efgh-ijkl-1234567890abcd\",\n \"ClusterName\": \"\",\n \"Code\": \"2*****vkVe\",\n \"Description\": \"\",\n \"GatewayId\": \"\",\n \"GatewayName\": \"\",\n \"DeviceId\": \"12345678-abcd-efgh-ijkl-1234567890abcd\",\n \"Ip\": \"\",\n \"Manufacturer\": \"\",\n \"Name\": \"iss-qta-dont-delete\",\n \"OrganizationId\": \"22\",\n \"Password\": \"\",\n \"Port\": 0,\n \"ProtocolType\": 0,\n \"ProtocolTypeName\": \"\",\n \"PushStreamUrl\": \"rtmp://81.**.54.**/live/2*****4vkVe\",\n \"Region\": \"\",\n \"SipDomain\": \"\",\n \"SipId\": \"\",\n \"SipIp\": \"\",\n \"SipPort\": 0,\n \"Status\": 0,\n \"TransportProtocol\": 0,\n \"Type\": 1,\n \"Username\": \"\"\n },\n \"RequestId\": \"c3e6cbee-7a30-49b0-8415-af3cc46fe257\"\n }\n}",
500
+ "input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserDevice\n<公共请求参数>\n\n{\n \"DeviceId\": \"da238a8c-****-4a5b-****-************\"\n}",
501
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"AccessProtocol\": 1,\n \"ClusterId\": \"********-****-****-****-************\",\n \"ClusterName\": \"\",\n \"Code\": \"2*****vkVe\",\n \"Description\": \"\",\n \"GatewayId\": \"\",\n \"GatewayName\": \"\",\n \"DeviceId\": \"da238a8c-****-4a5b-****-************\",\n \"Ip\": \"\",\n \"Manufacturer\": \"\",\n \"Name\": \"iss-qta-dont-delete\",\n \"OrganizationId\": \"22\",\n \"Password\": \"\",\n \"Port\": 0,\n \"ProtocolType\": 0,\n \"ProtocolTypeName\": \"\",\n \"PushStreamUrl\": \"rtmp://81.**.54.**/live/2*****4vkVe\",\n \"Region\": \"\",\n \"SipDomain\": \"\",\n \"SipId\": \"\",\n \"SipIp\": \"\",\n \"SipPort\": 0,\n \"Status\": 0,\n \"TransportProtocol\": 0,\n \"Type\": 1,\n \"Username\": \"\"\n },\n \"RequestId\": \"c3e6cbee-7a30-49b0-8415-af3cc46fe257\"\n }\n}",
496
502
  "title": "rtmp"
497
503
  },
498
504
  {
@@ -503,7 +509,7 @@
503
509
  },
504
510
  {
505
511
  "document": " ",
506
- "input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserDevice\n<公共请求参数>\n\n{\n \"DeviceId\": \"66666666-53e4-4a79-a16e-8504f8366a531\"\n}",
512
+ "input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserDevice\n<公共请求参数>\n\n{\n \"DeviceId\": \"66666666-****-****-****-************\"\n}",
507
513
  "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameterValue.InvalidDeviceId\",\n \"Message\": \"无效的设备Id\"\n },\n \"RequestId\": \"c3c7c853-e5cf-4829-87f8-375b0623d750\"\n }\n}",
508
514
  "title": "无效的设备Id错误"
509
515
  }
@@ -4231,6 +4231,24 @@
4231
4231
  "name": "Limit",
4232
4232
  "required": false,
4233
4233
  "type": "int"
4234
+ },
4235
+ {
4236
+ "disabled": false,
4237
+ "document": "指定排序字段 。取值范围: \"EXPIRED_TIME\":依据实例的到期时间排序。 \n 不传入此字段时, 优先返回实例状态为“待回收”的实例, 其余实例以“创建时间”倒序返回。",
4238
+ "example": "EXPIRED_TIME",
4239
+ "member": "string",
4240
+ "name": "OrderField",
4241
+ "required": false,
4242
+ "type": "string"
4243
+ },
4244
+ {
4245
+ "disabled": false,
4246
+ "document": "输出实例列表的排列顺序。取值范围:\n\"ASC\":升序排列。\n\"DESC\":降序排列。\n默认按升序排序。当传入该字段时,必须指定OrderField。",
4247
+ "example": "DESC",
4248
+ "member": "string",
4249
+ "name": "Order",
4250
+ "required": false,
4251
+ "type": "string"
4234
4252
  }
4235
4253
  ],
4236
4254
  "type": "object"
@@ -1005,6 +1005,58 @@ def doUpdateDevice(args, parsed_globals):
1005
1005
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1006
1006
 
1007
1007
 
1008
+ def doOrderPerLicense(args, parsed_globals):
1009
+ g_param = parse_global_arg(parsed_globals)
1010
+
1011
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1012
+ cred = credential.CVMRoleCredential()
1013
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1014
+ cred = credential.STSAssumeRoleCredential(
1015
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1016
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1017
+ )
1018
+ 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):
1019
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1020
+ else:
1021
+ cred = credential.Credential(
1022
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1023
+ )
1024
+ http_profile = HttpProfile(
1025
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1026
+ reqMethod="POST",
1027
+ endpoint=g_param[OptionsDefine.Endpoint],
1028
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1029
+ )
1030
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1031
+ if g_param[OptionsDefine.Language]:
1032
+ profile.language = g_param[OptionsDefine.Language]
1033
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1034
+ client = mod.MnaClient(cred, g_param[OptionsDefine.Region], profile)
1035
+ client._sdkVersion += ("_CLI_" + __version__)
1036
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1037
+ model = models.OrderPerLicenseRequest()
1038
+ model.from_json_string(json.dumps(args))
1039
+ start_time = time.time()
1040
+ while True:
1041
+ rsp = client.OrderPerLicense(model)
1042
+ result = rsp.to_json_string()
1043
+ try:
1044
+ json_obj = json.loads(result)
1045
+ except TypeError as e:
1046
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1047
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1048
+ break
1049
+ cur_time = time.time()
1050
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1051
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1052
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1053
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1054
+ else:
1055
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1056
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1057
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1058
+
1059
+
1008
1060
  def doGetNetMonitor(args, parsed_globals):
1009
1061
  g_param = parse_global_arg(parsed_globals)
1010
1062
 
@@ -2127,6 +2179,7 @@ ACTION_MAP = {
2127
2179
  "GetFlowStatisticByRegion": doGetFlowStatisticByRegion,
2128
2180
  "DeleteDevice": doDeleteDevice,
2129
2181
  "UpdateDevice": doUpdateDevice,
2182
+ "OrderPerLicense": doOrderPerLicense,
2130
2183
  "GetNetMonitor": doGetNetMonitor,
2131
2184
  "UpdateHardware": doUpdateHardware,
2132
2185
  "GetGroupDetail": doGetGroupDetail,
@@ -231,6 +231,13 @@
231
231
  "output": "OrderFlowPackageResponse",
232
232
  "status": "online"
233
233
  },
234
+ "OrderPerLicense": {
235
+ "document": "购买一次性授权License",
236
+ "input": "OrderPerLicenseRequest",
237
+ "name": "订购一次性授权License",
238
+ "output": "OrderPerLicenseResponse",
239
+ "status": "online"
240
+ },
234
241
  "SetNotifyUrl": {
235
242
  "document": "设置用户流量告警信息接口,通过该接口设置流量包告警阈值以及告警时回调的url和key",
236
243
  "input": "SetNotifyUrlRequest",
@@ -3858,6 +3865,79 @@
3858
3865
  ],
3859
3866
  "type": "object"
3860
3867
  },
3868
+ "OrderPerLicenseRequest": {
3869
+ "document": "OrderPerLicense请求参数结构体",
3870
+ "members": [
3871
+ {
3872
+ "disabled": false,
3873
+ "document": "购买永久授权License的设备ID,如果是厂商未激活设备采用HardwareId",
3874
+ "example": "\"mna-test1\"",
3875
+ "member": "string",
3876
+ "name": "DeviceId",
3877
+ "required": true,
3878
+ "type": "string"
3879
+ },
3880
+ {
3881
+ "disabled": false,
3882
+ "document": "设备类型,0: SDK,1: CPE,作为用户创建或激活设备时传0,作为厂商创建待激活设备时传1",
3883
+ "example": "0",
3884
+ "member": "int64",
3885
+ "name": "Type",
3886
+ "required": true,
3887
+ "type": "int"
3888
+ },
3889
+ {
3890
+ "disabled": false,
3891
+ "document": "购买失败后是否回滚(删除)设备,默认true,如果设备绑定了生效中的流量包则不能回滚。",
3892
+ "example": "true",
3893
+ "member": "bool",
3894
+ "name": "RollBack",
3895
+ "required": false,
3896
+ "type": "bool"
3897
+ },
3898
+ {
3899
+ "disabled": false,
3900
+ "document": "是否自动选择代金券,默认false。\n有多张券时的选择策略:按照可支付订单全部金额的券,先到期的券,可抵扣金额最大的券,余额最小的券,现金券 这个优先级进行扣券,且最多只抵扣一张券。",
3901
+ "example": "false",
3902
+ "member": "bool",
3903
+ "name": "AutoVoucher",
3904
+ "required": false,
3905
+ "type": "bool"
3906
+ },
3907
+ {
3908
+ "disabled": false,
3909
+ "document": "指定代金券ID。自动选择代金券时此参数无效。目前只允许传入一张代金券。\n注:若指定的代金券不符合订单抵扣条件,则正常支付,不扣券",
3910
+ "example": "[\"OLSKVPGO4KUIU8HFDTEST1\"]",
3911
+ "member": "string",
3912
+ "name": "VoucherIds",
3913
+ "required": false,
3914
+ "type": "list"
3915
+ }
3916
+ ],
3917
+ "type": "object"
3918
+ },
3919
+ "OrderPerLicenseResponse": {
3920
+ "document": "OrderPerLicense返回参数结构体",
3921
+ "members": [
3922
+ {
3923
+ "disabled": false,
3924
+ "document": "一次性授权License的资源ID",
3925
+ "example": "56d11777-50f7-4c60-9c89-e7076c8529a9-0",
3926
+ "member": "string",
3927
+ "name": "ResourceId",
3928
+ "output_required": true,
3929
+ "type": "string",
3930
+ "value_allowed_null": false
3931
+ },
3932
+ {
3933
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
3934
+ "member": "string",
3935
+ "name": "RequestId",
3936
+ "type": "string"
3937
+ }
3938
+ ],
3939
+ "type": "object"
3940
+ },
3861
3941
  "SetNotifyUrlRequest": {
3862
3942
  "document": "SetNotifyUrl请求参数结构体",
3863
3943
  "members": [
@@ -282,6 +282,14 @@
282
282
  "title": "示例1"
283
283
  }
284
284
  ],
285
+ "OrderPerLicense": [
286
+ {
287
+ "document": "",
288
+ "input": "POST / HTTP/1.1\nHost: mna.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OrderPerLicense\n<公共请求参数>\n\n{\n \"DeviceId\": \"abc\",\n \"Type\": 0,\n \"AutoVoucher\": true,\n \"VoucherIds\": [\n \"abc\"\n ]\n}",
289
+ "output": "{\n \"Response\": {\n \"RequestId\": \"1206563f-f13f-4647-aaa8-37fa86954cc4-1\",\n \"ResourceId\": \"56d11777-50f7-4c60-9c89-e7076c8529a9-0\"\n }\n}",
290
+ "title": "示例1"
291
+ }
292
+ ],
285
293
  "SetNotifyUrl": [
286
294
  {
287
295
  "document": "",
@@ -10642,7 +10642,7 @@
10642
10642
  {
10643
10643
  "disabled": false,
10644
10644
  "document": "转自适应码流模板唯一标识过滤条件,数组长度限制:100。",
10645
- "example": "[\"10001\\n\"]",
10645
+ "example": "[10001]",
10646
10646
  "member": "uint64",
10647
10647
  "name": "Definitions",
10648
10648
  "required": false,
@@ -19596,6 +19596,26 @@
19596
19596
  "output_required": true,
19597
19597
  "type": "string",
19598
19598
  "value_allowed_null": true
19599
+ },
19600
+ {
19601
+ "disabled": false,
19602
+ "document": "帧率分子部分\n注意:此字段可能返回 null,表示取不到有效值。",
19603
+ "example": "30",
19604
+ "member": "int64",
19605
+ "name": "FpsNumerator",
19606
+ "output_required": false,
19607
+ "type": "int",
19608
+ "value_allowed_null": true
19609
+ },
19610
+ {
19611
+ "disabled": false,
19612
+ "document": "帧率分母部分\n注意:此字段可能返回 null,表示取不到有效值。",
19613
+ "example": "1",
19614
+ "member": "int64",
19615
+ "name": "FpsDenominator",
19616
+ "output_required": false,
19617
+ "type": "int",
19618
+ "value_allowed_null": true
19599
19619
  }
19600
19620
  ],
19601
19621
  "usage": "out"
@@ -26759,7 +26779,7 @@
26759
26779
  },
26760
26780
  {
26761
26781
  "disabled": false,
26762
- "document": "视频帧率,取值范围:[0, 120],单位:Hz。 当取值为 0,表示帧率和原始视频保持一致。\n注意:自适应码率时取值范围是 [0, 60]",
26782
+ "document": "视频帧率,取值范围:\n当FpsDenominator的值为空时,范围:[0, 120],单位:Hz;\n当FpsDenominator的值不为空时,Fps/FpsDenominator的范围:[0,120]\n当取值为 0,表示帧率和原始视频保持一致。",
26763
26783
  "example": "0",
26764
26784
  "member": "int64",
26765
26785
  "name": "Fps",
@@ -26770,7 +26790,7 @@
26770
26790
  },
26771
26791
  {
26772
26792
  "disabled": false,
26773
- "document": "视频流的码率,取值范围:0 和 [128, 35000],单位:kbps。\n当取值为 0,表示视频码率和原始视频保持一致。",
26793
+ "document": "视频流的码率,取值范围:0 和 [128, 100000],单位:kbps。\n当取值为 0,表示视频码率和原始视频保持一致。",
26774
26794
  "example": "0",
26775
26795
  "member": "int64",
26776
26796
  "name": "Bitrate",
@@ -26855,6 +26875,17 @@
26855
26875
  "required": false,
26856
26876
  "type": "int",
26857
26877
  "value_allowed_null": true
26878
+ },
26879
+ {
26880
+ "disabled": false,
26881
+ "document": "帧率分母部分\n注意:值必须大于0\n注意:此字段可能返回 null,表示取不到有效值。",
26882
+ "example": "1",
26883
+ "member": "int64",
26884
+ "name": "FpsDenominator",
26885
+ "output_required": false,
26886
+ "required": false,
26887
+ "type": "int",
26888
+ "value_allowed_null": true
26858
26889
  }
26859
26890
  ],
26860
26891
  "usage": "both"
@@ -26875,7 +26906,7 @@
26875
26906
  },
26876
26907
  {
26877
26908
  "disabled": false,
26878
- "document": "视频帧率,取值范围:[0, 120],单位:Hz当取值为 0,表示帧率和原始视频保持一致。\n注意:此字段可能返回 null,表示取不到有效值。",
26909
+ "document": "视频帧率,取值范围:\n当FpsDenominator的值为空时,范围:[0, 120],单位:Hz;\n当FpsDenominator的值不为空时,Fps/FpsDenominator的范围:[0,120]\n当取值为 0,表示帧率和原始视频保持一致。\n注意:此字段可能返回 null,表示取不到有效值。",
26879
26910
  "example": "0",
26880
26911
  "member": "int64",
26881
26912
  "name": "Fps",
@@ -26886,7 +26917,7 @@
26886
26917
  },
26887
26918
  {
26888
26919
  "disabled": false,
26889
- "document": "视频流的码率,取值范围:0 和 [128, 35000],单位:kbps。\n当取值为 0,表示视频码率和原始视频保持一致。\n注意:此字段可能返回 null,表示取不到有效值。",
26920
+ "document": "视频流的码率,取值范围:0 和 [128, 100000],单位:kbps。\n当取值为 0,表示视频码率和原始视频保持一致。\n注意:此字段可能返回 null,表示取不到有效值。",
26890
26921
  "example": "0",
26891
26922
  "member": "int64",
26892
26923
  "name": "Bitrate",
@@ -26982,6 +27013,17 @@
26982
27013
  "required": false,
26983
27014
  "type": "int",
26984
27015
  "value_allowed_null": true
27016
+ },
27017
+ {
27018
+ "disabled": false,
27019
+ "document": "帧率分母部分\n注意:值必须大于0\n注意:此字段可能返回 null,表示取不到有效值。",
27020
+ "example": "1",
27021
+ "member": "int64",
27022
+ "name": "FpsDenominator",
27023
+ "output_required": false,
27024
+ "required": false,
27025
+ "type": "int",
27026
+ "value_allowed_null": true
26985
27027
  }
26986
27028
  ],
26987
27029
  "usage": "both"