tccli 3.0.1267.1__py2.py3-none-any.whl → 3.0.1269.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 (101) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +5 -1
  3. tccli/services/aiart/aiart_client.py +106 -0
  4. tccli/services/aiart/v20221229/api.json +275 -0
  5. tccli/services/aiart/v20221229/examples.json +16 -0
  6. tccli/services/antiddos/v20200309/api.json +194 -136
  7. tccli/services/antiddos/v20200309/examples.json +15 -15
  8. tccli/services/bi/v20220105/api.json +1 -1
  9. tccli/services/billing/billing_client.py +4 -163
  10. tccli/services/billing/v20180709/api.json +0 -489
  11. tccli/services/billing/v20180709/examples.json +0 -24
  12. tccli/services/cat/v20180409/api.json +3 -1
  13. tccli/services/cbs/v20170312/api.json +27 -0
  14. tccli/services/ccc/v20200210/api.json +11 -11
  15. tccli/services/ccc/v20200210/examples.json +2 -2
  16. tccli/services/cdb/v20170320/api.json +48 -18
  17. tccli/services/cdn/v20180606/api.json +3 -0
  18. tccli/services/cfw/v20190904/api.json +30 -30
  19. tccli/services/ckafka/v20190819/api.json +10 -0
  20. tccli/services/cloudaudit/v20190319/api.json +3 -3
  21. tccli/services/cloudaudit/v20190319/examples.json +1 -1
  22. tccli/services/csip/v20221121/api.json +38 -38
  23. tccli/services/cwp/cwp_client.py +4 -57
  24. tccli/services/cwp/v20180228/api.json +11 -185
  25. tccli/services/cwp/v20180228/examples.json +0 -8
  26. tccli/services/cynosdb/v20190107/api.json +1 -1
  27. tccli/services/cynosdb/v20190107/examples.json +1 -1
  28. tccli/services/dcdb/dcdb_client.py +122 -16
  29. tccli/services/dcdb/v20180411/api.json +222 -0
  30. tccli/services/dcdb/v20180411/examples.json +16 -0
  31. tccli/services/dlc/v20210125/api.json +145 -26
  32. tccli/services/dlc/v20210125/examples.json +18 -18
  33. tccli/services/domain/v20180808/api.json +8 -8
  34. tccli/services/domain/v20180808/examples.json +3 -3
  35. tccli/services/es/v20180416/api.json +9 -9
  36. tccli/services/ess/v20201111/api.json +1 -1
  37. tccli/services/essbasic/v20210526/api.json +3 -3
  38. tccli/services/essbasic/v20210526/examples.json +2 -2
  39. tccli/services/facefusion/v20220927/api.json +4 -4
  40. tccli/services/faceid/v20180301/api.json +5 -5
  41. tccli/services/faceid/v20180301/examples.json +6 -0
  42. tccli/services/gme/v20180711/api.json +118 -115
  43. tccli/services/gme/v20180711/examples.json +6 -6
  44. tccli/services/hunyuan/v20230901/api.json +9 -0
  45. tccli/services/iotexplorer/v20190423/api.json +4 -4
  46. tccli/services/iotexplorer/v20190423/examples.json +5 -5
  47. tccli/services/keewidb/v20220308/api.json +2 -2
  48. tccli/services/lcic/lcic_client.py +61 -8
  49. tccli/services/lcic/v20220817/api.json +230 -177
  50. tccli/services/lcic/v20220817/examples.json +10 -2
  51. tccli/services/lighthouse/v20200324/api.json +80 -71
  52. tccli/services/live/v20180801/api.json +60 -4
  53. tccli/services/lke/v20231130/api.json +31 -0
  54. tccli/services/lkeap/v20240522/api.json +55 -9
  55. tccli/services/lkeap/v20240522/examples.json +1 -1
  56. tccli/services/mna/mna_client.py +106 -0
  57. tccli/services/mna/v20210119/api.json +246 -0
  58. tccli/services/mna/v20210119/examples.json +16 -0
  59. tccli/services/monitor/monitor_client.py +62 -57
  60. tccli/services/monitor/v20230616/api.json +266 -0
  61. tccli/services/monitor/v20230616/examples.json +19 -0
  62. tccli/services/mqtt/mqtt_client.py +489 -12
  63. tccli/services/mqtt/v20240516/api.json +864 -3
  64. tccli/services/mqtt/v20240516/examples.json +72 -0
  65. tccli/services/ocr/ocr_client.py +53 -0
  66. tccli/services/ocr/v20181119/api.json +287 -23
  67. tccli/services/ocr/v20181119/examples.json +8 -0
  68. tccli/services/postgres/postgres_client.py +334 -16
  69. tccli/services/postgres/v20170312/api.json +718 -35
  70. tccli/services/postgres/v20170312/examples.json +72 -0
  71. tccli/services/rum/v20210622/api.json +1 -1
  72. tccli/services/smh/v20210712/api.json +50 -30
  73. tccli/services/ssl/v20191205/api.json +496 -493
  74. tccli/services/ssl/v20191205/examples.json +144 -24
  75. tccli/services/taf/taf_client.py +0 -159
  76. tccli/services/taf/v20200210/api.json +0 -665
  77. tccli/services/taf/v20200210/examples.json +0 -24
  78. tccli/services/tdmq/v20200217/api.json +97 -0
  79. tccli/services/teo/v20220901/api.json +5 -5
  80. tccli/services/thpc/v20230321/api.json +19 -0
  81. tccli/services/tione/v20211111/api.json +14 -3
  82. tccli/services/trabbit/__init__.py +4 -0
  83. tccli/services/trabbit/trabbit_client.py +1691 -0
  84. tccli/services/trabbit/v20230418/api.json +4773 -0
  85. tccli/services/trabbit/v20230418/examples.json +237 -0
  86. tccli/services/trocket/v20230308/api.json +130 -11
  87. tccli/services/trtc/v20190722/api.json +8 -8
  88. tccli/services/trtc/v20190722/examples.json +2 -2
  89. tccli/services/vclm/v20240523/api.json +0 -450
  90. tccli/services/vclm/v20240523/examples.json +0 -48
  91. tccli/services/vclm/vclm_client.py +0 -159
  92. tccli/services/vpc/v20170312/api.json +46 -39
  93. tccli/services/vpc/v20170312/examples.json +3 -3
  94. tccli/services/wedata/v20210820/api.json +240 -42
  95. tccli/services/wedata/v20210820/examples.json +17 -3
  96. tccli/services/wedata/wedata_client.py +53 -0
  97. {tccli-3.0.1267.1.dist-info → tccli-3.0.1269.1.dist-info}/METADATA +2 -2
  98. {tccli-3.0.1267.1.dist-info → tccli-3.0.1269.1.dist-info}/RECORD +101 -95
  99. {tccli-3.0.1267.1.dist-info → tccli-3.0.1269.1.dist-info}/WHEEL +0 -0
  100. {tccli-3.0.1267.1.dist-info → tccli-3.0.1269.1.dist-info}/entry_points.txt +0 -0
  101. {tccli-3.0.1267.1.dist-info → tccli-3.0.1269.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,5 +1,13 @@
1
1
  {
2
2
  "actions": {
3
+ "ActivateCaCertificate": [
4
+ {
5
+ "document": "示例",
6
+ "input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ActivateCaCertificate\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-g4r4x85z\",\n \"CaSn\": \"1b1e3bf3702110125887a3a721a7e66f05522513\"\n}",
7
+ "output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"RequestId\": \"ab925a7a-bac9-4a6c-bf81-af13f9f9db48\"\n }\n}",
8
+ "title": "示例"
9
+ }
10
+ ],
3
11
  "ActivateDeviceCertificate": [
4
12
  {
5
13
  "document": "示例",
@@ -8,6 +16,14 @@
8
16
  "title": "示例"
9
17
  }
10
18
  ],
19
+ "ApplyRegistrationCode": [
20
+ {
21
+ "document": "示例",
22
+ "input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ApplyRegistrationCode\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-jeredv33\"\n}",
23
+ "output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"InstanceId\": \"mqtt-jeredv33\",\n \"RegistrationCode\": \"bb180052-7df5-4ff3-bda9-9b12fed8bf39\",\n \"RequestId\": \"8251a13b-b8a0-4134-bc43-5b3ab4253f92\"\n }\n}",
24
+ "title": "示例"
25
+ }
26
+ ],
11
27
  "CreateAuthorizationPolicy": [
12
28
  {
13
29
  "document": "示例",
@@ -64,6 +80,14 @@
64
80
  "title": "示例"
65
81
  }
66
82
  ],
83
+ "DeactivateCaCertificate": [
84
+ {
85
+ "document": "示例",
86
+ "input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeactivateCaCertificate\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-g4r4x85z\",\n \"CaSn\": \"1b1e3bf3702110125887a3a721a7e66f05522513\"\n}",
87
+ "output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"RequestId\": \"7ec2bb28-db0c-47a8-99dd-589732de4f58\"\n }\n}",
88
+ "title": "示例"
89
+ }
90
+ ],
67
91
  "DeactivateDeviceCertificate": [
68
92
  {
69
93
  "document": "示例",
@@ -88,6 +112,14 @@
88
112
  "title": "示例"
89
113
  }
90
114
  ],
115
+ "DeleteCaCertificate": [
116
+ {
117
+ "document": "示例",
118
+ "input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteCaCertificate\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-g4r4x85z\",\n \"CaSn\": \"1b1e3bf3702110125887a3a721a7e66f05522513\"\n}",
119
+ "output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"RequestId\": \"c180b739-df35-41a7-b7d0-796c8b4e9c55\"\n }\n}",
120
+ "title": "示例"
121
+ }
122
+ ],
91
123
  "DeleteDeviceCertificate": [
92
124
  {
93
125
  "document": "示例",
@@ -150,6 +182,22 @@
150
182
  "title": "示例"
151
183
  }
152
184
  ],
185
+ "DescribeCaCertificate": [
186
+ {
187
+ "document": "示例",
188
+ "input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCaCertificate\n<公共请求参数>\n\n{\n \"CaSn\": \"1b1e3bf3702110125887a3a721a7e66f05522513\",\n \"InstanceId\": \"mqtt-jbgwp4ae\"\n}",
189
+ "output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"CaCertificate\": \"-----BEGIN CERTIFICATE-----\\nMIIEvDCCA6SgAwIBAgIUGx4783AhEBJYh6OnIafmbwVSJRMwDQYJKoZIhvcNAQEL\\nBQAwgZIxCzAJBgNVBAYTAmNuMQ0wCwYDVQQIDAR4aWFuMQ0wCwYDVQQHDARodXlp\\nMREwDwYDVQQKDAhqZWhhbnN1bjEWMBQGA1UECwwNdW5pdCBqZWhhbnN1bjEVMBMG\\nA1UEAwwMc3Vuamlhbnhpb25nMSMwIQYJKoZIhvc1UEBwwEaHV5aTERMA8GA1UECgwI\\namVoYW5zdW4xFjAUBgNVB\\n-----END CERTIFICATE-----\\n\",\n \"CaCn\": \"sn\",\n \"CaIssuerCn\": \"cn\",\n \"CaSn\": \"1b1e3bf3702110125887a3a721a7e66f05522513\",\n \"CreatedTime\": 1724050364000,\n \"Format\": \"PEM\",\n \"LastActivationTime\": 1724050364340,\n \"LastInactivationTime\": 0,\n \"NotAfterTime\": 2030344601000,\n \"NotBeforeTime\": 1724052316000,\n \"RequestId\": \"7cb5d884-35a0-4f35-9cca-24c7d748a034\",\n \"Status\": \"ACTIVE\",\n \"UpdateTime\": 1724050364000\n }\n}",
190
+ "title": "示例"
191
+ }
192
+ ],
193
+ "DescribeCaCertificates": [
194
+ {
195
+ "document": "示例",
196
+ "input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCaCertificates\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-mmgej724\"\n}",
197
+ "output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"Data\": [\n {\n \"CaCertificate\": \"-----BEGIN CERTIFICATE-----\\nMIIEvDCCA6SgAwIBAgIUGx4783AhEBJYh6OnIafmbwVSJRMwDQYJKoZIhvcNAQEL\\n-----END CERTIFICATE-----\",\n \"CaCn\": \"cn\",\n \"CaSn\": \"1b1e3bf3702110125887a3a721a7e66f05522513\",\n \"CreatedTime\": 1719992244000,\n \"Format\": \"PEM\",\n \"Status\": \"ACTIVE\",\n \"UpdateTime\": 1719992244000,\n \"LastInactivationTime\": 1719992244000,\n \"LastActivationTime\": 1719992244000,\n \"VerificationCertificate\": \"-----BEGIN CERTIFICATE-----\\nMIID7TCCAtWgAwIBAgIUDu9opYK5QlQpblTOdU+U1welmRIwDQYJKoZIhvcNAQEL\\n-----END CERTIFICATE-----\"\n }\n ],\n \"RequestId\": \"d03f799b-1244-45d7-9e03-0ceaf8f63fed\"\n }\n}",
198
+ "title": "示例"
199
+ }
200
+ ],
153
201
  "DescribeDeviceCertificate": [
154
202
  {
155
203
  "document": "示例",
@@ -190,6 +238,14 @@
190
238
  "title": "示例"
191
239
  }
192
240
  ],
241
+ "DescribeProductSKUList": [
242
+ {
243
+ "document": "示例",
244
+ "input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeProductSKUList\n<公共请求参数>\n\n{}",
245
+ "output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"MQTTProductSkuList\": [\n {\n \"ClientNumLimit\": 1,\n \"InstanceType\": \"BASIC\",\n \"OnSale\": true,\n \"SkuCode\": \"mqtt_1k\",\n \"TopicNumLimit\": 1,\n \"TpsLimit\": 1\n },\n {\n \"ClientNumLimit\": 1000,\n \"InstanceType\": \"BASIC\",\n \"OnSale\": true,\n \"SkuCode\": \"basic_1k\",\n \"TopicNumLimit\": 25,\n \"TpsLimit\": 1000\n }\n ],\n \"RequestId\": \"2be05982-b125-4259-b965-c487949cd896\",\n \"TotalCount\": 2\n }\n}",
246
+ "title": "示例"
247
+ }
248
+ ],
193
249
  "DescribeTopic": [
194
250
  {
195
251
  "document": "示例",
@@ -238,6 +294,14 @@
238
294
  "title": "示例"
239
295
  }
240
296
  ],
297
+ "ModifyInstanceCertBinding": [
298
+ {
299
+ "document": "示例",
300
+ "input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstanceCertBinding\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-jeredv33\",\n \"SSLServerCertId\": \"\",\n \"SSLCaCertId\": \"\",\n \"X509Mode\": \"TLS\"\n}",
301
+ "output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"RequestId\": \"91843178-a4a3-4ced-b5d9-f679962393c4\"\n }\n}",
302
+ "title": "示例"
303
+ }
304
+ ],
241
305
  "ModifyJWKSAuthenticator": [
242
306
  {
243
307
  "document": "示例",
@@ -270,6 +334,14 @@
270
334
  "title": "示例"
271
335
  }
272
336
  ],
337
+ "RegisterCaCertificate": [
338
+ {
339
+ "document": "示例",
340
+ "input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RegisterCaCertificate\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-g4r4x85z\",\n \"CaCertificate\": \"-----BEGIN CERTIFICATE-----\\nMIIEvDCCA6SgAwIBAgIUGx4783AhEBJYh6OnIafmbwVSJRMwDQYJKoZIhvcNAQEL\\n-----END CERTIFICATE-----\",\n \"VerificationCertificate\": \"-----BEGIN CERTIFICATE-----\\nMIID7TCCAtWgAwIBAgIUDu9opYK5QlQpblTOdU+U1welmRIwDQYJKoZIhvcNAQEL\\n-----END CERTIFICATE-----\"\n}",
341
+ "output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"RequestId\": \"2773beef-8527-4cc1-9e84-f15d56eaa7d9\"\n }\n}",
342
+ "title": "示例"
343
+ }
344
+ ],
273
345
  "RegisterDeviceCertificate": [
274
346
  {
275
347
  "document": "示例",
@@ -1629,6 +1629,58 @@ def doGetTaskState(args, parsed_globals):
1629
1629
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1630
1630
 
1631
1631
 
1632
+ def doRecognizeGeneralCardWarn(args, parsed_globals):
1633
+ g_param = parse_global_arg(parsed_globals)
1634
+
1635
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1636
+ cred = credential.CVMRoleCredential()
1637
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1638
+ cred = credential.STSAssumeRoleCredential(
1639
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1640
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1641
+ )
1642
+ 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):
1643
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1644
+ else:
1645
+ cred = credential.Credential(
1646
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1647
+ )
1648
+ http_profile = HttpProfile(
1649
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1650
+ reqMethod="POST",
1651
+ endpoint=g_param[OptionsDefine.Endpoint],
1652
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1653
+ )
1654
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1655
+ if g_param[OptionsDefine.Language]:
1656
+ profile.language = g_param[OptionsDefine.Language]
1657
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1658
+ client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
1659
+ client._sdkVersion += ("_CLI_" + __version__)
1660
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1661
+ model = models.RecognizeGeneralCardWarnRequest()
1662
+ model.from_json_string(json.dumps(args))
1663
+ start_time = time.time()
1664
+ while True:
1665
+ rsp = client.RecognizeGeneralCardWarn(model)
1666
+ result = rsp.to_json_string()
1667
+ try:
1668
+ json_obj = json.loads(result)
1669
+ except TypeError as e:
1670
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1671
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1672
+ break
1673
+ cur_time = time.time()
1674
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1675
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1676
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1677
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1678
+ else:
1679
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1680
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1681
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1682
+
1683
+
1632
1684
  def doFlightInvoiceOCR(args, parsed_globals):
1633
1685
  g_param = parse_global_arg(parsed_globals)
1634
1686
 
@@ -4635,6 +4687,7 @@ ACTION_MAP = {
4635
4687
  "VehicleLicenseOCR": doVehicleLicenseOCR,
4636
4688
  "BizLicenseOCR": doBizLicenseOCR,
4637
4689
  "GetTaskState": doGetTaskState,
4690
+ "RecognizeGeneralCardWarn": doRecognizeGeneralCardWarn,
4638
4691
  "FlightInvoiceOCR": doFlightInvoiceOCR,
4639
4692
  "RecognizeThaiIDCardOCR": doRecognizeThaiIDCardOCR,
4640
4693
  "TableOCR": doTableOCR,