tccli 3.0.1316.1__py2.py3-none-any.whl → 3.0.1318.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/batch/v20170312/api.json +2 -2
- tccli/services/cbs/v20170312/api.json +59 -60
- tccli/services/cbs/v20170312/examples.json +5 -5
- tccli/services/cdb/v20170320/api.json +9 -9
- tccli/services/cdb/v20170320/examples.json +12 -0
- tccli/services/cdwdoris/v20211228/api.json +37 -1
- tccli/services/clb/v20180317/api.json +1 -1
- tccli/services/cls/v20201016/api.json +12 -2
- tccli/services/cvm/v20170312/api.json +18 -18
- tccli/services/cvm/v20170312/examples.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +29 -7
- tccli/services/dnspod/v20210323/api.json +85 -65
- tccli/services/dnspod/v20210323/examples.json +28 -28
- tccli/services/domain/v20180808/api.json +10 -10
- tccli/services/domain/v20180808/examples.json +1 -1
- tccli/services/dsgc/v20190723/api.json +45 -35
- tccli/services/dts/v20180330/api.json +2 -2
- tccli/services/es/v20180416/api.json +49 -0
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +83 -1
- tccli/services/ess/v20201111/examples.json +8 -0
- tccli/services/essbasic/v20210526/api.json +2 -2
- tccli/services/essbasic/v20210526/examples.json +9 -3
- tccli/services/goosefs/goosefs_client.py +386 -68
- tccli/services/goosefs/v20220519/api.json +510 -0
- tccli/services/goosefs/v20220519/examples.json +48 -0
- tccli/services/hai/v20230812/api.json +5 -5
- tccli/services/iotexplorer/v20190423/api.json +13 -3
- tccli/services/keewidb/v20220308/api.json +11 -2
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/lke/v20231130/api.json +12 -68
- tccli/services/lkeap/lkeap_client.py +53 -53
- tccli/services/lkeap/v20240522/api.json +90 -70
- tccli/services/lkeap/v20240522/examples.json +8 -8
- tccli/services/mps/v20190612/api.json +163 -0
- tccli/services/mps/v20190612/examples.json +1 -1
- tccli/services/mrs/v20200910/api.json +30 -0
- tccli/services/postgres/postgres_client.py +8 -114
- tccli/services/postgres/v20170312/api.json +0 -197
- tccli/services/postgres/v20170312/examples.json +0 -22
- tccli/services/privatedns/v20201028/api.json +2 -2
- tccli/services/scf/v20180416/api.json +2 -2
- tccli/services/sqlserver/v20180328/api.json +2 -2
- tccli/services/ssl/v20191205/api.json +18 -0
- tccli/services/ssl/v20191205/examples.json +2 -2
- tccli/services/tbaas/v20180416/api.json +3 -3
- tccli/services/tbaas/v20180416/examples.json +1 -1
- tccli/services/tcbr/v20220217/api.json +16 -16
- tccli/services/teo/v20220901/api.json +34 -6
- tccli/services/teo/v20220901/examples.json +1 -1
- tccli/services/tke/v20180525/api.json +7 -7
- tccli/services/tke/v20220501/api.json +61 -1
- tccli/services/tke/v20220501/examples.json +1 -1
- tccli/services/trtc/v20190722/api.json +19 -1
- tccli/services/tse/v20201207/api.json +78 -4
- tccli/services/vpc/v20170312/api.json +1 -1
- tccli/services/waf/v20180125/api.json +78 -22
- tccli/services/waf/v20180125/examples.json +1 -1
- {tccli-3.0.1316.1.dist-info → tccli-3.0.1318.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1316.1.dist-info → tccli-3.0.1318.1.dist-info}/RECORD +64 -64
- {tccli-3.0.1316.1.dist-info → tccli-3.0.1318.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1316.1.dist-info → tccli-3.0.1318.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1316.1.dist-info → tccli-3.0.1318.1.dist-info}/license_files/LICENSE +0 -0
@@ -10890,6 +10890,15 @@
|
|
10890
10890
|
"name": "EnhanceConfig",
|
10891
10891
|
"required": false,
|
10892
10892
|
"type": "object"
|
10893
|
+
},
|
10894
|
+
{
|
10895
|
+
"disabled": false,
|
10896
|
+
"document": "扩展参数,序列化的 json 字符串。",
|
10897
|
+
"example": "{\\\"video_info\\\":{\\\"keep_gop\\\":0}}",
|
10898
|
+
"member": "string",
|
10899
|
+
"name": "StdExtInfo",
|
10900
|
+
"required": false,
|
10901
|
+
"type": "string"
|
10893
10902
|
}
|
10894
10903
|
],
|
10895
10904
|
"type": "object"
|
@@ -13149,6 +13158,16 @@
|
|
13149
13158
|
"type": "string",
|
13150
13159
|
"value_allowed_null": true
|
13151
13160
|
},
|
13161
|
+
{
|
13162
|
+
"disabled": false,
|
13163
|
+
"document": "图片处理任务的执行状态与结果。\n注意:此字段可能返回 null,表示取不到有效值。",
|
13164
|
+
"example": "无",
|
13165
|
+
"member": "ImageProcessTaskResult",
|
13166
|
+
"name": "ImageProcessTaskResultSet",
|
13167
|
+
"output_required": false,
|
13168
|
+
"type": "list",
|
13169
|
+
"value_allowed_null": true
|
13170
|
+
},
|
13152
13171
|
{
|
13153
13172
|
"disabled": false,
|
13154
13173
|
"document": "任务的创建时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。\n注意:此字段可能返回 null,表示取不到有效值。",
|
@@ -18375,6 +18394,34 @@
|
|
18375
18394
|
],
|
18376
18395
|
"usage": "both"
|
18377
18396
|
},
|
18397
|
+
"ImageDenoiseConfig": {
|
18398
|
+
"document": "图片降噪配置",
|
18399
|
+
"members": [
|
18400
|
+
{
|
18401
|
+
"disabled": false,
|
18402
|
+
"document": "能力配置开关,可选值:\n<li>ON:开启;</li>\n<li>OFF:关闭。</li>\n默认值:ON。",
|
18403
|
+
"example": "ON",
|
18404
|
+
"member": "string",
|
18405
|
+
"name": "Switch",
|
18406
|
+
"output_required": true,
|
18407
|
+
"required": false,
|
18408
|
+
"type": "string",
|
18409
|
+
"value_allowed_null": false
|
18410
|
+
},
|
18411
|
+
{
|
18412
|
+
"disabled": false,
|
18413
|
+
"document": "类型,可选值:\n<li>weak</li>\n<li>strong</li>\n默认值:weak。\n注意:此字段可能返回 null,表示取不到有效值。",
|
18414
|
+
"example": "weak",
|
18415
|
+
"member": "string",
|
18416
|
+
"name": "Type",
|
18417
|
+
"output_required": true,
|
18418
|
+
"required": false,
|
18419
|
+
"type": "string",
|
18420
|
+
"value_allowed_null": true
|
18421
|
+
}
|
18422
|
+
],
|
18423
|
+
"usage": "both"
|
18424
|
+
},
|
18378
18425
|
"ImageEncodeConfig": {
|
18379
18426
|
"document": "图片编码格式参数",
|
18380
18427
|
"members": [
|
@@ -18417,6 +18464,17 @@
|
|
18417
18464
|
"type": "object",
|
18418
18465
|
"value_allowed_null": true
|
18419
18466
|
},
|
18467
|
+
{
|
18468
|
+
"disabled": false,
|
18469
|
+
"document": "降噪配置。\n注意:此字段可能返回 null,表示取不到有效值。",
|
18470
|
+
"example": "无",
|
18471
|
+
"member": "ImageDenoiseConfig",
|
18472
|
+
"name": "Denoise",
|
18473
|
+
"output_required": false,
|
18474
|
+
"required": false,
|
18475
|
+
"type": "object",
|
18476
|
+
"value_allowed_null": true
|
18477
|
+
},
|
18420
18478
|
{
|
18421
18479
|
"disabled": false,
|
18422
18480
|
"document": "综合增强配置。\n注意:此字段可能返回 null,表示取不到有效值。",
|
@@ -18460,6 +18518,17 @@
|
|
18460
18518
|
"required": false,
|
18461
18519
|
"type": "object",
|
18462
18520
|
"value_allowed_null": true
|
18521
|
+
},
|
18522
|
+
{
|
18523
|
+
"disabled": false,
|
18524
|
+
"document": "低光照增强配置。\n注意:此字段可能返回 null,表示取不到有效值。",
|
18525
|
+
"example": "无",
|
18526
|
+
"member": "LowLightEnhanceConfig",
|
18527
|
+
"name": "LowLightEnhance",
|
18528
|
+
"output_required": false,
|
18529
|
+
"required": false,
|
18530
|
+
"type": "object",
|
18531
|
+
"value_allowed_null": true
|
18463
18532
|
}
|
18464
18533
|
],
|
18465
18534
|
"usage": "both"
|
@@ -18509,6 +18578,78 @@
|
|
18509
18578
|
],
|
18510
18579
|
"usage": "both"
|
18511
18580
|
},
|
18581
|
+
"ImageProcessTaskOutput": {
|
18582
|
+
"document": "图片处理结果信息",
|
18583
|
+
"members": [
|
18584
|
+
{
|
18585
|
+
"disabled": false,
|
18586
|
+
"document": "输出文件的路径。\n注意:此字段可能返回 null,表示取不到有效值。",
|
18587
|
+
"example": "/output/test.jpeg",
|
18588
|
+
"member": "string",
|
18589
|
+
"name": "Path",
|
18590
|
+
"output_required": false,
|
18591
|
+
"type": "string",
|
18592
|
+
"value_allowed_null": true
|
18593
|
+
},
|
18594
|
+
{
|
18595
|
+
"disabled": false,
|
18596
|
+
"document": "输出文件的存储位置。\n注意:此字段可能返回 null,表示取不到有效值。",
|
18597
|
+
"example": "无",
|
18598
|
+
"member": "TaskOutputStorage",
|
18599
|
+
"name": "OutputStorage",
|
18600
|
+
"output_required": false,
|
18601
|
+
"type": "object",
|
18602
|
+
"value_allowed_null": true
|
18603
|
+
}
|
18604
|
+
],
|
18605
|
+
"usage": "out"
|
18606
|
+
},
|
18607
|
+
"ImageProcessTaskResult": {
|
18608
|
+
"document": "图片处理任务结果类型",
|
18609
|
+
"members": [
|
18610
|
+
{
|
18611
|
+
"disabled": false,
|
18612
|
+
"document": "任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。\n注意:此字段可能返回 null,表示取不到有效值。",
|
18613
|
+
"example": "SUCCESS",
|
18614
|
+
"member": "string",
|
18615
|
+
"name": "Status",
|
18616
|
+
"output_required": false,
|
18617
|
+
"type": "string",
|
18618
|
+
"value_allowed_null": true
|
18619
|
+
},
|
18620
|
+
{
|
18621
|
+
"disabled": false,
|
18622
|
+
"document": "错误信息。\n注意:此字段可能返回 null,表示取不到有效值。",
|
18623
|
+
"example": "SUCCESS",
|
18624
|
+
"member": "string",
|
18625
|
+
"name": "Message",
|
18626
|
+
"output_required": false,
|
18627
|
+
"type": "string",
|
18628
|
+
"value_allowed_null": true
|
18629
|
+
},
|
18630
|
+
{
|
18631
|
+
"disabled": false,
|
18632
|
+
"document": "转码任务的输出。\n注意:此字段可能返回 null,表示取不到有效值。",
|
18633
|
+
"example": "无",
|
18634
|
+
"member": "ImageProcessTaskOutput",
|
18635
|
+
"name": "Output",
|
18636
|
+
"output_required": false,
|
18637
|
+
"type": "object",
|
18638
|
+
"value_allowed_null": true
|
18639
|
+
},
|
18640
|
+
{
|
18641
|
+
"disabled": false,
|
18642
|
+
"document": "转码进度,取值范围 [0-100]\n注意:此字段可能返回 null,表示取不到有效值。",
|
18643
|
+
"example": "100",
|
18644
|
+
"member": "int64",
|
18645
|
+
"name": "Progress",
|
18646
|
+
"output_required": false,
|
18647
|
+
"type": "int",
|
18648
|
+
"value_allowed_null": true
|
18649
|
+
}
|
18650
|
+
],
|
18651
|
+
"usage": "out"
|
18652
|
+
},
|
18512
18653
|
"ImageQualityEnhanceConfig": {
|
18513
18654
|
"document": "综合增强配置",
|
18514
18655
|
"members": [
|
@@ -27220,6 +27361,28 @@
|
|
27220
27361
|
"required": false,
|
27221
27362
|
"type": "object",
|
27222
27363
|
"value_allowed_null": false
|
27364
|
+
},
|
27365
|
+
{
|
27366
|
+
"disabled": false,
|
27367
|
+
"document": "扩展参数,序列化的 json 字符串。\n注意:此字段可能返回 null,表示取不到有效值。",
|
27368
|
+
"example": "{\"video_info\":{\"color_prim\":\"bt709\"}}",
|
27369
|
+
"member": "string",
|
27370
|
+
"name": "StdExtInfo",
|
27371
|
+
"output_required": false,
|
27372
|
+
"required": false,
|
27373
|
+
"type": "string",
|
27374
|
+
"value_allowed_null": true
|
27375
|
+
},
|
27376
|
+
{
|
27377
|
+
"disabled": false,
|
27378
|
+
"document": "音视频增强配置\n注意:此字段可能返回 null,表示取不到有效值。",
|
27379
|
+
"example": "无",
|
27380
|
+
"member": "EnhanceConfig",
|
27381
|
+
"name": "EnhanceConfig",
|
27382
|
+
"output_required": false,
|
27383
|
+
"required": false,
|
27384
|
+
"type": "object",
|
27385
|
+
"value_allowed_null": true
|
27223
27386
|
}
|
27224
27387
|
],
|
27225
27388
|
"usage": "both"
|
@@ -838,7 +838,7 @@
|
|
838
838
|
{
|
839
839
|
"document": "查询 ID 为78459的工作流。",
|
840
840
|
"input": "https://mps.tencentcloudapi.com/?Action=DescribeWorkflows\n&WorkflowIds.0=78459\n&<公共请求参数>",
|
841
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"WorkflowInfoSet\": [\n {\n \"WorkflowId\": 0,\n \"WorkflowName\": \"abc\",\n \"Status\": \"abc\",\n \"Trigger\": {\n \"Type\": \"abc\",\n \"CosFileUploadTrigger\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Dir\": \"abc\",\n \"Formats\": [\n \"abc\"\n ]\n },\n \"AwsS3FileUploadTrigger\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"Dir\": \"abc\",\n \"Formats\": [\n \"abc\"\n ],\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\",\n \"AwsSQS\": {\n \"SQSRegion\": \"abc\",\n \"SQSQueueName\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n }\n },\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"MediaProcessTask\": {\n \"TranscodeTaskSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Container\": \"abc\",\n \"RemoveVideo\": 0,\n \"RemoveAudio\": 0,\n \"VideoTemplate\": {\n \"Codec\": \"abc\",\n \"Fps\": 0,\n \"Bitrate\": 0,\n \"ResolutionAdaptive\": \"abc\",\n \"Width\": 1,\n \"Height\": 1,\n \"Gop\": 1,\n \"FillType\": \"abc\",\n \"Vcrf\": 1,\n \"HlsTime\": 1,\n \"SegmentType\": 0\n },\n \"AudioTemplate\": {\n \"Codec\": \"abc\",\n \"Bitrate\": 0,\n \"SampleRate\": 1,\n \"AudioChannel\": 0\n },\n \"TEHDConfig\": {\n \"Type\": \"abc\",\n \"MaxVideoBitrate\": 0\n }\n },\n \"OverrideParameter\": {\n \"Container\": \"abc\",\n \"RemoveVideo\": 1,\n \"RemoveAudio\": 1,\n \"VideoTemplate\": {\n \"Codec\": \"abc\",\n \"Fps\": 0,\n \"Bitrate\": 0,\n \"ResolutionAdaptive\": \"abc\",\n \"Width\": 1,\n \"Height\": 1,\n \"Gop\": 1,\n \"FillType\": \"abc\",\n \"Vcrf\": 1,\n \"ContentAdaptStream\": 1,\n \"HlsTime\": 1,\n \"SegmentType\": 0\n },\n \"AudioTemplate\": {\n \"Codec\": \"abc\",\n \"Bitrate\": 0,\n \"SampleRate\": 1,\n \"AudioChannel\": 0,\n \"StreamSelects\": [\n 0\n ]\n },\n \"TEHDConfig\": {\n \"Type\": \"abc\",\n \"MaxVideoBitrate\": 0\n },\n \"SubtitleTemplate\": {\n \"Path\": \"abc\",\n \"StreamIndex\": 0,\n \"FontType\": \"abc\",\n \"FontSize\": \"abc\",\n \"FontColor\": \"abc\",\n \"FontAlpha\": 0\n },\n \"AddonAudioStream\": [\n {\n \"Type\": \"abc\",\n \"CosInputInfo\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Object\": \"abc\"\n },\n \"UrlInputInfo\": {\n \"Url\": \"abc\"\n },\n \"S3InputInfo\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3Object\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n }\n ],\n \"StdExtInfo\": \"abc\",\n \"AddOnSubtitles\": [\n {\n \"Type\": \"abc\",\n \"Subtitle\": {\n \"Type\": \"abc\",\n \"CosInputInfo\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Object\": \"abc\"\n },\n \"UrlInputInfo\": {\n \"Url\": \"abc\"\n },\n \"S3InputInfo\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3Object\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n }\n }\n ]\n },\n \"WatermarkSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Type\": \"abc\",\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"ImageTemplate\": {\n \"ImageContent\": {\n \"Type\": \"abc\",\n \"CosInputInfo\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Object\": \"abc\"\n },\n \"UrlInputInfo\": {\n \"Url\": \"abc\"\n },\n \"S3InputInfo\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3Object\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"RepeatType\": \"abc\"\n }\n },\n \"TextContent\": \"abc\",\n \"SvgContent\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"MosaicSet\": [\n {\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0,\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"OutputObjectPath\": \"abc\",\n \"SegmentObjectName\": \"abc\",\n \"ObjectNumberFormat\": {\n \"InitialValue\": 1,\n \"Increment\": 1,\n \"MinLength\": 1,\n \"PlaceHolder\": \"abc\"\n },\n \"HeadTailParameter\": {}\n }\n ],\n \"AnimatedGraphicTaskSet\": [\n {\n \"Definition\": 1,\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0,\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"OutputObjectPath\": \"abc\"\n }\n ],\n \"SnapshotByTimeOffsetTaskSet\": [\n {\n \"Definition\": 1,\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"ExtTimeOffsetSet\": [\n \"abc\"\n ],\n \"TimeOffsetSet\": [\n 0\n ],\n \"WatermarkSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Type\": \"abc\",\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"ImageTemplate\": {\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"RepeatType\": \"abc\"\n }\n },\n \"TextContent\": \"abc\",\n \"SvgContent\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"OutputObjectPath\": \"abc\",\n \"ObjectNumberFormat\": {\n \"InitialValue\": 1,\n \"Increment\": 1,\n \"MinLength\": 1,\n \"PlaceHolder\": \"abc\"\n }\n }\n ],\n \"SampleSnapshotTaskSet\": [\n {\n \"Definition\": 1,\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"WatermarkSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Type\": \"abc\",\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"ImageTemplate\": {\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"RepeatType\": \"abc\"\n }\n },\n \"TextContent\": \"abc\",\n \"SvgContent\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"OutputObjectPath\": \"abc\",\n \"ObjectNumberFormat\": {\n \"InitialValue\": 1,\n \"Increment\": 1,\n \"MinLength\": 1,\n \"PlaceHolder\": \"abc\"\n }\n }\n ],\n \"ImageSpriteTaskSet\": [\n {\n \"Definition\": 1,\n \"OutputObjectPath\": \"abc\",\n \"WebVttObjectName\": \"abc\"\n }\n ],\n \"AdaptiveDynamicStreamingTaskSet\": [\n {\n \"Definition\": 1,\n \"WatermarkSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Type\": \"abc\",\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"ImageTemplate\": {\n \"ImageContent\": {\n \"Type\": \"abc\",\n \"CosInputInfo\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Object\": \"abc\"\n },\n \"UrlInputInfo\": {\n \"Url\": \"abc\"\n },\n \"S3InputInfo\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3Object\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"RepeatType\": \"abc\"\n }\n },\n \"TextContent\": \"abc\",\n \"SvgContent\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"OutputObjectPath\": \"abc\",\n \"SubStreamObjectName\": \"abc\",\n \"SegmentObjectName\": \"abc\",\n \"AddOnSubtitles\": [\n {\n \"Type\": \"abc\"\n }\n ],\n \"DrmInfo\": {\n \"Type\": \"abc\",\n \"SimpleAesDrm\": {\n \"Uri\": \"abc\",\n \"Key\": \"abc\",\n \"Vector\": \"abc\"\n }\n },\n \"DefinitionType\": \"abc\"\n }\n ]\n },\n \"AiContentReviewTask\": {\n \"Definition\": 1\n },\n \"AiAnalysisTask\": {\n \"Definition\": 1,\n \"ExtendedParameter\": \"abc\"\n },\n \"AiRecognitionTask\": {\n \"Definition\": 1\n },\n \"TaskNotifyConfig\": {\n \"NotifyType\": \"abc\",\n \"NotifyMode\": \"abc\",\n \"NotifyUrl\": \"abc\",\n \"CmqModel\": \"abc\",\n \"CmqRegion\": \"abc\",\n \"TopicName\": \"abc\",\n \"QueueName\": \"abc\",\n \"AwsSQS\": {\n \"SQSRegion\": \"abc\",\n \"SQSQueueName\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n },\n \"NotifyKey\": \"abc\"\n },\n \"TaskPriority\": 0,\n \"OutputDir\": \"abc\",\n \"CreateTime\": \"abc\",\n \"UpdateTime\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
841
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"WorkflowInfoSet\": [\n {\n \"WorkflowId\": 0,\n \"WorkflowName\": \"abc\",\n \"Status\": \"abc\",\n \"Trigger\": {\n \"Type\": \"abc\",\n \"CosFileUploadTrigger\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Dir\": \"abc\",\n \"Formats\": [\n \"abc\"\n ]\n },\n \"AwsS3FileUploadTrigger\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"Dir\": \"abc\",\n \"Formats\": [\n \"abc\"\n ],\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\",\n \"AwsSQS\": {\n \"SQSRegion\": \"abc\",\n \"SQSQueueName\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n }\n },\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"MediaProcessTask\": {\n \"TranscodeTaskSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Container\": \"abc\",\n \"RemoveVideo\": 0,\n \"RemoveAudio\": 0,\n \"VideoTemplate\": {\n \"Codec\": \"abc\",\n \"Fps\": 0,\n \"Bitrate\": 0,\n \"ResolutionAdaptive\": \"abc\",\n \"Width\": 1,\n \"Height\": 1,\n \"Gop\": 1,\n \"FillType\": \"abc\",\n \"Vcrf\": 1,\n \"HlsTime\": 1,\n \"SegmentType\": 0\n },\n \"AudioTemplate\": {\n \"Codec\": \"abc\",\n \"Bitrate\": 0,\n \"SampleRate\": 1,\n \"AudioChannel\": 0\n },\n \"TEHDConfig\": {\n \"Type\": \"abc\",\n \"MaxVideoBitrate\": 0\n },\n \"StdExtInfo\": \"abc\",\n \"EnhanceConfig\": {\n \"VideoEnhance\": {\n \"FrameRate\": {\n \"Switch\": \"abc\",\n \"Fps\": 1\n },\n \"SuperResolution\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\",\n \"Size\": 0\n },\n \"Hdr\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n },\n \"Denoise\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n },\n \"ImageQualityEnhance\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n },\n \"ColorEnhance\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n },\n \"SharpEnhance\": {\n \"Switch\": \"abc\",\n \"Intensity\": 0\n },\n \"FaceEnhance\": {\n \"Switch\": \"abc\",\n \"Intensity\": 0\n },\n \"LowLightEnhance\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n },\n \"ScratchRepair\": {\n \"Switch\": \"abc\",\n \"Intensity\": 0\n },\n \"ArtifactRepair\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n }\n },\n \"AudioEnhance\": {\n \"Denoise\": {\n \"Switch\": \"abc\"\n },\n \"Separate\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\",\n \"Track\": \"abc\"\n },\n \"VolumeBalance\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n },\n \"Beautify\": {\n \"Switch\": \"abc\",\n \"Types\": [\n \"abc\"\n ]\n }\n }\n }\n },\n \"OverrideParameter\": {\n \"Container\": \"abc\",\n \"RemoveVideo\": 1,\n \"RemoveAudio\": 1,\n \"VideoTemplate\": {\n \"Codec\": \"abc\",\n \"Fps\": 0,\n \"Bitrate\": 0,\n \"ResolutionAdaptive\": \"abc\",\n \"Width\": 1,\n \"Height\": 1,\n \"Gop\": 1,\n \"FillType\": \"abc\",\n \"Vcrf\": 1,\n \"ContentAdaptStream\": 1,\n \"HlsTime\": 1,\n \"SegmentType\": 0\n },\n \"AudioTemplate\": {\n \"Codec\": \"abc\",\n \"Bitrate\": 0,\n \"SampleRate\": 1,\n \"AudioChannel\": 0,\n \"StreamSelects\": [\n 0\n ]\n },\n \"TEHDConfig\": {\n \"Type\": \"abc\",\n \"MaxVideoBitrate\": 0\n },\n \"SubtitleTemplate\": {\n \"Path\": \"abc\",\n \"StreamIndex\": 0,\n \"FontType\": \"abc\",\n \"FontSize\": \"abc\",\n \"FontColor\": \"abc\",\n \"FontAlpha\": 0\n },\n \"AddonAudioStream\": [\n {\n \"Type\": \"abc\",\n \"CosInputInfo\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Object\": \"abc\"\n },\n \"UrlInputInfo\": {\n \"Url\": \"abc\"\n },\n \"S3InputInfo\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3Object\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n }\n ],\n \"StdExtInfo\": \"abc\",\n \"AddOnSubtitles\": [\n {\n \"Type\": \"abc\",\n \"Subtitle\": {\n \"Type\": \"abc\",\n \"CosInputInfo\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Object\": \"abc\"\n },\n \"UrlInputInfo\": {\n \"Url\": \"abc\"\n },\n \"S3InputInfo\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3Object\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n }\n }\n ]\n },\n \"WatermarkSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Type\": \"abc\",\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"ImageTemplate\": {\n \"ImageContent\": {\n \"Type\": \"abc\",\n \"CosInputInfo\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Object\": \"abc\"\n },\n \"UrlInputInfo\": {\n \"Url\": \"abc\"\n },\n \"S3InputInfo\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3Object\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"RepeatType\": \"abc\"\n }\n },\n \"TextContent\": \"abc\",\n \"SvgContent\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"MosaicSet\": [\n {\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0,\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"OutputObjectPath\": \"abc\",\n \"SegmentObjectName\": \"abc\",\n \"ObjectNumberFormat\": {\n \"InitialValue\": 1,\n \"Increment\": 1,\n \"MinLength\": 1,\n \"PlaceHolder\": \"abc\"\n },\n \"HeadTailParameter\": {}\n }\n ],\n \"AnimatedGraphicTaskSet\": [\n {\n \"Definition\": 1,\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0,\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"OutputObjectPath\": \"abc\"\n }\n ],\n \"SnapshotByTimeOffsetTaskSet\": [\n {\n \"Definition\": 1,\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"ExtTimeOffsetSet\": [\n \"abc\"\n ],\n \"TimeOffsetSet\": [\n 0\n ],\n \"WatermarkSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Type\": \"abc\",\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"ImageTemplate\": {\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"RepeatType\": \"abc\"\n }\n },\n \"TextContent\": \"abc\",\n \"SvgContent\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"OutputObjectPath\": \"abc\",\n \"ObjectNumberFormat\": {\n \"InitialValue\": 1,\n \"Increment\": 1,\n \"MinLength\": 1,\n \"PlaceHolder\": \"abc\"\n }\n }\n ],\n \"SampleSnapshotTaskSet\": [\n {\n \"Definition\": 1,\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"WatermarkSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Type\": \"abc\",\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"ImageTemplate\": {\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"RepeatType\": \"abc\"\n }\n },\n \"TextContent\": \"abc\",\n \"SvgContent\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"OutputObjectPath\": \"abc\",\n \"ObjectNumberFormat\": {\n \"InitialValue\": 1,\n \"Increment\": 1,\n \"MinLength\": 1,\n \"PlaceHolder\": \"abc\"\n }\n }\n ],\n \"ImageSpriteTaskSet\": [\n {\n \"Definition\": 1,\n \"OutputObjectPath\": \"abc\",\n \"WebVttObjectName\": \"abc\"\n }\n ],\n \"AdaptiveDynamicStreamingTaskSet\": [\n {\n \"Definition\": 1,\n \"WatermarkSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Type\": \"abc\",\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"ImageTemplate\": {\n \"ImageContent\": {\n \"Type\": \"abc\",\n \"CosInputInfo\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Object\": \"abc\"\n },\n \"UrlInputInfo\": {\n \"Url\": \"abc\"\n },\n \"S3InputInfo\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3Object\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"RepeatType\": \"abc\"\n }\n },\n \"TextContent\": \"abc\",\n \"SvgContent\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"OutputObjectPath\": \"abc\",\n \"SubStreamObjectName\": \"abc\",\n \"SegmentObjectName\": \"abc\",\n \"AddOnSubtitles\": [\n {\n \"Type\": \"abc\"\n }\n ],\n \"DrmInfo\": {\n \"Type\": \"abc\",\n \"SimpleAesDrm\": {\n \"Uri\": \"abc\",\n \"Key\": \"abc\",\n \"Vector\": \"abc\"\n }\n },\n \"DefinitionType\": \"abc\"\n }\n ]\n },\n \"AiContentReviewTask\": {\n \"Definition\": 1\n },\n \"AiAnalysisTask\": {\n \"Definition\": 1,\n \"ExtendedParameter\": \"abc\"\n },\n \"AiRecognitionTask\": {\n \"Definition\": 1\n },\n \"TaskNotifyConfig\": {\n \"NotifyType\": \"abc\",\n \"NotifyMode\": \"abc\",\n \"NotifyUrl\": \"abc\",\n \"CmqModel\": \"abc\",\n \"CmqRegion\": \"abc\",\n \"TopicName\": \"abc\",\n \"QueueName\": \"abc\",\n \"AwsSQS\": {\n \"SQSRegion\": \"abc\",\n \"SQSQueueName\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n },\n \"NotifyKey\": \"abc\"\n },\n \"TaskPriority\": 0,\n \"OutputDir\": \"abc\",\n \"CreateTime\": \"abc\",\n \"UpdateTime\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
842
842
|
"title": "查询特定工作流"
|
843
843
|
}
|
844
844
|
],
|
@@ -1269,6 +1269,16 @@
|
|
1269
1269
|
"output_required": false,
|
1270
1270
|
"type": "object",
|
1271
1271
|
"value_allowed_null": false
|
1272
|
+
},
|
1273
|
+
{
|
1274
|
+
"disabled": false,
|
1275
|
+
"document": "内窥镜报告V2",
|
1276
|
+
"example": "无",
|
1277
|
+
"member": "Check",
|
1278
|
+
"name": "EndoscopyV2",
|
1279
|
+
"output_required": false,
|
1280
|
+
"type": "list",
|
1281
|
+
"value_allowed_null": false
|
1272
1282
|
}
|
1273
1283
|
],
|
1274
1284
|
"usage": "out"
|
@@ -6815,6 +6825,16 @@
|
|
6815
6825
|
"output_required": false,
|
6816
6826
|
"type": "string",
|
6817
6827
|
"value_allowed_null": false
|
6828
|
+
},
|
6829
|
+
{
|
6830
|
+
"disabled": false,
|
6831
|
+
"document": "标本",
|
6832
|
+
"example": "血",
|
6833
|
+
"member": "string",
|
6834
|
+
"name": "Sample",
|
6835
|
+
"output_required": false,
|
6836
|
+
"type": "string",
|
6837
|
+
"value_allowed_null": false
|
6818
6838
|
}
|
6819
6839
|
],
|
6820
6840
|
"usage": "out"
|
@@ -13880,6 +13900,16 @@
|
|
13880
13900
|
"output_required": false,
|
13881
13901
|
"type": "object",
|
13882
13902
|
"value_allowed_null": false
|
13903
|
+
},
|
13904
|
+
{
|
13905
|
+
"disabled": false,
|
13906
|
+
"document": "内窥镜报告V2",
|
13907
|
+
"example": "object",
|
13908
|
+
"member": "Check",
|
13909
|
+
"name": "EndoscopyV2",
|
13910
|
+
"output_required": false,
|
13911
|
+
"type": "object",
|
13912
|
+
"value_allowed_null": false
|
13883
13913
|
}
|
13884
13914
|
],
|
13885
13915
|
"usage": "out"
|
@@ -2825,7 +2825,7 @@ def doDescribeEncryptionKeys(args, parsed_globals):
|
|
2825
2825
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2826
2826
|
|
2827
2827
|
|
2828
|
-
def
|
2828
|
+
def doDeleteReadOnlyGroup(args, parsed_globals):
|
2829
2829
|
g_param = parse_global_arg(parsed_globals)
|
2830
2830
|
|
2831
2831
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2854,11 +2854,11 @@ def doModifyDBInstancesProject(args, parsed_globals):
|
|
2854
2854
|
client = mod.PostgresClient(cred, g_param[OptionsDefine.Region], profile)
|
2855
2855
|
client._sdkVersion += ("_CLI_" + __version__)
|
2856
2856
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2857
|
-
model = models.
|
2857
|
+
model = models.DeleteReadOnlyGroupRequest()
|
2858
2858
|
model.from_json_string(json.dumps(args))
|
2859
2859
|
start_time = time.time()
|
2860
2860
|
while True:
|
2861
|
-
rsp = client.
|
2861
|
+
rsp = client.DeleteReadOnlyGroup(model)
|
2862
2862
|
result = rsp.to_json_string()
|
2863
2863
|
try:
|
2864
2864
|
json_obj = json.loads(result)
|
@@ -3085,7 +3085,7 @@ def doDeleteDBInstanceNetworkAccess(args, parsed_globals):
|
|
3085
3085
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3086
3086
|
|
3087
3087
|
|
3088
|
-
def
|
3088
|
+
def doModifyDBInstancesProject(args, parsed_globals):
|
3089
3089
|
g_param = parse_global_arg(parsed_globals)
|
3090
3090
|
|
3091
3091
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3114,11 +3114,11 @@ def doDeleteReadOnlyGroup(args, parsed_globals):
|
|
3114
3114
|
client = mod.PostgresClient(cred, g_param[OptionsDefine.Region], profile)
|
3115
3115
|
client._sdkVersion += ("_CLI_" + __version__)
|
3116
3116
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3117
|
-
model = models.
|
3117
|
+
model = models.ModifyDBInstancesProjectRequest()
|
3118
3118
|
model.from_json_string(json.dumps(args))
|
3119
3119
|
start_time = time.time()
|
3120
3120
|
while True:
|
3121
|
-
rsp = client.
|
3121
|
+
rsp = client.ModifyDBInstancesProject(model)
|
3122
3122
|
result = rsp.to_json_string()
|
3123
3123
|
try:
|
3124
3124
|
json_obj = json.loads(result)
|
@@ -4749,58 +4749,6 @@ def doModifyDBInstanceSSLConfig(args, parsed_globals):
|
|
4749
4749
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4750
4750
|
|
4751
4751
|
|
4752
|
-
def doInitDBInstances(args, parsed_globals):
|
4753
|
-
g_param = parse_global_arg(parsed_globals)
|
4754
|
-
|
4755
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4756
|
-
cred = credential.CVMRoleCredential()
|
4757
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4758
|
-
cred = credential.STSAssumeRoleCredential(
|
4759
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4760
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4761
|
-
)
|
4762
|
-
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):
|
4763
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4764
|
-
else:
|
4765
|
-
cred = credential.Credential(
|
4766
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4767
|
-
)
|
4768
|
-
http_profile = HttpProfile(
|
4769
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4770
|
-
reqMethod="POST",
|
4771
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
4772
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4773
|
-
)
|
4774
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4775
|
-
if g_param[OptionsDefine.Language]:
|
4776
|
-
profile.language = g_param[OptionsDefine.Language]
|
4777
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4778
|
-
client = mod.PostgresClient(cred, g_param[OptionsDefine.Region], profile)
|
4779
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
4780
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4781
|
-
model = models.InitDBInstancesRequest()
|
4782
|
-
model.from_json_string(json.dumps(args))
|
4783
|
-
start_time = time.time()
|
4784
|
-
while True:
|
4785
|
-
rsp = client.InitDBInstances(model)
|
4786
|
-
result = rsp.to_json_string()
|
4787
|
-
try:
|
4788
|
-
json_obj = json.loads(result)
|
4789
|
-
except TypeError as e:
|
4790
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4791
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4792
|
-
break
|
4793
|
-
cur_time = time.time()
|
4794
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4795
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4796
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4797
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4798
|
-
else:
|
4799
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4800
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4801
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4802
|
-
|
4803
|
-
|
4804
4752
|
def doCreateReadOnlyGroupNetworkAccess(args, parsed_globals):
|
4805
4753
|
g_param = parse_global_arg(parsed_globals)
|
4806
4754
|
|
@@ -5425,58 +5373,6 @@ def doDescribeDBInstanceAttribute(args, parsed_globals):
|
|
5425
5373
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5426
5374
|
|
5427
5375
|
|
5428
|
-
def doUpgradeDBInstance(args, parsed_globals):
|
5429
|
-
g_param = parse_global_arg(parsed_globals)
|
5430
|
-
|
5431
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5432
|
-
cred = credential.CVMRoleCredential()
|
5433
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5434
|
-
cred = credential.STSAssumeRoleCredential(
|
5435
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5436
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5437
|
-
)
|
5438
|
-
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):
|
5439
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5440
|
-
else:
|
5441
|
-
cred = credential.Credential(
|
5442
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5443
|
-
)
|
5444
|
-
http_profile = HttpProfile(
|
5445
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5446
|
-
reqMethod="POST",
|
5447
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
5448
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5449
|
-
)
|
5450
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5451
|
-
if g_param[OptionsDefine.Language]:
|
5452
|
-
profile.language = g_param[OptionsDefine.Language]
|
5453
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5454
|
-
client = mod.PostgresClient(cred, g_param[OptionsDefine.Region], profile)
|
5455
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
5456
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5457
|
-
model = models.UpgradeDBInstanceRequest()
|
5458
|
-
model.from_json_string(json.dumps(args))
|
5459
|
-
start_time = time.time()
|
5460
|
-
while True:
|
5461
|
-
rsp = client.UpgradeDBInstance(model)
|
5462
|
-
result = rsp.to_json_string()
|
5463
|
-
try:
|
5464
|
-
json_obj = json.loads(result)
|
5465
|
-
except TypeError as e:
|
5466
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5467
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5468
|
-
break
|
5469
|
-
cur_time = time.time()
|
5470
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5471
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5472
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5473
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5474
|
-
else:
|
5475
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5476
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5477
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5478
|
-
|
5479
|
-
|
5480
5376
|
def doCreateInstances(args, parsed_globals):
|
5481
5377
|
g_param = parse_global_arg(parsed_globals)
|
5482
5378
|
|
@@ -5594,12 +5490,12 @@ ACTION_MAP = {
|
|
5594
5490
|
"RebalanceReadOnlyGroup": doRebalanceReadOnlyGroup,
|
5595
5491
|
"DescribeBackupDownloadURL": doDescribeBackupDownloadURL,
|
5596
5492
|
"DescribeEncryptionKeys": doDescribeEncryptionKeys,
|
5597
|
-
"
|
5493
|
+
"DeleteReadOnlyGroup": doDeleteReadOnlyGroup,
|
5598
5494
|
"UpgradeDBInstanceKernelVersion": doUpgradeDBInstanceKernelVersion,
|
5599
5495
|
"ResetAccountPassword": doResetAccountPassword,
|
5600
5496
|
"RestoreDBInstanceObjects": doRestoreDBInstanceObjects,
|
5601
5497
|
"DeleteDBInstanceNetworkAccess": doDeleteDBInstanceNetworkAccess,
|
5602
|
-
"
|
5498
|
+
"ModifyDBInstancesProject": doModifyDBInstancesProject,
|
5603
5499
|
"DescribeDBXlogs": doDescribeDBXlogs,
|
5604
5500
|
"RestartDBInstance": doRestartDBInstance,
|
5605
5501
|
"CreateDBInstances": doCreateDBInstances,
|
@@ -5631,7 +5527,6 @@ ACTION_MAP = {
|
|
5631
5527
|
"DeleteAccount": doDeleteAccount,
|
5632
5528
|
"ModifyBackupPlan": doModifyBackupPlan,
|
5633
5529
|
"ModifyDBInstanceSSLConfig": doModifyDBInstanceSSLConfig,
|
5634
|
-
"InitDBInstances": doInitDBInstances,
|
5635
5530
|
"CreateReadOnlyGroupNetworkAccess": doCreateReadOnlyGroupNetworkAccess,
|
5636
5531
|
"DescribeZones": doDescribeZones,
|
5637
5532
|
"DescribeDBInstanceSSLConfig": doDescribeDBInstanceSSLConfig,
|
@@ -5644,7 +5539,6 @@ ACTION_MAP = {
|
|
5644
5539
|
"LockAccount": doLockAccount,
|
5645
5540
|
"DescribeReadOnlyGroups": doDescribeReadOnlyGroups,
|
5646
5541
|
"DescribeDBInstanceAttribute": doDescribeDBInstanceAttribute,
|
5647
|
-
"UpgradeDBInstance": doUpgradeDBInstance,
|
5648
5542
|
"CreateInstances": doCreateInstances,
|
5649
5543
|
|
5650
5544
|
}
|