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.
Files changed (52) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cynosdb/v20190107/DescribeClusterDatabases.md +24 -0
  3. tccli/examples/essbasic/v20210526/ChannelDeleteSealPolicies.md +10 -7
  4. tccli/examples/essbasic/v20210526/ChannelDescribeOrganizationSeals.md +6 -5
  5. tccli/examples/essbasic/v20210526/ChannelDescribeRoles.md +669 -447
  6. tccli/examples/essbasic/v20210526/ChannelUpdateSealStatus.md +6 -3
  7. tccli/examples/faceid/v20180301/DetectAIFakeFaces.md +52 -0
  8. tccli/examples/monitor/v20180724/ModifyAlarmPolicyCondition.md +77 -0
  9. tccli/examples/sqlserver/v20180328/CreateAccount.md +1 -1
  10. tccli/examples/sqlserver/v20180328/ModifyAccountPrivilege.md +1 -1
  11. tccli/examples/sqlserver/v20180328/RestartDBInstance.md +1 -1
  12. tccli/examples/sqlserver/v20180328/StartInstanceXEvent.md +1 -1
  13. tccli/examples/waf/v20180125/DescribeCCAutoStatus.md +21 -0
  14. tccli/examples/waf/v20180125/DescribeCCRuleList.md +59 -1
  15. tccli/examples/waf/v20180125/UpsertCCAutoStatus.md +22 -0
  16. tccli/examples/wedata/v20210820/DescribeTableMetas.md +90 -0
  17. tccli/examples/weilingwith/v20230427/DescribeApplicationList.md +48 -2
  18. tccli/examples/weilingwith/v20230427/DescribeDeviceShadowList.md +21 -2
  19. tccli/examples/weilingwith/v20230427/DescribeVideoRecordStream.md +9 -1
  20. tccli/services/cdb/v20170320/api.json +2 -2
  21. tccli/services/cynosdb/cynosdb_client.py +53 -0
  22. tccli/services/cynosdb/v20190107/api.json +92 -0
  23. tccli/services/cynosdb/v20190107/examples.json +8 -0
  24. tccli/services/ess/v20201111/api.json +1 -1
  25. tccli/services/essbasic/v20210526/api.json +31 -22
  26. tccli/services/essbasic/v20210526/examples.json +12 -12
  27. tccli/services/faceid/faceid_client.py +53 -0
  28. tccli/services/faceid/v20180301/api.json +79 -0
  29. tccli/services/faceid/v20180301/examples.json +14 -0
  30. tccli/services/gaap/v20180529/api.json +10 -0
  31. tccli/services/live/v20180801/api.json +18 -0
  32. tccli/services/monitor/v20180724/api.json +11 -7
  33. tccli/services/monitor/v20180724/examples.json +6 -0
  34. tccli/services/ocr/v20181119/api.json +76 -0
  35. tccli/services/omics/v20221128/api.json +151 -23
  36. tccli/services/sqlserver/v20180328/api.json +9 -9
  37. tccli/services/sqlserver/v20180328/examples.json +4 -4
  38. tccli/services/teo/v20220901/api.json +14 -3
  39. tccli/services/vrs/v20200824/api.json +1 -1
  40. tccli/services/waf/v20180125/api.json +298 -67
  41. tccli/services/waf/v20180125/examples.json +18 -10
  42. tccli/services/waf/waf_client.py +75 -22
  43. tccli/services/wedata/v20210820/api.json +825 -0
  44. tccli/services/wedata/v20210820/examples.json +8 -0
  45. tccli/services/wedata/wedata_client.py +69 -16
  46. tccli/services/weilingwith/v20230427/api.json +490 -40
  47. tccli/services/weilingwith/v20230427/examples.json +5 -5
  48. {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/METADATA +2 -2
  49. {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/RECORD +52 -47
  50. {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/WHEEL +0 -0
  51. {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/entry_points.txt +0 -0
  52. {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/license_files/LICENSE +0 -0
@@ -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 doDescribeRuleLimit(args, parsed_globals):
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.DescribeRuleLimitRequest()
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.DescribeRuleLimit(model)
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 doDescribeDomains(args, parsed_globals):
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.DescribeDomainsRequest()
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.DescribeDomains(model)
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 doModifyHostStatus(args, parsed_globals):
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.ModifyHostStatusRequest()
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.ModifyHostStatus(model)
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 doDescribeModuleStatus(args, parsed_globals):
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.DescribeModuleStatusRequest()
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.DescribeModuleStatus(model)
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 doUpsertIpAccessControl(args, parsed_globals):
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.UpsertIpAccessControlRequest()
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.UpsertIpAccessControl(model)
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 doGetAttackHistogram(args, parsed_globals):
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.GetAttackHistogramRequest()
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.GetAttackHistogram(model)
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 doModifyWafAutoDenyStatus(args, parsed_globals):
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.ModifyWafAutoDenyStatusRequest()
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.ModifyWafAutoDenyStatus(model)
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,