tccli 3.0.1123.1__py2.py3-none-any.whl → 3.0.1125.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/v20221229/api.json +2 -2
  3. tccli/services/asr/v20190614/api.json +1 -1
  4. tccli/services/ccc/ccc_client.py +53 -0
  5. tccli/services/ccc/v20200210/api.json +89 -0
  6. tccli/services/ccc/v20200210/examples.json +8 -0
  7. tccli/services/cdb/v20170320/api.json +2 -2
  8. tccli/services/cfw/v20190904/api.json +6 -5
  9. tccli/services/cfw/v20190904/examples.json +1 -1
  10. tccli/services/cls/v20201016/api.json +1 -1
  11. tccli/services/csip/v20221121/api.json +1 -0
  12. tccli/services/cynosdb/v20190107/api.json +56 -26
  13. tccli/services/cynosdb/v20190107/examples.json +7 -7
  14. tccli/services/dlc/dlc_client.py +602 -72
  15. tccli/services/dlc/v20210125/api.json +856 -25
  16. tccli/services/dlc/v20210125/examples.json +86 -0
  17. tccli/services/dts/v20180330/api.json +62 -37
  18. tccli/services/dts/v20180330/examples.json +1 -1
  19. tccli/services/dts/v20211206/api.json +9 -0
  20. tccli/services/eb/v20210416/api.json +63 -45
  21. tccli/services/eb/v20210416/examples.json +3 -9
  22. tccli/services/ess/v20201111/api.json +1 -1
  23. tccli/services/essbasic/v20210526/api.json +1 -1
  24. tccli/services/facefusion/facefusion_client.py +53 -0
  25. tccli/services/facefusion/v20220927/api.json +168 -0
  26. tccli/services/facefusion/v20220927/examples.json +14 -0
  27. tccli/services/hunyuan/v20230901/api.json +15 -15
  28. tccli/services/hunyuan/v20230901/examples.json +5 -5
  29. tccli/services/iotexplorer/iotexplorer_client.py +53 -0
  30. tccli/services/iotexplorer/v20190423/api.json +136 -0
  31. tccli/services/iotexplorer/v20190423/examples.json +8 -0
  32. tccli/services/mongodb/v20190725/api.json +18 -13
  33. tccli/services/monitor/v20180724/api.json +2 -2
  34. tccli/services/mps/v20190612/api.json +22 -22
  35. tccli/services/ocr/v20181119/api.json +4 -4
  36. tccli/services/ocr/v20181119/examples.json +1 -1
  37. tccli/services/postgres/postgres_client.py +57 -4
  38. tccli/services/postgres/v20170312/api.json +404 -273
  39. tccli/services/postgres/v20170312/examples.json +29 -15
  40. tccli/services/pts/v20210728/api.json +1 -1
  41. tccli/services/pts/v20210728/examples.json +1 -1
  42. tccli/services/rum/v20210622/api.json +2 -2
  43. tccli/services/rum/v20210622/examples.json +2 -2
  44. tccli/services/smh/v20210712/api.json +2 -2
  45. tccli/services/sqlserver/v20180328/api.json +41 -29
  46. tccli/services/tcss/v20201101/api.json +3 -2
  47. tccli/services/tcss/v20201101/examples.json +1 -1
  48. tccli/services/teo/v20220901/api.json +5 -5
  49. tccli/services/tione/v20211111/api.json +70 -3
  50. tccli/services/tione/v20211111/examples.json +1 -1
  51. tccli/services/trp/trp_client.py +53 -0
  52. tccli/services/trp/v20210515/api.json +110 -0
  53. tccli/services/trp/v20210515/examples.json +8 -0
  54. tccli/services/vcg/v20240404/api.json +8 -8
  55. tccli/services/vtc/v20240223/api.json +20 -0
  56. tccli/services/waf/v20180125/api.json +11 -1
  57. tccli/services/waf/v20180125/examples.json +2 -2
  58. tccli/services/wedata/v20210820/api.json +60 -7
  59. {tccli-3.0.1123.1.dist-info → tccli-3.0.1125.1.dist-info}/METADATA +2 -2
  60. {tccli-3.0.1123.1.dist-info → tccli-3.0.1125.1.dist-info}/RECORD +63 -63
  61. {tccli-3.0.1123.1.dist-info → tccli-3.0.1125.1.dist-info}/WHEEL +0 -0
  62. {tccli-3.0.1123.1.dist-info → tccli-3.0.1125.1.dist-info}/entry_points.txt +0 -0
  63. {tccli-3.0.1123.1.dist-info → tccli-3.0.1125.1.dist-info}/license_files/LICENSE +0 -0
@@ -1040,8 +1040,7 @@
1040
1040
  "member": "string",
1041
1041
  "name": "UserName",
1042
1042
  "required": true,
1043
- "type": "string",
1044
- "value_allowed_null": false
1043
+ "type": "string"
1045
1044
  },
1046
1045
  {
1047
1046
  "disabled": false,
@@ -1049,9 +1048,8 @@
1049
1048
  "example": "无",
1050
1049
  "member": "string",
1051
1050
  "name": "Password",
1052
- "required": true,
1053
- "type": "string",
1054
- "value_allowed_null": false
1051
+ "required": false,
1052
+ "type": "string"
1055
1053
  },
1056
1054
  {
1057
1055
  "disabled": false,
@@ -1060,8 +1058,7 @@
1060
1058
  "member": "DBPrivilege",
1061
1059
  "name": "DBPrivileges",
1062
1060
  "required": false,
1063
- "type": "list",
1064
- "value_allowed_null": false
1061
+ "type": "list"
1065
1062
  },
1066
1063
  {
1067
1064
  "disabled": false,
@@ -1070,18 +1067,16 @@
1070
1067
  "member": "string",
1071
1068
  "name": "Remark",
1072
1069
  "required": false,
1073
- "type": "string",
1074
- "value_allowed_null": false
1070
+ "type": "string"
1075
1071
  },
1076
1072
  {
1077
1073
  "disabled": false,
1078
- "document": "是否为管理员账户,当值为true 等价于基础版AccountType=L0,高可用AccountType=L1,当值为false,等价于AccountType=L3",
1074
+ "document": "是否为管理员账户,当值为true 等价于单节点AccountType=L0,双节点AccountType=L1,当值为false,等价于AccountType=L3",
1079
1075
  "example": "false",
1080
1076
  "member": "bool",
1081
1077
  "name": "IsAdmin",
1082
1078
  "required": false,
1083
- "type": "bool",
1084
- "value_allowed_null": false
1079
+ "type": "bool"
1085
1080
  },
1086
1081
  {
1087
1082
  "disabled": false,
@@ -1090,8 +1085,7 @@
1090
1085
  "member": "string",
1091
1086
  "name": "Authentication",
1092
1087
  "required": false,
1093
- "type": "string",
1094
- "value_allowed_null": false
1088
+ "type": "string"
1095
1089
  },
1096
1090
  {
1097
1091
  "disabled": false,
@@ -1100,14 +1094,22 @@
1100
1094
  "member": "string",
1101
1095
  "name": "AccountType",
1102
1096
  "required": false,
1103
- "type": "string",
1104
- "value_allowed_null": false
1097
+ "type": "string"
1098
+ },
1099
+ {
1100
+ "disabled": false,
1101
+ "document": "是否开启CAM验证",
1102
+ "example": "false",
1103
+ "member": "bool",
1104
+ "name": "IsCam",
1105
+ "required": false,
1106
+ "type": "bool"
1105
1107
  }
1106
1108
  ],
1107
1109
  "usage": "in"
1108
1110
  },
1109
1111
  "AccountDetail": {
1110
- "document": "账户信息详情",
1112
+ "document": "账号信息详情",
1111
1113
  "members": [
1112
1114
  {
1113
1115
  "disabled": false,
@@ -1115,7 +1117,7 @@
1115
1117
  "example": "ac1",
1116
1118
  "member": "string",
1117
1119
  "name": "Name",
1118
- "required": true,
1120
+ "output_required": true,
1119
1121
  "type": "string",
1120
1122
  "value_allowed_null": false
1121
1123
  },
@@ -1125,7 +1127,7 @@
1125
1127
  "example": "无",
1126
1128
  "member": "string",
1127
1129
  "name": "Remark",
1128
- "required": true,
1130
+ "output_required": true,
1129
1131
  "type": "string",
1130
1132
  "value_allowed_null": false
1131
1133
  },
@@ -1135,7 +1137,7 @@
1135
1137
  "example": "2020-04-09 00:00:00",
1136
1138
  "member": "datetime",
1137
1139
  "name": "CreateTime",
1138
- "required": true,
1140
+ "output_required": true,
1139
1141
  "type": "string",
1140
1142
  "value_allowed_null": false
1141
1143
  },
@@ -1145,7 +1147,7 @@
1145
1147
  "example": "2",
1146
1148
  "member": "int64",
1147
1149
  "name": "Status",
1148
- "required": true,
1150
+ "output_required": true,
1149
1151
  "type": "int",
1150
1152
  "value_allowed_null": false
1151
1153
  },
@@ -1155,7 +1157,7 @@
1155
1157
  "example": "2020-04-09 00:00:00",
1156
1158
  "member": "datetime",
1157
1159
  "name": "UpdateTime",
1158
- "required": true,
1160
+ "output_required": true,
1159
1161
  "type": "string",
1160
1162
  "value_allowed_null": false
1161
1163
  },
@@ -1165,7 +1167,7 @@
1165
1167
  "example": "2020-04-09 00:00:00",
1166
1168
  "member": "datetime",
1167
1169
  "name": "PassTime",
1168
- "required": true,
1170
+ "output_required": true,
1169
1171
  "type": "string",
1170
1172
  "value_allowed_null": false
1171
1173
  },
@@ -1175,7 +1177,7 @@
1175
1177
  "example": "enable",
1176
1178
  "member": "string",
1177
1179
  "name": "InternalStatus",
1178
- "required": true,
1180
+ "output_required": true,
1179
1181
  "type": "string",
1180
1182
  "value_allowed_null": false
1181
1183
  },
@@ -1185,7 +1187,7 @@
1185
1187
  "example": "无",
1186
1188
  "member": "DBPrivilege",
1187
1189
  "name": "Dbs",
1188
- "required": true,
1190
+ "output_required": true,
1189
1191
  "type": "list",
1190
1192
  "value_allowed_null": false
1191
1193
  },
@@ -1195,7 +1197,17 @@
1195
1197
  "example": "false",
1196
1198
  "member": "bool",
1197
1199
  "name": "IsAdmin",
1198
- "required": true,
1200
+ "output_required": true,
1201
+ "type": "bool",
1202
+ "value_allowed_null": false
1203
+ },
1204
+ {
1205
+ "disabled": false,
1206
+ "document": "是否为cam托管账户",
1207
+ "example": "false",
1208
+ "member": "bool",
1209
+ "name": "IsCam",
1210
+ "output_required": false,
1199
1211
  "type": "bool",
1200
1212
  "value_allowed_null": false
1201
1213
  },
@@ -1205,7 +1217,7 @@
1205
1217
  "example": "win",
1206
1218
  "member": "string",
1207
1219
  "name": "Authentication",
1208
- "required": true,
1220
+ "output_required": true,
1209
1221
  "type": "string",
1210
1222
  "value_allowed_null": false
1211
1223
  },
@@ -1215,7 +1227,7 @@
1215
1227
  "example": "172_8_9_12",
1216
1228
  "member": "string",
1217
1229
  "name": "Host",
1218
- "required": true,
1230
+ "output_required": true,
1219
1231
  "type": "string",
1220
1232
  "value_allowed_null": false
1221
1233
  },
@@ -1225,7 +1237,7 @@
1225
1237
  "example": "L0",
1226
1238
  "member": "string",
1227
1239
  "name": "AccountType",
1228
- "required": true,
1240
+ "output_required": true,
1229
1241
  "type": "string",
1230
1242
  "value_allowed_null": false
1231
1243
  }
@@ -8783,7 +8783,7 @@
8783
8783
  "example": "无",
8784
8784
  "member": "string",
8785
8785
  "name": "JobId",
8786
- "required": true,
8786
+ "output_required": true,
8787
8787
  "type": "string",
8788
8788
  "value_allowed_null": false
8789
8789
  },
@@ -12078,7 +12078,7 @@
12078
12078
  "example": "无",
12079
12079
  "member": "ABTestConfig",
12080
12080
  "name": "Config",
12081
- "required": true,
12081
+ "output_required": true,
12082
12082
  "type": "list",
12083
12083
  "value_allowed_null": false
12084
12084
  },
@@ -25668,6 +25668,7 @@
25668
25668
  "example": "无",
25669
25669
  "member": "SecLogJoinInfo",
25670
25670
  "name": "List",
25671
+ "output_required": true,
25671
25672
  "type": "list",
25672
25673
  "value_allowed_null": false
25673
25674
  },
@@ -1958,7 +1958,7 @@
1958
1958
  {
1959
1959
  "document": "查询安全日志接入列表",
1960
1960
  "input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSecLogJoinTypeList\n<公共请求参数>\n\n{}",
1961
- "output": "{\n \"Response\": {\n \"List\": [\n {\n \"LogType\": \"container_bash\",\n \"Count\": 10,\n \"IsJoined\": true\n }\n ],\n \"RequestId\": \"29b37d86-f63d-43d1-b21a-640e82965198\"\n }\n}",
1961
+ "output": "{\n \"Response\": {\n \"List\": [\n {\n \"Count\": 1,\n \"SuperNodeCount\": 1,\n \"IsJoined\": true,\n \"LogType\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
1962
1962
  "title": "查询安全日志接入列表"
1963
1963
  }
1964
1964
  ],
@@ -12432,7 +12432,7 @@
12432
12432
  "members": [
12433
12433
  {
12434
12434
  "disabled": false,
12435
- "document": "源站类型,取值有:\n<li>IP_DOMAIN:IPV4、IPV6 或域名类型源站;</li>\n<li>COS:腾讯云 COS 对象存储源站;</li>\n<li>AWS_S3:AWS S3 对象存储源站;</li>\n<li>ORIGIN_GROUP:源站组类型源站;</li>\n<li>VODEO:云点播-混合云版;</li>\n<li>SPACE:源站卸载,当前仅白名单开放;</li>\n<li>LB:负载均衡,当前仅白名单开放。</li>",
12435
+ "document": "源站类型,取值有:\n<li>IP_DOMAIN:IPV4、IPV6 或域名类型源站;</li>\n<li>COS:腾讯云 COS 对象存储源站;</li>\n<li>AWS_S3:AWS S3 对象存储源站;</li>\n<li>ORIGIN_GROUP:源站组类型源站;</li>\n<li>VODEO:云点播-混合云版;</li>\n<li>VOD:云点播;</li>\n<li>SPACE:源站卸载,当前仅白名单开放;</li>\n<li>LB:负载均衡,当前仅白名单开放。</li>",
12436
12436
  "example": "ip_domain",
12437
12437
  "member": "string",
12438
12438
  "name": "OriginType",
@@ -12442,7 +12442,7 @@
12442
12442
  },
12443
12443
  {
12444
12444
  "disabled": false,
12445
- "document": "源站地址,根据 OriginType 的取值分为以下情况:\n<li>当 OriginType = IP_DOMAIN 时,该参数为 IPv4、IPv6 地址或域名;</li>\n<li>当 OriginType = COS 时,该参数为 COS 桶的访问域名;</li>\n<li>当 OriginType = AWS_S3,该参数为 S3 桶的访问域名;</li>\n<li>当 OriginType = ORIGIN_GROUP 时,该参数为源站组 ID;</li>\n<li>当 OriginType = VODEO 时,如果 VodeoDistributionRange = ALL,则该参数为 \"all-buckets-in-vodeo-application\";如果 VodeoDistributionRange = Bucket,则该参数为对应存储桶域名。</li>",
12445
+ "document": "源站地址,根据 OriginType 的取值分为以下情况:\n<li>当 OriginType = IP_DOMAIN 时,该参数为 IPv4、IPv6 地址或域名;</li>\n<li>当 OriginType = COS 时,该参数为 COS 桶的访问域名;</li>\n<li>当 OriginType = AWS_S3,该参数为 S3 桶的访问域名;</li>\n<li>当 OriginType = ORIGIN_GROUP 时,该参数为源站组 ID;</li>\n<li>当 OriginType = VOD 时,该参数请填写云点播应用 ID ;</li>\n<li>当 OriginType = VODEO 时,如果 VodeoDistributionRange = ALL,则该参数为 \"all-buckets-in-vodeo-application\";如果 VodeoDistributionRange = Bucket,则该参数为对应存储桶域名。</li>",
12446
12446
  "example": "qq.com",
12447
12447
  "member": "string",
12448
12448
  "name": "Origin",
@@ -12660,7 +12660,7 @@
12660
12660
  "members": [
12661
12661
  {
12662
12662
  "disabled": false,
12663
- "document": "源站类型,取值有:\n<li>IP_DOMAIN:IPV4、IPV6 或域名类型源站;</li>\n<li>COS:腾讯云 COS 对象存储源站;</li>\n<li>AWS_S3:AWS S3 对象存储源站;</li>\n<li>ORIGIN_GROUP:源站组类型源站;</li>\n <li>VODEO:云点播-混合云版;</li>\n<li>SPACE:源站卸载,当前仅白名单开放;</li>\n<li>LB:负载均衡,当前仅白名单开放。</li>",
12663
+ "document": "源站类型,取值有:\n<li>IP_DOMAIN:IPV4、IPV6 或域名类型源站;</li>\n<li>COS:腾讯云 COS 对象存储源站;</li>\n<li>AWS_S3:AWS S3 对象存储源站;</li>\n<li>ORIGIN_GROUP:源站组类型源站;</li>\n <li>VOD:云点播;</li>\n<li>SPACE:源站卸载,当前仅白名单开放;</li>\n<li>LB:负载均衡,当前仅白名单开放。</li>",
12664
12664
  "example": "ip_domain",
12665
12665
  "member": "string",
12666
12666
  "name": "OriginType",
@@ -12669,7 +12669,7 @@
12669
12669
  },
12670
12670
  {
12671
12671
  "disabled": false,
12672
- "document": "源站地址,根据 OriginType 的取值分为以下情况:\n<li>当 OriginType = IP_DOMAIN 时,该参数请填写 IPv4、IPv6 地址或域名;</li>\n<li>当 OriginType = COS 时,该参数请填写 COS 桶的访问域名;</li>\n<li>当 OriginType = AWS_S3,该参数请填写 S3 桶的访问域名;</li>\n<li>当 OriginType = ORIGIN_GROUP 时,该参数请填写源站组 ID;</li>\n<li>当 OriginType = VODEO 时,如果 VodeoDistributionRange = ALL,则该参数填写 \"all-buckets-in-vodeo-application\";如果 VodeoDistributionRange = Bucket,则该参数请填写对应存储桶域名;</li>\n<li>当 OriginType = LB 时,该参数请填写负载均衡实例 ID,该功能当前仅白名单开放;</li>\n<li>当 OriginType = SPACE 时,该参数请填写源站卸载空间 ID,该功能当前仅白名单开放。</li>",
12672
+ "document": "源站地址,根据 OriginType 的取值分为以下情况:\n<li>当 OriginType = IP_DOMAIN 时,该参数请填写 IPv4、IPv6 地址或域名;</li>\n<li>当 OriginType = COS 时,该参数请填写 COS 桶的访问域名;</li>\n<li>当 OriginType = AWS_S3,该参数请填写 S3 桶的访问域名;</li>\n<li>当 OriginType = ORIGIN_GROUP 时,该参数请填写源站组 ID;</li>\n<li>当 OriginType = VOD 时,该参数请填写云点播应用 ID ;</li>\n<li>当 OriginType = LB 时,该参数请填写负载均衡实例 ID,该功能当前仅白名单开放;</li>\n<li>当 OriginType = SPACE 时,该参数请填写源站卸载空间 ID,该功能当前仅白名单开放。</li>",
12673
12673
  "example": "qq.com",
12674
12674
  "member": "string",
12675
12675
  "name": "Origin",
@@ -12714,7 +12714,7 @@
12714
12714
  },
12715
12715
  {
12716
12716
  "disabled": false,
12717
- "document": "VODEO 分发范围,该参数当 OriginType = VODEO 时必填。取值有: \n<li>All:当前应用下所有存储桶;</li> \n<li>Bucket:指定的某一个存储桶。</li>\t",
12717
+ "document": "VODEO 分发范围,该参数当 OriginType = VODEO 时必填。取值有: \n<li>All:当前应用下所有存储桶;</li> \n<li>Bucket:指定的某一个存储桶。</li>",
12718
12718
  "example": "无",
12719
12719
  "member": "string",
12720
12720
  "name": "VodeoDistributionRange",
@@ -3342,6 +3342,16 @@
3342
3342
  "type": "object",
3343
3343
  "value_allowed_null": true
3344
3344
  },
3345
+ {
3346
+ "disabled": false,
3347
+ "document": "基于新网关的服务调用信息\n注意:此字段可能返回 null,表示取不到有效值。",
3348
+ "example": "无",
3349
+ "member": "ServiceCallInfoV2",
3350
+ "name": "ServiceCallInfoV2",
3351
+ "output_required": false,
3352
+ "type": "object",
3353
+ "value_allowed_null": true
3354
+ },
3345
3355
  {
3346
3356
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
3347
3357
  "member": "string",
@@ -4897,6 +4907,17 @@
4897
4907
  "type": "list",
4898
4908
  "value_allowed_null": true
4899
4909
  },
4910
+ {
4911
+ "disabled": false,
4912
+ "document": "默认内网调用信息\n注意:此字段可能返回 null,表示取不到有效值。",
4913
+ "example": "无",
4914
+ "member": "DefaultInnerCallInfo",
4915
+ "name": "DefaultInnerCallInfos",
4916
+ "output_required": false,
4917
+ "required": false,
4918
+ "type": "list",
4919
+ "value_allowed_null": true
4920
+ },
4900
4921
  {
4901
4922
  "disabled": false,
4902
4923
  "document": "私有连接信息\n注意:此字段可能返回 null,表示取不到有效值。",
@@ -4910,10 +4931,10 @@
4910
4931
  },
4911
4932
  {
4912
4933
  "disabled": false,
4913
- "document": "默认内网调用信息\n注意:此字段可能返回 null,表示取不到有效值。",
4934
+ "document": "基于新网关的私有连接信息\n注意:此字段可能返回 null,表示取不到有效值。",
4914
4935
  "example": "无",
4915
- "member": "DefaultInnerCallInfo",
4916
- "name": "DefaultInnerCallInfos",
4936
+ "member": "PrivateLinkInfo",
4937
+ "name": "PrivateLinkInfosV2",
4917
4938
  "output_required": false,
4918
4939
  "required": false,
4919
4940
  "type": "list",
@@ -7963,6 +7984,52 @@
7963
7984
  ],
7964
7985
  "usage": "out"
7965
7986
  },
7987
+ "ServiceCallInfoV2": {
7988
+ "document": "V2版本的服务调用信息",
7989
+ "members": [
7990
+ {
7991
+ "disabled": false,
7992
+ "document": "服务组id\n注意:此字段可能返回 null,表示取不到有效值。",
7993
+ "example": "ms-ttt",
7994
+ "member": "string",
7995
+ "name": "ServiceGroupId",
7996
+ "output_required": true,
7997
+ "type": "string",
7998
+ "value_allowed_null": true
7999
+ },
8000
+ {
8001
+ "disabled": false,
8002
+ "document": "服务的公网调用地址\n注意:此字段可能返回 null,表示取不到有效值。",
8003
+ "example": "http://ms-ttt.tencentcs.com",
8004
+ "member": "string",
8005
+ "name": "InternetEndpoint",
8006
+ "output_required": true,
8007
+ "type": "string",
8008
+ "value_allowed_null": true
8009
+ },
8010
+ {
8011
+ "disabled": false,
8012
+ "document": "鉴权是否开启\n注意:此字段可能返回 null,表示取不到有效值。",
8013
+ "example": "false",
8014
+ "member": "bool",
8015
+ "name": "AuthorizationEnable",
8016
+ "output_required": true,
8017
+ "type": "bool",
8018
+ "value_allowed_null": true
8019
+ },
8020
+ {
8021
+ "disabled": false,
8022
+ "document": "鉴权token,仅当AuthorizationEnable为true时有效\n注意:此字段可能返回 null,表示取不到有效值。",
8023
+ "example": "ttt",
8024
+ "member": "string",
8025
+ "name": "AuthToken",
8026
+ "output_required": false,
8027
+ "type": "string",
8028
+ "value_allowed_null": true
8029
+ }
8030
+ ],
8031
+ "usage": "out"
8032
+ },
7966
8033
  "ServiceEIP": {
7967
8034
  "document": "服务共享弹性网卡设置",
7968
8035
  "members": [
@@ -172,7 +172,7 @@
172
172
  {
173
173
  "document": "查询某个服务",
174
174
  "input": "POST / HTTP/1.1\nHost: tione.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeModelServiceCallInfo\n<公共请求参数>\n\n{\n \"ServiceGroupId\": \"ms-p8w5zvh7\"\n}",
175
- "output": "{\n \"Response\": {\n \"ServiceCallInfo\": {\n \"ServiceGroupId\": \"ms-ndxkhtb2\",\n \"InnerHttpAddr\": \"http://service-5a4oixv0-1256580188-in.gz.tencentapigw.com:8011/tione\",\n \"InnerHttpsAddr\": \"https://service-5a4oixv0-1256580188-in.gz.tencentapigw.com:9011/tione\",\n \"OuterHttpAddr\": \"http://service-5a4oixv0-1256580188.gz.tencentapigw.com:80/tione\",\n \"OuterHttpsAddr\": \"https://service-5a4oixv0-1256580188.gz.tencentapigw.com:443/tione\",\n \"AppKey\": \"APID23ycs7qbGGbTf27PG18oOVK1Q449UORNA1g5\",\n \"AppSecret\": \"bD2krm7a7ujt6779kLKV1g0x4n2z861IcguAMm6v\",\n \"AuthorizationEnable\": true\n },\n \"InferGatewayCallInfo\": null,\n \"DefaultNginxGatewayCallInfo\": null,\n \"TJCallInfo\": null,\n \"IntranetCallInfo\": {\n \"IngressPrivateLinkInfo\": null,\n \"ServiceEIPInfo\": []\n },\n \"RequestId\": \"0e26af99-dc12-4866-b6cf-1896a10c2910\"\n }\n}",
175
+ "output": "{\n \"Response\": {\n \"ServiceCallInfo\": {\n \"ServiceGroupId\": \"ms-ndxkhtb2\",\n \"InnerHttpAddr\": \"http://service-5a4oixv0-1256580188-in.gz.tencentapigw.com:8011/tione\",\n \"InnerHttpsAddr\": \"https://service-5a4oixv0-1256580188-in.gz.tencentapigw.com:9011/tione\",\n \"OuterHttpAddr\": \"http://service-5a4oixv0-1256580188.gz.tencentapigw.com:80/tione\",\n \"OuterHttpsAddr\": \"https://service-5a4oixv0-1256580188.gz.tencentapigw.com:443/tione\",\n \"AppKey\": \"APID23ycs7qbGGbTf27PG18oOVK1Q449UORNA1g5\",\n \"AppSecret\": \"bD2krm7a7ujt6779kLKV1g0x4n2z861IcguAMm6v\",\n \"AuthorizationEnable\": true\n },\n \"InferGatewayCallInfo\": null,\n \"DefaultNginxGatewayCallInfo\": null,\n \"TJCallInfo\": null,\n \"IntranetCallInfo\": {\n \"IngressPrivateLinkInfo\": null,\n \"ServiceEIPInfo\": [],\n \"DefaultInnerCallInfos\": [],\n \"PrivateLinkInfos\": [],\n \"PrivateLinkInfosV2\": []\n },\n \"ServiceCallInfoV2\": null,\n \"RequestId\": \"0e26af99-dc12-4866-b6cf-1896a10c2910\"\n }\n}",
176
176
  "title": "服务调用地址查询"
177
177
  }
178
178
  ],
@@ -537,6 +537,58 @@ def doDescribeCodesByPack(args, parsed_globals):
537
537
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
538
538
 
539
539
 
540
+ def doCreateChainBatch(args, parsed_globals):
541
+ g_param = parse_global_arg(parsed_globals)
542
+
543
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
544
+ cred = credential.CVMRoleCredential()
545
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
546
+ cred = credential.STSAssumeRoleCredential(
547
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
548
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
549
+ )
550
+ 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):
551
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
552
+ else:
553
+ cred = credential.Credential(
554
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
555
+ )
556
+ http_profile = HttpProfile(
557
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
558
+ reqMethod="POST",
559
+ endpoint=g_param[OptionsDefine.Endpoint],
560
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
561
+ )
562
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
563
+ if g_param[OptionsDefine.Language]:
564
+ profile.language = g_param[OptionsDefine.Language]
565
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
566
+ client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
567
+ client._sdkVersion += ("_CLI_" + __version__)
568
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
569
+ model = models.CreateChainBatchRequest()
570
+ model.from_json_string(json.dumps(args))
571
+ start_time = time.time()
572
+ while True:
573
+ rsp = client.CreateChainBatch(model)
574
+ result = rsp.to_json_string()
575
+ try:
576
+ json_obj = json.loads(result)
577
+ except TypeError as e:
578
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
579
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
580
+ break
581
+ cur_time = time.time()
582
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
583
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
584
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
585
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
586
+ else:
587
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
588
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
589
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
590
+
591
+
540
592
  def doDescribeMerchantById(args, parsed_globals):
541
593
  g_param = parse_global_arg(parsed_globals)
542
594
 
@@ -2794,6 +2846,7 @@ ACTION_MAP = {
2794
2846
  "ModifyTraceDataRanks": doModifyTraceDataRanks,
2795
2847
  "DescribePlanQRCodes": doDescribePlanQRCodes,
2796
2848
  "DescribeCodesByPack": doDescribeCodesByPack,
2849
+ "CreateChainBatch": doCreateChainBatch,
2797
2850
  "DescribeMerchantById": doDescribeMerchantById,
2798
2851
  "CreateProduct": doCreateProduct,
2799
2852
  "DescribeProducts": doDescribeProducts,
@@ -7,6 +7,13 @@
7
7
  "output": "AuthorizedTransferResponse",
8
8
  "status": "online"
9
9
  },
10
+ "CreateChainBatch": {
11
+ "document": "批量上链接口",
12
+ "input": "CreateChainBatchRequest",
13
+ "name": "通用批量上链接口",
14
+ "output": "CreateChainBatchResponse",
15
+ "status": "online"
16
+ },
10
17
  "CreateCodeBatch": {
11
18
  "document": "新增批次",
12
19
  "input": "CreateCodeBatchRequest",
@@ -501,6 +508,34 @@
501
508
  ],
502
509
  "type": "object"
503
510
  },
511
+ "Chain": {
512
+ "document": "上链数据",
513
+ "members": [
514
+ {
515
+ "disabled": false,
516
+ "document": "码url\n注意:此字段可能返回 null,表示取不到有效值。",
517
+ "example": "无",
518
+ "member": "string",
519
+ "name": "Code",
520
+ "output_required": false,
521
+ "required": true,
522
+ "type": "string",
523
+ "value_allowed_null": true
524
+ },
525
+ {
526
+ "disabled": false,
527
+ "document": "上链数据\n注意:此字段可能返回 null,表示取不到有效值。",
528
+ "example": "无",
529
+ "member": "ChainValue",
530
+ "name": "Data",
531
+ "output_required": false,
532
+ "required": true,
533
+ "type": "list",
534
+ "value_allowed_null": true
535
+ }
536
+ ],
537
+ "usage": "both"
538
+ },
504
539
  "ChainData": {
505
540
  "document": "上链数据",
506
541
  "members": [
@@ -537,6 +572,45 @@
537
572
  ],
538
573
  "usage": "both"
539
574
  },
575
+ "ChainValue": {
576
+ "document": "上链数据 key-value",
577
+ "members": [
578
+ {
579
+ "disabled": false,
580
+ "document": "标题名字\n注意:此字段可能返回 null,表示取不到有效值。",
581
+ "example": "图片",
582
+ "member": "string",
583
+ "name": "Label",
584
+ "output_required": false,
585
+ "required": true,
586
+ "type": "string",
587
+ "value_allowed_null": true
588
+ },
589
+ {
590
+ "disabled": false,
591
+ "document": "类型,文字:\"text\",图片:\"image\"\n注意:此字段可能返回 null,表示取不到有效值。",
592
+ "example": "image",
593
+ "member": "string",
594
+ "name": "Type",
595
+ "output_required": false,
596
+ "required": true,
597
+ "type": "string",
598
+ "value_allowed_null": true
599
+ },
600
+ {
601
+ "disabled": false,
602
+ "document": "值,文字类型:\"abc\",图片类型:\"\"/images/img.png\"\n注意:此字段可能返回 null,表示取不到有效值。",
603
+ "example": "/images/img.png",
604
+ "member": "string",
605
+ "name": "Value",
606
+ "output_required": false,
607
+ "required": true,
608
+ "type": "string",
609
+ "value_allowed_null": true
610
+ }
611
+ ],
612
+ "usage": "both"
613
+ },
540
614
  "CodeBatch": {
541
615
  "document": "批次",
542
616
  "members": [
@@ -1162,6 +1236,42 @@
1162
1236
  ],
1163
1237
  "usage": "out"
1164
1238
  },
1239
+ "CreateChainBatchRequest": {
1240
+ "document": "CreateChainBatch请求参数结构体",
1241
+ "members": [
1242
+ {
1243
+ "disabled": false,
1244
+ "document": "企业ID",
1245
+ "example": "1000",
1246
+ "member": "uint64",
1247
+ "name": "CorpId",
1248
+ "required": true,
1249
+ "type": "int"
1250
+ },
1251
+ {
1252
+ "disabled": false,
1253
+ "document": "溯源ID",
1254
+ "example": "[]",
1255
+ "member": "Chain",
1256
+ "name": "ChainList",
1257
+ "required": true,
1258
+ "type": "list"
1259
+ }
1260
+ ],
1261
+ "type": "object"
1262
+ },
1263
+ "CreateChainBatchResponse": {
1264
+ "document": "CreateChainBatch返回参数结构体",
1265
+ "members": [
1266
+ {
1267
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
1268
+ "member": "string",
1269
+ "name": "RequestId",
1270
+ "type": "string"
1271
+ }
1272
+ ],
1273
+ "type": "object"
1274
+ },
1165
1275
  "CreateCodeBatchRequest": {
1166
1276
  "document": "CreateCodeBatch请求参数结构体",
1167
1277
  "members": [
@@ -8,6 +8,14 @@
8
8
  "title": "接收客户侧的用户已授权的号码"
9
9
  }
10
10
  ],
11
+ "CreateChainBatch": [
12
+ {
13
+ "document": "",
14
+ "input": "POST / HTTP/1.1\nHost: trp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateChainBatch\n<公共请求参数>\n\n{\n \"CorpId\": 1,\n \"ChainList\": [\n {\n \"Code\": \"abc\",\n \"Data\": [\n {\n \"Label\": \"abc\",\n \"Type\": \"abc\",\n \"Value\": \"abc\"\n }\n ]\n }\n ]\n}",
15
+ "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
16
+ "title": "批量上链接口"
17
+ }
18
+ ],
11
19
  "CreateCodeBatch": [
12
20
  {
13
21
  "document": "新增批次",