tccli 3.0.1296.1__py2.py3-none-any.whl → 3.0.1297.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 (34) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/antiddos/v20200309/api.json +2 -2
  3. tccli/services/batch/v20170312/api.json +9 -8
  4. tccli/services/ccc/ccc_client.py +230 -18
  5. tccli/services/ccc/v20200210/api.json +363 -0
  6. tccli/services/ccc/v20200210/examples.json +32 -0
  7. tccli/services/cme/v20191029/examples.json +2 -2
  8. tccli/services/cynosdb/v20190107/api.json +97 -77
  9. tccli/services/dnspod/v20210323/api.json +105 -88
  10. tccli/services/dnspod/v20210323/examples.json +1 -1
  11. tccli/services/dts/v20211206/api.json +2 -2
  12. tccli/services/gs/gs_client.py +53 -0
  13. tccli/services/gs/v20191118/api.json +44 -0
  14. tccli/services/gs/v20191118/examples.json +8 -0
  15. tccli/services/iotcloud/v20210408/api.json +11 -15
  16. tccli/services/iss/iss_client.py +411 -305
  17. tccli/services/iss/v20230517/api.json +236 -0
  18. tccli/services/iss/v20230517/examples.json +16 -0
  19. tccli/services/lighthouse/v20200324/api.json +3 -3
  20. tccli/services/lke/v20231130/api.json +34 -1
  21. tccli/services/rce/v20201103/api.json +0 -9
  22. tccli/services/rce/v20201103/examples.json +1 -1
  23. tccli/services/tdmq/v20200217/api.json +6 -6
  24. tccli/services/tione/tione_client.py +220 -8
  25. tccli/services/tione/v20211111/api.json +359 -0
  26. tccli/services/tione/v20211111/examples.json +32 -0
  27. tccli/services/trtc/v20190722/api.json +10 -1
  28. tccli/services/vod/v20180717/api.json +4 -4
  29. tccli/services/vod/v20180717/examples.json +4 -4
  30. {tccli-3.0.1296.1.dist-info → tccli-3.0.1297.1.dist-info}/METADATA +2 -2
  31. {tccli-3.0.1296.1.dist-info → tccli-3.0.1297.1.dist-info}/RECORD +34 -34
  32. {tccli-3.0.1296.1.dist-info → tccli-3.0.1297.1.dist-info}/WHEEL +0 -0
  33. {tccli-3.0.1296.1.dist-info → tccli-3.0.1297.1.dist-info}/entry_points.txt +0 -0
  34. {tccli-3.0.1296.1.dist-info → tccli-3.0.1297.1.dist-info}/license_files/LICENSE +0 -0
@@ -432,7 +432,7 @@
432
432
  {
433
433
  "document": " ",
434
434
  "input": "POST / HTTP/1.1\nHost: dnspod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRecordSnapshotRollbackResult\n<公共请求参数>\n\n{\n \"Domain\": \"domain.com\",\n \"JobId\": 1111\n}",
435
- "output": "{\n \"Response\": {\n \"RequestId\": \"c8a5c989-0d6d-4335-928c-266fe831adc8\",\n \"FailedRecordList\": [\n {\n \"RecordId\": \"0\",\n \"SubDomain\": \"no_line\",\n \"RecordType\": \"A\",\n \"RecordLine\": \"测试啊\",\n \"Value\": \"0.0.0.1\",\n \"TTL\": \"600\",\n \"MX\": null\n }\n ],\n \"JobId\": 1111,\n \"Status\": \"ok\",\n \"Domain\": \"domain.com\",\n \"Progress\": 100,\n \"LeftMinutes\": 0,\n \"Total\": 1,\n \"Failed\": 1,\n \"Success\": 0,\n \"CosUrl\": \"https://newdnspod-1252120672.cos.ap-shanghai.myqcloud.com/snapshot_rollback_91724229_xx.csv\"\n }\n}",
435
+ "output": "{\n \"Response\": {\n \"RequestId\": \"c8a5c989-0d6d-4335-928c-266fe831adc8\",\n \"FailedRecordList\": [\n {\n \"RecordId\": \"0\",\n \"SubDomain\": \"no_line\",\n \"RecordType\": \"A\",\n \"RecordLine\": \"测试啊\",\n \"Value\": \"0.0.0.1\",\n \"TTL\": \"600\",\n \"MX\": null,\n \"Weight\": \"20\",\n \"Reason\": \"记录重复\"\n }\n ],\n \"JobId\": 1111,\n \"Status\": \"ok\",\n \"Domain\": \"domain.com\",\n \"Progress\": 100,\n \"LeftMinutes\": 0,\n \"Total\": 1,\n \"Failed\": 1,\n \"Success\": 0,\n \"CosUrl\": \"https://newdnspod-1252120672.cos.ap-shanghai.myqcloud.com/snapshot_rollback_91724229_xx.csv\"\n }\n}",
436
436
  "title": "查询解析记录重新回滚的结果"
437
437
  }
438
438
  ],
@@ -10063,13 +10063,13 @@
10063
10063
  },
10064
10064
  {
10065
10065
  "disabled": false,
10066
- "document": "当前状态能进行的操作",
10066
+ "document": "当前状态能进行的操作\n注意:此字段可能返回 null,表示取不到有效值。",
10067
10067
  "example": "[\"pause\",\"stop\",\"limitRate\",\"view\",\"resize\",\"isolate\",\"postPay2prePay\",\"configureOptObj\"]",
10068
10068
  "member": "string",
10069
10069
  "name": "Actions",
10070
10070
  "output_required": true,
10071
10071
  "type": "list",
10072
- "value_allowed_null": false
10072
+ "value_allowed_null": true
10073
10073
  },
10074
10074
  {
10075
10075
  "disabled": false,
@@ -225,6 +225,58 @@ def doCreateAndroidInstanceSSH(args, parsed_globals):
225
225
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
226
 
227
227
 
228
+ def doCreateAndroidInstancesScreenshot(args, parsed_globals):
229
+ g_param = parse_global_arg(parsed_globals)
230
+
231
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
232
+ cred = credential.CVMRoleCredential()
233
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
234
+ cred = credential.STSAssumeRoleCredential(
235
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
236
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
237
+ )
238
+ 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):
239
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
240
+ else:
241
+ cred = credential.Credential(
242
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
243
+ )
244
+ http_profile = HttpProfile(
245
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
246
+ reqMethod="POST",
247
+ endpoint=g_param[OptionsDefine.Endpoint],
248
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
249
+ )
250
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
251
+ if g_param[OptionsDefine.Language]:
252
+ profile.language = g_param[OptionsDefine.Language]
253
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
254
+ client = mod.GsClient(cred, g_param[OptionsDefine.Region], profile)
255
+ client._sdkVersion += ("_CLI_" + __version__)
256
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
257
+ model = models.CreateAndroidInstancesScreenshotRequest()
258
+ model.from_json_string(json.dumps(args))
259
+ start_time = time.time()
260
+ while True:
261
+ rsp = client.CreateAndroidInstancesScreenshot(model)
262
+ result = rsp.to_json_string()
263
+ try:
264
+ json_obj = json.loads(result)
265
+ except TypeError as e:
266
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
267
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
268
+ break
269
+ cur_time = time.time()
270
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
271
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
272
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
273
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
274
+ else:
275
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
276
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
277
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
+
279
+
228
280
  def doUninstallAndroidInstancesApp(args, parsed_globals):
229
281
  g_param = parse_global_arg(parsed_globals)
230
282
 
@@ -2216,6 +2268,7 @@ ACTION_MAP = {
2216
2268
  "SyncExecuteCommandOnAndroidInstances": doSyncExecuteCommandOnAndroidInstances,
2217
2269
  "StartPublishStreamToCSS": doStartPublishStreamToCSS,
2218
2270
  "CreateAndroidInstanceSSH": doCreateAndroidInstanceSSH,
2271
+ "CreateAndroidInstancesScreenshot": doCreateAndroidInstancesScreenshot,
2219
2272
  "UninstallAndroidInstancesApp": doUninstallAndroidInstancesApp,
2220
2273
  "CreateAndroidInstanceImage": doCreateAndroidInstanceImage,
2221
2274
  "DescribeInstancesCount": doDescribeInstancesCount,
@@ -49,6 +49,13 @@
49
49
  "output": "CreateAndroidInstancesResponse",
50
50
  "status": "online"
51
51
  },
52
+ "CreateAndroidInstancesScreenshot": {
53
+ "document": "安卓实例截图",
54
+ "input": "CreateAndroidInstancesScreenshotRequest",
55
+ "name": "安卓实例截图",
56
+ "output": "CreateAndroidInstancesScreenshotResponse",
57
+ "status": "online"
58
+ },
52
59
  "CreateSession": {
53
60
  "document": "创建会话",
54
61
  "input": "CreateSessionRequest",
@@ -1182,6 +1189,43 @@
1182
1189
  ],
1183
1190
  "type": "object"
1184
1191
  },
1192
+ "CreateAndroidInstancesScreenshotRequest": {
1193
+ "document": "CreateAndroidInstancesScreenshot请求参数结构体",
1194
+ "members": [
1195
+ {
1196
+ "disabled": false,
1197
+ "document": "实例 ID 列表",
1198
+ "example": "[ \"cai-abcd1234\" ]",
1199
+ "member": "string",
1200
+ "name": "AndroidInstanceIds",
1201
+ "required": true,
1202
+ "type": "list"
1203
+ }
1204
+ ],
1205
+ "type": "object"
1206
+ },
1207
+ "CreateAndroidInstancesScreenshotResponse": {
1208
+ "document": "CreateAndroidInstancesScreenshot返回参数结构体",
1209
+ "members": [
1210
+ {
1211
+ "disabled": false,
1212
+ "document": "任务列表",
1213
+ "example": "无",
1214
+ "member": "AndroidInstanceTask",
1215
+ "name": "TaskSet",
1216
+ "output_required": true,
1217
+ "type": "list",
1218
+ "value_allowed_null": false
1219
+ },
1220
+ {
1221
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
1222
+ "member": "string",
1223
+ "name": "RequestId",
1224
+ "type": "string"
1225
+ }
1226
+ ],
1227
+ "type": "object"
1228
+ },
1185
1229
  "CreateSessionRequest": {
1186
1230
  "document": "CreateSession请求参数结构体",
1187
1231
  "members": [
@@ -56,6 +56,14 @@
56
56
  "title": "CreateAndroidInstances"
57
57
  }
58
58
  ],
59
+ "CreateAndroidInstancesScreenshot": [
60
+ {
61
+ "document": "安卓实例截图",
62
+ "input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateAndroidInstancesScreenshot\n<公共请求参数>\n\n{\n \"AndroidInstanceIds\": [\n \"cai-abcd1234\"\n ]\n}",
63
+ "output": "{\n \"Response\": {\n \"RequestId\": \"9d287fa8-d66f-4dd8-b3c6-5bca07f6a162\",\n \"TaskSet\": [\n {\n \"AndroidInstanceId\": \"cai-abcd1234\",\n \"TaskId\": \"78bb4db4-fd51-454d-9ddb-2047db5b3ef6\"\n }\n ]\n }\n}",
64
+ "title": "安卓实例截图"
65
+ }
66
+ ],
59
67
  "CreateSession": [
60
68
  {
61
69
  "document": "锁定实例后,创建会话,以连接实例",
@@ -4562,10 +4562,10 @@
4562
4562
  {
4563
4563
  "disabled": false,
4564
4564
  "document": "任务ID\n注意:此字段可能返回 null,表示取不到有效值。",
4565
- "example": "111",
4565
+ "example": "1134523",
4566
4566
  "member": "uint64",
4567
4567
  "name": "TaskId",
4568
- "required": true,
4568
+ "output_required": true,
4569
4569
  "type": "int",
4570
4570
  "value_allowed_null": true
4571
4571
  },
@@ -4575,7 +4575,7 @@
4575
4575
  "example": "1",
4576
4576
  "member": "int64",
4577
4577
  "name": "Status",
4578
- "required": true,
4578
+ "output_required": true,
4579
4579
  "type": "int",
4580
4580
  "value_allowed_null": true
4581
4581
  },
@@ -4585,7 +4585,7 @@
4585
4585
  "example": "2",
4586
4586
  "member": "int64",
4587
4587
  "name": "Type",
4588
- "required": true,
4588
+ "output_required": true,
4589
4589
  "type": "int",
4590
4590
  "value_allowed_null": true
4591
4591
  },
@@ -4595,7 +4595,7 @@
4595
4595
  "example": "1617801604",
4596
4596
  "member": "int64",
4597
4597
  "name": "CreateTime",
4598
- "required": true,
4598
+ "output_required": true,
4599
4599
  "type": "int",
4600
4600
  "value_allowed_null": true
4601
4601
  }
@@ -6348,28 +6348,25 @@
6348
6348
  "member": "string",
6349
6349
  "name": "Sql",
6350
6350
  "required": true,
6351
- "type": "string",
6352
- "value_allowed_null": false
6351
+ "type": "string"
6353
6352
  },
6354
6353
  {
6355
6354
  "disabled": false,
6356
6355
  "document": "行为的JSON字符串,大部分种类举例如下:\n[\n {\n \"republish\": {\n \"topic\": \"TEST/test\"\n }\n },\n {\n \"forward\": {\n \"api\": \"http://127.0.0.1:8080\",\n \"token\":\"xxx\"\n }\n },\n {\n \"ckafka\": {\n \"instance\": {\n \"id\": \"ckafka-test\",\n \"name\": \"\"\n },\n \"topic\": {\n \"id\": \"topic-test\",\n \"name\": \"test\"\n },\n \"region\": \"gz\"\n }\n },\n {\n \"cmqqueue\": {\n \"queuename\": \"queue-test-TEST\",\n \"region\": \"gz\"\n }\n },\n {\n \"mysql\": {\n \"instanceid\": \"cdb-test\",\n \"region\": \"gz\",\n \"username\": \"test\",\n \"userpwd\": \"*****\",\n \"dbname\": \"d_mqtt\",\n \"tablename\": \"t_test\",\n \"fieldpairs\": [\n {\n \"field\": \"test\",\n \"value\": \"test\"\n }\n ],\n \"devicetype\": \"CUSTOM\"\n }\n }\n]",
6357
- "example": "[]",
6356
+ "example": "{\"name\",}",
6358
6357
  "member": "string",
6359
6358
  "name": "Actions",
6360
6359
  "required": false,
6361
- "type": "string",
6362
- "value_allowed_null": false
6360
+ "type": "string"
6363
6361
  },
6364
6362
  {
6365
6363
  "disabled": false,
6366
6364
  "document": "规则描述",
6367
- "example": "test",
6365
+ "example": "description1",
6368
6366
  "member": "string",
6369
6367
  "name": "Description",
6370
6368
  "required": false,
6371
- "type": "string",
6372
- "value_allowed_null": false
6369
+ "type": "string"
6373
6370
  },
6374
6371
  {
6375
6372
  "disabled": false,
@@ -6378,8 +6375,7 @@
6378
6375
  "member": "bool",
6379
6376
  "name": "RuleDisabled",
6380
6377
  "required": false,
6381
- "type": "bool",
6382
- "value_allowed_null": false
6378
+ "type": "bool"
6383
6379
  }
6384
6380
  ],
6385
6381
  "usage": "in"