tccli 3.0.1400.1__py2.py3-none-any.whl → 3.0.1402.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/dbbrain/v20210527/api.json +1 -1
- tccli/services/ess/ess_client.py +244 -32
- tccli/services/ess/v20201111/api.json +386 -0
- tccli/services/ess/v20201111/examples.json +38 -0
- tccli/services/live/v20180801/examples.json +1 -1
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/mongodb/v20190725/api.json +31 -11
- tccli/services/mongodb/v20190725/examples.json +1 -1
- tccli/services/mps/v20190612/api.json +142 -24
- tccli/services/mps/v20190612/examples.json +4 -4
- tccli/services/tcss/tcss_client.py +175 -69
- tccli/services/tcss/v20201101/api.json +95 -0
- tccli/services/tcss/v20201101/examples.json +16 -0
- tccli/services/tms/v20201229/api.json +2 -2
- tccli/services/vrs/v20200824/api.json +11 -11
- tccli/services/vrs/v20200824/examples.json +1 -1
- {tccli-3.0.1400.1.dist-info → tccli-3.0.1402.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1400.1.dist-info → tccli-3.0.1402.1.dist-info}/RECORD +22 -22
- {tccli-3.0.1400.1.dist-info → tccli-3.0.1402.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1400.1.dist-info → tccli-3.0.1402.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1400.1.dist-info → tccli-3.0.1402.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1402.1'
|
@@ -302,7 +302,7 @@
|
|
302
302
|
"status": "online"
|
303
303
|
},
|
304
304
|
"DescribeMetricTopProxies": {
|
305
|
-
"document": "获取指定时间段内Redis
|
305
|
+
"document": "获取指定时间段内Redis Proxy 指标",
|
306
306
|
"input": "DescribeMetricTopProxiesRequest",
|
307
307
|
"name": "获取Redis Proxy 指标",
|
308
308
|
"output": "DescribeMetricTopProxiesResponse",
|
tccli/services/ess/ess_client.py
CHANGED
@@ -1889,6 +1889,58 @@ def doRenewAutoSignLicense(args, parsed_globals):
|
|
1889
1889
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1890
1890
|
|
1891
1891
|
|
1892
|
+
def doCreateWebThemeConfig(args, parsed_globals):
|
1893
|
+
g_param = parse_global_arg(parsed_globals)
|
1894
|
+
|
1895
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1896
|
+
cred = credential.CVMRoleCredential()
|
1897
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1898
|
+
cred = credential.STSAssumeRoleCredential(
|
1899
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1900
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1901
|
+
)
|
1902
|
+
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):
|
1903
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1904
|
+
else:
|
1905
|
+
cred = credential.Credential(
|
1906
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1907
|
+
)
|
1908
|
+
http_profile = HttpProfile(
|
1909
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1910
|
+
reqMethod="POST",
|
1911
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1912
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1913
|
+
)
|
1914
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1915
|
+
if g_param[OptionsDefine.Language]:
|
1916
|
+
profile.language = g_param[OptionsDefine.Language]
|
1917
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1918
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
1919
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1920
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1921
|
+
model = models.CreateWebThemeConfigRequest()
|
1922
|
+
model.from_json_string(json.dumps(args))
|
1923
|
+
start_time = time.time()
|
1924
|
+
while True:
|
1925
|
+
rsp = client.CreateWebThemeConfig(model)
|
1926
|
+
result = rsp.to_json_string()
|
1927
|
+
try:
|
1928
|
+
json_obj = json.loads(result)
|
1929
|
+
except TypeError as e:
|
1930
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1931
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1932
|
+
break
|
1933
|
+
cur_time = time.time()
|
1934
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1935
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1936
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1937
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1938
|
+
else:
|
1939
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1940
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1941
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1942
|
+
|
1943
|
+
|
1892
1944
|
def doVerifyPdf(args, parsed_globals):
|
1893
1945
|
g_param = parse_global_arg(parsed_globals)
|
1894
1946
|
|
@@ -2357,7 +2409,7 @@ def doDescribeExtendedServiceAuthInfos(args, parsed_globals):
|
|
2357
2409
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2358
2410
|
|
2359
2411
|
|
2360
|
-
def
|
2412
|
+
def doCreateSingleSignOnEmployees(args, parsed_globals):
|
2361
2413
|
g_param = parse_global_arg(parsed_globals)
|
2362
2414
|
|
2363
2415
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2386,11 +2438,11 @@ def doCreateLegalSealQrCode(args, parsed_globals):
|
|
2386
2438
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
2387
2439
|
client._sdkVersion += ("_CLI_" + __version__)
|
2388
2440
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2389
|
-
model = models.
|
2441
|
+
model = models.CreateSingleSignOnEmployeesRequest()
|
2390
2442
|
model.from_json_string(json.dumps(args))
|
2391
2443
|
start_time = time.time()
|
2392
2444
|
while True:
|
2393
|
-
rsp = client.
|
2445
|
+
rsp = client.CreateSingleSignOnEmployees(model)
|
2394
2446
|
result = rsp.to_json_string()
|
2395
2447
|
try:
|
2396
2448
|
json_obj = json.loads(result)
|
@@ -2409,7 +2461,7 @@ def doCreateLegalSealQrCode(args, parsed_globals):
|
|
2409
2461
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2410
2462
|
|
2411
2463
|
|
2412
|
-
def
|
2464
|
+
def doDescribeSingleSignOnEmployees(args, parsed_globals):
|
2413
2465
|
g_param = parse_global_arg(parsed_globals)
|
2414
2466
|
|
2415
2467
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2438,11 +2490,11 @@ def doCreateSeal(args, parsed_globals):
|
|
2438
2490
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
2439
2491
|
client._sdkVersion += ("_CLI_" + __version__)
|
2440
2492
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2441
|
-
model = models.
|
2493
|
+
model = models.DescribeSingleSignOnEmployeesRequest()
|
2442
2494
|
model.from_json_string(json.dumps(args))
|
2443
2495
|
start_time = time.time()
|
2444
2496
|
while True:
|
2445
|
-
rsp = client.
|
2497
|
+
rsp = client.DescribeSingleSignOnEmployees(model)
|
2446
2498
|
result = rsp.to_json_string()
|
2447
2499
|
try:
|
2448
2500
|
json_obj = json.loads(result)
|
@@ -2461,7 +2513,7 @@ def doCreateSeal(args, parsed_globals):
|
|
2461
2513
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2462
2514
|
|
2463
2515
|
|
2464
|
-
def
|
2516
|
+
def doCreateLegalSealQrCode(args, parsed_globals):
|
2465
2517
|
g_param = parse_global_arg(parsed_globals)
|
2466
2518
|
|
2467
2519
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2490,11 +2542,11 @@ def doCreateMultiFlowSignQRCode(args, parsed_globals):
|
|
2490
2542
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
2491
2543
|
client._sdkVersion += ("_CLI_" + __version__)
|
2492
2544
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2493
|
-
model = models.
|
2545
|
+
model = models.CreateLegalSealQrCodeRequest()
|
2494
2546
|
model.from_json_string(json.dumps(args))
|
2495
2547
|
start_time = time.time()
|
2496
2548
|
while True:
|
2497
|
-
rsp = client.
|
2549
|
+
rsp = client.CreateLegalSealQrCode(model)
|
2498
2550
|
result = rsp.to_json_string()
|
2499
2551
|
try:
|
2500
2552
|
json_obj = json.loads(result)
|
@@ -2513,7 +2565,7 @@ def doCreateMultiFlowSignQRCode(args, parsed_globals):
|
|
2513
2565
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2514
2566
|
|
2515
2567
|
|
2516
|
-
def
|
2568
|
+
def doCreateSeal(args, parsed_globals):
|
2517
2569
|
g_param = parse_global_arg(parsed_globals)
|
2518
2570
|
|
2519
2571
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2542,11 +2594,11 @@ def doDescribeExtendedServiceAuthDetail(args, parsed_globals):
|
|
2542
2594
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
2543
2595
|
client._sdkVersion += ("_CLI_" + __version__)
|
2544
2596
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2545
|
-
model = models.
|
2597
|
+
model = models.CreateSealRequest()
|
2546
2598
|
model.from_json_string(json.dumps(args))
|
2547
2599
|
start_time = time.time()
|
2548
2600
|
while True:
|
2549
|
-
rsp = client.
|
2601
|
+
rsp = client.CreateSeal(model)
|
2550
2602
|
result = rsp.to_json_string()
|
2551
2603
|
try:
|
2552
2604
|
json_obj = json.loads(result)
|
@@ -2565,7 +2617,7 @@ def doDescribeExtendedServiceAuthDetail(args, parsed_globals):
|
|
2565
2617
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2566
2618
|
|
2567
2619
|
|
2568
|
-
def
|
2620
|
+
def doCreateMultiFlowSignQRCode(args, parsed_globals):
|
2569
2621
|
g_param = parse_global_arg(parsed_globals)
|
2570
2622
|
|
2571
2623
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2594,11 +2646,11 @@ def doCancelMultiFlowSignQRCode(args, parsed_globals):
|
|
2594
2646
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
2595
2647
|
client._sdkVersion += ("_CLI_" + __version__)
|
2596
2648
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2597
|
-
model = models.
|
2649
|
+
model = models.CreateMultiFlowSignQRCodeRequest()
|
2598
2650
|
model.from_json_string(json.dumps(args))
|
2599
2651
|
start_time = time.time()
|
2600
2652
|
while True:
|
2601
|
-
rsp = client.
|
2653
|
+
rsp = client.CreateMultiFlowSignQRCode(model)
|
2602
2654
|
result = rsp.to_json_string()
|
2603
2655
|
try:
|
2604
2656
|
json_obj = json.loads(result)
|
@@ -2617,7 +2669,7 @@ def doCancelMultiFlowSignQRCode(args, parsed_globals):
|
|
2617
2669
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2618
2670
|
|
2619
2671
|
|
2620
|
-
def
|
2672
|
+
def doDescribeExtendedServiceAuthDetail(args, parsed_globals):
|
2621
2673
|
g_param = parse_global_arg(parsed_globals)
|
2622
2674
|
|
2623
2675
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2646,11 +2698,11 @@ def doCreateMiniAppPrepareFlow(args, parsed_globals):
|
|
2646
2698
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
2647
2699
|
client._sdkVersion += ("_CLI_" + __version__)
|
2648
2700
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2649
|
-
model = models.
|
2701
|
+
model = models.DescribeExtendedServiceAuthDetailRequest()
|
2650
2702
|
model.from_json_string(json.dumps(args))
|
2651
2703
|
start_time = time.time()
|
2652
2704
|
while True:
|
2653
|
-
rsp = client.
|
2705
|
+
rsp = client.DescribeExtendedServiceAuthDetail(model)
|
2654
2706
|
result = rsp.to_json_string()
|
2655
2707
|
try:
|
2656
2708
|
json_obj = json.loads(result)
|
@@ -2669,7 +2721,7 @@ def doCreateMiniAppPrepareFlow(args, parsed_globals):
|
|
2669
2721
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2670
2722
|
|
2671
2723
|
|
2672
|
-
def
|
2724
|
+
def doCancelMultiFlowSignQRCode(args, parsed_globals):
|
2673
2725
|
g_param = parse_global_arg(parsed_globals)
|
2674
2726
|
|
2675
2727
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2698,11 +2750,11 @@ def doDescribeFlowBriefs(args, parsed_globals):
|
|
2698
2750
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
2699
2751
|
client._sdkVersion += ("_CLI_" + __version__)
|
2700
2752
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2701
|
-
model = models.
|
2753
|
+
model = models.CancelMultiFlowSignQRCodeRequest()
|
2702
2754
|
model.from_json_string(json.dumps(args))
|
2703
2755
|
start_time = time.time()
|
2704
2756
|
while True:
|
2705
|
-
rsp = client.
|
2757
|
+
rsp = client.CancelMultiFlowSignQRCode(model)
|
2706
2758
|
result = rsp.to_json_string()
|
2707
2759
|
try:
|
2708
2760
|
json_obj = json.loads(result)
|
@@ -2721,7 +2773,7 @@ def doDescribeFlowBriefs(args, parsed_globals):
|
|
2721
2773
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2722
2774
|
|
2723
2775
|
|
2724
|
-
def
|
2776
|
+
def doCreateMiniAppPrepareFlow(args, parsed_globals):
|
2725
2777
|
g_param = parse_global_arg(parsed_globals)
|
2726
2778
|
|
2727
2779
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2750,11 +2802,11 @@ def doDescribeSignFaceVideo(args, parsed_globals):
|
|
2750
2802
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
2751
2803
|
client._sdkVersion += ("_CLI_" + __version__)
|
2752
2804
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2753
|
-
model = models.
|
2805
|
+
model = models.CreateMiniAppPrepareFlowRequest()
|
2754
2806
|
model.from_json_string(json.dumps(args))
|
2755
2807
|
start_time = time.time()
|
2756
2808
|
while True:
|
2757
|
-
rsp = client.
|
2809
|
+
rsp = client.CreateMiniAppPrepareFlow(model)
|
2758
2810
|
result = rsp.to_json_string()
|
2759
2811
|
try:
|
2760
2812
|
json_obj = json.loads(result)
|
@@ -2773,7 +2825,7 @@ def doDescribeSignFaceVideo(args, parsed_globals):
|
|
2773
2825
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2774
2826
|
|
2775
2827
|
|
2776
|
-
def
|
2828
|
+
def doDescribeFlowBriefs(args, parsed_globals):
|
2777
2829
|
g_param = parse_global_arg(parsed_globals)
|
2778
2830
|
|
2779
2831
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2802,11 +2854,63 @@ def doCreateFlowByFiles(args, parsed_globals):
|
|
2802
2854
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
2803
2855
|
client._sdkVersion += ("_CLI_" + __version__)
|
2804
2856
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2805
|
-
model = models.
|
2857
|
+
model = models.DescribeFlowBriefsRequest()
|
2806
2858
|
model.from_json_string(json.dumps(args))
|
2807
2859
|
start_time = time.time()
|
2808
2860
|
while True:
|
2809
|
-
rsp = client.
|
2861
|
+
rsp = client.DescribeFlowBriefs(model)
|
2862
|
+
result = rsp.to_json_string()
|
2863
|
+
try:
|
2864
|
+
json_obj = json.loads(result)
|
2865
|
+
except TypeError as e:
|
2866
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2867
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2868
|
+
break
|
2869
|
+
cur_time = time.time()
|
2870
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2871
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2872
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2873
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2874
|
+
else:
|
2875
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2876
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2877
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2878
|
+
|
2879
|
+
|
2880
|
+
def doDescribeSignFaceVideo(args, parsed_globals):
|
2881
|
+
g_param = parse_global_arg(parsed_globals)
|
2882
|
+
|
2883
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2884
|
+
cred = credential.CVMRoleCredential()
|
2885
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2886
|
+
cred = credential.STSAssumeRoleCredential(
|
2887
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2888
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2889
|
+
)
|
2890
|
+
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):
|
2891
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2892
|
+
else:
|
2893
|
+
cred = credential.Credential(
|
2894
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2895
|
+
)
|
2896
|
+
http_profile = HttpProfile(
|
2897
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2898
|
+
reqMethod="POST",
|
2899
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2900
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2901
|
+
)
|
2902
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2903
|
+
if g_param[OptionsDefine.Language]:
|
2904
|
+
profile.language = g_param[OptionsDefine.Language]
|
2905
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2906
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
2907
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2908
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2909
|
+
model = models.DescribeSignFaceVideoRequest()
|
2910
|
+
model.from_json_string(json.dumps(args))
|
2911
|
+
start_time = time.time()
|
2912
|
+
while True:
|
2913
|
+
rsp = client.DescribeSignFaceVideo(model)
|
2810
2914
|
result = rsp.to_json_string()
|
2811
2915
|
try:
|
2812
2916
|
json_obj = json.loads(result)
|
@@ -4385,7 +4489,7 @@ def doDescribeFlowComponents(args, parsed_globals):
|
|
4385
4489
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4386
4490
|
|
4387
4491
|
|
4388
|
-
def
|
4492
|
+
def doCreateFlowByFiles(args, parsed_globals):
|
4389
4493
|
g_param = parse_global_arg(parsed_globals)
|
4390
4494
|
|
4391
4495
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4414,11 +4518,11 @@ def doCreateWebThemeConfig(args, parsed_globals):
|
|
4414
4518
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
4415
4519
|
client._sdkVersion += ("_CLI_" + __version__)
|
4416
4520
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4417
|
-
model = models.
|
4521
|
+
model = models.CreateFlowByFilesRequest()
|
4418
4522
|
model.from_json_string(json.dumps(args))
|
4419
4523
|
start_time = time.time()
|
4420
4524
|
while True:
|
4421
|
-
rsp = client.
|
4525
|
+
rsp = client.CreateFlowByFiles(model)
|
4422
4526
|
result = rsp.to_json_string()
|
4423
4527
|
try:
|
4424
4528
|
json_obj = json.loads(result)
|
@@ -5321,6 +5425,58 @@ def doCreateSealPolicy(args, parsed_globals):
|
|
5321
5425
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5322
5426
|
|
5323
5427
|
|
5428
|
+
def doDeleteSingleSignOnEmployees(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.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
5455
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5456
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5457
|
+
model = models.DeleteSingleSignOnEmployeesRequest()
|
5458
|
+
model.from_json_string(json.dumps(args))
|
5459
|
+
start_time = time.time()
|
5460
|
+
while True:
|
5461
|
+
rsp = client.DeleteSingleSignOnEmployees(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
|
+
|
5324
5480
|
def doDescribeCancelFlowsTask(args, parsed_globals):
|
5325
5481
|
g_param = parse_global_arg(parsed_globals)
|
5326
5482
|
|
@@ -5893,6 +6049,58 @@ def doCreateOrganizationBatchSignUrl(args, parsed_globals):
|
|
5893
6049
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5894
6050
|
|
5895
6051
|
|
6052
|
+
def doModifySingleSignOnEmployees(args, parsed_globals):
|
6053
|
+
g_param = parse_global_arg(parsed_globals)
|
6054
|
+
|
6055
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
6056
|
+
cred = credential.CVMRoleCredential()
|
6057
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
6058
|
+
cred = credential.STSAssumeRoleCredential(
|
6059
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
6060
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
6061
|
+
)
|
6062
|
+
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):
|
6063
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
6064
|
+
else:
|
6065
|
+
cred = credential.Credential(
|
6066
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
6067
|
+
)
|
6068
|
+
http_profile = HttpProfile(
|
6069
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
6070
|
+
reqMethod="POST",
|
6071
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
6072
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
6073
|
+
)
|
6074
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
6075
|
+
if g_param[OptionsDefine.Language]:
|
6076
|
+
profile.language = g_param[OptionsDefine.Language]
|
6077
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
6078
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
6079
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
6080
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6081
|
+
model = models.ModifySingleSignOnEmployeesRequest()
|
6082
|
+
model.from_json_string(json.dumps(args))
|
6083
|
+
start_time = time.time()
|
6084
|
+
while True:
|
6085
|
+
rsp = client.ModifySingleSignOnEmployees(model)
|
6086
|
+
result = rsp.to_json_string()
|
6087
|
+
try:
|
6088
|
+
json_obj = json.loads(result)
|
6089
|
+
except TypeError as e:
|
6090
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
6091
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
6092
|
+
break
|
6093
|
+
cur_time = time.time()
|
6094
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
6095
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
6096
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
6097
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
6098
|
+
else:
|
6099
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
6100
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
6101
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6102
|
+
|
6103
|
+
|
5896
6104
|
def doDescribeThirdPartyAuthCode(args, parsed_globals):
|
5897
6105
|
g_param = parse_global_arg(parsed_globals)
|
5898
6106
|
|
@@ -6200,6 +6408,7 @@ ACTION_MAP = {
|
|
6200
6408
|
"DescribeOrganizationAuthStatus": doDescribeOrganizationAuthStatus,
|
6201
6409
|
"CreateEmployeeChangeUrl": doCreateEmployeeChangeUrl,
|
6202
6410
|
"RenewAutoSignLicense": doRenewAutoSignLicense,
|
6411
|
+
"CreateWebThemeConfig": doCreateWebThemeConfig,
|
6203
6412
|
"VerifyPdf": doVerifyPdf,
|
6204
6413
|
"BindEmployeeUserIdWithClientOpenId": doBindEmployeeUserIdWithClientOpenId,
|
6205
6414
|
"CreateOrganizationAuthFile": doCreateOrganizationAuthFile,
|
@@ -6209,6 +6418,8 @@ ACTION_MAP = {
|
|
6209
6418
|
"CreateContractDiffTaskWebUrl": doCreateContractDiffTaskWebUrl,
|
6210
6419
|
"CreateFlow": doCreateFlow,
|
6211
6420
|
"DescribeExtendedServiceAuthInfos": doDescribeExtendedServiceAuthInfos,
|
6421
|
+
"CreateSingleSignOnEmployees": doCreateSingleSignOnEmployees,
|
6422
|
+
"DescribeSingleSignOnEmployees": doDescribeSingleSignOnEmployees,
|
6212
6423
|
"CreateLegalSealQrCode": doCreateLegalSealQrCode,
|
6213
6424
|
"CreateSeal": doCreateSeal,
|
6214
6425
|
"CreateMultiFlowSignQRCode": doCreateMultiFlowSignQRCode,
|
@@ -6217,7 +6428,6 @@ ACTION_MAP = {
|
|
6217
6428
|
"CreateMiniAppPrepareFlow": doCreateMiniAppPrepareFlow,
|
6218
6429
|
"DescribeFlowBriefs": doDescribeFlowBriefs,
|
6219
6430
|
"DescribeSignFaceVideo": doDescribeSignFaceVideo,
|
6220
|
-
"CreateFlowByFiles": doCreateFlowByFiles,
|
6221
6431
|
"CreateFlowSignUrl": doCreateFlowSignUrl,
|
6222
6432
|
"CreateBatchInitOrganizationUrl": doCreateBatchInitOrganizationUrl,
|
6223
6433
|
"CreateFlowEvidenceReport": doCreateFlowEvidenceReport,
|
@@ -6248,7 +6458,7 @@ ACTION_MAP = {
|
|
6248
6458
|
"UploadFiles": doUploadFiles,
|
6249
6459
|
"CreateFlowForwards": doCreateFlowForwards,
|
6250
6460
|
"DescribeFlowComponents": doDescribeFlowComponents,
|
6251
|
-
"
|
6461
|
+
"CreateFlowByFiles": doCreateFlowByFiles,
|
6252
6462
|
"CreateDynamicFlowApprover": doCreateDynamicFlowApprover,
|
6253
6463
|
"DescribeUserFlowType": doDescribeUserFlowType,
|
6254
6464
|
"CreateContractReviewWebUrl": doCreateContractReviewWebUrl,
|
@@ -6266,6 +6476,7 @@ ACTION_MAP = {
|
|
6266
6476
|
"DeleteIntegrationDepartment": doDeleteIntegrationDepartment,
|
6267
6477
|
"DescribeFlowInfo": doDescribeFlowInfo,
|
6268
6478
|
"CreateSealPolicy": doCreateSealPolicy,
|
6479
|
+
"DeleteSingleSignOnEmployees": doDeleteSingleSignOnEmployees,
|
6269
6480
|
"DescribeCancelFlowsTask": doDescribeCancelFlowsTask,
|
6270
6481
|
"CreateSchemeUrl": doCreateSchemeUrl,
|
6271
6482
|
"CreateOrganizationGroupInvitationLink": doCreateOrganizationGroupInvitationLink,
|
@@ -6277,6 +6488,7 @@ ACTION_MAP = {
|
|
6277
6488
|
"CreatePrepareFlowGroup": doCreatePrepareFlowGroup,
|
6278
6489
|
"UpdateIntegrationEmployees": doUpdateIntegrationEmployees,
|
6279
6490
|
"CreateOrganizationBatchSignUrl": doCreateOrganizationBatchSignUrl,
|
6491
|
+
"ModifySingleSignOnEmployees": doModifySingleSignOnEmployees,
|
6280
6492
|
"DescribeThirdPartyAuthCode": doDescribeThirdPartyAuthCode,
|
6281
6493
|
"CreateFileCounterSign": doCreateFileCounterSign,
|
6282
6494
|
"DescribeOrganizationSeals": doDescribeOrganizationSeals,
|