tccli 3.0.997.1__py2.py3-none-any.whl → 3.0.999.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/examples/cynosdb/v20190107/DescribeClusterDatabases.md +24 -0
- tccli/examples/essbasic/v20210526/ChannelDeleteSealPolicies.md +10 -7
- tccli/examples/essbasic/v20210526/ChannelDescribeOrganizationSeals.md +6 -5
- tccli/examples/essbasic/v20210526/ChannelDescribeRoles.md +669 -447
- tccli/examples/essbasic/v20210526/ChannelUpdateSealStatus.md +6 -3
- tccli/examples/faceid/v20180301/DetectAIFakeFaces.md +52 -0
- tccli/examples/monitor/v20180724/ModifyAlarmPolicyCondition.md +77 -0
- tccli/examples/sqlserver/v20180328/CreateAccount.md +1 -1
- tccli/examples/sqlserver/v20180328/ModifyAccountPrivilege.md +1 -1
- tccli/examples/sqlserver/v20180328/RestartDBInstance.md +1 -1
- tccli/examples/sqlserver/v20180328/StartInstanceXEvent.md +1 -1
- tccli/examples/waf/v20180125/DescribeCCAutoStatus.md +21 -0
- tccli/examples/waf/v20180125/DescribeCCRuleList.md +59 -1
- tccli/examples/waf/v20180125/UpsertCCAutoStatus.md +22 -0
- tccli/examples/wedata/v20210820/DescribeTableMetas.md +90 -0
- tccli/examples/weilingwith/v20230427/DescribeApplicationList.md +48 -2
- tccli/examples/weilingwith/v20230427/DescribeDeviceShadowList.md +21 -2
- tccli/examples/weilingwith/v20230427/DescribeVideoRecordStream.md +9 -1
- tccli/services/cdb/v20170320/api.json +2 -2
- tccli/services/cynosdb/cynosdb_client.py +53 -0
- tccli/services/cynosdb/v20190107/api.json +92 -0
- tccli/services/cynosdb/v20190107/examples.json +8 -0
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +31 -22
- tccli/services/essbasic/v20210526/examples.json +12 -12
- tccli/services/faceid/faceid_client.py +53 -0
- tccli/services/faceid/v20180301/api.json +79 -0
- tccli/services/faceid/v20180301/examples.json +14 -0
- tccli/services/gaap/v20180529/api.json +10 -0
- tccli/services/live/v20180801/api.json +18 -0
- tccli/services/monitor/v20180724/api.json +11 -7
- tccli/services/monitor/v20180724/examples.json +6 -0
- tccli/services/ocr/v20181119/api.json +76 -0
- tccli/services/omics/v20221128/api.json +151 -23
- tccli/services/sqlserver/v20180328/api.json +9 -9
- tccli/services/sqlserver/v20180328/examples.json +4 -4
- tccli/services/teo/v20220901/api.json +14 -3
- tccli/services/vrs/v20200824/api.json +1 -1
- tccli/services/waf/v20180125/api.json +298 -67
- tccli/services/waf/v20180125/examples.json +18 -10
- tccli/services/waf/waf_client.py +75 -22
- tccli/services/wedata/v20210820/api.json +825 -0
- tccli/services/wedata/v20210820/examples.json +8 -0
- tccli/services/wedata/wedata_client.py +69 -16
- tccli/services/weilingwith/v20230427/api.json +490 -40
- tccli/services/weilingwith/v20230427/examples.json +5 -5
- {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/METADATA +2 -2
- {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/RECORD +52 -47
- {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/waf/waf_client.py
CHANGED
@@ -1681,7 +1681,7 @@ def doDescribeObjects(args, parsed_globals):
|
|
1681
1681
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1682
1682
|
|
1683
1683
|
|
1684
|
-
def
|
1684
|
+
def doUpsertCCAutoStatus(args, parsed_globals):
|
1685
1685
|
g_param = parse_global_arg(parsed_globals)
|
1686
1686
|
|
1687
1687
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1710,11 +1710,11 @@ def doDescribeRuleLimit(args, parsed_globals):
|
|
1710
1710
|
client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
|
1711
1711
|
client._sdkVersion += ("_CLI_" + __version__)
|
1712
1712
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1713
|
-
model = models.
|
1713
|
+
model = models.UpsertCCAutoStatusRequest()
|
1714
1714
|
model.from_json_string(json.dumps(args))
|
1715
1715
|
start_time = time.time()
|
1716
1716
|
while True:
|
1717
|
-
rsp = client.
|
1717
|
+
rsp = client.UpsertCCAutoStatus(model)
|
1718
1718
|
result = rsp.to_json_string()
|
1719
1719
|
try:
|
1720
1720
|
json_obj = json.loads(result)
|
@@ -1733,7 +1733,7 @@ def doDescribeRuleLimit(args, parsed_globals):
|
|
1733
1733
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1734
1734
|
|
1735
1735
|
|
1736
|
-
def
|
1736
|
+
def doDescribeRuleLimit(args, parsed_globals):
|
1737
1737
|
g_param = parse_global_arg(parsed_globals)
|
1738
1738
|
|
1739
1739
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1762,11 +1762,11 @@ def doDescribeDomains(args, parsed_globals):
|
|
1762
1762
|
client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
|
1763
1763
|
client._sdkVersion += ("_CLI_" + __version__)
|
1764
1764
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1765
|
-
model = models.
|
1765
|
+
model = models.DescribeRuleLimitRequest()
|
1766
1766
|
model.from_json_string(json.dumps(args))
|
1767
1767
|
start_time = time.time()
|
1768
1768
|
while True:
|
1769
|
-
rsp = client.
|
1769
|
+
rsp = client.DescribeRuleLimit(model)
|
1770
1770
|
result = rsp.to_json_string()
|
1771
1771
|
try:
|
1772
1772
|
json_obj = json.loads(result)
|
@@ -1785,7 +1785,7 @@ def doDescribeDomains(args, parsed_globals):
|
|
1785
1785
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1786
1786
|
|
1787
1787
|
|
1788
|
-
def
|
1788
|
+
def doDescribeDomains(args, parsed_globals):
|
1789
1789
|
g_param = parse_global_arg(parsed_globals)
|
1790
1790
|
|
1791
1791
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1814,11 +1814,11 @@ def doModifyHostStatus(args, parsed_globals):
|
|
1814
1814
|
client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
|
1815
1815
|
client._sdkVersion += ("_CLI_" + __version__)
|
1816
1816
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1817
|
-
model = models.
|
1817
|
+
model = models.DescribeDomainsRequest()
|
1818
1818
|
model.from_json_string(json.dumps(args))
|
1819
1819
|
start_time = time.time()
|
1820
1820
|
while True:
|
1821
|
-
rsp = client.
|
1821
|
+
rsp = client.DescribeDomains(model)
|
1822
1822
|
result = rsp.to_json_string()
|
1823
1823
|
try:
|
1824
1824
|
json_obj = json.loads(result)
|
@@ -1837,7 +1837,7 @@ def doModifyHostStatus(args, parsed_globals):
|
|
1837
1837
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1838
1838
|
|
1839
1839
|
|
1840
|
-
def
|
1840
|
+
def doModifyHostStatus(args, parsed_globals):
|
1841
1841
|
g_param = parse_global_arg(parsed_globals)
|
1842
1842
|
|
1843
1843
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1866,11 +1866,11 @@ def doDescribeModuleStatus(args, parsed_globals):
|
|
1866
1866
|
client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
|
1867
1867
|
client._sdkVersion += ("_CLI_" + __version__)
|
1868
1868
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1869
|
-
model = models.
|
1869
|
+
model = models.ModifyHostStatusRequest()
|
1870
1870
|
model.from_json_string(json.dumps(args))
|
1871
1871
|
start_time = time.time()
|
1872
1872
|
while True:
|
1873
|
-
rsp = client.
|
1873
|
+
rsp = client.ModifyHostStatus(model)
|
1874
1874
|
result = rsp.to_json_string()
|
1875
1875
|
try:
|
1876
1876
|
json_obj = json.loads(result)
|
@@ -1889,7 +1889,7 @@ def doDescribeModuleStatus(args, parsed_globals):
|
|
1889
1889
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1890
1890
|
|
1891
1891
|
|
1892
|
-
def
|
1892
|
+
def doDescribeModuleStatus(args, parsed_globals):
|
1893
1893
|
g_param = parse_global_arg(parsed_globals)
|
1894
1894
|
|
1895
1895
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1918,11 +1918,11 @@ def doUpsertIpAccessControl(args, parsed_globals):
|
|
1918
1918
|
client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
|
1919
1919
|
client._sdkVersion += ("_CLI_" + __version__)
|
1920
1920
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1921
|
-
model = models.
|
1921
|
+
model = models.DescribeModuleStatusRequest()
|
1922
1922
|
model.from_json_string(json.dumps(args))
|
1923
1923
|
start_time = time.time()
|
1924
1924
|
while True:
|
1925
|
-
rsp = client.
|
1925
|
+
rsp = client.DescribeModuleStatus(model)
|
1926
1926
|
result = rsp.to_json_string()
|
1927
1927
|
try:
|
1928
1928
|
json_obj = json.loads(result)
|
@@ -1941,7 +1941,7 @@ def doUpsertIpAccessControl(args, parsed_globals):
|
|
1941
1941
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1942
1942
|
|
1943
1943
|
|
1944
|
-
def
|
1944
|
+
def doUpsertIpAccessControl(args, parsed_globals):
|
1945
1945
|
g_param = parse_global_arg(parsed_globals)
|
1946
1946
|
|
1947
1947
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1970,11 +1970,11 @@ def doGetAttackHistogram(args, parsed_globals):
|
|
1970
1970
|
client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
|
1971
1971
|
client._sdkVersion += ("_CLI_" + __version__)
|
1972
1972
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1973
|
-
model = models.
|
1973
|
+
model = models.UpsertIpAccessControlRequest()
|
1974
1974
|
model.from_json_string(json.dumps(args))
|
1975
1975
|
start_time = time.time()
|
1976
1976
|
while True:
|
1977
|
-
rsp = client.
|
1977
|
+
rsp = client.UpsertIpAccessControl(model)
|
1978
1978
|
result = rsp.to_json_string()
|
1979
1979
|
try:
|
1980
1980
|
json_obj = json.loads(result)
|
@@ -1993,7 +1993,7 @@ def doGetAttackHistogram(args, parsed_globals):
|
|
1993
1993
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1994
1994
|
|
1995
1995
|
|
1996
|
-
def
|
1996
|
+
def doGetAttackHistogram(args, parsed_globals):
|
1997
1997
|
g_param = parse_global_arg(parsed_globals)
|
1998
1998
|
|
1999
1999
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2022,11 +2022,11 @@ def doModifyWafAutoDenyStatus(args, parsed_globals):
|
|
2022
2022
|
client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
|
2023
2023
|
client._sdkVersion += ("_CLI_" + __version__)
|
2024
2024
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2025
|
-
model = models.
|
2025
|
+
model = models.GetAttackHistogramRequest()
|
2026
2026
|
model.from_json_string(json.dumps(args))
|
2027
2027
|
start_time = time.time()
|
2028
2028
|
while True:
|
2029
|
-
rsp = client.
|
2029
|
+
rsp = client.GetAttackHistogram(model)
|
2030
2030
|
result = rsp.to_json_string()
|
2031
2031
|
try:
|
2032
2032
|
json_obj = json.loads(result)
|
@@ -6517,6 +6517,58 @@ def doUpsertSession(args, parsed_globals):
|
|
6517
6517
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6518
6518
|
|
6519
6519
|
|
6520
|
+
def doDescribeCCAutoStatus(args, parsed_globals):
|
6521
|
+
g_param = parse_global_arg(parsed_globals)
|
6522
|
+
|
6523
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
6524
|
+
cred = credential.CVMRoleCredential()
|
6525
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
6526
|
+
cred = credential.STSAssumeRoleCredential(
|
6527
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
6528
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
6529
|
+
)
|
6530
|
+
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):
|
6531
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
6532
|
+
else:
|
6533
|
+
cred = credential.Credential(
|
6534
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
6535
|
+
)
|
6536
|
+
http_profile = HttpProfile(
|
6537
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
6538
|
+
reqMethod="POST",
|
6539
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
6540
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
6541
|
+
)
|
6542
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
6543
|
+
if g_param[OptionsDefine.Language]:
|
6544
|
+
profile.language = g_param[OptionsDefine.Language]
|
6545
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
6546
|
+
client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
|
6547
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
6548
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6549
|
+
model = models.DescribeCCAutoStatusRequest()
|
6550
|
+
model.from_json_string(json.dumps(args))
|
6551
|
+
start_time = time.time()
|
6552
|
+
while True:
|
6553
|
+
rsp = client.DescribeCCAutoStatus(model)
|
6554
|
+
result = rsp.to_json_string()
|
6555
|
+
try:
|
6556
|
+
json_obj = json.loads(result)
|
6557
|
+
except TypeError as e:
|
6558
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
6559
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
6560
|
+
break
|
6561
|
+
cur_time = time.time()
|
6562
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
6563
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
6564
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
6565
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
6566
|
+
else:
|
6567
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
6568
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
6569
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6570
|
+
|
6571
|
+
|
6520
6572
|
def doDescribeUserSignatureRule(args, parsed_globals):
|
6521
6573
|
g_param = parse_global_arg(parsed_globals)
|
6522
6574
|
|
@@ -6872,13 +6924,13 @@ ACTION_MAP = {
|
|
6872
6924
|
"GenerateDealsAndPayNew": doGenerateDealsAndPayNew,
|
6873
6925
|
"DeleteAntiInfoLeakRule": doDeleteAntiInfoLeakRule,
|
6874
6926
|
"DescribeObjects": doDescribeObjects,
|
6927
|
+
"UpsertCCAutoStatus": doUpsertCCAutoStatus,
|
6875
6928
|
"DescribeRuleLimit": doDescribeRuleLimit,
|
6876
6929
|
"DescribeDomains": doDescribeDomains,
|
6877
6930
|
"ModifyHostStatus": doModifyHostStatus,
|
6878
6931
|
"DescribeModuleStatus": doDescribeModuleStatus,
|
6879
6932
|
"UpsertIpAccessControl": doUpsertIpAccessControl,
|
6880
6933
|
"GetAttackHistogram": doGetAttackHistogram,
|
6881
|
-
"ModifyWafAutoDenyStatus": doModifyWafAutoDenyStatus,
|
6882
6934
|
"ModifyAccessPeriod": doModifyAccessPeriod,
|
6883
6935
|
"ModifyAntiFakeUrlStatus": doModifyAntiFakeUrlStatus,
|
6884
6936
|
"DescribeVipInfo": doDescribeVipInfo,
|
@@ -6965,6 +7017,7 @@ ACTION_MAP = {
|
|
6965
7017
|
"DescribeCCRuleList": doDescribeCCRuleList,
|
6966
7018
|
"ModifyWebshellStatus": doModifyWebshellStatus,
|
6967
7019
|
"UpsertSession": doUpsertSession,
|
7020
|
+
"DescribeCCAutoStatus": doDescribeCCAutoStatus,
|
6968
7021
|
"DescribeUserSignatureRule": doDescribeUserSignatureRule,
|
6969
7022
|
"FreshAntiFakeUrl": doFreshAntiFakeUrl,
|
6970
7023
|
"DescribeDomainRules": doDescribeDomainRules,
|