tccli 3.0.1157.1__py2.py3-none-any.whl → 3.0.1159.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/ams/v20201229/api.json +328 -70
- tccli/services/ams/v20201229/examples.json +3 -3
- tccli/services/bi/v20220105/api.json +1 -1
- tccli/services/cat/v20180409/api.json +9 -0
- tccli/services/ccc/v20200210/api.json +3 -3
- tccli/services/cdb/v20170320/api.json +30 -3
- tccli/services/cdn/v20180606/api.json +86 -0
- tccli/services/cfw/cfw_client.py +53 -0
- tccli/services/cfw/v20190904/api.json +277 -0
- tccli/services/cfw/v20190904/examples.json +8 -0
- tccli/services/cls/v20201016/api.json +3 -3
- tccli/services/cls/v20201016/examples.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +91 -0
- tccli/services/dbbrain/v20210527/api.json +10 -1
- tccli/services/ecm/v20190719/api.json +23 -5
- tccli/services/emr/emr_client.py +53 -0
- tccli/services/emr/v20190103/api.json +351 -98
- tccli/services/emr/v20190103/examples.json +11 -3
- tccli/services/ess/v20201111/api.json +32 -14
- tccli/services/ess/v20201111/examples.json +8 -2
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +114 -3
- tccli/services/mongodb/mongodb_client.py +53 -0
- tccli/services/mongodb/v20190725/api.json +71 -0
- tccli/services/mongodb/v20190725/examples.json +8 -0
- tccli/services/monitor/v20180724/api.json +8 -8
- tccli/services/ocr/v20181119/api.json +27 -0
- tccli/services/redis/v20180412/api.json +3 -3
- tccli/services/tke/tke_client.py +53 -0
- tccli/services/tke/v20180525/api.json +188 -0
- tccli/services/tke/v20180525/examples.json +8 -0
- tccli/services/trtc/v20190722/api.json +3 -3
- tccli/services/trtc/v20190722/examples.json +2 -2
- tccli/services/vm/v20201229/api.json +209 -45
- tccli/services/vm/v20201229/examples.json +1 -1
- tccli/services/vm/v20210922/api.json +25 -25
- tccli/services/vpc/v20170312/api.json +2 -1
- tccli/services/vpc/v20170312/examples.json +3 -3
- tccli/services/waf/v20180125/api.json +13 -13
- tccli/services/wedata/v20210820/api.json +10 -0
- {tccli-3.0.1157.1.dist-info → tccli-3.0.1159.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1157.1.dist-info → tccli-3.0.1159.1.dist-info}/RECORD +46 -46
- {tccli-3.0.1157.1.dist-info → tccli-3.0.1159.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1157.1.dist-info → tccli-3.0.1159.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1157.1.dist-info → tccli-3.0.1159.1.dist-info}/license_files/LICENSE +0 -0
@@ -3,7 +3,7 @@
|
|
3
3
|
"AddMetricScaleStrategy": [
|
4
4
|
{
|
5
5
|
"document": "",
|
6
|
-
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddMetricScaleStrategy\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"StrategyType\": 0,\n \"LoadAutoScaleStrategy\": {\n \"StrategyId\": 0,\n \"StrategyName\": \"abc\",\n \"CalmDownTime\": 0,\n \"ScaleAction\": 0,\n \"ScaleNum\": 0,\n \"
|
6
|
+
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddMetricScaleStrategy\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"StrategyType\": 0,\n \"LoadAutoScaleStrategy\": {\n \"StrategyId\": 0,\n \"StrategyName\": \"abc\",\n \"CalmDownTime\": 0,\n \"ScaleAction\": 0,\n \"ScaleNum\": 0,\n \"ProcessMethod\": 0,\n \"Priority\": 0,\n \"StrategyStatus\": 0,\n \"YarnNodeLabel\": \"abc\",\n \"PeriodValid\": \"abc\",\n \"GraceDownFlag\": true,\n \"GraceDownTime\": 0,\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"ConfigGroupAssigned\": \"abc\",\n \"MeasureMethod\": \"abc\",\n \"LoadMetricsConditions\": {\n \"LoadMetrics\": [\n {\n \"StatisticPeriod\": 0,\n \"TriggerThreshold\": 0,\n \"LoadMetrics\": \"abc\",\n \"MetricId\": 0,\n \"Conditions\": [\n {\n \"CompareMethod\": 0,\n \"Threshold\": 0\n }\n ]\n }\n ]\n }\n },\n \"TimeAutoScaleStrategy\": {\n \"StrategyId\": 1,\n \"StrategyName\": \"abc\",\n \"IntervalTime\": 1,\n \"ScaleAction\": 1,\n \"ScaleNum\": 1,\n \"StrategyStatus\": 1,\n \"Priority\": 1,\n \"RetryValidTime\": 1,\n \"RepeatStrategy\": {\n \"RepeatType\": \"abc\",\n \"DayRepeat\": {\n \"ExecuteAtTimeOfDay\": \"abc\",\n \"Step\": 1\n },\n \"WeekRepeat\": {\n \"ExecuteAtTimeOfDay\": \"abc\",\n \"DaysOfWeek\": [\n 1\n ]\n },\n \"MonthRepeat\": {\n \"ExecuteAtTimeOfDay\": \"abc\",\n \"DaysOfMonthRange\": [\n 1\n ]\n },\n \"NotRepeat\": {\n \"ExecuteAt\": \"abc\"\n },\n \"Expire\": \"abc\"\n },\n \"GraceDownFlag\": true,\n \"GraceDownTime\": 0,\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"ConfigGroupAssigned\": \"abc\",\n \"MeasureMethod\": \"abc\",\n \"TerminatePolicy\": \"abc\",\n \"MaxUse\": 0,\n \"SoftDeployInfo\": [\n 0\n ],\n \"ServiceNodeInfo\": [\n 0\n ],\n \"CompensateFlag\": 0,\n \"GroupId\": 0\n }\n}",
|
7
7
|
"output": "{\n \"Response\": {\n \"RequestId\": \"41ac1575-64fa-4e23-b6df-6c1f509dd528\"\n }\n}",
|
8
8
|
"title": "添加扩缩容规则成功示例"
|
9
9
|
}
|
@@ -68,7 +68,7 @@
|
|
68
68
|
{
|
69
69
|
"document": "",
|
70
70
|
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAutoScaleStrategies\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"GroupId\": 0\n}",
|
71
|
-
"output": "{\n \"Response\": {\n \"LoadAutoScaleStrategies\": [\n {\n \"StrategyId\": 0,\n \"StrategyName\": \"abc\",\n \"CalmDownTime\": 0,\n \"ScaleAction\": 0,\n \"ScaleNum\": 0,\n \"
|
71
|
+
"output": "{\n \"Response\": {\n \"LoadAutoScaleStrategies\": [\n {\n \"StrategyId\": 0,\n \"StrategyName\": \"abc\",\n \"CalmDownTime\": 0,\n \"ScaleAction\": 0,\n \"ScaleNum\": 0,\n \"ProcessMethod\": 0,\n \"Priority\": 0,\n \"StrategyStatus\": 0,\n \"YarnNodeLabel\": \"abc\",\n \"PeriodValid\": \"abc\",\n \"GraceDownFlag\": true,\n \"GraceDownTime\": 0,\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"ConfigGroupAssigned\": \"abc\",\n \"MeasureMethod\": \"abc\",\n \"LoadMetricsConditions\": {\n \"LoadMetrics\": [\n {\n \"StatisticPeriod\": 0,\n \"TriggerThreshold\": 0,\n \"LoadMetrics\": \"abc\",\n \"MetricId\": 0,\n \"Conditions\": [\n {\n \"CompareMethod\": 0,\n \"Threshold\": 0\n }\n ]\n }\n ]\n }\n }\n ],\n \"TimeBasedAutoScaleStrategies\": [\n {\n \"StrategyId\": 1,\n \"StrategyName\": \"abc\",\n \"IntervalTime\": 1,\n \"ScaleAction\": 1,\n \"ScaleNum\": 1,\n \"StrategyStatus\": 1,\n \"Priority\": 1,\n \"RetryValidTime\": 1,\n \"RepeatStrategy\": {\n \"RepeatType\": \"abc\",\n \"DayRepeat\": {\n \"ExecuteAtTimeOfDay\": \"abc\",\n \"Step\": 1\n },\n \"WeekRepeat\": {\n \"ExecuteAtTimeOfDay\": \"abc\",\n \"DaysOfWeek\": [\n 1\n ]\n },\n \"MonthRepeat\": {\n \"ExecuteAtTimeOfDay\": \"abc\",\n \"DaysOfMonthRange\": [\n 1\n ]\n },\n \"NotRepeat\": {\n \"ExecuteAt\": \"abc\"\n },\n \"Expire\": \"abc\"\n },\n \"GraceDownFlag\": true,\n \"GraceDownTime\": 0,\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"ConfigGroupAssigned\": \"abc\",\n \"MeasureMethod\": \"abc\",\n \"TerminatePolicy\": \"abc\",\n \"MaxUse\": 0,\n \"SoftDeployInfo\": [\n 0\n ],\n \"ServiceNodeInfo\": [\n 0\n ],\n \"CompensateFlag\": 0,\n \"GroupId\": 0\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
72
72
|
"title": "获取自动扩缩容规则"
|
73
73
|
}
|
74
74
|
],
|
@@ -184,6 +184,14 @@
|
|
184
184
|
"title": "test"
|
185
185
|
}
|
186
186
|
],
|
187
|
+
"DescribeTrinoQueryInfo": [
|
188
|
+
{
|
189
|
+
"document": "",
|
190
|
+
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInsightList\n<公共请求参数>\n\n{\n \"InstanceId\": \"emr-d82w3t9p\",\n \"PageSize\": 10,\n \"StartTime\": 1701792000,\n \"EndTime\": 1701878399,\n \"Page\": 1\n}",
|
191
|
+
"output": "{\n \"Response\": {\n \"QueryInfoList\": [\n {\n \"Catalog\": \"hive\",\n \"ClientIpAddr\": \"10.0.1.104\",\n \"CompletedSplits\": \"\",\n \"CpuTime\": 0,\n \"CumulativeMemory\": 0,\n \"DurationMillis\": 0,\n \"EndTime\": 0,\n \"Id\": \"20240708_111543_00007_lcmdbi8z\",\n \"InternalNetworkBytes\": 0,\n \"OutputBytes\": 0,\n \"PeakUserMemoryBytes\": 0,\n \"PhysicalInputBytes\": 0,\n \"ProcessedInputBytes\": 0,\n \"SqlCompileTime\": 0,\n \"StartTime\": 0,\n \"State\": \"QUEUED\",\n \"Statement\": \"create table impala_ranger\",\n \"User\": \"hadoop\",\n \"WrittenBytes\": 0\n }\n ],\n \"RequestId\": \"cfbbbe0f-5d30-4bf7-b87b-428b14ac3ws22\",\n \"TotalCount\": 18\n }\n}",
|
192
|
+
"title": "获取trino查询结果"
|
193
|
+
}
|
194
|
+
],
|
187
195
|
"DescribeUsersForUserManager": [
|
188
196
|
{
|
189
197
|
"document": "",
|
@@ -249,7 +257,7 @@
|
|
249
257
|
"ModifyAutoScaleStrategy": [
|
250
258
|
{
|
251
259
|
"document": "修改扩缩容规则",
|
252
|
-
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAutoScaleStrategy\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"StrategyType\": 0,\n \"LoadAutoScaleStrategies\": [\n {\n \"StrategyId\": 0,\n \"StrategyName\": \"abc\",\n \"CalmDownTime\": 0,\n \"ScaleAction\": 0,\n \"ScaleNum\": 0,\n \"
|
260
|
+
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAutoScaleStrategy\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"StrategyType\": 0,\n \"LoadAutoScaleStrategies\": [\n {\n \"StrategyId\": 0,\n \"StrategyName\": \"abc\",\n \"CalmDownTime\": 0,\n \"ScaleAction\": 0,\n \"ScaleNum\": 0,\n \"ProcessMethod\": 0,\n \"Priority\": 0,\n \"StrategyStatus\": 0,\n \"YarnNodeLabel\": \"abc\",\n \"PeriodValid\": \"abc\",\n \"GraceDownFlag\": true,\n \"GraceDownTime\": 0,\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"ConfigGroupAssigned\": \"abc\",\n \"MeasureMethod\": \"abc\",\n \"LoadMetricsConditions\": {\n \"LoadMetrics\": [\n {\n \"StatisticPeriod\": 0,\n \"TriggerThreshold\": 0,\n \"LoadMetrics\": \"abc\",\n \"MetricId\": 0,\n \"Conditions\": [\n {\n \"CompareMethod\": 0,\n \"Threshold\": 0\n }\n ]\n }\n ]\n }\n }\n ],\n \"TimeAutoScaleStrategies\": [\n {\n \"StrategyId\": 1,\n \"StrategyName\": \"abc\",\n \"IntervalTime\": 1,\n \"ScaleAction\": 1,\n \"ScaleNum\": 1,\n \"StrategyStatus\": 1,\n \"Priority\": 1,\n \"RetryValidTime\": 1,\n \"RepeatStrategy\": {\n \"RepeatType\": \"abc\",\n \"DayRepeat\": {\n \"ExecuteAtTimeOfDay\": \"abc\",\n \"Step\": 1\n },\n \"WeekRepeat\": {\n \"ExecuteAtTimeOfDay\": \"abc\",\n \"DaysOfWeek\": [\n 1\n ]\n },\n \"MonthRepeat\": {\n \"ExecuteAtTimeOfDay\": \"abc\",\n \"DaysOfMonthRange\": [\n 1\n ]\n },\n \"NotRepeat\": {\n \"ExecuteAt\": \"abc\"\n },\n \"Expire\": \"abc\"\n },\n \"GraceDownFlag\": true,\n \"GraceDownTime\": 0,\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"ConfigGroupAssigned\": \"abc\",\n \"MeasureMethod\": \"abc\",\n \"TerminatePolicy\": \"abc\",\n \"MaxUse\": 0,\n \"SoftDeployInfo\": [\n 0\n ],\n \"ServiceNodeInfo\": [\n 0\n ],\n \"CompensateFlag\": 0\n }\n ]\n}",
|
253
261
|
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
254
262
|
"title": "修改扩缩容规则"
|
255
263
|
},
|
@@ -246,9 +246,9 @@
|
|
246
246
|
"status": "online"
|
247
247
|
},
|
248
248
|
"CreatePartnerAutoSignAuthUrl": {
|
249
|
-
"document": "
|
249
|
+
"document": "创建他方自动签授权链接(他方授权/我方授权),通过该链接可进入小程序进行合作方企业的自动签授权,若授权企业未开通企业自动签,通过该链接会先引导开通本企业自动签。\n该接口效果同控制台: 企业设置-> 扩展服务 -> 企业自动签署 -> 合作企业方授权\n\n\n\n注: \n1. <font color='red'>所在企业的超管、法人才有权限调用此接口</font>(Operator.UserId 需要传递超管或者法人的UserId)\n2. 已经在授权中或者授权成功的企业,无法重复授权\n3. 授权企业和被授权企业必须都是已认证企业",
|
250
250
|
"input": "CreatePartnerAutoSignAuthUrlRequest",
|
251
|
-
"name": "
|
251
|
+
"name": "创建他方企业自动签授权链接(他方授权 | 我方授权)",
|
252
252
|
"output": "CreatePartnerAutoSignAuthUrlResponse",
|
253
253
|
"status": "online"
|
254
254
|
},
|
@@ -5195,7 +5195,25 @@
|
|
5195
5195
|
"members": [
|
5196
5196
|
{
|
5197
5197
|
"disabled": false,
|
5198
|
-
"document": "
|
5198
|
+
"document": "代理企业和员工的信息。<br/>在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。",
|
5199
|
+
"example": "无",
|
5200
|
+
"member": "Agent",
|
5201
|
+
"name": "Agent",
|
5202
|
+
"required": false,
|
5203
|
+
"type": "object"
|
5204
|
+
},
|
5205
|
+
{
|
5206
|
+
"disabled": false,
|
5207
|
+
"document": "执行本接口操作的员工信息。<br/>注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`",
|
5208
|
+
"example": "无",
|
5209
|
+
"member": "UserInfo",
|
5210
|
+
"name": "Operator",
|
5211
|
+
"required": false,
|
5212
|
+
"type": "object"
|
5213
|
+
},
|
5214
|
+
{
|
5215
|
+
"disabled": false,
|
5216
|
+
"document": "被授企业id/授权方企业id,和AuthorizedOrganizationName二选一传入",
|
5199
5217
|
"example": "无",
|
5200
5218
|
"member": "string",
|
5201
5219
|
"name": "AuthorizedOrganizationId",
|
@@ -5204,30 +5222,30 @@
|
|
5204
5222
|
},
|
5205
5223
|
{
|
5206
5224
|
"disabled": false,
|
5207
|
-
"document": "
|
5225
|
+
"document": "被授企业名称/授权方企业名称,和AuthorizedOrganizationId二选一传入",
|
5208
5226
|
"example": "无",
|
5209
5227
|
"member": "string",
|
5210
|
-
"name": "
|
5228
|
+
"name": "AuthorizedOrganizationName",
|
5211
5229
|
"required": false,
|
5212
|
-
"type": "
|
5230
|
+
"type": "string"
|
5213
5231
|
},
|
5214
5232
|
{
|
5215
5233
|
"disabled": false,
|
5216
|
-
"document": "
|
5234
|
+
"document": "指定印章类型,指定后只能选择该类型的印章进行授权支持以下印章类型:- OFFICIAL : 企业公章- CONTRACT : 合同专用章- FINANCE : 财务专用章- PERSONNEL : 人事专用章",
|
5217
5235
|
"example": "无",
|
5218
|
-
"member": "
|
5219
|
-
"name": "
|
5236
|
+
"member": "string",
|
5237
|
+
"name": "SealTypes",
|
5220
5238
|
"required": false,
|
5221
|
-
"type": "
|
5239
|
+
"type": "list"
|
5222
5240
|
},
|
5223
5241
|
{
|
5224
5242
|
"disabled": false,
|
5225
|
-
"document": "
|
5243
|
+
"document": "他方授权给我方:\n- false:我方授权他方,AuthorizedOrganizationName代表【被授权方】企业名称\n- true:他方授权我方,AuthorizedOrganizationName代表【授权方】企业名称",
|
5226
5244
|
"example": "无",
|
5227
|
-
"member": "
|
5228
|
-
"name": "
|
5245
|
+
"member": "bool",
|
5246
|
+
"name": "AuthToMe",
|
5229
5247
|
"required": false,
|
5230
|
-
"type": "
|
5248
|
+
"type": "bool"
|
5231
5249
|
}
|
5232
5250
|
],
|
5233
5251
|
"type": "object"
|
@@ -829,9 +829,15 @@
|
|
829
829
|
"CreatePartnerAutoSignAuthUrl": [
|
830
830
|
{
|
831
831
|
"document": "创建他方自动签授权链接\n",
|
832
|
-
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePartnerAutoSignAuthUrl\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDSxxxxxxxxxOnHtH51\"\n },\n \"AuthorizedOrganizationId\": \"yDRt2UUgygqxuvlqUuO4zjEySqVWqO9J\",\n \"SealTypes\": [\n \"OFFICIAL\"\n ]\n}",
|
832
|
+
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePartnerAutoSignAuthUrl\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDSxxxxxxxxxOnHtH51\"\n },\n \"AuthorizedOrganizationId\": \"yDRt2UUgygqxuvlqUuO4zjEySqVWqO9J\",\n \"AuthToMe\": false,\n \"SealTypes\": [\n \"OFFICIAL\"\n ]\n}",
|
833
833
|
"output": "{\n \"Response\": {\n \"ExpireTime\": 1721984586,\n \"MiniAppPath\": \"/pages/guide/index?shortKey=yDCpEUNqf8CyuealGCfc\",\n \"RequestId\": \"s1721379786690441960\",\n \"Url\": \"https://test.essurl.cn/g4sjUBHlHx\"\n }\n}",
|
834
|
-
"title": "
|
834
|
+
"title": "创建他方自动签授权链接-我方授权"
|
835
|
+
},
|
836
|
+
{
|
837
|
+
"document": "他方授权给我方",
|
838
|
+
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePartnerAutoSignAuthUrl\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDSxxxxxxxxxOnHtH51\"\n },\n \"AuthorizedOrganizationId\": \"\",\n \"AuthorizedOrganizationName\": \"他方企业名称\",\n \"AuthToMe\": true,\n \"SealTypes\": [\n \"OFFICIAL\"\n ]\n}",
|
839
|
+
"output": "{\n \"Response\": {\n \"ExpireTime\": 1721984586,\n \"MiniAppPath\": \"/pages/guide/index?shortKey=yDCpEUNqf8CyuealGCfc\",\n \"RequestId\": \"s1721379786690441960\",\n \"Url\": \"https://test.essurl.cn/g4sjUBHlHx\"\n }\n}",
|
840
|
+
"title": "创建他方自动签授权链接-他方授权"
|
835
841
|
}
|
836
842
|
],
|
837
843
|
"CreatePersonAuthCertificateImage": [
|
@@ -310,7 +310,7 @@
|
|
310
310
|
},
|
311
311
|
{
|
312
312
|
"disabled": false,
|
313
|
-
"document": "
|
313
|
+
"document": "图片的url,当 Type 为 image_url 时使用,表示具体的图片内容\n如\"https://example.com/1.png\" 或 图片的base64(注意 \"data:image/jpeg;base64,\" 为必要部分):\"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAA......\"\n注意:此字段可能返回 null,表示取不到有效值。",
|
314
314
|
"example": "无",
|
315
315
|
"member": "ImageUrl",
|
316
316
|
"name": "ImageUrl",
|
@@ -567,6 +567,81 @@
|
|
567
567
|
],
|
568
568
|
"usage": "both"
|
569
569
|
},
|
570
|
+
"LogoParam": {
|
571
|
+
"document": "logo参数",
|
572
|
+
"members": [
|
573
|
+
{
|
574
|
+
"disabled": false,
|
575
|
+
"document": "水印url",
|
576
|
+
"example": "无",
|
577
|
+
"member": "string",
|
578
|
+
"name": "LogoUrl",
|
579
|
+
"required": false,
|
580
|
+
"type": "string"
|
581
|
+
},
|
582
|
+
{
|
583
|
+
"disabled": false,
|
584
|
+
"document": "水印base64,url和base64二选一传入",
|
585
|
+
"example": "无",
|
586
|
+
"member": "string",
|
587
|
+
"name": "LogoImage",
|
588
|
+
"required": false,
|
589
|
+
"type": "string"
|
590
|
+
},
|
591
|
+
{
|
592
|
+
"disabled": false,
|
593
|
+
"document": "水印图片位于融合结果图中的坐标,将按照坐标对标识图片进行位置和大小的拉伸匹配",
|
594
|
+
"example": "无",
|
595
|
+
"member": "LogoRect",
|
596
|
+
"name": "LogoRect",
|
597
|
+
"required": false,
|
598
|
+
"type": "object"
|
599
|
+
}
|
600
|
+
],
|
601
|
+
"usage": "in"
|
602
|
+
},
|
603
|
+
"LogoRect": {
|
604
|
+
"document": "输入框",
|
605
|
+
"members": [
|
606
|
+
{
|
607
|
+
"disabled": false,
|
608
|
+
"document": "左上角X坐标",
|
609
|
+
"example": "无",
|
610
|
+
"member": "int64",
|
611
|
+
"name": "X",
|
612
|
+
"required": false,
|
613
|
+
"type": "int"
|
614
|
+
},
|
615
|
+
{
|
616
|
+
"disabled": false,
|
617
|
+
"document": "左上角Y坐标",
|
618
|
+
"example": "无",
|
619
|
+
"member": "int64",
|
620
|
+
"name": "Y",
|
621
|
+
"required": false,
|
622
|
+
"type": "int"
|
623
|
+
},
|
624
|
+
{
|
625
|
+
"disabled": false,
|
626
|
+
"document": "方框宽度",
|
627
|
+
"example": "无",
|
628
|
+
"member": "int64",
|
629
|
+
"name": "Width",
|
630
|
+
"required": false,
|
631
|
+
"type": "int"
|
632
|
+
},
|
633
|
+
{
|
634
|
+
"disabled": false,
|
635
|
+
"document": "方框高度",
|
636
|
+
"example": "无",
|
637
|
+
"member": "int64",
|
638
|
+
"name": "Height",
|
639
|
+
"required": false,
|
640
|
+
"type": "int"
|
641
|
+
}
|
642
|
+
],
|
643
|
+
"usage": "in"
|
644
|
+
},
|
570
645
|
"Message": {
|
571
646
|
"document": "会话内容",
|
572
647
|
"members": [
|
@@ -813,10 +888,19 @@
|
|
813
888
|
},
|
814
889
|
{
|
815
890
|
"disabled": false,
|
816
|
-
"document": "
|
891
|
+
"document": "图片生成数量。\n支持1 ~ 4张,默认生成1张。",
|
817
892
|
"example": "无",
|
818
893
|
"member": "int64",
|
819
|
-
"name": "
|
894
|
+
"name": "Num",
|
895
|
+
"required": false,
|
896
|
+
"type": "int"
|
897
|
+
},
|
898
|
+
{
|
899
|
+
"disabled": false,
|
900
|
+
"document": "随机种子,默认随机。\n不传:随机种子生成。\n正数:固定种子生成。",
|
901
|
+
"example": "无",
|
902
|
+
"member": "int64",
|
903
|
+
"name": "Seed",
|
820
904
|
"required": false,
|
821
905
|
"type": "int"
|
822
906
|
},
|
@@ -828,6 +912,24 @@
|
|
828
912
|
"name": "Revise",
|
829
913
|
"required": false,
|
830
914
|
"type": "int"
|
915
|
+
},
|
916
|
+
{
|
917
|
+
"disabled": false,
|
918
|
+
"document": "为生成结果图添加显式水印标识的开关,默认为1。 \n1:添加。 \n0:不添加。 \n其他数值:默认按1处理。 \n建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。",
|
919
|
+
"example": "无",
|
920
|
+
"member": "int64",
|
921
|
+
"name": "LogoAdd",
|
922
|
+
"required": false,
|
923
|
+
"type": "int"
|
924
|
+
},
|
925
|
+
{
|
926
|
+
"disabled": false,
|
927
|
+
"document": "标识内容设置。\n默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。",
|
928
|
+
"example": "无",
|
929
|
+
"member": "LogoParam",
|
930
|
+
"name": "LogoParam",
|
931
|
+
"required": false,
|
932
|
+
"type": "object"
|
831
933
|
}
|
832
934
|
],
|
833
935
|
"type": "object"
|
@@ -902,6 +1004,15 @@
|
|
902
1004
|
"required": false,
|
903
1005
|
"type": "int"
|
904
1006
|
},
|
1007
|
+
{
|
1008
|
+
"disabled": false,
|
1009
|
+
"document": "标识内容设置。\n默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。",
|
1010
|
+
"example": "无",
|
1011
|
+
"member": "LogoParam",
|
1012
|
+
"name": "LogoParam",
|
1013
|
+
"required": false,
|
1014
|
+
"type": "object"
|
1015
|
+
},
|
905
1016
|
{
|
906
1017
|
"disabled": false,
|
907
1018
|
"document": "返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。",
|
@@ -903,6 +903,58 @@ def doInquirePriceModifyDBInstanceSpec(args, parsed_globals):
|
|
903
903
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
904
904
|
|
905
905
|
|
906
|
+
def doRestartNodes(args, parsed_globals):
|
907
|
+
g_param = parse_global_arg(parsed_globals)
|
908
|
+
|
909
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
910
|
+
cred = credential.CVMRoleCredential()
|
911
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
912
|
+
cred = credential.STSAssumeRoleCredential(
|
913
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
914
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
915
|
+
)
|
916
|
+
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):
|
917
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
918
|
+
else:
|
919
|
+
cred = credential.Credential(
|
920
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
921
|
+
)
|
922
|
+
http_profile = HttpProfile(
|
923
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
924
|
+
reqMethod="POST",
|
925
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
926
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
927
|
+
)
|
928
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
929
|
+
if g_param[OptionsDefine.Language]:
|
930
|
+
profile.language = g_param[OptionsDefine.Language]
|
931
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
932
|
+
client = mod.MongodbClient(cred, g_param[OptionsDefine.Region], profile)
|
933
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
934
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
935
|
+
model = models.RestartNodesRequest()
|
936
|
+
model.from_json_string(json.dumps(args))
|
937
|
+
start_time = time.time()
|
938
|
+
while True:
|
939
|
+
rsp = client.RestartNodes(model)
|
940
|
+
result = rsp.to_json_string()
|
941
|
+
try:
|
942
|
+
json_obj = json.loads(result)
|
943
|
+
except TypeError as e:
|
944
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
945
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
946
|
+
break
|
947
|
+
cur_time = time.time()
|
948
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
949
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
950
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
951
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
952
|
+
else:
|
953
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
954
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
955
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
956
|
+
|
957
|
+
|
906
958
|
def doDescribeBackupRules(args, parsed_globals):
|
907
959
|
g_param = parse_global_arg(parsed_globals)
|
908
960
|
|
@@ -2857,6 +2909,7 @@ ACTION_MAP = {
|
|
2857
2909
|
"IsolateDBInstance": doIsolateDBInstance,
|
2858
2910
|
"SetBackupRules": doSetBackupRules,
|
2859
2911
|
"InquirePriceModifyDBInstanceSpec": doInquirePriceModifyDBInstanceSpec,
|
2912
|
+
"RestartNodes": doRestartNodes,
|
2860
2913
|
"DescribeBackupRules": doDescribeBackupRules,
|
2861
2914
|
"RenameInstance": doRenameInstance,
|
2862
2915
|
"DescribeAsyncRequestInfo": doDescribeAsyncRequestInfo,
|
@@ -308,6 +308,13 @@
|
|
308
308
|
"output": "ResetDBInstancePasswordResponse",
|
309
309
|
"status": "online"
|
310
310
|
},
|
311
|
+
"RestartNodes": {
|
312
|
+
"document": "本接口用于重启数据库节点。",
|
313
|
+
"input": "RestartNodesRequest",
|
314
|
+
"name": "重启数据库节点",
|
315
|
+
"output": "RestartNodesResponse",
|
316
|
+
"status": "online"
|
317
|
+
},
|
311
318
|
"SetAccountUserPrivilege": {
|
312
319
|
"document": "本接口(SetAccountUserPrivilege)用于设置实例的账号权限。",
|
313
320
|
"input": "SetAccountUserPrivilegeRequest",
|
@@ -1160,6 +1167,15 @@
|
|
1160
1167
|
"name": "HiddenZone",
|
1161
1168
|
"required": false,
|
1162
1169
|
"type": "string"
|
1170
|
+
},
|
1171
|
+
{
|
1172
|
+
"disabled": false,
|
1173
|
+
"document": "参数模板 ID。参数模板是一组 MongoDB 的参数并为预设置了参数值的集合,将一组有相同诉求的参数及值 存为模板,在创建实例时,可直接引用参数值到新实例。合理使用参数模板,可以提高MongoDB数据库的效率。模板列表从 DescribeDBInstanceParamTpl 接口获取,注意模板支持的版本。",
|
1174
|
+
"example": "tpl-0vswufxag",
|
1175
|
+
"member": "string",
|
1176
|
+
"name": "ParamTemplateId",
|
1177
|
+
"required": false,
|
1178
|
+
"type": "string"
|
1163
1179
|
}
|
1164
1180
|
],
|
1165
1181
|
"type": "object"
|
@@ -1541,6 +1557,15 @@
|
|
1541
1557
|
"name": "HiddenZone",
|
1542
1558
|
"required": false,
|
1543
1559
|
"type": "string"
|
1560
|
+
},
|
1561
|
+
{
|
1562
|
+
"disabled": false,
|
1563
|
+
"document": "参数模板 ID。参数模板是一组 MongoDB 的参数并为预设置了参数值的集合,将一组有相同诉求的参数及值 存为模板,在创建实例时,可直接引用参数值到新实例。合理使用参数模板,可以提高MongoDB数据库的效率。模板列表从 DescribeDBInstanceParamTpl 接口获取,注意模板支持的版本及实例类型。",
|
1564
|
+
"example": "tpl-0vswufxag",
|
1565
|
+
"member": "string",
|
1566
|
+
"name": "ParamTemplateId",
|
1567
|
+
"required": false,
|
1568
|
+
"type": "string"
|
1544
1569
|
}
|
1545
1570
|
],
|
1546
1571
|
"type": "object"
|
@@ -5703,6 +5728,52 @@
|
|
5703
5728
|
],
|
5704
5729
|
"type": "object"
|
5705
5730
|
},
|
5731
|
+
"RestartNodesRequest": {
|
5732
|
+
"document": "RestartNodes请求参数结构体",
|
5733
|
+
"members": [
|
5734
|
+
{
|
5735
|
+
"disabled": false,
|
5736
|
+
"document": "实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同。",
|
5737
|
+
"example": "cmgo-p8vnipr5",
|
5738
|
+
"member": "string",
|
5739
|
+
"name": "InstanceId",
|
5740
|
+
"required": true,
|
5741
|
+
"type": "string"
|
5742
|
+
},
|
5743
|
+
{
|
5744
|
+
"disabled": false,
|
5745
|
+
"document": "节点Id。",
|
5746
|
+
"example": "[\"cmgo-6heje4jp_0-node-slave0\",\"cmgo-6heje4jp_1-node-slave0\"]",
|
5747
|
+
"member": "string",
|
5748
|
+
"name": "NodeIds",
|
5749
|
+
"required": true,
|
5750
|
+
"type": "list"
|
5751
|
+
}
|
5752
|
+
],
|
5753
|
+
"type": "object"
|
5754
|
+
},
|
5755
|
+
"RestartNodesResponse": {
|
5756
|
+
"document": "RestartNodes返回参数结构体",
|
5757
|
+
"members": [
|
5758
|
+
{
|
5759
|
+
"disabled": false,
|
5760
|
+
"document": "流程Id。",
|
5761
|
+
"example": "2313431",
|
5762
|
+
"member": "int64",
|
5763
|
+
"name": "FlowId",
|
5764
|
+
"required": true,
|
5765
|
+
"type": "int",
|
5766
|
+
"value_allowed_null": false
|
5767
|
+
},
|
5768
|
+
{
|
5769
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
5770
|
+
"member": "string",
|
5771
|
+
"name": "RequestId",
|
5772
|
+
"type": "string"
|
5773
|
+
}
|
5774
|
+
],
|
5775
|
+
"type": "object"
|
5776
|
+
},
|
5706
5777
|
"SecurityGroup": {
|
5707
5778
|
"document": "安全组信息",
|
5708
5779
|
"members": [
|
@@ -364,6 +364,14 @@
|
|
364
364
|
"title": "修改实例用户的密码"
|
365
365
|
}
|
366
366
|
],
|
367
|
+
"RestartNodes": [
|
368
|
+
{
|
369
|
+
"document": "",
|
370
|
+
"input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RestartNodes\n<公共请求参数>\n\n{\n \"InstanceId\": \"cmgo-pvwp23v1\",\n \"NodeIds\": [\n \"cmgo-pvwp23v1_0-node-slave0\",\n \"cmgo-pvwp23v1_0-node-slave1\"\n ]\n}",
|
371
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"2efcf780-9970-11ec-8975-6bc44e3bfad7\",\n \"FlowId\": 19677\n }\n}",
|
372
|
+
"title": "重启Mongod节点"
|
373
|
+
}
|
374
|
+
],
|
367
375
|
"SetAccountUserPrivilege": [
|
368
376
|
{
|
369
377
|
"document": "为当前实例的指定账号设置操作权限",
|
@@ -12296,8 +12296,8 @@
|
|
12296
12296
|
"members": [
|
12297
12297
|
{
|
12298
12298
|
"disabled": false,
|
12299
|
-
"document": "实例ID
|
12300
|
-
"example": "prom-
|
12299
|
+
"document": "Prometheus 实例 ID",
|
12300
|
+
"example": "prom-343kafd34",
|
12301
12301
|
"member": "string",
|
12302
12302
|
"name": "InstanceId",
|
12303
12303
|
"required": true,
|
@@ -12305,8 +12305,8 @@
|
|
12305
12305
|
},
|
12306
12306
|
{
|
12307
12307
|
"disabled": false,
|
12308
|
-
"document": "偏移量,默认为0。
|
12309
|
-
"example": "
|
12308
|
+
"document": "偏移量,默认为0。",
|
12309
|
+
"example": "1",
|
12310
12310
|
"member": "uint64",
|
12311
12311
|
"name": "Offset",
|
12312
12312
|
"required": false,
|
@@ -12314,8 +12314,8 @@
|
|
12314
12314
|
},
|
12315
12315
|
{
|
12316
12316
|
"disabled": false,
|
12317
|
-
"document": "返回数量,默认为20,最大值为100
|
12318
|
-
"example": "
|
12317
|
+
"document": "返回数量,默认为20,最大值为100。",
|
12318
|
+
"example": "20",
|
12319
12319
|
"member": "uint64",
|
12320
12320
|
"name": "Limit",
|
12321
12321
|
"required": false,
|
@@ -12323,8 +12323,8 @@
|
|
12323
12323
|
},
|
12324
12324
|
{
|
12325
12325
|
"disabled": false,
|
12326
|
-
"document": "仅支持按Name, Values
|
12327
|
-
"example": "
|
12326
|
+
"document": "仅支持按Name, Values字段过滤。",
|
12327
|
+
"example": " [{\"Name\": \"name\",\"Values\": [\"test\"]}]",
|
12328
12328
|
"member": "Filter",
|
12329
12329
|
"name": "Filters",
|
12330
12330
|
"required": false,
|