tccli 3.0.1262.1__py2.py3-none-any.whl → 3.0.1264.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 (41) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/v20221229/api.json +2 -2
  3. tccli/services/batch/v20170312/api.json +1 -1
  4. tccli/services/cdb/v20170320/api.json +4 -4
  5. tccli/services/cdb/v20170320/examples.json +5 -5
  6. tccli/services/cdwdoris/v20211228/api.json +3 -3
  7. tccli/services/cdwdoris/v20211228/examples.json +2 -2
  8. tccli/services/cfw/cfw_client.py +0 -53
  9. tccli/services/cfw/v20190904/api.json +3 -166
  10. tccli/services/cfw/v20190904/examples.json +0 -8
  11. tccli/services/ckafka/v20190819/api.json +11 -2
  12. tccli/services/cvm/v20170312/api.json +1 -1
  13. tccli/services/cwp/cwp_client.py +69 -175
  14. tccli/services/cwp/v20180228/api.json +0 -374
  15. tccli/services/cwp/v20180228/examples.json +0 -16
  16. tccli/services/dsgc/v20190723/api.json +12 -3
  17. tccli/services/ess/v20201111/api.json +1 -1
  18. tccli/services/essbasic/v20210526/api.json +1 -1
  19. tccli/services/lighthouse/v20200324/api.json +77 -0
  20. tccli/services/lighthouse/v20200324/examples.json +2 -2
  21. tccli/services/live/v20180801/api.json +1 -1
  22. tccli/services/lke/v20231130/api.json +33 -0
  23. tccli/services/lkeap/v20240522/api.json +2 -2
  24. tccli/services/mna/v20210119/api.json +20 -20
  25. tccli/services/mongodb/v20190725/api.json +15 -15
  26. tccli/services/mongodb/v20190725/examples.json +5 -5
  27. tccli/services/monitor/v20180724/api.json +22 -20
  28. tccli/services/monitor/v20180724/examples.json +3 -3
  29. tccli/services/ocr/v20181119/api.json +2 -2
  30. tccli/services/tat/v20201028/api.json +6 -6
  31. tccli/services/tccatalog/v20241024/api.json +61 -3
  32. tccli/services/trocket/trocket_client.py +53 -0
  33. tccli/services/trocket/v20230308/api.json +70 -0
  34. tccli/services/trocket/v20230308/examples.json +8 -0
  35. tccli/services/trtc/v20190722/api.json +23 -23
  36. tccli/services/trtc/v20190722/examples.json +4 -4
  37. {tccli-3.0.1262.1.dist-info → tccli-3.0.1264.1.dist-info}/METADATA +2 -2
  38. {tccli-3.0.1262.1.dist-info → tccli-3.0.1264.1.dist-info}/RECORD +41 -41
  39. {tccli-3.0.1262.1.dist-info → tccli-3.0.1264.1.dist-info}/WHEEL +0 -0
  40. {tccli-3.0.1262.1.dist-info → tccli-3.0.1264.1.dist-info}/entry_points.txt +0 -0
  41. {tccli-3.0.1262.1.dist-info → tccli-3.0.1264.1.dist-info}/license_files/LICENSE +0 -0
@@ -12168,7 +12168,7 @@
12168
12168
  {
12169
12169
  "disabled": false,
12170
12170
  "document": "规格名称\n注意:此字段可能返回 null,表示取不到有效值。",
12171
- "example": "abc",
12171
+ "example": "基础1",
12172
12172
  "member": "string",
12173
12173
  "name": "SpecName",
12174
12174
  "output_required": true,
@@ -12844,7 +12844,7 @@
12844
12844
  {
12845
12845
  "disabled": false,
12846
12846
  "document": "模板列表",
12847
- "example": "[{\"Name\":\"abc\",\"Describe\":\"abc\",\"Level\":\"abc\",\"RecordRules\":[{\"Name\":\"abc\",\"Config\":\"abc\",\"TemplateId\":\"abc\",\"Targets\":{\"Total\":1,\"Up\":1,\"Down\":1,\"Unknown\":1}}],\"RawJobs\":[{\"Name\":\"abc\",\"Config\":\"abc\",\"TemplateId\":\"abc\",\"Targets\":{\"Total\":1,\"Up\":1,\"Down\":1,\"Unknown\":1}}],\"ServiceMonitors\":[{\"Name\":\"abc\",\"Config\":\"abc\",\"TemplateId\":\"abc\",\"Targets\":{\"Total\":1,\"Up\":1,\"Down\":1,\"Unknown\":1}}],\"PodMonitors\":[{\"Name\":\"abc\",\"Config\":\"abc\",\"TemplateId\":\"abc\",\"Targets\":{\"Total\":1,\"Up\":1,\"Down\":1,\"Unknown\":1}}],\"TemplateId\":\"abc\",\"UpdateTime\":\"abc\",\"Version\":\"abc\",\"IsDefault\":true,\"AlertDetailRules\":[{\"Id\":\"abc\",\"Name\":\"abc\",\"TemplateId\":\"abc\",\"Notification\":{\"Enabled\":true,\"Type\":\"abc\",\"WebHook\":\"abc\",\"AlertManager\":{\"ClusterType\":\"abc\",\"ClusterId\":\"abc\",\"Url\":\"abc\"},\"RepeatInterval\":\"abc\",\"TimeRangeStart\":\"abc\",\"TimeRangeEnd\":\"abc\",\"NotifyWay\":[\"abc\"],\"ReceiverGroups\":[\"abc\"],\"PhoneNotifyOrder\":[1],\"PhoneCircleTimes\":0,\"PhoneInnerInterval\":0,\"PhoneCircleInterval\":0,\"PhoneArriveNotice\":true},\"Rules\":[{\"Name\":\"abc\",\"Rule\":\"abc\",\"Labels\":[{\"Name\":\"abc\",\"Value\":\"abc\"}],\"Template\":\"abc\",\"For\":\"abc\",\"Describe\":\"abc\",\"Annotations\":[{\"Name\":\"abc\",\"Value\":\"abc\"}],\"RuleState\":0}],\"UpdatedAt\":\"abc\",\"ClusterId\":\"abc\",\"Interval\":\"abc\"}],\"TargetsTotal\": 0}]",
12847
+ "example": "",
12848
12848
  "member": "PrometheusTemp",
12849
12849
  "name": "Templates",
12850
12850
  "output_required": true,
@@ -13143,7 +13143,7 @@
13143
13143
  {
13144
13144
  "disabled": false,
13145
13145
  "document": "Prometheus 实例 ID",
13146
- "example": "",
13146
+ "example": "prom-abc",
13147
13147
  "member": "string",
13148
13148
  "name": "InstanceId",
13149
13149
  "required": true,
@@ -13152,7 +13152,7 @@
13152
13152
  {
13153
13153
  "disabled": false,
13154
13154
  "document": "<li>类型是 TKE,为对应的腾讯云容器服务集群 ID</li>",
13155
- "example": "",
13155
+ "example": "cls-abc",
13156
13156
  "member": "string",
13157
13157
  "name": "KubeClusterId",
13158
13158
  "required": true,
@@ -13161,7 +13161,7 @@
13161
13161
  {
13162
13162
  "disabled": false,
13163
13163
  "document": "用户 Kubernetes 集群类型:\n<li> 1 = 容器服务集群(TKE) </li>",
13164
- "example": "",
13164
+ "example": "1",
13165
13165
  "member": "int64",
13166
13166
  "name": "KubeType",
13167
13167
  "required": true,
@@ -13176,9 +13176,10 @@
13176
13176
  {
13177
13177
  "disabled": false,
13178
13178
  "document": "返回服务发现列表信息\n注意:此字段可能返回 null,表示取不到有效值。",
13179
- "example": "",
13179
+ "example": "",
13180
13180
  "member": "ServiceDiscoveryItem",
13181
13181
  "name": "ServiceDiscoverySet",
13182
+ "output_required": true,
13182
13183
  "type": "list",
13183
13184
  "value_allowed_null": true
13184
13185
  },
@@ -13890,7 +13891,7 @@
13890
13891
  {
13891
13892
  "disabled": false,
13892
13893
  "document": "Prometheus 实例 ID",
13893
- "example": "",
13894
+ "example": "prom-abc",
13894
13895
  "member": "string",
13895
13896
  "name": "InstanceId",
13896
13897
  "required": true,
@@ -13899,7 +13900,7 @@
13899
13900
  {
13900
13901
  "disabled": false,
13901
13902
  "document": "Prometheus Agent ID",
13902
- "example": "",
13903
+ "example": "agent-abc",
13903
13904
  "member": "string",
13904
13905
  "name": "AgentId",
13905
13906
  "required": true,
@@ -13914,9 +13915,10 @@
13914
13915
  {
13915
13916
  "disabled": false,
13916
13917
  "document": "Agent 管理命令",
13917
- "example": "",
13918
+ "example": "",
13918
13919
  "member": "ManagementCommand",
13919
13920
  "name": "Command",
13921
+ "output_required": true,
13920
13922
  "type": "object",
13921
13923
  "value_allowed_null": false
13922
13924
  },
@@ -18886,40 +18888,40 @@
18886
18888
  {
18887
18889
  "disabled": false,
18888
18890
  "document": "任务名\n注意:此字段可能返回 null,表示取不到有效值。",
18889
- "example": "",
18891
+ "example": "redis-monitor",
18890
18892
  "member": "string",
18891
18893
  "name": "Name",
18892
- "required": true,
18894
+ "output_required": true,
18893
18895
  "type": "string",
18894
18896
  "value_allowed_null": true
18895
18897
  },
18896
18898
  {
18897
18899
  "disabled": false,
18898
18900
  "document": "Agent ID",
18899
- "example": "",
18901
+ "example": "agent-abc",
18900
18902
  "member": "string",
18901
18903
  "name": "AgentId",
18902
- "required": true,
18904
+ "output_required": true,
18903
18905
  "type": "string",
18904
18906
  "value_allowed_null": false
18905
18907
  },
18906
18908
  {
18907
18909
  "disabled": false,
18908
18910
  "document": "任务 ID",
18909
- "example": "",
18911
+ "example": "job-abc",
18910
18912
  "member": "string",
18911
18913
  "name": "JobId",
18912
- "required": true,
18914
+ "output_required": true,
18913
18915
  "type": "string",
18914
18916
  "value_allowed_null": false
18915
18917
  },
18916
18918
  {
18917
18919
  "disabled": false,
18918
18920
  "document": "配置\n注意:此字段可能返回 null,表示取不到有效值。",
18919
- "example": "",
18921
+ "example": "job_name: \"redis-monitor\"\\nstatic_configs:\\n- targets: [\"localhost:8080\"]",
18920
18922
  "member": "string",
18921
18923
  "name": "Config",
18922
- "required": true,
18924
+ "output_required": true,
18923
18925
  "type": "string",
18924
18926
  "value_allowed_null": true
18925
18927
  }
@@ -19622,7 +19624,7 @@
19622
19624
  {
19623
19625
  "disabled": false,
19624
19626
  "document": "RelabelConfig\n注意:此字段可能返回 null,表示取不到有效值。",
19625
- "example": "",
19627
+ "example": "- source_labels: [label] target_label: label1",
19626
19628
  "member": "string",
19627
19629
  "name": "URLRelabelConfig",
19628
19630
  "output_required": true,
@@ -19642,7 +19644,7 @@
19642
19644
  "value_allowed_null": true
19643
19645
  },
19644
19646
  {
19645
- "disabled": false,
19647
+ "disabled": true,
19646
19648
  "document": "最大block\n注意:此字段可能返回 null,表示取不到有效值。",
19647
19649
  "example": "无",
19648
19650
  "member": "string",
@@ -19653,7 +19655,7 @@
19653
19655
  "value_allowed_null": true
19654
19656
  },
19655
19657
  {
19656
- "disabled": false,
19658
+ "disabled": true,
19657
19659
  "document": "Label\n注意:此字段可能返回 null,表示取不到有效值。",
19658
19660
  "example": "无",
19659
19661
  "member": "string",
@@ -877,7 +877,7 @@
877
877
  "DescribePrometheusInstanceDetail": [
878
878
  {
879
879
  "document": "查询TMP实例详情",
880
- "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheusInstanceDetail\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\"\n}",
880
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheusInstanceDetail\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-abc\"\n}",
881
881
  "output": "{\n \"Response\": {\n \"InstanceId\": \"prom-skdfj\",\n \"InstanceName\": \"test-prom\",\n \"VpcId\": \"vpc-sjdh\",\n \"SubnetId\": \"subnet-kdhe\",\n \"InstanceStatus\": 3,\n \"ChargeStatus\": 1,\n \"EnableGrafana\": 0,\n \"GrafanaURL\": \"http://djeb:9000\",\n \"InstanceChargeType\": 0,\n \"SpecName\": \"name-sjdb\",\n \"DataRetentionTime\": 15,\n \"ExpireTime\": \"2024-07-16 16:28:54\",\n \"AutoRenewFlag\": 0,\n \"RequestId\": \"skdbfdi-akenfhl\"\n }\n}",
882
882
  "title": "查询TMP实例详情"
883
883
  }
@@ -956,7 +956,7 @@
956
956
  {
957
957
  "document": "拉取模板列表",
958
958
  "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheusTemp\n<公共请求参数>\n\n{\n \"Limit\": 1,\n \"Filters\": [\n {\n \"Name\": \"ID\",\n \"Values\": [\n \"alert-test\"\n ]\n }\n ],\n \"Offset\": 1\n}",
959
- "output": "{\n \"Response\": {\n \"Templates\": [\n {\n \"Name\": \"test\",\n \"Describe\": \"test\",\n \"Level\": \"instance\",\n \"RecordRules\": [\n {\n \"Name\": \"testRule\",\n \"Config\": \"abc\",\n \"TemplateId\": \"temp-asdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"RawJobs\": [\n {\n \"Name\": \"abc\",\n \"Config\": \"abc\",\n \"TemplateId\": \"abc\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"ServiceMonitors\": [\n {\n \"Name\": \"test-sm\",\n \"Config\": \"abc\",\n \"TemplateId\": \"temp-asdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"PodMonitors\": [\n {\n \"Name\": \"test-pm\",\n \"Config\": \"abc\",\n \"TemplateId\": \"temp-asdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"TemplateId\": \"temp-asdj\",\n \"UpdateTime\": \"2024-07-16T08:28:54Z\",\n \"Version\": \"v1\",\n \"IsDefault\": true,\n \"AlertDetailRules\": [\n {\n \"Id\": \"rule-asdk\",\n \"Name\": \"testAlert\",\n \"TemplateId\": \"temp-asdj\",\n \"Notification\": {\n \"Enabled\": true,\n \"Type\": \"amp\",\n \"WebHook\": \"abc\",\n \"AlertManager\": {\n \"ClusterType\": \"tke\",\n \"ClusterId\": \"cls-askj\",\n \"Url\": \"http://asasdkfh:9000\"\n },\n \"RepeatInterval\": \"5m\",\n \"TimeRangeStart\": \"00:00:00\",\n \"TimeRangeEnd\": \"23:59:59\",\n \"NotifyWay\": [\n \"abc\"\n ],\n \"ReceiverGroups\": [\n \"notice-yakj\"\n ],\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneCircleTimes\": 0,\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"PhoneArriveNotice\": true\n },\n \"Rules\": [\n {\n \"Name\": \"rule-ajdb\",\n \"Rule\": \"avg by (abc) skdj\",\n \"Labels\": [\n {\n \"Name\": \"label-name\",\n \"Value\": \"label-value\"\n }\n ],\n \"Template\": \"temp-asdj\",\n \"For\": \"5m\",\n \"Describe\": \"test-temp\",\n \"Annotations\": [\n {\n \"Name\": \"label-name\",\n \"Value\": \"label-value\"\n }\n ],\n \"RuleState\": 0\n }\n ],\n \"UpdatedAt\": \"2024-07-16 16:28:54\",\n \"ClusterId\": \"cls-djfb\"\n }\n ],\n \"TargetsTotal\": 0\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"skdh-afbri\"\n }\n}",
959
+ "output": "{\n \"Response\": {\n \"Templates\": [\n {\n \"Name\": \"template\",\n \"Describe\": \"template\",\n \"Level\": \"instance\",\n \"RecordRules\": [],\n \"RawJobs\": [],\n \"ServiceMonitors\": [],\n \"PodMonitors\": [\n {\n \"Name\": \"test-pm\",\n \"Config\": \"apiVersion: monitoring.coreos.com/v1\\nkind: PodMonitor\\nmetadata:\\n name: example-app\\n labels:\\n team: frontend\\nspec:\\n selector:\\n matchLabels:\\n app: example-app\\n podMetricsEndpoints:\\n - port: web\",\n \"TemplateId\": \"temp-asdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"TemplateId\": \"temp-asdj\",\n \"UpdateTime\": \"2024-07-16T08:28:54Z\",\n \"Version\": \"v1\",\n \"IsDefault\": true,\n \"AlertDetailRules\": [],\n \"TargetsTotal\": 0\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"skdh-afbri\"\n }\n}",
960
960
  "title": "拉取模板列表"
961
961
  }
962
962
  ],
@@ -1072,7 +1072,7 @@
1072
1072
  {
1073
1073
  "document": "",
1074
1074
  "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetPrometheusAgentManagementCommand\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-23kdafdf\",\n \"AgentId\": \"agent-23kdafdf\"\n}",
1075
- "output": "{\n \"Response\": {\n \"Command\": {\n \"Install\": \"xx\",\n \"Restart\": \"xx\",\n \"Stop\": \"xx\",\n \"StatusCheck\": \"xx\",\n \"LogCheck\": \"xx\"\n },\n \"RequestId\": \"as131asfjl23dsf342lxdsf\"\n }\n}",
1075
+ "output": "{\n \"Response\": {\n \"Command\": {\n \"Install\": \"/bin/bash -c \\\"$(curl -fsSL https:/cos-url/install.sh)\\\"\",\n \"Restart\": \"systemctl restart prometheus-agent\",\n \"Stop\": \"systemctl stop prometheus-agent\",\n \"StatusCheck\": \"systemctl status prometheus-agent\",\n \"LogCheck\": \"journalctl -u prometheus-agent\"\n },\n \"RequestId\": \"as131asfjl23dsf342lxdsf\"\n }\n}",
1076
1076
  "title": "获取 Prometheus Agent 管理相关的命令行"
1077
1077
  }
1078
1078
  ],
@@ -15240,7 +15240,7 @@
15240
15240
  },
15241
15241
  {
15242
15242
  "disabled": false,
15243
- "document": "图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。\n建议图片存储于腾讯云,可保障更高的下载速度和稳定性。",
15243
+ "document": "图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500\\*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。\n建议图片存储于腾讯云,可保障更高的下载速度和稳定性。",
15244
15244
  "example": "https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/***/fakeurl.jpg",
15245
15245
  "member": "string",
15246
15246
  "name": "ImageUrl",
@@ -15326,7 +15326,7 @@
15326
15326
  },
15327
15327
  {
15328
15328
  "disabled": false,
15329
- "document": "图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。\n建议图片存储于腾讯云,可保障更高的下载速度和稳定性。",
15329
+ "document": "图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500\\*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。\n建议图片存储于腾讯云,可保障更高的下载速度和稳定性。",
15330
15330
  "example": "https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/***/fakeurl.jpg",
15331
15331
  "member": "string",
15332
15332
  "name": "ImageUrl",
@@ -826,7 +826,7 @@
826
826
  "members": [
827
827
  {
828
828
  "disabled": false,
829
- "document": "注册码描述。",
829
+ "document": "注册码描述。最大长度为 128 字符。",
830
830
  "example": "此注册码用于注册托管实例。",
831
831
  "member": "string",
832
832
  "name": "Description",
@@ -835,7 +835,7 @@
835
835
  },
836
836
  {
837
837
  "disabled": false,
838
- "document": "注册实例名称前缀。",
838
+ "document": "注册实例名称前缀。最大长度为 32 字符。",
839
839
  "example": "register-test",
840
840
  "member": "string",
841
841
  "name": "InstanceNamePrefix",
@@ -844,8 +844,8 @@
844
844
  },
845
845
  {
846
846
  "disabled": false,
847
- "document": "该注册码允许注册的实例数目。默认限制为10个。",
848
- "example": "100",
847
+ "document": "该注册码允许注册的实例数目。默认值为 10,最小值为 1,最大值为 10000。",
848
+ "example": "10",
849
849
  "member": "int64",
850
850
  "name": "RegisterLimit",
851
851
  "required": false,
@@ -853,8 +853,8 @@
853
853
  },
854
854
  {
855
855
  "disabled": false,
856
- "document": "该注册码的有效时间,单位为小时。默认为4小时。",
857
- "example": "2",
856
+ "document": "该注册码的有效时间,单位为小时。默认值为 4。\n\n- 若传入值小于等于 99999,则以小时为单位设置有效时间。\n- 若传入值大于 99999,则设置为长期有效。",
857
+ "example": "4",
858
858
  "member": "int64",
859
859
  "name": "EffectiveTime",
860
860
  "required": false,
@@ -292,6 +292,28 @@
292
292
  "required": false,
293
293
  "type": "string",
294
294
  "value_allowed_null": false
295
+ },
296
+ {
297
+ "disabled": false,
298
+ "document": "服务clbip",
299
+ "example": "127.0.0.1",
300
+ "member": "string",
301
+ "name": "ClbIp",
302
+ "output_required": false,
303
+ "required": false,
304
+ "type": "string",
305
+ "value_allowed_null": false
306
+ },
307
+ {
308
+ "disabled": false,
309
+ "document": "服务clbPort",
310
+ "example": "11808",
311
+ "member": "string",
312
+ "name": "ClbPort",
313
+ "output_required": false,
314
+ "required": false,
315
+ "type": "string",
316
+ "value_allowed_null": false
295
317
  }
296
318
  ],
297
319
  "usage": "both"
@@ -473,11 +495,12 @@
473
495
  "members": [
474
496
  {
475
497
  "disabled": false,
476
- "document": "终端节点服务Id",
498
+ "document": "引擎终端节点服务Id",
477
499
  "example": "vpcsvc-6jsieksl3",
478
500
  "member": "string",
479
501
  "name": "EndpointServiceId",
480
502
  "output_required": false,
503
+ "required": false,
481
504
  "type": "string",
482
505
  "value_allowed_null": false
483
506
  },
@@ -488,21 +511,56 @@
488
511
  "member": "string",
489
512
  "name": "MetaStoreUrl",
490
513
  "output_required": false,
514
+ "required": false,
491
515
  "type": "string",
492
516
  "value_allowed_null": false
493
517
  },
494
518
  {
495
519
  "disabled": false,
496
- "document": "\t网络信息",
520
+ "document": "网络信息",
497
521
  "example": "复杂类型",
498
522
  "member": "NetWork",
499
523
  "name": "NetWork",
500
524
  "output_required": false,
525
+ "required": false,
501
526
  "type": "object",
502
527
  "value_allowed_null": false
528
+ },
529
+ {
530
+ "disabled": false,
531
+ "document": "hive版本",
532
+ "example": "3.1.3",
533
+ "member": "string",
534
+ "name": "HiveVersion",
535
+ "output_required": false,
536
+ "required": false,
537
+ "type": "string",
538
+ "value_allowed_null": false
539
+ },
540
+ {
541
+ "disabled": false,
542
+ "document": "hive location",
543
+ "example": "cosn://xxxx",
544
+ "member": "string",
545
+ "name": "Location",
546
+ "output_required": false,
547
+ "required": false,
548
+ "type": "string",
549
+ "value_allowed_null": false
550
+ },
551
+ {
552
+ "disabled": false,
553
+ "document": "HMS终端节点服务",
554
+ "example": "vpcsvc-6jsiek27s",
555
+ "member": "string",
556
+ "name": "HmsEndpointServiceId",
557
+ "output_required": false,
558
+ "required": false,
559
+ "type": "string",
560
+ "value_allowed_null": false
503
561
  }
504
562
  ],
505
- "usage": "out"
563
+ "usage": "both"
506
564
  },
507
565
  "TccConnectionConfig": {
508
566
  "document": "Tcc数据目录连接信息",
@@ -1993,6 +1993,58 @@ def doDescribeInstance(args, parsed_globals):
1993
1993
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1994
1994
 
1995
1995
 
1996
+ def doModifyInstanceEndpoint(args, parsed_globals):
1997
+ g_param = parse_global_arg(parsed_globals)
1998
+
1999
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2000
+ cred = credential.CVMRoleCredential()
2001
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2002
+ cred = credential.STSAssumeRoleCredential(
2003
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2004
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2005
+ )
2006
+ 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):
2007
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2008
+ else:
2009
+ cred = credential.Credential(
2010
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2011
+ )
2012
+ http_profile = HttpProfile(
2013
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2014
+ reqMethod="POST",
2015
+ endpoint=g_param[OptionsDefine.Endpoint],
2016
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2017
+ )
2018
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2019
+ if g_param[OptionsDefine.Language]:
2020
+ profile.language = g_param[OptionsDefine.Language]
2021
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2022
+ client = mod.TrocketClient(cred, g_param[OptionsDefine.Region], profile)
2023
+ client._sdkVersion += ("_CLI_" + __version__)
2024
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2025
+ model = models.ModifyInstanceEndpointRequest()
2026
+ model.from_json_string(json.dumps(args))
2027
+ start_time = time.time()
2028
+ while True:
2029
+ rsp = client.ModifyInstanceEndpoint(model)
2030
+ result = rsp.to_json_string()
2031
+ try:
2032
+ json_obj = json.loads(result)
2033
+ except TypeError as e:
2034
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2035
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2036
+ break
2037
+ cur_time = time.time()
2038
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2039
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2040
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2041
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2042
+ else:
2043
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2044
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2045
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2046
+
2047
+
1996
2048
  def doDeleteTopic(args, parsed_globals):
1997
2049
  g_param = parse_global_arg(parsed_globals)
1998
2050
 
@@ -2926,6 +2978,7 @@ ACTION_MAP = {
2926
2978
  "DescribeMessageList": doDescribeMessageList,
2927
2979
  "DeleteMQTTTopic": doDeleteMQTTTopic,
2928
2980
  "DescribeInstance": doDescribeInstance,
2981
+ "ModifyInstanceEndpoint": doModifyInstanceEndpoint,
2929
2982
  "DeleteTopic": doDeleteTopic,
2930
2983
  "DescribeFusionInstanceList": doDescribeFusionInstanceList,
2931
2984
  "DescribeMQTTInstanceCert": doDescribeMQTTInstanceCert,
@@ -329,6 +329,13 @@
329
329
  "output": "ModifyInstanceResponse",
330
330
  "status": "online"
331
331
  },
332
+ "ModifyInstanceEndpoint": {
333
+ "document": "修改 RocketMQ 5.x 集群接入点。",
334
+ "input": "ModifyInstanceEndpointRequest",
335
+ "name": "修改集群接入点",
336
+ "output": "ModifyInstanceEndpointResponse",
337
+ "status": "online"
338
+ },
332
339
  "ModifyMQTTInsPublicEndpoint": {
333
340
  "document": "更新MQTT实例公网接入点",
334
341
  "input": "ModifyMQTTInsPublicEndpointRequest",
@@ -5815,6 +5822,69 @@
5815
5822
  ],
5816
5823
  "type": "object"
5817
5824
  },
5825
+ "ModifyInstanceEndpointRequest": {
5826
+ "document": "ModifyInstanceEndpoint请求参数结构体",
5827
+ "members": [
5828
+ {
5829
+ "disabled": false,
5830
+ "document": "集群ID",
5831
+ "example": "rmq-72mo3a9o",
5832
+ "member": "string",
5833
+ "name": "InstanceId",
5834
+ "required": true,
5835
+ "type": "string"
5836
+ },
5837
+ {
5838
+ "disabled": false,
5839
+ "document": "接入点类型,\nPUBLIC 公网",
5840
+ "example": "PUBLIC",
5841
+ "member": "string",
5842
+ "name": "Type",
5843
+ "required": true,
5844
+ "type": "string"
5845
+ },
5846
+ {
5847
+ "disabled": false,
5848
+ "document": "公网带宽,Mbps为单位",
5849
+ "example": "2",
5850
+ "member": "int64",
5851
+ "name": "Bandwidth",
5852
+ "required": false,
5853
+ "type": "int"
5854
+ },
5855
+ {
5856
+ "disabled": false,
5857
+ "document": "公网安全组信息",
5858
+ "example": "无",
5859
+ "member": "IpRule",
5860
+ "name": "IpRules",
5861
+ "required": false,
5862
+ "type": "list"
5863
+ },
5864
+ {
5865
+ "disabled": false,
5866
+ "document": "公网是否按流量计费",
5867
+ "example": "false",
5868
+ "member": "bool",
5869
+ "name": "BillingFlow",
5870
+ "required": false,
5871
+ "type": "bool"
5872
+ }
5873
+ ],
5874
+ "type": "object"
5875
+ },
5876
+ "ModifyInstanceEndpointResponse": {
5877
+ "document": "ModifyInstanceEndpoint返回参数结构体",
5878
+ "members": [
5879
+ {
5880
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
5881
+ "member": "string",
5882
+ "name": "RequestId",
5883
+ "type": "string"
5884
+ }
5885
+ ],
5886
+ "type": "object"
5887
+ },
5818
5888
  "ModifyInstanceRequest": {
5819
5889
  "document": "ModifyInstance请求参数结构体",
5820
5890
  "members": [
@@ -382,6 +382,14 @@
382
382
  "title": "修改实例配置"
383
383
  }
384
384
  ],
385
+ "ModifyInstanceEndpoint": [
386
+ {
387
+ "document": "修改实例公网配置",
388
+ "input": "POST / HTTP/1.1\nHost: trocket.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstanceEndpoint\n<公共请求参数>\n\n{\n \"InstanceId\": \"rmq-cdrgxq94om\",\n \"Type\": \"PUBLIC\",\n \"Bandwidth\": 2,\n \"IpRules\": [\n {\n \"Ip\": \"1.2.3.4\",\n \"Allow\": true,\n \"Remark\": \"test remark\"\n }\n ]\n}",
389
+ "output": "{\n \"Response\": {\n \"RequestId\": \"999bc587-90d9-4ec2-97e3-3ef170e1da96\"\n }\n}",
390
+ "title": "修改实例公网配置"
391
+ }
392
+ ],
385
393
  "ModifyMQTTInsPublicEndpoint": [
386
394
  {
387
395
  "document": "示例",