tccli 3.0.1331.1__py2.py3-none-any.whl → 3.0.1334.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 (57) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/asr/v20190614/api.json +1 -1
  3. tccli/services/autoscaling/v20180419/api.json +1 -1
  4. tccli/services/bmvpc/v20180625/api.json +36 -36
  5. tccli/services/cdb/v20170320/api.json +37 -37
  6. tccli/services/cdn/v20180606/api.json +2 -2
  7. tccli/services/cdn/v20180606/examples.json +2 -2
  8. tccli/services/cfs/v20190719/api.json +1 -1
  9. tccli/services/cfw/v20190904/api.json +1 -1
  10. tccli/services/ckafka/v20190819/api.json +11 -1
  11. tccli/services/clb/v20180317/api.json +1 -1
  12. tccli/services/csip/csip_client.py +53 -0
  13. tccli/services/csip/v20221121/api.json +466 -0
  14. tccli/services/csip/v20221121/examples.json +9 -1
  15. tccli/services/cwp/v20180228/api.json +4 -4
  16. tccli/services/dc/v20180410/api.json +39 -0
  17. tccli/services/emr/v20190103/api.json +2 -2
  18. tccli/services/ess/ess_client.py +57 -4
  19. tccli/services/ess/v20201111/api.json +94 -4
  20. tccli/services/ess/v20201111/examples.json +8 -0
  21. tccli/services/essbasic/v20210526/api.json +34 -5
  22. tccli/services/goosefs/goosefs_client.py +53 -0
  23. tccli/services/goosefs/v20220519/api.json +55 -2
  24. tccli/services/goosefs/v20220519/examples.json +8 -0
  25. tccli/services/gs/gs_client.py +163 -4
  26. tccli/services/gs/v20191118/api.json +227 -1
  27. tccli/services/gs/v20191118/examples.json +25 -1
  28. tccli/services/hunyuan/v20230901/api.json +64 -0
  29. tccli/services/ioa/ioa_client.py +114 -8
  30. tccli/services/ioa/v20220601/api.json +375 -0
  31. tccli/services/ioa/v20220601/examples.json +28 -0
  32. tccli/services/iotexplorer/v20190423/api.json +5 -5
  33. tccli/services/iotexplorer/v20190423/examples.json +1 -1
  34. tccli/services/live/v20180801/api.json +3 -3
  35. tccli/services/lke/lke_client.py +284 -19
  36. tccli/services/lke/v20231130/api.json +1192 -132
  37. tccli/services/lke/v20231130/examples.json +40 -0
  38. tccli/services/lkeap/v20240522/examples.json +5 -5
  39. tccli/services/ocr/v20181119/api.json +4 -4
  40. tccli/services/ssl/v20191205/api.json +4 -4
  41. tccli/services/ssl/v20191205/examples.json +1 -1
  42. tccli/services/tat/v20201028/api.json +1 -1
  43. tccli/services/tcss/v20201101/api.json +5 -5
  44. tccli/services/tcss/v20201101/examples.json +2 -2
  45. tccli/services/tke/tke_client.py +106 -0
  46. tccli/services/tke/v20180525/api.json +124 -0
  47. tccli/services/tke/v20180525/examples.json +16 -0
  48. tccli/services/trtc/v20190722/api.json +30 -2
  49. tccli/services/tsf/v20180326/api.json +46 -17
  50. tccli/services/tsf/v20180326/examples.json +10 -10
  51. tccli/services/vpc/v20170312/api.json +5 -5
  52. tccli/services/vpc/v20170312/examples.json +6 -6
  53. {tccli-3.0.1331.1.dist-info → tccli-3.0.1334.1.dist-info}/METADATA +2 -2
  54. {tccli-3.0.1331.1.dist-info → tccli-3.0.1334.1.dist-info}/RECORD +57 -57
  55. {tccli-3.0.1331.1.dist-info → tccli-3.0.1334.1.dist-info}/WHEEL +0 -0
  56. {tccli-3.0.1331.1.dist-info → tccli-3.0.1334.1.dist-info}/entry_points.txt +0 -0
  57. {tccli-3.0.1331.1.dist-info → tccli-3.0.1334.1.dist-info}/license_files/LICENSE +0 -0
@@ -3033,6 +3033,58 @@ def doDescribeFileUrls(args, parsed_globals):
3033
3033
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3034
3034
 
3035
3035
 
3036
+ def doCreateBatchQuickSignUrl(args, parsed_globals):
3037
+ g_param = parse_global_arg(parsed_globals)
3038
+
3039
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3040
+ cred = credential.CVMRoleCredential()
3041
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3042
+ cred = credential.STSAssumeRoleCredential(
3043
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3044
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3045
+ )
3046
+ 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):
3047
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3048
+ else:
3049
+ cred = credential.Credential(
3050
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3051
+ )
3052
+ http_profile = HttpProfile(
3053
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3054
+ reqMethod="POST",
3055
+ endpoint=g_param[OptionsDefine.Endpoint],
3056
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3057
+ )
3058
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3059
+ if g_param[OptionsDefine.Language]:
3060
+ profile.language = g_param[OptionsDefine.Language]
3061
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3062
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
3063
+ client._sdkVersion += ("_CLI_" + __version__)
3064
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3065
+ model = models.CreateBatchQuickSignUrlRequest()
3066
+ model.from_json_string(json.dumps(args))
3067
+ start_time = time.time()
3068
+ while True:
3069
+ rsp = client.CreateBatchQuickSignUrl(model)
3070
+ result = rsp.to_json_string()
3071
+ try:
3072
+ json_obj = json.loads(result)
3073
+ except TypeError as e:
3074
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3075
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3076
+ break
3077
+ cur_time = time.time()
3078
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3079
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3080
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3081
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3082
+ else:
3083
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3084
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3085
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3086
+
3087
+
3036
3088
  def doCreateIntegrationRole(args, parsed_globals):
3037
3089
  g_param = parse_global_arg(parsed_globals)
3038
3090
 
@@ -4177,7 +4229,7 @@ def doDeleteOrganizationAuthorizations(args, parsed_globals):
4177
4229
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4178
4230
 
4179
4231
 
4180
- def doCreateBatchQuickSignUrl(args, parsed_globals):
4232
+ def doOperateSeals(args, parsed_globals):
4181
4233
  g_param = parse_global_arg(parsed_globals)
4182
4234
 
4183
4235
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4206,11 +4258,11 @@ def doCreateBatchQuickSignUrl(args, parsed_globals):
4206
4258
  client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
4207
4259
  client._sdkVersion += ("_CLI_" + __version__)
4208
4260
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4209
- model = models.CreateBatchQuickSignUrlRequest()
4261
+ model = models.OperateSealsRequest()
4210
4262
  model.from_json_string(json.dumps(args))
4211
4263
  start_time = time.time()
4212
4264
  while True:
4213
- rsp = client.CreateBatchQuickSignUrl(model)
4265
+ rsp = client.OperateSeals(model)
4214
4266
  result = rsp.to_json_string()
4215
4267
  try:
4216
4268
  json_obj = json.loads(result)
@@ -5650,6 +5702,7 @@ ACTION_MAP = {
5650
5702
  "CreateUserMobileChangeUrl": doCreateUserMobileChangeUrl,
5651
5703
  "DeleteSealPolicies": doDeleteSealPolicies,
5652
5704
  "DescribeFileUrls": doDescribeFileUrls,
5705
+ "CreateBatchQuickSignUrl": doCreateBatchQuickSignUrl,
5653
5706
  "CreateIntegrationRole": doCreateIntegrationRole,
5654
5707
  "OperateTemplate": doOperateTemplate,
5655
5708
  "ModifyExtendedService": doModifyExtendedService,
@@ -5672,7 +5725,7 @@ ACTION_MAP = {
5672
5725
  "DescribeUserFlowType": doDescribeUserFlowType,
5673
5726
  "CreateIntegrationEmployees": doCreateIntegrationEmployees,
5674
5727
  "DeleteOrganizationAuthorizations": doDeleteOrganizationAuthorizations,
5675
- "CreateBatchQuickSignUrl": doCreateBatchQuickSignUrl,
5728
+ "OperateSeals": doOperateSeals,
5676
5729
  "ModifyApplicationCallbackInfo": doModifyApplicationCallbackInfo,
5677
5730
  "CancelFlow": doCancelFlow,
5678
5731
  "UnbindEmployeeUserIdWithClientOpenId": doUnbindEmployeeUserIdWithClientOpenId,
@@ -71,7 +71,7 @@
71
71
  "status": "online"
72
72
  },
73
73
  "CreateBatchSignUrl": {
74
- "document": "通过此接口,可以创建小程序批量签署链接,个人/企业员工可通过此链接跳转至小程序进行批量签署。请确保生成链接时的身份信息与签署合同参与方的信息保持一致。\n\n注意事项:\n- 使用此接口生成链接,需要贵企业先开通 <font color=\"red\">个人签署方仅校验手机号 </font>功能。您可以在 <b>【腾讯电子签网页端】->【企业设置】->【拓展服务】</b>中找到该功能。\n- 生成批量签署链接时,<font color=\"red\">合同目标参与方的状态必须为<b>待签署</b>状态</font>。签署人点击链接后需要输入短信验证码才能查看合同内容。\n- 企业员工批量签署链接:需要传入签署方所在企业名称,用户名字和手机号(或者身份证件信息)参数来生成签署链接。<font color=\"red\">该签署方企业必须已完成腾讯电子签企业认证</font>\n- 个人批量签署链接:需要传入签署方用户名字和手机号(或者身份证件信息)参数来生成签署链接。个人批量签署进行的合同的签名区, 全部变成<font color=\"red\">手写签名</font>(不管合同里边设置的签名限制)来进行。\n- 不支持签署方含有签批控件,或设置了签署方在签署时自行添加签署控件功能的合同进行批量签署。",
74
+ "document": "通过此接口,可以创建小程序批量签署链接,个人/企业员工可通过此链接跳转至小程序进行批量签署。请确保生成链接时的身份信息与签署合同参与方的信息保持一致。\n\n注意事项:\n- 使用此接口生成链接,需要贵企业先开通 <font color=\"red\">个人签署方仅校验手机号 </font>功能。您可以在 <b>【腾讯电子签网页端】->【企业设置】->【拓展服务】</b>中找到该功能。\n- 生成批量签署链接时,<font color=\"red\">合同目标参与方的状态必须为<b>待签署</b>状态</font>。签署人点击链接后需要输入短信验证码才能查看合同内容。\n- 企业员工批量签署链接:需要传入签署方所在企业名称,用户名字和手机号(或者身份证件信息)参数来生成签署链接。<font color=\"red\">该签署方企业必须已完成腾讯电子签企业认证</font>\n- 个人批量签署链接:需要传入签署方用户名字和手机号(或者身份证件信息)参数来生成签署链接。个人批量签署进行的合同的签名区, 全部变成<font color=\"red\">手写签名</font>(不管合同里边设置的签名限制)来进行。\n- 不支持签署方含有签批控件,或设置了签署方在签署时自行添加签署控件功能的合同进行批量签署。\n- 进行小程序批量签署必须指定待签署的流程id,<font color=\"red\">接口中FlowIds参数必传。</font>",
75
75
  "input": "CreateBatchSignUrlRequest",
76
76
  "name": "获取跳转至腾讯电子签小程序的批量签署链接",
77
77
  "output": "CreateBatchSignUrlResponse",
@@ -693,6 +693,13 @@
693
693
  "output": "ModifyIntegrationRoleResponse",
694
694
  "status": "online"
695
695
  },
696
+ "OperateSeals": {
697
+ "document": "修改印章状态(停用、启用)",
698
+ "input": "OperateSealsRequest",
699
+ "name": "更新印章状态",
700
+ "output": "OperateSealsResponse",
701
+ "status": "online"
702
+ },
696
703
  "OperateTemplate": {
697
704
  "document": "此接口(OperateTemplate)用于对企业自有模板进行管理操作,所有操作都会有对应的回调触发,具体参考回调文档 <a href=\"https://qian.tencent.com/developers/company/callback_types_templates\" target=\"_blank\">模板操作相关回调</a>\n\n\n# 支持的操作\n## 1. 删除模板 (OperateType=DELETE)\n此操作会将模板从企业自有模板中彻底删除,若要保留模板而不删除,可将模板停用。\n\n## 2. 启用模板 (OperateType=ENABLE)\n此操作是将已停用的模板启用,操作幂等,若模板已启用,接口不报错。\n\n## 3. 停用模板 (OperateType=DISABLE)\n此操作是将已启用的模板停用,操作幂等,若模板已停用,接口不报错,停用后,无法通过此模板发起合同,已发起的合同不受影响。\n\n## 4. 复制模板 (OperateType=COPY)\n此操作将复制一个完全一样的模板,仅支持修改模板名称,若要修改其他模板内容,需到腾讯电子签控制台操作。",
698
705
  "input": "OperateTemplateRequest",
@@ -2947,7 +2954,7 @@
2947
2954
  },
2948
2955
  {
2949
2956
  "disabled": false,
2950
- "document": "批量签署的合同流程ID数组。\n注: `在调用此接口时,请确保合同流程均为本企业发起,且合同数量不超过100个。`",
2957
+ "document": "批量签署的合同流程ID数组,<font color=\"red\">此参数必传。</font>\n注: `在调用此接口时,请确保合同流程均为本企业发起,且合同数量不超过100个。`",
2951
2958
  "example": "[\"yDxbNUyKQDx3oAUuO4zjEBQGidlGe4hP\"]",
2952
2959
  "member": "string",
2953
2960
  "name": "FlowIds",
@@ -2983,7 +2990,7 @@
2983
2990
  },
2984
2991
  {
2985
2992
  "disabled": false,
2986
- "document": "签署完成后是否自动回跳\n<ul><li>false:否, 签署完成不会自动跳转回来(默认)</li><li>true:是, 签署完成会自动跳转回来</li></ul>\n\n注: \n1. 该参数<font color=\"red\">只针对APP类型(电子签小程序跳转贵方小程序)场景</font> 的签署链接有效\n2. <font color=\"red\">手机应用APP 或 微信小程序需要监控界面的返回走后序逻辑</font>, 微信小程序的文档可以参考[这个](https://developers.weixin.qq.com/miniprogram/dev/reference/api/App.html#onShow-Object-object)\n3. <font color=\"red\">电子签小程序跳转贵方APP,不支持自动跳转,必需用户手动点击完成按钮(微信的限制)</font> ",
2993
+ "document": "签署完成后是否自动回跳\n<ul><li>false:否, 签署完成不会自动跳转回来(默认)</li><li>true:是, 签署完成会自动跳转回来</li></ul>\n\n注: \n1. 该参数<font color=\"red\">只针对APP类型(电子签小程序跳转贵方小程序)场景</font> 的签署链接有效\n2. <font color=\"red\">手机应用APP 或 微信小程序需要监控界面的返回走后序逻辑</font>, 微信小程序的文档可以参考[这个](https://developers.weixin.qq.com/miniprogram/dev/reference/api/App.html#onShow-Object-object)\n3. <font color=\"red\">电子签小程序跳转贵方APP,不支持自动跳转,必须用户手动点击完成按钮(微信的限制)</font> ",
2987
2994
  "example": "true",
2988
2995
  "member": "bool",
2989
2996
  "name": "AutoJumpBack",
@@ -3010,7 +3017,7 @@
3010
3017
  },
3011
3018
  {
3012
3019
  "disabled": false,
3013
- "document": "是否允许此链接中签署方批量确认已读文件。 <ul><li>false (默认): 不允许批量确认已读文件。</li> <li>true : 允许批量确认已读文件。</li></ul>注:`1. 此功能为白名单功能,使用前请联系对应客户经理进行开通。2. 使用此功能时,FlowIds参数必传。3. 对于企业签署方,如果有签名控件,则会使用用户首次选择的签名类型签署所有含有签名控件的合同。`",
3020
+ "document": "是否允许此链接中签署方批量确认已读文件。 <ul><li>false (默认): 不允许批量确认已读文件。</li> <li>true : 允许批量确认已读文件。</li></ul>\n注:`1. 此功能为白名单功能,使用前请联系对应客户经理进行开通。2. 使用此功能时,FlowIds参数必传。3. 对于企业签署方,如果对印章/签名控件有限制要求,需要保证所有印章/签名签署控件限制要求(印章id或印章/签名类型限制)一致,否则无法使用此功能。`",
3014
3021
  "example": "false",
3015
3022
  "member": "bool",
3016
3023
  "name": "CanSkipReadFlow",
@@ -13900,6 +13907,60 @@
13900
13907
  ],
13901
13908
  "usage": "out"
13902
13909
  },
13910
+ "OperateSealsRequest": {
13911
+ "document": "OperateSeals请求参数结构体",
13912
+ "members": [
13913
+ {
13914
+ "disabled": false,
13915
+ "document": "执行本接口操作的员工信息。 注: 在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。",
13916
+ "example": "无",
13917
+ "member": "UserInfo",
13918
+ "name": "Operator",
13919
+ "required": false,
13920
+ "type": "object"
13921
+ },
13922
+ {
13923
+ "disabled": false,
13924
+ "document": "代理企业和员工的信息。 在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。",
13925
+ "example": "无",
13926
+ "member": "Agent",
13927
+ "name": "Agent",
13928
+ "required": false,
13929
+ "type": "object"
13930
+ },
13931
+ {
13932
+ "disabled": false,
13933
+ "document": "操作类型,int,目前支持传入以下类型:\n<ul><li>1:启用印章</li></ul>\n<ul><li>2:停用印章</li></ul>",
13934
+ "example": "1",
13935
+ "member": "int64",
13936
+ "name": "Act",
13937
+ "required": false,
13938
+ "type": "int"
13939
+ },
13940
+ {
13941
+ "disabled": false,
13942
+ "document": "需要操作的印章ID,数组形式,印章ID可从【web控制台->印章 】获取。",
13943
+ "example": "[\"yDRTZxxxxxJNR\"]",
13944
+ "member": "string",
13945
+ "name": "SealIds",
13946
+ "required": false,
13947
+ "type": "list"
13948
+ }
13949
+ ],
13950
+ "type": "object"
13951
+ },
13952
+ "OperateSealsResponse": {
13953
+ "document": "OperateSeals返回参数结构体",
13954
+ "members": [
13955
+ {
13956
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
13957
+ "member": "string",
13958
+ "name": "RequestId",
13959
+ "type": "string"
13960
+ }
13961
+ ],
13962
+ "type": "object"
13963
+ },
13903
13964
  "OperateTemplateRequest": {
13904
13965
  "document": "OperateTemplate请求参数结构体",
13905
13966
  "members": [
@@ -13938,6 +13999,15 @@
13938
13999
  "name": "Agent",
13939
14000
  "required": false,
13940
14001
  "type": "object"
14002
+ },
14003
+ {
14004
+ "disabled": false,
14005
+ "document": "模板名称,长度不超过64字符。<br>\n模板复制时指定有效,若为空,则复制后模板名称为 **原模板名称_副本**。",
14006
+ "example": "入职协议",
14007
+ "member": "string",
14008
+ "name": "TemplateName",
14009
+ "required": false,
14010
+ "type": "string"
13941
14011
  }
13942
14012
  ],
13943
14013
  "type": "object"
@@ -13945,6 +14015,26 @@
13945
14015
  "OperateTemplateResponse": {
13946
14016
  "document": "OperateTemplate返回参数结构体",
13947
14017
  "members": [
14018
+ {
14019
+ "disabled": false,
14020
+ "document": "模板ID,为32位字符串,模板复制新建时返回",
14021
+ "example": "yDt3sUUckpxzhjc9UxGKGtnEys9Scr8j",
14022
+ "member": "string",
14023
+ "name": "TemplateId",
14024
+ "output_required": false,
14025
+ "type": "string",
14026
+ "value_allowed_null": false
14027
+ },
14028
+ {
14029
+ "disabled": false,
14030
+ "document": "模板名称,模板复制新建时返回",
14031
+ "example": "入职协议",
14032
+ "member": "string",
14033
+ "name": "TemplateName",
14034
+ "output_required": false,
14035
+ "type": "string",
14036
+ "value_allowed_null": false
14037
+ },
13948
14038
  {
13949
14039
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
13950
14040
  "member": "string",
@@ -1896,6 +1896,14 @@
1896
1896
  "title": "示例-普通企业更新角色(不带权限树参数)"
1897
1897
  }
1898
1898
  ],
1899
+ "OperateSeals": [
1900
+ {
1901
+ "document": "将停用的印章修改为启用状态",
1902
+ "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OperateSeals\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDCAOUUckpycr4l4UuOiTjVB3yTaFaLI\"\n },\n \"Act\": 1,\n \"SealIds\": [\n \"yDClqUUckpaj38v1UmGrVdB8iMEXjdyR\"\n ]\n}",
1903
+ "output": "{\n \"Response\": {\n \"RequestId\": \"73fd23a3-7e85-48e5-970a-ca50da5e25af\"\n }\n}",
1904
+ "title": "启用印章"
1905
+ }
1906
+ ],
1899
1907
  "OperateTemplate": [
1900
1908
  {
1901
1909
  "document": "删除企业下的模板yDwivUUckpo2g6ugUu4sxH2i15SY0OZY",
@@ -50,7 +50,7 @@
50
50
  "status": "online"
51
51
  },
52
52
  "ChannelCreateBatchSignUrl": {
53
- "document": "通过此接口,创建小程序批量签署链接,个人/企业员工点击此链接即可跳转小程序进行批量签署。\n请确保生成链接时候的身份信息和签署合同参与方的信息保持一致。\n\n注:\n- 使用此接口生成链接,需要提前开通 `个人签署方仅校验手机号` 功能,在 `腾讯电子签网页端-企业设置-拓展服务` 中可以找到。\n- 个人参与方点击链接后需短信验证码才能查看合同内容。\n- 个人用户批量签署,需要传Name,Mobile,IdCardNumber(IdCardType) 参数。\n- saas企业员工用户批量签署,在传递了姓名等基本信息参数的情况下,还需要传OrganizationName(参与方所在企业名称)参数生成签署链接,<font color=\"red\">请确保此企业已完成腾讯电子签企业认证</font>。\n- 子客企业员工用户批量签署,需要传递员工OpenId和子客企业的OrganizationOpenId。<font color=\"red\">请确保此OrganizationOpenId对应子客已经认证,且OpenId对应员工此子客下已经实名</font>。Name,Mobile, IdCard等信息此时可以不传,系统会查询此OpenId实名信息自动补充。\n- 生成批量签署链接时,合同目标参与方状态需为<font color=\"red\">待签署</font>状态。\n- 个人批量签署进行的合同的签名区, 全部变成<font color=\"red\">手写签名</font>(不管合同里边设置的签名限制)来进行。\n- 不支持签署方含有签批控件,或设置了签署方在签署时自行添加签署控件功能的合同进行批量签署。",
53
+ "document": "通过此接口,创建小程序批量签署链接,个人/企业员工点击此链接即可跳转小程序进行批量签署。\n请确保生成链接时候的身份信息和签署合同参与方的信息保持一致。\n\n注:\n- 使用此接口生成链接,需要提前开通 `个人签署方仅校验手机号` 功能,在 `腾讯电子签网页端-企业设置-拓展服务` 中可以找到。\n- 个人参与方点击链接后需短信验证码才能查看合同内容。\n- 个人用户批量签署,需要传Name,Mobile,IdCardNumber(IdCardType) 参数。\n- saas企业员工用户批量签署,在传递了姓名等基本信息参数的情况下,还需要传OrganizationName(参与方所在企业名称)参数生成签署链接,<font color=\"red\">请确保此企业已完成腾讯电子签企业认证</font>。\n- 子客企业员工用户批量签署,需要传递员工OpenId和子客企业的OrganizationOpenId。<font color=\"red\">请确保此OrganizationOpenId对应子客已经认证,且OpenId对应员工此子客下已经实名</font>。Name,Mobile, IdCard等信息此时可以不传,系统会查询此OpenId实名信息自动补充。\n- 生成批量签署链接时,合同目标参与方状态需为<font color=\"red\">待签署</font>状态。\n- 个人批量签署进行的合同的签名区, 全部变成<font color=\"red\">手写签名</font>(不管合同里边设置的签名限制)来进行。\n- 不支持签署方含有签批控件,或设置了签署方在签署时自行添加签署控件功能的合同进行批量签署。\n- 进行小程序批量签署必须指定待签署的流程id,<font color=\"red\">接口中FlowIds参数必传。</font>",
54
54
  "input": "ChannelCreateBatchSignUrlRequest",
55
55
  "name": "获取跳转至腾讯电子签小程序的批量签署链接",
56
56
  "output": "ChannelCreateBatchSignUrlResponse",
@@ -2006,7 +2006,7 @@
2006
2006
  },
2007
2007
  {
2008
2008
  "disabled": false,
2009
- "document": "批量签署的合同流程ID数组。\n注: `在调用此接口时,请确保合同流程均为本企业发起,且合同数量不超过100个。`",
2009
+ "document": "批量签署的合同流程ID数组。<font color=\"red\">此参数必传。</font>\n注: `在调用此接口时,请确保合同流程均为本企业发起,且合同数量不超过100个。`",
2010
2010
  "example": "[\"yDwcCUUgyg3tgmwcUEVzyNaupO7DiB3E\"]",
2011
2011
  "member": "string",
2012
2012
  "name": "FlowIds",
@@ -2096,7 +2096,7 @@
2096
2096
  },
2097
2097
  {
2098
2098
  "disabled": false,
2099
- "document": "是否允许此链接中签署方批量确认已读文件。 <ul><li>false (默认): 不允许批量确认已读文件。</li> <li>true : 允许批量确认已读文件。</li></ul>注:`1. 此功能为白名单功能,使用前请联系对应客户经理进行开通。2. 使用此功能时,FlowIds参数必传。3. 对于企业签署方,如果有签名控件,则会使用用户首次选择的签名类型签署所有含有签名控件的合同。`",
2099
+ "document": "是否允许此链接中签署方批量确认已读文件。 <ul><li>false (默认): 不允许批量确认已读文件。</li> <li>true : 允许批量确认已读文件。</li></ul>\n注:`1. 此功能为白名单功能,使用前请联系对应客户经理进行开通。2. 使用此功能时,FlowIds参数必传。3. 对于企业签署方,如果对印章/签名控件有限制要求,需要保证所有印章/签名控件的限制要求(印章id或印章/签名类型限制)一致,否则无法使用此功能。`",
2100
2100
  "example": "false",
2101
2101
  "member": "bool",
2102
2102
  "name": "CanSkipReadFlow",
@@ -7126,8 +7126,8 @@
7126
7126
  },
7127
7127
  {
7128
7128
  "disabled": false,
7129
- "document": "可选的此企业允许的授权方式, 可以设置的方式有:\n<ul><li>1:上传授权书</li>\n<li>2:转法定代表人授权</li>\n<li>4:企业实名认证(信任第三方认证源)(此项有排他性, 选择后不能增添其他的方式)</li></ul>\n注:<ul>\n<li>未选择信任第三方认证源时,如果是法人进行企业激活,仅支持法人扫脸直接授权,该配置不对此法人生效`</li>\n<li>选择信任第三方认证源时,请先通过<a href=\"https://qian.tencent.com/developers/partnerApis/accounts/SyncProxyOrganization\" target=\"_blank\">同步企业信息</a>接口同步信息。</li>\n<li>该参数仅在企业未激活时生效</li>\n</ul>",
7130
- "example": "[1, 2, 4]",
7129
+ "document": "可选的此企业允许的授权方式, 可以设置的方式有:\n<ul><li>1:上传授权书</li>\n<li>2:转法定代表人授权</li>\n</ul>",
7130
+ "example": "[1, 2]",
7131
7131
  "member": "int64",
7132
7132
  "name": "AuthorizationTypes",
7133
7133
  "required": false,
@@ -11903,6 +11903,15 @@
11903
11903
  "name": "OperateType",
11904
11904
  "required": true,
11905
11905
  "type": "string"
11906
+ },
11907
+ {
11908
+ "disabled": false,
11909
+ "document": "模板名称,长度不超过64字符。<br>\n模板复制时指定有效,若为空,则复制后模板名称为 **原模板名称_副本**。",
11910
+ "example": "入职合同",
11911
+ "member": "string",
11912
+ "name": "TemplateName",
11913
+ "required": false,
11914
+ "type": "string"
11906
11915
  }
11907
11916
  ],
11908
11917
  "type": "object"
@@ -11910,6 +11919,26 @@
11910
11919
  "OperateTemplateResponse": {
11911
11920
  "document": "OperateTemplate返回参数结构体",
11912
11921
  "members": [
11922
+ {
11923
+ "disabled": false,
11924
+ "document": "模板ID,为32位字符串,模板复制新建时返回",
11925
+ "example": "yDt3sUUckpxzhjc9UxGKGtnEys9Scr8j",
11926
+ "member": "string",
11927
+ "name": "TemplateId",
11928
+ "output_required": false,
11929
+ "type": "string",
11930
+ "value_allowed_null": false
11931
+ },
11932
+ {
11933
+ "disabled": false,
11934
+ "document": "模板名称,模板复制新建时返回",
11935
+ "example": "入职合同",
11936
+ "member": "string",
11937
+ "name": "TemplateName",
11938
+ "output_required": false,
11939
+ "type": "string",
11940
+ "value_allowed_null": false
11941
+ },
11913
11942
  {
11914
11943
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
11915
11944
  "member": "string",
@@ -433,6 +433,58 @@ def doCreateDataRepositoryTask(args, parsed_globals):
433
433
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
434
434
 
435
435
 
436
+ def doBuildClientNodeMountCommand(args, parsed_globals):
437
+ g_param = parse_global_arg(parsed_globals)
438
+
439
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
440
+ cred = credential.CVMRoleCredential()
441
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
442
+ cred = credential.STSAssumeRoleCredential(
443
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
444
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
445
+ )
446
+ 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):
447
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
448
+ else:
449
+ cred = credential.Credential(
450
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
451
+ )
452
+ http_profile = HttpProfile(
453
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
454
+ reqMethod="POST",
455
+ endpoint=g_param[OptionsDefine.Endpoint],
456
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
457
+ )
458
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
459
+ if g_param[OptionsDefine.Language]:
460
+ profile.language = g_param[OptionsDefine.Language]
461
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
462
+ client = mod.GoosefsClient(cred, g_param[OptionsDefine.Region], profile)
463
+ client._sdkVersion += ("_CLI_" + __version__)
464
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
465
+ model = models.BuildClientNodeMountCommandRequest()
466
+ model.from_json_string(json.dumps(args))
467
+ start_time = time.time()
468
+ while True:
469
+ rsp = client.BuildClientNodeMountCommand(model)
470
+ result = rsp.to_json_string()
471
+ try:
472
+ json_obj = json.loads(result)
473
+ except TypeError as e:
474
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
475
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
476
+ break
477
+ cur_time = time.time()
478
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
479
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
480
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
481
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
482
+ else:
483
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
484
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
485
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
486
+
487
+
436
488
  def doDeleteFileSystem(args, parsed_globals):
437
489
  g_param = parse_global_arg(parsed_globals)
438
490
 
@@ -1388,6 +1440,7 @@ ACTION_MAP = {
1388
1440
  "ModifyDataRepositoryBandwidth": doModifyDataRepositoryBandwidth,
1389
1441
  "BatchDeleteClientNodes": doBatchDeleteClientNodes,
1390
1442
  "CreateDataRepositoryTask": doCreateDataRepositoryTask,
1443
+ "BuildClientNodeMountCommand": doBuildClientNodeMountCommand,
1391
1444
  "DeleteFileSystem": doDeleteFileSystem,
1392
1445
  "CreateFileset": doCreateFileset,
1393
1446
  "DeleteFileset": doDeleteFileset,
@@ -28,6 +28,13 @@
28
28
  "output": "BatchDeleteClientNodesResponse",
29
29
  "status": "online"
30
30
  },
31
+ "BuildClientNodeMountCommand": {
32
+ "document": "生成客户端的挂载命令",
33
+ "input": "BuildClientNodeMountCommandRequest",
34
+ "name": "生成客户端节点的挂载命令",
35
+ "output": "BuildClientNodeMountCommandResponse",
36
+ "status": "online"
37
+ },
31
38
  "CreateDataRepositoryTask": {
32
39
  "document": "创建数据流通任务,包括从将文件系统的数据上传到存储桶下, 以及从存储桶下载到文件系统里。",
33
40
  "input": "CreateDataRepositoryTaskRequest",
@@ -92,11 +99,11 @@
92
99
  "status": "online"
93
100
  },
94
101
  "DescribeClusterRoles": {
95
- "document": "查询GooseFS集群角色",
102
+ "document": "接口废弃\n\n查询GooseFS集群角色",
96
103
  "input": "DescribeClusterRolesRequest",
97
104
  "name": "查询GooseFS集群角色",
98
105
  "output": "DescribeClusterRolesResponse",
99
- "status": "online"
106
+ "status": "deprecated"
100
107
  },
101
108
  "DescribeDataRepositoryTaskStatus": {
102
109
  "document": "获取数据流通任务实时状态,用作客户端控制",
@@ -352,6 +359,52 @@
352
359
  ],
353
360
  "type": "object"
354
361
  },
362
+ "BuildClientNodeMountCommandRequest": {
363
+ "document": "BuildClientNodeMountCommand请求参数结构体",
364
+ "members": [
365
+ {
366
+ "disabled": false,
367
+ "document": "文件系统ID",
368
+ "example": "x-c60-a2b3d4",
369
+ "member": "string",
370
+ "name": "FileSystemId",
371
+ "required": true,
372
+ "type": "string"
373
+ },
374
+ {
375
+ "disabled": false,
376
+ "document": "自定义挂载目录的绝对路径, 如果未指定, 则会使用默认值, 格式/goosefsx/${fs_id}-proxy. 比如/goosefsx/x-c60-a2b3d4-proxy",
377
+ "example": "/train_data",
378
+ "member": "string",
379
+ "name": "CustomMountDir",
380
+ "required": false,
381
+ "type": "string"
382
+ }
383
+ ],
384
+ "type": "object"
385
+ },
386
+ "BuildClientNodeMountCommandResponse": {
387
+ "document": "BuildClientNodeMountCommand返回参数结构体",
388
+ "members": [
389
+ {
390
+ "disabled": false,
391
+ "document": "挂载命令",
392
+ "example": "test",
393
+ "member": "string",
394
+ "name": "Command",
395
+ "output_required": false,
396
+ "type": "string",
397
+ "value_allowed_null": false
398
+ },
399
+ {
400
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
401
+ "member": "string",
402
+ "name": "RequestId",
403
+ "type": "string"
404
+ }
405
+ ],
406
+ "type": "object"
407
+ },
355
408
  "ChargeAttribute": {
356
409
  "document": "付费信息详情",
357
410
  "members": [
@@ -32,6 +32,14 @@
32
32
  "title": "批量删除客户端节点"
33
33
  }
34
34
  ],
35
+ "BuildClientNodeMountCommand": [
36
+ {
37
+ "document": "获取某个文件系统的客户端挂载命令",
38
+ "input": "POST / HTTP/1.1\nHost: goosefs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateFileSystemStatus\n<公共请求参数>\n\n{\n \"FileSystemId\": \"x-c60-a2b3d4\",\n \"CustomMountDir\": \"/train_data\"\n}",
39
+ "output": "{\n \"Response\": {\n \"Command\": \"wget https://goosefsx-bucket-12510000.cos.ap-beijing.myqcloud.com/client_env_package/agent/install-goosefsx-client.sh;chmod +x install-goosefsx-client.sh; ./install-goosefsx-client.sh; 172.3.1.2:55533,172.3.1.3:55533,172.3.1.4:55533 /train_data\",\n \"RequestId\": \"c579ea0b-d04f-4cc0-a6e2-fc6bad036017\"\n }\n}",
40
+ "title": "获取文件系统的客户端挂载命令"
41
+ }
42
+ ],
35
43
  "CreateDataRepositoryTask": [
36
44
  {
37
45
  "document": "创建上传文件系统数据到存储桶任务",