tccli 3.0.1103.1__py2.py3-none-any.whl → 3.0.1105.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 (93) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/aiart/v20221229/ImageToImage.md +1 -1
  3. tccli/examples/billing/v20180709/DescribeAllocationBillDetail.md +0 -4
  4. tccli/examples/csip/v20221121/DescribeDbAssets.md +7 -0
  5. tccli/examples/csip/v20221121/DescribeOrganizationUserInfo.md +12 -1
  6. tccli/examples/cwp/v20180228/DescribePublicProxyInstallCommand.md +4 -4
  7. tccli/examples/cynosdb/v20190107/CreateCLSDelivery.md +26 -0
  8. tccli/examples/cynosdb/v20190107/DeleteCLSDelivery.md +22 -0
  9. tccli/examples/cynosdb/v20190107/DescribeInstanceCLSLogDelivery.md +43 -0
  10. tccli/examples/cynosdb/v20190107/StartCLSDelivery.md +22 -0
  11. tccli/examples/cynosdb/v20190107/StopCLSDelivery.md +22 -0
  12. tccli/examples/dsgc/v20190723/DescribeDSPACOSDiscoveryTaskResult.md +21 -13
  13. tccli/examples/ess/v20201111/CreateUserVerifyUrl.md +29 -0
  14. tccli/examples/ess/v20201111/DescribeUserVerifyStatus.md +23 -0
  15. tccli/examples/hai/v20230812/DescribeInstances.md +3 -2
  16. tccli/examples/hunyuan/v20230901/QueryHunyuanImageJob.md +33 -0
  17. tccli/examples/hunyuan/v20230901/SubmitHunyuanImageJob.md +21 -0
  18. tccli/examples/live/v20180801/DescribeLivePadProcessorList.md +25 -0
  19. tccli/examples/live/v20180801/StopLivePadProcessor.md +23 -0
  20. tccli/examples/mrs/v20200910/DrugInstructionObject.md +98 -0
  21. tccli/examples/ssl/v20191205/DescribeDownloadCertificateUrl.md +23 -0
  22. tccli/examples/tke/v20220501/CreateNodePool.md +33 -0
  23. tccli/examples/tke/v20220501/DeleteNodePool.md +21 -0
  24. tccli/examples/tke/v20220501/DescribeNodePools.md +9 -3
  25. tccli/examples/tke/v20220501/ModifyNodePool.md +32 -0
  26. tccli/services/aiart/v20221229/api.json +3 -3
  27. tccli/services/aiart/v20221229/examples.json +1 -1
  28. tccli/services/antiddos/v20200309/api.json +2 -2
  29. tccli/services/apm/v20210622/api.json +1 -1
  30. tccli/services/asr/v20190614/api.json +5 -5
  31. tccli/services/batch/v20170312/api.json +1 -1
  32. tccli/services/billing/v20180709/api.json +2 -2
  33. tccli/services/billing/v20180709/examples.json +1 -1
  34. tccli/services/cdb/v20170320/api.json +17 -14
  35. tccli/services/clb/v20180317/api.json +10 -1
  36. tccli/services/cls/v20201016/api.json +1 -1
  37. tccli/services/csip/v20221121/api.json +80 -2
  38. tccli/services/csip/v20221121/examples.json +4 -4
  39. tccli/services/cvm/v20170312/api.json +1 -1
  40. tccli/services/cwp/v20180228/api.json +17 -5
  41. tccli/services/cwp/v20180228/examples.json +2 -2
  42. tccli/services/cynosdb/cynosdb_client.py +269 -4
  43. tccli/services/cynosdb/v20190107/api.json +432 -0
  44. tccli/services/cynosdb/v20190107/examples.json +40 -0
  45. tccli/services/dsgc/v20190723/api.json +348 -333
  46. tccli/services/dsgc/v20190723/examples.json +2 -2
  47. tccli/services/dts/v20211206/api.json +1 -1
  48. tccli/services/emr/v20190103/api.json +30 -0
  49. tccli/services/es/v20180416/api.json +10 -0
  50. tccli/services/ess/ess_client.py +110 -4
  51. tccli/services/ess/v20201111/api.json +185 -5
  52. tccli/services/ess/v20201111/examples.json +16 -0
  53. tccli/services/essbasic/v20210526/api.json +5 -5
  54. tccli/services/faceid/v20180301/api.json +2 -2
  55. tccli/services/hai/v20230812/api.json +2 -2
  56. tccli/services/hai/v20230812/examples.json +1 -1
  57. tccli/services/hunyuan/hunyuan_client.py +110 -4
  58. tccli/services/hunyuan/v20230901/api.json +188 -4
  59. tccli/services/hunyuan/v20230901/examples.json +16 -0
  60. tccli/services/iotexplorer/v20190423/api.json +1 -1
  61. tccli/services/iotvideo/v20211125/api.json +1 -1
  62. tccli/services/lighthouse/v20200324/api.json +15 -5
  63. tccli/services/live/live_client.py +114 -8
  64. tccli/services/live/v20180801/api.json +124 -0
  65. tccli/services/live/v20180801/examples.json +16 -0
  66. tccli/services/lke/v20231130/api.json +108 -2
  67. tccli/services/mrs/v20200910/api.json +1 -1
  68. tccli/services/mrs/v20200910/examples.json +1 -1
  69. tccli/services/ocr/v20181119/api.json +80 -22
  70. tccli/services/ocr/v20181119/examples.json +1 -1
  71. tccli/services/ssl/ssl_client.py +57 -4
  72. tccli/services/ssl/v20191205/api.json +63 -0
  73. tccli/services/ssl/v20191205/examples.json +8 -0
  74. tccli/services/ssm/v20190923/api.json +1 -1
  75. tccli/services/tbaas/v20180416/api.json +24 -24
  76. tccli/services/tdmq/v20200217/api.json +10 -10
  77. tccli/services/teo/v20220901/api.json +34 -0
  78. tccli/services/tione/tione_client.py +0 -53
  79. tccli/services/tione/v20191022/api.json +0 -52
  80. tccli/services/tione/v20191022/examples.json +0 -8
  81. tccli/services/tione/v20211111/api.json +28 -0
  82. tccli/services/tke/tke_client.py +171 -12
  83. tccli/services/tke/v20220501/api.json +1403 -86
  84. tccli/services/tke/v20220501/examples.json +25 -1
  85. tccli/services/tmt/v20180321/api.json +8 -8
  86. tccli/services/trtc/v20190722/api.json +14 -8
  87. tccli/services/tse/v20201207/api.json +37 -7
  88. tccli/services/vpc/v20170312/api.json +1 -0
  89. {tccli-3.0.1103.1.dist-info → tccli-3.0.1105.1.dist-info}/METADATA +2 -2
  90. {tccli-3.0.1103.1.dist-info → tccli-3.0.1105.1.dist-info}/RECORD +93 -78
  91. {tccli-3.0.1103.1.dist-info → tccli-3.0.1105.1.dist-info}/WHEEL +0 -0
  92. {tccli-3.0.1103.1.dist-info → tccli-3.0.1105.1.dist-info}/entry_points.txt +0 -0
  93. {tccli-3.0.1103.1.dist-info → tccli-3.0.1105.1.dist-info}/license_files/LICENSE +0 -0
@@ -329,7 +329,7 @@ def doDeleteManager(args, parsed_globals):
329
329
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
330
330
 
331
331
 
332
- def doUploadConfirmLetter(args, parsed_globals):
332
+ def doDescribeDownloadCertificateUrl(args, parsed_globals):
333
333
  g_param = parse_global_arg(parsed_globals)
334
334
 
335
335
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -358,11 +358,11 @@ def doUploadConfirmLetter(args, parsed_globals):
358
358
  client = mod.SslClient(cred, g_param[OptionsDefine.Region], profile)
359
359
  client._sdkVersion += ("_CLI_" + __version__)
360
360
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
361
- model = models.UploadConfirmLetterRequest()
361
+ model = models.DescribeDownloadCertificateUrlRequest()
362
362
  model.from_json_string(json.dumps(args))
363
363
  start_time = time.time()
364
364
  while True:
365
- rsp = client.UploadConfirmLetter(model)
365
+ rsp = client.DescribeDownloadCertificateUrl(model)
366
366
  result = rsp.to_json_string()
367
367
  try:
368
368
  json_obj = json.loads(result)
@@ -2253,6 +2253,58 @@ def doCreateCertificate(args, parsed_globals):
2253
2253
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2254
2254
 
2255
2255
 
2256
+ def doUploadConfirmLetter(args, parsed_globals):
2257
+ g_param = parse_global_arg(parsed_globals)
2258
+
2259
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2260
+ cred = credential.CVMRoleCredential()
2261
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2262
+ cred = credential.STSAssumeRoleCredential(
2263
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2264
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2265
+ )
2266
+ 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):
2267
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2268
+ else:
2269
+ cred = credential.Credential(
2270
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2271
+ )
2272
+ http_profile = HttpProfile(
2273
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2274
+ reqMethod="POST",
2275
+ endpoint=g_param[OptionsDefine.Endpoint],
2276
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2277
+ )
2278
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2279
+ if g_param[OptionsDefine.Language]:
2280
+ profile.language = g_param[OptionsDefine.Language]
2281
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2282
+ client = mod.SslClient(cred, g_param[OptionsDefine.Region], profile)
2283
+ client._sdkVersion += ("_CLI_" + __version__)
2284
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2285
+ model = models.UploadConfirmLetterRequest()
2286
+ model.from_json_string(json.dumps(args))
2287
+ start_time = time.time()
2288
+ while True:
2289
+ rsp = client.UploadConfirmLetter(model)
2290
+ result = rsp.to_json_string()
2291
+ try:
2292
+ json_obj = json.loads(result)
2293
+ except TypeError as e:
2294
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2295
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2296
+ break
2297
+ cur_time = time.time()
2298
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2299
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2300
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2301
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2302
+ else:
2303
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2304
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2305
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2306
+
2307
+
2256
2308
  def doDescribeHostLighthouseInstanceList(args, parsed_globals):
2257
2309
  g_param = parse_global_arg(parsed_globals)
2258
2310
 
@@ -2998,7 +3050,7 @@ ACTION_MAP = {
2998
3050
  "DescribeHostTkeInstanceList": doDescribeHostTkeInstanceList,
2999
3051
  "UploadRevokeLetter": doUploadRevokeLetter,
3000
3052
  "DeleteManager": doDeleteManager,
3001
- "UploadConfirmLetter": doUploadConfirmLetter,
3053
+ "DescribeDownloadCertificateUrl": doDescribeDownloadCertificateUrl,
3002
3054
  "DeployCertificateInstance": doDeployCertificateInstance,
3003
3055
  "SubmitAuditManager": doSubmitAuditManager,
3004
3056
  "DescribePackages": doDescribePackages,
@@ -3035,6 +3087,7 @@ ACTION_MAP = {
3035
3087
  "DescribeHostUpdateRecordDetail": doDescribeHostUpdateRecordDetail,
3036
3088
  "DescribeHostUpdateRecord": doDescribeHostUpdateRecord,
3037
3089
  "CreateCertificate": doCreateCertificate,
3090
+ "UploadConfirmLetter": doUploadConfirmLetter,
3038
3091
  "DescribeHostLighthouseInstanceList": doDescribeHostLighthouseInstanceList,
3039
3092
  "UpdateCertificateRecordRollback": doUpdateCertificateRecordRollback,
3040
3093
  "DescribeHostVodInstanceList": doDescribeHostVodInstanceList,
@@ -161,6 +161,13 @@
161
161
  "output": "DescribeDeployedResourcesResponse",
162
162
  "status": "online"
163
163
  },
164
+ "DescribeDownloadCertificateUrl": {
165
+ "document": "获取下载证书链接",
166
+ "input": "DescribeDownloadCertificateUrlRequest",
167
+ "name": "获取下载证书链接",
168
+ "output": "DescribeDownloadCertificateUrlResponse",
169
+ "status": "online"
170
+ },
164
171
  "DescribeHostApiGatewayInstanceList": {
165
172
  "document": "查询证书apiGateway云资源部署实例列表",
166
173
  "input": "DescribeHostApiGatewayInstanceListRequest",
@@ -4558,6 +4565,62 @@
4558
4565
  ],
4559
4566
  "type": "object"
4560
4567
  },
4568
+ "DescribeDownloadCertificateUrlRequest": {
4569
+ "document": "DescribeDownloadCertificateUrl请求参数结构体",
4570
+ "members": [
4571
+ {
4572
+ "disabled": false,
4573
+ "document": "证书ID",
4574
+ "example": "s2dyw1",
4575
+ "member": "string",
4576
+ "name": "CertificateId",
4577
+ "required": true,
4578
+ "type": "string"
4579
+ },
4580
+ {
4581
+ "disabled": false,
4582
+ "document": "下载的服务类型: nginx tomcat apache iis jks other root",
4583
+ "example": "nginx",
4584
+ "member": "string",
4585
+ "name": "ServiceType",
4586
+ "required": false,
4587
+ "type": "string"
4588
+ }
4589
+ ],
4590
+ "type": "object"
4591
+ },
4592
+ "DescribeDownloadCertificateUrlResponse": {
4593
+ "document": "DescribeDownloadCertificateUrl返回参数结构体",
4594
+ "members": [
4595
+ {
4596
+ "disabled": false,
4597
+ "document": "下载链接",
4598
+ "example": "https://xxxxx.zip",
4599
+ "member": "string",
4600
+ "name": "DownloadCertificateUrl",
4601
+ "required": true,
4602
+ "type": "string",
4603
+ "value_allowed_null": false
4604
+ },
4605
+ {
4606
+ "disabled": false,
4607
+ "document": "下载文件的名称",
4608
+ "example": "xxx.com_nginx.zip",
4609
+ "member": "string",
4610
+ "name": "DownloadFilename",
4611
+ "required": true,
4612
+ "type": "string",
4613
+ "value_allowed_null": false
4614
+ },
4615
+ {
4616
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4617
+ "member": "string",
4618
+ "name": "RequestId",
4619
+ "type": "string"
4620
+ }
4621
+ ],
4622
+ "type": "object"
4623
+ },
4561
4624
  "DescribeHostApiGatewayInstanceListRequest": {
4562
4625
  "document": "DescribeHostApiGatewayInstanceList请求参数结构体",
4563
4626
  "members": [
@@ -202,6 +202,14 @@
202
202
  "title": "证书查询关联资源"
203
203
  }
204
204
  ],
205
+ "DescribeDownloadCertificateUrl": [
206
+ {
207
+ "document": "",
208
+ "input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDownloadCertificateUrl\n<公共请求参数>\n\n{\n \"CertificateId\": \"sduwd123\",\n \"ServiceType\": \"nginx\"\n}",
209
+ "output": "{\n \"Response\": {\n \"RequestId\": \"xxx-xxx-xxx-xxx\",\n \"DownloadCertificateUrl\": \"http://xxx.zip\",\n \"DownloadFilename\": \"xxx.com_nginx.zip\"\n }\n}",
210
+ "title": "返回成功"
211
+ }
212
+ ],
205
213
  "DescribeHostApiGatewayInstanceList": [
206
214
  {
207
215
  "document": "查询证书ddos云资源部署实例列表",
@@ -1787,7 +1787,7 @@
1787
1787
  "example": "1",
1788
1788
  "member": "int64",
1789
1789
  "name": "FlowID",
1790
- "required": true,
1790
+ "output_required": true,
1791
1791
  "type": "int",
1792
1792
  "value_allowed_null": false
1793
1793
  },
@@ -411,27 +411,27 @@
411
411
  "example": "0",
412
412
  "member": "int64",
413
413
  "name": "Code",
414
- "required": true,
414
+ "output_required": true,
415
415
  "type": "int",
416
416
  "value_allowed_null": false
417
417
  },
418
418
  {
419
419
  "disabled": false,
420
420
  "document": "交易结果码含义\n注意:此字段可能返回 null,表示取不到有效值。",
421
- "example": "失败",
421
+ "example": "Success",
422
422
  "member": "string",
423
423
  "name": "CodeMessage",
424
- "required": true,
424
+ "output_required": true,
425
425
  "type": "string",
426
426
  "value_allowed_null": true
427
427
  },
428
428
  {
429
429
  "disabled": false,
430
430
  "document": "交易ID\n注意:此字段可能返回 null,表示取不到有效值。",
431
- "example": "HHHHHHHHHHHHHHHHH、",
431
+ "example": "9d3c4eabca704b04b9317583a194c5b7163aeb3c44e5418f98f79a4a319efb92",
432
432
  "member": "string",
433
433
  "name": "TxId",
434
- "required": true,
434
+ "output_required": true,
435
435
  "type": "string",
436
436
  "value_allowed_null": true
437
437
  },
@@ -441,27 +441,27 @@
441
441
  "example": "0",
442
442
  "member": "int64",
443
443
  "name": "GasUsed",
444
- "required": true,
444
+ "output_required": true,
445
445
  "type": "int",
446
446
  "value_allowed_null": true
447
447
  },
448
448
  {
449
449
  "disabled": false,
450
450
  "document": "合约返回消息\n注意:此字段可能返回 null,表示取不到有效值。",
451
- "example": "xx",
451
+ "example": "Success",
452
452
  "member": "string",
453
453
  "name": "Message",
454
- "required": true,
454
+ "output_required": true,
455
455
  "type": "string",
456
456
  "value_allowed_null": true
457
457
  },
458
458
  {
459
459
  "disabled": false,
460
460
  "document": "合约函数返回,base64编码\n注意:此字段可能返回 null,表示取不到有效值。",
461
- "example": "xxx",
461
+ "example": "dGVzdHRlc3Q=",
462
462
  "member": "string",
463
463
  "name": "Result",
464
- "required": true,
464
+ "output_required": true,
465
465
  "type": "string",
466
466
  "value_allowed_null": true
467
467
  }
@@ -477,27 +477,27 @@
477
477
  "example": "0",
478
478
  "member": "int64",
479
479
  "name": "Code",
480
- "required": true,
480
+ "output_required": true,
481
481
  "type": "int",
482
482
  "value_allowed_null": false
483
483
  },
484
484
  {
485
485
  "disabled": false,
486
486
  "document": "交易结果码含义\n注意:此字段可能返回 null,表示取不到有效值。",
487
- "example": "失败",
487
+ "example": "OK",
488
488
  "member": "string",
489
489
  "name": "CodeMessage",
490
- "required": true,
490
+ "output_required": true,
491
491
  "type": "string",
492
492
  "value_allowed_null": true
493
493
  },
494
494
  {
495
495
  "disabled": false,
496
496
  "document": "交易ID\n注意:此字段可能返回 null,表示取不到有效值。",
497
- "example": "HHHHHHHHHHHHHHHHH、",
497
+ "example": "6ab24544b68643318dd06dc062525e682eeeb9f143294436998127d0f274164d",
498
498
  "member": "string",
499
499
  "name": "TxId",
500
- "required": true,
500
+ "output_required": true,
501
501
  "type": "string",
502
502
  "value_allowed_null": true
503
503
  },
@@ -507,7 +507,7 @@
507
507
  "example": "0",
508
508
  "member": "int64",
509
509
  "name": "GasUsed",
510
- "required": true,
510
+ "output_required": true,
511
511
  "type": "int",
512
512
  "value_allowed_null": true
513
513
  },
@@ -517,7 +517,7 @@
517
517
  "example": "1",
518
518
  "member": "int64",
519
519
  "name": "BlockHeight",
520
- "required": true,
520
+ "output_required": true,
521
521
  "type": "int",
522
522
  "value_allowed_null": true
523
523
  },
@@ -527,27 +527,27 @@
527
527
  "example": "{}",
528
528
  "member": "string",
529
529
  "name": "ContractEvent",
530
- "required": true,
530
+ "output_required": true,
531
531
  "type": "string",
532
532
  "value_allowed_null": true
533
533
  },
534
534
  {
535
535
  "disabled": false,
536
536
  "document": "合约返回信息\n注意:此字段可能返回 null,表示取不到有效值。",
537
- "example": "xx",
537
+ "example": "OK",
538
538
  "member": "string",
539
539
  "name": "Message",
540
- "required": true,
540
+ "output_required": true,
541
541
  "type": "string",
542
542
  "value_allowed_null": true
543
543
  },
544
544
  {
545
545
  "disabled": false,
546
546
  "document": "交易时间,单位是秒\n注意:此字段可能返回 null,表示取不到有效值。",
547
- "example": "0",
547
+ "example": "1709261981",
548
548
  "member": "int64",
549
549
  "name": "Timestamp",
550
- "required": true,
550
+ "output_required": true,
551
551
  "type": "int",
552
552
  "value_allowed_null": true
553
553
  }
@@ -643,7 +643,7 @@
643
643
  {
644
644
  "disabled": false,
645
645
  "document": "创建时间戳",
646
- "example": "",
646
+ "example": "2023-08-05 07:44:04",
647
647
  "member": "string",
648
648
  "name": "CreateTimestamp",
649
649
  "output_required": false,
@@ -653,7 +653,7 @@
653
653
  {
654
654
  "disabled": false,
655
655
  "document": "提案组织",
656
- "example": "",
656
+ "example": "testorg",
657
657
  "member": "string",
658
658
  "name": "ProposerOrg",
659
659
  "output_required": false,
@@ -10483,7 +10483,7 @@
10483
10483
  "example": "test",
10484
10484
  "member": "string",
10485
10485
  "name": "EnvironmentId",
10486
- "required": true,
10486
+ "output_required": true,
10487
10487
  "type": "string",
10488
10488
  "value_allowed_null": false
10489
10489
  },
@@ -10493,7 +10493,7 @@
10493
10493
  "example": "test",
10494
10494
  "member": "string",
10495
10495
  "name": "Remark",
10496
- "required": true,
10496
+ "output_required": true,
10497
10497
  "type": "string",
10498
10498
  "value_allowed_null": false
10499
10499
  },
@@ -10503,7 +10503,7 @@
10503
10503
  "example": "2",
10504
10504
  "member": "int64",
10505
10505
  "name": "MsgTTL",
10506
- "required": true,
10506
+ "output_required": true,
10507
10507
  "type": "int",
10508
10508
  "value_allowed_null": false
10509
10509
  },
@@ -10513,7 +10513,7 @@
10513
10513
  "example": "2020-02-17 00:00:00",
10514
10514
  "member": "datetime",
10515
10515
  "name": "CreateTime",
10516
- "required": true,
10516
+ "output_required": true,
10517
10517
  "type": "string",
10518
10518
  "value_allowed_null": false
10519
10519
  },
@@ -10523,7 +10523,7 @@
10523
10523
  "example": "2020-02-17 00:00:00",
10524
10524
  "member": "datetime",
10525
10525
  "name": "UpdateTime",
10526
- "required": true,
10526
+ "output_required": true,
10527
10527
  "type": "string",
10528
10528
  "value_allowed_null": false
10529
10529
  },
@@ -10533,7 +10533,7 @@
10533
10533
  "example": "test",
10534
10534
  "member": "string",
10535
10535
  "name": "NamespaceId",
10536
- "required": true,
10536
+ "output_required": true,
10537
10537
  "type": "string",
10538
10538
  "value_allowed_null": false
10539
10539
  },
@@ -10543,7 +10543,7 @@
10543
10543
  "example": "test",
10544
10544
  "member": "string",
10545
10545
  "name": "NamespaceName",
10546
- "required": true,
10546
+ "output_required": true,
10547
10547
  "type": "string",
10548
10548
  "value_allowed_null": false
10549
10549
  },
@@ -10553,7 +10553,7 @@
10553
10553
  "example": "2",
10554
10554
  "member": "int64",
10555
10555
  "name": "TopicNum",
10556
- "required": true,
10556
+ "output_required": true,
10557
10557
  "type": "int",
10558
10558
  "value_allowed_null": true
10559
10559
  },
@@ -10563,7 +10563,7 @@
10563
10563
  "example": "无",
10564
10564
  "member": "RetentionPolicy",
10565
10565
  "name": "RetentionPolicy",
10566
- "required": true,
10566
+ "output_required": true,
10567
10567
  "type": "object",
10568
10568
  "value_allowed_null": true
10569
10569
  },
@@ -10573,7 +10573,7 @@
10573
10573
  "example": "true",
10574
10574
  "member": "bool",
10575
10575
  "name": "AutoSubscriptionCreation",
10576
- "required": false,
10576
+ "output_required": true,
10577
10577
  "type": "bool",
10578
10578
  "value_allowed_null": true
10579
10579
  }
@@ -2761,6 +2761,21 @@
2761
2761
  ],
2762
2762
  "usage": "both"
2763
2763
  },
2764
+ "CacheTag": {
2765
+ "document": "节点缓存清除类型取值为 purge_cache_tag 时附带的信息。",
2766
+ "members": [
2767
+ {
2768
+ "disabled": false,
2769
+ "document": "待清除缓存的域名列表。",
2770
+ "example": "[\"www.qq.com\"]",
2771
+ "member": "string",
2772
+ "name": "Domains",
2773
+ "required": true,
2774
+ "type": "list"
2775
+ }
2776
+ ],
2777
+ "usage": "in"
2778
+ },
2764
2779
  "CertificateInfo": {
2765
2780
  "document": "https 服务端证书配置",
2766
2781
  "members": [
@@ -4068,6 +4083,15 @@
4068
4083
  "name": "EncodeUrl",
4069
4084
  "required": false,
4070
4085
  "type": "bool"
4086
+ },
4087
+ {
4088
+ "disabled": false,
4089
+ "document": "节点缓存清除类型取值为 purge_cache_tag 时附带的信息。",
4090
+ "example": "无",
4091
+ "member": "CacheTag",
4092
+ "name": "CacheTag",
4093
+ "required": false,
4094
+ "type": "object"
4071
4095
  }
4072
4096
  ],
4073
4097
  "type": "object"
@@ -15364,6 +15388,16 @@
15364
15388
  "type": "string",
15365
15389
  "value_allowed_null": false
15366
15390
  },
15391
+ {
15392
+ "disabled": false,
15393
+ "document": "节点缓存清除方法,取值有:\n<li>invalidate:标记过期,用户请求时触发回源校验,即发送带有 If-None-Match 和 If-Modified-Since 头部的 HTTP 条件请求。若源站响应 200,则节点会回源拉取新的资源并更新缓存;若源站响应 304,则节点不会更新缓存;</li>\n<li>delete:直接删除节点缓存,用户请求时触发回源拉取资源。</li>\n注意:此字段可能返回 null,表示取不到有效值。",
15394
+ "example": "invalidate",
15395
+ "member": "string",
15396
+ "name": "Method",
15397
+ "output_required": false,
15398
+ "type": "string",
15399
+ "value_allowed_null": true
15400
+ },
15367
15401
  {
15368
15402
  "disabled": false,
15369
15403
  "document": "状态。取值有:\n<li>processing:处理中;</li>\n<li>success:成功;</li>\n<li> failed:失败;</li>\n<li>timeout:超时。</li>",
@@ -4595,58 +4595,6 @@ def doCreateNotebookImage(args, parsed_globals):
4595
4595
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4596
4596
 
4597
4597
 
4598
- def doUpdateNotebookLifecycleScript(args, parsed_globals):
4599
- g_param = parse_global_arg(parsed_globals)
4600
-
4601
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4602
- cred = credential.CVMRoleCredential()
4603
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4604
- cred = credential.STSAssumeRoleCredential(
4605
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4606
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4607
- )
4608
- 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):
4609
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4610
- else:
4611
- cred = credential.Credential(
4612
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4613
- )
4614
- http_profile = HttpProfile(
4615
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4616
- reqMethod="POST",
4617
- endpoint=g_param[OptionsDefine.Endpoint],
4618
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4619
- )
4620
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4621
- if g_param[OptionsDefine.Language]:
4622
- profile.language = g_param[OptionsDefine.Language]
4623
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4624
- client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
4625
- client._sdkVersion += ("_CLI_" + __version__)
4626
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
4627
- model = models.UpdateNotebookLifecycleScriptRequest()
4628
- model.from_json_string(json.dumps(args))
4629
- start_time = time.time()
4630
- while True:
4631
- rsp = client.UpdateNotebookLifecycleScript(model)
4632
- result = rsp.to_json_string()
4633
- try:
4634
- json_obj = json.loads(result)
4635
- except TypeError as e:
4636
- json_obj = json.loads(result.decode('utf-8')) # python3.3
4637
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4638
- break
4639
- cur_time = time.time()
4640
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4641
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4642
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4643
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4644
- else:
4645
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4646
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4647
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4648
-
4649
-
4650
4598
  def doDescribeTrainingJob(args, parsed_globals):
4651
4599
  g_param = parse_global_arg(parsed_globals)
4652
4600
 
@@ -5268,7 +5216,6 @@ ACTION_MAP = {
5268
5216
  "DescribeModelAccEngineVersions": doDescribeModelAccEngineVersions,
5269
5217
  "DescribeNotebookLifecycleScript": doDescribeNotebookLifecycleScript,
5270
5218
  "CreateNotebookImage": doCreateNotebookImage,
5271
- "UpdateNotebookLifecycleScript": doUpdateNotebookLifecycleScript,
5272
5219
  "DescribeTrainingJob": doDescribeTrainingJob,
5273
5220
  "DeleteModelService": doDeleteModelService,
5274
5221
  "DescribeDatasetDetailStructured": doDescribeDatasetDetailStructured,
@@ -153,13 +153,6 @@
153
153
  "name": "更新Notebook实例",
154
154
  "output": "UpdateNotebookInstanceResponse",
155
155
  "status": "online"
156
- },
157
- "UpdateNotebookLifecycleScript": {
158
- "document": "更新notebook生命周期脚本",
159
- "input": "UpdateNotebookLifecycleScriptRequest",
160
- "name": "更新notebook生命周期脚本",
161
- "output": "UpdateNotebookLifecycleScriptResponse",
162
- "status": "online"
163
156
  }
164
157
  },
165
158
  "metadata": {
@@ -2762,51 +2755,6 @@
2762
2755
  ],
2763
2756
  "type": "object"
2764
2757
  },
2765
- "UpdateNotebookLifecycleScriptRequest": {
2766
- "document": "UpdateNotebookLifecycleScript请求参数结构体",
2767
- "members": [
2768
- {
2769
- "disabled": false,
2770
- "document": "notebook生命周期脚本名称",
2771
- "example": "",
2772
- "member": "string",
2773
- "name": "NotebookLifecycleScriptsName",
2774
- "required": true,
2775
- "type": "string"
2776
- },
2777
- {
2778
- "disabled": false,
2779
- "document": "创建脚本,base64编码\nbase64后的脚本长度不能超过16384个字符",
2780
- "example": "",
2781
- "member": "string",
2782
- "name": "CreateScript",
2783
- "required": false,
2784
- "type": "string"
2785
- },
2786
- {
2787
- "disabled": false,
2788
- "document": "启动脚本,base64编码\nbase64后的脚本长度不能超过16384个字符",
2789
- "example": "",
2790
- "member": "string",
2791
- "name": "StartScript",
2792
- "required": false,
2793
- "type": "string"
2794
- }
2795
- ],
2796
- "type": "object"
2797
- },
2798
- "UpdateNotebookLifecycleScriptResponse": {
2799
- "document": "UpdateNotebookLifecycleScript返回参数结构体",
2800
- "members": [
2801
- {
2802
- "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
2803
- "member": "string",
2804
- "name": "RequestId",
2805
- "type": "string"
2806
- }
2807
- ],
2808
- "type": "object"
2809
- },
2810
2758
  "VpcConfig": {
2811
2759
  "document": "VPC配置",
2812
2760
  "members": [
@@ -181,14 +181,6 @@
181
181
  "output": "{\n \"Response\": {\n \"RequestId\": \"1ac85a52-fb9d-4b28-b0fa-1017b9ada1ac\"\n }\n}",
182
182
  "title": "更新Notebook实例"
183
183
  }
184
- ],
185
- "UpdateNotebookLifecycleScript": [
186
- {
187
- "document": "",
188
- "input": "https://tione.tencentcloudapi.com/?Action=UpdateNotebookLifecycleScripts\r\n&NotebookLifecycleScriptsName=abc\r\n&CreateScript=YWJj&StartScript=YWJj\r\n&<公共请求参数>",
189
- "output": "{\n \"Response\": {\n \"RequestId\": \"15833967702530096378\"\n }\n}",
190
- "title": "更新notebook生命周期脚本"
191
- }
192
184
  ]
193
185
  },
194
186
  "version": "1.0"