tccli 3.0.1198.1__py2.py3-none-any.whl → 3.0.1199.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/ccc/ccc_client.py +57 -4
- tccli/services/ccc/v20200210/api.json +188 -0
- tccli/services/ccc/v20200210/examples.json +8 -0
- tccli/services/clb/v20180317/api.json +19 -1
- tccli/services/cme/v20191029/api.json +18 -8
- tccli/services/cynosdb/cynosdb_client.py +0 -53
- tccli/services/cynosdb/v20190107/api.json +0 -92
- tccli/services/cynosdb/v20190107/examples.json +0 -8
- tccli/services/emr/v20190103/api.json +4 -4
- tccli/services/faceid/v20180301/api.json +9 -0
- tccli/services/iecp/iecp_client.py +298 -1358
- tccli/services/iecp/v20210914/api.json +216 -2256
- tccli/services/iecp/v20210914/examples.json +0 -166
- tccli/services/ims/v20201229/api.json +9 -9
- tccli/services/ims/v20201229/examples.json +2 -2
- tccli/services/monitor/monitor_client.py +8 -114
- tccli/services/monitor/v20180724/api.json +0 -85
- tccli/services/monitor/v20180724/examples.json +0 -16
- tccli/services/ocr/v20181119/api.json +3 -3
- tccli/services/postgres/postgres_client.py +53 -0
- tccli/services/postgres/v20170312/api.json +191 -0
- tccli/services/postgres/v20170312/examples.json +16 -2
- tccli/services/rce/v20201103/api.json +17 -8
- tccli/services/tcss/v20201101/api.json +199 -3
- tccli/services/tcss/v20201101/examples.json +5 -5
- tccli/services/teo/v20220901/api.json +50 -0
- tccli/services/tke/v20180525/api.json +9 -9
- tccli/services/tke/v20220501/api.json +5 -5
- tccli/services/tse/v20201207/api.json +22 -0
- tccli/services/tsf/tsf_client.py +4 -57
- tccli/services/tsf/v20180326/api.json +0 -34
- tccli/services/tsf/v20180326/examples.json +0 -8
- tccli/services/vpc/v20170312/examples.json +6 -0
- tccli/services/wedata/v20210820/api.json +11 -0
- {tccli-3.0.1198.1.dist-info → tccli-3.0.1199.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1198.1.dist-info → tccli-3.0.1199.1.dist-info}/RECORD +40 -40
- {tccli-3.0.1198.1.dist-info → tccli-3.0.1199.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1198.1.dist-info → tccli-3.0.1199.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1198.1.dist-info → tccli-3.0.1199.1.dist-info}/license_files/LICENSE +0 -0
@@ -15439,7 +15439,7 @@
|
|
15439
15439
|
"example": "无",
|
15440
15440
|
"member": "string",
|
15441
15441
|
"name": "Status",
|
15442
|
-
"
|
15442
|
+
"output_required": true,
|
15443
15443
|
"type": "string",
|
15444
15444
|
"value_allowed_null": false
|
15445
15445
|
},
|
@@ -15449,10 +15449,20 @@
|
|
15449
15449
|
"example": "无",
|
15450
15450
|
"member": "string",
|
15451
15451
|
"name": "Err",
|
15452
|
-
"
|
15452
|
+
"output_required": true,
|
15453
15453
|
"type": "string",
|
15454
15454
|
"value_allowed_null": true
|
15455
15455
|
},
|
15456
|
+
{
|
15457
|
+
"disabled": false,
|
15458
|
+
"document": "最后一次同步成功时间",
|
15459
|
+
"example": "无",
|
15460
|
+
"member": "string",
|
15461
|
+
"name": "LatestSyncSuccessTime",
|
15462
|
+
"output_required": true,
|
15463
|
+
"type": "string",
|
15464
|
+
"value_allowed_null": false
|
15465
|
+
},
|
15456
15466
|
{
|
15457
15467
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
15458
15468
|
"member": "string",
|
@@ -16529,6 +16539,16 @@
|
|
16529
16539
|
"DescribeAssetImageRegistrySummaryResponse": {
|
16530
16540
|
"document": "DescribeAssetImageRegistrySummary返回参数结构体",
|
16531
16541
|
"members": [
|
16542
|
+
{
|
16543
|
+
"disabled": false,
|
16544
|
+
"document": "待扫描镜像个数",
|
16545
|
+
"example": "无",
|
16546
|
+
"member": "uint64",
|
16547
|
+
"name": "UnScannedImageCnt",
|
16548
|
+
"output_required": true,
|
16549
|
+
"type": "int",
|
16550
|
+
"value_allowed_null": false
|
16551
|
+
},
|
16532
16552
|
{
|
16533
16553
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
16534
16554
|
"member": "string",
|
@@ -17143,6 +17163,26 @@
|
|
17143
17163
|
"type": "list",
|
17144
17164
|
"value_allowed_null": true
|
17145
17165
|
},
|
17166
|
+
{
|
17167
|
+
"disabled": false,
|
17168
|
+
"document": "最后一次扫描时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
17169
|
+
"example": "无",
|
17170
|
+
"member": "string",
|
17171
|
+
"name": "LastScanTime",
|
17172
|
+
"output_required": false,
|
17173
|
+
"type": "string",
|
17174
|
+
"value_allowed_null": true
|
17175
|
+
},
|
17176
|
+
{
|
17177
|
+
"disabled": false,
|
17178
|
+
"document": "扫描结果(Success|InsufficientLicense|ImageNeedIsEmpty|InternalError)\n注意:此字段可能返回 null,表示取不到有效值。",
|
17179
|
+
"example": "无",
|
17180
|
+
"member": "string",
|
17181
|
+
"name": "ScanResult",
|
17182
|
+
"output_required": false,
|
17183
|
+
"type": "string",
|
17184
|
+
"value_allowed_null": true
|
17185
|
+
},
|
17146
17186
|
{
|
17147
17187
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
17148
17188
|
"member": "string",
|
@@ -17263,7 +17303,37 @@
|
|
17263
17303
|
"example": "无",
|
17264
17304
|
"member": "string",
|
17265
17305
|
"name": "TaskID",
|
17266
|
-
"
|
17306
|
+
"output_required": true,
|
17307
|
+
"type": "string",
|
17308
|
+
"value_allowed_null": false
|
17309
|
+
},
|
17310
|
+
{
|
17311
|
+
"disabled": false,
|
17312
|
+
"document": "最近扫描时间",
|
17313
|
+
"example": "无",
|
17314
|
+
"member": "string",
|
17315
|
+
"name": "LastScanTime",
|
17316
|
+
"output_required": true,
|
17317
|
+
"type": "string",
|
17318
|
+
"value_allowed_null": false
|
17319
|
+
},
|
17320
|
+
{
|
17321
|
+
"disabled": false,
|
17322
|
+
"document": "扫描状态(READY:准备 SCANNING:扫描中 END:完成)",
|
17323
|
+
"example": "无",
|
17324
|
+
"member": "string",
|
17325
|
+
"name": "Status",
|
17326
|
+
"output_required": true,
|
17327
|
+
"type": "string",
|
17328
|
+
"value_allowed_null": false
|
17329
|
+
},
|
17330
|
+
{
|
17331
|
+
"disabled": false,
|
17332
|
+
"document": "扫描子状态(Success:成功 Timeout:超时 Cancel:取消 Error:错误)",
|
17333
|
+
"example": "无",
|
17334
|
+
"member": "string",
|
17335
|
+
"name": "SubStatus",
|
17336
|
+
"output_required": true,
|
17267
17337
|
"type": "string",
|
17268
17338
|
"value_allowed_null": false
|
17269
17339
|
},
|
@@ -18085,6 +18155,16 @@
|
|
18085
18155
|
"type": "int",
|
18086
18156
|
"value_allowed_null": false
|
18087
18157
|
},
|
18158
|
+
{
|
18159
|
+
"disabled": false,
|
18160
|
+
"document": "待扫描镜像个数",
|
18161
|
+
"example": "无",
|
18162
|
+
"member": "uint64",
|
18163
|
+
"name": "UnScannedImageCnt",
|
18164
|
+
"output_required": true,
|
18165
|
+
"type": "int",
|
18166
|
+
"value_allowed_null": false
|
18167
|
+
},
|
18088
18168
|
{
|
18089
18169
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
18090
18170
|
"member": "string",
|
@@ -20926,6 +21006,26 @@
|
|
20926
21006
|
"type": "bool",
|
20927
21007
|
"value_allowed_null": false
|
20928
21008
|
},
|
21009
|
+
{
|
21010
|
+
"disabled": false,
|
21011
|
+
"document": "镜像扫描计费信息",
|
21012
|
+
"example": "无",
|
21013
|
+
"member": "ImageScanInquireInfo",
|
21014
|
+
"name": "ImageScanInquireInfo",
|
21015
|
+
"output_required": true,
|
21016
|
+
"type": "object",
|
21017
|
+
"value_allowed_null": false
|
21018
|
+
},
|
21019
|
+
{
|
21020
|
+
"disabled": false,
|
21021
|
+
"document": "重复镜像数(本地镜像和仓库镜像)",
|
21022
|
+
"example": "无",
|
21023
|
+
"member": "uint64",
|
21024
|
+
"name": "RepeatImageIdCnt",
|
21025
|
+
"output_required": true,
|
21026
|
+
"type": "int",
|
21027
|
+
"value_allowed_null": false
|
21028
|
+
},
|
20929
21029
|
{
|
20930
21030
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
20931
21031
|
"member": "string",
|
@@ -21512,6 +21612,26 @@
|
|
21512
21612
|
"type": "list",
|
21513
21613
|
"value_allowed_null": true
|
21514
21614
|
},
|
21615
|
+
{
|
21616
|
+
"disabled": false,
|
21617
|
+
"document": "最近扫描时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
21618
|
+
"example": "无",
|
21619
|
+
"member": "string",
|
21620
|
+
"name": "LastScanTime",
|
21621
|
+
"output_required": false,
|
21622
|
+
"type": "string",
|
21623
|
+
"value_allowed_null": true
|
21624
|
+
},
|
21625
|
+
{
|
21626
|
+
"disabled": false,
|
21627
|
+
"document": "扫描结果(Success|InsufficientLicense|ImageNeedIsEmpty|InternalError)",
|
21628
|
+
"example": "无",
|
21629
|
+
"member": "string",
|
21630
|
+
"name": "ScanResult",
|
21631
|
+
"output_required": false,
|
21632
|
+
"type": "string",
|
21633
|
+
"value_allowed_null": false
|
21634
|
+
},
|
21515
21635
|
{
|
21516
21636
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
21517
21637
|
"member": "string",
|
@@ -32620,6 +32740,82 @@
|
|
32620
32740
|
],
|
32621
32741
|
"usage": "out"
|
32622
32742
|
},
|
32743
|
+
"ImageScanInquireInfo": {
|
32744
|
+
"document": "镜像扫描计费信息",
|
32745
|
+
"members": [
|
32746
|
+
{
|
32747
|
+
"disabled": false,
|
32748
|
+
"document": "计费项",
|
32749
|
+
"example": "无",
|
32750
|
+
"member": "string",
|
32751
|
+
"name": "InquireKey",
|
32752
|
+
"output_required": true,
|
32753
|
+
"type": "string",
|
32754
|
+
"value_allowed_null": false
|
32755
|
+
},
|
32756
|
+
{
|
32757
|
+
"disabled": false,
|
32758
|
+
"document": "容量",
|
32759
|
+
"example": "1",
|
32760
|
+
"member": "uint64",
|
32761
|
+
"name": "Capcity",
|
32762
|
+
"output_required": true,
|
32763
|
+
"type": "int",
|
32764
|
+
"value_allowed_null": false
|
32765
|
+
},
|
32766
|
+
{
|
32767
|
+
"disabled": false,
|
32768
|
+
"document": "已使用量",
|
32769
|
+
"example": "1",
|
32770
|
+
"member": "uint64",
|
32771
|
+
"name": "Useage",
|
32772
|
+
"output_required": true,
|
32773
|
+
"type": "int",
|
32774
|
+
"value_allowed_null": false
|
32775
|
+
},
|
32776
|
+
{
|
32777
|
+
"disabled": false,
|
32778
|
+
"document": "起始时间",
|
32779
|
+
"example": "无",
|
32780
|
+
"member": "string",
|
32781
|
+
"name": "StartTime",
|
32782
|
+
"output_required": true,
|
32783
|
+
"type": "string",
|
32784
|
+
"value_allowed_null": false
|
32785
|
+
},
|
32786
|
+
{
|
32787
|
+
"disabled": false,
|
32788
|
+
"document": "截止时间",
|
32789
|
+
"example": "无",
|
32790
|
+
"member": "string",
|
32791
|
+
"name": "EndTime",
|
32792
|
+
"output_required": true,
|
32793
|
+
"type": "string",
|
32794
|
+
"value_allowed_null": false
|
32795
|
+
},
|
32796
|
+
{
|
32797
|
+
"disabled": false,
|
32798
|
+
"document": "计费状态\n(Pending:待购)\n(Normal:正常)\n(Isolate:隔离)",
|
32799
|
+
"example": "无",
|
32800
|
+
"member": "string",
|
32801
|
+
"name": "PurchaseStatus",
|
32802
|
+
"output_required": true,
|
32803
|
+
"type": "string",
|
32804
|
+
"value_allowed_null": false
|
32805
|
+
},
|
32806
|
+
{
|
32807
|
+
"disabled": false,
|
32808
|
+
"document": "资源ID",
|
32809
|
+
"example": "无",
|
32810
|
+
"member": "string",
|
32811
|
+
"name": "ResourceID",
|
32812
|
+
"output_required": true,
|
32813
|
+
"type": "string",
|
32814
|
+
"value_allowed_null": false
|
32815
|
+
}
|
32816
|
+
],
|
32817
|
+
"usage": "out"
|
32818
|
+
},
|
32623
32819
|
"ImageSimpleInfo": {
|
32624
32820
|
"document": "镜像列表",
|
32625
32821
|
"members": [
|
@@ -932,7 +932,7 @@
|
|
932
932
|
{
|
933
933
|
"document": "",
|
934
934
|
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAssetImageRegistryAssetStatus\n<公共请求参数>\n\n{}",
|
935
|
-
"output": "{\n \"Response\": {\n \"
|
935
|
+
"output": "{\n \"Response\": {\n \"Status\": \"abc\",\n \"Err\": \"abc\",\n \"LatestSyncSuccessTime\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
936
936
|
"title": "查看镜像仓库资产更新进度状态"
|
937
937
|
}
|
938
938
|
],
|
@@ -1022,7 +1022,7 @@
|
|
1022
1022
|
{
|
1023
1023
|
"document": "",
|
1024
1024
|
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAssetImageRegistrySummary\n<公共请求参数>\n\n{}",
|
1025
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
1025
|
+
"output": "{\n \"Response\": {\n \"UnScannedImageCnt\": 1,\n \"RequestId\": \"abc\"\n }\n}",
|
1026
1026
|
"title": "镜像仓库查询镜像统计信息"
|
1027
1027
|
}
|
1028
1028
|
],
|
@@ -1094,7 +1094,7 @@
|
|
1094
1094
|
{
|
1095
1095
|
"document": "查询正在一键扫描的镜像扫描taskid",
|
1096
1096
|
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAssetImageScanTask\n<公共请求参数>\n\n{}",
|
1097
|
-
"output": "{\n \"Response\": {\n \"
|
1097
|
+
"output": "{\n \"Response\": {\n \"TaskID\": \"abc\",\n \"LastScanTime\": \"abc\",\n \"Status\": \"abc\",\n \"SubStatus\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
1098
1098
|
"title": "查询正在一键扫描的镜像扫描taskid"
|
1099
1099
|
}
|
1100
1100
|
],
|
@@ -1158,7 +1158,7 @@
|
|
1158
1158
|
{
|
1159
1159
|
"document": "查询账户容器、镜像等统计信息",
|
1160
1160
|
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAssetSummary\n<公共请求参数>\n\n{}",
|
1161
|
-
"output": "{\n \"Response\": {\n \"AppCnt\": 1,\n \"ContainerCnt\": 1,\n \"ContainerPause\": 1,\n \"ContainerRunning\": 1,\n \"ContainerStop\": 1,\n \"CreateTime\": \"abc\",\n \"DbCnt\": 1,\n \"ImageCnt\": 1,\n \"HostOnline\": 1,\n \"HostCnt\": 1,\n \"ImageHasRiskInfoCnt\": 1,\n \"ImageHasVirusCnt\": 1,\n \"ImageHasVulsCnt\": 1,\n \"ImageUntrustCnt\": 1,\n \"ListenPortCnt\": 1,\n \"ProcessCnt\": 1,\n \"WebServiceCnt\": 1,\n \"LatestImageScanTime\": \"abc\",\n \"ImageUnsafeCnt\": 1,\n \"HostUnInstallCnt\": 1,\n \"SuperNodeCnt\": 1,\n \"SuperNodeRunningCnt\": 1,\n \"RequestId\": \"abc\"\n }\n}",
|
1161
|
+
"output": "{\n \"Response\": {\n \"AppCnt\": 1,\n \"ContainerCnt\": 1,\n \"ContainerPause\": 1,\n \"ContainerRunning\": 1,\n \"ContainerStop\": 1,\n \"CreateTime\": \"abc\",\n \"DbCnt\": 1,\n \"ImageCnt\": 1,\n \"HostOnline\": 1,\n \"HostCnt\": 1,\n \"ImageHasRiskInfoCnt\": 1,\n \"ImageHasVirusCnt\": 1,\n \"ImageHasVulsCnt\": 1,\n \"ImageUntrustCnt\": 1,\n \"ListenPortCnt\": 1,\n \"ProcessCnt\": 1,\n \"WebServiceCnt\": 1,\n \"LatestImageScanTime\": \"abc\",\n \"ImageUnsafeCnt\": 1,\n \"HostUnInstallCnt\": 1,\n \"SuperNodeCnt\": 1,\n \"SuperNodeRunningCnt\": 1,\n \"TodayNewImageCnt\": 1,\n \"TodayUnsafeImageCnt\": 1,\n \"RecommendedFixImageCnt\": 1,\n \"ScannedImageCnt\": 1,\n \"UnScannedImageCnt\": 1,\n \"RequestId\": \"abc\"\n }\n}",
|
1162
1162
|
"title": "查询账户容器、镜像等统计信息"
|
1163
1163
|
}
|
1164
1164
|
],
|
@@ -1446,7 +1446,7 @@
|
|
1446
1446
|
{
|
1447
1447
|
"document": "",
|
1448
1448
|
"input": "https://tcss.tencentcloudapi.com/?Action=DescribeImageAuthorizedInfo\n&<公共请求参数>",
|
1449
|
-
"output": "{\n \"Response\": {\n \"TotalAuthorizedCnt\": 1,\n \"UsedAuthorizedCnt\": 1,\n \"ScannedImageCnt\": 1,\n \"NotScannedImageCnt\": 1,\n \"NotScannedLocalImageCnt\": 1,\n \"TrialAuthorizedCnt\": 1,\n \"UsedTrialAuthorizedCnt\": 1,\n \"PurchasedAuthorizedCnt\": 1,\n \"UsedPurchasedAuthorizedCnt\": 1,\n \"CanApplyFreeImageAuthorize\": true,\n \"RequestId\": \"abc\"\n }\n}",
|
1449
|
+
"output": "{\n \"Response\": {\n \"TotalAuthorizedCnt\": 1,\n \"UsedAuthorizedCnt\": 1,\n \"ScannedImageCnt\": 1,\n \"NotScannedImageCnt\": 1,\n \"NotScannedLocalImageCnt\": 1,\n \"TrialAuthorizedCnt\": 1,\n \"UsedTrialAuthorizedCnt\": 1,\n \"PurchasedAuthorizedCnt\": 1,\n \"UsedPurchasedAuthorizedCnt\": 1,\n \"CanApplyFreeImageAuthorize\": true,\n \"ImageScanInquireInfo\": {\n \"InquireKey\": \"abc\",\n \"Capcity\": 1,\n \"Useage\": 1,\n \"StartTime\": \"abc\",\n \"EndTime\": \"abc\",\n \"PurchaseStatus\": \"abc\",\n \"ResourceID\": \"abc\"\n },\n \"RepeatImageIdCnt\": 1,\n \"RequestId\": \"abc\"\n }\n}",
|
1450
1450
|
"title": "查询镜像授权信息"
|
1451
1451
|
}
|
1452
1452
|
],
|
@@ -10757,6 +10757,45 @@
|
|
10757
10757
|
],
|
10758
10758
|
"usage": "both"
|
10759
10759
|
},
|
10760
|
+
"L4ProxyRemoteAuth": {
|
10761
|
+
"document": "四层远程鉴权信息",
|
10762
|
+
"members": [
|
10763
|
+
{
|
10764
|
+
"disabled": false,
|
10765
|
+
"document": "四层远程鉴权开关,取值有:\n<li>on:表示开启;</li>\n<li>off:表示关闭。</li>",
|
10766
|
+
"example": "on",
|
10767
|
+
"member": "string",
|
10768
|
+
"name": "Switch",
|
10769
|
+
"output_required": true,
|
10770
|
+
"required": true,
|
10771
|
+
"type": "string",
|
10772
|
+
"value_allowed_null": false
|
10773
|
+
},
|
10774
|
+
{
|
10775
|
+
"disabled": false,
|
10776
|
+
"document": "远程鉴权服务地址,格式为: domain/ip:port。例:example.auth.com:8888\n",
|
10777
|
+
"example": "无",
|
10778
|
+
"member": "string",
|
10779
|
+
"name": "Address",
|
10780
|
+
"output_required": true,
|
10781
|
+
"required": true,
|
10782
|
+
"type": "string",
|
10783
|
+
"value_allowed_null": false
|
10784
|
+
},
|
10785
|
+
{
|
10786
|
+
"disabled": false,
|
10787
|
+
"document": "远程鉴权服务不可访问后,经过四层转发规则默认回源行为,取值有:\n<li>reject:表示进行拦截,拒绝访问;</li>\n<li>allow:表示允许通过。</li>",
|
10788
|
+
"example": "无",
|
10789
|
+
"member": "string",
|
10790
|
+
"name": "ServerFaultyBehavior",
|
10791
|
+
"output_required": true,
|
10792
|
+
"required": true,
|
10793
|
+
"type": "string",
|
10794
|
+
"value_allowed_null": false
|
10795
|
+
}
|
10796
|
+
],
|
10797
|
+
"usage": "both"
|
10798
|
+
},
|
10760
10799
|
"L4ProxyRule": {
|
10761
10800
|
"document": "四层代理转发规则详情。",
|
10762
10801
|
"members": [
|
@@ -10891,6 +10930,17 @@
|
|
10891
10930
|
"required": false,
|
10892
10931
|
"type": "string",
|
10893
10932
|
"value_allowed_null": false
|
10933
|
+
},
|
10934
|
+
{
|
10935
|
+
"disabled": false,
|
10936
|
+
"document": "远程鉴权信息。\n注意:RemoteAuth 在 CreateL4ProxyRules 或 ModifyL4ProxyRules 不可作为入参使用,如有传此参数,会忽略。在 DescribeL4ProxyRules 返回为空时,表示没有开启远程鉴权。\n注意:此字段可能返回 null,表示取不到有效值。",
|
10937
|
+
"example": "无",
|
10938
|
+
"member": "L4ProxyRemoteAuth",
|
10939
|
+
"name": "RemoteAuth",
|
10940
|
+
"output_required": false,
|
10941
|
+
"required": false,
|
10942
|
+
"type": "object",
|
10943
|
+
"value_allowed_null": true
|
10894
10944
|
}
|
10895
10945
|
],
|
10896
10946
|
"usage": "both"
|
@@ -2081,45 +2081,45 @@
|
|
2081
2081
|
"usage": "both"
|
2082
2082
|
},
|
2083
2083
|
"AutoscalingAdded": {
|
2084
|
-
"document": "
|
2084
|
+
"document": "自动扩缩容的节点",
|
2085
2085
|
"members": [
|
2086
2086
|
{
|
2087
2087
|
"disabled": false,
|
2088
2088
|
"document": "正在加入中的节点数量",
|
2089
|
-
"example": "",
|
2089
|
+
"example": "无",
|
2090
2090
|
"member": "int64",
|
2091
2091
|
"name": "Joining",
|
2092
|
-
"
|
2092
|
+
"output_required": true,
|
2093
2093
|
"type": "int",
|
2094
2094
|
"value_allowed_null": false
|
2095
2095
|
},
|
2096
2096
|
{
|
2097
2097
|
"disabled": false,
|
2098
2098
|
"document": "初始化中的节点数量",
|
2099
|
-
"example": "",
|
2099
|
+
"example": "无",
|
2100
2100
|
"member": "int64",
|
2101
2101
|
"name": "Initializing",
|
2102
|
-
"
|
2102
|
+
"output_required": true,
|
2103
2103
|
"type": "int",
|
2104
2104
|
"value_allowed_null": false
|
2105
2105
|
},
|
2106
2106
|
{
|
2107
2107
|
"disabled": false,
|
2108
2108
|
"document": "正常的节点数量",
|
2109
|
-
"example": "",
|
2109
|
+
"example": "无",
|
2110
2110
|
"member": "int64",
|
2111
2111
|
"name": "Normal",
|
2112
|
-
"
|
2112
|
+
"output_required": true,
|
2113
2113
|
"type": "int",
|
2114
2114
|
"value_allowed_null": false
|
2115
2115
|
},
|
2116
2116
|
{
|
2117
2117
|
"disabled": false,
|
2118
2118
|
"document": "节点总数",
|
2119
|
-
"example": "",
|
2119
|
+
"example": "无",
|
2120
2120
|
"member": "int64",
|
2121
2121
|
"name": "Total",
|
2122
|
-
"
|
2122
|
+
"output_required": true,
|
2123
2123
|
"type": "int",
|
2124
2124
|
"value_allowed_null": false
|
2125
2125
|
}
|
@@ -148,7 +148,7 @@
|
|
148
148
|
"usage": "both"
|
149
149
|
},
|
150
150
|
"AutoscalingAdded": {
|
151
|
-
"document": "
|
151
|
+
"document": "自动扩缩容的节点",
|
152
152
|
"members": [
|
153
153
|
{
|
154
154
|
"disabled": false,
|
@@ -156,7 +156,7 @@
|
|
156
156
|
"example": "无",
|
157
157
|
"member": "int64",
|
158
158
|
"name": "Joining",
|
159
|
-
"
|
159
|
+
"output_required": true,
|
160
160
|
"type": "int",
|
161
161
|
"value_allowed_null": false
|
162
162
|
},
|
@@ -166,7 +166,7 @@
|
|
166
166
|
"example": "无",
|
167
167
|
"member": "int64",
|
168
168
|
"name": "Initializing",
|
169
|
-
"
|
169
|
+
"output_required": true,
|
170
170
|
"type": "int",
|
171
171
|
"value_allowed_null": false
|
172
172
|
},
|
@@ -176,7 +176,7 @@
|
|
176
176
|
"example": "无",
|
177
177
|
"member": "int64",
|
178
178
|
"name": "Normal",
|
179
|
-
"
|
179
|
+
"output_required": true,
|
180
180
|
"type": "int",
|
181
181
|
"value_allowed_null": false
|
182
182
|
},
|
@@ -186,7 +186,7 @@
|
|
186
186
|
"example": "无",
|
187
187
|
"member": "int64",
|
188
188
|
"name": "Total",
|
189
|
-
"
|
189
|
+
"output_required": true,
|
190
190
|
"type": "int",
|
191
191
|
"value_allowed_null": false
|
192
192
|
}
|
@@ -14964,6 +14964,28 @@
|
|
14964
14964
|
"required": false,
|
14965
14965
|
"type": "list",
|
14966
14966
|
"value_allowed_null": true
|
14967
|
+
},
|
14968
|
+
{
|
14969
|
+
"disabled": false,
|
14970
|
+
"document": "操作符\n注意:此字段可能返回 null,表示取不到有效值。",
|
14971
|
+
"example": "eq",
|
14972
|
+
"member": "string",
|
14973
|
+
"name": "Operator",
|
14974
|
+
"output_required": false,
|
14975
|
+
"required": false,
|
14976
|
+
"type": "string",
|
14977
|
+
"value_allowed_null": true
|
14978
|
+
},
|
14979
|
+
{
|
14980
|
+
"disabled": false,
|
14981
|
+
"document": "header或query对应的name\n注意:此字段可能返回 null,表示取不到有效值。",
|
14982
|
+
"example": "Auth",
|
14983
|
+
"member": "string",
|
14984
|
+
"name": "Name",
|
14985
|
+
"output_required": false,
|
14986
|
+
"required": false,
|
14987
|
+
"type": "string",
|
14988
|
+
"value_allowed_null": true
|
14967
14989
|
}
|
14968
14990
|
],
|
14969
14991
|
"usage": "both"
|
tccli/services/tsf/tsf_client.py
CHANGED
@@ -225,7 +225,7 @@ def doStopTaskBatch(args, parsed_globals):
|
|
225
225
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
226
|
|
227
227
|
|
228
|
-
def
|
228
|
+
def doModifyContainerReplicas(args, parsed_globals):
|
229
229
|
g_param = parse_global_arg(parsed_globals)
|
230
230
|
|
231
231
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -254,11 +254,11 @@ def doDescribeApplicationBusinessLogConfig(args, parsed_globals):
|
|
254
254
|
client = mod.TsfClient(cred, g_param[OptionsDefine.Region], profile)
|
255
255
|
client._sdkVersion += ("_CLI_" + __version__)
|
256
256
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
257
|
-
model = models.
|
257
|
+
model = models.ModifyContainerReplicasRequest()
|
258
258
|
model.from_json_string(json.dumps(args))
|
259
259
|
start_time = time.time()
|
260
260
|
while True:
|
261
|
-
rsp = client.
|
261
|
+
rsp = client.ModifyContainerReplicas(model)
|
262
262
|
result = rsp.to_json_string()
|
263
263
|
try:
|
264
264
|
json_obj = json.loads(result)
|
@@ -10417,58 +10417,6 @@ def doCreateProgram(args, parsed_globals):
|
|
10417
10417
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
10418
10418
|
|
10419
10419
|
|
10420
|
-
def doModifyContainerReplicas(args, parsed_globals):
|
10421
|
-
g_param = parse_global_arg(parsed_globals)
|
10422
|
-
|
10423
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
10424
|
-
cred = credential.CVMRoleCredential()
|
10425
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
10426
|
-
cred = credential.STSAssumeRoleCredential(
|
10427
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
10428
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
10429
|
-
)
|
10430
|
-
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):
|
10431
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
10432
|
-
else:
|
10433
|
-
cred = credential.Credential(
|
10434
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
10435
|
-
)
|
10436
|
-
http_profile = HttpProfile(
|
10437
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
10438
|
-
reqMethod="POST",
|
10439
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
10440
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
10441
|
-
)
|
10442
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
10443
|
-
if g_param[OptionsDefine.Language]:
|
10444
|
-
profile.language = g_param[OptionsDefine.Language]
|
10445
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
10446
|
-
client = mod.TsfClient(cred, g_param[OptionsDefine.Region], profile)
|
10447
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
10448
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
10449
|
-
model = models.ModifyContainerReplicasRequest()
|
10450
|
-
model.from_json_string(json.dumps(args))
|
10451
|
-
start_time = time.time()
|
10452
|
-
while True:
|
10453
|
-
rsp = client.ModifyContainerReplicas(model)
|
10454
|
-
result = rsp.to_json_string()
|
10455
|
-
try:
|
10456
|
-
json_obj = json.loads(result)
|
10457
|
-
except TypeError as e:
|
10458
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
10459
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
10460
|
-
break
|
10461
|
-
cur_time = time.time()
|
10462
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
10463
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
10464
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
10465
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
10466
|
-
else:
|
10467
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
10468
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
10469
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
10470
|
-
|
10471
|
-
|
10472
10420
|
def doUpdateHealthCheckSettings(args, parsed_globals):
|
10473
10421
|
g_param = parse_global_arg(parsed_globals)
|
10474
10422
|
|
@@ -11628,7 +11576,7 @@ ACTION_MAP = {
|
|
11628
11576
|
"DeletePublicConfig": doDeletePublicConfig,
|
11629
11577
|
"DescribeConfig": doDescribeConfig,
|
11630
11578
|
"StopTaskBatch": doStopTaskBatch,
|
11631
|
-
"
|
11579
|
+
"ModifyContainerReplicas": doModifyContainerReplicas,
|
11632
11580
|
"DescribeConfigSummary": doDescribeConfigSummary,
|
11633
11581
|
"DescribeInvocationMetricScatterPlot": doDescribeInvocationMetricScatterPlot,
|
11634
11582
|
"DescribePodInstances": doDescribePodInstances,
|
@@ -11824,7 +11772,6 @@ ACTION_MAP = {
|
|
11824
11772
|
"DescribeEnabledUnitRule": doDescribeEnabledUnitRule,
|
11825
11773
|
"DeleteConfig": doDeleteConfig,
|
11826
11774
|
"CreateProgram": doCreateProgram,
|
11827
|
-
"ModifyContainerReplicas": doModifyContainerReplicas,
|
11828
11775
|
"UpdateHealthCheckSettings": doUpdateHealthCheckSettings,
|
11829
11776
|
"DescribeInvocationMetricDataDimension": doDescribeInvocationMetricDataDimension,
|
11830
11777
|
"ReleaseApiGroup": doReleaseApiGroup,
|
@@ -504,13 +504,6 @@
|
|
504
504
|
"output": "DescribeApplicationAttributeResponse",
|
505
505
|
"status": "online"
|
506
506
|
},
|
507
|
-
"DescribeApplicationBusinessLogConfig": {
|
508
|
-
"document": "接口未使用,废弃录用\n\n查询应用关联日志配置项信息",
|
509
|
-
"input": "DescribeApplicationBusinessLogConfigRequest",
|
510
|
-
"name": "查询应用关联日志配置项信息",
|
511
|
-
"output": "DescribeApplicationBusinessLogConfigResponse",
|
512
|
-
"status": "deprecated"
|
513
|
-
},
|
514
507
|
"DescribeApplications": {
|
515
508
|
"document": "获取应用列表",
|
516
509
|
"input": "DescribeApplicationsRequest",
|
@@ -11365,33 +11358,6 @@
|
|
11365
11358
|
],
|
11366
11359
|
"type": "object"
|
11367
11360
|
},
|
11368
|
-
"DescribeApplicationBusinessLogConfigRequest": {
|
11369
|
-
"document": "DescribeApplicationBusinessLogConfig请求参数结构体",
|
11370
|
-
"members": [
|
11371
|
-
{
|
11372
|
-
"disabled": false,
|
11373
|
-
"document": "TSF应用ID",
|
11374
|
-
"example": "",
|
11375
|
-
"member": "string",
|
11376
|
-
"name": "ApplicationId",
|
11377
|
-
"required": true,
|
11378
|
-
"type": "string"
|
11379
|
-
}
|
11380
|
-
],
|
11381
|
-
"type": "object"
|
11382
|
-
},
|
11383
|
-
"DescribeApplicationBusinessLogConfigResponse": {
|
11384
|
-
"document": "DescribeApplicationBusinessLogConfig返回参数结构体",
|
11385
|
-
"members": [
|
11386
|
-
{
|
11387
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
11388
|
-
"member": "string",
|
11389
|
-
"name": "RequestId",
|
11390
|
-
"type": "string"
|
11391
|
-
}
|
11392
|
-
],
|
11393
|
-
"type": "object"
|
11394
|
-
},
|
11395
11361
|
"DescribeApplicationRequest": {
|
11396
11362
|
"document": "DescribeApplication请求参数结构体",
|
11397
11363
|
"members": [
|