tccli 3.0.1085.1__py2.py3-none-any.whl → 3.0.1086.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.
- tccli/__init__.py +1 -1
- tccli/examples/redis/v20180412/DescribeInstanceEvents.md +45 -0
- tccli/examples/redis/v20180412/ModifyInstanceEvent.md +25 -0
- tccli/examples/vrs/v20200824/DetectEnvAndSoundQuality.md +12 -4
- tccli/services/cdwch/v20200915/api.json +13 -4
- tccli/services/cdwdoris/v20211228/api.json +127 -0
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/live/v20180801/api.json +16 -0
- tccli/services/mps/v20190612/api.json +108 -0
- tccli/services/redis/redis_client.py +106 -0
- tccli/services/redis/v20180412/api.json +342 -0
- tccli/services/redis/v20180412/examples.json +16 -0
- tccli/services/tdmq/v20200217/api.json +45 -0
- tccli/services/tmt/v20180321/api.json +1 -1
- tccli/services/tse/v20201207/api.json +286 -42
- tccli/services/tts/v20190823/api.json +9 -9
- tccli/services/vrs/v20200824/api.json +34 -33
- tccli/services/vrs/v20200824/examples.json +1 -1
- {tccli-3.0.1085.1.dist-info → tccli-3.0.1086.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1085.1.dist-info → tccli-3.0.1086.1.dist-info}/RECORD +24 -22
- {tccli-3.0.1085.1.dist-info → tccli-3.0.1086.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1085.1.dist-info → tccli-3.0.1086.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1085.1.dist-info → tccli-3.0.1086.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1086.1'
|
@@ -0,0 +1,45 @@
|
|
1
|
+
**Example 1: 查询实例事件**
|
2
|
+
|
3
|
+
查询实例事件
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli redis DescribeInstanceEvents --cli-unfold-argument \
|
9
|
+
--InstanceId crs-b6wst31p \
|
10
|
+
--PageSize 20 \
|
11
|
+
--PageNo 1 \
|
12
|
+
--ExecutionStartDate 2023-10-04 \
|
13
|
+
--ExecutionEndDate 2023-10-04 \
|
14
|
+
--Grades Low \
|
15
|
+
--Status Waiting \
|
16
|
+
--EventTypes InstanceMigration
|
17
|
+
```
|
18
|
+
|
19
|
+
Output:
|
20
|
+
```
|
21
|
+
{
|
22
|
+
"Response": {
|
23
|
+
"RedisInstanceEvents": [
|
24
|
+
{
|
25
|
+
"EffectInfo": "迁移完成时会有一次秒级别的闪断",
|
26
|
+
"EndTime": "22:00",
|
27
|
+
"ExecutionDate": "2023-09-18",
|
28
|
+
"Grade": "Low",
|
29
|
+
"ID": 10,
|
30
|
+
"InitialExecutionDate": "2023-08-19",
|
31
|
+
"InstanceId": "crs-b6wst31p",
|
32
|
+
"InstanceName": "benyqhuang8",
|
33
|
+
"LatestExecutionDate": "2023-09-18",
|
34
|
+
"StartTime": "21:00",
|
35
|
+
"Status": "Waiting",
|
36
|
+
"TaskEndTime": "0000-00-00 00:00:00",
|
37
|
+
"Type": "InstanceMigration"
|
38
|
+
}
|
39
|
+
],
|
40
|
+
"RequestId": "36a33a3d-f9ce-47c1-87d0-84869a37466d",
|
41
|
+
"TotalCount": 1
|
42
|
+
}
|
43
|
+
}
|
44
|
+
```
|
45
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
**Example 1: 修改实例事件信息**
|
2
|
+
|
3
|
+
修改实例事件信息
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli redis ModifyInstanceEvent --cli-unfold-argument \
|
9
|
+
--InstanceId crs-b6wst31p \
|
10
|
+
--EventId 10 \
|
11
|
+
--StartTime 22:00 \
|
12
|
+
--EndTime 23:01 \
|
13
|
+
--ExecutionDate 2023-09-18
|
14
|
+
```
|
15
|
+
|
16
|
+
Output:
|
17
|
+
```
|
18
|
+
{
|
19
|
+
"Response": {
|
20
|
+
"EventId": 10,
|
21
|
+
"RequestId": "abc"
|
22
|
+
}
|
23
|
+
}
|
24
|
+
```
|
25
|
+
|
@@ -16,12 +16,20 @@ Output:
|
|
16
16
|
```
|
17
17
|
{
|
18
18
|
"Response": {
|
19
|
-
"RequestId": "63f755d5cae78f1b126bdbb0",
|
20
19
|
"Data": {
|
21
|
-
"AudioId": "
|
20
|
+
"AudioId": "abc",
|
22
21
|
"DetectionCode": 0,
|
23
|
-
"DetectionMsg": "
|
24
|
-
|
22
|
+
"DetectionMsg": "abc",
|
23
|
+
"DetectionTip": [
|
24
|
+
{
|
25
|
+
"PronAccuracy": 0,
|
26
|
+
"PronFluency": 0,
|
27
|
+
"Tag": 0,
|
28
|
+
"Word": "abc"
|
29
|
+
}
|
30
|
+
]
|
31
|
+
},
|
32
|
+
"RequestId": "abc"
|
25
33
|
}
|
26
34
|
}
|
27
35
|
```
|
@@ -829,7 +829,7 @@
|
|
829
829
|
},
|
830
830
|
{
|
831
831
|
"disabled": false,
|
832
|
-
"document": "
|
832
|
+
"document": "数据节点\nSpecName从DescribeSpec接口中返回的DataSpec.Name获取",
|
833
833
|
"example": "无",
|
834
834
|
"member": "NodeSpec",
|
835
835
|
"name": "DataSpec",
|
@@ -837,8 +837,8 @@
|
|
837
837
|
"type": "object"
|
838
838
|
},
|
839
839
|
{
|
840
|
-
"disabled":
|
841
|
-
"document": "
|
840
|
+
"disabled": true,
|
841
|
+
"document": "标签列表(废弃)",
|
842
842
|
"example": "无",
|
843
843
|
"member": "Tag",
|
844
844
|
"name": "Tags",
|
@@ -883,12 +883,21 @@
|
|
883
883
|
},
|
884
884
|
{
|
885
885
|
"disabled": false,
|
886
|
-
"document": "ZK
|
886
|
+
"document": "ZK节点\nSpecName从DescribeSpec接口中返回的CommonSpec.Name(ZK节点)获取",
|
887
887
|
"example": "无",
|
888
888
|
"member": "NodeSpec",
|
889
889
|
"name": "CommonSpec",
|
890
890
|
"required": false,
|
891
891
|
"type": "object"
|
892
|
+
},
|
893
|
+
{
|
894
|
+
"disabled": false,
|
895
|
+
"document": "标签列表",
|
896
|
+
"example": "无",
|
897
|
+
"member": "Tag",
|
898
|
+
"name": "TagItems",
|
899
|
+
"required": false,
|
900
|
+
"type": "list"
|
892
901
|
}
|
893
902
|
],
|
894
903
|
"type": "object"
|
@@ -480,6 +480,24 @@
|
|
480
480
|
"name": "CaseSensitive",
|
481
481
|
"required": false,
|
482
482
|
"type": "int"
|
483
|
+
},
|
484
|
+
{
|
485
|
+
"disabled": false,
|
486
|
+
"document": "是否开启多可用区",
|
487
|
+
"example": "true",
|
488
|
+
"member": "bool",
|
489
|
+
"name": "EnableMultiZones",
|
490
|
+
"required": false,
|
491
|
+
"type": "bool"
|
492
|
+
},
|
493
|
+
{
|
494
|
+
"disabled": false,
|
495
|
+
"document": "开启多可用区后,用户的所有可用区和子网信息",
|
496
|
+
"example": "无",
|
497
|
+
"member": "NetworkInfo",
|
498
|
+
"name": "UserMultiZoneInfos",
|
499
|
+
"required": false,
|
500
|
+
"type": "object"
|
483
501
|
}
|
484
502
|
],
|
485
503
|
"type": "object"
|
@@ -2173,6 +2191,26 @@
|
|
2173
2191
|
"output_required": false,
|
2174
2192
|
"type": "list",
|
2175
2193
|
"value_allowed_null": true
|
2194
|
+
},
|
2195
|
+
{
|
2196
|
+
"disabled": false,
|
2197
|
+
"document": "是否为多可用区\n注意:此字段可能返回 null,表示取不到有效值。",
|
2198
|
+
"example": "false",
|
2199
|
+
"member": "bool",
|
2200
|
+
"name": "EnableMultiZones",
|
2201
|
+
"output_required": false,
|
2202
|
+
"type": "bool",
|
2203
|
+
"value_allowed_null": true
|
2204
|
+
},
|
2205
|
+
{
|
2206
|
+
"disabled": false,
|
2207
|
+
"document": "用户可用区和子网信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
2208
|
+
"example": "无",
|
2209
|
+
"member": "string",
|
2210
|
+
"name": "UserNetworkInfos",
|
2211
|
+
"output_required": false,
|
2212
|
+
"type": "string",
|
2213
|
+
"value_allowed_null": true
|
2176
2214
|
}
|
2177
2215
|
],
|
2178
2216
|
"usage": "out"
|
@@ -2329,6 +2367,45 @@
|
|
2329
2367
|
],
|
2330
2368
|
"type": "object"
|
2331
2369
|
},
|
2370
|
+
"NetworkInfo": {
|
2371
|
+
"document": "网络信息",
|
2372
|
+
"members": [
|
2373
|
+
{
|
2374
|
+
"disabled": false,
|
2375
|
+
"document": "可用区\n注意:此字段可能返回 null,表示取不到有效值。",
|
2376
|
+
"example": "ap-guangzhou-1",
|
2377
|
+
"member": "string",
|
2378
|
+
"name": "Zone",
|
2379
|
+
"output_required": false,
|
2380
|
+
"required": false,
|
2381
|
+
"type": "string",
|
2382
|
+
"value_allowed_null": true
|
2383
|
+
},
|
2384
|
+
{
|
2385
|
+
"disabled": false,
|
2386
|
+
"document": "子网id\n注意:此字段可能返回 null,表示取不到有效值。",
|
2387
|
+
"example": "subnet-xxxxxxx",
|
2388
|
+
"member": "string",
|
2389
|
+
"name": "SubnetId",
|
2390
|
+
"output_required": false,
|
2391
|
+
"required": false,
|
2392
|
+
"type": "string",
|
2393
|
+
"value_allowed_null": true
|
2394
|
+
},
|
2395
|
+
{
|
2396
|
+
"disabled": false,
|
2397
|
+
"document": "当前子网可用ip数\n注意:此字段可能返回 null,表示取不到有效值。",
|
2398
|
+
"example": "20",
|
2399
|
+
"member": "int64",
|
2400
|
+
"name": "SubnetIpNum",
|
2401
|
+
"output_required": false,
|
2402
|
+
"required": false,
|
2403
|
+
"type": "int",
|
2404
|
+
"value_allowed_null": true
|
2405
|
+
}
|
2406
|
+
],
|
2407
|
+
"usage": "both"
|
2408
|
+
},
|
2332
2409
|
"NodeInfo": {
|
2333
2410
|
"document": "NodeInfo",
|
2334
2411
|
"members": [
|
@@ -2351,6 +2428,56 @@
|
|
2351
2428
|
"output_required": false,
|
2352
2429
|
"type": "int",
|
2353
2430
|
"value_allowed_null": true
|
2431
|
+
},
|
2432
|
+
{
|
2433
|
+
"disabled": false,
|
2434
|
+
"document": "节点角色名\n注意:此字段可能返回 null,表示取不到有效值。",
|
2435
|
+
"example": "MASTER",
|
2436
|
+
"member": "string",
|
2437
|
+
"name": "NodeName",
|
2438
|
+
"output_required": false,
|
2439
|
+
"type": "string",
|
2440
|
+
"value_allowed_null": true
|
2441
|
+
},
|
2442
|
+
{
|
2443
|
+
"disabled": false,
|
2444
|
+
"document": "组件名\n注意:此字段可能返回 null,表示取不到有效值。",
|
2445
|
+
"example": "FE",
|
2446
|
+
"member": "string",
|
2447
|
+
"name": "ComponentName",
|
2448
|
+
"output_required": false,
|
2449
|
+
"type": "string",
|
2450
|
+
"value_allowed_null": true
|
2451
|
+
},
|
2452
|
+
{
|
2453
|
+
"disabled": false,
|
2454
|
+
"document": "节点角色\n注意:此字段可能返回 null,表示取不到有效值。",
|
2455
|
+
"example": "core",
|
2456
|
+
"member": "string",
|
2457
|
+
"name": "NodeRole",
|
2458
|
+
"output_required": false,
|
2459
|
+
"type": "string",
|
2460
|
+
"value_allowed_null": true
|
2461
|
+
},
|
2462
|
+
{
|
2463
|
+
"disabled": false,
|
2464
|
+
"document": "节点上次重启的时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
2465
|
+
"example": "无",
|
2466
|
+
"member": "string",
|
2467
|
+
"name": "LastRestartTime",
|
2468
|
+
"output_required": false,
|
2469
|
+
"type": "string",
|
2470
|
+
"value_allowed_null": true
|
2471
|
+
},
|
2472
|
+
{
|
2473
|
+
"disabled": false,
|
2474
|
+
"document": "节点所在可用区\n注意:此字段可能返回 null,表示取不到有效值。",
|
2475
|
+
"example": "无",
|
2476
|
+
"member": "string",
|
2477
|
+
"name": "Zone",
|
2478
|
+
"output_required": false,
|
2479
|
+
"type": "string",
|
2480
|
+
"value_allowed_null": true
|
2354
2481
|
}
|
2355
2482
|
],
|
2356
2483
|
"usage": "out"
|
@@ -1633,7 +1633,7 @@
|
|
1633
1633
|
"members": [
|
1634
1634
|
{
|
1635
1635
|
"disabled": false,
|
1636
|
-
"document": "**如果是Component填写控件类型,则可选的字段为**:\n\n<ul><li> <b>TEXT</b> : 普通文本控件,输入文本字符串;</li>\n<li> <b>MULTI_LINE_TEXT</b> : 多行文本控件,输入文本字符串;</li>\n<li> <b>CHECK_BOX</b> : 勾选框控件,若选中填写ComponentValue 填写 true或者 false 字符串;</li>\n<li> <b>FILL_IMAGE</b> : 图片控件,ComponentValue 填写图片的资源 ID;</li>\n<li> <b>DYNAMIC_TABLE</b> : 动态表格控件;</li>\n<li> <b>ATTACHMENT</b> : 附件控件,ComponentValue 填写附件图片的资源 ID列表,以逗号分隔;</li>\n<li> <b>SELECTOR</b> : 选择器控件,ComponentValue填写选择的字符串内容;</li>\n<li> <b>DATE</b> : 日期控件;默认是格式化为xxxx年xx月xx日字符串;</li>\n<li> <b>DISTRICT</b> : 省市区行政区控件,ComponentValue填写省市区行政区字符串内容;</li></ul>\n\n**如果是SignComponent签署控件类型,\n需要根据签署人的类型可选的字段为**\n* 企业方\n<ul><li> <b>SIGN_SEAL</b> : 签署印章控件;</li>\n<li> <b>SIGN_DATE</b> : 签署日期控件;</li>\n<li> <b>SIGN_SIGNATURE</b> : 用户签名控件;</li>\n<li> <b>
|
1636
|
+
"document": "**如果是Component填写控件类型,则可选的字段为**:\n\n<ul><li> <b>TEXT</b> : 普通文本控件,输入文本字符串;</li>\n<li> <b>MULTI_LINE_TEXT</b> : 多行文本控件,输入文本字符串;</li>\n<li> <b>CHECK_BOX</b> : 勾选框控件,若选中填写ComponentValue 填写 true或者 false 字符串;</li>\n<li> <b>FILL_IMAGE</b> : 图片控件,ComponentValue 填写图片的资源 ID;</li>\n<li> <b>DYNAMIC_TABLE</b> : 动态表格控件;</li>\n<li> <b>ATTACHMENT</b> : 附件控件,ComponentValue 填写附件图片的资源 ID列表,以逗号分隔;</li>\n<li> <b>SELECTOR</b> : 选择器控件,ComponentValue填写选择的字符串内容;</li>\n<li> <b>DATE</b> : 日期控件;默认是格式化为xxxx年xx月xx日字符串;</li>\n<li> <b>DISTRICT</b> : 省市区行政区控件,ComponentValue填写省市区行政区字符串内容;</li></ul>\n\n**如果是SignComponent签署控件类型,\n需要根据签署人的类型可选的字段为**\n* 企业方\n<ul><li> <b>SIGN_SEAL</b> : 签署印章控件;</li>\n<li> <b>SIGN_DATE</b> : 签署日期控件;</li>\n<li> <b>SIGN_SIGNATURE</b> : 用户签名控件;</li>\n<li> <b>SIGN_PAGING_SEAL</b> : 骑缝章;若文件发起,需要对应填充ComponentPosY、ComponentWidth、ComponentHeight</li>\n<li> <b>SIGN_OPINION</b> : 签署意见控件,用户需要根据配置的签署意见内容,完成对意见内容的确认;</li>\n<li> <b>SIGN_LEGAL_PERSON_SEAL</b> : 企业法定代表人控件。</li></ul>\n\n* 个人方\n<ul><li> <b>SIGN_DATE</b> : 签署日期控件;</li>\n<li> <b>SIGN_SIGNATURE</b> : 用户签名控件;</li></ul>\n \n注:` 表单域的控件不能作为印章和签名控件`",
|
1637
1637
|
"example": "SIGN_SEAL",
|
1638
1638
|
"member": "string",
|
1639
1639
|
"name": "ComponentType",
|
@@ -5436,7 +5436,7 @@
|
|
5436
5436
|
},
|
5437
5437
|
{
|
5438
5438
|
"disabled": false,
|
5439
|
-
"document": "**如果是Component填写控件类型,则可选的字段为**:\n\n<ul><li> <b>TEXT</b> : 普通文本控件,输入文本字符串;</li>\n<li> <b>MULTI_LINE_TEXT</b> : 多行文本控件,输入文本字符串;</li>\n<li> <b>CHECK_BOX</b> : 勾选框控件,若选中填写ComponentValue 填写 true或者 false 字符串;</li>\n<li> <b>FILL_IMAGE</b> : 图片控件,ComponentValue 填写图片的资源 ID;</li>\n<li> <b>DYNAMIC_TABLE</b> : 动态表格控件;</li>\n<li> <b>ATTACHMENT</b> : 附件控件,ComponentValue 填写附件图片的资源 ID列表,以逗号分隔;</li>\n<li> <b>SELECTOR</b> : 选择器控件,ComponentValue填写选择的字符串内容;</li>\n<li> <b>DATE</b> : 日期控件;默认是格式化为xxxx年xx月xx日字符串;</li>\n<li> <b>DISTRICT</b> : 省市区行政区控件,ComponentValue填写省市区行政区字符串内容;</li></ul>\n\n**如果是SignComponent签署控件类型,\n需要根据签署人的类型可选的字段为**\n* 企业方\n<ul><li> <b>SIGN_SEAL</b> : 签署印章控件;</li>\n<li> <b>SIGN_DATE</b> : 签署日期控件;</li>\n<li> <b>SIGN_SIGNATURE</b> : 用户签名控件;</li>\n<li> <b>
|
5439
|
+
"document": "**如果是Component填写控件类型,则可选的字段为**:\n\n<ul><li> <b>TEXT</b> : 普通文本控件,输入文本字符串;</li>\n<li> <b>MULTI_LINE_TEXT</b> : 多行文本控件,输入文本字符串;</li>\n<li> <b>CHECK_BOX</b> : 勾选框控件,若选中填写ComponentValue 填写 true或者 false 字符串;</li>\n<li> <b>FILL_IMAGE</b> : 图片控件,ComponentValue 填写图片的资源 ID;</li>\n<li> <b>DYNAMIC_TABLE</b> : 动态表格控件;</li>\n<li> <b>ATTACHMENT</b> : 附件控件,ComponentValue 填写附件图片的资源 ID列表,以逗号分隔;</li>\n<li> <b>SELECTOR</b> : 选择器控件,ComponentValue填写选择的字符串内容;</li>\n<li> <b>DATE</b> : 日期控件;默认是格式化为xxxx年xx月xx日字符串;</li>\n<li> <b>DISTRICT</b> : 省市区行政区控件,ComponentValue填写省市区行政区字符串内容;</li></ul>\n\n**如果是SignComponent签署控件类型,\n需要根据签署人的类型可选的字段为**\n* 企业方\n<ul><li> <b>SIGN_SEAL</b> : 签署印章控件;</li>\n<li> <b>SIGN_DATE</b> : 签署日期控件;</li>\n<li> <b>SIGN_SIGNATURE</b> : 用户签名控件;</li>\n<li> <b>SIGN_PAGING_SEAL</b> : 骑缝章;若文件发起,需要对应填充ComponentPosY、ComponentWidth、ComponentHeight</li>\n<li> <b>SIGN_OPINION</b> : 签署意见控件,用户需要根据配置的签署意见内容,完成对意见内容的确认;</li>\n<li> <b>SIGN_LEGAL_PERSON_SEAL</b> : 企业法定代表人控件。</li></ul>\n\n* 个人方\n<ul><li> <b>SIGN_DATE</b> : 签署日期控件;</li>\n<li> <b>SIGN_SIGNATURE</b> : 用户签名控件;</li></ul>\n \n注:` 表单域的控件不能作为印章和签名控件`",
|
5440
5440
|
"example": "SIGN_SEAL",
|
5441
5441
|
"member": "string",
|
5442
5442
|
"name": "ComponentType",
|
@@ -5552,6 +5552,7 @@
|
|
5552
5552
|
"example": "2019-02-01T00:00:00+08:00",
|
5553
5553
|
"member": "string",
|
5554
5554
|
"name": "PeakBandwidthTime",
|
5555
|
+
"output_required": true,
|
5555
5556
|
"type": "string",
|
5556
5557
|
"value_allowed_null": false
|
5557
5558
|
},
|
@@ -5561,6 +5562,7 @@
|
|
5561
5562
|
"example": "117042.495",
|
5562
5563
|
"member": "float",
|
5563
5564
|
"name": "PeakBandwidth",
|
5565
|
+
"output_required": true,
|
5564
5566
|
"type": "float",
|
5565
5567
|
"value_allowed_null": false
|
5566
5568
|
},
|
@@ -5570,6 +5572,7 @@
|
|
5570
5572
|
"example": "2019-02-01T00:00:00+08:00",
|
5571
5573
|
"member": "string",
|
5572
5574
|
"name": "P95PeakBandwidthTime",
|
5575
|
+
"output_required": true,
|
5573
5576
|
"type": "string",
|
5574
5577
|
"value_allowed_null": false
|
5575
5578
|
},
|
@@ -5579,6 +5582,7 @@
|
|
5579
5582
|
"example": "117042.495",
|
5580
5583
|
"member": "float",
|
5581
5584
|
"name": "P95PeakBandwidth",
|
5585
|
+
"output_required": true,
|
5582
5586
|
"type": "float",
|
5583
5587
|
"value_allowed_null": false
|
5584
5588
|
},
|
@@ -5588,6 +5592,7 @@
|
|
5588
5592
|
"example": "12254567.55",
|
5589
5593
|
"member": "float",
|
5590
5594
|
"name": "SumFlux",
|
5595
|
+
"output_required": true,
|
5591
5596
|
"type": "float",
|
5592
5597
|
"value_allowed_null": false
|
5593
5598
|
},
|
@@ -5597,6 +5602,7 @@
|
|
5597
5602
|
"example": "无",
|
5598
5603
|
"member": "BillDataInfo",
|
5599
5604
|
"name": "DataInfoList",
|
5605
|
+
"output_required": true,
|
5600
5606
|
"type": "list",
|
5601
5607
|
"value_allowed_null": false
|
5602
5608
|
},
|
@@ -15414,6 +15420,16 @@
|
|
15414
15420
|
"type": "bool",
|
15415
15421
|
"value_allowed_null": true
|
15416
15422
|
},
|
15423
|
+
{
|
15424
|
+
"disabled": false,
|
15425
|
+
"document": "是否存储至cos\n注意:此字段可能返回 null,表示取不到有效值。",
|
15426
|
+
"example": "1",
|
15427
|
+
"member": "int64",
|
15428
|
+
"name": "CosStore",
|
15429
|
+
"output_required": true,
|
15430
|
+
"type": "int",
|
15431
|
+
"value_allowed_null": true
|
15432
|
+
},
|
15417
15433
|
{
|
15418
15434
|
"disabled": false,
|
15419
15435
|
"document": "FLV 录制定制参数。\n注意:此字段可能返回 null,表示取不到有效值。",
|
@@ -1616,6 +1616,16 @@
|
|
1616
1616
|
"type": "object",
|
1617
1617
|
"value_allowed_null": true
|
1618
1618
|
},
|
1619
|
+
{
|
1620
|
+
"disabled": false,
|
1621
|
+
"document": "视频内容分析片头片尾任务的查询结果,当任务类型为 HeadTailRecognition 时有效。\n注意:此字段可能返回 null,表示取不到有效值。",
|
1622
|
+
"example": "无",
|
1623
|
+
"member": "AiAnalysisTaskHeadTailResult",
|
1624
|
+
"name": "HeadTailTask",
|
1625
|
+
"output_required": true,
|
1626
|
+
"type": "object",
|
1627
|
+
"value_allowed_null": true
|
1628
|
+
},
|
1619
1629
|
{
|
1620
1630
|
"disabled": false,
|
1621
1631
|
"document": "视频内容分析摘要任务的查询结果,当任务类型为 Description 时有效。\n注意:此字段可能返回 null,表示取不到有效值。",
|
@@ -2119,6 +2129,104 @@
|
|
2119
2129
|
],
|
2120
2130
|
"usage": "out"
|
2121
2131
|
},
|
2132
|
+
"AiAnalysisTaskHeadTailInput": {
|
2133
|
+
"document": "片头片尾任务输入类型",
|
2134
|
+
"members": [
|
2135
|
+
{
|
2136
|
+
"disabled": false,
|
2137
|
+
"document": "片头片尾识别模板 ID。",
|
2138
|
+
"example": "无",
|
2139
|
+
"member": "uint64",
|
2140
|
+
"name": "Definition",
|
2141
|
+
"required": true,
|
2142
|
+
"type": "int",
|
2143
|
+
"value_allowed_null": false
|
2144
|
+
}
|
2145
|
+
],
|
2146
|
+
"usage": "out"
|
2147
|
+
},
|
2148
|
+
"AiAnalysisTaskHeadTailOutput": {
|
2149
|
+
"document": "片头片尾结果信息",
|
2150
|
+
"members": [
|
2151
|
+
{
|
2152
|
+
"disabled": false,
|
2153
|
+
"document": "片头pts。\n注意:此字段可能返回 null,表示取不到有效值。",
|
2154
|
+
"example": "无",
|
2155
|
+
"member": "float",
|
2156
|
+
"name": "HeadTimeOffset",
|
2157
|
+
"required": true,
|
2158
|
+
"type": "float",
|
2159
|
+
"value_allowed_null": true
|
2160
|
+
},
|
2161
|
+
{
|
2162
|
+
"disabled": false,
|
2163
|
+
"document": "片尾pts。\n注意:此字段可能返回 null,表示取不到有效值。",
|
2164
|
+
"example": "无",
|
2165
|
+
"member": "float",
|
2166
|
+
"name": "TailTimeOffset",
|
2167
|
+
"required": false,
|
2168
|
+
"type": "float",
|
2169
|
+
"value_allowed_null": true
|
2170
|
+
}
|
2171
|
+
],
|
2172
|
+
"usage": "out"
|
2173
|
+
},
|
2174
|
+
"AiAnalysisTaskHeadTailResult": {
|
2175
|
+
"document": "片头片尾结果类型",
|
2176
|
+
"members": [
|
2177
|
+
{
|
2178
|
+
"disabled": false,
|
2179
|
+
"document": "任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。",
|
2180
|
+
"example": "无",
|
2181
|
+
"member": "string",
|
2182
|
+
"name": "Status",
|
2183
|
+
"output_required": true,
|
2184
|
+
"type": "string",
|
2185
|
+
"value_allowed_null": false
|
2186
|
+
},
|
2187
|
+
{
|
2188
|
+
"disabled": false,
|
2189
|
+
"document": "错误码,0:成功,其他值:失败。",
|
2190
|
+
"example": "无",
|
2191
|
+
"member": "int64",
|
2192
|
+
"name": "ErrCode",
|
2193
|
+
"output_required": true,
|
2194
|
+
"type": "int",
|
2195
|
+
"value_allowed_null": false
|
2196
|
+
},
|
2197
|
+
{
|
2198
|
+
"disabled": false,
|
2199
|
+
"document": "错误信息。",
|
2200
|
+
"example": "无",
|
2201
|
+
"member": "string",
|
2202
|
+
"name": "Message",
|
2203
|
+
"output_required": true,
|
2204
|
+
"type": "string",
|
2205
|
+
"value_allowed_null": false
|
2206
|
+
},
|
2207
|
+
{
|
2208
|
+
"disabled": false,
|
2209
|
+
"document": "片头片尾任务输入。",
|
2210
|
+
"example": "无",
|
2211
|
+
"member": "AiAnalysisTaskHeadTailInput",
|
2212
|
+
"name": "Input",
|
2213
|
+
"output_required": true,
|
2214
|
+
"type": "object",
|
2215
|
+
"value_allowed_null": false
|
2216
|
+
},
|
2217
|
+
{
|
2218
|
+
"disabled": false,
|
2219
|
+
"document": "片头片尾任务输出。\n注意:此字段可能返回 null,表示取不到有效值。",
|
2220
|
+
"example": "无",
|
2221
|
+
"member": "AiAnalysisTaskHeadTailOutput",
|
2222
|
+
"name": "Output",
|
2223
|
+
"output_required": true,
|
2224
|
+
"type": "object",
|
2225
|
+
"value_allowed_null": true
|
2226
|
+
}
|
2227
|
+
],
|
2228
|
+
"usage": "out"
|
2229
|
+
},
|
2122
2230
|
"AiAnalysisTaskHighlightInput": {
|
2123
2231
|
"document": "智能精彩片段任务输入类型",
|
2124
2232
|
"members": [
|
@@ -1317,6 +1317,58 @@ def doCreateInstanceAccount(args, parsed_globals):
|
|
1317
1317
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1318
1318
|
|
1319
1319
|
|
1320
|
+
def doModifyInstanceEvent(args, parsed_globals):
|
1321
|
+
g_param = parse_global_arg(parsed_globals)
|
1322
|
+
|
1323
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1324
|
+
cred = credential.CVMRoleCredential()
|
1325
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1326
|
+
cred = credential.STSAssumeRoleCredential(
|
1327
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1328
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1329
|
+
)
|
1330
|
+
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):
|
1331
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1332
|
+
else:
|
1333
|
+
cred = credential.Credential(
|
1334
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1335
|
+
)
|
1336
|
+
http_profile = HttpProfile(
|
1337
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1338
|
+
reqMethod="POST",
|
1339
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1340
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1341
|
+
)
|
1342
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1343
|
+
if g_param[OptionsDefine.Language]:
|
1344
|
+
profile.language = g_param[OptionsDefine.Language]
|
1345
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1346
|
+
client = mod.RedisClient(cred, g_param[OptionsDefine.Region], profile)
|
1347
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1348
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1349
|
+
model = models.ModifyInstanceEventRequest()
|
1350
|
+
model.from_json_string(json.dumps(args))
|
1351
|
+
start_time = time.time()
|
1352
|
+
while True:
|
1353
|
+
rsp = client.ModifyInstanceEvent(model)
|
1354
|
+
result = rsp.to_json_string()
|
1355
|
+
try:
|
1356
|
+
json_obj = json.loads(result)
|
1357
|
+
except TypeError as e:
|
1358
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1359
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1360
|
+
break
|
1361
|
+
cur_time = time.time()
|
1362
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1363
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1364
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1365
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1366
|
+
else:
|
1367
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1368
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1369
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1370
|
+
|
1371
|
+
|
1320
1372
|
def doUpgradeProxyVersion(args, parsed_globals):
|
1321
1373
|
g_param = parse_global_arg(parsed_globals)
|
1322
1374
|
|
@@ -3761,6 +3813,58 @@ def doDescribeInstanceZoneInfo(args, parsed_globals):
|
|
3761
3813
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3762
3814
|
|
3763
3815
|
|
3816
|
+
def doDescribeInstanceEvents(args, parsed_globals):
|
3817
|
+
g_param = parse_global_arg(parsed_globals)
|
3818
|
+
|
3819
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3820
|
+
cred = credential.CVMRoleCredential()
|
3821
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3822
|
+
cred = credential.STSAssumeRoleCredential(
|
3823
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3824
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3825
|
+
)
|
3826
|
+
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):
|
3827
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3828
|
+
else:
|
3829
|
+
cred = credential.Credential(
|
3830
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3831
|
+
)
|
3832
|
+
http_profile = HttpProfile(
|
3833
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3834
|
+
reqMethod="POST",
|
3835
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3836
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3837
|
+
)
|
3838
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3839
|
+
if g_param[OptionsDefine.Language]:
|
3840
|
+
profile.language = g_param[OptionsDefine.Language]
|
3841
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3842
|
+
client = mod.RedisClient(cred, g_param[OptionsDefine.Region], profile)
|
3843
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3844
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3845
|
+
model = models.DescribeInstanceEventsRequest()
|
3846
|
+
model.from_json_string(json.dumps(args))
|
3847
|
+
start_time = time.time()
|
3848
|
+
while True:
|
3849
|
+
rsp = client.DescribeInstanceEvents(model)
|
3850
|
+
result = rsp.to_json_string()
|
3851
|
+
try:
|
3852
|
+
json_obj = json.loads(result)
|
3853
|
+
except TypeError as e:
|
3854
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3855
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3856
|
+
break
|
3857
|
+
cur_time = time.time()
|
3858
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3859
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3860
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3861
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3862
|
+
else:
|
3863
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3864
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3865
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3866
|
+
|
3867
|
+
|
3764
3868
|
def doSwitchInstanceVip(args, parsed_globals):
|
3765
3869
|
g_param = parse_global_arg(parsed_globals)
|
3766
3870
|
|
@@ -4993,6 +5097,7 @@ ACTION_MAP = {
|
|
4993
5097
|
"ChangeInstanceRole": doChangeInstanceRole,
|
4994
5098
|
"DescribeInstanceNodeInfo": doDescribeInstanceNodeInfo,
|
4995
5099
|
"CreateInstanceAccount": doCreateInstanceAccount,
|
5100
|
+
"ModifyInstanceEvent": doModifyInstanceEvent,
|
4996
5101
|
"UpgradeProxyVersion": doUpgradeProxyVersion,
|
4997
5102
|
"DescribeInstanceMonitorTopNCmdTook": doDescribeInstanceMonitorTopNCmdTook,
|
4998
5103
|
"ModifyAutoBackupConfig": doModifyAutoBackupConfig,
|
@@ -5040,6 +5145,7 @@ ACTION_MAP = {
|
|
5040
5145
|
"DescribeSlowLog": doDescribeSlowLog,
|
5041
5146
|
"DescribeBackupDownloadRestriction": doDescribeBackupDownloadRestriction,
|
5042
5147
|
"DescribeInstanceZoneInfo": doDescribeInstanceZoneInfo,
|
5148
|
+
"DescribeInstanceEvents": doDescribeInstanceEvents,
|
5043
5149
|
"SwitchInstanceVip": doSwitchInstanceVip,
|
5044
5150
|
"DescribeReplicationGroup": doDescribeReplicationGroup,
|
5045
5151
|
"InquiryPriceRenewInstance": doInquiryPriceRenewInstance,
|