tccli 3.0.1275.1__py2.py3-none-any.whl → 3.0.1277.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 (38) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/ams/v20201229/api.json +134 -22
  3. tccli/services/batch/v20170312/api.json +24 -24
  4. tccli/services/cfw/v20190904/api.json +6 -6
  5. tccli/services/cvm/v20170312/api.json +57 -37
  6. tccli/services/cynosdb/v20190107/api.json +14 -4
  7. tccli/services/emr/v20190103/api.json +29 -29
  8. tccli/services/ess/ess_client.py +110 -4
  9. tccli/services/ess/v20201111/api.json +540 -328
  10. tccli/services/ess/v20201111/examples.json +22 -0
  11. tccli/services/essbasic/essbasic_client.py +106 -0
  12. tccli/services/essbasic/v20210526/api.json +432 -238
  13. tccli/services/essbasic/v20210526/examples.json +22 -0
  14. tccli/services/ims/v20201229/api.json +82 -0
  15. tccli/services/lcic/v20220817/api.json +3 -3
  16. tccli/services/lighthouse/v20200324/api.json +6 -6
  17. tccli/services/live/v20180801/api.json +224 -217
  18. tccli/services/lke/lke_client.py +53 -0
  19. tccli/services/lke/v20231130/api.json +72 -2
  20. tccli/services/lke/v20231130/examples.json +8 -0
  21. tccli/services/lkeap/v20240522/api.json +1 -1
  22. tccli/services/rce/v20201103/api.json +13 -13
  23. tccli/services/taf/v20200210/api.json +9 -9
  24. tccli/services/teo/v20220901/api.json +2 -2
  25. tccli/services/teo/v20220901/examples.json +1 -1
  26. tccli/services/tione/v20211111/api.json +2 -2
  27. tccli/services/tke/v20180525/api.json +176 -176
  28. tccli/services/trtc/v20190722/api.json +9 -0
  29. tccli/services/tse/v20201207/api.json +84 -4
  30. tccli/services/vm/v20201229/api.json +428 -78
  31. tccli/services/vm/v20210922/api.json +482 -82
  32. tccli/services/wedata/v20210820/api.json +29 -18
  33. tccli/services/wedata/v20210820/examples.json +12 -18
  34. {tccli-3.0.1275.1.dist-info → tccli-3.0.1277.1.dist-info}/METADATA +2 -2
  35. {tccli-3.0.1275.1.dist-info → tccli-3.0.1277.1.dist-info}/RECORD +38 -38
  36. {tccli-3.0.1275.1.dist-info → tccli-3.0.1277.1.dist-info}/WHEEL +0 -0
  37. {tccli-3.0.1275.1.dist-info → tccli-3.0.1277.1.dist-info}/entry_points.txt +0 -0
  38. {tccli-3.0.1275.1.dist-info → tccli-3.0.1277.1.dist-info}/license_files/LICENSE +0 -0
@@ -330,6 +330,20 @@
330
330
  "title": "获取合同详情嵌入Web链接失败,是因为对应的签署流程不存在。"
331
331
  }
332
332
  ],
333
+ "CreateEmployeeChangeUrl": [
334
+ {
335
+ "document": "修改员工手机号",
336
+ "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateEmployeeInfoChangeUrl\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDRt2UUgygqxyp9yUuO4zjEwqXwsIljA\"\n },\n \"UserId\": \"yDRt2UUgygqxyp9yUuO4zjEwqXwsIljA\"\n}",
337
+ "output": "{\n \"Response\": {\n \"ExpireTime\": 1741332331,\n \"MiniAppPath\": \"/pages/guide/index?shortKey=yDtSJUde8JFIMAykHz79\",\n \"RequestId\": \"s1740727531055190955\"\n }\n}",
338
+ "title": "生成员手机号变更链接-不指定手机号"
339
+ },
340
+ {
341
+ "document": "",
342
+ "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateEmployeeChangeUrl\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDRt2UUgygqxyp9yUuO4zjEwqXwsIljA\"\n },\n \"UserId\": \"yDRt2UUgygqxyp9yUuO4zjEwqXwsIljA\",\n \"NewMobile\": \"13200001111\"\n}",
343
+ "output": "{\n \"Response\": {\n \"ExpireTime\": 1741332331,\n \"MiniAppPath\": \"/pages/guide/index?shortKey=yDtSJUde8JFIMAykHz79\",\n \"RequestId\": \"s1740727531055190955\"\n }\n}",
344
+ "title": "生成员手机号变更链接-指定手机号"
345
+ }
346
+ ],
333
347
  "CreateEmployeeQualificationSealQrCode": [
334
348
  {
335
349
  "document": "企业需要员工授权执业章使用权限给企业时,调用接口产生二维码",
@@ -598,6 +612,14 @@
598
612
  "title": "错误示例:流程未签署完,请求出证失败"
599
613
  }
600
614
  ],
615
+ "CreateFlowForwards": [
616
+ {
617
+ "document": "将当前合同经办人转为其他员工",
618
+ "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFlowForwards\n<公共请求参数>\n\n{\n \"TargetUserId\": \"yDCkSUUck******************BQnKvKPVf\",\n \"FlowForwardInfos\": [\n {\n \"FlowId\": \"yDtSPUU**********************PHG7JhZM\",\n \"RecipientId\": \"yDtSPUU******************os8flxcvLpj\"\n },\n {\n \"FlowId\": \"yDtSPUU**********************PHG7s8flx\",\n \"RecipientId\": \"yDtSPUU******************oSPUxSP\"\n }\n ],\n \"Operator\": {\n \"UserId\": \"yDtSPUU******************p4z5lt9UuY\",\n \"ClientIp\": \"116.211.195.11\"\n }\n}",
619
+ "output": "{\n \"Response\": {\n \"FailedFlows\": [\n {\n \"ErrorDetail\": \"转发人状态非待签署或待填写,禁止转发\",\n \"FlowId\": \"yDtSPUU**********************PHG7JhZM\"\n }\n ],\n \"RequestId\": \"s1740641173120185806\",\n \"SuccessFlows\": [\n \"yDtSPUU**********************PHG7s8flx\"\n ]\n }\n}",
620
+ "title": "将当前合同经办人转为其他员工"
621
+ }
622
+ ],
601
623
  "CreateFlowGroupByFiles": [
602
624
  {
603
625
  "document": "1. 子合同1为B2B合同(Approvers中包含两个ApproverInfo元素);\n2. 子合同1的发起方企业自动签署(ApproverType设置为3,SIGN_SEAL对应签署控件的ComponentValue设置为自动签署使用的印章Id);\n3. 子合同2为普通B2B合同(Approvers中包含两个ApproverInfo元素,且ApproverType都是0);\n4. 子合同3为普通B2C合同(Approvers中包含两个ApproverInfo元素,C端签署人的ApproverType为1)。",
@@ -3451,6 +3451,58 @@ def doModifyExtendedService(args, parsed_globals):
3451
3451
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3452
3452
 
3453
3453
 
3454
+ def doCreateEmployeeChangeUrl(args, parsed_globals):
3455
+ g_param = parse_global_arg(parsed_globals)
3456
+
3457
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3458
+ cred = credential.CVMRoleCredential()
3459
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3460
+ cred = credential.STSAssumeRoleCredential(
3461
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3462
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3463
+ )
3464
+ 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):
3465
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3466
+ else:
3467
+ cred = credential.Credential(
3468
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3469
+ )
3470
+ http_profile = HttpProfile(
3471
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3472
+ reqMethod="POST",
3473
+ endpoint=g_param[OptionsDefine.Endpoint],
3474
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3475
+ )
3476
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3477
+ if g_param[OptionsDefine.Language]:
3478
+ profile.language = g_param[OptionsDefine.Language]
3479
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3480
+ client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile)
3481
+ client._sdkVersion += ("_CLI_" + __version__)
3482
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3483
+ model = models.CreateEmployeeChangeUrlRequest()
3484
+ model.from_json_string(json.dumps(args))
3485
+ start_time = time.time()
3486
+ while True:
3487
+ rsp = client.CreateEmployeeChangeUrl(model)
3488
+ result = rsp.to_json_string()
3489
+ try:
3490
+ json_obj = json.loads(result)
3491
+ except TypeError as e:
3492
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3493
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3494
+ break
3495
+ cur_time = time.time()
3496
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3497
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3498
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3499
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3500
+ else:
3501
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3502
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3503
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3504
+
3505
+
3454
3506
  def doSendSignInnerVerifyCode(args, parsed_globals):
3455
3507
  g_param = parse_global_arg(parsed_globals)
3456
3508
 
@@ -4439,6 +4491,58 @@ def doUploadFiles(args, parsed_globals):
4439
4491
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4440
4492
 
4441
4493
 
4494
+ def doCreateFlowForwards(args, parsed_globals):
4495
+ g_param = parse_global_arg(parsed_globals)
4496
+
4497
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4498
+ cred = credential.CVMRoleCredential()
4499
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4500
+ cred = credential.STSAssumeRoleCredential(
4501
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4502
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4503
+ )
4504
+ 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):
4505
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4506
+ else:
4507
+ cred = credential.Credential(
4508
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4509
+ )
4510
+ http_profile = HttpProfile(
4511
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4512
+ reqMethod="POST",
4513
+ endpoint=g_param[OptionsDefine.Endpoint],
4514
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4515
+ )
4516
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4517
+ if g_param[OptionsDefine.Language]:
4518
+ profile.language = g_param[OptionsDefine.Language]
4519
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4520
+ client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile)
4521
+ client._sdkVersion += ("_CLI_" + __version__)
4522
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4523
+ model = models.CreateFlowForwardsRequest()
4524
+ model.from_json_string(json.dumps(args))
4525
+ start_time = time.time()
4526
+ while True:
4527
+ rsp = client.CreateFlowForwards(model)
4528
+ result = rsp.to_json_string()
4529
+ try:
4530
+ json_obj = json.loads(result)
4531
+ except TypeError as e:
4532
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4533
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4534
+ break
4535
+ cur_time = time.time()
4536
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4537
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4538
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4539
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4540
+ else:
4541
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4542
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4543
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4544
+
4545
+
4442
4546
  def doChannelCreateFlowSignUrl(args, parsed_globals):
4443
4547
  g_param = parse_global_arg(parsed_globals)
4444
4548
 
@@ -7274,6 +7378,7 @@ ACTION_MAP = {
7274
7378
  "ChannelCreateMultiFlowSignQRCode": doChannelCreateMultiFlowSignQRCode,
7275
7379
  "CheckBankCard4EVerification": doCheckBankCard4EVerification,
7276
7380
  "ModifyExtendedService": doModifyExtendedService,
7381
+ "CreateEmployeeChangeUrl": doCreateEmployeeChangeUrl,
7277
7382
  "SendSignInnerVerifyCode": doSendSignInnerVerifyCode,
7278
7383
  "DescribeFlowFiles": doDescribeFlowFiles,
7279
7384
  "CreateFlowBlockchainEvidenceUrl": doCreateFlowBlockchainEvidenceUrl,
@@ -7293,6 +7398,7 @@ ACTION_MAP = {
7293
7398
  "DescribeTemplates": doDescribeTemplates,
7294
7399
  "ChannelCancelUserAutoSignEnableUrl": doChannelCancelUserAutoSignEnableUrl,
7295
7400
  "UploadFiles": doUploadFiles,
7401
+ "CreateFlowForwards": doCreateFlowForwards,
7296
7402
  "ChannelCreateFlowSignUrl": doChannelCreateFlowSignUrl,
7297
7403
  "VerifySubOrganization": doVerifySubOrganization,
7298
7404
  "ArchiveFlow": doArchiveFlow,