tccli 3.0.1126.1__py2.py3-none-any.whl → 3.0.1128.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 (43) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/asr/v20190614/api.json +7 -7
  3. tccli/services/asr/v20190614/examples.json +1 -1
  4. tccli/services/billing/v20180709/api.json +2 -2
  5. tccli/services/cam/cam_client.py +110 -57
  6. tccli/services/cam/v20190116/api.json +128 -0
  7. tccli/services/cam/v20190116/examples.json +8 -0
  8. tccli/services/cat/v20180409/api.json +10 -0
  9. tccli/services/ccc/v20200210/api.json +1 -1
  10. tccli/services/cds/v20180420/api.json +2 -2
  11. tccli/services/cls/v20201016/api.json +28 -0
  12. tccli/services/domain/v20180808/api.json +16 -16
  13. tccli/services/domain/v20180808/examples.json +9 -9
  14. tccli/services/dsgc/v20190723/api.json +10 -1
  15. tccli/services/dts/v20180330/api.json +2 -2
  16. tccli/services/emr/emr_client.py +53 -0
  17. tccli/services/emr/v20190103/api.json +354 -0
  18. tccli/services/emr/v20190103/examples.json +8 -0
  19. tccli/services/ess/v20201111/api.json +4 -4
  20. tccli/services/ess/v20201111/examples.json +0 -6
  21. tccli/services/essbasic/v20210526/api.json +6 -6
  22. tccli/services/hunyuan/hunyuan_client.py +12 -118
  23. tccli/services/hunyuan/v20230901/api.json +0 -260
  24. tccli/services/hunyuan/v20230901/examples.json +0 -58
  25. tccli/services/iotexplorer/v20190423/api.json +30 -13
  26. tccli/services/iotexplorer/v20190423/examples.json +3 -3
  27. tccli/services/mongodb/mongodb_client.py +212 -0
  28. tccli/services/mongodb/v20190725/api.json +322 -0
  29. tccli/services/mongodb/v20190725/examples.json +32 -0
  30. tccli/services/monitor/v20180724/api.json +6 -5
  31. tccli/services/monitor/v20180724/examples.json +1 -1
  32. tccli/services/tmt/v20180321/api.json +5 -4
  33. tccli/services/trtc/v20190722/api.json +1 -1
  34. tccli/services/tse/v20201207/api.json +2 -2
  35. tccli/services/tse/v20201207/examples.json +2 -2
  36. tccli/services/waf/v20180125/api.json +94 -0
  37. tccli/services/waf/v20180125/examples.json +16 -0
  38. tccli/services/waf/waf_client.py +106 -0
  39. {tccli-3.0.1126.1.dist-info → tccli-3.0.1128.1.dist-info}/METADATA +2 -2
  40. {tccli-3.0.1126.1.dist-info → tccli-3.0.1128.1.dist-info}/RECORD +43 -43
  41. {tccli-3.0.1126.1.dist-info → tccli-3.0.1128.1.dist-info}/WHEEL +0 -0
  42. {tccli-3.0.1126.1.dist-info → tccli-3.0.1128.1.dist-info}/entry_points.txt +0 -0
  43. {tccli-3.0.1126.1.dist-info → tccli-3.0.1128.1.dist-info}/license_files/LICENSE +0 -0
@@ -234,7 +234,7 @@
234
234
  "DescribePreDomainList": {
235
235
  "document": "用户服务商提前获取预释放域名数据,查询数据根据结束时间进行倒序。",
236
236
  "input": "DescribePreDomainListRequest",
237
- "name": "提前获取域释放域名数据",
237
+ "name": "提前获取预释放域名数据",
238
238
  "output": "DescribePreDomainListResponse",
239
239
  "status": "online"
240
240
  },
@@ -323,7 +323,7 @@
323
323
  "status": "online"
324
324
  },
325
325
  "RenewDomainBatch": {
326
- "document": "本接口 ( RenewDomainBatch ) 用于批量续费域名 。\n",
326
+ "document": "本接口 ( RenewDomainBatch ) 用于批量续费域名 ",
327
327
  "input": "RenewDomainBatchRequest",
328
328
  "name": "批量域名续费",
329
329
  "output": "RenewDomainBatchResponse",
@@ -453,8 +453,8 @@
453
453
  },
454
454
  {
455
455
  "disabled": false,
456
- "document": "模板ID",
457
- "example": "tmpl-xxxxx",
456
+ "document": "模板ID(可从模板列表接口获取)",
457
+ "example": "tmpl-xxxxxxxx",
458
458
  "member": "string",
459
459
  "name": "TemplateId",
460
460
  "required": true,
@@ -481,7 +481,7 @@
481
481
  "example": "318",
482
482
  "member": "int64",
483
483
  "name": "LogId",
484
- "required": true,
484
+ "output_required": true,
485
485
  "type": "int",
486
486
  "value_allowed_null": false
487
487
  },
@@ -1594,7 +1594,7 @@
1594
1594
  },
1595
1595
  {
1596
1596
  "disabled": false,
1597
- "document": "验证码",
1597
+ "document": "验证码(通过SendPhoneEmailCode发送到手机或邮箱的验证码)",
1598
1598
  "example": "234567",
1599
1599
  "member": "string",
1600
1600
  "name": "VerifyCode",
@@ -1829,8 +1829,8 @@
1829
1829
  "members": [
1830
1830
  {
1831
1831
  "disabled": false,
1832
- "document": "模板ID",
1833
- "example": "模板ID",
1832
+ "document": "模板ID(可通过模板信息列表获取)",
1833
+ "example": "tmpl-itxxxxxx",
1834
1834
  "member": "string",
1835
1835
  "name": "TemplateId",
1836
1836
  "required": true,
@@ -2749,7 +2749,7 @@
2749
2749
  "members": [
2750
2750
  {
2751
2751
  "disabled": false,
2752
- "document": "域名实例ID",
2752
+ "document": "域名实例ID(域名基本信息或我的域名列表接口可获取)",
2753
2753
  "example": "domain-7312mrgq",
2754
2754
  "member": "string",
2755
2755
  "name": "DomainId",
@@ -2759,7 +2759,7 @@
2759
2759
  {
2760
2760
  "disabled": false,
2761
2761
  "document": "返回数量,默认为20,取值范围[1,100]",
2762
- "example": "0",
2762
+ "example": "1",
2763
2763
  "member": "uint64",
2764
2764
  "name": "Limit",
2765
2765
  "required": true,
@@ -3236,8 +3236,8 @@
3236
3236
  "members": [
3237
3237
  {
3238
3238
  "disabled": false,
3239
- "document": "页码",
3240
- "example": "20",
3239
+ "document": "页码,默认为1",
3240
+ "example": "1",
3241
3241
  "member": "int64",
3242
3242
  "name": "Page",
3243
3243
  "required": false,
@@ -3245,8 +3245,8 @@
3245
3245
  },
3246
3246
  {
3247
3247
  "disabled": false,
3248
- "document": "条数",
3249
- "example": "0",
3248
+ "document": "条数,默认为20",
3249
+ "example": "20",
3250
3250
  "member": "int64",
3251
3251
  "name": "Size",
3252
3252
  "required": false,
@@ -5279,7 +5279,7 @@
5279
5279
  {
5280
5280
  "disabled": false,
5281
5281
  "document": "特惠包ID",
5282
- "example": "XXX",
5282
+ "example": "E065785299",
5283
5283
  "member": "string",
5284
5284
  "name": "PackageResourceId",
5285
5285
  "required": false,
@@ -5324,7 +5324,7 @@
5324
5324
  "example": "318",
5325
5325
  "member": "int64",
5326
5326
  "name": "LogId",
5327
- "required": true,
5327
+ "output_required": true,
5328
5328
  "type": "int",
5329
5329
  "value_allowed_null": false
5330
5330
  },
@@ -59,8 +59,8 @@
59
59
  "CreateDomainBatch": [
60
60
  {
61
61
  "document": "",
62
- "input": "POST / HTTP/1.1\nHost:domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDomainBatch\n<公共请求参数>\n\n{\n \"TemplateId\": \"abc\",\n \"Period\": 0,\n \"Domains\": [\n \"abc\"\n ],\n \"PayMode\": 0,\n \"AutoRenewFlag\": 0,\n \"PackageResourceId\": \"abc\",\n \"UpdateProhibition\": 0,\n \"TransferProhibition\": 0,\n \"ChannelFrom\": \"abc\",\n \"OrderFrom\": \"abc\",\n \"ActivityId\": \"abc\"\n}",
63
- "output": "{\n \"Response\": {\n \"LogId\": 318,\n \"RequestId\": \"1684afa4-0bf7-49f8-a630-ab460e5c038e\"\n },\n \"ResultStatus\": true\n}",
62
+ "input": "POST / HTTP/1.1\nHost:domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDomainBatch\n<公共请求参数>\n\n{\n \"TemplateId\": \"tmpl-acxxxxxx\",\n \"Period\": 1,\n \"Domains\": [\n \"abcd.xyz\"\n ],\n \"PayMode\": 0,\n \"AutoRenewFlag\": 0,\n \"PackageResourceId\": \"\",\n \"UpdateProhibition\": 0,\n \"TransferProhibition\": 0,\n \"ChannelFrom\": \"ChannelFrom\",\n \"OrderFrom\": \"OrderFrom\",\n \"ActivityId\": \"10001\"\n}",
63
+ "output": "{\n \"Response\": {\n \"LogId\": 318,\n \"RequestId\": \"1684afa4-0bf7-49f8-a630-ab460e5c038e\"\n }\n}",
64
64
  "title": "批量域名注册"
65
65
  }
66
66
  ],
@@ -252,7 +252,7 @@
252
252
  {
253
253
  "document": "默认",
254
254
  "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePhoneEmailList\n<公共请求参数>\n\n{\n \"Type\": 1,\n \"Offset\": 0,\n \"Limit\": 10\n}",
255
- "output": "{\n \"Response\": {\n \"PhoneEmailList\": [\n {\n \"Code\": \"abc\",\n \"Type\": 1,\n \"CreatedOn\": \"abc\",\n \"CheckStatus\": 0\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"abc\"\n }\n}",
255
+ "output": "{\n \"Response\": {\n \"PhoneEmailList\": [\n {\n \"Code\": \"137***3434\",\n \"Type\": 1,\n \"CreatedOn\": \"2023-03-10 10:00:00\",\n \"CheckStatus\": 1\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"xxxx-xxx-xxx-xxxx\"\n }\n}",
256
256
  "title": "获取已验证的手机邮箱列表"
257
257
  }
258
258
  ],
@@ -268,7 +268,7 @@
268
268
  {
269
269
  "document": "",
270
270
  "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePreDomainList\n<公共请求参数>\n\n{\n \"Page\": 0,\n \"Size\": 0\n}",
271
- "output": "{\n \"Response\": {\n \"ReservedDomainList\": [\n {\n \"Domain\": \"abc\",\n \"RegTime\": \"abc\",\n \"ExpireTime\": \"abc\",\n \"RenewEndTime\": \"abc\",\n \"RestoreEndTime\": \"abc\",\n \"ReservedEndTime\": \"abc\"\n }\n ],\n \"Total\": 0,\n \"RequestId\": \"abc\"\n }\n}",
271
+ "output": "{\n \"Response\": {\n \"ReservedDomainList\": [\n {\n \"Domain\": \"tencent.com\",\n \"RegTime\": \"2006-01-02 15:04:05\",\n \"ExpireTime\": \"2006-01-02 15:04:05\",\n \"RenewEndTime\": \"2006-01-02 15:04:05\",\n \"RestoreEndTime\": \"2006-01-02 15:04:05\",\n \"ReservedEndTime\": \"2006-01-02 15:04:05\"\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"abc\"\n }\n}",
272
272
  "title": "成功示例"
273
273
  }
274
274
  ],
@@ -291,14 +291,14 @@
291
291
  "DescribeReservedPreDomainInfo": [
292
292
  {
293
293
  "document": "",
294
- "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReservedPreDomainInfo\n<公共请求参数>\n\n{\n \"DomainList\": [\n \"abc\"\n ],\n \"ReservedStatus\": 0,\n \"ReservedTimeSort\": \"abc\",\n \"Limit\": 0,\n \"Offset\": 0\n}",
295
- "output": "{\n \"Response\": {\n \"ReservedPreDomainInfoList\": [\n {\n \"Domain\": \"abc\",\n \"ReservedStatus\": 0,\n \"FailReason\": \"abc\",\n \"ChangeOwnerTime\": \"abc\",\n \"RegTime\": \"abc\",\n \"ExpireTime\": \"abc\",\n \"ResourceId\": \"abc\"\n }\n ],\n \"Total\": 0,\n \"RequestId\": \"abc\"\n }\n}",
294
+ "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReservedPreDomainInfo\n<公共请求参数>\n\n{\n \"DomainList\": [\n \"abdwww.cn\"\n ],\n \"ReservedStatus\": 0,\n \"ReservedTimeSort\": \"asc\",\n \"Limit\": 10,\n \"Offset\": 0\n}",
295
+ "output": "{\n \"Response\": {\n \"ReservedPreDomainInfoList\": [\n {\n \"Domain\": \"abdwww.cn\",\n \"ReservedStatus\": 0,\n \"FailReason\": \"\",\n \"ChangeOwnerTime\": \"2024-03-01 20:13:23\",\n \"RegTime\": \"2022-03-01 20:13:23\",\n \"ExpireTime\": \"2024-03-01 20:13:23\",\n \"ResourceId\": \"domain-dfo23req\"\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"xxxx-xxx-xxx-xxxx\"\n }\n}",
296
296
  "title": "成功示例"
297
297
  },
298
298
  {
299
299
  "document": "请求成功获取参数示例",
300
300
  "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReservedPreDomainInfo\n<公共请求参数>\n\n{}",
301
- "output": "{\n \"Response\": {\n \"RequestId\": \"a6bd9e77-517f-4fd8-9ee9-f7042b7ae847\",\n \"ReservedPreDomainInfoList\": [\n {\n \"BusinessId\": \"P0011712734968570466\",\n \"ChangeOwnerTime\": \"2024-03-15 08:40:34\",\n \"Domain\": \"fdasfasfdsaf.com\",\n \"ExpireTime\": \"2024-01-14 08:40:34\",\n \"FailReason\": \"\",\n \"RegTime\": \"2020-01-14 08:40:34\",\n \"ReservedStatus\": 6,\n \"ResourceId\": \"R0011712734968672830\"\n }\n ],\n \"Total\": 1\n }\n}",
301
+ "output": "{\n \"Response\": {\n \"RequestId\": \"xxxx-xxx-xxx-xxxx\",\n \"ReservedPreDomainInfoList\": [\n {\n \"BusinessId\": \"P0011712734968570466\",\n \"ChangeOwnerTime\": \"2024-03-15 08:40:34\",\n \"Domain\": \"fdasfasfdsaf.com\",\n \"ExpireTime\": \"2024-01-14 08:40:34\",\n \"FailReason\": \"\",\n \"RegTime\": \"2020-01-14 08:40:34\",\n \"ReservedStatus\": 6,\n \"ResourceId\": \"R0011712734968672830\"\n }\n ],\n \"Total\": 1\n }\n}",
302
302
  "title": "请求成功示例"
303
303
  }
304
304
  ],
@@ -385,8 +385,8 @@
385
385
  "ReservedPreDomains": [
386
386
  {
387
387
  "document": "",
388
- "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ReservedPreDomains\n<公共请求参数>\n\n{\n \"DomainList\": [\n \"abc\"\n ],\n \"TemplateId\": \"abc\"\n}",
389
- "output": "{\n \"Response\": {\n \"SucDomainList\": [\n \"abc\"\n ],\n \"FailDomainList\": [\n {\n \"Domain\": \"abc\",\n \"FailReason\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
388
+ "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ReservedPreDomains\n<公共请求参数>\n\n{\n \"DomainList\": [\n \"aksdwe1.cn\",\n \"aksdwe2.cn\"\n ],\n \"TemplateId\": \"tmpl-abxxxxxx\"\n}",
389
+ "output": "{\n \"Response\": {\n \"SucDomainList\": [\n \"aksdwe1.cn\"\n ],\n \"FailDomainList\": [\n {\n \"Domain\": \"aksdwe2.cn\",\n \"FailReason\": \"域名下架\"\n }\n ],\n \"RequestId\": \"xxxx-xxx-xxx-xxxx\"\n }\n}",
390
390
  "title": "成功示例"
391
391
  }
392
392
  ],
@@ -14425,6 +14425,15 @@
14425
14425
  "name": "Filters",
14426
14426
  "required": false,
14427
14427
  "type": "list"
14428
+ },
14429
+ {
14430
+ "disabled": false,
14431
+ "document": "casbId",
14432
+ "example": "casb-tlqkc3r0",
14433
+ "member": "string",
14434
+ "name": "CasbId",
14435
+ "required": false,
14436
+ "type": "string"
14428
14437
  }
14429
14438
  ],
14430
14439
  "type": "object"
@@ -14438,7 +14447,7 @@
14438
14447
  "example": "1",
14439
14448
  "member": "uint64",
14440
14449
  "name": "ExportTaskId",
14441
- "required": true,
14450
+ "output_required": true,
14442
14451
  "type": "int",
14443
14452
  "value_allowed_null": false
14444
14453
  },
@@ -64,11 +64,11 @@
64
64
  "status": "online"
65
65
  },
66
66
  "DescribeRegionConf": {
67
- "document": "本接口(DescribeRegionConf)用于查询可售卖订阅实例的地域",
67
+ "document": "接口不再使用\n\n本接口(DescribeRegionConf)用于查询可售卖订阅实例的地域",
68
68
  "input": "DescribeRegionConfRequest",
69
69
  "name": "查询可售卖订阅地域",
70
70
  "output": "DescribeRegionConfResponse",
71
- "status": "online"
71
+ "status": "deprecated"
72
72
  },
73
73
  "DescribeSubscribeConf": {
74
74
  "document": "本接口(DescribeSubscribeConf)用于查询订阅实例配置",
@@ -433,6 +433,58 @@ def doInquirePriceRenewEmr(args, parsed_globals):
433
433
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
434
434
 
435
435
 
436
+ def doDescribeClusterFlowStatusDetail(args, parsed_globals):
437
+ g_param = parse_global_arg(parsed_globals)
438
+
439
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
440
+ cred = credential.CVMRoleCredential()
441
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
442
+ cred = credential.STSAssumeRoleCredential(
443
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
444
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
445
+ )
446
+ 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):
447
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
448
+ else:
449
+ cred = credential.Credential(
450
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
451
+ )
452
+ http_profile = HttpProfile(
453
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
454
+ reqMethod="POST",
455
+ endpoint=g_param[OptionsDefine.Endpoint],
456
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
457
+ )
458
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
459
+ if g_param[OptionsDefine.Language]:
460
+ profile.language = g_param[OptionsDefine.Language]
461
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
462
+ client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
463
+ client._sdkVersion += ("_CLI_" + __version__)
464
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
465
+ model = models.DescribeClusterFlowStatusDetailRequest()
466
+ model.from_json_string(json.dumps(args))
467
+ start_time = time.time()
468
+ while True:
469
+ rsp = client.DescribeClusterFlowStatusDetail(model)
470
+ result = rsp.to_json_string()
471
+ try:
472
+ json_obj = json.loads(result)
473
+ except TypeError as e:
474
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
475
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
476
+ break
477
+ cur_time = time.time()
478
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
479
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
480
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
481
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
482
+ else:
483
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
484
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
485
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
486
+
487
+
436
488
  def doInquiryPriceScaleOutInstance(args, parsed_globals):
437
489
  g_param = parse_global_arg(parsed_globals)
438
490
 
@@ -2272,6 +2324,7 @@ ACTION_MAP = {
2272
2324
  "DescribeImpalaQueries": doDescribeImpalaQueries,
2273
2325
  "DescribeJobFlow": doDescribeJobFlow,
2274
2326
  "InquirePriceRenewEmr": doInquirePriceRenewEmr,
2327
+ "DescribeClusterFlowStatusDetail": doDescribeClusterFlowStatusDetail,
2275
2328
  "InquiryPriceScaleOutInstance": doInquiryPriceScaleOutInstance,
2276
2329
  "DescribeAutoScaleRecords": doDescribeAutoScaleRecords,
2277
2330
  "DescribeCvmQuota": doDescribeCvmQuota,