tccli 3.0.1133.1__py2.py3-none-any.whl → 3.0.1134.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 (46) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/asr/v20190614/api.json +2 -2
  3. tccli/services/billing/v20180709/api.json +10 -0
  4. tccli/services/cam/v20190116/api.json +41 -12
  5. tccli/services/cls/v20201016/api.json +1 -1
  6. tccli/services/cls/v20201016/examples.json +1 -1
  7. tccli/services/cmq/v20190304/api.json +53 -49
  8. tccli/services/cmq/v20190304/examples.json +2 -2
  9. tccli/services/cynosdb/cynosdb_client.py +57 -4
  10. tccli/services/cynosdb/v20190107/api.json +111 -0
  11. tccli/services/cynosdb/v20190107/examples.json +8 -0
  12. tccli/services/dlc/dlc_client.py +53 -0
  13. tccli/services/dlc/v20210125/api.json +149 -2
  14. tccli/services/dlc/v20210125/examples.json +9 -1
  15. tccli/services/dsgc/v20190723/api.json +45 -40
  16. tccli/services/dts/dts_client.py +0 -53
  17. tccli/services/dts/v20180330/api.json +0 -98
  18. tccli/services/dts/v20180330/examples.json +0 -8
  19. tccli/services/emr/v20190103/api.json +4 -4
  20. tccli/services/ess/ess_client.py +411 -305
  21. tccli/services/ess/v20201111/api.json +144 -0
  22. tccli/services/ess/v20201111/examples.json +16 -0
  23. tccli/services/essbasic/essbasic_client.py +110 -4
  24. tccli/services/essbasic/v20210526/api.json +137 -2
  25. tccli/services/essbasic/v20210526/examples.json +16 -0
  26. tccli/services/mongodb/mongodb_client.py +57 -4
  27. tccli/services/mongodb/v20190725/api.json +96 -0
  28. tccli/services/mongodb/v20190725/examples.json +8 -0
  29. tccli/services/mps/v20190612/api.json +57 -7
  30. tccli/services/mps/v20190612/examples.json +1 -1
  31. tccli/services/ocr/v20181119/api.json +373 -3
  32. tccli/services/organization/organization_client.py +118 -12
  33. tccli/services/organization/v20210331/api.json +68 -0
  34. tccli/services/organization/v20210331/examples.json +16 -0
  35. tccli/services/tdmq/tdmq_client.py +443 -19
  36. tccli/services/tdmq/v20200217/api.json +570 -0
  37. tccli/services/tdmq/v20200217/examples.json +64 -0
  38. tccli/services/trro/v20220325/api.json +6 -6
  39. tccli/services/trtc/v20190722/api.json +1 -1
  40. tccli/services/tsf/v20180326/api.json +37 -27
  41. tccli/services/tsf/v20180326/examples.json +1 -1
  42. {tccli-3.0.1133.1.dist-info → tccli-3.0.1134.1.dist-info}/METADATA +2 -2
  43. {tccli-3.0.1133.1.dist-info → tccli-3.0.1134.1.dist-info}/RECORD +46 -46
  44. {tccli-3.0.1133.1.dist-info → tccli-3.0.1134.1.dist-info}/WHEEL +0 -0
  45. {tccli-3.0.1133.1.dist-info → tccli-3.0.1134.1.dist-info}/entry_points.txt +0 -0
  46. {tccli-3.0.1133.1.dist-info → tccli-3.0.1134.1.dist-info}/license_files/LICENSE +0 -0
@@ -851,6 +851,58 @@ def doDescribeBackupRules(args, parsed_globals):
851
851
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
852
852
 
853
853
 
854
+ def doRenameInstance(args, parsed_globals):
855
+ g_param = parse_global_arg(parsed_globals)
856
+
857
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
858
+ cred = credential.CVMRoleCredential()
859
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
860
+ cred = credential.STSAssumeRoleCredential(
861
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
862
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
863
+ )
864
+ 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):
865
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
866
+ else:
867
+ cred = credential.Credential(
868
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
869
+ )
870
+ http_profile = HttpProfile(
871
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
872
+ reqMethod="POST",
873
+ endpoint=g_param[OptionsDefine.Endpoint],
874
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
875
+ )
876
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
877
+ if g_param[OptionsDefine.Language]:
878
+ profile.language = g_param[OptionsDefine.Language]
879
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
880
+ client = mod.MongodbClient(cred, g_param[OptionsDefine.Region], profile)
881
+ client._sdkVersion += ("_CLI_" + __version__)
882
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
883
+ model = models.RenameInstanceRequest()
884
+ model.from_json_string(json.dumps(args))
885
+ start_time = time.time()
886
+ while True:
887
+ rsp = client.RenameInstance(model)
888
+ result = rsp.to_json_string()
889
+ try:
890
+ json_obj = json.loads(result)
891
+ except TypeError as e:
892
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
893
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
894
+ break
895
+ cur_time = time.time()
896
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
897
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
898
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
899
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
900
+ else:
901
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
902
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
903
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
904
+
905
+
854
906
  def doDescribeAsyncRequestInfo(args, parsed_globals):
855
907
  g_param = parse_global_arg(parsed_globals)
856
908
 
@@ -2099,7 +2151,7 @@ def doSetInstanceMaintenance(args, parsed_globals):
2099
2151
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2100
2152
 
2101
2153
 
2102
- def doRenameInstance(args, parsed_globals):
2154
+ def doModifyInstanceParams(args, parsed_globals):
2103
2155
  g_param = parse_global_arg(parsed_globals)
2104
2156
 
2105
2157
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2128,11 +2180,11 @@ def doRenameInstance(args, parsed_globals):
2128
2180
  client = mod.MongodbClient(cred, g_param[OptionsDefine.Region], profile)
2129
2181
  client._sdkVersion += ("_CLI_" + __version__)
2130
2182
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2131
- model = models.RenameInstanceRequest()
2183
+ model = models.ModifyInstanceParamsRequest()
2132
2184
  model.from_json_string(json.dumps(args))
2133
2185
  start_time = time.time()
2134
2186
  while True:
2135
- rsp = client.RenameInstance(model)
2187
+ rsp = client.ModifyInstanceParams(model)
2136
2188
  result = rsp.to_json_string()
2137
2189
  try:
2138
2190
  json_obj = json.loads(result)
@@ -2544,6 +2596,7 @@ ACTION_MAP = {
2544
2596
  "SetBackupRules": doSetBackupRules,
2545
2597
  "InquirePriceModifyDBInstanceSpec": doInquirePriceModifyDBInstanceSpec,
2546
2598
  "DescribeBackupRules": doDescribeBackupRules,
2599
+ "RenameInstance": doRenameInstance,
2547
2600
  "DescribeAsyncRequestInfo": doDescribeAsyncRequestInfo,
2548
2601
  "CreateAccountUser": doCreateAccountUser,
2549
2602
  "CreateDBInstanceHour": doCreateDBInstanceHour,
@@ -2568,7 +2621,7 @@ ACTION_MAP = {
2568
2621
  "DescribeAccountUsers": doDescribeAccountUsers,
2569
2622
  "DescribeSlowLog": doDescribeSlowLog,
2570
2623
  "SetInstanceMaintenance": doSetInstanceMaintenance,
2571
- "RenameInstance": doRenameInstance,
2624
+ "ModifyInstanceParams": doModifyInstanceParams,
2572
2625
  "UpgradeDBInstance": doUpgradeDBInstance,
2573
2626
  "KillOps": doKillOps,
2574
2627
  "EnableTransparentDataEncryption": doEnableTransparentDataEncryption,
@@ -238,6 +238,13 @@
238
238
  "output": "ModifyDBInstanceSpecResponse",
239
239
  "status": "online"
240
240
  },
241
+ "ModifyInstanceParams": {
242
+ "document": "本接口(ModifyInstanceParams)用于修改mongoDB实例的参数配置。",
243
+ "input": "ModifyInstanceParamsRequest",
244
+ "name": "修改mongoDB实例参数",
245
+ "output": "ModifyInstanceParamsResponse",
246
+ "status": "online"
247
+ },
241
248
  "OfflineIsolatedDBInstance": {
242
249
  "document": "本接口(OfflineIsolatedDBInstance)用于立即下线隔离状态的云数据库实例。进行操作的实例状态必须为隔离状态。",
243
250
  "input": "OfflineIsolatedDBInstanceRequest",
@@ -4685,6 +4692,95 @@
4685
4692
  ],
4686
4693
  "type": "object"
4687
4694
  },
4695
+ "ModifyInstanceParamsRequest": {
4696
+ "document": "ModifyInstanceParams请求参数结构体",
4697
+ "members": [
4698
+ {
4699
+ "disabled": false,
4700
+ "document": "指定实例 ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。\n",
4701
+ "example": "\"cmgo-jyjcw8yv\"",
4702
+ "member": "string",
4703
+ "name": "InstanceId",
4704
+ "required": true,
4705
+ "type": "string"
4706
+ },
4707
+ {
4708
+ "disabled": false,
4709
+ "document": "指定需修改的参数名及值。当前所支持的参数名及对应取值范围,请通过 [DescribeInstanceParams ](https://cloud.tencent.com/document/product/240/65903)获取。",
4710
+ "example": "无",
4711
+ "member": "ModifyMongoDBParamType",
4712
+ "name": "InstanceParams",
4713
+ "required": true,
4714
+ "type": "list"
4715
+ },
4716
+ {
4717
+ "disabled": false,
4718
+ "document": "操作类型,包括:\n- IMMEDIATELY:立即调整。\n- DELAY:延迟调整。可选字段,不配置该参数则默认为立即调整。",
4719
+ "example": "IMMEDIATELY",
4720
+ "member": "string",
4721
+ "name": "ModifyType",
4722
+ "required": false,
4723
+ "type": "string"
4724
+ }
4725
+ ],
4726
+ "type": "object"
4727
+ },
4728
+ "ModifyInstanceParamsResponse": {
4729
+ "document": "ModifyInstanceParams返回参数结构体",
4730
+ "members": [
4731
+ {
4732
+ "disabled": false,
4733
+ "document": "修改参数配置是否生效。\n- true:参数修改后的值已生效。\n- false:执行失败。\n",
4734
+ "example": "true",
4735
+ "member": "bool",
4736
+ "name": "Changed",
4737
+ "output_required": true,
4738
+ "type": "bool",
4739
+ "value_allowed_null": false
4740
+ },
4741
+ {
4742
+ "disabled": false,
4743
+ "document": "该参数暂时无意义(兼容前端保留)。",
4744
+ "example": "1",
4745
+ "member": "uint64",
4746
+ "name": "TaskId",
4747
+ "output_required": true,
4748
+ "type": "int",
4749
+ "value_allowed_null": false
4750
+ },
4751
+ {
4752
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4753
+ "member": "string",
4754
+ "name": "RequestId",
4755
+ "type": "string"
4756
+ }
4757
+ ],
4758
+ "type": "object"
4759
+ },
4760
+ "ModifyMongoDBParamType": {
4761
+ "document": "修改mongoDB实例,请求参数",
4762
+ "members": [
4763
+ {
4764
+ "disabled": false,
4765
+ "document": "需要修改的参数名称,请严格参考通过 DescribeInstanceParams 获取的当前实例支持的参数名。",
4766
+ "example": "\"operationProfiling.mode\"",
4767
+ "member": "string",
4768
+ "name": "Key",
4769
+ "required": true,
4770
+ "type": "string"
4771
+ },
4772
+ {
4773
+ "disabled": false,
4774
+ "document": "需要修改的参数名称对应的值,请严格参考通过 DescribeInstanceParams 获取的参数对应的值的范围。",
4775
+ "example": "无",
4776
+ "member": "string",
4777
+ "name": "Value",
4778
+ "required": true,
4779
+ "type": "string"
4780
+ }
4781
+ ],
4782
+ "usage": "in"
4783
+ },
4688
4784
  "ModifyNetworkAddress": {
4689
4785
  "document": "修改数据库地址",
4690
4786
  "members": [
@@ -284,6 +284,14 @@
284
284
  "title": "新增mognodb云数据库实例从节点"
285
285
  }
286
286
  ],
287
+ "ModifyInstanceParams": [
288
+ {
289
+ "document": "用户发起修改其mongoDB的参数配置",
290
+ "input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstanceParams\n<公共请求参数>\n\n{\n \"InstanceId\": \"cmgo-9d0p6umb\",\n \"InstanceParams\": [\n {\n \"Value\": \"operation.profiling.slowOpThresholdMs\",\n \"Key\": \"operation.profiling.slowOpThresholdMs\"\n }\n ]\n}",
291
+ "output": "{\n \"Response\": {\n \"Changed\": true,\n \"RequestId\": \"e51b4590-db7b-4835-9899-1f5c33f92fbf\",\n \"TaskId\": 0\n }\n}",
292
+ "title": "修改mongoDB实例参数"
293
+ }
294
+ ],
287
295
  "OfflineIsolatedDBInstance": [
288
296
  {
289
297
  "document": "",
@@ -1485,6 +1485,16 @@
1485
1485
  "output_required": false,
1486
1486
  "type": "int",
1487
1487
  "value_allowed_null": true
1488
+ },
1489
+ {
1490
+ "disabled": false,
1491
+ "document": "hls 分片类型,可选值:\n<li>ts-segment:HLS+TS 切片</li>\n<li>ts-byterange:HLS+TS byte range</li>\n<li>mp4-segment:HLS+MP4 切片</li>\n<li>mp4-byterange:HLS+MP4 byte range</li>\n<li>ts-packed-audio:TS+Packed Audio</li>\n<li>mp4-packed-audio:MP4+Packed Audio</li>\n默认值:ts-segment\n\n注:自适应码流的hls分片格式已此字段为准\n注意:此字段可能返回 null,表示取不到有效值。",
1492
+ "example": "无",
1493
+ "member": "string",
1494
+ "name": "SegmentType",
1495
+ "output_required": false,
1496
+ "type": "string",
1497
+ "value_allowed_null": true
1488
1498
  }
1489
1499
  ],
1490
1500
  "usage": "out"
@@ -6155,7 +6165,7 @@
6155
6165
  "members": [
6156
6166
  {
6157
6167
  "disabled": false,
6158
- "document": "音频流的编码格式。\n当不需要对音频进行转码时,可选值为:\n<li>copy。</li>\n当外层参数 Container 为 mp3 时,可选值为:\n<li>mp3。</li>\n当外层参数 Container 为 ogg 或 flac 时,可选值为:\n<li>flac。</li>\n当外层参数 Container 为 m4a 时,可选值为:\n<li>aac;</li>\n<li>mp3;</li>\n<li>ac3。</li>\n当外层参数 Container 为 mp4 或 flv 时,可选值为:\n<li>aac:更适合 mp4;</li>\n<li>mp3:更适合 flv;</li>\n<li>mp2。</li>\n当外层参数 Container 为 hls 时,可选值为:\n<li>aac;</li>\n<li>mp3。</li>",
6168
+ "document": "音频流的编码格式。\n当不需要对音频进行转码时,可选值为:\n<li>copy。</li>\n当外层参数 Container 为 mp3 时,可选值为:\n<li>mp3。</li>\n当外层参数 Container 为 ogg 或 flac 时,可选值为:\n<li>flac。</li>\n当外层参数 Container 为 m4a 时,可选值为:\n<li>aac;</li>\n<li>mp3;</li>\n<li>ac3。</li>\n<li>eac3。</li>\n当外层参数 Container 为 mp4 或 flv 时,可选值为:\n<li>aac:更适合 mp4;</li>\n<li>mp3:更适合 flv;</li>\n<li>mp2。</li>\n当外层参数 Container 为 hls 时,可选值为:\n<li>aac;</li>\n<li>mp3。</li>",
6159
6169
  "example": "aac",
6160
6170
  "member": "string",
6161
6171
  "name": "Codec",
@@ -6205,7 +6215,7 @@
6205
6215
  "members": [
6206
6216
  {
6207
6217
  "disabled": false,
6208
- "document": "音频流的编码格式。\n当不需要对音频进行转码时,可选值为:\n<li>copy。</li>\n当外层参数 Container 为 mp3 时,可选值为:\n<li>mp3。</li>\n当外层参数 Container 为 ogg 或 flac 时,可选值为:\n<li>flac。</li>\n当外层参数 Container 为 m4a 时,可选值为:\n<li>aac;</li>\n<li>mp3;</li>\n<li>ac3。</li>\n当外层参数 Container 为 mp4 或 flv 时,可选值为:\n<li>aac:更适合 mp4;</li>\n<li>mp3:更适合 flv;</li>\n<li>mp2。</li>\n当外层参数 Container 为 hls 时,可选值为:\n<li>aac;</li>\n<li>mp3。</li>\n注意:此字段可能返回 null,表示取不到有效值。",
6218
+ "document": "音频流的编码格式。\n当不需要对音频进行转码时,可选值为:\n<li>copy。</li>\n当外层参数 Container 为 mp3 时,可选值为:\n<li>mp3。</li>\n当外层参数 Container 为 ogg 或 flac 时,可选值为:\n<li>flac。</li>\n当外层参数 Container 为 m4a 时,可选值为:\n<li>aac;</li>\n<li>mp3;</li>\n<li>ac3。</li>\n<li>eac3。</li>\n当外层参数 Container 为 mp4 或 flv 时,可选值为:\n<li>aac:更适合 mp4;</li>\n<li>mp3:更适合 flv;</li>\n<li>mp2。</li>\n当外层参数 Container 为 hls 时,可选值为:\n<li>aac;</li>\n<li>mp3。</li>\n注意:此字段可能返回 null,表示取不到有效值。",
6209
6219
  "example": "aac",
6210
6220
  "member": "string",
6211
6221
  "name": "Codec",
@@ -7878,6 +7888,15 @@
7878
7888
  "name": "PureAudio",
7879
7889
  "required": false,
7880
7890
  "type": "int"
7891
+ },
7892
+ {
7893
+ "disabled": false,
7894
+ "document": "hls 分片类型,可选值: <li>ts-segment:HLS+TS 切片</li> <li>ts-byterange:HLS+TS byte range</li> <li>mp4-segment:HLS+MP4 切片</li> <li>mp4-byterange:HLS+MP4 byte range</li> <li>ts-packed-audio:TS+Packed Audio</li> <li>mp4-packed-audio:MP4+Packed Audio</li> 默认值:ts-segment \n注:自适应码流的hls分片格式已此字段为准",
7895
+ "example": "无",
7896
+ "member": "string",
7897
+ "name": "SegmentType",
7898
+ "required": false,
7899
+ "type": "string"
7881
7900
  }
7882
7901
  ],
7883
7902
  "type": "object"
@@ -9415,7 +9434,7 @@
9415
9434
  "members": [
9416
9435
  {
9417
9436
  "disabled": false,
9418
- "document": "封装格式,可选值:mp4、flv、hls、mp3、flac、ogg、m4a。其中,mp3、flac、ogg、m4a 为纯音频文件。",
9437
+ "document": "封装格式,可选值:mp4、flv、hls、ts、webm、mkv、mxf、mov、mp3、flac、ogg、m4a。其中,mp3、flac、ogg、m4a 为纯音频文件。",
9419
9438
  "example": "mp4",
9420
9439
  "member": "string",
9421
9440
  "name": "Container",
@@ -19489,6 +19508,15 @@
19489
19508
  "name": "PureAudio",
19490
19509
  "required": false,
19491
19510
  "type": "int"
19511
+ },
19512
+ {
19513
+ "disabled": false,
19514
+ "document": "hls 分片类型,可选值: <li>ts-segment:HLS+TS 切片</li> <li>ts-byterange:HLS+TS byte range</li> <li>mp4-segment:HLS+MP4 切片</li> <li>mp4-byterange:HLS+MP4 byte range</li> <li>ts-packed-audio:TS+Packed Audio</li> <li>mp4-packed-audio:MP4+Packed Audio</li> 默认值:ts-segment \n注:自适应码流的hls分片格式已此字段为准",
19515
+ "example": "无",
19516
+ "member": "string",
19517
+ "name": "SegmentType",
19518
+ "required": false,
19519
+ "type": "string"
19492
19520
  }
19493
19521
  ],
19494
19522
  "type": "object"
@@ -26134,7 +26162,7 @@
26134
26162
  "members": [
26135
26163
  {
26136
26164
  "disabled": false,
26137
- "document": "视频流的编码格式,可选值:\n<li>copy:纯音频模版</li>\n<li>h264:H.264 编码</li>\n<li>h265:H.265 编码</li>\n<li>av1:AOMedia Video 1 编码</li>\n注意:目前 H.265 编码必须指定分辨率,并且需要在 640*480 以内。\n注意:av1 编码容器目前只支持 mp4 。",
26165
+ "document": "视频流的编码格式,可选值:\n<li>h264:H.264 编码</li>\n<li>h265:H.265 编码</li>\n<li>h266:H.266 编码</li>\n<li>av1:AOMedia Video 1 编码</li>\n<li>vp8:VP8 编码</li>\n<li>vp9:VP9 编码</li>\n<li>mpeg2:MPEG2 编码</li>\n<li>dnxhd:DNxHD 编码</li>\n注意:目前 H.265 编码必须指定分辨率,并且需要在 640*480 以内。\n\n注意:av1 编码容器目前只支持 mp4 ,webm,mkv,mov。\n注意:H.266 编码容器目前只支持 mp4 ,hls,ts,mov。\n注意:VP8、VP9编码容器目前只支持webm,mkv。\n注意:MPEG2、dnxhd 编码容器目前只支持mxf。",
26138
26166
  "example": "h264",
26139
26167
  "member": "string",
26140
26168
  "name": "Codec",
@@ -26145,7 +26173,7 @@
26145
26173
  },
26146
26174
  {
26147
26175
  "disabled": false,
26148
- "document": "视频帧率,取值范围:[0, 120],单位:Hz。 \n当取值为 0,表示帧率和原始视频保持一致。 \n注意:自适应码率时取值范围是 [0, 60]",
26176
+ "document": "视频帧率,取值范围:[0, 120],单位:Hz。 当取值为 0,表示帧率和原始视频保持一致。\n注意:自适应码率时取值范围是 [0, 60]",
26149
26177
  "example": "0",
26150
26178
  "member": "int64",
26151
26179
  "name": "Fps",
@@ -26230,6 +26258,17 @@
26230
26258
  "required": false,
26231
26259
  "type": "int",
26232
26260
  "value_allowed_null": false
26261
+ },
26262
+ {
26263
+ "disabled": false,
26264
+ "document": "hls 分片类型,可选值 :\n<li>6:HLS+TS 切片</li>\n<li>2:HLS+TS byte range</li>\n<li>7:HLS+MP4 切片</li>\n<li>5:HLS+MP4 byte range</li>\n默认值:6\n注意:此字段可能返回 null,表示取不到有效值。",
26265
+ "example": "无",
26266
+ "member": "int64",
26267
+ "name": "SegmentType",
26268
+ "output_required": false,
26269
+ "required": false,
26270
+ "type": "int",
26271
+ "value_allowed_null": true
26233
26272
  }
26234
26273
  ],
26235
26274
  "usage": "both"
@@ -26239,7 +26278,7 @@
26239
26278
  "members": [
26240
26279
  {
26241
26280
  "disabled": false,
26242
- "document": "视频流的编码格式,可选值:\n<li>h264:H.264 编码</li>\n<li>h265:H.265 编码</li>\n<li>av1:AOMedia Video 1 编码</li>\n注意:目前 H.265 编码必须指定分辨率,并且需要在 640*480 以内。\n注意:av1 编码容器目前只支持 mp4 。\n注意:此字段可能返回 null,表示取不到有效值。",
26281
+ "document": "视频流的编码格式,可选值:\n<li>h264:H.264 编码</li>\n<li>h265:H.265 编码</li>\n<li>h266:H.266 编码</li>\n<li>av1:AOMedia Video 1 编码</li>\n<li>vp8:VP8 编码</li>\n<li>vp9:VP9 编码</li>\n<li>mpeg2:MPEG2 编码</li>\n<li>dnxhd:DNxHD 编码</li>\n注意:目前 H.265 编码必须指定分辨率,并且需要在 640*480 以内。\n\n注意:av1 编码容器目前只支持 mp4 ,webm,mkv,mov。\n注意:H.266 编码容器目前只支持 mp4 ,hls,ts,mov。\n注意:VP8、VP9编码容器目前只支持webm,mkv。\n注意:MPEG2、dnxhd 编码容器目前只支持mxf。\n注意:此字段可能返回 null,表示取不到有效值。",
26243
26282
  "example": "h264",
26244
26283
  "member": "string",
26245
26284
  "name": "Codec",
@@ -26250,7 +26289,7 @@
26250
26289
  },
26251
26290
  {
26252
26291
  "disabled": false,
26253
- "document": "视频帧率,取值范围:[0, 120],单位:Hz。\n当取值为 0,表示帧率和原始视频保持一致。\n注意:此字段可能返回 null,表示取不到有效值。",
26292
+ "document": "视频帧率,取值范围:[0, 120],单位:Hz当取值为 0,表示帧率和原始视频保持一致。\n注意:此字段可能返回 null,表示取不到有效值。",
26254
26293
  "example": "0",
26255
26294
  "member": "int64",
26256
26295
  "name": "Fps",
@@ -26346,6 +26385,17 @@
26346
26385
  "required": false,
26347
26386
  "type": "int",
26348
26387
  "value_allowed_null": true
26388
+ },
26389
+ {
26390
+ "disabled": false,
26391
+ "document": "hls 分片类型,可选值:\n<li>6:HLS+TS 切片</li>\n<li>2:HLS+TS byte range</li>\n<li>7:HLS+MP4 切片</li>\n<li>5:HLS+MP4 byte range</li>\n默认值:6\n注意:此字段可能返回 null,表示取不到有效值。",
26392
+ "example": "无",
26393
+ "member": "int64",
26394
+ "name": "SegmentType",
26395
+ "output_required": false,
26396
+ "required": false,
26397
+ "type": "int",
26398
+ "value_allowed_null": true
26349
26399
  }
26350
26400
  ],
26351
26401
  "usage": "both"
@@ -181,7 +181,7 @@
181
181
  "CreateTranscodeTemplate": [
182
182
  {
183
183
  "document": "",
184
- "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\": \"test\",\n \"AudioTemplate\": {\n \"SampleRate\": 44100,\n \"Codec\": \"libfdk_aac\",\n \"Bitrate\": 200\n },\n \"VideoTemplate\": {\n \"Codec\": \"libx264\",\n \"Bitrate\": 256,\n \"Fps\": 45\n },\n \"RemoveAudio\": 0\n}",
184
+ "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\": \"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}",
185
185
  "output": "{\n \"Response\": {\n \"Definition\": 1008,\n \"RequestId\": \"12ae8d8e-dce3-4151-9d4b-5594145287e1\"\n }\n}",
186
186
  "title": "创建转码模板"
187
187
  }