tccli 3.0.1351.1__py2.py3-none-any.whl → 3.0.1352.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 (40) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/ai3d/v20250513/api.json +1 -1
  3. tccli/services/ai3d/v20250513/examples.json +1 -1
  4. tccli/services/ccc/v20200210/api.json +1 -1
  5. tccli/services/cdb/v20170320/api.json +2 -2
  6. tccli/services/ctem/ctem_client.py +212 -0
  7. tccli/services/ctem/v20231128/api.json +1609 -633
  8. tccli/services/ctem/v20231128/examples.json +32 -0
  9. tccli/services/cwp/v20180228/api.json +11 -1
  10. tccli/services/cynosdb/v20190107/api.json +28 -0
  11. tccli/services/cynosdb/v20190107/examples.json +4 -4
  12. tccli/services/ess/ess_client.py +114 -8
  13. tccli/services/ess/v20201111/api.json +212 -0
  14. tccli/services/ess/v20201111/examples.json +16 -0
  15. tccli/services/iss/v20230517/api.json +9 -9
  16. tccli/services/live/v20180801/api.json +299 -3
  17. tccli/services/live/v20180801/examples.json +6 -6
  18. tccli/services/lkeap/v20240522/api.json +94 -17
  19. tccli/services/lkeap/v20240522/examples.json +2 -2
  20. tccli/services/mongodb/v20190725/api.json +2 -2
  21. tccli/services/mongodb/v20190725/examples.json +1 -1
  22. tccli/services/monitor/v20180724/api.json +38 -24
  23. tccli/services/mps/mps_client.py +53 -0
  24. tccli/services/mps/v20190612/api.json +580 -279
  25. tccli/services/mps/v20190612/examples.json +18 -4
  26. tccli/services/ocr/v20181119/api.json +24 -4
  27. tccli/services/ocr/v20181119/examples.json +1 -1
  28. tccli/services/omics/v20221128/api.json +9 -0
  29. tccli/services/pts/v20210728/api.json +1 -1
  30. tccli/services/teo/teo_client.py +777 -35
  31. tccli/services/teo/v20220901/api.json +1026 -3
  32. tccli/services/teo/v20220901/examples.json +154 -0
  33. tccli/services/tione/v20211111/api.json +9 -0
  34. tccli/services/vod/v20180717/api.json +60 -60
  35. tccli/services/vod/v20180717/examples.json +20 -20
  36. {tccli-3.0.1351.1.dist-info → tccli-3.0.1352.1.dist-info}/METADATA +2 -2
  37. {tccli-3.0.1351.1.dist-info → tccli-3.0.1352.1.dist-info}/RECORD +40 -40
  38. {tccli-3.0.1351.1.dist-info → tccli-3.0.1352.1.dist-info}/WHEEL +0 -0
  39. {tccli-3.0.1351.1.dist-info → tccli-3.0.1352.1.dist-info}/entry_points.txt +0 -0
  40. {tccli-3.0.1351.1.dist-info → tccli-3.0.1352.1.dist-info}/license_files/LICENSE +0 -0
@@ -3858,7 +3858,7 @@
3858
3858
  },
3859
3859
  {
3860
3860
  "disabled": false,
3861
- "document": "- 创建副本集实例,指每个副本集内主从节点数量。每个副本集所支持的的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。\n- 创建分片集群实例,指每个分片的主从节点数量。每个分片所支持的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。",
3861
+ "document": "- 创建副本集实例,指每个副本集内主从节点数量。每个副本集所支持的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。\n- 创建分片集群实例,指每个分片的主从节点数量。每个分片所支持的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。",
3862
3862
  "example": "3",
3863
3863
  "member": "int64",
3864
3864
  "name": "NodeNum",
@@ -5304,7 +5304,7 @@
5304
5304
  },
5305
5305
  {
5306
5306
  "disabled": false,
5307
- "document": "目标安全组 ID。请通过接口[DescribeSecurityGroup](https://cloud.tencent.com/document/product/240/55675)查看具体的安全组 ID",
5307
+ "document": "目标安全组 ID。请通过接口[DescribeSecurityGroup](https://cloud.tencent.com/document/product/240/55675)查看具体的安全组 ID。\n**注意**:该入参会全量替换存量已有集合,非增量更新。修改需传入预期的全量集合。",
5308
5308
  "example": "[\"sg-a\", \"sg-b\"]",
5309
5309
  "member": "string",
5310
5310
  "name": "SecurityGroupIds",
@@ -329,7 +329,7 @@
329
329
  "ModifyDBInstanceSecurityGroup": [
330
330
  {
331
331
  "document": "修改指定实例的安全组入站规则",
332
- "input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDBInstanceSecurityGroup\n<公共请求参数>\n\n{\n \"InstanceId\": \"cmgo-14i5dgtl'\",\n \"SecurityGroupIds\": [\n \"sg-l7ipccjl\"\n ]\n}",
332
+ "input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDBInstanceSecurityGroup\n<公共请求参数>\n\n{\n \"InstanceId\": \"cmgo-14i5****'\",\n \"SecurityGroupIds\": [\n \"sg-l7ip****\"\n ]\n}",
333
333
  "output": "{\n \"Response\": {\n \"RequestId\": \"bc59fa05-d429-4bcf-863f-1f6f99295485\"\n }\n}",
334
334
  "title": "修改实例的安全组信息"
335
335
  }
@@ -3,7 +3,7 @@
3
3
  "BindPrometheusManagedGrafana": {
4
4
  "document": "绑定 Grafana 可视化服务实例",
5
5
  "input": "BindPrometheusManagedGrafanaRequest",
6
- "name": "绑定 Grafana 可视化实例",
6
+ "name": "绑定 Grafana 服务实例",
7
7
  "output": "BindPrometheusManagedGrafanaResponse",
8
8
  "status": "online"
9
9
  },
@@ -1025,7 +1025,7 @@
1025
1025
  "UnbindPrometheusManagedGrafana": {
1026
1026
  "document": "解除实例绑定的 Grafana 可视化实例",
1027
1027
  "input": "UnbindPrometheusManagedGrafanaRequest",
1028
- "name": "解除实例绑定的 Grafana 可视化实例",
1028
+ "name": "解除实例绑定的 Grafana 服务实例",
1029
1029
  "output": "UnbindPrometheusManagedGrafanaResponse",
1030
1030
  "status": "online"
1031
1031
  },
@@ -4831,7 +4831,7 @@
4831
4831
  },
4832
4832
  {
4833
4833
  "disabled": false,
4834
- "document": "云监控告警通知模板ID列表,形如Consumer-xxxx或notice-xxxx",
4834
+ "document": "腾讯云可观测平台告警通知模板ID列表,形如Consumer-xxxx或notice-xxxx",
4835
4835
  "example": "[\"Consumer-5sfs3242\", \"notice-as6512as\"]",
4836
4836
  "member": "string",
4837
4837
  "name": "AMPReceivers",
@@ -16569,44 +16569,58 @@
16569
16569
  "document": "ModifyConditionsTemplateRequestEventCondition",
16570
16570
  "members": [
16571
16571
  {
16572
- "disabled": false,
16572
+ "disabled": true,
16573
16573
  "document": "告警通知周期",
16574
- "example": "",
16574
+ "example": "已不再使用",
16575
16575
  "member": "string",
16576
16576
  "name": "AlarmNotifyPeriod",
16577
- "required": true,
16578
- "type": "string",
16579
- "value_allowed_null": false
16577
+ "required": false,
16578
+ "type": "string"
16580
16579
  },
16581
16580
  {
16582
- "disabled": false,
16581
+ "disabled": true,
16583
16582
  "document": "告警通知方式",
16584
- "example": "",
16583
+ "example": "已不再使用",
16585
16584
  "member": "string",
16586
16585
  "name": "AlarmNotifyType",
16587
- "required": true,
16588
- "type": "string",
16589
- "value_allowed_null": false
16586
+ "required": false,
16587
+ "type": "string"
16590
16588
  },
16591
16589
  {
16592
- "disabled": false,
16590
+ "disabled": true,
16593
16591
  "document": "事件ID",
16594
- "example": "",
16592
+ "example": "已不再使用",
16595
16593
  "member": "string",
16596
16594
  "name": "EventID",
16597
- "required": true,
16598
- "type": "string",
16599
- "value_allowed_null": false
16595
+ "required": false,
16596
+ "type": "string"
16600
16597
  },
16601
16598
  {
16602
- "disabled": false,
16599
+ "disabled": true,
16603
16600
  "document": "规则ID",
16604
- "example": "",
16601
+ "example": "已不再使用",
16605
16602
  "member": "int64",
16606
16603
  "name": "RuleID",
16607
16604
  "required": false,
16608
- "type": "int",
16609
- "value_allowed_null": false
16605
+ "type": "int"
16606
+ },
16607
+ {
16608
+ "disabled": false,
16609
+ "document": "重构后的eventType",
16610
+ "example": "cvm:ErrorEvent:CvmPacketDropedByQ osConnectionSession",
16611
+ "member": "string",
16612
+ "name": "MetricName",
16613
+ "required": false,
16614
+ "type": "string"
16615
+ },
16616
+ {
16617
+ "disabled": false,
16618
+ "document": "事件描述信息",
16619
+ "example": "连接数超限导致丢包",
16620
+ "member": "string",
16621
+ "name": "Description",
16622
+ "required": false,
16623
+ "type": "string"
16610
16624
  }
16611
16625
  ],
16612
16626
  "usage": "in"
@@ -18227,7 +18241,7 @@
18227
18241
  },
18228
18242
  {
18229
18243
  "disabled": false,
18230
- "document": "云监控告警模板ID ,返回告警模板转换后的notice ID。\n注意:此字段可能返回 null,表示取不到有效值。",
18244
+ "document": "腾讯云可观测平台告警模板ID ,返回告警模板转换后的notice ID。\n注意:此字段可能返回 null,表示取不到有效值。",
18231
18245
  "example": "[\"notice-as454a12\"]",
18232
18246
  "member": "string",
18233
18247
  "name": "AMPReceivers",
@@ -22196,7 +22210,7 @@
22196
22210
  },
22197
22211
  {
22198
22212
  "disabled": false,
22199
- "document": "云监控告警通知模板ID列表,形如Consumer-xxxx或notice-xxxx",
22213
+ "document": "腾讯云可观测平台告警通知模板ID列表,形如Consumer-xxxx或notice-xxxx",
22200
22214
  "example": "[\"Consumer-5sfs3242\"]",
22201
22215
  "member": "string",
22202
22216
  "name": "AMPReceivers",
@@ -2617,6 +2617,58 @@ def doDeleteWorkflow(args, parsed_globals):
2617
2617
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2618
2618
 
2619
2619
 
2620
+ def doCreateMediaEvaluation(args, parsed_globals):
2621
+ g_param = parse_global_arg(parsed_globals)
2622
+
2623
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2624
+ cred = credential.CVMRoleCredential()
2625
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2626
+ cred = credential.STSAssumeRoleCredential(
2627
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2628
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2629
+ )
2630
+ 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):
2631
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2632
+ else:
2633
+ cred = credential.Credential(
2634
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2635
+ )
2636
+ http_profile = HttpProfile(
2637
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2638
+ reqMethod="POST",
2639
+ endpoint=g_param[OptionsDefine.Endpoint],
2640
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2641
+ )
2642
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2643
+ if g_param[OptionsDefine.Language]:
2644
+ profile.language = g_param[OptionsDefine.Language]
2645
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2646
+ client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
2647
+ client._sdkVersion += ("_CLI_" + __version__)
2648
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2649
+ model = models.CreateMediaEvaluationRequest()
2650
+ model.from_json_string(json.dumps(args))
2651
+ start_time = time.time()
2652
+ while True:
2653
+ rsp = client.CreateMediaEvaluation(model)
2654
+ result = rsp.to_json_string()
2655
+ try:
2656
+ json_obj = json.loads(result)
2657
+ except TypeError as e:
2658
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2659
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2660
+ break
2661
+ cur_time = time.time()
2662
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2663
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2664
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2665
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2666
+ else:
2667
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2668
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2669
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2670
+
2671
+
2620
2672
  def doCreateQualityControlTemplate(args, parsed_globals):
2621
2673
  g_param = parse_global_arg(parsed_globals)
2622
2674
 
@@ -6890,6 +6942,7 @@ ACTION_MAP = {
6890
6942
  "ResetWorkflow": doResetWorkflow,
6891
6943
  "DeleteQualityControlTemplate": doDeleteQualityControlTemplate,
6892
6944
  "DeleteWorkflow": doDeleteWorkflow,
6945
+ "CreateMediaEvaluation": doCreateMediaEvaluation,
6893
6946
  "CreateQualityControlTemplate": doCreateQualityControlTemplate,
6894
6947
  "ModifyImageSpriteTemplate": doModifyImageSpriteTemplate,
6895
6948
  "DescribeTranscodeTemplates": doDescribeTranscodeTemplates,