tccli 3.0.847.1__py2.py3-none-any.whl → 3.0.849.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/__init__.py +1 -0
- tccli/services/billing/v20180709/api.json +1 -9
- tccli/services/billing/v20180709/examples.json +1 -1
- tccli/services/bma/v20221115/api.json +9 -0
- tccli/services/bma/v20221115/examples.json +1 -1
- tccli/services/cdn/v20180606/api.json +0 -14
- tccli/services/cdn/v20180606/examples.json +2 -2
- tccli/services/cfs/v20190719/api.json +2 -2
- tccli/services/ckafka/ckafka_client.py +61 -8
- tccli/services/ckafka/v20190819/api.json +78 -15
- tccli/services/ckafka/v20190819/examples.json +11 -3
- tccli/services/cwp/cwp_client.py +61 -8
- tccli/services/cwp/v20180228/api.json +361 -117
- tccli/services/cwp/v20180228/examples.json +25 -17
- tccli/services/dcdb/v20180411/api.json +8 -50
- tccli/services/dcdb/v20180411/examples.json +3 -3
- tccli/services/dlc/v20210125/api.json +1 -1
- tccli/services/ess/v20201111/api.json +51 -2
- tccli/services/ess/v20201111/examples.json +1 -1
- tccli/services/live/v20180801/api.json +0 -4
- tccli/services/live/v20180801/examples.json +1 -1
- tccli/services/mariadb/v20170312/api.json +8 -55
- tccli/services/mariadb/v20170312/examples.json +3 -3
- tccli/services/mongodb/v20190725/api.json +5 -20
- tccli/services/mongodb/v20190725/examples.json +5 -5
- tccli/services/monitor/v20180724/api.json +2 -32
- tccli/services/ocr/v20181119/api.json +20 -1
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/region/v20220627/api.json +16 -6
- tccli/services/region/v20220627/examples.json +7 -7
- tccli/services/ssl/v20191205/api.json +18 -53
- tccli/services/ssl/v20191205/examples.json +6 -6
- tccli/services/tcb/v20180608/api.json +16 -137
- tccli/services/tcb/v20180608/examples.json +10 -10
- tccli/services/tcr/v20190924/api.json +4 -4
- tccli/services/tdmq/v20200217/api.json +0 -2
- tccli/services/tdmq/v20200217/examples.json +2 -2
- tccli/services/thpc/thpc_client.py +13 -8
- tccli/services/thpc/v20230321/api.json +2414 -0
- tccli/services/thpc/v20230321/examples.json +125 -0
- tccli/services/tiw/tiw_client.py +53 -0
- tccli/services/tiw/v20190919/api.json +216 -0
- tccli/services/tiw/v20190919/examples.json +8 -0
- tccli/services/trtc/v20190722/api.json +5 -17
- tccli/services/tse/v20201207/api.json +45 -2
- tccli/services/tts/v20190823/api.json +10 -21
- tccli/services/tts/v20190823/examples.json +1 -1
- tccli/services/vod/v20180717/api.json +20 -12
- tccli/services/vod/v20180717/examples.json +1 -1
- tccli/services/vpc/v20170312/api.json +6 -5
- tccli/services/vpc/v20170312/examples.json +2 -2
- {tccli-3.0.847.1.dist-info → tccli-3.0.849.1.dist-info}/METADATA +2 -2
- {tccli-3.0.847.1.dist-info → tccli-3.0.849.1.dist-info}/RECORD +58 -56
- {tccli-3.0.847.1.dist-info → tccli-3.0.849.1.dist-info}/LICENSE +0 -0
- {tccli-3.0.847.1.dist-info → tccli-3.0.849.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.847.1.dist-info → tccli-3.0.849.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.847.1.dist-info → tccli-3.0.849.1.dist-info}/top_level.txt +0 -0
tccli/services/cwp/cwp_client.py
CHANGED
@@ -69,7 +69,7 @@ def doDeleteTags(args, parsed_globals):
|
|
69
69
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
70
|
|
71
71
|
|
72
|
-
def
|
72
|
+
def doDescribeRiskDnsEventList(args, parsed_globals):
|
73
73
|
g_param = parse_global_arg(parsed_globals)
|
74
74
|
|
75
75
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -98,11 +98,11 @@ def doSwitchBashRules(args, parsed_globals):
|
|
98
98
|
client = mod.CwpClient(cred, g_param[OptionsDefine.Region], profile)
|
99
99
|
client._sdkVersion += ("_CLI_" + __version__)
|
100
100
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
101
|
-
model = models.
|
101
|
+
model = models.DescribeRiskDnsEventListRequest()
|
102
102
|
model.from_json_string(json.dumps(args))
|
103
103
|
start_time = time.time()
|
104
104
|
while True:
|
105
|
-
rsp = client.
|
105
|
+
rsp = client.DescribeRiskDnsEventList(model)
|
106
106
|
result = rsp.to_json_string()
|
107
107
|
try:
|
108
108
|
json_obj = json.loads(result)
|
@@ -7973,6 +7973,58 @@ def doEditTags(args, parsed_globals):
|
|
7973
7973
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7974
7974
|
|
7975
7975
|
|
7976
|
+
def doDescribeClientException(args, parsed_globals):
|
7977
|
+
g_param = parse_global_arg(parsed_globals)
|
7978
|
+
|
7979
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
7980
|
+
cred = credential.CVMRoleCredential()
|
7981
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
7982
|
+
cred = credential.STSAssumeRoleCredential(
|
7983
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
7984
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
7985
|
+
)
|
7986
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
7987
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
7988
|
+
else:
|
7989
|
+
cred = credential.Credential(
|
7990
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
7991
|
+
)
|
7992
|
+
http_profile = HttpProfile(
|
7993
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
7994
|
+
reqMethod="POST",
|
7995
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
7996
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
7997
|
+
)
|
7998
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
7999
|
+
if g_param[OptionsDefine.Language]:
|
8000
|
+
profile.language = g_param[OptionsDefine.Language]
|
8001
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
8002
|
+
client = mod.CwpClient(cred, g_param[OptionsDefine.Region], profile)
|
8003
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
8004
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8005
|
+
model = models.DescribeClientExceptionRequest()
|
8006
|
+
model.from_json_string(json.dumps(args))
|
8007
|
+
start_time = time.time()
|
8008
|
+
while True:
|
8009
|
+
rsp = client.DescribeClientException(model)
|
8010
|
+
result = rsp.to_json_string()
|
8011
|
+
try:
|
8012
|
+
json_obj = json.loads(result)
|
8013
|
+
except TypeError as e:
|
8014
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
8015
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
8016
|
+
break
|
8017
|
+
cur_time = time.time()
|
8018
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
8019
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
8020
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
8021
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
8022
|
+
else:
|
8023
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
8024
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
8025
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8026
|
+
|
8027
|
+
|
7976
8028
|
def doSeparateMalwares(args, parsed_globals):
|
7977
8029
|
g_param = parse_global_arg(parsed_globals)
|
7978
8030
|
|
@@ -12237,7 +12289,7 @@ def doDescribeWebPageServiceInfo(args, parsed_globals):
|
|
12237
12289
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
12238
12290
|
|
12239
12291
|
|
12240
|
-
def
|
12292
|
+
def doSwitchBashRules(args, parsed_globals):
|
12241
12293
|
g_param = parse_global_arg(parsed_globals)
|
12242
12294
|
|
12243
12295
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -12266,11 +12318,11 @@ def doDescribeClientException(args, parsed_globals):
|
|
12266
12318
|
client = mod.CwpClient(cred, g_param[OptionsDefine.Region], profile)
|
12267
12319
|
client._sdkVersion += ("_CLI_" + __version__)
|
12268
12320
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
12269
|
-
model = models.
|
12321
|
+
model = models.SwitchBashRulesRequest()
|
12270
12322
|
model.from_json_string(json.dumps(args))
|
12271
12323
|
start_time = time.time()
|
12272
12324
|
while True:
|
12273
|
-
rsp = client.
|
12325
|
+
rsp = client.SwitchBashRules(model)
|
12274
12326
|
result = rsp.to_json_string()
|
12275
12327
|
try:
|
12276
12328
|
json_obj = json.loads(result)
|
@@ -13653,7 +13705,7 @@ MODELS_MAP = {
|
|
13653
13705
|
|
13654
13706
|
ACTION_MAP = {
|
13655
13707
|
"DeleteTags": doDeleteTags,
|
13656
|
-
"
|
13708
|
+
"DescribeRiskDnsEventList": doDescribeRiskDnsEventList,
|
13657
13709
|
"TrustMalwares": doTrustMalwares,
|
13658
13710
|
"DeleteBaselineRule": doDeleteBaselineRule,
|
13659
13711
|
"DescribeAssetPortInfoList": doDescribeAssetPortInfoList,
|
@@ -13805,6 +13857,7 @@ ACTION_MAP = {
|
|
13805
13857
|
"ExportAssetWebServiceInfoList": doExportAssetWebServiceInfoList,
|
13806
13858
|
"DescribeAssetWebLocationInfo": doDescribeAssetWebLocationInfo,
|
13807
13859
|
"EditTags": doEditTags,
|
13860
|
+
"DescribeClientException": doDescribeClientException,
|
13808
13861
|
"SeparateMalwares": doSeparateMalwares,
|
13809
13862
|
"ModifyBaselineRuleIgnore": doModifyBaselineRuleIgnore,
|
13810
13863
|
"DescribeBaselineRule": doDescribeBaselineRule,
|
@@ -13887,7 +13940,7 @@ ACTION_MAP = {
|
|
13887
13940
|
"DescribeAssetWebLocationList": doDescribeAssetWebLocationList,
|
13888
13941
|
"DescribeAssetProcessInfoList": doDescribeAssetProcessInfoList,
|
13889
13942
|
"DescribeWebPageServiceInfo": doDescribeWebPageServiceInfo,
|
13890
|
-
"
|
13943
|
+
"SwitchBashRules": doSwitchBashRules,
|
13891
13944
|
"DescribeTags": doDescribeTags,
|
13892
13945
|
"DescribeBaselineBasicInfo": doDescribeBaselineBasicInfo,
|
13893
13946
|
"ExportBaselineWeakPasswordList": doExportBaselineWeakPasswordList,
|