tccli 3.0.1094.1__py2.py3-none-any.whl → 3.0.1096.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 (66) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cls/v20201016/DeleteKafkaRecharge.md +3 -3
  3. tccli/examples/cls/v20201016/ModifyKafkaRecharge.md +23 -13
  4. tccli/examples/cls/v20201016/PreviewKafkaRecharge.md +47 -15
  5. tccli/examples/cynosdb/v20190107/AddClusterSlaveZone.md +2 -1
  6. tccli/examples/cynosdb/v20190107/DescribeClusterDetail.md +9 -2
  7. tccli/examples/cynosdb/v20190107/DescribeTasks.md +12 -0
  8. tccli/examples/cynosdb/v20190107/ModifyClusterSlaveZone.md +2 -1
  9. tccli/examples/dasb/v20191018/ModifyCmdTemplate.md +2 -2
  10. tccli/examples/es/v20180416/DescribeServerlessInstances.md +346 -0
  11. tccli/examples/mps/v20190612/CreateAdaptiveDynamicStreamingTemplate.md +1 -1
  12. tccli/examples/mps/v20190612/ModifyAdaptiveDynamicStreamingTemplate.md +1 -1
  13. tccli/examples/organization/v20210331/DescribeEffectivePolicy.md +25 -0
  14. tccli/examples/organization/v20210331/ListNonCompliantResource.md +43 -0
  15. tccli/examples/pts/v20210728/DescribeRegions.md +4 -2
  16. tccli/examples/ssl/v20191205/DescribeDeleteCertificatesTaskResult.md +72 -0
  17. tccli/examples/trocket/v20230308/DescribeMQTTClient.md +57 -49
  18. tccli/examples/trocket/v20230308/DescribeMQTTInsPublicEndpoints.md +38 -6
  19. tccli/examples/trocket/v20230308/DescribeMQTTInsVPCEndpoints.md +14 -12
  20. tccli/examples/trocket/v20230308/DescribeMQTTInstanceList.md +1 -121
  21. tccli/examples/trocket/v20230308/DescribeMQTTProductSKUList.md +0 -47
  22. tccli/examples/trocket/v20230308/DescribeMQTTUserList.md +1 -1
  23. tccli/services/aiart/v20221229/api.json +2 -2
  24. tccli/services/antiddos/v20200309/api.json +19 -0
  25. tccli/services/cdb/v20170320/api.json +3 -3
  26. tccli/services/cfw/v20190904/api.json +177 -0
  27. tccli/services/cls/v20201016/api.json +49 -49
  28. tccli/services/cls/v20201016/examples.json +13 -7
  29. tccli/services/cynosdb/v20190107/api.json +74 -0
  30. tccli/services/cynosdb/v20190107/examples.json +4 -4
  31. tccli/services/dasb/v20191018/examples.json +2 -2
  32. tccli/services/dnspod/v20210323/api.json +1 -0
  33. tccli/services/dts/v20211206/api.json +2 -2
  34. tccli/services/es/es_client.py +53 -0
  35. tccli/services/es/v20180416/api.json +429 -0
  36. tccli/services/es/v20180416/examples.json +8 -0
  37. tccli/services/essbasic/v20210526/api.json +9 -0
  38. tccli/services/faceid/v20180301/api.json +22 -3
  39. tccli/services/live/v20180801/api.json +58 -0
  40. tccli/services/monitor/v20180724/api.json +20 -2
  41. tccli/services/mps/v20190612/api.json +172 -92
  42. tccli/services/mps/v20190612/examples.json +2 -2
  43. tccli/services/oceanus/v20190422/api.json +1 -1
  44. tccli/services/omics/v20221128/api.json +20 -2
  45. tccli/services/organization/organization_client.py +106 -0
  46. tccli/services/organization/v20210331/api.json +261 -3
  47. tccli/services/organization/v20210331/examples.json +16 -0
  48. tccli/services/pts/v20210728/api.json +16 -3
  49. tccli/services/pts/v20210728/examples.json +2 -2
  50. tccli/services/redis/v20180412/api.json +11 -0
  51. tccli/services/ssl/ssl_client.py +53 -0
  52. tccli/services/ssl/v20191205/api.json +110 -0
  53. tccli/services/ssl/v20191205/examples.json +8 -0
  54. tccli/services/ssm/v20190923/api.json +1 -1
  55. tccli/services/tdmq/v20200217/api.json +1 -1
  56. tccli/services/trocket/v20230308/api.json +226 -108
  57. tccli/services/trocket/v20230308/examples.json +13 -25
  58. tccli/services/vod/v20180717/api.json +1 -1
  59. tccli/services/wedata/v20210820/api.json +2 -817
  60. tccli/services/wedata/v20210820/examples.json +0 -24
  61. tccli/services/wedata/wedata_client.py +0 -159
  62. {tccli-3.0.1094.1.dist-info → tccli-3.0.1096.1.dist-info}/METADATA +2 -2
  63. {tccli-3.0.1094.1.dist-info → tccli-3.0.1096.1.dist-info}/RECORD +66 -62
  64. {tccli-3.0.1094.1.dist-info → tccli-3.0.1096.1.dist-info}/WHEEL +0 -0
  65. {tccli-3.0.1094.1.dist-info → tccli-3.0.1096.1.dist-info}/entry_points.txt +0 -0
  66. {tccli-3.0.1094.1.dist-info → tccli-3.0.1096.1.dist-info}/license_files/LICENSE +0 -0
@@ -1947,6 +1947,15 @@
1947
1947
  "name": "RedisClusterId",
1948
1948
  "required": false,
1949
1949
  "type": "string"
1950
+ },
1951
+ {
1952
+ "disabled": false,
1953
+ "document": "告警策略 ID 数组。\n\n- 请登录[腾讯云可观测平台-告警管理-策略管理](https://console.cloud.tencent.com/monitor/alarm/policy)获取告警策略 ID。\n- 若不配置该参数,则绑定默认告警策略。默认告警策略具体信息,请登录[腾讯云可观测平台-告警管理-策略管理](https://console.cloud.tencent.com/monitor/alarm/policy)查看。",
1954
+ "example": "[\"policy-6e6wodv4\"]",
1955
+ "member": "string",
1956
+ "name": "AlarmPolicyList",
1957
+ "required": false,
1958
+ "type": "list"
1950
1959
  }
1951
1960
  ],
1952
1961
  "type": "object"
@@ -1960,6 +1969,7 @@
1960
1969
  "example": "199878234",
1961
1970
  "member": "string",
1962
1971
  "name": "DealId",
1972
+ "output_required": true,
1963
1973
  "type": "string",
1964
1974
  "value_allowed_null": false
1965
1975
  },
@@ -1969,6 +1979,7 @@
1969
1979
  "example": "crs-3sz5wdav",
1970
1980
  "member": "string",
1971
1981
  "name": "InstanceIds",
1982
+ "output_required": true,
1972
1983
  "type": "list",
1973
1984
  "value_allowed_null": false
1974
1985
  },
@@ -1941,6 +1941,58 @@ def doUpdateCertificateRecordRetry(args, parsed_globals):
1941
1941
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1942
1942
 
1943
1943
 
1944
+ def doDescribeDeleteCertificatesTaskResult(args, parsed_globals):
1945
+ g_param = parse_global_arg(parsed_globals)
1946
+
1947
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1948
+ cred = credential.CVMRoleCredential()
1949
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1950
+ cred = credential.STSAssumeRoleCredential(
1951
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1952
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1953
+ )
1954
+ 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):
1955
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1956
+ else:
1957
+ cred = credential.Credential(
1958
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1959
+ )
1960
+ http_profile = HttpProfile(
1961
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1962
+ reqMethod="POST",
1963
+ endpoint=g_param[OptionsDefine.Endpoint],
1964
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1965
+ )
1966
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1967
+ if g_param[OptionsDefine.Language]:
1968
+ profile.language = g_param[OptionsDefine.Language]
1969
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1970
+ client = mod.SslClient(cred, g_param[OptionsDefine.Region], profile)
1971
+ client._sdkVersion += ("_CLI_" + __version__)
1972
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1973
+ model = models.DescribeDeleteCertificatesTaskResultRequest()
1974
+ model.from_json_string(json.dumps(args))
1975
+ start_time = time.time()
1976
+ while True:
1977
+ rsp = client.DescribeDeleteCertificatesTaskResult(model)
1978
+ result = rsp.to_json_string()
1979
+ try:
1980
+ json_obj = json.loads(result)
1981
+ except TypeError as e:
1982
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1983
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1984
+ break
1985
+ cur_time = time.time()
1986
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1987
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1988
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1989
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1990
+ else:
1991
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1992
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1993
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1994
+
1995
+
1944
1996
  def doModifyCertificateProject(args, parsed_globals):
1945
1997
  g_param = parse_global_arg(parsed_globals)
1946
1998
 
@@ -2977,6 +3029,7 @@ ACTION_MAP = {
2977
3029
  "CancelAuditCertificate": doCancelAuditCertificate,
2978
3030
  "DescribeHostDeployRecord": doDescribeHostDeployRecord,
2979
3031
  "UpdateCertificateRecordRetry": doUpdateCertificateRecordRetry,
3032
+ "DescribeDeleteCertificatesTaskResult": doDescribeDeleteCertificatesTaskResult,
2980
3033
  "ModifyCertificateProject": doModifyCertificateProject,
2981
3034
  "ModifyCertificateAlias": doModifyCertificateAlias,
2982
3035
  "DescribeHostUpdateRecordDetail": doDescribeHostUpdateRecordDetail,
@@ -147,6 +147,13 @@
147
147
  "output": "DescribeCompaniesResponse",
148
148
  "status": "online"
149
149
  },
150
+ "DescribeDeleteCertificatesTaskResult": {
151
+ "document": "查询批量删除任务结果",
152
+ "input": "DescribeDeleteCertificatesTaskResultRequest",
153
+ "name": "查询批量删除任务结果",
154
+ "output": "DescribeDeleteCertificatesTaskResultResponse",
155
+ "status": "online"
156
+ },
150
157
  "DescribeDeployedResources": {
151
158
  "document": "证书查询关联资源, 最新查询接口请使用CreateCertificateBindResourceSyncTask, 可以查询更多支持的云资源",
152
159
  "input": "DescribeDeployedResourcesRequest",
@@ -2513,6 +2520,72 @@
2513
2520
  ],
2514
2521
  "type": "object"
2515
2522
  },
2523
+ "DeleteTaskResult": {
2524
+ "document": "批量删除证书异步任务结果",
2525
+ "members": [
2526
+ {
2527
+ "disabled": false,
2528
+ "document": "任务ID",
2529
+ "example": "无",
2530
+ "member": "string",
2531
+ "name": "TaskId",
2532
+ "output_required": true,
2533
+ "type": "string",
2534
+ "value_allowed_null": false
2535
+ },
2536
+ {
2537
+ "disabled": false,
2538
+ "document": "证书ID",
2539
+ "example": "无",
2540
+ "member": "string",
2541
+ "name": "CertId",
2542
+ "output_required": true,
2543
+ "type": "string",
2544
+ "value_allowed_null": false
2545
+ },
2546
+ {
2547
+ "disabled": false,
2548
+ "document": "异步查询结果: 0表示任务进行中、 1表示任务成功、 2表示任务失败、3表示未授权服务角色导致任务失败、4表示有未解绑的云资源导致任务失败、5表示查询关联云资源超时导致任务失败",
2549
+ "example": "无",
2550
+ "member": "uint64",
2551
+ "name": "Status",
2552
+ "output_required": true,
2553
+ "type": "int",
2554
+ "value_allowed_null": false
2555
+ },
2556
+ {
2557
+ "disabled": false,
2558
+ "document": "错误信息\n注意:此字段可能返回 null,表示取不到有效值。",
2559
+ "example": "无",
2560
+ "member": "string",
2561
+ "name": "Error",
2562
+ "output_required": true,
2563
+ "type": "string",
2564
+ "value_allowed_null": true
2565
+ },
2566
+ {
2567
+ "disabled": false,
2568
+ "document": "当前结果缓存时间\n注意:此字段可能返回 null,表示取不到有效值。",
2569
+ "example": "无",
2570
+ "member": "string",
2571
+ "name": "CacheTime",
2572
+ "output_required": true,
2573
+ "type": "string",
2574
+ "value_allowed_null": true
2575
+ },
2576
+ {
2577
+ "disabled": false,
2578
+ "document": "包含的域名\n注意:此字段可能返回 null,表示取不到有效值。",
2579
+ "example": "无",
2580
+ "member": "string",
2581
+ "name": "Domains",
2582
+ "output_required": true,
2583
+ "type": "list",
2584
+ "value_allowed_null": true
2585
+ }
2586
+ ],
2587
+ "usage": "out"
2588
+ },
2516
2589
  "DeployCertificateInstanceRequest": {
2517
2590
  "document": "DeployCertificateInstance请求参数结构体",
2518
2591
  "members": [
@@ -4402,6 +4475,43 @@
4402
4475
  ],
4403
4476
  "type": "object"
4404
4477
  },
4478
+ "DescribeDeleteCertificatesTaskResultRequest": {
4479
+ "document": "DescribeDeleteCertificatesTaskResult请求参数结构体",
4480
+ "members": [
4481
+ {
4482
+ "disabled": false,
4483
+ "document": "DeleteCertificates接口返回的任务ID, 最大支持100个",
4484
+ "example": "无",
4485
+ "member": "string",
4486
+ "name": "TaskIds",
4487
+ "required": true,
4488
+ "type": "list"
4489
+ }
4490
+ ],
4491
+ "type": "object"
4492
+ },
4493
+ "DescribeDeleteCertificatesTaskResultResponse": {
4494
+ "document": "DescribeDeleteCertificatesTaskResult返回参数结构体",
4495
+ "members": [
4496
+ {
4497
+ "disabled": false,
4498
+ "document": "批量删除证书异步任务结果\n注意:此字段可能返回 null,表示取不到有效值。",
4499
+ "example": "无",
4500
+ "member": "DeleteTaskResult",
4501
+ "name": "DeleteTaskResult",
4502
+ "output_required": true,
4503
+ "type": "list",
4504
+ "value_allowed_null": true
4505
+ },
4506
+ {
4507
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4508
+ "member": "string",
4509
+ "name": "RequestId",
4510
+ "type": "string"
4511
+ }
4512
+ ],
4513
+ "type": "object"
4514
+ },
4405
4515
  "DescribeDeployedResourcesRequest": {
4406
4516
  "document": "DescribeDeployedResources请求参数结构体",
4407
4517
  "members": [
@@ -186,6 +186,14 @@
186
186
  "title": "查询公司列表"
187
187
  }
188
188
  ],
189
+ "DescribeDeleteCertificatesTaskResult": [
190
+ {
191
+ "document": "正常查询",
192
+ "input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDeleteCertificatesTaskResult\n<公共请求参数>\n\n{\n \"TaskIds\": [\n \"11\",\n \"12\",\n \"13\",\n \"15\",\n \"14\"\n ]\n}",
193
+ "output": "{\n \"Response\": {\n \"DeleteTaskResult\": [\n {\n \"TaskId\": \"11\",\n \"Status\": 0,\n \"CertId\": \"1ODjBeH8\",\n \"Domains\": [\n \"GMCert ECC Root CA - 01\"\n ],\n \"Error\": null,\n \"CacheTime\": \"2023-09-27 19:01:47\"\n },\n {\n \"TaskId\": \"12\",\n \"Status\": 0,\n \"CertId\": \"25EMBPYQ\",\n \"Domains\": [\n \"hank.com\"\n ],\n \"Error\": null,\n \"CacheTime\": \"2023-09-27 19:01:48\"\n },\n {\n \"TaskId\": \"13\",\n \"Status\": 0,\n \"CertId\": \"txV0pewo\",\n \"Domains\": [\n \"test.hankzzz.com\"\n ],\n \"Error\": null,\n \"CacheTime\": \"2023-09-27 19:01:48\"\n },\n {\n \"TaskId\": \"14\",\n \"Status\": 4,\n \"CertId\": \"rcGiGyTx\",\n \"Domains\": [\n \"*.hath.fun\"\n ],\n \"Error\": \"有未解绑的云资源\",\n \"CacheTime\": \"2023-09-27 19:01:48\"\n },\n {\n \"TaskId\": \"15\",\n \"Status\": 2,\n \"CertId\": \"4FVmnb1u\",\n \"Domains\": [\n \"*.hank-dv.com\"\n ],\n \"Error\": \"当前的证书状态不支持此操作\",\n \"CacheTime\": \"2023-09-27 19:01:48\"\n }\n ],\n \"RequestId\": \"037cc05f-c384-4d71-ab4f-a42d896ebb2e\"\n }\n}",
194
+ "title": "正常查询"
195
+ }
196
+ ],
189
197
  "DescribeDeployedResources": [
190
198
  {
191
199
  "document": "证书查询关联资源",
@@ -1180,7 +1180,7 @@
1180
1180
  "example": "test",
1181
1181
  "member": "string",
1182
1182
  "name": "SecretName",
1183
- "required": true,
1183
+ "output_required": true,
1184
1184
  "type": "string",
1185
1185
  "value_allowed_null": false
1186
1186
  },
@@ -13151,7 +13151,7 @@
13151
13151
  },
13152
13152
  {
13153
13153
  "disabled": false,
13154
- "document": "0:本地域访问,由于并没有配置跨地域容灾,所该类型的接入点,无法进行异地切换、异地访问切回;\n1:本地域访问,由于配置了跨地域容灾,随时可以进行异地切换,该状态用于主集群的接入点\n2:跨地域访问,已经完成了异地切换,该状态用于源集群的接入点,该状态下的接入点不可删除\n3:跨地域访问,随时可以进行异地访问切回,该状态用于目标集群的接入点,该状态下的接入点不可删除\n注意:此字段可能返回 null,表示取不到有效值。",
13154
+ "document": "0:本地域访问,由于并没有配置跨地域容灾,所该类型的接入点,无法进行异地切换、异地访问切回;\n1:本地域访问,由于配置了跨地域容灾,随时可以进行异地切换,该状态用于主集群的接入点\n2:跨地域访问,已经完成了异地切换,该状态用于源集群的接入点,该状态下的接入点不可删除\n3:跨地域访问,随时可以进行异地访问切回,该状态用于目标集群的接入点,该状态下的接入点不可删除\n4:跨地域访问,目标集群已经完成异地切回,等待删除状态\n注意:此字段可能返回 null,表示取不到有效值。",
13155
13155
  "example": "0",
13156
13156
  "member": "uint64",
13157
13157
  "name": "OperationType",