tccli 3.0.1318.1__py2.py3-none-any.whl → 3.0.1319.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 +0 -3
- tccli/services/ams/v20201229/api.json +109 -113
- tccli/services/batch/v20170312/api.json +2 -2
- tccli/services/billing/v20180709/api.json +6 -6
- tccli/services/cdwdoris/v20211228/api.json +30 -0
- tccli/services/cls/v20201016/api.json +13 -13
- tccli/services/cvm/v20170312/api.json +24 -24
- tccli/services/cynosdb/v20190107/api.json +2 -2
- tccli/services/dbbrain/v20210527/api.json +7 -3
- tccli/services/dlc/v20210125/api.json +112 -0
- tccli/services/dlc/v20210125/examples.json +3 -3
- tccli/services/domain/v20180808/api.json +3 -3
- tccli/services/domain/v20180808/examples.json +1 -1
- tccli/services/dsgc/dsgc_client.py +247 -1042
- tccli/services/dsgc/v20190723/api.json +0 -360
- tccli/services/dsgc/v20190723/examples.json +1 -127
- tccli/services/es/v20180416/api.json +10 -0
- tccli/services/ess/v20201111/api.json +5 -5
- tccli/services/ess/v20201111/examples.json +10 -4
- tccli/services/essbasic/v20210526/api.json +2 -2
- tccli/services/live/v20180801/api.json +10 -0
- tccli/services/lke/v20231130/api.json +1 -1
- tccli/services/monitor/v20180724/api.json +8 -11
- tccli/services/mps/v20190612/api.json +20 -9
- tccli/services/mps/v20190612/examples.json +6 -0
- tccli/services/postgres/v20170312/api.json +9 -9
- tccli/services/ses/v20201002/api.json +9 -0
- tccli/services/tcb/v20180608/api.json +3 -3
- tccli/services/tdid/v20210519/examples.json +1 -1
- tccli/services/tione/tione_client.py +53 -0
- tccli/services/tione/v20211111/api.json +306 -1
- tccli/services/tione/v20211111/examples.json +8 -0
- tccli/services/tke/v20220501/api.json +11 -0
- tccli/services/tts/v20190823/api.json +2 -2
- tccli/services/vpc/v20170312/api.json +3 -3
- {tccli-3.0.1318.1.dist-info → tccli-3.0.1319.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1318.1.dist-info → tccli-3.0.1319.1.dist-info}/RECORD +41 -45
- tccli/services/apcas/__init__.py +0 -4
- tccli/services/apcas/apcas_client.py +0 -525
- tccli/services/apcas/v20201127/api.json +0 -733
- tccli/services/apcas/v20201127/examples.json +0 -61
- {tccli-3.0.1318.1.dist-info → tccli-3.0.1319.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1318.1.dist-info → tccli-3.0.1319.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1318.1.dist-info → tccli-3.0.1319.1.dist-info}/license_files/LICENSE +0 -0
@@ -17,58 +17,6 @@ from tencentcloud.dsgc.v20190723 import models as models_v20190723
|
|
17
17
|
from jmespath import search
|
18
18
|
import time
|
19
19
|
|
20
|
-
def doModifyDSPAAssessmentRiskLevel(args, parsed_globals):
|
21
|
-
g_param = parse_global_arg(parsed_globals)
|
22
|
-
|
23
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
24
|
-
cred = credential.CVMRoleCredential()
|
25
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
26
|
-
cred = credential.STSAssumeRoleCredential(
|
27
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
28
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
29
|
-
)
|
30
|
-
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):
|
31
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
32
|
-
else:
|
33
|
-
cred = credential.Credential(
|
34
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
35
|
-
)
|
36
|
-
http_profile = HttpProfile(
|
37
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
38
|
-
reqMethod="POST",
|
39
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
40
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
41
|
-
)
|
42
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
43
|
-
if g_param[OptionsDefine.Language]:
|
44
|
-
profile.language = g_param[OptionsDefine.Language]
|
45
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
46
|
-
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
47
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
48
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
49
|
-
model = models.ModifyDSPAAssessmentRiskLevelRequest()
|
50
|
-
model.from_json_string(json.dumps(args))
|
51
|
-
start_time = time.time()
|
52
|
-
while True:
|
53
|
-
rsp = client.ModifyDSPAAssessmentRiskLevel(model)
|
54
|
-
result = rsp.to_json_string()
|
55
|
-
try:
|
56
|
-
json_obj = json.loads(result)
|
57
|
-
except TypeError as e:
|
58
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
59
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
60
|
-
break
|
61
|
-
cur_time = time.time()
|
62
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
63
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
64
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
65
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
66
|
-
else:
|
67
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
68
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
69
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
|
-
|
71
|
-
|
72
20
|
def doCreateDSPALevelGroup(args, parsed_globals):
|
73
21
|
g_param = parse_global_arg(parsed_globals)
|
74
22
|
|
@@ -745,7 +693,7 @@ def doDescribeDSPAAssessmentRiskLevelList(args, parsed_globals):
|
|
745
693
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
746
694
|
|
747
695
|
|
748
|
-
def
|
696
|
+
def doModifyDSPAAssessmentRiskLatest(args, parsed_globals):
|
749
697
|
g_param = parse_global_arg(parsed_globals)
|
750
698
|
|
751
699
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -774,11 +722,11 @@ def doModifyClassificationRule(args, parsed_globals):
|
|
774
722
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
775
723
|
client._sdkVersion += ("_CLI_" + __version__)
|
776
724
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
777
|
-
model = models.
|
725
|
+
model = models.ModifyDSPAAssessmentRiskLatestRequest()
|
778
726
|
model.from_json_string(json.dumps(args))
|
779
727
|
start_time = time.time()
|
780
728
|
while True:
|
781
|
-
rsp = client.
|
729
|
+
rsp = client.ModifyDSPAAssessmentRiskLatest(model)
|
782
730
|
result = rsp.to_json_string()
|
783
731
|
try:
|
784
732
|
json_obj = json.loads(result)
|
@@ -2097,7 +2045,7 @@ def doModifyDSPAAssessmentRisk(args, parsed_globals):
|
|
2097
2045
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2098
2046
|
|
2099
2047
|
|
2100
|
-
def
|
2048
|
+
def doModifyDSPAAssessmentRiskTemplate(args, parsed_globals):
|
2101
2049
|
g_param = parse_global_arg(parsed_globals)
|
2102
2050
|
|
2103
2051
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2126,11 +2074,11 @@ def doCreateNewClassification(args, parsed_globals):
|
|
2126
2074
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
2127
2075
|
client._sdkVersion += ("_CLI_" + __version__)
|
2128
2076
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2129
|
-
model = models.
|
2077
|
+
model = models.ModifyDSPAAssessmentRiskTemplateRequest()
|
2130
2078
|
model.from_json_string(json.dumps(args))
|
2131
2079
|
start_time = time.time()
|
2132
2080
|
while True:
|
2133
|
-
rsp = client.
|
2081
|
+
rsp = client.ModifyDSPAAssessmentRiskTemplate(model)
|
2134
2082
|
result = rsp.to_json_string()
|
2135
2083
|
try:
|
2136
2084
|
json_obj = json.loads(result)
|
@@ -2149,7 +2097,7 @@ def doCreateNewClassification(args, parsed_globals):
|
|
2149
2097
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2150
2098
|
|
2151
2099
|
|
2152
|
-
def
|
2100
|
+
def doDescribeDSPADiscoveryTaskDetail(args, parsed_globals):
|
2153
2101
|
g_param = parse_global_arg(parsed_globals)
|
2154
2102
|
|
2155
2103
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2178,11 +2126,11 @@ def doModifyDSPAAssessmentRiskTemplate(args, parsed_globals):
|
|
2178
2126
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
2179
2127
|
client._sdkVersion += ("_CLI_" + __version__)
|
2180
2128
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2181
|
-
model = models.
|
2129
|
+
model = models.DescribeDSPADiscoveryTaskDetailRequest()
|
2182
2130
|
model.from_json_string(json.dumps(args))
|
2183
2131
|
start_time = time.time()
|
2184
2132
|
while True:
|
2185
|
-
rsp = client.
|
2133
|
+
rsp = client.DescribeDSPADiscoveryTaskDetail(model)
|
2186
2134
|
result = rsp.to_json_string()
|
2187
2135
|
try:
|
2188
2136
|
json_obj = json.loads(result)
|
@@ -2201,7 +2149,7 @@ def doModifyDSPAAssessmentRiskTemplate(args, parsed_globals):
|
|
2201
2149
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2202
2150
|
|
2203
2151
|
|
2204
|
-
def
|
2152
|
+
def doDescribeDSPACOSTaskResultDetail(args, parsed_globals):
|
2205
2153
|
g_param = parse_global_arg(parsed_globals)
|
2206
2154
|
|
2207
2155
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2230,11 +2178,11 @@ def doDescribeDSPADiscoveryTaskDetail(args, parsed_globals):
|
|
2230
2178
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
2231
2179
|
client._sdkVersion += ("_CLI_" + __version__)
|
2232
2180
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2233
|
-
model = models.
|
2181
|
+
model = models.DescribeDSPACOSTaskResultDetailRequest()
|
2234
2182
|
model.from_json_string(json.dumps(args))
|
2235
2183
|
start_time = time.time()
|
2236
2184
|
while True:
|
2237
|
-
rsp = client.
|
2185
|
+
rsp = client.DescribeDSPACOSTaskResultDetail(model)
|
2238
2186
|
result = rsp.to_json_string()
|
2239
2187
|
try:
|
2240
2188
|
json_obj = json.loads(result)
|
@@ -2253,7 +2201,7 @@ def doDescribeDSPADiscoveryTaskDetail(args, parsed_globals):
|
|
2253
2201
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2254
2202
|
|
2255
2203
|
|
2256
|
-
def
|
2204
|
+
def doDescribeDSPAAssessmentRiskAmountOverview(args, parsed_globals):
|
2257
2205
|
g_param = parse_global_arg(parsed_globals)
|
2258
2206
|
|
2259
2207
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2282,11 +2230,11 @@ def doDescribeDSPACOSTaskResultDetail(args, parsed_globals):
|
|
2282
2230
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
2283
2231
|
client._sdkVersion += ("_CLI_" + __version__)
|
2284
2232
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2285
|
-
model = models.
|
2233
|
+
model = models.DescribeDSPAAssessmentRiskAmountOverviewRequest()
|
2286
2234
|
model.from_json_string(json.dumps(args))
|
2287
2235
|
start_time = time.time()
|
2288
2236
|
while True:
|
2289
|
-
rsp = client.
|
2237
|
+
rsp = client.DescribeDSPAAssessmentRiskAmountOverview(model)
|
2290
2238
|
result = rsp.to_json_string()
|
2291
2239
|
try:
|
2292
2240
|
json_obj = json.loads(result)
|
@@ -2305,7 +2253,7 @@ def doDescribeDSPACOSTaskResultDetail(args, parsed_globals):
|
|
2305
2253
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2306
2254
|
|
2307
2255
|
|
2308
|
-
def
|
2256
|
+
def doDescribeDSPAESDataAssetByComplianceId(args, parsed_globals):
|
2309
2257
|
g_param = parse_global_arg(parsed_globals)
|
2310
2258
|
|
2311
2259
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2334,11 +2282,11 @@ def doDescribeDSPAAssessmentRiskAmountOverview(args, parsed_globals):
|
|
2334
2282
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
2335
2283
|
client._sdkVersion += ("_CLI_" + __version__)
|
2336
2284
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2337
|
-
model = models.
|
2285
|
+
model = models.DescribeDSPAESDataAssetByComplianceIdRequest()
|
2338
2286
|
model.from_json_string(json.dumps(args))
|
2339
2287
|
start_time = time.time()
|
2340
2288
|
while True:
|
2341
|
-
rsp = client.
|
2289
|
+
rsp = client.DescribeDSPAESDataAssetByComplianceId(model)
|
2342
2290
|
result = rsp.to_json_string()
|
2343
2291
|
try:
|
2344
2292
|
json_obj = json.loads(result)
|
@@ -2357,7 +2305,7 @@ def doDescribeDSPAAssessmentRiskAmountOverview(args, parsed_globals):
|
|
2357
2305
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2358
2306
|
|
2359
2307
|
|
2360
|
-
def
|
2308
|
+
def doDescribeDSPAComplianceGroups(args, parsed_globals):
|
2361
2309
|
g_param = parse_global_arg(parsed_globals)
|
2362
2310
|
|
2363
2311
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2386,11 +2334,11 @@ def doCreateClassificationRule(args, parsed_globals):
|
|
2386
2334
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
2387
2335
|
client._sdkVersion += ("_CLI_" + __version__)
|
2388
2336
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2389
|
-
model = models.
|
2337
|
+
model = models.DescribeDSPAComplianceGroupsRequest()
|
2390
2338
|
model.from_json_string(json.dumps(args))
|
2391
2339
|
start_time = time.time()
|
2392
2340
|
while True:
|
2393
|
-
rsp = client.
|
2341
|
+
rsp = client.DescribeDSPAComplianceGroups(model)
|
2394
2342
|
result = rsp.to_json_string()
|
2395
2343
|
try:
|
2396
2344
|
json_obj = json.loads(result)
|
@@ -2409,7 +2357,7 @@ def doCreateClassificationRule(args, parsed_globals):
|
|
2409
2357
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2410
2358
|
|
2411
2359
|
|
2412
|
-
def
|
2360
|
+
def doDescribeDSPACOSDiscoveryTaskDetail(args, parsed_globals):
|
2413
2361
|
g_param = parse_global_arg(parsed_globals)
|
2414
2362
|
|
2415
2363
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2438,11 +2386,11 @@ def doDescribeDSPAESDataAssetByComplianceId(args, parsed_globals):
|
|
2438
2386
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
2439
2387
|
client._sdkVersion += ("_CLI_" + __version__)
|
2440
2388
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2441
|
-
model = models.
|
2389
|
+
model = models.DescribeDSPACOSDiscoveryTaskDetailRequest()
|
2442
2390
|
model.from_json_string(json.dumps(args))
|
2443
2391
|
start_time = time.time()
|
2444
2392
|
while True:
|
2445
|
-
rsp = client.
|
2393
|
+
rsp = client.DescribeDSPACOSDiscoveryTaskDetail(model)
|
2446
2394
|
result = rsp.to_json_string()
|
2447
2395
|
try:
|
2448
2396
|
json_obj = json.loads(result)
|
@@ -2461,7 +2409,7 @@ def doDescribeDSPAESDataAssetByComplianceId(args, parsed_globals):
|
|
2461
2409
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2462
2410
|
|
2463
2411
|
|
2464
|
-
def
|
2412
|
+
def doDescribeDSPATaskResultDataSample(args, parsed_globals):
|
2465
2413
|
g_param = parse_global_arg(parsed_globals)
|
2466
2414
|
|
2467
2415
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2490,11 +2438,11 @@ def doDescribeDSPAComplianceGroups(args, parsed_globals):
|
|
2490
2438
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
2491
2439
|
client._sdkVersion += ("_CLI_" + __version__)
|
2492
2440
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2493
|
-
model = models.
|
2441
|
+
model = models.DescribeDSPATaskResultDataSampleRequest()
|
2494
2442
|
model.from_json_string(json.dumps(args))
|
2495
2443
|
start_time = time.time()
|
2496
2444
|
while True:
|
2497
|
-
rsp = client.
|
2445
|
+
rsp = client.DescribeDSPATaskResultDataSample(model)
|
2498
2446
|
result = rsp.to_json_string()
|
2499
2447
|
try:
|
2500
2448
|
json_obj = json.loads(result)
|
@@ -2513,7 +2461,7 @@ def doDescribeDSPAComplianceGroups(args, parsed_globals):
|
|
2513
2461
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2514
2462
|
|
2515
2463
|
|
2516
|
-
def
|
2464
|
+
def doDeleteDSPACOSDiscoveryTask(args, parsed_globals):
|
2517
2465
|
g_param = parse_global_arg(parsed_globals)
|
2518
2466
|
|
2519
2467
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2542,11 +2490,11 @@ def doModifyLevelName(args, parsed_globals):
|
|
2542
2490
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
2543
2491
|
client._sdkVersion += ("_CLI_" + __version__)
|
2544
2492
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2545
|
-
model = models.
|
2493
|
+
model = models.DeleteDSPACOSDiscoveryTaskRequest()
|
2546
2494
|
model.from_json_string(json.dumps(args))
|
2547
2495
|
start_time = time.time()
|
2548
2496
|
while True:
|
2549
|
-
rsp = client.
|
2497
|
+
rsp = client.DeleteDSPACOSDiscoveryTask(model)
|
2550
2498
|
result = rsp.to_json_string()
|
2551
2499
|
try:
|
2552
2500
|
json_obj = json.loads(result)
|
@@ -2565,7 +2513,7 @@ def doModifyLevelName(args, parsed_globals):
|
|
2565
2513
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2566
2514
|
|
2567
2515
|
|
2568
|
-
def
|
2516
|
+
def doDescribeMongoAssetSensitiveDistribution(args, parsed_globals):
|
2569
2517
|
g_param = parse_global_arg(parsed_globals)
|
2570
2518
|
|
2571
2519
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2594,11 +2542,11 @@ def doDescribeDSPACOSDiscoveryTaskDetail(args, parsed_globals):
|
|
2594
2542
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
2595
2543
|
client._sdkVersion += ("_CLI_" + __version__)
|
2596
2544
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2597
|
-
model = models.
|
2545
|
+
model = models.DescribeMongoAssetSensitiveDistributionRequest()
|
2598
2546
|
model.from_json_string(json.dumps(args))
|
2599
2547
|
start_time = time.time()
|
2600
2548
|
while True:
|
2601
|
-
rsp = client.
|
2549
|
+
rsp = client.DescribeMongoAssetSensitiveDistribution(model)
|
2602
2550
|
result = rsp.to_json_string()
|
2603
2551
|
try:
|
2604
2552
|
json_obj = json.loads(result)
|
@@ -2617,7 +2565,7 @@ def doDescribeDSPACOSDiscoveryTaskDetail(args, parsed_globals):
|
|
2617
2565
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2618
2566
|
|
2619
2567
|
|
2620
|
-
def
|
2568
|
+
def doCreateDSPACategoryRelation(args, parsed_globals):
|
2621
2569
|
g_param = parse_global_arg(parsed_globals)
|
2622
2570
|
|
2623
2571
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2646,11 +2594,11 @@ def doDescribeDSPATaskResultDataSample(args, parsed_globals):
|
|
2646
2594
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
2647
2595
|
client._sdkVersion += ("_CLI_" + __version__)
|
2648
2596
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2649
|
-
model = models.
|
2597
|
+
model = models.CreateDSPACategoryRelationRequest()
|
2650
2598
|
model.from_json_string(json.dumps(args))
|
2651
2599
|
start_time = time.time()
|
2652
2600
|
while True:
|
2653
|
-
rsp = client.
|
2601
|
+
rsp = client.CreateDSPACategoryRelation(model)
|
2654
2602
|
result = rsp.to_json_string()
|
2655
2603
|
try:
|
2656
2604
|
json_obj = json.loads(result)
|
@@ -2669,7 +2617,7 @@ def doDescribeDSPATaskResultDataSample(args, parsed_globals):
|
|
2669
2617
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2670
2618
|
|
2671
2619
|
|
2672
|
-
def
|
2620
|
+
def doDescribeSensitiveCOSDataDistribution(args, parsed_globals):
|
2673
2621
|
g_param = parse_global_arg(parsed_globals)
|
2674
2622
|
|
2675
2623
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2698,11 +2646,11 @@ def doDeleteDSPACOSDiscoveryTask(args, parsed_globals):
|
|
2698
2646
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
2699
2647
|
client._sdkVersion += ("_CLI_" + __version__)
|
2700
2648
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2701
|
-
model = models.
|
2649
|
+
model = models.DescribeSensitiveCOSDataDistributionRequest()
|
2702
2650
|
model.from_json_string(json.dumps(args))
|
2703
2651
|
start_time = time.time()
|
2704
2652
|
while True:
|
2705
|
-
rsp = client.
|
2653
|
+
rsp = client.DescribeSensitiveCOSDataDistribution(model)
|
2706
2654
|
result = rsp.to_json_string()
|
2707
2655
|
try:
|
2708
2656
|
json_obj = json.loads(result)
|
@@ -2721,7 +2669,7 @@ def doDeleteDSPACOSDiscoveryTask(args, parsed_globals):
|
|
2721
2669
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2722
2670
|
|
2723
2671
|
|
2724
|
-
def
|
2672
|
+
def doDescribeDSPAAssessmentRiskDatasourceTop5(args, parsed_globals):
|
2725
2673
|
g_param = parse_global_arg(parsed_globals)
|
2726
2674
|
|
2727
2675
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2750,11 +2698,11 @@ def doDescribeMongoAssetSensitiveDistribution(args, parsed_globals):
|
|
2750
2698
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
2751
2699
|
client._sdkVersion += ("_CLI_" + __version__)
|
2752
2700
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2753
|
-
model = models.
|
2701
|
+
model = models.DescribeDSPAAssessmentRiskDatasourceTop5Request()
|
2754
2702
|
model.from_json_string(json.dumps(args))
|
2755
2703
|
start_time = time.time()
|
2756
2704
|
while True:
|
2757
|
-
rsp = client.
|
2705
|
+
rsp = client.DescribeDSPAAssessmentRiskDatasourceTop5(model)
|
2758
2706
|
result = rsp.to_json_string()
|
2759
2707
|
try:
|
2760
2708
|
json_obj = json.loads(result)
|
@@ -2773,7 +2721,7 @@ def doDescribeMongoAssetSensitiveDistribution(args, parsed_globals):
|
|
2773
2721
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2774
2722
|
|
2775
2723
|
|
2776
|
-
def
|
2724
|
+
def doDescribeCOSAssetSensitiveDistribution(args, parsed_globals):
|
2777
2725
|
g_param = parse_global_arg(parsed_globals)
|
2778
2726
|
|
2779
2727
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2802,11 +2750,11 @@ def doModifyLevelInfo(args, parsed_globals):
|
|
2802
2750
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
2803
2751
|
client._sdkVersion += ("_CLI_" + __version__)
|
2804
2752
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2805
|
-
model = models.
|
2753
|
+
model = models.DescribeCOSAssetSensitiveDistributionRequest()
|
2806
2754
|
model.from_json_string(json.dumps(args))
|
2807
2755
|
start_time = time.time()
|
2808
2756
|
while True:
|
2809
|
-
rsp = client.
|
2757
|
+
rsp = client.DescribeCOSAssetSensitiveDistribution(model)
|
2810
2758
|
result = rsp.to_json_string()
|
2811
2759
|
try:
|
2812
2760
|
json_obj = json.loads(result)
|
@@ -2825,7 +2773,7 @@ def doModifyLevelInfo(args, parsed_globals):
|
|
2825
2773
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2826
2774
|
|
2827
2775
|
|
2828
|
-
def
|
2776
|
+
def doDescribeReportTasks(args, parsed_globals):
|
2829
2777
|
g_param = parse_global_arg(parsed_globals)
|
2830
2778
|
|
2831
2779
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2854,11 +2802,11 @@ def doCreateDSPACategoryRelation(args, parsed_globals):
|
|
2854
2802
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
2855
2803
|
client._sdkVersion += ("_CLI_" + __version__)
|
2856
2804
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2857
|
-
model = models.
|
2805
|
+
model = models.DescribeReportTasksRequest()
|
2858
2806
|
model.from_json_string(json.dumps(args))
|
2859
2807
|
start_time = time.time()
|
2860
2808
|
while True:
|
2861
|
-
rsp = client.
|
2809
|
+
rsp = client.DescribeReportTasks(model)
|
2862
2810
|
result = rsp.to_json_string()
|
2863
2811
|
try:
|
2864
2812
|
json_obj = json.loads(result)
|
@@ -2877,7 +2825,7 @@ def doCreateDSPACategoryRelation(args, parsed_globals):
|
|
2877
2825
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2878
2826
|
|
2879
2827
|
|
2880
|
-
def
|
2828
|
+
def doDescribeDSPACOSDiscoveryTaskFiles(args, parsed_globals):
|
2881
2829
|
g_param = parse_global_arg(parsed_globals)
|
2882
2830
|
|
2883
2831
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2906,11 +2854,11 @@ def doDescribeSensitiveCOSDataDistribution(args, parsed_globals):
|
|
2906
2854
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
2907
2855
|
client._sdkVersion += ("_CLI_" + __version__)
|
2908
2856
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2909
|
-
model = models.
|
2857
|
+
model = models.DescribeDSPACOSDiscoveryTaskFilesRequest()
|
2910
2858
|
model.from_json_string(json.dumps(args))
|
2911
2859
|
start_time = time.time()
|
2912
2860
|
while True:
|
2913
|
-
rsp = client.
|
2861
|
+
rsp = client.DescribeDSPACOSDiscoveryTaskFiles(model)
|
2914
2862
|
result = rsp.to_json_string()
|
2915
2863
|
try:
|
2916
2864
|
json_obj = json.loads(result)
|
@@ -2929,7 +2877,7 @@ def doDescribeSensitiveCOSDataDistribution(args, parsed_globals):
|
|
2929
2877
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2930
2878
|
|
2931
2879
|
|
2932
|
-
def
|
2880
|
+
def doDescribeDSPAAssessmentTemplates(args, parsed_globals):
|
2933
2881
|
g_param = parse_global_arg(parsed_globals)
|
2934
2882
|
|
2935
2883
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2958,11 +2906,11 @@ def doDescribeDSPAAssessmentRiskDatasourceTop5(args, parsed_globals):
|
|
2958
2906
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
2959
2907
|
client._sdkVersion += ("_CLI_" + __version__)
|
2960
2908
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2961
|
-
model = models.
|
2909
|
+
model = models.DescribeDSPAAssessmentTemplatesRequest()
|
2962
2910
|
model.from_json_string(json.dumps(args))
|
2963
2911
|
start_time = time.time()
|
2964
2912
|
while True:
|
2965
|
-
rsp = client.
|
2913
|
+
rsp = client.DescribeDSPAAssessmentTemplates(model)
|
2966
2914
|
result = rsp.to_json_string()
|
2967
2915
|
try:
|
2968
2916
|
json_obj = json.loads(result)
|
@@ -2981,7 +2929,7 @@ def doDescribeDSPAAssessmentRiskDatasourceTop5(args, parsed_globals):
|
|
2981
2929
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2982
2930
|
|
2983
2931
|
|
2984
|
-
def
|
2932
|
+
def doEnableDSPADiscoveryRule(args, parsed_globals):
|
2985
2933
|
g_param = parse_global_arg(parsed_globals)
|
2986
2934
|
|
2987
2935
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3010,11 +2958,11 @@ def doDescribeCOSAssetSensitiveDistribution(args, parsed_globals):
|
|
3010
2958
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3011
2959
|
client._sdkVersion += ("_CLI_" + __version__)
|
3012
2960
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3013
|
-
model = models.
|
2961
|
+
model = models.EnableDSPADiscoveryRuleRequest()
|
3014
2962
|
model.from_json_string(json.dumps(args))
|
3015
2963
|
start_time = time.time()
|
3016
2964
|
while True:
|
3017
|
-
rsp = client.
|
2965
|
+
rsp = client.EnableDSPADiscoveryRule(model)
|
3018
2966
|
result = rsp.to_json_string()
|
3019
2967
|
try:
|
3020
2968
|
json_obj = json.loads(result)
|
@@ -3033,7 +2981,7 @@ def doDescribeCOSAssetSensitiveDistribution(args, parsed_globals):
|
|
3033
2981
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3034
2982
|
|
3035
2983
|
|
3036
|
-
def
|
2984
|
+
def doCreateIdentifyRuleAnotherName(args, parsed_globals):
|
3037
2985
|
g_param = parse_global_arg(parsed_globals)
|
3038
2986
|
|
3039
2987
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3062,11 +3010,11 @@ def doDescribeReportTasks(args, parsed_globals):
|
|
3062
3010
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3063
3011
|
client._sdkVersion += ("_CLI_" + __version__)
|
3064
3012
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3065
|
-
model = models.
|
3013
|
+
model = models.CreateIdentifyRuleAnotherNameRequest()
|
3066
3014
|
model.from_json_string(json.dumps(args))
|
3067
3015
|
start_time = time.time()
|
3068
3016
|
while True:
|
3069
|
-
rsp = client.
|
3017
|
+
rsp = client.CreateIdentifyRuleAnotherName(model)
|
3070
3018
|
result = rsp.to_json_string()
|
3071
3019
|
try:
|
3072
3020
|
json_obj = json.loads(result)
|
@@ -3085,7 +3033,7 @@ def doDescribeReportTasks(args, parsed_globals):
|
|
3085
3033
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3086
3034
|
|
3087
3035
|
|
3088
|
-
def
|
3036
|
+
def doDecribeSuggestRiskLevelMatrix(args, parsed_globals):
|
3089
3037
|
g_param = parse_global_arg(parsed_globals)
|
3090
3038
|
|
3091
3039
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3114,11 +3062,11 @@ def doDescribeDSPACOSDiscoveryTaskFiles(args, parsed_globals):
|
|
3114
3062
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3115
3063
|
client._sdkVersion += ("_CLI_" + __version__)
|
3116
3064
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3117
|
-
model = models.
|
3065
|
+
model = models.DecribeSuggestRiskLevelMatrixRequest()
|
3118
3066
|
model.from_json_string(json.dumps(args))
|
3119
3067
|
start_time = time.time()
|
3120
3068
|
while True:
|
3121
|
-
rsp = client.
|
3069
|
+
rsp = client.DecribeSuggestRiskLevelMatrix(model)
|
3122
3070
|
result = rsp.to_json_string()
|
3123
3071
|
try:
|
3124
3072
|
json_obj = json.loads(result)
|
@@ -3137,7 +3085,7 @@ def doDescribeDSPACOSDiscoveryTaskFiles(args, parsed_globals):
|
|
3137
3085
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3138
3086
|
|
3139
3087
|
|
3140
|
-
def
|
3088
|
+
def doDescribeDSPAAssessmentPendingRiskOverview(args, parsed_globals):
|
3141
3089
|
g_param = parse_global_arg(parsed_globals)
|
3142
3090
|
|
3143
3091
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3166,11 +3114,11 @@ def doDescribeDSPAAssessmentTemplates(args, parsed_globals):
|
|
3166
3114
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3167
3115
|
client._sdkVersion += ("_CLI_" + __version__)
|
3168
3116
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3169
|
-
model = models.
|
3117
|
+
model = models.DescribeDSPAAssessmentPendingRiskOverviewRequest()
|
3170
3118
|
model.from_json_string(json.dumps(args))
|
3171
3119
|
start_time = time.time()
|
3172
3120
|
while True:
|
3173
|
-
rsp = client.
|
3121
|
+
rsp = client.DescribeDSPAAssessmentPendingRiskOverview(model)
|
3174
3122
|
result = rsp.to_json_string()
|
3175
3123
|
try:
|
3176
3124
|
json_obj = json.loads(result)
|
@@ -3189,7 +3137,7 @@ def doDescribeDSPAAssessmentTemplates(args, parsed_globals):
|
|
3189
3137
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3190
3138
|
|
3191
3139
|
|
3192
|
-
def
|
3140
|
+
def doModifyDSPAESTaskResult(args, parsed_globals):
|
3193
3141
|
g_param = parse_global_arg(parsed_globals)
|
3194
3142
|
|
3195
3143
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3218,11 +3166,11 @@ def doModifyDSPAAssessmentRiskLatest(args, parsed_globals):
|
|
3218
3166
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3219
3167
|
client._sdkVersion += ("_CLI_" + __version__)
|
3220
3168
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3221
|
-
model = models.
|
3169
|
+
model = models.ModifyDSPAESTaskResultRequest()
|
3222
3170
|
model.from_json_string(json.dumps(args))
|
3223
3171
|
start_time = time.time()
|
3224
3172
|
while True:
|
3225
|
-
rsp = client.
|
3173
|
+
rsp = client.ModifyDSPAESTaskResult(model)
|
3226
3174
|
result = rsp.to_json_string()
|
3227
3175
|
try:
|
3228
3176
|
json_obj = json.loads(result)
|
@@ -3241,7 +3189,7 @@ def doModifyDSPAAssessmentRiskLatest(args, parsed_globals):
|
|
3241
3189
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3242
3190
|
|
3243
3191
|
|
3244
|
-
def
|
3192
|
+
def doDescribeDSPARDBDataAssetDetail(args, parsed_globals):
|
3245
3193
|
g_param = parse_global_arg(parsed_globals)
|
3246
3194
|
|
3247
3195
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3270,11 +3218,11 @@ def doEnableDSPADiscoveryRule(args, parsed_globals):
|
|
3270
3218
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3271
3219
|
client._sdkVersion += ("_CLI_" + __version__)
|
3272
3220
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3273
|
-
model = models.
|
3221
|
+
model = models.DescribeDSPARDBDataAssetDetailRequest()
|
3274
3222
|
model.from_json_string(json.dumps(args))
|
3275
3223
|
start_time = time.time()
|
3276
3224
|
while True:
|
3277
|
-
rsp = client.
|
3225
|
+
rsp = client.DescribeDSPARDBDataAssetDetail(model)
|
3278
3226
|
result = rsp.to_json_string()
|
3279
3227
|
try:
|
3280
3228
|
json_obj = json.loads(result)
|
@@ -3293,7 +3241,7 @@ def doEnableDSPADiscoveryRule(args, parsed_globals):
|
|
3293
3241
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3294
3242
|
|
3295
3243
|
|
3296
|
-
def
|
3244
|
+
def doDescribeDSPAAssessmentRiskItemTop5(args, parsed_globals):
|
3297
3245
|
g_param = parse_global_arg(parsed_globals)
|
3298
3246
|
|
3299
3247
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3322,11 +3270,11 @@ def doCreateIdentifyRuleAnotherName(args, parsed_globals):
|
|
3322
3270
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3323
3271
|
client._sdkVersion += ("_CLI_" + __version__)
|
3324
3272
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3325
|
-
model = models.
|
3273
|
+
model = models.DescribeDSPAAssessmentRiskItemTop5Request()
|
3326
3274
|
model.from_json_string(json.dumps(args))
|
3327
3275
|
start_time = time.time()
|
3328
3276
|
while True:
|
3329
|
-
rsp = client.
|
3277
|
+
rsp = client.DescribeDSPAAssessmentRiskItemTop5(model)
|
3330
3278
|
result = rsp.to_json_string()
|
3331
3279
|
try:
|
3332
3280
|
json_obj = json.loads(result)
|
@@ -3345,7 +3293,7 @@ def doCreateIdentifyRuleAnotherName(args, parsed_globals):
|
|
3345
3293
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3346
3294
|
|
3347
3295
|
|
3348
|
-
def
|
3296
|
+
def doQueryResourceDbBindStatus(args, parsed_globals):
|
3349
3297
|
g_param = parse_global_arg(parsed_globals)
|
3350
3298
|
|
3351
3299
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3374,11 +3322,11 @@ def doDecribeSuggestRiskLevelMatrix(args, parsed_globals):
|
|
3374
3322
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3375
3323
|
client._sdkVersion += ("_CLI_" + __version__)
|
3376
3324
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3377
|
-
model = models.
|
3325
|
+
model = models.QueryResourceDbBindStatusRequest()
|
3378
3326
|
model.from_json_string(json.dumps(args))
|
3379
3327
|
start_time = time.time()
|
3380
3328
|
while True:
|
3381
|
-
rsp = client.
|
3329
|
+
rsp = client.QueryResourceDbBindStatus(model)
|
3382
3330
|
result = rsp.to_json_string()
|
3383
3331
|
try:
|
3384
3332
|
json_obj = json.loads(result)
|
@@ -3397,7 +3345,7 @@ def doDecribeSuggestRiskLevelMatrix(args, parsed_globals):
|
|
3397
3345
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3398
3346
|
|
3399
3347
|
|
3400
|
-
def
|
3348
|
+
def doDescribeDSPADiscoveryServiceStatus(args, parsed_globals):
|
3401
3349
|
g_param = parse_global_arg(parsed_globals)
|
3402
3350
|
|
3403
3351
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3426,11 +3374,11 @@ def doDescribeDSPAAssessmentPendingRiskOverview(args, parsed_globals):
|
|
3426
3374
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3427
3375
|
client._sdkVersion += ("_CLI_" + __version__)
|
3428
3376
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3429
|
-
model = models.
|
3377
|
+
model = models.DescribeDSPADiscoveryServiceStatusRequest()
|
3430
3378
|
model.from_json_string(json.dumps(args))
|
3431
3379
|
start_time = time.time()
|
3432
3380
|
while True:
|
3433
|
-
rsp = client.
|
3381
|
+
rsp = client.DescribeDSPADiscoveryServiceStatus(model)
|
3434
3382
|
result = rsp.to_json_string()
|
3435
3383
|
try:
|
3436
3384
|
json_obj = json.loads(result)
|
@@ -3449,7 +3397,7 @@ def doDescribeDSPAAssessmentPendingRiskOverview(args, parsed_globals):
|
|
3449
3397
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3450
3398
|
|
3451
3399
|
|
3452
|
-
def
|
3400
|
+
def doEnableTrialVersion(args, parsed_globals):
|
3453
3401
|
g_param = parse_global_arg(parsed_globals)
|
3454
3402
|
|
3455
3403
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3478,11 +3426,11 @@ def doModifyDSPAESTaskResult(args, parsed_globals):
|
|
3478
3426
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3479
3427
|
client._sdkVersion += ("_CLI_" + __version__)
|
3480
3428
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3481
|
-
model = models.
|
3429
|
+
model = models.EnableTrialVersionRequest()
|
3482
3430
|
model.from_json_string(json.dumps(args))
|
3483
3431
|
start_time = time.time()
|
3484
3432
|
while True:
|
3485
|
-
rsp = client.
|
3433
|
+
rsp = client.EnableTrialVersion(model)
|
3486
3434
|
result = rsp.to_json_string()
|
3487
3435
|
try:
|
3488
3436
|
json_obj = json.loads(result)
|
@@ -3501,7 +3449,7 @@ def doModifyDSPAESTaskResult(args, parsed_globals):
|
|
3501
3449
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3502
3450
|
|
3503
3451
|
|
3504
|
-
def
|
3452
|
+
def doModifyDSPATaskResult(args, parsed_globals):
|
3505
3453
|
g_param = parse_global_arg(parsed_globals)
|
3506
3454
|
|
3507
3455
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3530,11 +3478,11 @@ def doDescribeDSPARDBDataAssetDetail(args, parsed_globals):
|
|
3530
3478
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3531
3479
|
client._sdkVersion += ("_CLI_" + __version__)
|
3532
3480
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3533
|
-
model = models.
|
3481
|
+
model = models.ModifyDSPATaskResultRequest()
|
3534
3482
|
model.from_json_string(json.dumps(args))
|
3535
3483
|
start_time = time.time()
|
3536
3484
|
while True:
|
3537
|
-
rsp = client.
|
3485
|
+
rsp = client.ModifyDSPATaskResult(model)
|
3538
3486
|
result = rsp.to_json_string()
|
3539
3487
|
try:
|
3540
3488
|
json_obj = json.loads(result)
|
@@ -3553,7 +3501,7 @@ def doDescribeDSPARDBDataAssetDetail(args, parsed_globals):
|
|
3553
3501
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3554
3502
|
|
3555
3503
|
|
3556
|
-
def
|
3504
|
+
def doCreateDSPACategory(args, parsed_globals):
|
3557
3505
|
g_param = parse_global_arg(parsed_globals)
|
3558
3506
|
|
3559
3507
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3582,11 +3530,11 @@ def doDescribeClassificationInfo(args, parsed_globals):
|
|
3582
3530
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3583
3531
|
client._sdkVersion += ("_CLI_" + __version__)
|
3584
3532
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3585
|
-
model = models.
|
3533
|
+
model = models.CreateDSPACategoryRequest()
|
3586
3534
|
model.from_json_string(json.dumps(args))
|
3587
3535
|
start_time = time.time()
|
3588
3536
|
while True:
|
3589
|
-
rsp = client.
|
3537
|
+
rsp = client.CreateDSPACategory(model)
|
3590
3538
|
result = rsp.to_json_string()
|
3591
3539
|
try:
|
3592
3540
|
json_obj = json.loads(result)
|
@@ -3605,7 +3553,7 @@ def doDescribeClassificationInfo(args, parsed_globals):
|
|
3605
3553
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3606
3554
|
|
3607
3555
|
|
3608
|
-
def
|
3556
|
+
def doCreateDSPACOSDiscoveryTask(args, parsed_globals):
|
3609
3557
|
g_param = parse_global_arg(parsed_globals)
|
3610
3558
|
|
3611
3559
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3634,11 +3582,11 @@ def doDescribeDSPAAssessmentRiskItemTop5(args, parsed_globals):
|
|
3634
3582
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3635
3583
|
client._sdkVersion += ("_CLI_" + __version__)
|
3636
3584
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3637
|
-
model = models.
|
3585
|
+
model = models.CreateDSPACOSDiscoveryTaskRequest()
|
3638
3586
|
model.from_json_string(json.dumps(args))
|
3639
3587
|
start_time = time.time()
|
3640
3588
|
while True:
|
3641
|
-
rsp = client.
|
3589
|
+
rsp = client.CreateDSPACOSDiscoveryTask(model)
|
3642
3590
|
result = rsp.to_json_string()
|
3643
3591
|
try:
|
3644
3592
|
json_obj = json.loads(result)
|
@@ -3657,7 +3605,7 @@ def doDescribeDSPAAssessmentRiskItemTop5(args, parsed_globals):
|
|
3657
3605
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3658
3606
|
|
3659
3607
|
|
3660
|
-
def
|
3608
|
+
def doDescribeDSPACategoryRules(args, parsed_globals):
|
3661
3609
|
g_param = parse_global_arg(parsed_globals)
|
3662
3610
|
|
3663
3611
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3686,11 +3634,11 @@ def doQueryResourceDbBindStatus(args, parsed_globals):
|
|
3686
3634
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3687
3635
|
client._sdkVersion += ("_CLI_" + __version__)
|
3688
3636
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3689
|
-
model = models.
|
3637
|
+
model = models.DescribeDSPACategoryRulesRequest()
|
3690
3638
|
model.from_json_string(json.dumps(args))
|
3691
3639
|
start_time = time.time()
|
3692
3640
|
while True:
|
3693
|
-
rsp = client.
|
3641
|
+
rsp = client.DescribeDSPACategoryRules(model)
|
3694
3642
|
result = rsp.to_json_string()
|
3695
3643
|
try:
|
3696
3644
|
json_obj = json.loads(result)
|
@@ -3709,7 +3657,7 @@ def doQueryResourceDbBindStatus(args, parsed_globals):
|
|
3709
3657
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3710
3658
|
|
3711
3659
|
|
3712
|
-
def
|
3660
|
+
def doDescribeDSPAAssessmentRiskTemplateVulnerableList(args, parsed_globals):
|
3713
3661
|
g_param = parse_global_arg(parsed_globals)
|
3714
3662
|
|
3715
3663
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3738,11 +3686,11 @@ def doDescribeDSPADiscoveryServiceStatus(args, parsed_globals):
|
|
3738
3686
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3739
3687
|
client._sdkVersion += ("_CLI_" + __version__)
|
3740
3688
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3741
|
-
model = models.
|
3689
|
+
model = models.DescribeDSPAAssessmentRiskTemplateVulnerableListRequest()
|
3742
3690
|
model.from_json_string(json.dumps(args))
|
3743
3691
|
start_time = time.time()
|
3744
3692
|
while True:
|
3745
|
-
rsp = client.
|
3693
|
+
rsp = client.DescribeDSPAAssessmentRiskTemplateVulnerableList(model)
|
3746
3694
|
result = rsp.to_json_string()
|
3747
3695
|
try:
|
3748
3696
|
json_obj = json.loads(result)
|
@@ -3761,7 +3709,7 @@ def doDescribeDSPADiscoveryServiceStatus(args, parsed_globals):
|
|
3761
3709
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3762
3710
|
|
3763
3711
|
|
3764
|
-
def
|
3712
|
+
def doDescribeDSPADiscoveryTasks(args, parsed_globals):
|
3765
3713
|
g_param = parse_global_arg(parsed_globals)
|
3766
3714
|
|
3767
3715
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3790,11 +3738,11 @@ def doEnableTrialVersion(args, parsed_globals):
|
|
3790
3738
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3791
3739
|
client._sdkVersion += ("_CLI_" + __version__)
|
3792
3740
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3793
|
-
model = models.
|
3741
|
+
model = models.DescribeDSPADiscoveryTasksRequest()
|
3794
3742
|
model.from_json_string(json.dumps(args))
|
3795
3743
|
start_time = time.time()
|
3796
3744
|
while True:
|
3797
|
-
rsp = client.
|
3745
|
+
rsp = client.DescribeDSPADiscoveryTasks(model)
|
3798
3746
|
result = rsp.to_json_string()
|
3799
3747
|
try:
|
3800
3748
|
json_obj = json.loads(result)
|
@@ -3813,7 +3761,7 @@ def doEnableTrialVersion(args, parsed_globals):
|
|
3813
3761
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3814
3762
|
|
3815
3763
|
|
3816
|
-
def
|
3764
|
+
def doDeleteDSPAAssessmentTask(args, parsed_globals):
|
3817
3765
|
g_param = parse_global_arg(parsed_globals)
|
3818
3766
|
|
3819
3767
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3842,11 +3790,11 @@ def doModifyDSPATaskResult(args, parsed_globals):
|
|
3842
3790
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3843
3791
|
client._sdkVersion += ("_CLI_" + __version__)
|
3844
3792
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3845
|
-
model = models.
|
3793
|
+
model = models.DeleteDSPAAssessmentTaskRequest()
|
3846
3794
|
model.from_json_string(json.dumps(args))
|
3847
3795
|
start_time = time.time()
|
3848
3796
|
while True:
|
3849
|
-
rsp = client.
|
3797
|
+
rsp = client.DeleteDSPAAssessmentTask(model)
|
3850
3798
|
result = rsp.to_json_string()
|
3851
3799
|
try:
|
3852
3800
|
json_obj = json.loads(result)
|
@@ -3865,7 +3813,7 @@ def doModifyDSPATaskResult(args, parsed_globals):
|
|
3865
3813
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3866
3814
|
|
3867
3815
|
|
3868
|
-
def
|
3816
|
+
def doVerifyDSPADiscoveryRule(args, parsed_globals):
|
3869
3817
|
g_param = parse_global_arg(parsed_globals)
|
3870
3818
|
|
3871
3819
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3894,11 +3842,11 @@ def doCreateDSPACategory(args, parsed_globals):
|
|
3894
3842
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3895
3843
|
client._sdkVersion += ("_CLI_" + __version__)
|
3896
3844
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3897
|
-
model = models.
|
3845
|
+
model = models.VerifyDSPADiscoveryRuleRequest()
|
3898
3846
|
model.from_json_string(json.dumps(args))
|
3899
3847
|
start_time = time.time()
|
3900
3848
|
while True:
|
3901
|
-
rsp = client.
|
3849
|
+
rsp = client.VerifyDSPADiscoveryRule(model)
|
3902
3850
|
result = rsp.to_json_string()
|
3903
3851
|
try:
|
3904
3852
|
json_obj = json.loads(result)
|
@@ -3917,7 +3865,7 @@ def doCreateDSPACategory(args, parsed_globals):
|
|
3917
3865
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3918
3866
|
|
3919
3867
|
|
3920
|
-
def
|
3868
|
+
def doDescribeDSPACOSDiscoveryTasks(args, parsed_globals):
|
3921
3869
|
g_param = parse_global_arg(parsed_globals)
|
3922
3870
|
|
3923
3871
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3946,11 +3894,11 @@ def doCreateDSPACOSDiscoveryTask(args, parsed_globals):
|
|
3946
3894
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3947
3895
|
client._sdkVersion += ("_CLI_" + __version__)
|
3948
3896
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3949
|
-
model = models.
|
3897
|
+
model = models.DescribeDSPACOSDiscoveryTasksRequest()
|
3950
3898
|
model.from_json_string(json.dumps(args))
|
3951
3899
|
start_time = time.time()
|
3952
3900
|
while True:
|
3953
|
-
rsp = client.
|
3901
|
+
rsp = client.DescribeDSPACOSDiscoveryTasks(model)
|
3954
3902
|
result = rsp.to_json_string()
|
3955
3903
|
try:
|
3956
3904
|
json_obj = json.loads(result)
|
@@ -3969,735 +3917,7 @@ def doCreateDSPACOSDiscoveryTask(args, parsed_globals):
|
|
3969
3917
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3970
3918
|
|
3971
3919
|
|
3972
|
-
def
|
3973
|
-
g_param = parse_global_arg(parsed_globals)
|
3974
|
-
|
3975
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3976
|
-
cred = credential.CVMRoleCredential()
|
3977
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3978
|
-
cred = credential.STSAssumeRoleCredential(
|
3979
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3980
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3981
|
-
)
|
3982
|
-
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):
|
3983
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3984
|
-
else:
|
3985
|
-
cred = credential.Credential(
|
3986
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3987
|
-
)
|
3988
|
-
http_profile = HttpProfile(
|
3989
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3990
|
-
reqMethod="POST",
|
3991
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
3992
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3993
|
-
)
|
3994
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3995
|
-
if g_param[OptionsDefine.Language]:
|
3996
|
-
profile.language = g_param[OptionsDefine.Language]
|
3997
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3998
|
-
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
3999
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
4000
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4001
|
-
model = models.DescribeDSPACategoryRulesRequest()
|
4002
|
-
model.from_json_string(json.dumps(args))
|
4003
|
-
start_time = time.time()
|
4004
|
-
while True:
|
4005
|
-
rsp = client.DescribeDSPACategoryRules(model)
|
4006
|
-
result = rsp.to_json_string()
|
4007
|
-
try:
|
4008
|
-
json_obj = json.loads(result)
|
4009
|
-
except TypeError as e:
|
4010
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4011
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4012
|
-
break
|
4013
|
-
cur_time = time.time()
|
4014
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4015
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4016
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4017
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4018
|
-
else:
|
4019
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4020
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4021
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4022
|
-
|
4023
|
-
|
4024
|
-
def doDescribeDSPAAssessmentRiskTemplateVulnerableList(args, parsed_globals):
|
4025
|
-
g_param = parse_global_arg(parsed_globals)
|
4026
|
-
|
4027
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4028
|
-
cred = credential.CVMRoleCredential()
|
4029
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4030
|
-
cred = credential.STSAssumeRoleCredential(
|
4031
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4032
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4033
|
-
)
|
4034
|
-
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):
|
4035
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4036
|
-
else:
|
4037
|
-
cred = credential.Credential(
|
4038
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4039
|
-
)
|
4040
|
-
http_profile = HttpProfile(
|
4041
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4042
|
-
reqMethod="POST",
|
4043
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
4044
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4045
|
-
)
|
4046
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4047
|
-
if g_param[OptionsDefine.Language]:
|
4048
|
-
profile.language = g_param[OptionsDefine.Language]
|
4049
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4050
|
-
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4051
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
4052
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4053
|
-
model = models.DescribeDSPAAssessmentRiskTemplateVulnerableListRequest()
|
4054
|
-
model.from_json_string(json.dumps(args))
|
4055
|
-
start_time = time.time()
|
4056
|
-
while True:
|
4057
|
-
rsp = client.DescribeDSPAAssessmentRiskTemplateVulnerableList(model)
|
4058
|
-
result = rsp.to_json_string()
|
4059
|
-
try:
|
4060
|
-
json_obj = json.loads(result)
|
4061
|
-
except TypeError as e:
|
4062
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4063
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4064
|
-
break
|
4065
|
-
cur_time = time.time()
|
4066
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4067
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4068
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4069
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4070
|
-
else:
|
4071
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4072
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4073
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4074
|
-
|
4075
|
-
|
4076
|
-
def doDescribeDSPADiscoveryTasks(args, parsed_globals):
|
4077
|
-
g_param = parse_global_arg(parsed_globals)
|
4078
|
-
|
4079
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4080
|
-
cred = credential.CVMRoleCredential()
|
4081
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4082
|
-
cred = credential.STSAssumeRoleCredential(
|
4083
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4084
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4085
|
-
)
|
4086
|
-
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):
|
4087
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4088
|
-
else:
|
4089
|
-
cred = credential.Credential(
|
4090
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4091
|
-
)
|
4092
|
-
http_profile = HttpProfile(
|
4093
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4094
|
-
reqMethod="POST",
|
4095
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
4096
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4097
|
-
)
|
4098
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4099
|
-
if g_param[OptionsDefine.Language]:
|
4100
|
-
profile.language = g_param[OptionsDefine.Language]
|
4101
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4102
|
-
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4103
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
4104
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4105
|
-
model = models.DescribeDSPADiscoveryTasksRequest()
|
4106
|
-
model.from_json_string(json.dumps(args))
|
4107
|
-
start_time = time.time()
|
4108
|
-
while True:
|
4109
|
-
rsp = client.DescribeDSPADiscoveryTasks(model)
|
4110
|
-
result = rsp.to_json_string()
|
4111
|
-
try:
|
4112
|
-
json_obj = json.loads(result)
|
4113
|
-
except TypeError as e:
|
4114
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4115
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4116
|
-
break
|
4117
|
-
cur_time = time.time()
|
4118
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4119
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4120
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4121
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4122
|
-
else:
|
4123
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4124
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4125
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4126
|
-
|
4127
|
-
|
4128
|
-
def doDeleteDSPAAssessmentTask(args, parsed_globals):
|
4129
|
-
g_param = parse_global_arg(parsed_globals)
|
4130
|
-
|
4131
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4132
|
-
cred = credential.CVMRoleCredential()
|
4133
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4134
|
-
cred = credential.STSAssumeRoleCredential(
|
4135
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4136
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4137
|
-
)
|
4138
|
-
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):
|
4139
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4140
|
-
else:
|
4141
|
-
cred = credential.Credential(
|
4142
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4143
|
-
)
|
4144
|
-
http_profile = HttpProfile(
|
4145
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4146
|
-
reqMethod="POST",
|
4147
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
4148
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4149
|
-
)
|
4150
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4151
|
-
if g_param[OptionsDefine.Language]:
|
4152
|
-
profile.language = g_param[OptionsDefine.Language]
|
4153
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4154
|
-
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4155
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
4156
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4157
|
-
model = models.DeleteDSPAAssessmentTaskRequest()
|
4158
|
-
model.from_json_string(json.dumps(args))
|
4159
|
-
start_time = time.time()
|
4160
|
-
while True:
|
4161
|
-
rsp = client.DeleteDSPAAssessmentTask(model)
|
4162
|
-
result = rsp.to_json_string()
|
4163
|
-
try:
|
4164
|
-
json_obj = json.loads(result)
|
4165
|
-
except TypeError as e:
|
4166
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4167
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4168
|
-
break
|
4169
|
-
cur_time = time.time()
|
4170
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4171
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4172
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4173
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4174
|
-
else:
|
4175
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4176
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4177
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4178
|
-
|
4179
|
-
|
4180
|
-
def doVerifyDSPADiscoveryRule(args, parsed_globals):
|
4181
|
-
g_param = parse_global_arg(parsed_globals)
|
4182
|
-
|
4183
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4184
|
-
cred = credential.CVMRoleCredential()
|
4185
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4186
|
-
cred = credential.STSAssumeRoleCredential(
|
4187
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4188
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4189
|
-
)
|
4190
|
-
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):
|
4191
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4192
|
-
else:
|
4193
|
-
cred = credential.Credential(
|
4194
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4195
|
-
)
|
4196
|
-
http_profile = HttpProfile(
|
4197
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4198
|
-
reqMethod="POST",
|
4199
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
4200
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4201
|
-
)
|
4202
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4203
|
-
if g_param[OptionsDefine.Language]:
|
4204
|
-
profile.language = g_param[OptionsDefine.Language]
|
4205
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4206
|
-
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4207
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
4208
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4209
|
-
model = models.VerifyDSPADiscoveryRuleRequest()
|
4210
|
-
model.from_json_string(json.dumps(args))
|
4211
|
-
start_time = time.time()
|
4212
|
-
while True:
|
4213
|
-
rsp = client.VerifyDSPADiscoveryRule(model)
|
4214
|
-
result = rsp.to_json_string()
|
4215
|
-
try:
|
4216
|
-
json_obj = json.loads(result)
|
4217
|
-
except TypeError as e:
|
4218
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4219
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4220
|
-
break
|
4221
|
-
cur_time = time.time()
|
4222
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4223
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4224
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4225
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4226
|
-
else:
|
4227
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4228
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4229
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4230
|
-
|
4231
|
-
|
4232
|
-
def doDescribeDSPACOSDiscoveryTasks(args, parsed_globals):
|
4233
|
-
g_param = parse_global_arg(parsed_globals)
|
4234
|
-
|
4235
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4236
|
-
cred = credential.CVMRoleCredential()
|
4237
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4238
|
-
cred = credential.STSAssumeRoleCredential(
|
4239
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4240
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4241
|
-
)
|
4242
|
-
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):
|
4243
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4244
|
-
else:
|
4245
|
-
cred = credential.Credential(
|
4246
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4247
|
-
)
|
4248
|
-
http_profile = HttpProfile(
|
4249
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4250
|
-
reqMethod="POST",
|
4251
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
4252
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4253
|
-
)
|
4254
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4255
|
-
if g_param[OptionsDefine.Language]:
|
4256
|
-
profile.language = g_param[OptionsDefine.Language]
|
4257
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4258
|
-
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4259
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
4260
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4261
|
-
model = models.DescribeDSPACOSDiscoveryTasksRequest()
|
4262
|
-
model.from_json_string(json.dumps(args))
|
4263
|
-
start_time = time.time()
|
4264
|
-
while True:
|
4265
|
-
rsp = client.DescribeDSPACOSDiscoveryTasks(model)
|
4266
|
-
result = rsp.to_json_string()
|
4267
|
-
try:
|
4268
|
-
json_obj = json.loads(result)
|
4269
|
-
except TypeError as e:
|
4270
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4271
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4272
|
-
break
|
4273
|
-
cur_time = time.time()
|
4274
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4275
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4276
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4277
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4278
|
-
else:
|
4279
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4280
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4281
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4282
|
-
|
4283
|
-
|
4284
|
-
def doDescribeDSPACategoryTree(args, parsed_globals):
|
4285
|
-
g_param = parse_global_arg(parsed_globals)
|
4286
|
-
|
4287
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4288
|
-
cred = credential.CVMRoleCredential()
|
4289
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4290
|
-
cred = credential.STSAssumeRoleCredential(
|
4291
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4292
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4293
|
-
)
|
4294
|
-
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):
|
4295
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4296
|
-
else:
|
4297
|
-
cred = credential.Credential(
|
4298
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4299
|
-
)
|
4300
|
-
http_profile = HttpProfile(
|
4301
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4302
|
-
reqMethod="POST",
|
4303
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
4304
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4305
|
-
)
|
4306
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4307
|
-
if g_param[OptionsDefine.Language]:
|
4308
|
-
profile.language = g_param[OptionsDefine.Language]
|
4309
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4310
|
-
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4311
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
4312
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4313
|
-
model = models.DescribeDSPACategoryTreeRequest()
|
4314
|
-
model.from_json_string(json.dumps(args))
|
4315
|
-
start_time = time.time()
|
4316
|
-
while True:
|
4317
|
-
rsp = client.DescribeDSPACategoryTree(model)
|
4318
|
-
result = rsp.to_json_string()
|
4319
|
-
try:
|
4320
|
-
json_obj = json.loads(result)
|
4321
|
-
except TypeError as e:
|
4322
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4323
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4324
|
-
break
|
4325
|
-
cur_time = time.time()
|
4326
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4327
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4328
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4329
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4330
|
-
else:
|
4331
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4332
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4333
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4334
|
-
|
4335
|
-
|
4336
|
-
def doModifyMergeClassification(args, parsed_globals):
|
4337
|
-
g_param = parse_global_arg(parsed_globals)
|
4338
|
-
|
4339
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4340
|
-
cred = credential.CVMRoleCredential()
|
4341
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4342
|
-
cred = credential.STSAssumeRoleCredential(
|
4343
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4344
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4345
|
-
)
|
4346
|
-
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):
|
4347
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4348
|
-
else:
|
4349
|
-
cred = credential.Credential(
|
4350
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4351
|
-
)
|
4352
|
-
http_profile = HttpProfile(
|
4353
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4354
|
-
reqMethod="POST",
|
4355
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
4356
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4357
|
-
)
|
4358
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4359
|
-
if g_param[OptionsDefine.Language]:
|
4360
|
-
profile.language = g_param[OptionsDefine.Language]
|
4361
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4362
|
-
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4363
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
4364
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4365
|
-
model = models.ModifyMergeClassificationRequest()
|
4366
|
-
model.from_json_string(json.dumps(args))
|
4367
|
-
start_time = time.time()
|
4368
|
-
while True:
|
4369
|
-
rsp = client.ModifyMergeClassification(model)
|
4370
|
-
result = rsp.to_json_string()
|
4371
|
-
try:
|
4372
|
-
json_obj = json.loads(result)
|
4373
|
-
except TypeError as e:
|
4374
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4375
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4376
|
-
break
|
4377
|
-
cur_time = time.time()
|
4378
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4379
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4380
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4381
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4382
|
-
else:
|
4383
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4384
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4385
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4386
|
-
|
4387
|
-
|
4388
|
-
def doCreateOrCopyStandard(args, parsed_globals):
|
4389
|
-
g_param = parse_global_arg(parsed_globals)
|
4390
|
-
|
4391
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4392
|
-
cred = credential.CVMRoleCredential()
|
4393
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4394
|
-
cred = credential.STSAssumeRoleCredential(
|
4395
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4396
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4397
|
-
)
|
4398
|
-
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):
|
4399
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4400
|
-
else:
|
4401
|
-
cred = credential.Credential(
|
4402
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4403
|
-
)
|
4404
|
-
http_profile = HttpProfile(
|
4405
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4406
|
-
reqMethod="POST",
|
4407
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
4408
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4409
|
-
)
|
4410
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4411
|
-
if g_param[OptionsDefine.Language]:
|
4412
|
-
profile.language = g_param[OptionsDefine.Language]
|
4413
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4414
|
-
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4415
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
4416
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4417
|
-
model = models.CreateOrCopyStandardRequest()
|
4418
|
-
model.from_json_string(json.dumps(args))
|
4419
|
-
start_time = time.time()
|
4420
|
-
while True:
|
4421
|
-
rsp = client.CreateOrCopyStandard(model)
|
4422
|
-
result = rsp.to_json_string()
|
4423
|
-
try:
|
4424
|
-
json_obj = json.loads(result)
|
4425
|
-
except TypeError as e:
|
4426
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4427
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4428
|
-
break
|
4429
|
-
cur_time = time.time()
|
4430
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4431
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4432
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4433
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4434
|
-
else:
|
4435
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4436
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4437
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4438
|
-
|
4439
|
-
|
4440
|
-
def doDescribeAssetOverview(args, parsed_globals):
|
4441
|
-
g_param = parse_global_arg(parsed_globals)
|
4442
|
-
|
4443
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4444
|
-
cred = credential.CVMRoleCredential()
|
4445
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4446
|
-
cred = credential.STSAssumeRoleCredential(
|
4447
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4448
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4449
|
-
)
|
4450
|
-
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):
|
4451
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4452
|
-
else:
|
4453
|
-
cred = credential.Credential(
|
4454
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4455
|
-
)
|
4456
|
-
http_profile = HttpProfile(
|
4457
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4458
|
-
reqMethod="POST",
|
4459
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
4460
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4461
|
-
)
|
4462
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4463
|
-
if g_param[OptionsDefine.Language]:
|
4464
|
-
profile.language = g_param[OptionsDefine.Language]
|
4465
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4466
|
-
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4467
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
4468
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4469
|
-
model = models.DescribeAssetOverviewRequest()
|
4470
|
-
model.from_json_string(json.dumps(args))
|
4471
|
-
start_time = time.time()
|
4472
|
-
while True:
|
4473
|
-
rsp = client.DescribeAssetOverview(model)
|
4474
|
-
result = rsp.to_json_string()
|
4475
|
-
try:
|
4476
|
-
json_obj = json.loads(result)
|
4477
|
-
except TypeError as e:
|
4478
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4479
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4480
|
-
break
|
4481
|
-
cur_time = time.time()
|
4482
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4483
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4484
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4485
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4486
|
-
else:
|
4487
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4488
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4489
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4490
|
-
|
4491
|
-
|
4492
|
-
def doCreateDSPAAssessmentTask(args, parsed_globals):
|
4493
|
-
g_param = parse_global_arg(parsed_globals)
|
4494
|
-
|
4495
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4496
|
-
cred = credential.CVMRoleCredential()
|
4497
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4498
|
-
cred = credential.STSAssumeRoleCredential(
|
4499
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4500
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4501
|
-
)
|
4502
|
-
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):
|
4503
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4504
|
-
else:
|
4505
|
-
cred = credential.Credential(
|
4506
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4507
|
-
)
|
4508
|
-
http_profile = HttpProfile(
|
4509
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4510
|
-
reqMethod="POST",
|
4511
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
4512
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4513
|
-
)
|
4514
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4515
|
-
if g_param[OptionsDefine.Language]:
|
4516
|
-
profile.language = g_param[OptionsDefine.Language]
|
4517
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4518
|
-
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4519
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
4520
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4521
|
-
model = models.CreateDSPAAssessmentTaskRequest()
|
4522
|
-
model.from_json_string(json.dumps(args))
|
4523
|
-
start_time = time.time()
|
4524
|
-
while True:
|
4525
|
-
rsp = client.CreateDSPAAssessmentTask(model)
|
4526
|
-
result = rsp.to_json_string()
|
4527
|
-
try:
|
4528
|
-
json_obj = json.loads(result)
|
4529
|
-
except TypeError as e:
|
4530
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4531
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4532
|
-
break
|
4533
|
-
cur_time = time.time()
|
4534
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4535
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4536
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4537
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4538
|
-
else:
|
4539
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4540
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4541
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4542
|
-
|
4543
|
-
|
4544
|
-
def doVerifyDSPACOSRule(args, parsed_globals):
|
4545
|
-
g_param = parse_global_arg(parsed_globals)
|
4546
|
-
|
4547
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4548
|
-
cred = credential.CVMRoleCredential()
|
4549
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4550
|
-
cred = credential.STSAssumeRoleCredential(
|
4551
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4552
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4553
|
-
)
|
4554
|
-
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):
|
4555
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4556
|
-
else:
|
4557
|
-
cred = credential.Credential(
|
4558
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4559
|
-
)
|
4560
|
-
http_profile = HttpProfile(
|
4561
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4562
|
-
reqMethod="POST",
|
4563
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
4564
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4565
|
-
)
|
4566
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4567
|
-
if g_param[OptionsDefine.Language]:
|
4568
|
-
profile.language = g_param[OptionsDefine.Language]
|
4569
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4570
|
-
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4571
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
4572
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4573
|
-
model = models.VerifyDSPACOSRuleRequest()
|
4574
|
-
model.from_json_string(json.dumps(args))
|
4575
|
-
start_time = time.time()
|
4576
|
-
while True:
|
4577
|
-
rsp = client.VerifyDSPACOSRule(model)
|
4578
|
-
result = rsp.to_json_string()
|
4579
|
-
try:
|
4580
|
-
json_obj = json.loads(result)
|
4581
|
-
except TypeError as e:
|
4582
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4583
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4584
|
-
break
|
4585
|
-
cur_time = time.time()
|
4586
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4587
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4588
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4589
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4590
|
-
else:
|
4591
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4592
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4593
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4594
|
-
|
4595
|
-
|
4596
|
-
def doCreateDSPAAssessmentRiskTemplate(args, parsed_globals):
|
4597
|
-
g_param = parse_global_arg(parsed_globals)
|
4598
|
-
|
4599
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4600
|
-
cred = credential.CVMRoleCredential()
|
4601
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4602
|
-
cred = credential.STSAssumeRoleCredential(
|
4603
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4604
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4605
|
-
)
|
4606
|
-
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):
|
4607
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4608
|
-
else:
|
4609
|
-
cred = credential.Credential(
|
4610
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4611
|
-
)
|
4612
|
-
http_profile = HttpProfile(
|
4613
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4614
|
-
reqMethod="POST",
|
4615
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
4616
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4617
|
-
)
|
4618
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4619
|
-
if g_param[OptionsDefine.Language]:
|
4620
|
-
profile.language = g_param[OptionsDefine.Language]
|
4621
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4622
|
-
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4623
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
4624
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4625
|
-
model = models.CreateDSPAAssessmentRiskTemplateRequest()
|
4626
|
-
model.from_json_string(json.dumps(args))
|
4627
|
-
start_time = time.time()
|
4628
|
-
while True:
|
4629
|
-
rsp = client.CreateDSPAAssessmentRiskTemplate(model)
|
4630
|
-
result = rsp.to_json_string()
|
4631
|
-
try:
|
4632
|
-
json_obj = json.loads(result)
|
4633
|
-
except TypeError as e:
|
4634
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4635
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4636
|
-
break
|
4637
|
-
cur_time = time.time()
|
4638
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4639
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4640
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4641
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4642
|
-
else:
|
4643
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4644
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4645
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4646
|
-
|
4647
|
-
|
4648
|
-
def doDescribeDSPAAssessmentRiskOverview(args, parsed_globals):
|
4649
|
-
g_param = parse_global_arg(parsed_globals)
|
4650
|
-
|
4651
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4652
|
-
cred = credential.CVMRoleCredential()
|
4653
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4654
|
-
cred = credential.STSAssumeRoleCredential(
|
4655
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4656
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4657
|
-
)
|
4658
|
-
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):
|
4659
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4660
|
-
else:
|
4661
|
-
cred = credential.Credential(
|
4662
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4663
|
-
)
|
4664
|
-
http_profile = HttpProfile(
|
4665
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4666
|
-
reqMethod="POST",
|
4667
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
4668
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4669
|
-
)
|
4670
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4671
|
-
if g_param[OptionsDefine.Language]:
|
4672
|
-
profile.language = g_param[OptionsDefine.Language]
|
4673
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4674
|
-
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4675
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
4676
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4677
|
-
model = models.DescribeDSPAAssessmentRiskOverviewRequest()
|
4678
|
-
model.from_json_string(json.dumps(args))
|
4679
|
-
start_time = time.time()
|
4680
|
-
while True:
|
4681
|
-
rsp = client.DescribeDSPAAssessmentRiskOverview(model)
|
4682
|
-
result = rsp.to_json_string()
|
4683
|
-
try:
|
4684
|
-
json_obj = json.loads(result)
|
4685
|
-
except TypeError as e:
|
4686
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4687
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4688
|
-
break
|
4689
|
-
cur_time = time.time()
|
4690
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4691
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4692
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4693
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4694
|
-
else:
|
4695
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4696
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4697
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4698
|
-
|
4699
|
-
|
4700
|
-
def doDescribeDSPAESDataAssetDetail(args, parsed_globals):
|
3920
|
+
def doDescribeDSPACategoryTree(args, parsed_globals):
|
4701
3921
|
g_param = parse_global_arg(parsed_globals)
|
4702
3922
|
|
4703
3923
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4726,11 +3946,11 @@ def doDescribeDSPAESDataAssetDetail(args, parsed_globals):
|
|
4726
3946
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4727
3947
|
client._sdkVersion += ("_CLI_" + __version__)
|
4728
3948
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4729
|
-
model = models.
|
3949
|
+
model = models.DescribeDSPACategoryTreeRequest()
|
4730
3950
|
model.from_json_string(json.dumps(args))
|
4731
3951
|
start_time = time.time()
|
4732
3952
|
while True:
|
4733
|
-
rsp = client.
|
3953
|
+
rsp = client.DescribeDSPACategoryTree(model)
|
4734
3954
|
result = rsp.to_json_string()
|
4735
3955
|
try:
|
4736
3956
|
json_obj = json.loads(result)
|
@@ -4749,7 +3969,7 @@ def doDescribeDSPAESDataAssetDetail(args, parsed_globals):
|
|
4749
3969
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4750
3970
|
|
4751
3971
|
|
4752
|
-
def
|
3972
|
+
def doDescribeSensitiveRDBDataDistribution(args, parsed_globals):
|
4753
3973
|
g_param = parse_global_arg(parsed_globals)
|
4754
3974
|
|
4755
3975
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4778,11 +3998,11 @@ def doCreateDSPAComplianceGroup(args, parsed_globals):
|
|
4778
3998
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4779
3999
|
client._sdkVersion += ("_CLI_" + __version__)
|
4780
4000
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4781
|
-
model = models.
|
4001
|
+
model = models.DescribeSensitiveRDBDataDistributionRequest()
|
4782
4002
|
model.from_json_string(json.dumps(args))
|
4783
4003
|
start_time = time.time()
|
4784
4004
|
while True:
|
4785
|
-
rsp = client.
|
4005
|
+
rsp = client.DescribeSensitiveRDBDataDistribution(model)
|
4786
4006
|
result = rsp.to_json_string()
|
4787
4007
|
try:
|
4788
4008
|
json_obj = json.loads(result)
|
@@ -4801,7 +4021,7 @@ def doCreateDSPAComplianceGroup(args, parsed_globals):
|
|
4801
4021
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4802
4022
|
|
4803
4023
|
|
4804
|
-
def
|
4024
|
+
def doDescribeAssetOverview(args, parsed_globals):
|
4805
4025
|
g_param = parse_global_arg(parsed_globals)
|
4806
4026
|
|
4807
4027
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4830,11 +4050,11 @@ def doDescribeDSPADataSourceDbInfo(args, parsed_globals):
|
|
4830
4050
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4831
4051
|
client._sdkVersion += ("_CLI_" + __version__)
|
4832
4052
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4833
|
-
model = models.
|
4053
|
+
model = models.DescribeAssetOverviewRequest()
|
4834
4054
|
model.from_json_string(json.dumps(args))
|
4835
4055
|
start_time = time.time()
|
4836
4056
|
while True:
|
4837
|
-
rsp = client.
|
4057
|
+
rsp = client.DescribeAssetOverview(model)
|
4838
4058
|
result = rsp.to_json_string()
|
4839
4059
|
try:
|
4840
4060
|
json_obj = json.loads(result)
|
@@ -4853,7 +4073,7 @@ def doDescribeDSPADataSourceDbInfo(args, parsed_globals):
|
|
4853
4073
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4854
4074
|
|
4855
4075
|
|
4856
|
-
def
|
4076
|
+
def doCreateDSPAAssessmentTask(args, parsed_globals):
|
4857
4077
|
g_param = parse_global_arg(parsed_globals)
|
4858
4078
|
|
4859
4079
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4882,11 +4102,11 @@ def doCreateDSPAMetaResources(args, parsed_globals):
|
|
4882
4102
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4883
4103
|
client._sdkVersion += ("_CLI_" + __version__)
|
4884
4104
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4885
|
-
model = models.
|
4105
|
+
model = models.CreateDSPAAssessmentTaskRequest()
|
4886
4106
|
model.from_json_string(json.dumps(args))
|
4887
4107
|
start_time = time.time()
|
4888
4108
|
while True:
|
4889
|
-
rsp = client.
|
4109
|
+
rsp = client.CreateDSPAAssessmentTask(model)
|
4890
4110
|
result = rsp.to_json_string()
|
4891
4111
|
try:
|
4892
4112
|
json_obj = json.loads(result)
|
@@ -4905,7 +4125,7 @@ def doCreateDSPAMetaResources(args, parsed_globals):
|
|
4905
4125
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4906
4126
|
|
4907
4127
|
|
4908
|
-
def
|
4128
|
+
def doVerifyDSPACOSRule(args, parsed_globals):
|
4909
4129
|
g_param = parse_global_arg(parsed_globals)
|
4910
4130
|
|
4911
4131
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4934,11 +4154,11 @@ def doModifyClassificationRuleState(args, parsed_globals):
|
|
4934
4154
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4935
4155
|
client._sdkVersion += ("_CLI_" + __version__)
|
4936
4156
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4937
|
-
model = models.
|
4157
|
+
model = models.VerifyDSPACOSRuleRequest()
|
4938
4158
|
model.from_json_string(json.dumps(args))
|
4939
4159
|
start_time = time.time()
|
4940
4160
|
while True:
|
4941
|
-
rsp = client.
|
4161
|
+
rsp = client.VerifyDSPACOSRule(model)
|
4942
4162
|
result = rsp.to_json_string()
|
4943
4163
|
try:
|
4944
4164
|
json_obj = json.loads(result)
|
@@ -4957,7 +4177,7 @@ def doModifyClassificationRuleState(args, parsed_globals):
|
|
4957
4177
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4958
4178
|
|
4959
4179
|
|
4960
|
-
def
|
4180
|
+
def doCreateDSPAAssessmentRiskTemplate(args, parsed_globals):
|
4961
4181
|
g_param = parse_global_arg(parsed_globals)
|
4962
4182
|
|
4963
4183
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4986,11 +4206,11 @@ def doDescribeDSPAAssessmentHighRiskTop10Overview(args, parsed_globals):
|
|
4986
4206
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4987
4207
|
client._sdkVersion += ("_CLI_" + __version__)
|
4988
4208
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4989
|
-
model = models.
|
4209
|
+
model = models.CreateDSPAAssessmentRiskTemplateRequest()
|
4990
4210
|
model.from_json_string(json.dumps(args))
|
4991
4211
|
start_time = time.time()
|
4992
4212
|
while True:
|
4993
|
-
rsp = client.
|
4213
|
+
rsp = client.CreateDSPAAssessmentRiskTemplate(model)
|
4994
4214
|
result = rsp.to_json_string()
|
4995
4215
|
try:
|
4996
4216
|
json_obj = json.loads(result)
|
@@ -5009,7 +4229,7 @@ def doDescribeDSPAAssessmentHighRiskTop10Overview(args, parsed_globals):
|
|
5009
4229
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5010
4230
|
|
5011
4231
|
|
5012
|
-
def
|
4232
|
+
def doDescribeDSPAAssessmentRiskOverview(args, parsed_globals):
|
5013
4233
|
g_param = parse_global_arg(parsed_globals)
|
5014
4234
|
|
5015
4235
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5038,11 +4258,11 @@ def doDescribeDSPAAssessmentLatestRiskDetailInfo(args, parsed_globals):
|
|
5038
4258
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5039
4259
|
client._sdkVersion += ("_CLI_" + __version__)
|
5040
4260
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5041
|
-
model = models.
|
4261
|
+
model = models.DescribeDSPAAssessmentRiskOverviewRequest()
|
5042
4262
|
model.from_json_string(json.dumps(args))
|
5043
4263
|
start_time = time.time()
|
5044
4264
|
while True:
|
5045
|
-
rsp = client.
|
4265
|
+
rsp = client.DescribeDSPAAssessmentRiskOverview(model)
|
5046
4266
|
result = rsp.to_json_string()
|
5047
4267
|
try:
|
5048
4268
|
json_obj = json.loads(result)
|
@@ -5061,7 +4281,7 @@ def doDescribeDSPAAssessmentLatestRiskDetailInfo(args, parsed_globals):
|
|
5061
4281
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5062
4282
|
|
5063
4283
|
|
5064
|
-
def
|
4284
|
+
def doDescribeDSPAESDataAssetDetail(args, parsed_globals):
|
5065
4285
|
g_param = parse_global_arg(parsed_globals)
|
5066
4286
|
|
5067
4287
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5090,11 +4310,11 @@ def doDescribeDSPACategories(args, parsed_globals):
|
|
5090
4310
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5091
4311
|
client._sdkVersion += ("_CLI_" + __version__)
|
5092
4312
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5093
|
-
model = models.
|
4313
|
+
model = models.DescribeDSPAESDataAssetDetailRequest()
|
5094
4314
|
model.from_json_string(json.dumps(args))
|
5095
4315
|
start_time = time.time()
|
5096
4316
|
while True:
|
5097
|
-
rsp = client.
|
4317
|
+
rsp = client.DescribeDSPAESDataAssetDetail(model)
|
5098
4318
|
result = rsp.to_json_string()
|
5099
4319
|
try:
|
5100
4320
|
json_obj = json.loads(result)
|
@@ -5113,7 +4333,7 @@ def doDescribeDSPACategories(args, parsed_globals):
|
|
5113
4333
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5114
4334
|
|
5115
4335
|
|
5116
|
-
def
|
4336
|
+
def doCreateDSPAComplianceGroup(args, parsed_globals):
|
5117
4337
|
g_param = parse_global_arg(parsed_globals)
|
5118
4338
|
|
5119
4339
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5142,11 +4362,11 @@ def doDescribeRuleList(args, parsed_globals):
|
|
5142
4362
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5143
4363
|
client._sdkVersion += ("_CLI_" + __version__)
|
5144
4364
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5145
|
-
model = models.
|
4365
|
+
model = models.CreateDSPAComplianceGroupRequest()
|
5146
4366
|
model.from_json_string(json.dumps(args))
|
5147
4367
|
start_time = time.time()
|
5148
4368
|
while True:
|
5149
|
-
rsp = client.
|
4369
|
+
rsp = client.CreateDSPAComplianceGroup(model)
|
5150
4370
|
result = rsp.to_json_string()
|
5151
4371
|
try:
|
5152
4372
|
json_obj = json.loads(result)
|
@@ -5165,7 +4385,7 @@ def doDescribeRuleList(args, parsed_globals):
|
|
5165
4385
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5166
4386
|
|
5167
4387
|
|
5168
|
-
def
|
4388
|
+
def doDescribeDSPADataSourceDbInfo(args, parsed_globals):
|
5169
4389
|
g_param = parse_global_arg(parsed_globals)
|
5170
4390
|
|
5171
4391
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5194,11 +4414,11 @@ def doDescribeDSPAAssessmentTasks(args, parsed_globals):
|
|
5194
4414
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5195
4415
|
client._sdkVersion += ("_CLI_" + __version__)
|
5196
4416
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5197
|
-
model = models.
|
4417
|
+
model = models.DescribeDSPADataSourceDbInfoRequest()
|
5198
4418
|
model.from_json_string(json.dumps(args))
|
5199
4419
|
start_time = time.time()
|
5200
4420
|
while True:
|
5201
|
-
rsp = client.
|
4421
|
+
rsp = client.DescribeDSPADataSourceDbInfo(model)
|
5202
4422
|
result = rsp.to_json_string()
|
5203
4423
|
try:
|
5204
4424
|
json_obj = json.loads(result)
|
@@ -5217,7 +4437,7 @@ def doDescribeDSPAAssessmentTasks(args, parsed_globals):
|
|
5217
4437
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5218
4438
|
|
5219
4439
|
|
5220
|
-
def
|
4440
|
+
def doCreateDSPAMetaResources(args, parsed_globals):
|
5221
4441
|
g_param = parse_global_arg(parsed_globals)
|
5222
4442
|
|
5223
4443
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5246,11 +4466,11 @@ def doDescribeDSPADiscoveryTaskTables(args, parsed_globals):
|
|
5246
4466
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5247
4467
|
client._sdkVersion += ("_CLI_" + __version__)
|
5248
4468
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5249
|
-
model = models.
|
4469
|
+
model = models.CreateDSPAMetaResourcesRequest()
|
5250
4470
|
model.from_json_string(json.dumps(args))
|
5251
4471
|
start_time = time.time()
|
5252
4472
|
while True:
|
5253
|
-
rsp = client.
|
4473
|
+
rsp = client.CreateDSPAMetaResources(model)
|
5254
4474
|
result = rsp.to_json_string()
|
5255
4475
|
try:
|
5256
4476
|
json_obj = json.loads(result)
|
@@ -5269,7 +4489,7 @@ def doDescribeDSPADiscoveryTaskTables(args, parsed_globals):
|
|
5269
4489
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5270
4490
|
|
5271
4491
|
|
5272
|
-
def
|
4492
|
+
def doModifyDSPAAssessmentRiskLevel(args, parsed_globals):
|
5273
4493
|
g_param = parse_global_arg(parsed_globals)
|
5274
4494
|
|
5275
4495
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5298,11 +4518,11 @@ def doGetUserQuotaInfo(args, parsed_globals):
|
|
5298
4518
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5299
4519
|
client._sdkVersion += ("_CLI_" + __version__)
|
5300
4520
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5301
|
-
model = models.
|
4521
|
+
model = models.ModifyDSPAAssessmentRiskLevelRequest()
|
5302
4522
|
model.from_json_string(json.dumps(args))
|
5303
4523
|
start_time = time.time()
|
5304
4524
|
while True:
|
5305
|
-
rsp = client.
|
4525
|
+
rsp = client.ModifyDSPAAssessmentRiskLevel(model)
|
5306
4526
|
result = rsp.to_json_string()
|
5307
4527
|
try:
|
5308
4528
|
json_obj = json.loads(result)
|
@@ -5321,7 +4541,7 @@ def doGetUserQuotaInfo(args, parsed_globals):
|
|
5321
4541
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5322
4542
|
|
5323
4543
|
|
5324
|
-
def
|
4544
|
+
def doDescribeDSPAAssessmentHighRiskTop10Overview(args, parsed_globals):
|
5325
4545
|
g_param = parse_global_arg(parsed_globals)
|
5326
4546
|
|
5327
4547
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5350,11 +4570,11 @@ def doDescribeDSPAComplianceUpdateNotification(args, parsed_globals):
|
|
5350
4570
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5351
4571
|
client._sdkVersion += ("_CLI_" + __version__)
|
5352
4572
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5353
|
-
model = models.
|
4573
|
+
model = models.DescribeDSPAAssessmentHighRiskTop10OverviewRequest()
|
5354
4574
|
model.from_json_string(json.dumps(args))
|
5355
4575
|
start_time = time.time()
|
5356
4576
|
while True:
|
5357
|
-
rsp = client.
|
4577
|
+
rsp = client.DescribeDSPAAssessmentHighRiskTop10Overview(model)
|
5358
4578
|
result = rsp.to_json_string()
|
5359
4579
|
try:
|
5360
4580
|
json_obj = json.loads(result)
|
@@ -5373,7 +4593,7 @@ def doDescribeDSPAComplianceUpdateNotification(args, parsed_globals):
|
|
5373
4593
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5374
4594
|
|
5375
4595
|
|
5376
|
-
def
|
4596
|
+
def doDescribeDSPAAssessmentLatestRiskDetailInfo(args, parsed_globals):
|
5377
4597
|
g_param = parse_global_arg(parsed_globals)
|
5378
4598
|
|
5379
4599
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5402,11 +4622,11 @@ def doCreateDSPADbMetaResources(args, parsed_globals):
|
|
5402
4622
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5403
4623
|
client._sdkVersion += ("_CLI_" + __version__)
|
5404
4624
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5405
|
-
model = models.
|
4625
|
+
model = models.DescribeDSPAAssessmentLatestRiskDetailInfoRequest()
|
5406
4626
|
model.from_json_string(json.dumps(args))
|
5407
4627
|
start_time = time.time()
|
5408
4628
|
while True:
|
5409
|
-
rsp = client.
|
4629
|
+
rsp = client.DescribeDSPAAssessmentLatestRiskDetailInfo(model)
|
5410
4630
|
result = rsp.to_json_string()
|
5411
4631
|
try:
|
5412
4632
|
json_obj = json.loads(result)
|
@@ -5425,7 +4645,7 @@ def doCreateDSPADbMetaResources(args, parsed_globals):
|
|
5425
4645
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5426
4646
|
|
5427
4647
|
|
5428
|
-
def
|
4648
|
+
def doDescribeDSPACategories(args, parsed_globals):
|
5429
4649
|
g_param = parse_global_arg(parsed_globals)
|
5430
4650
|
|
5431
4651
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5454,11 +4674,11 @@ def doModifyDSPACOSTaskResult(args, parsed_globals):
|
|
5454
4674
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5455
4675
|
client._sdkVersion += ("_CLI_" + __version__)
|
5456
4676
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5457
|
-
model = models.
|
4677
|
+
model = models.DescribeDSPACategoriesRequest()
|
5458
4678
|
model.from_json_string(json.dumps(args))
|
5459
4679
|
start_time = time.time()
|
5460
4680
|
while True:
|
5461
|
-
rsp = client.
|
4681
|
+
rsp = client.DescribeDSPACategories(model)
|
5462
4682
|
result = rsp.to_json_string()
|
5463
4683
|
try:
|
5464
4684
|
json_obj = json.loads(result)
|
@@ -5477,7 +4697,7 @@ def doModifyDSPACOSTaskResult(args, parsed_globals):
|
|
5477
4697
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5478
4698
|
|
5479
4699
|
|
5480
|
-
def
|
4700
|
+
def doDescribeDSPAAssessmentTasks(args, parsed_globals):
|
5481
4701
|
g_param = parse_global_arg(parsed_globals)
|
5482
4702
|
|
5483
4703
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5506,11 +4726,11 @@ def doBindDSPAResourceDatabases(args, parsed_globals):
|
|
5506
4726
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5507
4727
|
client._sdkVersion += ("_CLI_" + __version__)
|
5508
4728
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5509
|
-
model = models.
|
4729
|
+
model = models.DescribeDSPAAssessmentTasksRequest()
|
5510
4730
|
model.from_json_string(json.dumps(args))
|
5511
4731
|
start_time = time.time()
|
5512
4732
|
while True:
|
5513
|
-
rsp = client.
|
4733
|
+
rsp = client.DescribeDSPAAssessmentTasks(model)
|
5514
4734
|
result = rsp.to_json_string()
|
5515
4735
|
try:
|
5516
4736
|
json_obj = json.loads(result)
|
@@ -5529,7 +4749,7 @@ def doBindDSPAResourceDatabases(args, parsed_globals):
|
|
5529
4749
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5530
4750
|
|
5531
4751
|
|
5532
|
-
def
|
4752
|
+
def doDescribeDSPADiscoveryTaskTables(args, parsed_globals):
|
5533
4753
|
g_param = parse_global_arg(parsed_globals)
|
5534
4754
|
|
5535
4755
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5558,11 +4778,11 @@ def doDescribeESAssetSensitiveDistribution(args, parsed_globals):
|
|
5558
4778
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5559
4779
|
client._sdkVersion += ("_CLI_" + __version__)
|
5560
4780
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5561
|
-
model = models.
|
4781
|
+
model = models.DescribeDSPADiscoveryTaskTablesRequest()
|
5562
4782
|
model.from_json_string(json.dumps(args))
|
5563
4783
|
start_time = time.time()
|
5564
4784
|
while True:
|
5565
|
-
rsp = client.
|
4785
|
+
rsp = client.DescribeDSPADiscoveryTaskTables(model)
|
5566
4786
|
result = rsp.to_json_string()
|
5567
4787
|
try:
|
5568
4788
|
json_obj = json.loads(result)
|
@@ -5581,7 +4801,7 @@ def doDescribeESAssetSensitiveDistribution(args, parsed_globals):
|
|
5581
4801
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5582
4802
|
|
5583
4803
|
|
5584
|
-
def
|
4804
|
+
def doGetUserQuotaInfo(args, parsed_globals):
|
5585
4805
|
g_param = parse_global_arg(parsed_globals)
|
5586
4806
|
|
5587
4807
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5610,11 +4830,11 @@ def doAuthorizeDSPAMetaResources(args, parsed_globals):
|
|
5610
4830
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5611
4831
|
client._sdkVersion += ("_CLI_" + __version__)
|
5612
4832
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5613
|
-
model = models.
|
4833
|
+
model = models.GetUserQuotaInfoRequest()
|
5614
4834
|
model.from_json_string(json.dumps(args))
|
5615
4835
|
start_time = time.time()
|
5616
4836
|
while True:
|
5617
|
-
rsp = client.
|
4837
|
+
rsp = client.GetUserQuotaInfo(model)
|
5618
4838
|
result = rsp.to_json_string()
|
5619
4839
|
try:
|
5620
4840
|
json_obj = json.loads(result)
|
@@ -5633,7 +4853,7 @@ def doAuthorizeDSPAMetaResources(args, parsed_globals):
|
|
5633
4853
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5634
4854
|
|
5635
4855
|
|
5636
|
-
def
|
4856
|
+
def doDescribeDSPAComplianceUpdateNotification(args, parsed_globals):
|
5637
4857
|
g_param = parse_global_arg(parsed_globals)
|
5638
4858
|
|
5639
4859
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5662,11 +4882,11 @@ def doDescribeDSPASupportedMetas(args, parsed_globals):
|
|
5662
4882
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5663
4883
|
client._sdkVersion += ("_CLI_" + __version__)
|
5664
4884
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5665
|
-
model = models.
|
4885
|
+
model = models.DescribeDSPAComplianceUpdateNotificationRequest()
|
5666
4886
|
model.from_json_string(json.dumps(args))
|
5667
4887
|
start_time = time.time()
|
5668
4888
|
while True:
|
5669
|
-
rsp = client.
|
4889
|
+
rsp = client.DescribeDSPAComplianceUpdateNotification(model)
|
5670
4890
|
result = rsp.to_json_string()
|
5671
4891
|
try:
|
5672
4892
|
json_obj = json.loads(result)
|
@@ -5685,7 +4905,7 @@ def doDescribeDSPASupportedMetas(args, parsed_globals):
|
|
5685
4905
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5686
4906
|
|
5687
4907
|
|
5688
|
-
def
|
4908
|
+
def doCreateDSPADbMetaResources(args, parsed_globals):
|
5689
4909
|
g_param = parse_global_arg(parsed_globals)
|
5690
4910
|
|
5691
4911
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5714,11 +4934,11 @@ def doDescribeDSPAAssessmentRiskDealedTrend(args, parsed_globals):
|
|
5714
4934
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5715
4935
|
client._sdkVersion += ("_CLI_" + __version__)
|
5716
4936
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5717
|
-
model = models.
|
4937
|
+
model = models.CreateDSPADbMetaResourcesRequest()
|
5718
4938
|
model.from_json_string(json.dumps(args))
|
5719
4939
|
start_time = time.time()
|
5720
4940
|
while True:
|
5721
|
-
rsp = client.
|
4941
|
+
rsp = client.CreateDSPADbMetaResources(model)
|
5722
4942
|
result = rsp.to_json_string()
|
5723
4943
|
try:
|
5724
4944
|
json_obj = json.loads(result)
|
@@ -5737,7 +4957,7 @@ def doDescribeDSPAAssessmentRiskDealedTrend(args, parsed_globals):
|
|
5737
4957
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5738
4958
|
|
5739
4959
|
|
5740
|
-
def
|
4960
|
+
def doModifyDSPACOSTaskResult(args, parsed_globals):
|
5741
4961
|
g_param = parse_global_arg(parsed_globals)
|
5742
4962
|
|
5743
4963
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5766,11 +4986,11 @@ def doDescribeSensitiveRDBDataDistribution(args, parsed_globals):
|
|
5766
4986
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5767
4987
|
client._sdkVersion += ("_CLI_" + __version__)
|
5768
4988
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5769
|
-
model = models.
|
4989
|
+
model = models.ModifyDSPACOSTaskResultRequest()
|
5770
4990
|
model.from_json_string(json.dumps(args))
|
5771
4991
|
start_time = time.time()
|
5772
4992
|
while True:
|
5773
|
-
rsp = client.
|
4993
|
+
rsp = client.ModifyDSPACOSTaskResult(model)
|
5774
4994
|
result = rsp.to_json_string()
|
5775
4995
|
try:
|
5776
4996
|
json_obj = json.loads(result)
|
@@ -5789,7 +5009,7 @@ def doDescribeSensitiveRDBDataDistribution(args, parsed_globals):
|
|
5789
5009
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5790
5010
|
|
5791
5011
|
|
5792
|
-
def
|
5012
|
+
def doBindDSPAResourceDatabases(args, parsed_globals):
|
5793
5013
|
g_param = parse_global_arg(parsed_globals)
|
5794
5014
|
|
5795
5015
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5818,11 +5038,11 @@ def doRestartDSPAAssessmentTask(args, parsed_globals):
|
|
5818
5038
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5819
5039
|
client._sdkVersion += ("_CLI_" + __version__)
|
5820
5040
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5821
|
-
model = models.
|
5041
|
+
model = models.BindDSPAResourceDatabasesRequest()
|
5822
5042
|
model.from_json_string(json.dumps(args))
|
5823
5043
|
start_time = time.time()
|
5824
5044
|
while True:
|
5825
|
-
rsp = client.
|
5045
|
+
rsp = client.BindDSPAResourceDatabases(model)
|
5826
5046
|
result = rsp.to_json_string()
|
5827
5047
|
try:
|
5828
5048
|
json_obj = json.loads(result)
|
@@ -5841,7 +5061,7 @@ def doRestartDSPAAssessmentTask(args, parsed_globals):
|
|
5841
5061
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5842
5062
|
|
5843
5063
|
|
5844
|
-
def
|
5064
|
+
def doDescribeESAssetSensitiveDistribution(args, parsed_globals):
|
5845
5065
|
g_param = parse_global_arg(parsed_globals)
|
5846
5066
|
|
5847
5067
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5870,11 +5090,11 @@ def doDescribeDSPAESDiscoveryTaskResultDetail(args, parsed_globals):
|
|
5870
5090
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5871
5091
|
client._sdkVersion += ("_CLI_" + __version__)
|
5872
5092
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5873
|
-
model = models.
|
5093
|
+
model = models.DescribeESAssetSensitiveDistributionRequest()
|
5874
5094
|
model.from_json_string(json.dumps(args))
|
5875
5095
|
start_time = time.time()
|
5876
5096
|
while True:
|
5877
|
-
rsp = client.
|
5097
|
+
rsp = client.DescribeESAssetSensitiveDistribution(model)
|
5878
5098
|
result = rsp.to_json_string()
|
5879
5099
|
try:
|
5880
5100
|
json_obj = json.loads(result)
|
@@ -5893,7 +5113,7 @@ def doDescribeDSPAESDiscoveryTaskResultDetail(args, parsed_globals):
|
|
5893
5113
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5894
5114
|
|
5895
5115
|
|
5896
|
-
def
|
5116
|
+
def doAuthorizeDSPAMetaResources(args, parsed_globals):
|
5897
5117
|
g_param = parse_global_arg(parsed_globals)
|
5898
5118
|
|
5899
5119
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5922,11 +5142,11 @@ def doDeleteDSPADiscoveryTask(args, parsed_globals):
|
|
5922
5142
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5923
5143
|
client._sdkVersion += ("_CLI_" + __version__)
|
5924
5144
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5925
|
-
model = models.
|
5145
|
+
model = models.AuthorizeDSPAMetaResourcesRequest()
|
5926
5146
|
model.from_json_string(json.dumps(args))
|
5927
5147
|
start_time = time.time()
|
5928
5148
|
while True:
|
5929
|
-
rsp = client.
|
5149
|
+
rsp = client.AuthorizeDSPAMetaResources(model)
|
5930
5150
|
result = rsp.to_json_string()
|
5931
5151
|
try:
|
5932
5152
|
json_obj = json.loads(result)
|
@@ -5945,7 +5165,7 @@ def doDeleteDSPADiscoveryTask(args, parsed_globals):
|
|
5945
5165
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5946
5166
|
|
5947
5167
|
|
5948
|
-
def
|
5168
|
+
def doDescribeDSPASupportedMetas(args, parsed_globals):
|
5949
5169
|
g_param = parse_global_arg(parsed_globals)
|
5950
5170
|
|
5951
5171
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5974,11 +5194,11 @@ def doDescribeDSPAAssessmentRiskProcessHistory(args, parsed_globals):
|
|
5974
5194
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
5975
5195
|
client._sdkVersion += ("_CLI_" + __version__)
|
5976
5196
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5977
|
-
model = models.
|
5197
|
+
model = models.DescribeDSPASupportedMetasRequest()
|
5978
5198
|
model.from_json_string(json.dumps(args))
|
5979
5199
|
start_time = time.time()
|
5980
5200
|
while True:
|
5981
|
-
rsp = client.
|
5201
|
+
rsp = client.DescribeDSPASupportedMetas(model)
|
5982
5202
|
result = rsp.to_json_string()
|
5983
5203
|
try:
|
5984
5204
|
json_obj = json.loads(result)
|
@@ -5997,7 +5217,7 @@ def doDescribeDSPAAssessmentRiskProcessHistory(args, parsed_globals):
|
|
5997
5217
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5998
5218
|
|
5999
5219
|
|
6000
|
-
def
|
5220
|
+
def doDescribeDSPAAssessmentRiskDealedTrend(args, parsed_globals):
|
6001
5221
|
g_param = parse_global_arg(parsed_globals)
|
6002
5222
|
|
6003
5223
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6026,11 +5246,11 @@ def doModifyDSPACategory(args, parsed_globals):
|
|
6026
5246
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6027
5247
|
client._sdkVersion += ("_CLI_" + __version__)
|
6028
5248
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6029
|
-
model = models.
|
5249
|
+
model = models.DescribeDSPAAssessmentRiskDealedTrendRequest()
|
6030
5250
|
model.from_json_string(json.dumps(args))
|
6031
5251
|
start_time = time.time()
|
6032
5252
|
while True:
|
6033
|
-
rsp = client.
|
5253
|
+
rsp = client.DescribeDSPAAssessmentRiskDealedTrend(model)
|
6034
5254
|
result = rsp.to_json_string()
|
6035
5255
|
try:
|
6036
5256
|
json_obj = json.loads(result)
|
@@ -6049,7 +5269,7 @@ def doModifyDSPACategory(args, parsed_globals):
|
|
6049
5269
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6050
5270
|
|
6051
5271
|
|
6052
|
-
def
|
5272
|
+
def doRestartDSPAAssessmentTask(args, parsed_globals):
|
6053
5273
|
g_param = parse_global_arg(parsed_globals)
|
6054
5274
|
|
6055
5275
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6078,11 +5298,11 @@ def doModifyDSPACategoryRelation(args, parsed_globals):
|
|
6078
5298
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6079
5299
|
client._sdkVersion += ("_CLI_" + __version__)
|
6080
5300
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6081
|
-
model = models.
|
5301
|
+
model = models.RestartDSPAAssessmentTaskRequest()
|
6082
5302
|
model.from_json_string(json.dumps(args))
|
6083
5303
|
start_time = time.time()
|
6084
5304
|
while True:
|
6085
|
-
rsp = client.
|
5305
|
+
rsp = client.RestartDSPAAssessmentTask(model)
|
6086
5306
|
result = rsp.to_json_string()
|
6087
5307
|
try:
|
6088
5308
|
json_obj = json.loads(result)
|
@@ -6101,7 +5321,7 @@ def doModifyDSPACategoryRelation(args, parsed_globals):
|
|
6101
5321
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6102
5322
|
|
6103
5323
|
|
6104
|
-
def
|
5324
|
+
def doDescribeDSPAESDiscoveryTaskResultDetail(args, parsed_globals):
|
6105
5325
|
g_param = parse_global_arg(parsed_globals)
|
6106
5326
|
|
6107
5327
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6130,11 +5350,11 @@ def doUpdateDSPASelfBuildResource(args, parsed_globals):
|
|
6130
5350
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6131
5351
|
client._sdkVersion += ("_CLI_" + __version__)
|
6132
5352
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6133
|
-
model = models.
|
5353
|
+
model = models.DescribeDSPAESDiscoveryTaskResultDetailRequest()
|
6134
5354
|
model.from_json_string(json.dumps(args))
|
6135
5355
|
start_time = time.time()
|
6136
5356
|
while True:
|
6137
|
-
rsp = client.
|
5357
|
+
rsp = client.DescribeDSPAESDiscoveryTaskResultDetail(model)
|
6138
5358
|
result = rsp.to_json_string()
|
6139
5359
|
try:
|
6140
5360
|
json_obj = json.loads(result)
|
@@ -6153,7 +5373,7 @@ def doUpdateDSPASelfBuildResource(args, parsed_globals):
|
|
6153
5373
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6154
5374
|
|
6155
5375
|
|
6156
|
-
def
|
5376
|
+
def doDeleteDSPADiscoveryTask(args, parsed_globals):
|
6157
5377
|
g_param = parse_global_arg(parsed_globals)
|
6158
5378
|
|
6159
5379
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6182,11 +5402,11 @@ def doCreateDSPADiscoveryRule(args, parsed_globals):
|
|
6182
5402
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6183
5403
|
client._sdkVersion += ("_CLI_" + __version__)
|
6184
5404
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6185
|
-
model = models.
|
5405
|
+
model = models.DeleteDSPADiscoveryTaskRequest()
|
6186
5406
|
model.from_json_string(json.dumps(args))
|
6187
5407
|
start_time = time.time()
|
6188
5408
|
while True:
|
6189
|
-
rsp = client.
|
5409
|
+
rsp = client.DeleteDSPADiscoveryTask(model)
|
6190
5410
|
result = rsp.to_json_string()
|
6191
5411
|
try:
|
6192
5412
|
json_obj = json.loads(result)
|
@@ -6205,7 +5425,7 @@ def doCreateDSPADiscoveryRule(args, parsed_globals):
|
|
6205
5425
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6206
5426
|
|
6207
5427
|
|
6208
|
-
def
|
5428
|
+
def doModifyDSPACategory(args, parsed_globals):
|
6209
5429
|
g_param = parse_global_arg(parsed_globals)
|
6210
5430
|
|
6211
5431
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6234,11 +5454,11 @@ def doModifyNewClassification(args, parsed_globals):
|
|
6234
5454
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6235
5455
|
client._sdkVersion += ("_CLI_" + __version__)
|
6236
5456
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6237
|
-
model = models.
|
5457
|
+
model = models.ModifyDSPACategoryRequest()
|
6238
5458
|
model.from_json_string(json.dumps(args))
|
6239
5459
|
start_time = time.time()
|
6240
5460
|
while True:
|
6241
|
-
rsp = client.
|
5461
|
+
rsp = client.ModifyDSPACategory(model)
|
6242
5462
|
result = rsp.to_json_string()
|
6243
5463
|
try:
|
6244
5464
|
json_obj = json.loads(result)
|
@@ -6257,7 +5477,7 @@ def doModifyNewClassification(args, parsed_globals):
|
|
6257
5477
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6258
5478
|
|
6259
5479
|
|
6260
|
-
def
|
5480
|
+
def doModifyDSPACategoryRelation(args, parsed_globals):
|
6261
5481
|
g_param = parse_global_arg(parsed_globals)
|
6262
5482
|
|
6263
5483
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6286,11 +5506,11 @@ def doModifyDSPAClusterInfo(args, parsed_globals):
|
|
6286
5506
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6287
5507
|
client._sdkVersion += ("_CLI_" + __version__)
|
6288
5508
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6289
|
-
model = models.
|
5509
|
+
model = models.ModifyDSPACategoryRelationRequest()
|
6290
5510
|
model.from_json_string(json.dumps(args))
|
6291
5511
|
start_time = time.time()
|
6292
5512
|
while True:
|
6293
|
-
rsp = client.
|
5513
|
+
rsp = client.ModifyDSPACategoryRelation(model)
|
6294
5514
|
result = rsp.to_json_string()
|
6295
5515
|
try:
|
6296
5516
|
json_obj = json.loads(result)
|
@@ -6309,7 +5529,7 @@ def doModifyDSPAClusterInfo(args, parsed_globals):
|
|
6309
5529
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6310
5530
|
|
6311
5531
|
|
6312
|
-
def
|
5532
|
+
def doUpdateDSPASelfBuildResource(args, parsed_globals):
|
6313
5533
|
g_param = parse_global_arg(parsed_globals)
|
6314
5534
|
|
6315
5535
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6338,11 +5558,11 @@ def doDescribeLeafClassification(args, parsed_globals):
|
|
6338
5558
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6339
5559
|
client._sdkVersion += ("_CLI_" + __version__)
|
6340
5560
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6341
|
-
model = models.
|
5561
|
+
model = models.UpdateDSPASelfBuildResourceRequest()
|
6342
5562
|
model.from_json_string(json.dumps(args))
|
6343
5563
|
start_time = time.time()
|
6344
5564
|
while True:
|
6345
|
-
rsp = client.
|
5565
|
+
rsp = client.UpdateDSPASelfBuildResource(model)
|
6346
5566
|
result = rsp.to_json_string()
|
6347
5567
|
try:
|
6348
5568
|
json_obj = json.loads(result)
|
@@ -6361,7 +5581,7 @@ def doDescribeLeafClassification(args, parsed_globals):
|
|
6361
5581
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6362
5582
|
|
6363
5583
|
|
6364
|
-
def
|
5584
|
+
def doCreateDSPADiscoveryRule(args, parsed_globals):
|
6365
5585
|
g_param = parse_global_arg(parsed_globals)
|
6366
5586
|
|
6367
5587
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6390,11 +5610,11 @@ def doCreateDSPADiscoveryTask(args, parsed_globals):
|
|
6390
5610
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6391
5611
|
client._sdkVersion += ("_CLI_" + __version__)
|
6392
5612
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6393
|
-
model = models.
|
5613
|
+
model = models.CreateDSPADiscoveryRuleRequest()
|
6394
5614
|
model.from_json_string(json.dumps(args))
|
6395
5615
|
start_time = time.time()
|
6396
5616
|
while True:
|
6397
|
-
rsp = client.
|
5617
|
+
rsp = client.CreateDSPADiscoveryRule(model)
|
6398
5618
|
result = rsp.to_json_string()
|
6399
5619
|
try:
|
6400
5620
|
json_obj = json.loads(result)
|
@@ -6413,7 +5633,7 @@ def doCreateDSPADiscoveryTask(args, parsed_globals):
|
|
6413
5633
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6414
5634
|
|
6415
5635
|
|
6416
|
-
def
|
5636
|
+
def doModifyDSPAClusterInfo(args, parsed_globals):
|
6417
5637
|
g_param = parse_global_arg(parsed_globals)
|
6418
5638
|
|
6419
5639
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6442,11 +5662,11 @@ def doDescribeDSPAAssessmentNewDiscoveredRiskOverview(args, parsed_globals):
|
|
6442
5662
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6443
5663
|
client._sdkVersion += ("_CLI_" + __version__)
|
6444
5664
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6445
|
-
model = models.
|
5665
|
+
model = models.ModifyDSPAClusterInfoRequest()
|
6446
5666
|
model.from_json_string(json.dumps(args))
|
6447
5667
|
start_time = time.time()
|
6448
5668
|
while True:
|
6449
|
-
rsp = client.
|
5669
|
+
rsp = client.ModifyDSPAClusterInfo(model)
|
6450
5670
|
result = rsp.to_json_string()
|
6451
5671
|
try:
|
6452
5672
|
json_obj = json.loads(result)
|
@@ -6465,7 +5685,7 @@ def doDescribeDSPAAssessmentNewDiscoveredRiskOverview(args, parsed_globals):
|
|
6465
5685
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6466
5686
|
|
6467
5687
|
|
6468
|
-
def
|
5688
|
+
def doCreateDSPADiscoveryTask(args, parsed_globals):
|
6469
5689
|
g_param = parse_global_arg(parsed_globals)
|
6470
5690
|
|
6471
5691
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6494,11 +5714,11 @@ def doModifyStandardInfo(args, parsed_globals):
|
|
6494
5714
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6495
5715
|
client._sdkVersion += ("_CLI_" + __version__)
|
6496
5716
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6497
|
-
model = models.
|
5717
|
+
model = models.CreateDSPADiscoveryTaskRequest()
|
6498
5718
|
model.from_json_string(json.dumps(args))
|
6499
5719
|
start_time = time.time()
|
6500
5720
|
while True:
|
6501
|
-
rsp = client.
|
5721
|
+
rsp = client.CreateDSPADiscoveryTask(model)
|
6502
5722
|
result = rsp.to_json_string()
|
6503
5723
|
try:
|
6504
5724
|
json_obj = json.loads(result)
|
@@ -6517,7 +5737,7 @@ def doModifyStandardInfo(args, parsed_globals):
|
|
6517
5737
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6518
5738
|
|
6519
5739
|
|
6520
|
-
def
|
5740
|
+
def doDescribeDSPAAssessmentNewDiscoveredRiskOverview(args, parsed_globals):
|
6521
5741
|
g_param = parse_global_arg(parsed_globals)
|
6522
5742
|
|
6523
5743
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6546,11 +5766,11 @@ def doQueryDSPAMetaResourceDbList(args, parsed_globals):
|
|
6546
5766
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6547
5767
|
client._sdkVersion += ("_CLI_" + __version__)
|
6548
5768
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6549
|
-
model = models.
|
5769
|
+
model = models.DescribeDSPAAssessmentNewDiscoveredRiskOverviewRequest()
|
6550
5770
|
model.from_json_string(json.dumps(args))
|
6551
5771
|
start_time = time.time()
|
6552
5772
|
while True:
|
6553
|
-
rsp = client.
|
5773
|
+
rsp = client.DescribeDSPAAssessmentNewDiscoveredRiskOverview(model)
|
6554
5774
|
result = rsp.to_json_string()
|
6555
5775
|
try:
|
6556
5776
|
json_obj = json.loads(result)
|
@@ -6569,7 +5789,7 @@ def doQueryDSPAMetaResourceDbList(args, parsed_globals):
|
|
6569
5789
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6570
5790
|
|
6571
5791
|
|
6572
|
-
def
|
5792
|
+
def doDescribeDSPAAssessmentRiskProcessHistory(args, parsed_globals):
|
6573
5793
|
g_param = parse_global_arg(parsed_globals)
|
6574
5794
|
|
6575
5795
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6598,11 +5818,11 @@ def doGetTrialVersion(args, parsed_globals):
|
|
6598
5818
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6599
5819
|
client._sdkVersion += ("_CLI_" + __version__)
|
6600
5820
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6601
|
-
model = models.
|
5821
|
+
model = models.DescribeDSPAAssessmentRiskProcessHistoryRequest()
|
6602
5822
|
model.from_json_string(json.dumps(args))
|
6603
5823
|
start_time = time.time()
|
6604
5824
|
while True:
|
6605
|
-
rsp = client.
|
5825
|
+
rsp = client.DescribeDSPAAssessmentRiskProcessHistory(model)
|
6606
5826
|
result = rsp.to_json_string()
|
6607
5827
|
try:
|
6608
5828
|
json_obj = json.loads(result)
|
@@ -6621,7 +5841,7 @@ def doGetTrialVersion(args, parsed_globals):
|
|
6621
5841
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6622
5842
|
|
6623
5843
|
|
6624
|
-
def
|
5844
|
+
def doQueryDSPAMetaResourceDbList(args, parsed_globals):
|
6625
5845
|
g_param = parse_global_arg(parsed_globals)
|
6626
5846
|
|
6627
5847
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6650,11 +5870,11 @@ def doDescribeDSPAAssessmentRiskDistributionOverview(args, parsed_globals):
|
|
6650
5870
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6651
5871
|
client._sdkVersion += ("_CLI_" + __version__)
|
6652
5872
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6653
|
-
model = models.
|
5873
|
+
model = models.QueryDSPAMetaResourceDbListRequest()
|
6654
5874
|
model.from_json_string(json.dumps(args))
|
6655
5875
|
start_time = time.time()
|
6656
5876
|
while True:
|
6657
|
-
rsp = client.
|
5877
|
+
rsp = client.QueryDSPAMetaResourceDbList(model)
|
6658
5878
|
result = rsp.to_json_string()
|
6659
5879
|
try:
|
6660
5880
|
json_obj = json.loads(result)
|
@@ -6673,7 +5893,7 @@ def doDescribeDSPAAssessmentRiskDistributionOverview(args, parsed_globals):
|
|
6673
5893
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6674
5894
|
|
6675
5895
|
|
6676
|
-
def
|
5896
|
+
def doGetTrialVersion(args, parsed_globals):
|
6677
5897
|
g_param = parse_global_arg(parsed_globals)
|
6678
5898
|
|
6679
5899
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6702,11 +5922,11 @@ def doDescribeClassificationRuleCount(args, parsed_globals):
|
|
6702
5922
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6703
5923
|
client._sdkVersion += ("_CLI_" + __version__)
|
6704
5924
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6705
|
-
model = models.
|
5925
|
+
model = models.GetTrialVersionRequest()
|
6706
5926
|
model.from_json_string(json.dumps(args))
|
6707
5927
|
start_time = time.time()
|
6708
5928
|
while True:
|
6709
|
-
rsp = client.
|
5929
|
+
rsp = client.GetTrialVersion(model)
|
6710
5930
|
result = rsp.to_json_string()
|
6711
5931
|
try:
|
6712
5932
|
json_obj = json.loads(result)
|
@@ -6725,7 +5945,7 @@ def doDescribeClassificationRuleCount(args, parsed_globals):
|
|
6725
5945
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6726
5946
|
|
6727
5947
|
|
6728
|
-
def
|
5948
|
+
def doDescribeDSPAAssessmentRiskDistributionOverview(args, parsed_globals):
|
6729
5949
|
g_param = parse_global_arg(parsed_globals)
|
6730
5950
|
|
6731
5951
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6754,11 +5974,11 @@ def doDescribeDSPACategoryTreeWithRules(args, parsed_globals):
|
|
6754
5974
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6755
5975
|
client._sdkVersion += ("_CLI_" + __version__)
|
6756
5976
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6757
|
-
model = models.
|
5977
|
+
model = models.DescribeDSPAAssessmentRiskDistributionOverviewRequest()
|
6758
5978
|
model.from_json_string(json.dumps(args))
|
6759
5979
|
start_time = time.time()
|
6760
5980
|
while True:
|
6761
|
-
rsp = client.
|
5981
|
+
rsp = client.DescribeDSPAAssessmentRiskDistributionOverview(model)
|
6762
5982
|
result = rsp.to_json_string()
|
6763
5983
|
try:
|
6764
5984
|
json_obj = json.loads(result)
|
@@ -6777,7 +5997,7 @@ def doDescribeDSPACategoryTreeWithRules(args, parsed_globals):
|
|
6777
5997
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6778
5998
|
|
6779
5999
|
|
6780
|
-
def
|
6000
|
+
def doDescribeDSPACategoryTreeWithRules(args, parsed_globals):
|
6781
6001
|
g_param = parse_global_arg(parsed_globals)
|
6782
6002
|
|
6783
6003
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6806,11 +6026,11 @@ def doGetResourceConnectionStatus(args, parsed_globals):
|
|
6806
6026
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6807
6027
|
client._sdkVersion += ("_CLI_" + __version__)
|
6808
6028
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6809
|
-
model = models.
|
6029
|
+
model = models.DescribeDSPACategoryTreeWithRulesRequest()
|
6810
6030
|
model.from_json_string(json.dumps(args))
|
6811
6031
|
start_time = time.time()
|
6812
6032
|
while True:
|
6813
|
-
rsp = client.
|
6033
|
+
rsp = client.DescribeDSPACategoryTreeWithRules(model)
|
6814
6034
|
result = rsp.to_json_string()
|
6815
6035
|
try:
|
6816
6036
|
json_obj = json.loads(result)
|
@@ -6829,7 +6049,7 @@ def doGetResourceConnectionStatus(args, parsed_globals):
|
|
6829
6049
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6830
6050
|
|
6831
6051
|
|
6832
|
-
def
|
6052
|
+
def doGetResourceConnectionStatus(args, parsed_globals):
|
6833
6053
|
g_param = parse_global_arg(parsed_globals)
|
6834
6054
|
|
6835
6055
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6858,11 +6078,11 @@ def doDescribeDSPAESDataSample(args, parsed_globals):
|
|
6858
6078
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6859
6079
|
client._sdkVersion += ("_CLI_" + __version__)
|
6860
6080
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6861
|
-
model = models.
|
6081
|
+
model = models.GetResourceConnectionStatusRequest()
|
6862
6082
|
model.from_json_string(json.dumps(args))
|
6863
6083
|
start_time = time.time()
|
6864
6084
|
while True:
|
6865
|
-
rsp = client.
|
6085
|
+
rsp = client.GetResourceConnectionStatus(model)
|
6866
6086
|
result = rsp.to_json_string()
|
6867
6087
|
try:
|
6868
6088
|
json_obj = json.loads(result)
|
@@ -6881,7 +6101,7 @@ def doDescribeDSPAESDataSample(args, parsed_globals):
|
|
6881
6101
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6882
6102
|
|
6883
6103
|
|
6884
|
-
def
|
6104
|
+
def doDescribeDSPAESDataSample(args, parsed_globals):
|
6885
6105
|
g_param = parse_global_arg(parsed_globals)
|
6886
6106
|
|
6887
6107
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6910,11 +6130,11 @@ def doDescribeDSPAAssessmentTemplateControlItems(args, parsed_globals):
|
|
6910
6130
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6911
6131
|
client._sdkVersion += ("_CLI_" + __version__)
|
6912
6132
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6913
|
-
model = models.
|
6133
|
+
model = models.DescribeDSPAESDataSampleRequest()
|
6914
6134
|
model.from_json_string(json.dumps(args))
|
6915
6135
|
start_time = time.time()
|
6916
6136
|
while True:
|
6917
|
-
rsp = client.
|
6137
|
+
rsp = client.DescribeDSPAESDataSample(model)
|
6918
6138
|
result = rsp.to_json_string()
|
6919
6139
|
try:
|
6920
6140
|
json_obj = json.loads(result)
|
@@ -6933,7 +6153,7 @@ def doDescribeDSPAAssessmentTemplateControlItems(args, parsed_globals):
|
|
6933
6153
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6934
6154
|
|
6935
6155
|
|
6936
|
-
def
|
6156
|
+
def doDescribeDSPAAssessmentTemplateControlItems(args, parsed_globals):
|
6937
6157
|
g_param = parse_global_arg(parsed_globals)
|
6938
6158
|
|
6939
6159
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6962,11 +6182,11 @@ def doModifyLevelState(args, parsed_globals):
|
|
6962
6182
|
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
6963
6183
|
client._sdkVersion += ("_CLI_" + __version__)
|
6964
6184
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6965
|
-
model = models.
|
6185
|
+
model = models.DescribeDSPAAssessmentTemplateControlItemsRequest()
|
6966
6186
|
model.from_json_string(json.dumps(args))
|
6967
6187
|
start_time = time.time()
|
6968
6188
|
while True:
|
6969
|
-
rsp = client.
|
6189
|
+
rsp = client.DescribeDSPAAssessmentTemplateControlItems(model)
|
6970
6190
|
result = rsp.to_json_string()
|
6971
6191
|
try:
|
6972
6192
|
json_obj = json.loads(result)
|
@@ -7724,7 +6944,6 @@ MODELS_MAP = {
|
|
7724
6944
|
}
|
7725
6945
|
|
7726
6946
|
ACTION_MAP = {
|
7727
|
-
"ModifyDSPAAssessmentRiskLevel": doModifyDSPAAssessmentRiskLevel,
|
7728
6947
|
"CreateDSPALevelGroup": doCreateDSPALevelGroup,
|
7729
6948
|
"DescribeDSPAAssessmentRiskDealedOverview": doDescribeDSPAAssessmentRiskDealedOverview,
|
7730
6949
|
"CopyDSPATemplate": doCopyDSPATemplate,
|
@@ -7738,7 +6957,7 @@ ACTION_MAP = {
|
|
7738
6957
|
"CreateAssetSortingReportRetryTask": doCreateAssetSortingReportRetryTask,
|
7739
6958
|
"DescribeDSPACOSDataAssetByComplianceId": doDescribeDSPACOSDataAssetByComplianceId,
|
7740
6959
|
"DescribeDSPAAssessmentRiskLevelList": doDescribeDSPAAssessmentRiskLevelList,
|
7741
|
-
"
|
6960
|
+
"ModifyDSPAAssessmentRiskLatest": doModifyDSPAAssessmentRiskLatest,
|
7742
6961
|
"DescribeDSPAAssessmentRiskLevelDetail": doDescribeDSPAAssessmentRiskLevelDetail,
|
7743
6962
|
"DeleteDSPACOSDiscoveryTaskResult": doDeleteDSPACOSDiscoveryTaskResult,
|
7744
6963
|
"DescribeDSPACOSDataAssetDetail": doDescribeDSPACOSDataAssetDetail,
|
@@ -7764,20 +6983,16 @@ ACTION_MAP = {
|
|
7764
6983
|
"ListDSPACosMetaResources": doListDSPACosMetaResources,
|
7765
6984
|
"ListDSPAMetaResources": doListDSPAMetaResources,
|
7766
6985
|
"ModifyDSPAAssessmentRisk": doModifyDSPAAssessmentRisk,
|
7767
|
-
"CreateNewClassification": doCreateNewClassification,
|
7768
6986
|
"ModifyDSPAAssessmentRiskTemplate": doModifyDSPAAssessmentRiskTemplate,
|
7769
6987
|
"DescribeDSPADiscoveryTaskDetail": doDescribeDSPADiscoveryTaskDetail,
|
7770
6988
|
"DescribeDSPACOSTaskResultDetail": doDescribeDSPACOSTaskResultDetail,
|
7771
6989
|
"DescribeDSPAAssessmentRiskAmountOverview": doDescribeDSPAAssessmentRiskAmountOverview,
|
7772
|
-
"CreateClassificationRule": doCreateClassificationRule,
|
7773
6990
|
"DescribeDSPAESDataAssetByComplianceId": doDescribeDSPAESDataAssetByComplianceId,
|
7774
6991
|
"DescribeDSPAComplianceGroups": doDescribeDSPAComplianceGroups,
|
7775
|
-
"ModifyLevelName": doModifyLevelName,
|
7776
6992
|
"DescribeDSPACOSDiscoveryTaskDetail": doDescribeDSPACOSDiscoveryTaskDetail,
|
7777
6993
|
"DescribeDSPATaskResultDataSample": doDescribeDSPATaskResultDataSample,
|
7778
6994
|
"DeleteDSPACOSDiscoveryTask": doDeleteDSPACOSDiscoveryTask,
|
7779
6995
|
"DescribeMongoAssetSensitiveDistribution": doDescribeMongoAssetSensitiveDistribution,
|
7780
|
-
"ModifyLevelInfo": doModifyLevelInfo,
|
7781
6996
|
"CreateDSPACategoryRelation": doCreateDSPACategoryRelation,
|
7782
6997
|
"DescribeSensitiveCOSDataDistribution": doDescribeSensitiveCOSDataDistribution,
|
7783
6998
|
"DescribeDSPAAssessmentRiskDatasourceTop5": doDescribeDSPAAssessmentRiskDatasourceTop5,
|
@@ -7785,14 +7000,12 @@ ACTION_MAP = {
|
|
7785
7000
|
"DescribeReportTasks": doDescribeReportTasks,
|
7786
7001
|
"DescribeDSPACOSDiscoveryTaskFiles": doDescribeDSPACOSDiscoveryTaskFiles,
|
7787
7002
|
"DescribeDSPAAssessmentTemplates": doDescribeDSPAAssessmentTemplates,
|
7788
|
-
"ModifyDSPAAssessmentRiskLatest": doModifyDSPAAssessmentRiskLatest,
|
7789
7003
|
"EnableDSPADiscoveryRule": doEnableDSPADiscoveryRule,
|
7790
7004
|
"CreateIdentifyRuleAnotherName": doCreateIdentifyRuleAnotherName,
|
7791
7005
|
"DecribeSuggestRiskLevelMatrix": doDecribeSuggestRiskLevelMatrix,
|
7792
7006
|
"DescribeDSPAAssessmentPendingRiskOverview": doDescribeDSPAAssessmentPendingRiskOverview,
|
7793
7007
|
"ModifyDSPAESTaskResult": doModifyDSPAESTaskResult,
|
7794
7008
|
"DescribeDSPARDBDataAssetDetail": doDescribeDSPARDBDataAssetDetail,
|
7795
|
-
"DescribeClassificationInfo": doDescribeClassificationInfo,
|
7796
7009
|
"DescribeDSPAAssessmentRiskItemTop5": doDescribeDSPAAssessmentRiskItemTop5,
|
7797
7010
|
"QueryResourceDbBindStatus": doQueryResourceDbBindStatus,
|
7798
7011
|
"DescribeDSPADiscoveryServiceStatus": doDescribeDSPADiscoveryServiceStatus,
|
@@ -7807,8 +7020,7 @@ ACTION_MAP = {
|
|
7807
7020
|
"VerifyDSPADiscoveryRule": doVerifyDSPADiscoveryRule,
|
7808
7021
|
"DescribeDSPACOSDiscoveryTasks": doDescribeDSPACOSDiscoveryTasks,
|
7809
7022
|
"DescribeDSPACategoryTree": doDescribeDSPACategoryTree,
|
7810
|
-
"
|
7811
|
-
"CreateOrCopyStandard": doCreateOrCopyStandard,
|
7023
|
+
"DescribeSensitiveRDBDataDistribution": doDescribeSensitiveRDBDataDistribution,
|
7812
7024
|
"DescribeAssetOverview": doDescribeAssetOverview,
|
7813
7025
|
"CreateDSPAAssessmentTask": doCreateDSPAAssessmentTask,
|
7814
7026
|
"VerifyDSPACOSRule": doVerifyDSPACOSRule,
|
@@ -7818,11 +7030,10 @@ ACTION_MAP = {
|
|
7818
7030
|
"CreateDSPAComplianceGroup": doCreateDSPAComplianceGroup,
|
7819
7031
|
"DescribeDSPADataSourceDbInfo": doDescribeDSPADataSourceDbInfo,
|
7820
7032
|
"CreateDSPAMetaResources": doCreateDSPAMetaResources,
|
7821
|
-
"
|
7033
|
+
"ModifyDSPAAssessmentRiskLevel": doModifyDSPAAssessmentRiskLevel,
|
7822
7034
|
"DescribeDSPAAssessmentHighRiskTop10Overview": doDescribeDSPAAssessmentHighRiskTop10Overview,
|
7823
7035
|
"DescribeDSPAAssessmentLatestRiskDetailInfo": doDescribeDSPAAssessmentLatestRiskDetailInfo,
|
7824
7036
|
"DescribeDSPACategories": doDescribeDSPACategories,
|
7825
|
-
"DescribeRuleList": doDescribeRuleList,
|
7826
7037
|
"DescribeDSPAAssessmentTasks": doDescribeDSPAAssessmentTasks,
|
7827
7038
|
"DescribeDSPADiscoveryTaskTables": doDescribeDSPADiscoveryTaskTables,
|
7828
7039
|
"GetUserQuotaInfo": doGetUserQuotaInfo,
|
@@ -7834,30 +7045,24 @@ ACTION_MAP = {
|
|
7834
7045
|
"AuthorizeDSPAMetaResources": doAuthorizeDSPAMetaResources,
|
7835
7046
|
"DescribeDSPASupportedMetas": doDescribeDSPASupportedMetas,
|
7836
7047
|
"DescribeDSPAAssessmentRiskDealedTrend": doDescribeDSPAAssessmentRiskDealedTrend,
|
7837
|
-
"DescribeSensitiveRDBDataDistribution": doDescribeSensitiveRDBDataDistribution,
|
7838
7048
|
"RestartDSPAAssessmentTask": doRestartDSPAAssessmentTask,
|
7839
7049
|
"DescribeDSPAESDiscoveryTaskResultDetail": doDescribeDSPAESDiscoveryTaskResultDetail,
|
7840
7050
|
"DeleteDSPADiscoveryTask": doDeleteDSPADiscoveryTask,
|
7841
|
-
"DescribeDSPAAssessmentRiskProcessHistory": doDescribeDSPAAssessmentRiskProcessHistory,
|
7842
7051
|
"ModifyDSPACategory": doModifyDSPACategory,
|
7843
7052
|
"ModifyDSPACategoryRelation": doModifyDSPACategoryRelation,
|
7844
7053
|
"UpdateDSPASelfBuildResource": doUpdateDSPASelfBuildResource,
|
7845
7054
|
"CreateDSPADiscoveryRule": doCreateDSPADiscoveryRule,
|
7846
|
-
"ModifyNewClassification": doModifyNewClassification,
|
7847
7055
|
"ModifyDSPAClusterInfo": doModifyDSPAClusterInfo,
|
7848
|
-
"DescribeLeafClassification": doDescribeLeafClassification,
|
7849
7056
|
"CreateDSPADiscoveryTask": doCreateDSPADiscoveryTask,
|
7850
7057
|
"DescribeDSPAAssessmentNewDiscoveredRiskOverview": doDescribeDSPAAssessmentNewDiscoveredRiskOverview,
|
7851
|
-
"
|
7058
|
+
"DescribeDSPAAssessmentRiskProcessHistory": doDescribeDSPAAssessmentRiskProcessHistory,
|
7852
7059
|
"QueryDSPAMetaResourceDbList": doQueryDSPAMetaResourceDbList,
|
7853
7060
|
"GetTrialVersion": doGetTrialVersion,
|
7854
7061
|
"DescribeDSPAAssessmentRiskDistributionOverview": doDescribeDSPAAssessmentRiskDistributionOverview,
|
7855
|
-
"DescribeClassificationRuleCount": doDescribeClassificationRuleCount,
|
7856
7062
|
"DescribeDSPACategoryTreeWithRules": doDescribeDSPACategoryTreeWithRules,
|
7857
7063
|
"GetResourceConnectionStatus": doGetResourceConnectionStatus,
|
7858
7064
|
"DescribeDSPAESDataSample": doDescribeDSPAESDataSample,
|
7859
7065
|
"DescribeDSPAAssessmentTemplateControlItems": doDescribeDSPAAssessmentTemplateControlItems,
|
7860
|
-
"ModifyLevelState": doModifyLevelState,
|
7861
7066
|
"DescribeDSPALevelGroups": doDescribeDSPALevelGroups,
|
7862
7067
|
"ListDSPAClusters": doListDSPAClusters,
|
7863
7068
|
"ExportAssetDetailData": doExportAssetDetailData,
|