tccli 3.0.1326.1__py2.py3-none-any.whl → 3.0.1328.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/ams/v20201229/api.json +9 -9
- tccli/services/apm/v20210622/api.json +10 -1
- tccli/services/apm/v20210622/examples.json +2 -2
- tccli/services/bh/v20230418/api.json +9 -0
- tccli/services/cbs/v20170312/api.json +2 -2
- tccli/services/cdb/v20170320/api.json +30 -12
- tccli/services/cdc/v20201214/api.json +5 -5
- tccli/services/cfs/v20190719/api.json +4 -4
- tccli/services/chc/chc_client.py +53 -0
- tccli/services/chc/v20230418/api.json +62 -0
- tccli/services/chc/v20230418/examples.json +8 -0
- tccli/services/clb/clb_client.py +53 -0
- tccli/services/clb/v20180317/api.json +100 -0
- tccli/services/clb/v20180317/examples.json +8 -0
- tccli/services/cvm/v20170312/api.json +2 -2
- tccli/services/cwp/v20180228/api.json +92 -1
- tccli/services/dbbrain/v20210527/api.json +4 -4
- tccli/services/dcdb/v20180411/examples.json +1 -1
- tccli/services/dts/v20211206/api.json +3 -3
- tccli/services/emr/v20190103/api.json +193 -9
- tccli/services/ess/ess_client.py +126 -20
- tccli/services/ess/v20201111/api.json +135 -1
- tccli/services/ess/v20201111/examples.json +22 -0
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/gs/gs_client.py +836 -147
- tccli/services/gs/v20191118/api.json +964 -28
- tccli/services/gs/v20191118/examples.json +106 -2
- tccli/services/iotexplorer/v20190423/api.json +5 -5
- tccli/services/iotexplorer/v20190423/examples.json +1 -1
- tccli/services/lowcode/v20210108/api.json +60 -0
- tccli/services/mariadb/v20170312/api.json +10 -10
- tccli/services/monitor/monitor_client.py +117 -11
- tccli/services/monitor/v20180724/api.json +151 -0
- tccli/services/monitor/v20180724/examples.json +16 -0
- tccli/services/mrs/v20200910/api.json +1 -1
- tccli/services/oceanus/v20190422/api.json +15 -5
- tccli/services/oceanus/v20190422/examples.json +8 -2
- tccli/services/ocr/v20181119/api.json +74 -9
- tccli/services/partners/v20180321/api.json +7 -7
- tccli/services/privatedns/privatedns_client.py +53 -0
- tccli/services/privatedns/v20201028/api.json +179 -0
- tccli/services/privatedns/v20201028/examples.json +8 -0
- tccli/services/tcss/v20201101/api.json +248 -35
- tccli/services/tcss/v20201101/examples.json +8 -8
- tccli/services/tem/tem_client.py +53 -0
- tccli/services/tem/v20210701/api.json +107 -0
- tccli/services/tem/v20210701/examples.json +8 -0
- tccli/services/teo/v20220901/api.json +807 -74
- tccli/services/teo/v20220901/examples.json +2 -2
- tccli/services/tms/v20201229/api.json +2 -2
- tccli/services/tms/v20201229/examples.json +1 -1
- tccli/services/trtc/v20190722/api.json +2 -2
- tccli/services/vclm/v20240523/api.json +173 -0
- tccli/services/vclm/v20240523/examples.json +16 -0
- tccli/services/vclm/vclm_client.py +106 -0
- tccli/services/vm/v20210922/api.json +13 -13
- tccli/services/vm/v20210922/examples.json +2 -2
- tccli/services/vod/v20180717/api.json +13 -11
- tccli/services/vod/v20180717/examples.json +4 -4
- tccli/services/vpc/v20170312/api.json +12 -3
- tccli/services/waf/v20180125/api.json +2 -2
- tccli/services/wedata/v20210820/api.json +952 -0
- tccli/services/wedata/v20210820/examples.json +8 -0
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1326.1.dist-info → tccli-3.0.1328.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1326.1.dist-info → tccli-3.0.1328.1.dist-info}/RECORD +70 -70
- {tccli-3.0.1326.1.dist-info → tccli-3.0.1328.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1326.1.dist-info → tccli-3.0.1328.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1326.1.dist-info → tccli-3.0.1328.1.dist-info}/license_files/LICENSE +0 -0
@@ -805,7 +805,7 @@
|
|
805
805
|
{
|
806
806
|
"disabled": false,
|
807
807
|
"document": "添加失败的用户列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
808
|
-
"example": "
|
808
|
+
"example": "[\"user1\"]",
|
809
809
|
"member": "string",
|
810
810
|
"name": "FailedUserList",
|
811
811
|
"output_required": true,
|
@@ -815,7 +815,7 @@
|
|
815
815
|
{
|
816
816
|
"disabled": false,
|
817
817
|
"document": "流程id。大于0表示启动了流程;等于0表示没有启动流程",
|
818
|
-
"example": "
|
818
|
+
"example": "4133444",
|
819
819
|
"member": "int64",
|
820
820
|
"name": "FlowId",
|
821
821
|
"output_required": false,
|
@@ -1139,6 +1139,23 @@
|
|
1139
1139
|
],
|
1140
1140
|
"type": "object"
|
1141
1141
|
},
|
1142
|
+
"AutoScaleGroupAdvanceAttrs": {
|
1143
|
+
"document": "自动伸缩组高级设置",
|
1144
|
+
"members": [
|
1145
|
+
{
|
1146
|
+
"disabled": false,
|
1147
|
+
"document": "计算资源高级设置",
|
1148
|
+
"example": "无",
|
1149
|
+
"member": "ComputeResourceAdvanceParams",
|
1150
|
+
"name": "ComputeResourceAdvanceParams",
|
1151
|
+
"output_required": false,
|
1152
|
+
"required": false,
|
1153
|
+
"type": "object",
|
1154
|
+
"value_allowed_null": false
|
1155
|
+
}
|
1156
|
+
],
|
1157
|
+
"usage": "both"
|
1158
|
+
},
|
1142
1159
|
"AutoScaleRecord": {
|
1143
1160
|
"document": "弹性扩缩容记录",
|
1144
1161
|
"members": [
|
@@ -1355,7 +1372,7 @@
|
|
1355
1372
|
},
|
1356
1373
|
{
|
1357
1374
|
"disabled": false,
|
1358
|
-
"document": "
|
1375
|
+
"document": "下次可扩容时间。",
|
1359
1376
|
"example": "1726015182",
|
1360
1377
|
"member": "uint64",
|
1361
1378
|
"name": "NextTimeCanScale",
|
@@ -1410,7 +1427,7 @@
|
|
1410
1427
|
},
|
1411
1428
|
{
|
1412
1429
|
"disabled": false,
|
1413
|
-
"document": "预设资源类型为HOST时,支持勾选“资源不足时切换POD
|
1430
|
+
"document": "预设资源类型为HOST时,支持勾选“资源不足时切换POD”;支持取消勾选;0表示默认不勾选(0),1表示勾选",
|
1414
1431
|
"example": "0",
|
1415
1432
|
"member": "int64",
|
1416
1433
|
"name": "ChangeToPod",
|
@@ -1473,6 +1490,17 @@
|
|
1473
1490
|
"required": false,
|
1474
1491
|
"type": "int",
|
1475
1492
|
"value_allowed_null": false
|
1493
|
+
},
|
1494
|
+
{
|
1495
|
+
"disabled": false,
|
1496
|
+
"document": "伸缩组更多设置",
|
1497
|
+
"example": "无",
|
1498
|
+
"member": "AutoScaleGroupAdvanceAttrs",
|
1499
|
+
"name": "ExtraAdvanceAttrs",
|
1500
|
+
"output_required": false,
|
1501
|
+
"required": false,
|
1502
|
+
"type": "object",
|
1503
|
+
"value_allowed_null": false
|
1476
1504
|
}
|
1477
1505
|
],
|
1478
1506
|
"usage": "both"
|
@@ -2807,6 +2835,56 @@
|
|
2807
2835
|
],
|
2808
2836
|
"usage": "both"
|
2809
2837
|
},
|
2838
|
+
"ComputeResourceAdvanceParams": {
|
2839
|
+
"document": "计算资源高级设置",
|
2840
|
+
"members": [
|
2841
|
+
{
|
2842
|
+
"disabled": false,
|
2843
|
+
"document": "节点Label数组",
|
2844
|
+
"example": "无",
|
2845
|
+
"member": "TkeLabel",
|
2846
|
+
"name": "Labels",
|
2847
|
+
"output_required": false,
|
2848
|
+
"required": false,
|
2849
|
+
"type": "list",
|
2850
|
+
"value_allowed_null": false
|
2851
|
+
},
|
2852
|
+
{
|
2853
|
+
"disabled": false,
|
2854
|
+
"document": "节点污点",
|
2855
|
+
"example": "无",
|
2856
|
+
"member": "Taint",
|
2857
|
+
"name": "Taints",
|
2858
|
+
"output_required": false,
|
2859
|
+
"required": false,
|
2860
|
+
"type": "list",
|
2861
|
+
"value_allowed_null": false
|
2862
|
+
},
|
2863
|
+
{
|
2864
|
+
"disabled": false,
|
2865
|
+
"document": "base64 编码的用户脚本,在初始化节点之前执行",
|
2866
|
+
"example": "#!/bin/sh echo \"hello world\"",
|
2867
|
+
"member": "string",
|
2868
|
+
"name": "PreStartUserScript",
|
2869
|
+
"output_required": false,
|
2870
|
+
"required": false,
|
2871
|
+
"type": "string",
|
2872
|
+
"value_allowed_null": false
|
2873
|
+
},
|
2874
|
+
{
|
2875
|
+
"disabled": false,
|
2876
|
+
"document": "base64 编码的用户脚本, 此脚本会在 k8s 组件运行后执行, 需要用户保证脚本的可重入及重试逻辑, 脚本及其生成的日志文件可在节点的 /data/ccs_userscript/ 路径查看",
|
2877
|
+
"example": "#!/bin/sh echo \"hello world\"",
|
2878
|
+
"member": "string",
|
2879
|
+
"name": "UserScript",
|
2880
|
+
"output_required": false,
|
2881
|
+
"required": false,
|
2882
|
+
"type": "string",
|
2883
|
+
"value_allowed_null": false
|
2884
|
+
}
|
2885
|
+
],
|
2886
|
+
"usage": "both"
|
2887
|
+
},
|
2810
2888
|
"ConfigModifyInfoV2": {
|
2811
2889
|
"document": "资源调度 - 队列修改信息",
|
2812
2890
|
"members": [
|
@@ -9241,7 +9319,7 @@
|
|
9241
9319
|
{
|
9242
9320
|
"disabled": false,
|
9243
9321
|
"document": "用户列表",
|
9244
|
-
"example": "
|
9322
|
+
"example": "[\"user\"]",
|
9245
9323
|
"member": "string",
|
9246
9324
|
"name": "Users",
|
9247
9325
|
"output_required": false,
|
@@ -9269,7 +9347,7 @@
|
|
9269
9347
|
{
|
9270
9348
|
"disabled": false,
|
9271
9349
|
"document": "用户名称列表",
|
9272
|
-
"example": "
|
9350
|
+
"example": "[\"user\"]",
|
9273
9351
|
"member": "string",
|
9274
9352
|
"name": "Users",
|
9275
9353
|
"output_required": false,
|
@@ -10743,7 +10821,7 @@
|
|
10743
10821
|
{
|
10744
10822
|
"disabled": false,
|
10745
10823
|
"document": "洞察结构化信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
10746
|
-
"example": "{\"allocatedMemMBSeconds\":118066,\"confMemSizeMB\":4096,\"minimumWastePercent\":48,\"suggestMemSizeMB\":3072,\"totalWastePercent\":48}
|
10824
|
+
"example": "{\"allocatedMemMBSeconds\":118066,\"confMemSizeMB\":4096,\"minimumWastePercent\":48,\"suggestMemSizeMB\":3072,\"totalWastePercent\":48}",
|
10747
10825
|
"member": "string",
|
10748
10826
|
"name": "Context",
|
10749
10827
|
"output_required": false,
|
@@ -10810,6 +10888,15 @@
|
|
10810
10888
|
"name": "Enable",
|
10811
10889
|
"required": false,
|
10812
10890
|
"type": "string"
|
10891
|
+
},
|
10892
|
+
{
|
10893
|
+
"disabled": false,
|
10894
|
+
"document": "事件Json模板",
|
10895
|
+
"example": " [{ \"StrategyMeta\":{ \"type\": \"AND\" }, \"StrategyList\":[{\"metricName\":\"elapsedtime\",\"Value\":10,\"opType\":\">=\",\"id\":\"0\"}], \"StrategyLabels\":[{\"labelKey\":\"queue\",\"labelValue\":[\"root\",\"root.default\"]}] }]",
|
10896
|
+
"member": "string",
|
10897
|
+
"name": "SettingsJson",
|
10898
|
+
"required": false,
|
10899
|
+
"type": "string"
|
10813
10900
|
}
|
10814
10901
|
],
|
10815
10902
|
"usage": "in"
|
@@ -12016,7 +12103,7 @@
|
|
12016
12103
|
"example": "93",
|
12017
12104
|
"member": "int64",
|
12018
12105
|
"name": "ServiceType",
|
12019
|
-
"required":
|
12106
|
+
"required": false,
|
12020
12107
|
"type": "int"
|
12021
12108
|
},
|
12022
12109
|
{
|
@@ -12025,7 +12112,7 @@
|
|
12025
12112
|
"example": "3",
|
12026
12113
|
"member": "int64",
|
12027
12114
|
"name": "PodNum",
|
12028
|
-
"required":
|
12115
|
+
"required": false,
|
12029
12116
|
"type": "int"
|
12030
12117
|
}
|
12031
12118
|
],
|
@@ -14376,6 +14463,16 @@
|
|
14376
14463
|
"output_required": true,
|
14377
14464
|
"type": "string",
|
14378
14465
|
"value_allowed_null": false
|
14466
|
+
},
|
14467
|
+
{
|
14468
|
+
"disabled": false,
|
14469
|
+
"document": "StoreFile数量",
|
14470
|
+
"example": "10",
|
14471
|
+
"member": "float",
|
14472
|
+
"name": "StoreFileNum",
|
14473
|
+
"output_required": false,
|
14474
|
+
"type": "float",
|
14475
|
+
"value_allowed_null": false
|
14379
14476
|
}
|
14380
14477
|
],
|
14381
14478
|
"usage": "out"
|
@@ -17089,6 +17186,15 @@
|
|
17089
17186
|
"name": "ComputeResourceId",
|
17090
17187
|
"required": false,
|
17091
17188
|
"type": "string"
|
17189
|
+
},
|
17190
|
+
{
|
17191
|
+
"disabled": false,
|
17192
|
+
"document": "计算资源高级设置",
|
17193
|
+
"example": "无",
|
17194
|
+
"member": "ComputeResourceAdvanceParams",
|
17195
|
+
"name": "ComputeResourceAdvanceParams",
|
17196
|
+
"required": false,
|
17197
|
+
"type": "object"
|
17092
17198
|
}
|
17093
17199
|
],
|
17094
17200
|
"type": "object"
|
@@ -18771,6 +18877,45 @@
|
|
18771
18877
|
],
|
18772
18878
|
"usage": "both"
|
18773
18879
|
},
|
18880
|
+
"Taint": {
|
18881
|
+
"document": "Kubernetes Taint",
|
18882
|
+
"members": [
|
18883
|
+
{
|
18884
|
+
"disabled": false,
|
18885
|
+
"document": "Taint Key",
|
18886
|
+
"example": "node.kubernetes.io/unschedulable",
|
18887
|
+
"member": "string",
|
18888
|
+
"name": "Key",
|
18889
|
+
"output_required": false,
|
18890
|
+
"required": false,
|
18891
|
+
"type": "string",
|
18892
|
+
"value_allowed_null": false
|
18893
|
+
},
|
18894
|
+
{
|
18895
|
+
"disabled": false,
|
18896
|
+
"document": "Taint Value",
|
18897
|
+
"example": "true",
|
18898
|
+
"member": "string",
|
18899
|
+
"name": "Value",
|
18900
|
+
"output_required": false,
|
18901
|
+
"required": false,
|
18902
|
+
"type": "string",
|
18903
|
+
"value_allowed_null": false
|
18904
|
+
},
|
18905
|
+
{
|
18906
|
+
"disabled": false,
|
18907
|
+
"document": "Taint Effect",
|
18908
|
+
"example": "NoSchedule",
|
18909
|
+
"member": "string",
|
18910
|
+
"name": "Effect",
|
18911
|
+
"output_required": false,
|
18912
|
+
"required": false,
|
18913
|
+
"type": "string",
|
18914
|
+
"value_allowed_null": false
|
18915
|
+
}
|
18916
|
+
],
|
18917
|
+
"usage": "both"
|
18918
|
+
},
|
18774
18919
|
"TaskSettings": {
|
18775
18920
|
"document": "巡检任务参数",
|
18776
18921
|
"members": [
|
@@ -19225,6 +19370,45 @@
|
|
19225
19370
|
"required": false,
|
19226
19371
|
"type": "int",
|
19227
19372
|
"value_allowed_null": false
|
19373
|
+
},
|
19374
|
+
{
|
19375
|
+
"disabled": false,
|
19376
|
+
"document": "优雅缩容业务pod标签,当node不存在上述pod或超过优雅缩容时间时,缩容节点",
|
19377
|
+
"example": "无",
|
19378
|
+
"member": "TkeLabel",
|
19379
|
+
"name": "GraceDownLabel",
|
19380
|
+
"output_required": false,
|
19381
|
+
"required": false,
|
19382
|
+
"type": "list",
|
19383
|
+
"value_allowed_null": false
|
19384
|
+
}
|
19385
|
+
],
|
19386
|
+
"usage": "both"
|
19387
|
+
},
|
19388
|
+
"TkeLabel": {
|
19389
|
+
"document": "Kubernetes Label",
|
19390
|
+
"members": [
|
19391
|
+
{
|
19392
|
+
"disabled": false,
|
19393
|
+
"document": "Label Name",
|
19394
|
+
"example": "cloud.tencent.com/node-instance-id",
|
19395
|
+
"member": "string",
|
19396
|
+
"name": "Name",
|
19397
|
+
"output_required": false,
|
19398
|
+
"required": false,
|
19399
|
+
"type": "string",
|
19400
|
+
"value_allowed_null": false
|
19401
|
+
},
|
19402
|
+
{
|
19403
|
+
"disabled": false,
|
19404
|
+
"document": "Label Value",
|
19405
|
+
"example": "ins-0dcxficf",
|
19406
|
+
"member": "string",
|
19407
|
+
"name": "Value",
|
19408
|
+
"output_required": false,
|
19409
|
+
"required": false,
|
19410
|
+
"type": "string",
|
19411
|
+
"value_allowed_null": false
|
19228
19412
|
}
|
19229
19413
|
],
|
19230
19414
|
"usage": "both"
|
tccli/services/ess/ess_client.py
CHANGED
@@ -1213,7 +1213,7 @@ def doCreateFlowReminds(args, parsed_globals):
|
|
1213
1213
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1214
1214
|
|
1215
1215
|
|
1216
|
-
def
|
1216
|
+
def doCreateUserNameChangeUrl(args, parsed_globals):
|
1217
1217
|
g_param = parse_global_arg(parsed_globals)
|
1218
1218
|
|
1219
1219
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1242,11 +1242,11 @@ def doDescribePersonCertificate(args, parsed_globals):
|
|
1242
1242
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
1243
1243
|
client._sdkVersion += ("_CLI_" + __version__)
|
1244
1244
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1245
|
-
model = models.
|
1245
|
+
model = models.CreateUserNameChangeUrlRequest()
|
1246
1246
|
model.from_json_string(json.dumps(args))
|
1247
1247
|
start_time = time.time()
|
1248
1248
|
while True:
|
1249
|
-
rsp = client.
|
1249
|
+
rsp = client.CreateUserNameChangeUrl(model)
|
1250
1250
|
result = rsp.to_json_string()
|
1251
1251
|
try:
|
1252
1252
|
json_obj = json.loads(result)
|
@@ -1317,7 +1317,7 @@ def doDescribeFlowEvidenceReport(args, parsed_globals):
|
|
1317
1317
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1318
1318
|
|
1319
1319
|
|
1320
|
-
def
|
1320
|
+
def doDescribeContractDiffTaskWebUrl(args, parsed_globals):
|
1321
1321
|
g_param = parse_global_arg(parsed_globals)
|
1322
1322
|
|
1323
1323
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1346,11 +1346,63 @@ def doCreateUserNameChangeUrl(args, parsed_globals):
|
|
1346
1346
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
1347
1347
|
client._sdkVersion += ("_CLI_" + __version__)
|
1348
1348
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1349
|
-
model = models.
|
1349
|
+
model = models.DescribeContractDiffTaskWebUrlRequest()
|
1350
1350
|
model.from_json_string(json.dumps(args))
|
1351
1351
|
start_time = time.time()
|
1352
1352
|
while True:
|
1353
|
-
rsp = client.
|
1353
|
+
rsp = client.DescribeContractDiffTaskWebUrl(model)
|
1354
|
+
result = rsp.to_json_string()
|
1355
|
+
try:
|
1356
|
+
json_obj = json.loads(result)
|
1357
|
+
except TypeError as e:
|
1358
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1359
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1360
|
+
break
|
1361
|
+
cur_time = time.time()
|
1362
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1363
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1364
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1365
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1366
|
+
else:
|
1367
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1368
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1369
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1370
|
+
|
1371
|
+
|
1372
|
+
def doDescribePersonCertificate(args, parsed_globals):
|
1373
|
+
g_param = parse_global_arg(parsed_globals)
|
1374
|
+
|
1375
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1376
|
+
cred = credential.CVMRoleCredential()
|
1377
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1378
|
+
cred = credential.STSAssumeRoleCredential(
|
1379
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1380
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1381
|
+
)
|
1382
|
+
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):
|
1383
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1384
|
+
else:
|
1385
|
+
cred = credential.Credential(
|
1386
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1387
|
+
)
|
1388
|
+
http_profile = HttpProfile(
|
1389
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1390
|
+
reqMethod="POST",
|
1391
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1392
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1393
|
+
)
|
1394
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1395
|
+
if g_param[OptionsDefine.Language]:
|
1396
|
+
profile.language = g_param[OptionsDefine.Language]
|
1397
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1398
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
1399
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1400
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1401
|
+
model = models.DescribePersonCertificateRequest()
|
1402
|
+
model.from_json_string(json.dumps(args))
|
1403
|
+
start_time = time.time()
|
1404
|
+
while True:
|
1405
|
+
rsp = client.DescribePersonCertificate(model)
|
1354
1406
|
result = rsp.to_json_string()
|
1355
1407
|
try:
|
1356
1408
|
json_obj = json.loads(result)
|
@@ -1889,7 +1941,7 @@ def doCreateIntegrationDepartment(args, parsed_globals):
|
|
1889
1941
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1890
1942
|
|
1891
1943
|
|
1892
|
-
def
|
1944
|
+
def doCreateContractDiffTaskWebUrl(args, parsed_globals):
|
1893
1945
|
g_param = parse_global_arg(parsed_globals)
|
1894
1946
|
|
1895
1947
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1918,11 +1970,11 @@ def doCreateFlowEvidenceReport(args, parsed_globals):
|
|
1918
1970
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
1919
1971
|
client._sdkVersion += ("_CLI_" + __version__)
|
1920
1972
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1921
|
-
model = models.
|
1973
|
+
model = models.CreateContractDiffTaskWebUrlRequest()
|
1922
1974
|
model.from_json_string(json.dumps(args))
|
1923
1975
|
start_time = time.time()
|
1924
1976
|
while True:
|
1925
|
-
rsp = client.
|
1977
|
+
rsp = client.CreateContractDiffTaskWebUrl(model)
|
1926
1978
|
result = rsp.to_json_string()
|
1927
1979
|
try:
|
1928
1980
|
json_obj = json.loads(result)
|
@@ -2513,6 +2565,58 @@ def doCreateBatchInitOrganizationUrl(args, parsed_globals):
|
|
2513
2565
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2514
2566
|
|
2515
2567
|
|
2568
|
+
def doCreateFlowEvidenceReport(args, parsed_globals):
|
2569
|
+
g_param = parse_global_arg(parsed_globals)
|
2570
|
+
|
2571
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2572
|
+
cred = credential.CVMRoleCredential()
|
2573
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2574
|
+
cred = credential.STSAssumeRoleCredential(
|
2575
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2576
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2577
|
+
)
|
2578
|
+
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):
|
2579
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2580
|
+
else:
|
2581
|
+
cred = credential.Credential(
|
2582
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2583
|
+
)
|
2584
|
+
http_profile = HttpProfile(
|
2585
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2586
|
+
reqMethod="POST",
|
2587
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2588
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2589
|
+
)
|
2590
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2591
|
+
if g_param[OptionsDefine.Language]:
|
2592
|
+
profile.language = g_param[OptionsDefine.Language]
|
2593
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2594
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
2595
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2596
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2597
|
+
model = models.CreateFlowEvidenceReportRequest()
|
2598
|
+
model.from_json_string(json.dumps(args))
|
2599
|
+
start_time = time.time()
|
2600
|
+
while True:
|
2601
|
+
rsp = client.CreateFlowEvidenceReport(model)
|
2602
|
+
result = rsp.to_json_string()
|
2603
|
+
try:
|
2604
|
+
json_obj = json.loads(result)
|
2605
|
+
except TypeError as e:
|
2606
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2607
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2608
|
+
break
|
2609
|
+
cur_time = time.time()
|
2610
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2611
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2612
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2613
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2614
|
+
else:
|
2615
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2616
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2617
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2618
|
+
|
2619
|
+
|
2516
2620
|
def doCancelUserAutoSignEnableUrl(args, parsed_globals):
|
2517
2621
|
g_param = parse_global_arg(parsed_globals)
|
2518
2622
|
|
@@ -4333,7 +4437,7 @@ def doCreateBatchCancelFlowUrl(args, parsed_globals):
|
|
4333
4437
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4334
4438
|
|
4335
4439
|
|
4336
|
-
def
|
4440
|
+
def doModifyFlowDeadline(args, parsed_globals):
|
4337
4441
|
g_param = parse_global_arg(parsed_globals)
|
4338
4442
|
|
4339
4443
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4362,11 +4466,11 @@ def doDeleteIntegrationDepartment(args, parsed_globals):
|
|
4362
4466
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
4363
4467
|
client._sdkVersion += ("_CLI_" + __version__)
|
4364
4468
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4365
|
-
model = models.
|
4469
|
+
model = models.ModifyFlowDeadlineRequest()
|
4366
4470
|
model.from_json_string(json.dumps(args))
|
4367
4471
|
start_time = time.time()
|
4368
4472
|
while True:
|
4369
|
-
rsp = client.
|
4473
|
+
rsp = client.ModifyFlowDeadline(model)
|
4370
4474
|
result = rsp.to_json_string()
|
4371
4475
|
try:
|
4372
4476
|
json_obj = json.loads(result)
|
@@ -4489,7 +4593,7 @@ def doCreatePrepareFlow(args, parsed_globals):
|
|
4489
4593
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4490
4594
|
|
4491
4595
|
|
4492
|
-
def
|
4596
|
+
def doDeleteIntegrationDepartment(args, parsed_globals):
|
4493
4597
|
g_param = parse_global_arg(parsed_globals)
|
4494
4598
|
|
4495
4599
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4518,11 +4622,11 @@ def doModifyFlowDeadline(args, parsed_globals):
|
|
4518
4622
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
4519
4623
|
client._sdkVersion += ("_CLI_" + __version__)
|
4520
4624
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4521
|
-
model = models.
|
4625
|
+
model = models.DeleteIntegrationDepartmentRequest()
|
4522
4626
|
model.from_json_string(json.dumps(args))
|
4523
4627
|
start_time = time.time()
|
4524
4628
|
while True:
|
4525
|
-
rsp = client.
|
4629
|
+
rsp = client.DeleteIntegrationDepartment(model)
|
4526
4630
|
result = rsp.to_json_string()
|
4527
4631
|
try:
|
4528
4632
|
json_obj = json.loads(result)
|
@@ -5511,9 +5615,10 @@ ACTION_MAP = {
|
|
5511
5615
|
"CreateIntegrationUserRoles": doCreateIntegrationUserRoles,
|
5512
5616
|
"CreateBatchSignUrl": doCreateBatchSignUrl,
|
5513
5617
|
"CreateFlowReminds": doCreateFlowReminds,
|
5514
|
-
"DescribePersonCertificate": doDescribePersonCertificate,
|
5515
|
-
"DescribeFlowEvidenceReport": doDescribeFlowEvidenceReport,
|
5516
5618
|
"CreateUserNameChangeUrl": doCreateUserNameChangeUrl,
|
5619
|
+
"DescribeFlowEvidenceReport": doDescribeFlowEvidenceReport,
|
5620
|
+
"DescribeContractDiffTaskWebUrl": doDescribeContractDiffTaskWebUrl,
|
5621
|
+
"DescribePersonCertificate": doDescribePersonCertificate,
|
5517
5622
|
"DeleteIntegrationEmployees": doDeleteIntegrationEmployees,
|
5518
5623
|
"CreateUserAutoSignSealUrl": doCreateUserAutoSignSealUrl,
|
5519
5624
|
"DescribeOrganizationAuthStatus": doDescribeOrganizationAuthStatus,
|
@@ -5524,7 +5629,7 @@ ACTION_MAP = {
|
|
5524
5629
|
"DeleteIntegrationRoleUsers": doDeleteIntegrationRoleUsers,
|
5525
5630
|
"CreateFlowGroupByFiles": doCreateFlowGroupByFiles,
|
5526
5631
|
"CreateIntegrationDepartment": doCreateIntegrationDepartment,
|
5527
|
-
"
|
5632
|
+
"CreateContractDiffTaskWebUrl": doCreateContractDiffTaskWebUrl,
|
5528
5633
|
"CreateFlow": doCreateFlow,
|
5529
5634
|
"DescribeExtendedServiceAuthInfos": doDescribeExtendedServiceAuthInfos,
|
5530
5635
|
"CreateLegalSealQrCode": doCreateLegalSealQrCode,
|
@@ -5536,6 +5641,7 @@ ACTION_MAP = {
|
|
5536
5641
|
"DescribeSignFaceVideo": doDescribeSignFaceVideo,
|
5537
5642
|
"CreateFlowSignUrl": doCreateFlowSignUrl,
|
5538
5643
|
"CreateBatchInitOrganizationUrl": doCreateBatchInitOrganizationUrl,
|
5644
|
+
"CreateFlowEvidenceReport": doCreateFlowEvidenceReport,
|
5539
5645
|
"CancelUserAutoSignEnableUrl": doCancelUserAutoSignEnableUrl,
|
5540
5646
|
"DescribeBillUsageDetail": doDescribeBillUsageDetail,
|
5541
5647
|
"DescribeIntegrationDepartments": doDescribeIntegrationDepartments,
|
@@ -5571,10 +5677,10 @@ ACTION_MAP = {
|
|
5571
5677
|
"CancelFlow": doCancelFlow,
|
5572
5678
|
"UnbindEmployeeUserIdWithClientOpenId": doUnbindEmployeeUserIdWithClientOpenId,
|
5573
5679
|
"CreateBatchCancelFlowUrl": doCreateBatchCancelFlowUrl,
|
5574
|
-
"
|
5680
|
+
"ModifyFlowDeadline": doModifyFlowDeadline,
|
5575
5681
|
"CreateFlowApprovers": doCreateFlowApprovers,
|
5576
5682
|
"CreatePrepareFlow": doCreatePrepareFlow,
|
5577
|
-
"
|
5683
|
+
"DeleteIntegrationDepartment": doDeleteIntegrationDepartment,
|
5578
5684
|
"DescribeFlowInfo": doDescribeFlowInfo,
|
5579
5685
|
"CreateSealPolicy": doCreateSealPolicy,
|
5580
5686
|
"DescribeCancelFlowsTask": doDescribeCancelFlowsTask,
|