tccli 3.0.1280.1__py2.py3-none-any.whl → 3.0.1282.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.
Files changed (59) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/acp/v20220105/api.json +80 -77
  3. tccli/services/acp/v20220105/examples.json +1 -1
  4. tccli/services/aiart/aiart_client.py +53 -0
  5. tccli/services/aiart/v20221229/api.json +62 -0
  6. tccli/services/aiart/v20221229/examples.json +8 -0
  7. tccli/services/autoscaling/v20180419/api.json +1 -1
  8. tccli/services/ccc/v20200210/api.json +9 -0
  9. tccli/services/cfg/v20210820/api.json +36 -23
  10. tccli/services/cfg/v20210820/examples.json +11 -11
  11. tccli/services/controlcenter/controlcenter_client.py +212 -0
  12. tccli/services/controlcenter/v20230110/api.json +516 -0
  13. tccli/services/controlcenter/v20230110/examples.json +32 -0
  14. tccli/services/cvm/cvm_client.py +212 -0
  15. tccli/services/cvm/v20170312/api.json +793 -4
  16. tccli/services/cvm/v20170312/examples.json +32 -0
  17. tccli/services/cynosdb/v20190107/api.json +13 -3
  18. tccli/services/dlc/v20210125/api.json +11 -0
  19. tccli/services/domain/v20180808/api.json +3 -3
  20. tccli/services/ess/v20201111/api.json +2 -2
  21. tccli/services/essbasic/v20210526/api.json +2 -2
  22. tccli/services/ims/v20201229/api.json +1 -1
  23. tccli/services/iotexplorer/v20190423/api.json +128 -0
  24. tccli/services/iotexplorer/v20190423/examples.json +3 -3
  25. tccli/services/keewidb/v20220308/api.json +2 -2
  26. tccli/services/lcic/v20220817/api.json +110 -63
  27. tccli/services/lcic/v20220817/examples.json +6 -6
  28. tccli/services/live/v20180801/api.json +15 -14
  29. tccli/services/lke/lke_client.py +4 -110
  30. tccli/services/lke/v20231130/api.json +0 -164
  31. tccli/services/lke/v20231130/examples.json +0 -16
  32. tccli/services/lowcode/v20210108/api.json +120 -11
  33. tccli/services/lowcode/v20210108/examples.json +9 -9
  34. tccli/services/mariadb/v20170312/api.json +7 -7
  35. tccli/services/mariadb/v20170312/examples.json +1 -1
  36. tccli/services/mongodb/v20190725/api.json +3 -3
  37. tccli/services/mqtt/mqtt_client.py +216 -4
  38. tccli/services/mqtt/v20240516/api.json +515 -0
  39. tccli/services/mqtt/v20240516/examples.json +38 -0
  40. tccli/services/ocr/v20181119/api.json +3 -3
  41. tccli/services/organization/organization_client.py +114 -8
  42. tccli/services/organization/v20210331/api.json +86 -0
  43. tccli/services/organization/v20210331/examples.json +16 -0
  44. tccli/services/partners/partners_client.py +61 -8
  45. tccli/services/partners/v20180321/api.json +110 -0
  46. tccli/services/partners/v20180321/examples.json +8 -0
  47. tccli/services/sms/v20190711/examples.json +1 -1
  48. tccli/services/sms/v20210111/examples.json +1 -1
  49. tccli/services/tat/v20201028/api.json +141 -128
  50. tccli/services/tat/v20201028/examples.json +12 -12
  51. tccli/services/teo/v20220901/api.json +4 -4
  52. tccli/services/tke/v20180525/api.json +293 -293
  53. tccli/services/tke/v20220501/api.json +2 -2
  54. tccli/services/vdb/v20230616/api.json +12 -12
  55. {tccli-3.0.1280.1.dist-info → tccli-3.0.1282.1.dist-info}/METADATA +2 -2
  56. {tccli-3.0.1280.1.dist-info → tccli-3.0.1282.1.dist-info}/RECORD +59 -59
  57. {tccli-3.0.1280.1.dist-info → tccli-3.0.1282.1.dist-info}/WHEEL +0 -0
  58. {tccli-3.0.1280.1.dist-info → tccli-3.0.1282.1.dist-info}/entry_points.txt +0 -0
  59. {tccli-3.0.1280.1.dist-info → tccli-3.0.1282.1.dist-info}/license_files/LICENSE +0 -0
@@ -849,7 +849,7 @@ def doModifyInstanceCertBinding(args, parsed_globals):
849
849
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
850
850
 
851
851
 
852
- def doApplyRegistrationCode(args, parsed_globals):
852
+ def doDescribeInsVPCEndpoints(args, parsed_globals):
853
853
  g_param = parse_global_arg(parsed_globals)
854
854
 
855
855
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -878,11 +878,115 @@ def doApplyRegistrationCode(args, parsed_globals):
878
878
  client = mod.MqttClient(cred, g_param[OptionsDefine.Region], profile)
879
879
  client._sdkVersion += ("_CLI_" + __version__)
880
880
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
881
- model = models.ApplyRegistrationCodeRequest()
881
+ model = models.DescribeInsVPCEndpointsRequest()
882
882
  model.from_json_string(json.dumps(args))
883
883
  start_time = time.time()
884
884
  while True:
885
- rsp = client.ApplyRegistrationCode(model)
885
+ rsp = client.DescribeInsVPCEndpoints(model)
886
+ result = rsp.to_json_string()
887
+ try:
888
+ json_obj = json.loads(result)
889
+ except TypeError as e:
890
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
891
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
892
+ break
893
+ cur_time = time.time()
894
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
895
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
896
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
897
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
898
+ else:
899
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
900
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
901
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
902
+
903
+
904
+ def doDescribeMessageList(args, parsed_globals):
905
+ g_param = parse_global_arg(parsed_globals)
906
+
907
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
908
+ cred = credential.CVMRoleCredential()
909
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
910
+ cred = credential.STSAssumeRoleCredential(
911
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
912
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
913
+ )
914
+ 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):
915
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
916
+ else:
917
+ cred = credential.Credential(
918
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
919
+ )
920
+ http_profile = HttpProfile(
921
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
922
+ reqMethod="POST",
923
+ endpoint=g_param[OptionsDefine.Endpoint],
924
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
925
+ )
926
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
927
+ if g_param[OptionsDefine.Language]:
928
+ profile.language = g_param[OptionsDefine.Language]
929
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
930
+ client = mod.MqttClient(cred, g_param[OptionsDefine.Region], profile)
931
+ client._sdkVersion += ("_CLI_" + __version__)
932
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
933
+ model = models.DescribeMessageListRequest()
934
+ model.from_json_string(json.dumps(args))
935
+ start_time = time.time()
936
+ while True:
937
+ rsp = client.DescribeMessageList(model)
938
+ result = rsp.to_json_string()
939
+ try:
940
+ json_obj = json.loads(result)
941
+ except TypeError as e:
942
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
943
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
944
+ break
945
+ cur_time = time.time()
946
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
947
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
948
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
949
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
950
+ else:
951
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
952
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
953
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
954
+
955
+
956
+ def doDescribeClientList(args, parsed_globals):
957
+ g_param = parse_global_arg(parsed_globals)
958
+
959
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
960
+ cred = credential.CVMRoleCredential()
961
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
962
+ cred = credential.STSAssumeRoleCredential(
963
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
964
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
965
+ )
966
+ 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):
967
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
968
+ else:
969
+ cred = credential.Credential(
970
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
971
+ )
972
+ http_profile = HttpProfile(
973
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
974
+ reqMethod="POST",
975
+ endpoint=g_param[OptionsDefine.Endpoint],
976
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
977
+ )
978
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
979
+ if g_param[OptionsDefine.Language]:
980
+ profile.language = g_param[OptionsDefine.Language]
981
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
982
+ client = mod.MqttClient(cred, g_param[OptionsDefine.Region], profile)
983
+ client._sdkVersion += ("_CLI_" + __version__)
984
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
985
+ model = models.DescribeClientListRequest()
986
+ model.from_json_string(json.dumps(args))
987
+ start_time = time.time()
988
+ while True:
989
+ rsp = client.DescribeClientList(model)
886
990
  result = rsp.to_json_string()
887
991
  try:
888
992
  json_obj = json.loads(result)
@@ -1161,6 +1265,58 @@ def doDeleteDeviceCertificate(args, parsed_globals):
1161
1265
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1162
1266
 
1163
1267
 
1268
+ def doApplyRegistrationCode(args, parsed_globals):
1269
+ g_param = parse_global_arg(parsed_globals)
1270
+
1271
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1272
+ cred = credential.CVMRoleCredential()
1273
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1274
+ cred = credential.STSAssumeRoleCredential(
1275
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1276
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1277
+ )
1278
+ 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):
1279
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1280
+ else:
1281
+ cred = credential.Credential(
1282
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1283
+ )
1284
+ http_profile = HttpProfile(
1285
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1286
+ reqMethod="POST",
1287
+ endpoint=g_param[OptionsDefine.Endpoint],
1288
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1289
+ )
1290
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1291
+ if g_param[OptionsDefine.Language]:
1292
+ profile.language = g_param[OptionsDefine.Language]
1293
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1294
+ client = mod.MqttClient(cred, g_param[OptionsDefine.Region], profile)
1295
+ client._sdkVersion += ("_CLI_" + __version__)
1296
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1297
+ model = models.ApplyRegistrationCodeRequest()
1298
+ model.from_json_string(json.dumps(args))
1299
+ start_time = time.time()
1300
+ while True:
1301
+ rsp = client.ApplyRegistrationCode(model)
1302
+ result = rsp.to_json_string()
1303
+ try:
1304
+ json_obj = json.loads(result)
1305
+ except TypeError as e:
1306
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1307
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1308
+ break
1309
+ cur_time = time.time()
1310
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1311
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1312
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1313
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1314
+ else:
1315
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1316
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1317
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1318
+
1319
+
1164
1320
  def doModifyJWKSAuthenticator(args, parsed_globals):
1165
1321
  g_param = parse_global_arg(parsed_globals)
1166
1322
 
@@ -1421,6 +1577,58 @@ def doRevokedDeviceCertificate(args, parsed_globals):
1421
1577
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1422
1578
 
1423
1579
 
1580
+ def doDescribeSharedSubscriptionLag(args, parsed_globals):
1581
+ g_param = parse_global_arg(parsed_globals)
1582
+
1583
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1584
+ cred = credential.CVMRoleCredential()
1585
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1586
+ cred = credential.STSAssumeRoleCredential(
1587
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1588
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1589
+ )
1590
+ 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):
1591
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1592
+ else:
1593
+ cred = credential.Credential(
1594
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1595
+ )
1596
+ http_profile = HttpProfile(
1597
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1598
+ reqMethod="POST",
1599
+ endpoint=g_param[OptionsDefine.Endpoint],
1600
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1601
+ )
1602
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1603
+ if g_param[OptionsDefine.Language]:
1604
+ profile.language = g_param[OptionsDefine.Language]
1605
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1606
+ client = mod.MqttClient(cred, g_param[OptionsDefine.Region], profile)
1607
+ client._sdkVersion += ("_CLI_" + __version__)
1608
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1609
+ model = models.DescribeSharedSubscriptionLagRequest()
1610
+ model.from_json_string(json.dumps(args))
1611
+ start_time = time.time()
1612
+ while True:
1613
+ rsp = client.DescribeSharedSubscriptionLag(model)
1614
+ result = rsp.to_json_string()
1615
+ try:
1616
+ json_obj = json.loads(result)
1617
+ except TypeError as e:
1618
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1619
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1620
+ break
1621
+ cur_time = time.time()
1622
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1623
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1624
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1625
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1626
+ else:
1627
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1628
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1629
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1630
+
1631
+
1424
1632
  def doDescribeInstance(args, parsed_globals):
1425
1633
  g_param = parse_global_arg(parsed_globals)
1426
1634
 
@@ -2436,17 +2644,21 @@ ACTION_MAP = {
2436
2644
  "DescribeAuthenticator": doDescribeAuthenticator,
2437
2645
  "RegisterDeviceCertificate": doRegisterDeviceCertificate,
2438
2646
  "ModifyInstanceCertBinding": doModifyInstanceCertBinding,
2439
- "ApplyRegistrationCode": doApplyRegistrationCode,
2647
+ "DescribeInsVPCEndpoints": doDescribeInsVPCEndpoints,
2648
+ "DescribeMessageList": doDescribeMessageList,
2649
+ "DescribeClientList": doDescribeClientList,
2440
2650
  "DescribeProductSKUList": doDescribeProductSKUList,
2441
2651
  "DescribeCaCertificates": doDescribeCaCertificates,
2442
2652
  "ActivateCaCertificate": doActivateCaCertificate,
2443
2653
  "CreateTopic": doCreateTopic,
2444
2654
  "DeleteDeviceCertificate": doDeleteDeviceCertificate,
2655
+ "ApplyRegistrationCode": doApplyRegistrationCode,
2445
2656
  "ModifyJWKSAuthenticator": doModifyJWKSAuthenticator,
2446
2657
  "PublishMessage": doPublishMessage,
2447
2658
  "DescribeDeviceCertificate": doDescribeDeviceCertificate,
2448
2659
  "DeleteInsPublicEndpoint": doDeleteInsPublicEndpoint,
2449
2660
  "RevokedDeviceCertificate": doRevokedDeviceCertificate,
2661
+ "DescribeSharedSubscriptionLag": doDescribeSharedSubscriptionLag,
2450
2662
  "DescribeInstance": doDescribeInstance,
2451
2663
  "DeleteTopic": doDeleteTopic,
2452
2664
  "DeleteUser": doDeleteUser,