tccli 3.0.1248.1__py2.py3-none-any.whl → 3.0.1249.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.

Potentially problematic release.


This version of tccli might be problematic. Click here for more details.

Files changed (52) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/aiart_client.py +113 -7
  3. tccli/services/aiart/v20221229/api.json +191 -0
  4. tccli/services/aiart/v20221229/examples.json +16 -0
  5. tccli/services/batch/v20170312/api.json +1 -1
  6. tccli/services/cbs/v20170312/api.json +6 -0
  7. tccli/services/cdb/v20170320/api.json +9 -0
  8. tccli/services/cfw/v20190904/api.json +3 -1
  9. tccli/services/cmq/cmq_client.py +4 -799
  10. tccli/services/cmq/v20190304/api.json +135 -1329
  11. tccli/services/cmq/v20190304/examples.json +0 -120
  12. tccli/services/config/config_client.py +110 -4
  13. tccli/services/config/v20220802/api.json +374 -0
  14. tccli/services/config/v20220802/examples.json +16 -0
  15. tccli/services/cvm/v20170312/api.json +1 -1
  16. tccli/services/ecm/v20190719/api.json +64 -62
  17. tccli/services/ecm/v20190719/examples.json +5 -5
  18. tccli/services/ess/v20201111/api.json +163 -163
  19. tccli/services/ess/v20201111/examples.json +15 -21
  20. tccli/services/essbasic/v20210526/api.json +88 -88
  21. tccli/services/essbasic/v20210526/examples.json +2 -2
  22. tccli/services/hai/hai_client.py +60 -7
  23. tccli/services/hai/v20230812/api.json +195 -0
  24. tccli/services/hai/v20230812/examples.json +8 -0
  25. tccli/services/iotexplorer/iotexplorer_client.py +228 -16
  26. tccli/services/iotexplorer/v20190423/api.json +536 -0
  27. tccli/services/iotexplorer/v20190423/examples.json +32 -0
  28. tccli/services/iotvideo/iotvideo_client.py +53 -0
  29. tccli/services/iotvideo/v20211125/api.json +80 -0
  30. tccli/services/iotvideo/v20211125/examples.json +8 -0
  31. tccli/services/lkeap/v20240522/api.json +13 -13
  32. tccli/services/lkeap/v20240522/examples.json +2 -2
  33. tccli/services/mna/v20210119/api.json +22 -22
  34. tccli/services/redis/v20180412/api.json +161 -161
  35. tccli/services/redis/v20180412/examples.json +1 -1
  36. tccli/services/sms/v20190711/api.json +48 -0
  37. tccli/services/sms/v20210111/api.json +48 -0
  38. tccli/services/tcb/v20180608/api.json +134 -131
  39. tccli/services/tcb/v20180608/examples.json +6 -6
  40. tccli/services/tcr/v20190924/api.json +5 -5
  41. tccli/services/trro/v20220325/api.json +12 -2
  42. tccli/services/trtc/v20190722/api.json +114 -114
  43. tccli/services/tse/v20201207/api.json +18 -0
  44. tccli/services/vpc/v20170312/api.json +22 -22
  45. tccli/services/vpc/v20170312/examples.json +9 -9
  46. tccli/services/wedata/v20210820/api.json +80 -2
  47. tccli/services/wedata/v20210820/examples.json +1 -1
  48. {tccli-3.0.1248.1.dist-info → tccli-3.0.1249.1.dist-info}/METADATA +2 -2
  49. {tccli-3.0.1248.1.dist-info → tccli-3.0.1249.1.dist-info}/RECORD +52 -52
  50. {tccli-3.0.1248.1.dist-info → tccli-3.0.1249.1.dist-info}/WHEEL +0 -0
  51. {tccli-3.0.1248.1.dist-info → tccli-3.0.1249.1.dist-info}/entry_points.txt +0 -0
  52. {tccli-3.0.1248.1.dist-info → tccli-3.0.1249.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,77 +1,5 @@
1
1
  {
2
2
  "actions": {
3
- "ClearQueue": [
4
- {
5
- "document": "清空队列中堆积的消息",
6
- "input": "https://cmq.tencentcloudapi.com/?Action=ClearQueue\r\n&QueueName=test\r\n&<公共请求参数>",
7
- "output": "{\n \"Response\": {\n \"RequestId\": \"3e0dff9d-9ed5-47c3-beb2-a42c1d69e1cc\"\n }\n}",
8
- "title": "清空队列中堆积的消息"
9
- }
10
- ],
11
- "ClearSubscriptionFilterTags": [
12
- {
13
- "document": "",
14
- "input": "https://cmq.tencentcloudapi.com/?Action=ClearSubscriptionFilterTags\r\n&TopicName=ConnTopic&SubscriptionName=Queue\r\n&<公共请求参数>",
15
- "output": "{\n \"Response\": {\n \"RequestId\": \"3e0dff9d-9ed5-47c3-beb2-a42c1d69e1cc\"\n }\n}",
16
- "title": "清空订阅者消息标签"
17
- }
18
- ],
19
- "CreateQueue": [
20
- {
21
- "document": "创建队列示例",
22
- "input": "https://cmq.tencentcloudapi.com/?Action=CreateQueue\r\n&QueueName=test\r\n&<公共请求参数>",
23
- "output": "{\n \"Response\": {\n \"QueueId\": \"queue-ges05csc\",\n \"RequestId\": \"3e0dff9d-9ed5-47c3-beb2-a42c1d69e1cc\"\n }\n}",
24
- "title": "创建队列"
25
- }
26
- ],
27
- "CreateSubscribe": [
28
- {
29
- "document": "",
30
- "input": "https://cmq.tencentcloudapi.com/?Action=CreateSubscribe\r\n&TopicName=ConnTopic&SubscriptionName=ConnSubQueue&Protocol=queue&Endpoint=queue_sub\r\n&<公共请求参数>",
31
- "output": "{\n \"Response\": {\n \"SubscriptionId\": \"subsc-39gyuuhd\",\n \"RequestId\": \"1620b635-6071-47c7-ac1e-975afe5104a7\"\n }\n}",
32
- "title": "创建订阅接口"
33
- }
34
- ],
35
- "CreateTopic": [
36
- {
37
- "document": "",
38
- "input": "https://cmq.tencentcloudapi.com/?Action=CreateTopic\r\n&TopicName=ConnTopic\r\n&<公共请求参数>",
39
- "output": "{\n \"Response\": {\n \"TopicId\": \"topic-gzz05csc\",\n \"RequestId\": \"3e0dff9d-9ed5-47c3-beb2-a42c1d69e1cc\"\n }\n}",
40
- "title": "创建主题"
41
- }
42
- ],
43
- "DeleteQueue": [
44
- {
45
- "document": "删除队列",
46
- "input": "https://cmq.tencentcloudapi.com/?Action=DeleteQueue\r\n&QueueName=test\r\n&<公共请求参数>",
47
- "output": "{\n \"Response\": {\n \"RequestId\": \"3e0dff9d-9ed5-47c3-beb2-a42c1d69e1cc\"\n }\n}",
48
- "title": "删除队列"
49
- }
50
- ],
51
- "DeleteSubscribe": [
52
- {
53
- "document": "",
54
- "input": "https://cmq.tencentcloudapi.com/?Action=DeleteSubscribe\r\n&TopicName=ConnTopic&SubscriptionName=york\r\n&<公共请求参数>",
55
- "output": "{\n \"Response\": {\n \"RequestId\": \"f8efab10-0ac6-44cf-8d09-67bb228deaf4\"\n }\n}",
56
- "title": "删除订阅"
57
- }
58
- ],
59
- "DeleteTopic": [
60
- {
61
- "document": "",
62
- "input": "https://cmq.tencentcloudapi.com/?Action=DeleteTopic\r\n&TopicName=ConnTopic\r\n&<公共请求参数>",
63
- "output": "{\n \"Response\": {\n \"RequestId\": \"96b28b30-393a-48aa-9f00-07dbe6d86229\"\n }\n}",
64
- "title": "删除主题"
65
- }
66
- ],
67
- "DescribeDeadLetterSourceQueues": [
68
- {
69
- "document": "枚举死信队列源队列",
70
- "input": "https://cmq.tencentcloudapi.com/?Action=DescribeDeadLetterSourceQueues\r\n&DeadLetterQueueName=test123\r\n&<公共请求参数>",
71
- "output": "{\n \"Response\": {\n \"QueueSet\": [\n {\n \"QueueName\": \"test\",\n \"QueueId\": \"queue-kc7m75to\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"83fce81a-7305-49b4-a154-983dd76204da\"\n }\n}",
72
- "title": "枚举死信队列源队列"
73
- }
74
- ],
75
3
  "DescribeQueueDetail": [
76
4
  {
77
5
  "document": "",
@@ -80,14 +8,6 @@
80
8
  "title": "获取队列列表"
81
9
  }
82
10
  ],
83
- "DescribeSubscriptionDetail": [
84
- {
85
- "document": "",
86
- "input": "https://cmq.tencentcloudapi.com/?Action=DescribeSubscriptionDetail\r\n&TopicName=Conn\r\n&<公共请求参数>",
87
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"SubscriptionSet\": [\n {\n \"SubscriptionName\": \"ConnSub\",\n \"SubscriptionId\": \"subsc-8y7fn4t2\",\n \"TopicOwner\": 0,\n \"MsgCount\": 0,\n \"LastModifyTime\": 1590632987,\n \"CreateTime\": 1590632987,\n \"BindingKey\": null,\n \"Endpoint\": \"test1\",\n \"FilterTags\": [],\n \"Protocol\": \"queue\",\n \"NotifyStrategy\": \"EXPONENTIAL_DECAY_RETRY\",\n \"NotifyContentFormat\": \"SIMPLIFIED\"\n }\n ],\n \"RequestId\": \"72cd2d9d-d666-45ad-963a-cf5065a1984c\"\n }\n}",
88
- "title": "查询订阅详情"
89
- }
90
- ],
91
11
  "DescribeTopicDetail": [
92
12
  {
93
13
  "document": "",
@@ -95,46 +15,6 @@
95
15
  "output": "{\n \"Response\": {\n \"TotalCount\": 2,\n \"TopicSet\": [\n {\n \"Tags\": [],\n \"TopicId\": \"topic-388k6x98\",\n \"TopicName\": \"test123\",\n \"CreateUin\": 20548499,\n \"MsgRetentionSeconds\": 86400,\n \"MaxMsgSize\": 65536,\n \"Qps\": 5000,\n \"FilterType\": 1,\n \"CreateTime\": 1581493669,\n \"LastModifyTime\": 1581495310,\n \"MsgCount\": 0\n }\n ],\n \"RequestId\": \"68ebb46b-5eac-467a-9942-1a5da83a65ca\"\n }\n}",
96
16
  "title": "查询主题详情"
97
17
  }
98
- ],
99
- "ModifyQueueAttribute": [
100
- {
101
- "document": "修改队列属性",
102
- "input": "https://cmq.tencentcloudapi.com/?Action=ModifyQueueAttribute\r\n&QueueName=test&MaxMsgSize=1024\r\n&<公共请求参数>",
103
- "output": "{\n \"Response\": {\n \"RequestId\": \"3e0dff9d-9ed5-47c3-beb2-a42c1d69e1cc\"\n }\n}",
104
- "title": "修改队列属性"
105
- }
106
- ],
107
- "ModifySubscriptionAttribute": [
108
- {
109
- "document": "修改订阅属性",
110
- "input": "https://cmq.tencentcloudapi.com/?Action=ModifySubscriptionAttribute\r\n&TopicName=test&SubscriptionName=test&BindingKey.0=test\r\n&<公共请求参数>",
111
- "output": "{\n \"Response\": {\n \"RequestId\": \"3e0dff9d-9ed5-47c3-beb2-a42c1d69e1cc\"\n }\n}",
112
- "title": "修改订阅属性"
113
- }
114
- ],
115
- "ModifyTopicAttribute": [
116
- {
117
- "document": "",
118
- "input": "https://cmq.tencentcloudapi.com/?Action=ModifyTopicAttribute\r\n&TopicName=ConnTopic&Qps=20000\r\n&<公共请求参数>",
119
- "output": "{\n \"Response\": {\n \"RequestId\": \"8a04c6b1-dec5-4979-b3b2-34ab3b3402b2\"\n }\n}",
120
- "title": "修改主题属性"
121
- }
122
- ],
123
- "RewindQueue": [
124
- {
125
- "document": "回溯队列消费位置",
126
- "input": "https://cmq.tencentcloudapi.com/?Action=RewindQueue\r\n&QueueName=test&StartConsumeTime=1582108595\r\n&<公共请求参数>",
127
- "output": "{\n \"Response\": {\n \"RequestId\": \"3e0dff9d-9ed5-47c3-beb2-a42c1d69e1cc\"\n }\n}",
128
- "title": "回溯队列消费位置"
129
- }
130
- ],
131
- "UnbindDeadLetter": [
132
- {
133
- "document": "解绑死信队列",
134
- "input": "https://cmq.tencentcloudapi.com/?Action=UnbindDeadLetter\r\n&QueueName=test\r\n&<公共请求参数>",
135
- "output": "{\n \"Response\": {\n \"RequestId\": \"3e0dff9d-9ed5-47c3-beb2-a42c1d69e1cc\"\n }\n}",
136
- "title": "解绑死信队列"
137
- }
138
18
  ]
139
19
  },
140
20
  "version": "1.0"
@@ -173,7 +173,7 @@ def doListConfigRules(args, parsed_globals):
173
173
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
174
174
 
175
175
 
176
- def doPutEvaluations(args, parsed_globals):
176
+ def doDescribeAggregateDiscoveredResource(args, parsed_globals):
177
177
  g_param = parse_global_arg(parsed_globals)
178
178
 
179
179
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -202,11 +202,11 @@ def doPutEvaluations(args, parsed_globals):
202
202
  client = mod.ConfigClient(cred, g_param[OptionsDefine.Region], profile)
203
203
  client._sdkVersion += ("_CLI_" + __version__)
204
204
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
205
- model = models.PutEvaluationsRequest()
205
+ model = models.DescribeAggregateDiscoveredResourceRequest()
206
206
  model.from_json_string(json.dumps(args))
207
207
  start_time = time.time()
208
208
  while True:
209
- rsp = client.PutEvaluations(model)
209
+ rsp = client.DescribeAggregateDiscoveredResource(model)
210
210
  result = rsp.to_json_string()
211
211
  try:
212
212
  json_obj = json.loads(result)
@@ -277,6 +277,110 @@ def doDescribeDiscoveredResource(args, parsed_globals):
277
277
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
278
 
279
279
 
280
+ def doListAggregateDiscoveredResources(args, parsed_globals):
281
+ g_param = parse_global_arg(parsed_globals)
282
+
283
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
284
+ cred = credential.CVMRoleCredential()
285
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
286
+ cred = credential.STSAssumeRoleCredential(
287
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
288
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
289
+ )
290
+ 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):
291
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
292
+ else:
293
+ cred = credential.Credential(
294
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
295
+ )
296
+ http_profile = HttpProfile(
297
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
298
+ reqMethod="POST",
299
+ endpoint=g_param[OptionsDefine.Endpoint],
300
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
301
+ )
302
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
303
+ if g_param[OptionsDefine.Language]:
304
+ profile.language = g_param[OptionsDefine.Language]
305
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
306
+ client = mod.ConfigClient(cred, g_param[OptionsDefine.Region], profile)
307
+ client._sdkVersion += ("_CLI_" + __version__)
308
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
309
+ model = models.ListAggregateDiscoveredResourcesRequest()
310
+ model.from_json_string(json.dumps(args))
311
+ start_time = time.time()
312
+ while True:
313
+ rsp = client.ListAggregateDiscoveredResources(model)
314
+ result = rsp.to_json_string()
315
+ try:
316
+ json_obj = json.loads(result)
317
+ except TypeError as e:
318
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
319
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
320
+ break
321
+ cur_time = time.time()
322
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
323
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
324
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
325
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
326
+ else:
327
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
328
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
329
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
330
+
331
+
332
+ def doPutEvaluations(args, parsed_globals):
333
+ g_param = parse_global_arg(parsed_globals)
334
+
335
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
336
+ cred = credential.CVMRoleCredential()
337
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
338
+ cred = credential.STSAssumeRoleCredential(
339
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
340
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
341
+ )
342
+ 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):
343
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
344
+ else:
345
+ cred = credential.Credential(
346
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
347
+ )
348
+ http_profile = HttpProfile(
349
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
350
+ reqMethod="POST",
351
+ endpoint=g_param[OptionsDefine.Endpoint],
352
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
353
+ )
354
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
355
+ if g_param[OptionsDefine.Language]:
356
+ profile.language = g_param[OptionsDefine.Language]
357
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
358
+ client = mod.ConfigClient(cred, g_param[OptionsDefine.Region], profile)
359
+ client._sdkVersion += ("_CLI_" + __version__)
360
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
361
+ model = models.PutEvaluationsRequest()
362
+ model.from_json_string(json.dumps(args))
363
+ start_time = time.time()
364
+ while True:
365
+ rsp = client.PutEvaluations(model)
366
+ result = rsp.to_json_string()
367
+ try:
368
+ json_obj = json.loads(result)
369
+ except TypeError as e:
370
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
371
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
372
+ break
373
+ cur_time = time.time()
374
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
375
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
376
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
377
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
378
+ else:
379
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
380
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
381
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
382
+
383
+
280
384
  CLIENT_MAP = {
281
385
  "v20220802": config_client_v20220802,
282
386
 
@@ -291,8 +395,10 @@ ACTION_MAP = {
291
395
  "ListAggregateConfigRules": doListAggregateConfigRules,
292
396
  "ListDiscoveredResources": doListDiscoveredResources,
293
397
  "ListConfigRules": doListConfigRules,
294
- "PutEvaluations": doPutEvaluations,
398
+ "DescribeAggregateDiscoveredResource": doDescribeAggregateDiscoveredResource,
295
399
  "DescribeDiscoveredResource": doDescribeDiscoveredResource,
400
+ "ListAggregateDiscoveredResources": doListAggregateDiscoveredResources,
401
+ "PutEvaluations": doPutEvaluations,
296
402
 
297
403
  }
298
404