tccli 3.0.947.1__py2.py3-none-any.whl → 3.0.949.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/examples/apigateway/v20180808/DescribeService.md +1 -0
- tccli/examples/bma/v20221115/CreateBPWhiteList.md +5 -1
- tccli/examples/bma/v20221115/DescribeBPWhiteLists.md +14 -1
- tccli/examples/cdwch/v20200915/DeleteBackUpData.md +21 -0
- tccli/examples/cdwch/v20200915/DescribeBackUpJob.md +32 -0
- tccli/examples/cdwch/v20200915/DescribeBackUpJobDetail.md +30 -0
- tccli/examples/cdwch/v20200915/DescribeCkSqlApis.md +2 -32
- tccli/examples/cdwch/v20200915/RecoverBackUpJob.md +21 -0
- tccli/examples/cfw/v20190904/DescribeNatAcRule.md +31 -22
- tccli/examples/csip/v20221121/DescribeListenerList.md +35 -3
- tccli/examples/cvm/v20170312/ModifyImageSharePermission.md +2 -2
- tccli/examples/dsgc/v20190723/DescribeDSPAAssessmentRiskSideDistributed.md +35 -0
- tccli/examples/dsgc/v20190723/DescribeDSPAAssessmentRiskSideList.md +27 -0
- tccli/examples/dsgc/v20190723/DescribeDSPAAssessmentRiskTemplateVulnerableList.md +2 -1
- tccli/examples/dsgc/v20190723/DescribeDSPAESDiscoveryTaskResultDetail.md +8 -2
- tccli/examples/faceid/v20180301/GetEidResult.md +55 -24
- tccli/examples/lcic/v20220817/DescribeGroupList.md +79 -9
- tccli/examples/vpc/v20170312/CreateNetworkAclEntries.md +30 -0
- tccli/examples/vpc/v20170312/DeleteNetworkAclEntries.md +22 -0
- tccli/examples/vpc/v20170312/ModifyNetworkAclEntries.md +0 -5
- tccli/examples/waf/v20180125/AddAntiFakeUrl.md +46 -0
- tccli/examples/waf/v20180125/AddAntiInfoLeakRules.md +26 -0
- tccli/examples/waf/v20180125/DeleteAntiFakeUrl.md +21 -0
- tccli/examples/waf/v20180125/DeleteAntiInfoLeakRule.md +21 -0
- tccli/examples/waf/v20180125/DeleteCCRule.md +23 -0
- tccli/examples/waf/v20180125/DescribeAntiFakeRules.md +28 -0
- tccli/examples/waf/v20180125/DescribeAntiFakeUrl.md +57 -0
- tccli/examples/waf/v20180125/DescribeAntiInfoLeakRules.md +40 -0
- tccli/examples/waf/v20180125/DescribeAntiInfoLeakageRules.md +38 -0
- tccli/examples/waf/v20180125/DescribeBatchIpAccessControl.md +42 -0
- tccli/examples/waf/v20180125/DescribeCCRule.md +71 -0
- tccli/examples/waf/v20180125/DescribeCCRuleList.md +36 -0
- tccli/examples/waf/v20180125/DescribeSession.md +51 -0
- tccli/examples/waf/v20180125/ModifyAntiFakeUrl.md +24 -0
- tccli/examples/waf/v20180125/ModifyAntiFakeUrlStatus.md +22 -0
- tccli/examples/waf/v20180125/ModifyAntiInfoLeakRuleStatus.md +22 -0
- tccli/examples/waf/v20180125/ModifyAntiInfoLeakRules.md +26 -0
- tccli/examples/waf/v20180125/ModifyCustomWhiteRuleStatus.md +26 -0
- tccli/examples/waf/v20180125/UpsertCCRule.md +95 -0
- tccli/examples/waf/v20180125/UpsertSession.md +25 -0
- tccli/services/apigateway/v20180808/api.json +22 -2
- tccli/services/apigateway/v20180808/examples.json +1 -1
- tccli/services/asr/v20190614/api.json +3 -3
- tccli/services/bma/v20221115/api.json +27 -6
- tccli/services/bma/v20221115/examples.json +2 -2
- tccli/services/cdwch/cdwch_client.py +278 -66
- tccli/services/cdwch/v20200915/api.json +314 -1
- tccli/services/cdwch/v20200915/examples.json +33 -1
- tccli/services/cfw/v20190904/api.json +3 -0
- tccli/services/cfw/v20190904/examples.json +2 -2
- tccli/services/ckafka/v20190819/api.json +83 -15
- tccli/services/csip/v20221121/api.json +24 -12
- tccli/services/csip/v20221121/examples.json +1 -1
- tccli/services/cvm/v20170312/api.json +4 -4
- tccli/services/cvm/v20170312/examples.json +1 -1
- tccli/services/cwp/v20180228/api.json +20 -2
- tccli/services/cynosdb/v20190107/api.json +3 -3
- tccli/services/dbbrain/v20210527/api.json +53 -33
- tccli/services/dsgc/dsgc_client.py +106 -0
- tccli/services/dsgc/v20190723/api.json +414 -46
- tccli/services/dsgc/v20190723/examples.json +18 -2
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/faceid/v20180301/api.json +26 -7
- tccli/services/faceid/v20180301/examples.json +1 -1
- tccli/services/lcic/v20220817/api.json +2 -0
- tccli/services/lcic/v20220817/examples.json +10 -4
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/oceanus/v20190422/api.json +122 -36
- tccli/services/trtc/v20190722/api.json +3 -3
- tccli/services/tsf/v20180326/api.json +26 -8
- tccli/services/vod/v20180717/api.json +57 -11
- tccli/services/vpc/v20170312/api.json +155 -18
- tccli/services/vpc/v20170312/examples.json +19 -3
- tccli/services/vpc/vpc_client.py +195 -89
- tccli/services/waf/v20180125/api.json +2671 -582
- tccli/services/waf/v20180125/examples.json +202 -0
- tccli/services/waf/waf_client.py +1365 -305
- tccli/services/wedata/v20210820/api.json +40 -30
- {tccli-3.0.947.1.dist-info → tccli-3.0.949.1.dist-info}/METADATA +2 -2
- {tccli-3.0.947.1.dist-info → tccli-3.0.949.1.dist-info}/RECORD +84 -56
- {tccli-3.0.947.1.dist-info → tccli-3.0.949.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.947.1.dist-info → tccli-3.0.949.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.947.1.dist-info → tccli-3.0.949.1.dist-info}/license_files/LICENSE +0 -0
@@ -1473,6 +1473,58 @@ def doDescribeAssetDetailDataExportResult(args, parsed_globals):
|
|
1473
1473
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1474
1474
|
|
1475
1475
|
|
1476
|
+
def doDescribeDSPAAssessmentRiskSideDistributed(args, parsed_globals):
|
1477
|
+
g_param = parse_global_arg(parsed_globals)
|
1478
|
+
|
1479
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1480
|
+
cred = credential.CVMRoleCredential()
|
1481
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1482
|
+
cred = credential.STSAssumeRoleCredential(
|
1483
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1484
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
1485
|
+
)
|
1486
|
+
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):
|
1487
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1488
|
+
else:
|
1489
|
+
cred = credential.Credential(
|
1490
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1491
|
+
)
|
1492
|
+
http_profile = HttpProfile(
|
1493
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1494
|
+
reqMethod="POST",
|
1495
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1496
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1497
|
+
)
|
1498
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1499
|
+
if g_param[OptionsDefine.Language]:
|
1500
|
+
profile.language = g_param[OptionsDefine.Language]
|
1501
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1502
|
+
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
1503
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1504
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1505
|
+
model = models.DescribeDSPAAssessmentRiskSideDistributedRequest()
|
1506
|
+
model.from_json_string(json.dumps(args))
|
1507
|
+
start_time = time.time()
|
1508
|
+
while True:
|
1509
|
+
rsp = client.DescribeDSPAAssessmentRiskSideDistributed(model)
|
1510
|
+
result = rsp.to_json_string()
|
1511
|
+
try:
|
1512
|
+
json_obj = json.loads(result)
|
1513
|
+
except TypeError as e:
|
1514
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1515
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1516
|
+
break
|
1517
|
+
cur_time = time.time()
|
1518
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1519
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1520
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1521
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1522
|
+
else:
|
1523
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1524
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1525
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1526
|
+
|
1527
|
+
|
1476
1528
|
def doDescribeDSPADiscoveryTaskResultDetail(args, parsed_globals):
|
1477
1529
|
g_param = parse_global_arg(parsed_globals)
|
1478
1530
|
|
@@ -7453,6 +7505,58 @@ def doDeleteDSPADiscoveryTaskResult(args, parsed_globals):
|
|
7453
7505
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7454
7506
|
|
7455
7507
|
|
7508
|
+
def doDescribeDSPAAssessmentRiskSideList(args, parsed_globals):
|
7509
|
+
g_param = parse_global_arg(parsed_globals)
|
7510
|
+
|
7511
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
7512
|
+
cred = credential.CVMRoleCredential()
|
7513
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
7514
|
+
cred = credential.STSAssumeRoleCredential(
|
7515
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
7516
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
7517
|
+
)
|
7518
|
+
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):
|
7519
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
7520
|
+
else:
|
7521
|
+
cred = credential.Credential(
|
7522
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
7523
|
+
)
|
7524
|
+
http_profile = HttpProfile(
|
7525
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
7526
|
+
reqMethod="POST",
|
7527
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
7528
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
7529
|
+
)
|
7530
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
7531
|
+
if g_param[OptionsDefine.Language]:
|
7532
|
+
profile.language = g_param[OptionsDefine.Language]
|
7533
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
7534
|
+
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
7535
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
7536
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7537
|
+
model = models.DescribeDSPAAssessmentRiskSideListRequest()
|
7538
|
+
model.from_json_string(json.dumps(args))
|
7539
|
+
start_time = time.time()
|
7540
|
+
while True:
|
7541
|
+
rsp = client.DescribeDSPAAssessmentRiskSideList(model)
|
7542
|
+
result = rsp.to_json_string()
|
7543
|
+
try:
|
7544
|
+
json_obj = json.loads(result)
|
7545
|
+
except TypeError as e:
|
7546
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
7547
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
7548
|
+
break
|
7549
|
+
cur_time = time.time()
|
7550
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
7551
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
7552
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
7553
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
7554
|
+
else:
|
7555
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
7556
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
7557
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7558
|
+
|
7559
|
+
|
7456
7560
|
def doDescribeDSPACOSDataAssetBuckets(args, parsed_globals):
|
7457
7561
|
g_param = parse_global_arg(parsed_globals)
|
7458
7562
|
|
@@ -7648,6 +7752,7 @@ ACTION_MAP = {
|
|
7648
7752
|
"BindDSPAResourceCosBuckets": doBindDSPAResourceCosBuckets,
|
7649
7753
|
"ModifyDSPAComplianceGroup": doModifyDSPAComplianceGroup,
|
7650
7754
|
"DescribeAssetDetailDataExportResult": doDescribeAssetDetailDataExportResult,
|
7755
|
+
"DescribeDSPAAssessmentRiskSideDistributed": doDescribeDSPAAssessmentRiskSideDistributed,
|
7651
7756
|
"DescribeDSPADiscoveryTaskResultDetail": doDescribeDSPADiscoveryTaskResultDetail,
|
7652
7757
|
"DescribeDSPAAssessmentRiskLevelTrend": doDescribeDSPAAssessmentRiskLevelTrend,
|
7653
7758
|
"DescribeDSPAAssessmentRisks": doDescribeDSPAAssessmentRisks,
|
@@ -7763,6 +7868,7 @@ ACTION_MAP = {
|
|
7763
7868
|
"DescribeDSPADiscoveryTaskResult": doDescribeDSPADiscoveryTaskResult,
|
7764
7869
|
"ModifyDSPADiscoveryRule": doModifyDSPADiscoveryRule,
|
7765
7870
|
"DeleteDSPADiscoveryTaskResult": doDeleteDSPADiscoveryTaskResult,
|
7871
|
+
"DescribeDSPAAssessmentRiskSideList": doDescribeDSPAAssessmentRiskSideList,
|
7766
7872
|
"DescribeDSPACOSDataAssetBuckets": doDescribeDSPACOSDataAssetBuckets,
|
7767
7873
|
"DescribeDSPAAssessmentProcessingRiskOverview": doDescribeDSPAAssessmentProcessingRiskOverview,
|
7768
7874
|
"CreateAssetSortingReportTask": doCreateAssetSortingReportTask,
|