tccli 3.0.1275.1__py2.py3-none-any.whl → 3.0.1277.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 +134 -22
- tccli/services/batch/v20170312/api.json +24 -24
- tccli/services/cfw/v20190904/api.json +6 -6
- tccli/services/cvm/v20170312/api.json +57 -37
- tccli/services/cynosdb/v20190107/api.json +14 -4
- tccli/services/emr/v20190103/api.json +29 -29
- tccli/services/ess/ess_client.py +110 -4
- tccli/services/ess/v20201111/api.json +540 -328
- tccli/services/ess/v20201111/examples.json +22 -0
- tccli/services/essbasic/essbasic_client.py +106 -0
- tccli/services/essbasic/v20210526/api.json +432 -238
- tccli/services/essbasic/v20210526/examples.json +22 -0
- tccli/services/ims/v20201229/api.json +82 -0
- tccli/services/lcic/v20220817/api.json +3 -3
- tccli/services/lighthouse/v20200324/api.json +6 -6
- tccli/services/live/v20180801/api.json +224 -217
- tccli/services/lke/lke_client.py +53 -0
- tccli/services/lke/v20231130/api.json +72 -2
- tccli/services/lke/v20231130/examples.json +8 -0
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/rce/v20201103/api.json +13 -13
- tccli/services/taf/v20200210/api.json +9 -9
- tccli/services/teo/v20220901/api.json +2 -2
- tccli/services/teo/v20220901/examples.json +1 -1
- tccli/services/tione/v20211111/api.json +2 -2
- tccli/services/tke/v20180525/api.json +176 -176
- tccli/services/trtc/v20190722/api.json +9 -0
- tccli/services/tse/v20201207/api.json +84 -4
- tccli/services/vm/v20201229/api.json +428 -78
- tccli/services/vm/v20210922/api.json +482 -82
- tccli/services/wedata/v20210820/api.json +29 -18
- tccli/services/wedata/v20210820/examples.json +12 -18
- {tccli-3.0.1275.1.dist-info → tccli-3.0.1277.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1275.1.dist-info → tccli-3.0.1277.1.dist-info}/RECORD +38 -38
- {tccli-3.0.1275.1.dist-info → tccli-3.0.1277.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1275.1.dist-info → tccli-3.0.1277.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1275.1.dist-info → tccli-3.0.1277.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/ess/ess_client.py
CHANGED
@@ -849,6 +849,58 @@ def doCreateFlowByFiles(args, parsed_globals):
|
|
849
849
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
850
850
|
|
851
851
|
|
852
|
+
def doCreateIntegrationSubOrganizationActiveRecord(args, parsed_globals):
|
853
|
+
g_param = parse_global_arg(parsed_globals)
|
854
|
+
|
855
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
856
|
+
cred = credential.CVMRoleCredential()
|
857
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
858
|
+
cred = credential.STSAssumeRoleCredential(
|
859
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
860
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
861
|
+
)
|
862
|
+
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):
|
863
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
864
|
+
else:
|
865
|
+
cred = credential.Credential(
|
866
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
867
|
+
)
|
868
|
+
http_profile = HttpProfile(
|
869
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
870
|
+
reqMethod="POST",
|
871
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
872
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
873
|
+
)
|
874
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
875
|
+
if g_param[OptionsDefine.Language]:
|
876
|
+
profile.language = g_param[OptionsDefine.Language]
|
877
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
878
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
879
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
880
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
881
|
+
model = models.CreateIntegrationSubOrganizationActiveRecordRequest()
|
882
|
+
model.from_json_string(json.dumps(args))
|
883
|
+
start_time = time.time()
|
884
|
+
while True:
|
885
|
+
rsp = client.CreateIntegrationSubOrganizationActiveRecord(model)
|
886
|
+
result = rsp.to_json_string()
|
887
|
+
try:
|
888
|
+
json_obj = json.loads(result)
|
889
|
+
except TypeError as e:
|
890
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
891
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
892
|
+
break
|
893
|
+
cur_time = time.time()
|
894
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
895
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
896
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
897
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
898
|
+
else:
|
899
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
900
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
901
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
902
|
+
|
903
|
+
|
852
904
|
def doDescribeIntegrationRoles(args, parsed_globals):
|
853
905
|
g_param = parse_global_arg(parsed_globals)
|
854
906
|
|
@@ -2929,6 +2981,58 @@ def doModifyExtendedService(args, parsed_globals):
|
|
2929
2981
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2930
2982
|
|
2931
2983
|
|
2984
|
+
def doCreateEmployeeChangeUrl(args, parsed_globals):
|
2985
|
+
g_param = parse_global_arg(parsed_globals)
|
2986
|
+
|
2987
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2988
|
+
cred = credential.CVMRoleCredential()
|
2989
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2990
|
+
cred = credential.STSAssumeRoleCredential(
|
2991
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2992
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2993
|
+
)
|
2994
|
+
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):
|
2995
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2996
|
+
else:
|
2997
|
+
cred = credential.Credential(
|
2998
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2999
|
+
)
|
3000
|
+
http_profile = HttpProfile(
|
3001
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3002
|
+
reqMethod="POST",
|
3003
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3004
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3005
|
+
)
|
3006
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3007
|
+
if g_param[OptionsDefine.Language]:
|
3008
|
+
profile.language = g_param[OptionsDefine.Language]
|
3009
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3010
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
3011
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3012
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3013
|
+
model = models.CreateEmployeeChangeUrlRequest()
|
3014
|
+
model.from_json_string(json.dumps(args))
|
3015
|
+
start_time = time.time()
|
3016
|
+
while True:
|
3017
|
+
rsp = client.CreateEmployeeChangeUrl(model)
|
3018
|
+
result = rsp.to_json_string()
|
3019
|
+
try:
|
3020
|
+
json_obj = json.loads(result)
|
3021
|
+
except TypeError as e:
|
3022
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3023
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3024
|
+
break
|
3025
|
+
cur_time = time.time()
|
3026
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3027
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3028
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3029
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3030
|
+
else:
|
3031
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3032
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3033
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3034
|
+
|
3035
|
+
|
2932
3036
|
def doCreateFlowBlockchainEvidenceUrl(args, parsed_globals):
|
2933
3037
|
g_param = parse_global_arg(parsed_globals)
|
2934
3038
|
|
@@ -3501,7 +3605,7 @@ def doUploadFiles(args, parsed_globals):
|
|
3501
3605
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3502
3606
|
|
3503
3607
|
|
3504
|
-
def
|
3608
|
+
def doCreateFlowForwards(args, parsed_globals):
|
3505
3609
|
g_param = parse_global_arg(parsed_globals)
|
3506
3610
|
|
3507
3611
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3530,11 +3634,11 @@ def doCreateIntegrationSubOrganizationActiveRecord(args, parsed_globals):
|
|
3530
3634
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
3531
3635
|
client._sdkVersion += ("_CLI_" + __version__)
|
3532
3636
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3533
|
-
model = models.
|
3637
|
+
model = models.CreateFlowForwardsRequest()
|
3534
3638
|
model.from_json_string(json.dumps(args))
|
3535
3639
|
start_time = time.time()
|
3536
3640
|
while True:
|
3537
|
-
rsp = client.
|
3641
|
+
rsp = client.CreateFlowForwards(model)
|
3538
3642
|
result = rsp.to_json_string()
|
3539
3643
|
try:
|
3540
3644
|
json_obj = json.loads(result)
|
@@ -5192,6 +5296,7 @@ ACTION_MAP = {
|
|
5192
5296
|
"VerifyDigitFile": doVerifyDigitFile,
|
5193
5297
|
"CreatePartnerAutoSignAuthUrl": doCreatePartnerAutoSignAuthUrl,
|
5194
5298
|
"CreateFlowByFiles": doCreateFlowByFiles,
|
5299
|
+
"CreateIntegrationSubOrganizationActiveRecord": doCreateIntegrationSubOrganizationActiveRecord,
|
5195
5300
|
"DescribeIntegrationRoles": doDescribeIntegrationRoles,
|
5196
5301
|
"DescribeIntegrationEmployees": doDescribeIntegrationEmployees,
|
5197
5302
|
"CreatePersonAuthCertificateImage": doCreatePersonAuthCertificateImage,
|
@@ -5232,6 +5337,7 @@ ACTION_MAP = {
|
|
5232
5337
|
"DescribeFileUrls": doDescribeFileUrls,
|
5233
5338
|
"CreateIntegrationRole": doCreateIntegrationRole,
|
5234
5339
|
"ModifyExtendedService": doModifyExtendedService,
|
5340
|
+
"CreateEmployeeChangeUrl": doCreateEmployeeChangeUrl,
|
5235
5341
|
"CreateFlowBlockchainEvidenceUrl": doCreateFlowBlockchainEvidenceUrl,
|
5236
5342
|
"CreateBatchOrganizationAuthorizationUrl": doCreateBatchOrganizationAuthorizationUrl,
|
5237
5343
|
"DescribeUserVerifyStatus": doDescribeUserVerifyStatus,
|
@@ -5243,7 +5349,7 @@ ACTION_MAP = {
|
|
5243
5349
|
"CreateConvertTaskApi": doCreateConvertTaskApi,
|
5244
5350
|
"CreateOrganizationAuthUrl": doCreateOrganizationAuthUrl,
|
5245
5351
|
"UploadFiles": doUploadFiles,
|
5246
|
-
"
|
5352
|
+
"CreateFlowForwards": doCreateFlowForwards,
|
5247
5353
|
"DescribeFlowComponents": doDescribeFlowComponents,
|
5248
5354
|
"CreateWebThemeConfig": doCreateWebThemeConfig,
|
5249
5355
|
"CreateDynamicFlowApprover": doCreateDynamicFlowApprover,
|