tccli 3.0.1028.1__py2.py3-none-any.whl → 3.0.1029.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/examples/asr/v20190614/CreateAsyncRecognitionTask.md +1 -1
- tccli/examples/ocr/v20181119/VatInvoiceVerifyNew.md +56 -0
- tccli/examples/tdmq/v20200217/DescribeNamespaceBundlesOpt.md +1 -23
- tccli/examples/teo/v20220901/ModifyAccelerationDomainStatuses.md +1 -1
- tccli/examples/tione/v20211111/DescribeBillingResourceGroups.md +72 -22
- tccli/examples/vod/v20180717/EnhanceMediaQuality.md +22 -0
- tccli/services/asr/v20190614/api.json +1 -1
- tccli/services/asr/v20190614/examples.json +1 -1
- tccli/services/dlc/v20210125/api.json +7 -4
- tccli/services/ess/v20201111/api.json +38 -38
- tccli/services/essbasic/v20210526/api.json +10 -10
- tccli/services/essbasic/v20210526/examples.json +1 -1
- tccli/services/lcic/v20220817/api.json +13 -4
- tccli/services/ocr/v20181119/api.json +548 -10
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/tdmq/v20200217/api.json +2 -15
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/teo/v20220901/examples.json +1 -1
- tccli/services/tione/v20211111/api.json +18 -18
- tccli/services/tione/v20211111/examples.json +2 -2
- tccli/services/vod/v20180717/api.json +131 -0
- tccli/services/vod/v20180717/examples.json +8 -0
- tccli/services/vod/vod_client.py +53 -0
- {tccli-3.0.1028.1.dist-info → tccli-3.0.1029.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1028.1.dist-info → tccli-3.0.1029.1.dist-info}/RECORD +29 -28
- {tccli-3.0.1028.1.dist-info → tccli-3.0.1029.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1028.1.dist-info → tccli-3.0.1029.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1028.1.dist-info → tccli-3.0.1029.1.dist-info}/license_files/LICENSE +0 -0
@@ -650,7 +650,7 @@
|
|
650
650
|
{
|
651
651
|
"document": "增值税发票核验示例代码",
|
652
652
|
"input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: VatInvoiceVerifyNew\n<公共请求参数>\n\n{\n \"InvoiceCode\": \"144002288010\",\n \"InvoiceNo\": \"04138864\",\n \"InvoiceDate\": \"2022-11-16\",\n \"Amount\": \"498.90\",\n \"CheckCode\": \"00000000005672311400\",\n \"RegionCode\": \"4400\",\n \"SellerTaxCode\": \"44078819091887401X\",\n \"EnableCommonElectronic\": true\n}",
|
653
|
-
"output": "{\n \"Response\": {\n \"Invoice\": {\n \"AmountWithTax\": \"498.90\",\n \"AmountWithoutTax\": \"0.00\",\n \"BuyerAddressPhone\": \"\",\n \"BuyerBankAccount\": \"\",\n \"BuyerName\": \"\",\n \"BuyerTaxCode\": \"\",\n \"CheckCode\": \"\",\n \"Code\": \"144002288010\",\n \"Date\": \"\",\n \"HasSellerList\": \"\",\n \"IsAbandoned\": \"N\",\n \"Items\": [],\n \"MachineNo\": \"\",\n \"Number\": \"04138864\",\n \"Remark\": \"\",\n \"RedLetterInvoiceMark\": false,\n \"IssuingTypeMark\": 1,\n \"SellerAddressPhone\": \"\",\n \"SellerBankAccount\": \"\",\n \"SellerAgentName\": \"\",\n \"SellerAgentTaxID\": \"\",\n \"SellerListTax\": \"\",\n \"SellerListTitle\": \"\",\n \"SellerName\": \"广州市天河区员美丽美食店\",\n \"SellerTaxCode\": \"\",\n \"TaxAmount\": \"0.00\",\n \"TaxBureau\": \"\",\n \"TrafficFreeFlag\": \"N\",\n \"Type\": \"102\"\n },\n \"PassInvoiceInfoList\": [],\n \"RequestId\": \"f3cd280c-6d3a-41c5-8493-4ed98f8b2755\",\n \"UsedVehicleInvoiceInfo\": {\n \"Auctioneer\": \"\",\n \"AuctioneerAddress\": \"\",\n \"AuctioneerBankAccount\": \"\",\n \"AuctioneerTaxpayerNum\": \"\",\n \"AuctioneerTel\": \"\",\n \"Buyer\": \"\",\n \"BuyerAddress\": \"\",\n \"BuyerNo\": \"\",\n \"BuyerTel\": \"\",\n \"ManagementOffice\": \"\",\n \"Market\": \"\",\n \"MarketAddress\": \"\",\n \"MarketBankAccount\": \"\",\n \"MarketTaxpayerNum\": \"\",\n \"MarketTel\": \"\",\n \"RegisterNo\": \"\",\n \"Seller\": \"\",\n \"SellerAddress\": \"\",\n \"SellerNo\": \"\",\n \"SellerTel\": \"\",\n \"TaxBureau\": \"\",\n \"VehicleIdentifyNo\": \"\",\n \"VehicleLicenseNo\": \"\",\n \"VehicleTotalPrice\": \"\"\n },\n \"VehicleInvoiceInfo\": {\n \"BizCheckFormNo\": \"\",\n \"BuyerNo\": \"\",\n \"CarType\": \"\",\n \"CertificateNo\": \"\",\n \"EngineNo\": \"\",\n \"ImportNo\": \"\",\n \"LimitCount\": \"\",\n \"MotorBankAccount\": \"\",\n \"MotorBankName\": \"\",\n \"MotorTaxRate\": \"\",\n \"PayTaxesNo\": \"\",\n \"PlateModel\": \"\",\n \"ProduceAddress\": \"\",\n \"SellerAddress\": \"\",\n \"SellerTel\": \"\",\n \"TaxtationOrgCode\": \"\",\n \"TaxtationOrgName\": \"\",\n \"Tonnage\": \"\",\n \"VinNo\": \"\"\n }\n }\n}",
|
653
|
+
"output": "{\n \"Response\": {\n \"Invoice\": {\n \"AmountWithTax\": \"498.90\",\n \"AmountWithoutTax\": \"0.00\",\n \"BuyerAddressPhone\": \"\",\n \"BuyerBankAccount\": \"\",\n \"BuyerName\": \"\",\n \"BuyerTaxCode\": \"\",\n \"CheckCode\": \"\",\n \"Code\": \"144002288010\",\n \"Date\": \"\",\n \"ElectronicType\": \"\",\n \"HasSellerList\": \"\",\n \"IsAbandoned\": \"N\",\n \"Items\": [],\n \"MachineNo\": \"\",\n \"Number\": \"04138864\",\n \"Remark\": \"\",\n \"RedLetterInvoiceMark\": false,\n \"IssuingTypeMark\": 1,\n \"SellerAddressPhone\": \"\",\n \"SellerBankAccount\": \"\",\n \"SellerAgentName\": \"\",\n \"SellerAgentTaxID\": \"\",\n \"SellerListTax\": \"\",\n \"SellerListTitle\": \"\",\n \"SellerName\": \"广州市天河区员美丽美食店\",\n \"SellerTaxCode\": \"\",\n \"TaxAmount\": \"0.00\",\n \"TaxBureau\": \"\",\n \"TrafficFreeFlag\": \"N\",\n \"Type\": \"102\"\n },\n \"PassInvoiceInfoList\": [],\n \"RequestId\": \"f3cd280c-6d3a-41c5-8493-4ed98f8b2755\",\n \"UsedVehicleInvoiceInfo\": {\n \"Auctioneer\": \"\",\n \"AuctioneerAddress\": \"\",\n \"AuctioneerBankAccount\": \"\",\n \"AuctioneerTaxpayerNum\": \"\",\n \"AuctioneerTel\": \"\",\n \"Buyer\": \"\",\n \"BuyerAddress\": \"\",\n \"BuyerNo\": \"\",\n \"BuyerTel\": \"\",\n \"ManagementOffice\": \"\",\n \"Market\": \"\",\n \"MarketAddress\": \"\",\n \"MarketBankAccount\": \"\",\n \"MarketTaxpayerNum\": \"\",\n \"MarketTel\": \"\",\n \"RegisterNo\": \"\",\n \"Seller\": \"\",\n \"SellerAddress\": \"\",\n \"SellerNo\": \"\",\n \"SellerTel\": \"\",\n \"TaxBureau\": \"\",\n \"VehicleIdentifyNo\": \"\",\n \"VehicleLicenseNo\": \"\",\n \"VehicleTotalPrice\": \"\"\n },\n \"VehicleInvoiceInfo\": {\n \"BizCheckFormNo\": \"\",\n \"BuyerNo\": \"\",\n \"CarType\": \"\",\n \"CertificateNo\": \"\",\n \"EngineNo\": \"\",\n \"ImportNo\": \"\",\n \"LimitCount\": \"\",\n \"MotorBankAccount\": \"\",\n \"MotorBankName\": \"\",\n \"MotorTaxRate\": \"\",\n \"PayTaxesNo\": \"\",\n \"PlateModel\": \"\",\n \"ProduceAddress\": \"\",\n \"SellerAddress\": \"\",\n \"SellerTel\": \"\",\n \"TaxtationOrgCode\": \"\",\n \"TaxtationOrgName\": \"\",\n \"Tonnage\": \"\",\n \"VinNo\": \"\"\n },\n \"ElectronicTrainTicket\": {\n \"BuyerName\": \"abc\",\n \"BuyerTaxCode\": \"abc\",\n \"Number\": \"abc\",\n \"Date\": \"abc\",\n \"TotalCN\": \"abc\",\n \"Tax\": \"abc\",\n \"ServiceType\": \"abc\",\n \"TimeGetOn\": \"abc\",\n \"TrainNumber\": \"abc\",\n \"Code\": \"abc\",\n \"SeatType\": \"abc\",\n \"DateGetOn\": \"abc\",\n \"TrainCabin\": \"abc\",\n \"StationGetOn\": \"abc\",\n \"ElectronicNumber\": \"abc\",\n \"PassengerName\": \"abc\",\n \"PassengerNo\": \"abc\",\n \"Amount\": \"abc\",\n \"StationGetOff\": \"abc\",\n \"TaxRate\": \"abc\",\n \"Seat\": \"abc\",\n \"Total\": \"abc\",\n \"CheckCode\": \"abc\",\n \"StateCode\": \"0\"\n },\n \"ElectronicAirTransport\": {\n \"Code\": \"abc\",\n \"Number\": \"abc\",\n \"Date\": \"abc\",\n \"Amount\": \"abc\",\n \"CheckCode\": \"abc\",\n \"Total\": \"abc\",\n \"DeductionMark\": \"abc\",\n \"StateCode\": \"abc\",\n \"BuyerTaxCode\": \"abc\",\n \"BuyerName\": \"abc\",\n \"DomesticInternationalMark\": \"abc\",\n \"PassengerName\": \"abc\",\n \"PassengerNo\": \"abc\",\n \"ElectronicNumber\": \"abc\",\n \"ElectronicAirTransportDetails\": [\n {\n \"FlightSegment\": \"abc\",\n \"StationGetOn\": \"abc\",\n \"StationGetOff\": \"abc\",\n \"Carrier\": \"abc\",\n \"FlightNumber\": \"abc\",\n \"SeatLevel\": \"abc\",\n \"FlightDate\": \"abc\",\n \"DepartureTime\": \"abc\",\n \"FareBasis\": \"abc\"\n }\n ]\n }\n }\n}",
|
654
654
|
"title": "增值税发票核验示例代码"
|
655
655
|
}
|
656
656
|
],
|
@@ -1186,11 +1186,6 @@
|
|
1186
1186
|
],
|
1187
1187
|
"usage": "out"
|
1188
1188
|
},
|
1189
|
-
"BundleSetOpt": {
|
1190
|
-
"document": "运营端命名空间bundle实体",
|
1191
|
-
"members": [],
|
1192
|
-
"usage": "out"
|
1193
|
-
},
|
1194
1189
|
"ClearCmqQueueRequest": {
|
1195
1190
|
"document": "ClearCmqQueue请求参数结构体",
|
1196
1191
|
"members": [
|
@@ -6410,7 +6405,7 @@
|
|
6410
6405
|
},
|
6411
6406
|
{
|
6412
6407
|
"disabled": false,
|
6413
|
-
"document": "bundle 所属的 broker
|
6408
|
+
"document": "bundle 所属的 broker IP 地址,支持模糊查询",
|
6414
6409
|
"example": "127.0.0.1",
|
6415
6410
|
"member": "string",
|
6416
6411
|
"name": "OwnerBroker",
|
@@ -6429,18 +6424,10 @@
|
|
6429
6424
|
"example": "10",
|
6430
6425
|
"member": "int64",
|
6431
6426
|
"name": "TotalCount",
|
6427
|
+
"output_required": true,
|
6432
6428
|
"type": "int",
|
6433
6429
|
"value_allowed_null": false
|
6434
6430
|
},
|
6435
|
-
{
|
6436
|
-
"disabled": false,
|
6437
|
-
"document": "bundle列表",
|
6438
|
-
"example": "无",
|
6439
|
-
"member": "BundleSetOpt",
|
6440
|
-
"name": "BundleSet",
|
6441
|
-
"type": "list",
|
6442
|
-
"value_allowed_null": false
|
6443
|
-
},
|
6444
6431
|
{
|
6445
6432
|
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
6446
6433
|
"member": "string",
|
@@ -464,7 +464,7 @@
|
|
464
464
|
{
|
465
465
|
"document": "测试",
|
466
466
|
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeNamespaceBundlesOpt\n<公共请求参数>\n\n{\n \"ClusterName\": \"tdmq_txy_gz_01\",\n \"Limit\": 20,\n \"NamespaceName\": \"ns_1\",\n \"NeedMetrics\": true,\n \"Offset\": 0,\n \"TenantId\": \"pulsar-pbkdk57xz9wv\"\n}",
|
467
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"d2d3e253-3b1d-4471-a350-25e6ae20916c\",\n \"TotalCount\": 30
|
467
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"d2d3e253-3b1d-4471-a350-25e6ae20916c\",\n \"TotalCount\": 30\n }\n}",
|
468
468
|
"title": "test"
|
469
469
|
}
|
470
470
|
],
|
@@ -660,7 +660,7 @@
|
|
660
660
|
],
|
661
661
|
"ModifyAccelerationDomainStatuses": [
|
662
662
|
{
|
663
|
-
"document": "
|
663
|
+
"document": "停用指定名称的加速域名。",
|
664
664
|
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAccelerationDomainStatuses\n<公共请求参数>\n\n{\n \"DomainNames\": [\n \"example.com\"\n ],\n \"ZoneId\": \"zone-225qgrnvbi9w\",\n \"Status\": \"offline\",\n \"Force\": \"false\"\n}",
|
665
665
|
"output": "{\n \"Response\": {\n \"RequestId\": \"5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707\"\n }\n}",
|
666
666
|
"title": "批量修改加速域名状态"
|
@@ -4827,7 +4827,7 @@
|
|
4827
4827
|
"example": "INFERENCE",
|
4828
4828
|
"member": "string",
|
4829
4829
|
"name": "Type",
|
4830
|
-
"required":
|
4830
|
+
"required": false,
|
4831
4831
|
"type": "string"
|
4832
4832
|
},
|
4833
4833
|
{
|
@@ -4896,7 +4896,7 @@
|
|
4896
4896
|
"example": "1",
|
4897
4897
|
"member": "uint64",
|
4898
4898
|
"name": "TotalCount",
|
4899
|
-
"
|
4899
|
+
"output_required": true,
|
4900
4900
|
"type": "int",
|
4901
4901
|
"value_allowed_null": false
|
4902
4902
|
},
|
@@ -4906,7 +4906,7 @@
|
|
4906
4906
|
"example": "无",
|
4907
4907
|
"member": "ResourceGroup",
|
4908
4908
|
"name": "ResourceGroupSet",
|
4909
|
-
"
|
4909
|
+
"output_required": true,
|
4910
4910
|
"type": "list",
|
4911
4911
|
"value_allowed_null": true
|
4912
4912
|
},
|
@@ -5007,20 +5007,20 @@
|
|
5007
5007
|
"members": [
|
5008
5008
|
{
|
5009
5009
|
"disabled": false,
|
5010
|
-
"document": "
|
5011
|
-
"example": "
|
5010
|
+
"document": "付费模式:POSTPAID_BY_HOUR按量计费、PREPAID包年包月",
|
5011
|
+
"example": "PREPAID",
|
5012
5012
|
"member": "string",
|
5013
|
-
"name": "
|
5013
|
+
"name": "ChargeType",
|
5014
5014
|
"required": true,
|
5015
5015
|
"type": "string"
|
5016
5016
|
},
|
5017
5017
|
{
|
5018
5018
|
"disabled": false,
|
5019
|
-
"document": "
|
5020
|
-
"example": "
|
5019
|
+
"document": "枚举值:TRAIN、NOTEBOOK、INFERENCE",
|
5020
|
+
"example": "TRAIN",
|
5021
5021
|
"member": "string",
|
5022
|
-
"name": "
|
5023
|
-
"required":
|
5022
|
+
"name": "TaskType",
|
5023
|
+
"required": false,
|
5024
5024
|
"type": "string"
|
5025
5025
|
},
|
5026
5026
|
{
|
@@ -11045,7 +11045,7 @@
|
|
11045
11045
|
"example": "ersg-9hw7jfk6",
|
11046
11046
|
"member": "string",
|
11047
11047
|
"name": "ResourceGroupId",
|
11048
|
-
"
|
11048
|
+
"output_required": true,
|
11049
11049
|
"type": "string",
|
11050
11050
|
"value_allowed_null": false
|
11051
11051
|
},
|
@@ -11055,7 +11055,7 @@
|
|
11055
11055
|
"example": "test2",
|
11056
11056
|
"member": "string",
|
11057
11057
|
"name": "ResourceGroupName",
|
11058
|
-
"
|
11058
|
+
"output_required": true,
|
11059
11059
|
"type": "string",
|
11060
11060
|
"value_allowed_null": false
|
11061
11061
|
},
|
@@ -11065,7 +11065,7 @@
|
|
11065
11065
|
"example": "1",
|
11066
11066
|
"member": "uint64",
|
11067
11067
|
"name": "FreeInstance",
|
11068
|
-
"
|
11068
|
+
"output_required": true,
|
11069
11069
|
"type": "int",
|
11070
11070
|
"value_allowed_null": false
|
11071
11071
|
},
|
@@ -11075,7 +11075,7 @@
|
|
11075
11075
|
"example": "1",
|
11076
11076
|
"member": "uint64",
|
11077
11077
|
"name": "TotalInstance",
|
11078
|
-
"
|
11078
|
+
"output_required": true,
|
11079
11079
|
"type": "int",
|
11080
11080
|
"value_allowed_null": false
|
11081
11081
|
},
|
@@ -11085,7 +11085,7 @@
|
|
11085
11085
|
"example": "无",
|
11086
11086
|
"member": "GroupResource",
|
11087
11087
|
"name": "UsedResource",
|
11088
|
-
"
|
11088
|
+
"output_required": true,
|
11089
11089
|
"type": "object",
|
11090
11090
|
"value_allowed_null": true
|
11091
11091
|
},
|
@@ -11095,7 +11095,7 @@
|
|
11095
11095
|
"example": "无",
|
11096
11096
|
"member": "GroupResource",
|
11097
11097
|
"name": "TotalResource",
|
11098
|
-
"
|
11098
|
+
"output_required": true,
|
11099
11099
|
"type": "object",
|
11100
11100
|
"value_allowed_null": true
|
11101
11101
|
},
|
@@ -11105,7 +11105,7 @@
|
|
11105
11105
|
"example": "无",
|
11106
11106
|
"member": "Instance",
|
11107
11107
|
"name": "InstanceSet",
|
11108
|
-
"
|
11108
|
+
"output_required": true,
|
11109
11109
|
"type": "list",
|
11110
11110
|
"value_allowed_null": true
|
11111
11111
|
},
|
@@ -11115,7 +11115,7 @@
|
|
11115
11115
|
"example": "无",
|
11116
11116
|
"member": "Tag",
|
11117
11117
|
"name": "TagSet",
|
11118
|
-
"
|
11118
|
+
"output_required": true,
|
11119
11119
|
"type": "list",
|
11120
11120
|
"value_allowed_null": true
|
11121
11121
|
}
|
@@ -203,8 +203,8 @@
|
|
203
203
|
"DescribeBillingResourceGroups": [
|
204
204
|
{
|
205
205
|
"document": "",
|
206
|
-
"input": "POST / HTTP/1.1\nHost: tione.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBillingResourceGroups\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"
|
207
|
-
"output": "{\n \"Response\": {\n \"
|
206
|
+
"input": "POST / HTTP/1.1\nHost: tione.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBillingResourceGroups\n<公共请求参数>\n\n{\n \"Type\": \"abc\",\n \"Filters\": [\n {\n \"Name\": \"abc\",\n \"Values\": [\n \"abc\"\n ],\n \"Negative\": true,\n \"Fuzzy\": true\n }\n ],\n \"TagFilters\": [\n {\n \"TagKey\": \"abc\",\n \"TagValues\": [\n \"abc\"\n ]\n }\n ],\n \"Offset\": 0,\n \"Limit\": 0,\n \"SearchWord\": \"abc\",\n \"DontShowInstanceSet\": true\n}",
|
207
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"ResourceGroupSet\": [\n {\n \"ResourceGroupId\": \"abc\",\n \"ResourceGroupName\": \"abc\",\n \"FreeInstance\": 1,\n \"TotalInstance\": 1,\n \"UsedResource\": {\n \"Cpu\": 1,\n \"Memory\": 1,\n \"Gpu\": 1,\n \"GpuDetailSet\": [\n {\n \"Name\": \"abc\",\n \"Value\": 1\n }\n ]\n },\n \"TotalResource\": {\n \"Cpu\": 1,\n \"Memory\": 1,\n \"Gpu\": 1,\n \"GpuDetailSet\": [\n {\n \"Name\": \"abc\",\n \"Value\": 1\n }\n ]\n },\n \"InstanceSet\": [\n {\n \"InstanceId\": \"abc\",\n \"UsedResource\": {\n \"Cpu\": 1,\n \"Memory\": 1,\n \"Gpu\": 1,\n \"GpuType\": \"abc\",\n \"RealGpu\": 1,\n \"RealGpuDetailSet\": [\n {\n \"Name\": \"abc\",\n \"Value\": 1\n }\n ]\n },\n \"TotalResource\": {\n \"Cpu\": 1,\n \"Memory\": 1,\n \"Gpu\": 1,\n \"GpuType\": \"abc\",\n \"RealGpu\": 1\n },\n \"InstanceStatus\": \"abc\",\n \"SubUin\": \"abc\",\n \"CreateTime\": \"abc\",\n \"ExpireTime\": \"abc\",\n \"AutoRenewFlag\": \"abc\",\n \"SpecId\": \"abc\",\n \"SpecAlias\": \"abc\",\n \"SpecFeatures\": [\n \"abc\"\n ],\n \"CvmInstanceId\": \"abc\"\n }\n ],\n \"TagSet\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ]\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
208
208
|
"title": "查询资源组详情"
|
209
209
|
}
|
210
210
|
],
|
@@ -756,6 +756,13 @@
|
|
756
756
|
"output": "EnhanceMediaByTemplateResponse",
|
757
757
|
"status": "online"
|
758
758
|
},
|
759
|
+
"EnhanceMediaQuality": {
|
760
|
+
"document": "对点播中的音视频媒体发起音画质重生任务。",
|
761
|
+
"input": "EnhanceMediaQualityRequest",
|
762
|
+
"name": "音画质重生",
|
763
|
+
"output": "EnhanceMediaQualityResponse",
|
764
|
+
"status": "online"
|
765
|
+
},
|
759
766
|
"ExecuteFunction": {
|
760
767
|
"document": "本接口仅用于定制开发的特殊场景,除非云点播客服人员主动告知您需要使用本接口,其它情况请勿调用。",
|
761
768
|
"input": "ExecuteFunctionRequest",
|
@@ -17109,6 +17116,130 @@
|
|
17109
17116
|
],
|
17110
17117
|
"type": "object"
|
17111
17118
|
},
|
17119
|
+
"EnhanceMediaQualityOutputConfig": {
|
17120
|
+
"document": "音画质重生结果文件输出。",
|
17121
|
+
"members": [
|
17122
|
+
{
|
17123
|
+
"disabled": false,
|
17124
|
+
"document": "输出文件名,最长 64 个字符。缺省由系统指定生成文件名。",
|
17125
|
+
"example": "name",
|
17126
|
+
"member": "string",
|
17127
|
+
"name": "MediaName",
|
17128
|
+
"required": false,
|
17129
|
+
"type": "string"
|
17130
|
+
},
|
17131
|
+
{
|
17132
|
+
"disabled": false,
|
17133
|
+
"document": "分类ID,用于对媒体进行分类管理,可通过 [创建分类](/document/product/266/7812) 接口,创建分类,获得分类 ID。\n<li>默认值:0,表示其他分类。</li>",
|
17134
|
+
"example": "0",
|
17135
|
+
"member": "int64",
|
17136
|
+
"name": "ClassId",
|
17137
|
+
"required": false,
|
17138
|
+
"type": "int"
|
17139
|
+
},
|
17140
|
+
{
|
17141
|
+
"disabled": false,
|
17142
|
+
"document": "输出文件的过期时间,超过该时间文件将被删除,默认为永久不过期,格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。",
|
17143
|
+
"example": "2023-09-08T02:23:29Z",
|
17144
|
+
"member": "string",
|
17145
|
+
"name": "ExpireTime",
|
17146
|
+
"required": false,
|
17147
|
+
"type": "string"
|
17148
|
+
}
|
17149
|
+
],
|
17150
|
+
"usage": "in"
|
17151
|
+
},
|
17152
|
+
"EnhanceMediaQualityRequest": {
|
17153
|
+
"document": "EnhanceMediaQuality请求参数结构体",
|
17154
|
+
"members": [
|
17155
|
+
{
|
17156
|
+
"disabled": false,
|
17157
|
+
"document": "媒体文件 ID,即该文件在云点播上的全局唯一标识符,在上传成功后由云点播后台分配。可以在 [视频上传完成事件通知](/document/product/266/7830) 或 [云点播控制台](https://console.cloud.tencent.com/vod/media) 获取该字段。",
|
17158
|
+
"example": "52123456",
|
17159
|
+
"member": "string",
|
17160
|
+
"name": "FileId",
|
17161
|
+
"required": true,
|
17162
|
+
"type": "string"
|
17163
|
+
},
|
17164
|
+
{
|
17165
|
+
"disabled": false,
|
17166
|
+
"document": "音画质重生模板 ID,请联系腾讯云获取。",
|
17167
|
+
"example": "10",
|
17168
|
+
"member": "uint64",
|
17169
|
+
"name": "Definition",
|
17170
|
+
"required": true,
|
17171
|
+
"type": "int"
|
17172
|
+
},
|
17173
|
+
{
|
17174
|
+
"disabled": false,
|
17175
|
+
"document": "<b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>",
|
17176
|
+
"example": "1490012345",
|
17177
|
+
"member": "uint64",
|
17178
|
+
"name": "SubAppId",
|
17179
|
+
"required": false,
|
17180
|
+
"type": "int"
|
17181
|
+
},
|
17182
|
+
{
|
17183
|
+
"disabled": false,
|
17184
|
+
"document": "音画质重生后的媒体文件配置。",
|
17185
|
+
"example": "无",
|
17186
|
+
"member": "EnhanceMediaQualityOutputConfig",
|
17187
|
+
"name": "OutputConfig",
|
17188
|
+
"required": false,
|
17189
|
+
"type": "object"
|
17190
|
+
},
|
17191
|
+
{
|
17192
|
+
"disabled": false,
|
17193
|
+
"document": "用于去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。",
|
17194
|
+
"example": "\"\"",
|
17195
|
+
"member": "string",
|
17196
|
+
"name": "SessionId",
|
17197
|
+
"required": false,
|
17198
|
+
"type": "string"
|
17199
|
+
},
|
17200
|
+
{
|
17201
|
+
"disabled": false,
|
17202
|
+
"document": "来源上下文,用于透传用户请求信息,音画质重生完成回调将返回该字段值,最长 1000 个字符。",
|
17203
|
+
"example": "\"\"",
|
17204
|
+
"member": "string",
|
17205
|
+
"name": "SessionContext",
|
17206
|
+
"required": false,
|
17207
|
+
"type": "string"
|
17208
|
+
},
|
17209
|
+
{
|
17210
|
+
"disabled": false,
|
17211
|
+
"document": "任务的优先级,数值越大优先级越高,取值范围是 -10 到 10,不填代表 0。",
|
17212
|
+
"example": "2",
|
17213
|
+
"member": "int64",
|
17214
|
+
"name": "TasksPriority",
|
17215
|
+
"required": false,
|
17216
|
+
"type": "int"
|
17217
|
+
}
|
17218
|
+
],
|
17219
|
+
"type": "object"
|
17220
|
+
},
|
17221
|
+
"EnhanceMediaQualityResponse": {
|
17222
|
+
"document": "EnhanceMediaQuality返回参数结构体",
|
17223
|
+
"members": [
|
17224
|
+
{
|
17225
|
+
"disabled": false,
|
17226
|
+
"document": "音画质重生任务 ID。",
|
17227
|
+
"example": "125xxx65-EnhanceMediaQuality-bffb15f07530b57bc1aabb01fac74bcc",
|
17228
|
+
"member": "string",
|
17229
|
+
"name": "TaskId",
|
17230
|
+
"output_required": true,
|
17231
|
+
"type": "string",
|
17232
|
+
"value_allowed_null": false
|
17233
|
+
},
|
17234
|
+
{
|
17235
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
17236
|
+
"member": "string",
|
17237
|
+
"name": "RequestId",
|
17238
|
+
"type": "string"
|
17239
|
+
}
|
17240
|
+
],
|
17241
|
+
"type": "object"
|
17242
|
+
},
|
17112
17243
|
"EventContent": {
|
17113
17244
|
"document": "事件通知内容,其中,TranscodeCompleteEvent、ConcatCompleteEvent、ClipCompleteEvent、CreateImageSpriteCompleteEvent、SnapshotByTimeOffsetCompleteEvent 为兼容 2017 版接口发起任务的事件通知。",
|
17114
17245
|
"members": [
|
@@ -1092,6 +1092,14 @@
|
|
1092
1092
|
"title": "使用模板发起音画质重生"
|
1093
1093
|
}
|
1094
1094
|
],
|
1095
|
+
"EnhanceMediaQuality": [
|
1096
|
+
{
|
1097
|
+
"document": "对 fileId 为 5285485487985271487 的视频发起音画质重生任务。",
|
1098
|
+
"input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnhanceMediaQuality\n<公共请求参数>\n\n{\n \"FileId\": \"5285485487985271487\",\n \"Definition\": 10\n}",
|
1099
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"6ca31e3a-6b8e-4b4e-9256-fdc700064ef3\",\n \"TaskId\": \"125xxx65-EnhanceMediaQuality-bffb15f07530b57bc1aabb01fac74bcc\"\n }\n}",
|
1100
|
+
"title": "发起音画质重生任务"
|
1101
|
+
}
|
1102
|
+
],
|
1095
1103
|
"ExecuteFunction": [
|
1096
1104
|
{
|
1097
1105
|
"document": "",
|
tccli/services/vod/vod_client.py
CHANGED
@@ -3553,6 +3553,58 @@ def doProcessImage(args, parsed_globals):
|
|
3553
3553
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3554
3554
|
|
3555
3555
|
|
3556
|
+
def doEnhanceMediaQuality(args, parsed_globals):
|
3557
|
+
g_param = parse_global_arg(parsed_globals)
|
3558
|
+
|
3559
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3560
|
+
cred = credential.CVMRoleCredential()
|
3561
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3562
|
+
cred = credential.STSAssumeRoleCredential(
|
3563
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3564
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
3565
|
+
)
|
3566
|
+
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):
|
3567
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3568
|
+
else:
|
3569
|
+
cred = credential.Credential(
|
3570
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3571
|
+
)
|
3572
|
+
http_profile = HttpProfile(
|
3573
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3574
|
+
reqMethod="POST",
|
3575
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3576
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3577
|
+
)
|
3578
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3579
|
+
if g_param[OptionsDefine.Language]:
|
3580
|
+
profile.language = g_param[OptionsDefine.Language]
|
3581
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3582
|
+
client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
|
3583
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3584
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3585
|
+
model = models.EnhanceMediaQualityRequest()
|
3586
|
+
model.from_json_string(json.dumps(args))
|
3587
|
+
start_time = time.time()
|
3588
|
+
while True:
|
3589
|
+
rsp = client.EnhanceMediaQuality(model)
|
3590
|
+
result = rsp.to_json_string()
|
3591
|
+
try:
|
3592
|
+
json_obj = json.loads(result)
|
3593
|
+
except TypeError as e:
|
3594
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3595
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3596
|
+
break
|
3597
|
+
cur_time = time.time()
|
3598
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3599
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3600
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3601
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3602
|
+
else:
|
3603
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3604
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3605
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3606
|
+
|
3607
|
+
|
3556
3608
|
def doCreateProcedureTemplate(args, parsed_globals):
|
3557
3609
|
g_param = parse_global_arg(parsed_globals)
|
3558
3610
|
|
@@ -8780,6 +8832,7 @@ ACTION_MAP = {
|
|
8780
8832
|
"CreateWatermarkTemplate": doCreateWatermarkTemplate,
|
8781
8833
|
"ParseStreamingManifest": doParseStreamingManifest,
|
8782
8834
|
"ProcessImage": doProcessImage,
|
8835
|
+
"EnhanceMediaQuality": doEnhanceMediaQuality,
|
8783
8836
|
"CreateProcedureTemplate": doCreateProcedureTemplate,
|
8784
8837
|
"PushUrlCache": doPushUrlCache,
|
8785
8838
|
"DeleteMedia": doDeleteMedia,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tccli
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.1029.1
|
4
4
|
Summary: Universal Command Line Environment for Tencent Cloud
|
5
5
|
Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
|
6
6
|
Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
14
14
|
Requires-Dist: jmespath==0.10.0
|
15
15
|
Requires-Dist: six==1.16.0
|
16
|
-
Requires-Dist: tencentcloud-sdk-python>=3.0.
|
16
|
+
Requires-Dist: tencentcloud-sdk-python>=3.0.1029
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
|
19
19
|
# 命令行工具简介
|