tccli 3.0.1215.1__py2.py3-none-any.whl → 3.0.1216.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/configure.py +46 -1
- tccli/services/__init__.py +0 -3
- tccli/services/apm/v20210622/api.json +20 -0
- tccli/services/asr/v20190614/api.json +3 -3
- tccli/services/bi/v20220105/api.json +32 -4
- tccli/services/bi/v20220105/examples.json +1 -1
- tccli/services/billing/billing_client.py +53 -0
- tccli/services/billing/v20180709/api.json +304 -0
- tccli/services/billing/v20180709/examples.json +8 -0
- tccli/services/bsca/v20210811/api.json +222 -17
- tccli/services/bsca/v20210811/examples.json +4 -4
- tccli/services/ccc/ccc_client.py +53 -0
- tccli/services/ccc/v20200210/api.json +167 -18
- tccli/services/ccc/v20200210/examples.json +11 -3
- tccli/services/cdb/v20170320/api.json +13 -4
- tccli/services/cdb/v20170320/examples.json +1 -1
- tccli/services/cdn/v20180606/api.json +5 -3
- tccli/services/cdwdoris/v20211228/api.json +12 -2
- tccli/services/cfw/v20190904/api.json +81 -47
- tccli/services/cfw/v20190904/examples.json +46 -40
- tccli/services/ciam/v20220331/api.json +316 -315
- tccli/services/ciam/v20220331/examples.json +49 -49
- tccli/services/cloudaudit/cloudaudit_client.py +30 -30
- tccli/services/cloudaudit/v20190319/api.json +215 -186
- tccli/services/cloudaudit/v20190319/examples.json +13 -13
- tccli/services/cls/v20201016/api.json +365 -66
- tccli/services/cls/v20201016/examples.json +9 -3
- tccli/services/csip/v20221121/api.json +4 -4
- tccli/services/cvm/v20170312/api.json +42 -0
- tccli/services/cwp/v20180228/api.json +217 -163
- tccli/services/cwp/v20180228/examples.json +53 -65
- tccli/services/cynosdb/v20190107/api.json +77 -29
- tccli/services/cynosdb/v20190107/examples.json +22 -22
- tccli/services/dasb/v20191018/api.json +77 -0
- tccli/services/dasb/v20191018/examples.json +5 -5
- tccli/services/domain/v20180808/api.json +3 -3
- tccli/services/domain/v20180808/examples.json +3 -3
- tccli/services/eb/v20210416/api.json +15 -15
- tccli/services/eb/v20210416/examples.json +1 -1
- tccli/services/es/es_client.py +249 -37
- tccli/services/es/v20180416/api.json +521 -0
- tccli/services/es/v20180416/examples.json +32 -0
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +145 -9
- tccli/services/ess/v20201111/examples.json +15 -1
- tccli/services/essbasic/essbasic_client.py +106 -0
- tccli/services/essbasic/v20210526/api.json +234 -12
- tccli/services/essbasic/v20210526/examples.json +22 -0
- tccli/services/gaap/v20180529/api.json +44 -26
- tccli/services/gaap/v20180529/examples.json +24 -30
- tccli/services/iotexplorer/v20190423/api.json +40 -0
- tccli/services/live/v20180801/api.json +35 -9
- tccli/services/mongodb/v20190725/api.json +6 -8
- tccli/services/ocr/v20181119/api.json +2 -2
- tccli/services/organization/organization_client.py +352 -34
- tccli/services/organization/v20210331/api.json +451 -0
- tccli/services/organization/v20210331/examples.json +48 -0
- tccli/services/region/v20220627/api.json +1 -1
- tccli/services/scf/scf_client.py +269 -4
- tccli/services/scf/v20180416/api.json +554 -0
- tccli/services/scf/v20180416/examples.json +46 -0
- tccli/services/ssl/v20191205/api.json +1 -1
- tccli/services/tat/v20201028/api.json +27 -25
- tccli/services/tat/v20201028/examples.json +4 -4
- tccli/services/tcss/v20201101/api.json +13 -13
- tccli/services/tcss/v20201101/examples.json +5 -5
- tccli/services/tdmq/v20200217/api.json +64 -63
- tccli/services/tdmq/v20200217/examples.json +2 -2
- tccli/services/tem/v20210701/api.json +144 -103
- tccli/services/tem/v20210701/examples.json +27 -27
- tccli/services/teo/teo_client.py +277 -12
- tccli/services/teo/v20220901/api.json +1020 -143
- tccli/services/teo/v20220901/examples.json +71 -1
- tccli/services/tke/tke_client.py +53 -0
- tccli/services/tke/v20180525/api.json +43 -0
- tccli/services/tke/v20180525/examples.json +8 -0
- tccli/services/tms/tms_client.py +4 -57
- tccli/services/tms/v20201229/api.json +0 -354
- tccli/services/tms/v20201229/examples.json +0 -8
- tccli/services/trtc/v20190722/api.json +221 -22
- tccli/services/vpc/v20170312/api.json +105 -30
- tccli/services/vpc/v20170312/examples.json +10 -2
- tccli/services/vpc/vpc_client.py +107 -54
- tccli/services/waf/v20180125/api.json +61 -0
- tccli/services/waf/v20180125/examples.json +8 -0
- tccli/services/waf/waf_client.py +53 -0
- tccli/services/wedata/v20210820/api.json +686 -0
- tccli/services/wedata/v20210820/examples.json +16 -0
- tccli/services/wedata/wedata_client.py +106 -0
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1216.1.dist-info}/METADATA +6 -2
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1216.1.dist-info}/RECORD +95 -99
- tccli/services/cr/__init__.py +0 -4
- tccli/services/cr/cr_client.py +0 -1626
- tccli/services/cr/v20180321/api.json +0 -2829
- tccli/services/cr/v20180321/examples.json +0 -235
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1216.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1216.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1216.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/ess/ess_client.py
CHANGED
@@ -3657,6 +3657,58 @@ def doCreateIntegrationEmployees(args, parsed_globals):
|
|
3657
3657
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3658
3658
|
|
3659
3659
|
|
3660
|
+
def doDeleteOrganizationAuthorizations(args, parsed_globals):
|
3661
|
+
g_param = parse_global_arg(parsed_globals)
|
3662
|
+
|
3663
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3664
|
+
cred = credential.CVMRoleCredential()
|
3665
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3666
|
+
cred = credential.STSAssumeRoleCredential(
|
3667
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3668
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3669
|
+
)
|
3670
|
+
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):
|
3671
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3672
|
+
else:
|
3673
|
+
cred = credential.Credential(
|
3674
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3675
|
+
)
|
3676
|
+
http_profile = HttpProfile(
|
3677
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3678
|
+
reqMethod="POST",
|
3679
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3680
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3681
|
+
)
|
3682
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3683
|
+
if g_param[OptionsDefine.Language]:
|
3684
|
+
profile.language = g_param[OptionsDefine.Language]
|
3685
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3686
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
3687
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3688
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3689
|
+
model = models.DeleteOrganizationAuthorizationsRequest()
|
3690
|
+
model.from_json_string(json.dumps(args))
|
3691
|
+
start_time = time.time()
|
3692
|
+
while True:
|
3693
|
+
rsp = client.DeleteOrganizationAuthorizations(model)
|
3694
|
+
result = rsp.to_json_string()
|
3695
|
+
try:
|
3696
|
+
json_obj = json.loads(result)
|
3697
|
+
except TypeError as e:
|
3698
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3699
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3700
|
+
break
|
3701
|
+
cur_time = time.time()
|
3702
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3703
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3704
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3705
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3706
|
+
else:
|
3707
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3708
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3709
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3710
|
+
|
3711
|
+
|
3660
3712
|
def doCreateBatchQuickSignUrl(args, parsed_globals):
|
3661
3713
|
g_param = parse_global_arg(parsed_globals)
|
3662
3714
|
|
@@ -4934,6 +4986,7 @@ ACTION_MAP = {
|
|
4934
4986
|
"CreateWebThemeConfig": doCreateWebThemeConfig,
|
4935
4987
|
"CreateDynamicFlowApprover": doCreateDynamicFlowApprover,
|
4936
4988
|
"CreateIntegrationEmployees": doCreateIntegrationEmployees,
|
4989
|
+
"DeleteOrganizationAuthorizations": doDeleteOrganizationAuthorizations,
|
4937
4990
|
"CreateBatchQuickSignUrl": doCreateBatchQuickSignUrl,
|
4938
4991
|
"ModifyApplicationCallbackInfo": doModifyApplicationCallbackInfo,
|
4939
4992
|
"CancelFlow": doCancelFlow,
|
@@ -127,7 +127,7 @@
|
|
127
127
|
"status": "online"
|
128
128
|
},
|
129
129
|
"CreateFlowApprovers": {
|
130
|
-
"document": "**适用场景 :**\n\n当通过模板或文件发起合同时, 签署人不制定, 等合同发起后再指定 可以用下面2种方案\n\n<b><font color=\"red\">1. 或签合同</font>: 若未指定企业签署人信息(只指定企业的名字),合同变成或签合同(个人签署方不支持或签合同)</b>。需调用此接口补充或添加签署人。或签签署人在控制台上的展示样式如下(会带有<b>或签</b>标识):\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/b2715f0236faee807cfc0521f93cf01b.png)\n\n<b><font color=\"red\">2. 动态签署人合同</font>: 若未指定具体签署人的信息,则合同变成动态签署人合同</b>。需调用此接口补充或添加签署人。可以参考文档 <a href=\"https://qian.tencent.com/developers/company/dynamic_signer/\" target=\"_blank\">动态签署人合同</a> 。动态签署人在控制台上的展示样式如下:\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/2729477978e020c3bbb4d2e767bb78eb.png)\n\n实际签署人需要通过[获取跳转至腾讯电子签小程序的签署链接](https://qian.tencent.com/developers/companyApis/startFlows/CreateSchemeUrl/)生成的链接进入小程序,领取合同并签署。同一签署环节可补充多个员工作为或签署人,最终实际签署人取决于谁先领取合同完成签署。\n\n\n**限制条件**:\n\n1.本企业(发起方企业)企业微信签署人仅支持通过企业微信UserId或姓名+手机号进行补充。\n\n2.本企业(发起方企业)非企业微信签署人仅支持通过姓名+手机号进行补充。\n\n3.他方企业仅支持通过姓名+手机号进行补充。\n\n4.个人签署人支持通过姓名+手机号进行补充(若<b>个人用户已完成实名</b>,动态签署人合同也可以可通过姓名+证件号码进行补充)\n\n\n**整体流程如下图:**\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/29a0fba0ceebf9227849459947384862.png)",
|
130
|
+
"document": "**适用场景 :**\n\n当通过模板或文件发起合同时, 签署人不制定, 等合同发起后再指定 可以用下面2种方案\n\n<b><font color=\"red\">1. 或签合同</font>: 若未指定企业签署人信息(只指定企业的名字),合同变成或签合同(个人签署方不支持或签合同)</b>。需调用此接口补充或添加签署人。或签签署人在控制台上的展示样式如下(会带有<b>或签</b>标识):\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/b2715f0236faee807cfc0521f93cf01b.png)\n\n<b><font color=\"red\">2. 动态签署人合同</font>: 若未指定具体签署人的信息,则合同变成动态签署人合同</b>。需调用此接口补充或添加签署人。可以参考文档 <a href=\"https://qian.tencent.com/developers/company/dynamic_signer/\" target=\"_blank\">动态签署人合同</a> 。动态签署人在控制台上的展示样式如下:\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/2729477978e020c3bbb4d2e767bb78eb.png)\n\n实际签署人需要通过[获取跳转至腾讯电子签小程序的签署链接](https://qian.tencent.com/developers/companyApis/startFlows/CreateSchemeUrl/)生成的链接进入小程序,领取合同并签署。同一签署环节可补充多个员工作为或签署人,最终实际签署人取决于谁先领取合同完成签署。\n\n**接口使用说明**:\n\n1.本接口现已支持批量补充签署人\n\n2.当<a href=\"https://qian.tencent.com/developers/companyApis/dataTypes/#fillapproverinfo/\" target=\"_blank\">补充签署人结构体</a>中指定需要补充的FlowId时,可以对指定合同补充签署人;可以指定多个相同发起方的不同合同在完成批量补充\n\n3.当<a href=\"https://qian.tencent.com/developers/companyApis/operateFlows/CreateFlowApprovers/\" target=\"_blank\">补充签署人接口入参</a>中指定需要补充的FlowId时,是对指定的合同补充多个指定的签署人\n\n4.如果同时指定了<a href=\"https://qian.tencent.com/developers/companyApis/dataTypes/#fillapproverinfo/\" target=\"_blank\">补充签署人结构体</a>中的FlowId和<a href=\"https://qian.tencent.com/developers/companyApis/operateFlows/CreateFlowApprovers/\" target=\"_blank\">补充签署人接口入参</a>中的FlowId,仅使用<a href=\"https://qian.tencent.com/developers/companyApis/dataTypes/#fillapproverinfo/\" target=\"_blank\">补充签署人结构体</a>中的FlowId作为补充的合同\n\n5.如果部分指定了<a href=\"https://qian.tencent.com/developers/companyApis/dataTypes/#fillapproverinfo/\" target=\"_blank\">补充签署人结构体</a>中的FlowId,又指定了<a href=\"https://qian.tencent.com/developers/companyApis/operateFlows/CreateFlowApprovers/\" target=\"_blank\">补充签署人接口入参</a>中的FlowId;那么<a href=\"https://qian.tencent.com/developers/companyApis/dataTypes/#fillapproverinfo/\" target=\"_blank\">补充签署人结构体</a>存在指定的FlowId,则使用<a href=\"https://qian.tencent.com/developers/companyApis/dataTypes/#fillapproverinfo/\" target=\"_blank\">补充签署人结构体</a>中的FlowId,不存在则使用<a href=\"https://qian.tencent.com/developers/companyApis/operateFlows/CreateFlowApprovers/\" target=\"_blank\">补充签署人接口入参</a>中的FlowId作为补充的合同\n\n\n6.如果同时未指定了<a href=\"https://qian.tencent.com/developers/companyApis/dataTypes/#fillapproverinfo/\" target=\"_blank\">补充签署人结构体</a>中的FlowId和<a href=\"https://qian.tencent.com/developers/companyApis/operateFlows/CreateFlowApprovers/\" target=\"_blank\">补充签署人接口入参</a>中的FlowId,则传参错误。\n\n7. 新加入的签署方<font color=\"red\">平台不会发送短信</font>进行签署。请您生成相应的链接,并将其发送给该签署方以便完成签署过程。\n\n**限制条件**:\n\n1.本企业(发起方企业)企业微信签署人仅支持通过企业微信UserId或姓名+手机号进行补充。\n\n2.本企业(发起方企业)非企业微信签署人仅支持通过姓名+手机号进行补充。\n\n3.他方企业仅支持通过姓名+手机号进行补充。\n\n4.个人签署人支持通过姓名+手机号进行补充(若<b>个人用户已完成实名</b>,动态签署人合同也可以可通过姓名+证件号码进行补充)\n\n\n**整体流程如下图:**\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/29a0fba0ceebf9227849459947384862.png)",
|
131
131
|
"input": "CreateFlowApproversRequest",
|
132
132
|
"name": "补充签署流程签署人信息",
|
133
133
|
"output": "CreateFlowApproversResponse",
|
@@ -302,7 +302,7 @@
|
|
302
302
|
"status": "online"
|
303
303
|
},
|
304
304
|
"CreateReleaseFlow": {
|
305
|
-
"document": "发起解除协议的主要应用场景为:基于一份已经签署的合同(签署流程),进行解除操作。\n解除协议的模板是官方提供
|
305
|
+
"document": "发起解除协议的主要应用场景为:基于一份已经签署的合同(签署流程),进行解除操作。\n解除协议的模板是官方提供 ,经过提供法务审核,暂不支持自定义。具体用法可以参考文档[合同解除](https://qian.tencent.com/developers/company/flow_release)。\n\n注意:\n<ul>\n<li><strong>完成原合同签署后方可发起解除协议:</strong>只有在原合同所有签署人完成签署后,才可以启动解除协议的流程。</li>\n<li><strong>原合同状态更新:</strong>解除协议一旦签署完毕,原合同及解除协议状态将更新为“已解除”。</li>\n<li><strong>解除协议的个人参与要求:</strong>原合同中的个人参与者必须直接参与解除协议,禁止替换为其他第三方个人。</li>\n<li><strong>企业参与人的代理权:</strong>若原合同的企业参与人无法亲自参与解除协议,可指派具有等同权限的企业员工代行。</li>\n<li><strong>解除协议的费用问题:</strong>发起解除协议将产生费用,其扣费标准与其他企业合同相同。</li>\n<li><strong>解除协议的发起资格:</strong>仅限原合同中的企业类型参与者发起解除协议,个人参与者无此权限。</li>\n<li><strong>非原合同企业参与者的权限:</strong>非原合同的企业参与者发起解除协议时,必须具备相应的解除权限。</li>\n<li><strong>自动签署:</strong>支持本企业的自动签署,不支持其他企业的自动签署(不能不动神色的把别人参与的合同作废了)</li>\n</ul>\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/3427941ecb091bf0c55009bad192dd1c.png)",
|
306
306
|
"input": "CreateReleaseFlowRequest",
|
307
307
|
"name": "发起解除协议",
|
308
308
|
"output": "CreateReleaseFlowResponse",
|
@@ -392,6 +392,13 @@
|
|
392
392
|
"output": "DeleteIntegrationRoleUsersResponse",
|
393
393
|
"status": "online"
|
394
394
|
},
|
395
|
+
"DeleteOrganizationAuthorizations": {
|
396
|
+
"document": "批量清理未认证的企业认证流程。\n\n此接口用来清除企业方认证信息填写错误,批量清理认证中的认证流信息。\n为接口[创建企业批量认证链接](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks) 和[查询企业批量认证链接](https://qian.tencent.com/developers/companyApis/organizations/DescribeBatchOrganizationRegistrationUrls) 接口的扩展接口。即在批量认证过程中,当发起认证企业发现超管信息错误的时候,可以将当前超管下的所有认证流企业清除。\n\n注意:\n**这个接口的操作人必须跟生成批量认证链接接口的操作人一致,才可以调用,否则会返回当前操作人没有认证中的企业认证流**",
|
397
|
+
"input": "DeleteOrganizationAuthorizationsRequest",
|
398
|
+
"name": "批量清除未认证的企业认证流",
|
399
|
+
"output": "DeleteOrganizationAuthorizationsResponse",
|
400
|
+
"status": "online"
|
401
|
+
},
|
395
402
|
"DeleteSealPolicies": {
|
396
403
|
"document": "本接口(DeleteSealPolicies)用于撤销企业员工持有的印章权限",
|
397
404
|
"input": "DeleteSealPoliciesRequest",
|
@@ -442,7 +449,7 @@
|
|
442
449
|
"status": "online"
|
443
450
|
},
|
444
451
|
"DescribeFileUrls": {
|
445
|
-
"document": "本接口(DescribeFileUrls)用于查询文件的下载URL。\n适用场景:通过传参合同流程编号,下载对应的合同PDF
|
452
|
+
"document": "本接口(DescribeFileUrls)用于查询文件的下载URL。\n适用场景:通过传参合同流程编号,下载对应的合同PDF文件流到本地。\n\n\n**注**:用户创建合同或者提交签署动作后,后台需要1~3秒的时间就进行合同PDF合成或者签名,为了确保您下载的是签署完成的完整合同文件,我们建议采取下面两种方式的一种来<font color=\"red\"><b>确保PDF已经合成完成,然后在调用本接口</b></font>。\n\n**第一种**:请确保您的系统配置了[接收合同完成通知的回调](https://qian.tencent.com/developers/company/callback_types_contracts_sign)功能。一旦所有参与方签署完毕,我们的系统将自动向您提供的回调地址发送完成通知。\n**第二种**:通过调用我们的[获取合同信息](https://qian.tencent.com/developers/companyApis/queryFlows/DescribeFlowBriefs)接口来主动检查合同的签署状态。请仅在确认合同状态为“签署完成”后,进行文件的下载操作。",
|
446
453
|
"input": "DescribeFileUrlsRequest",
|
447
454
|
"name": "查询文件下载URL",
|
448
455
|
"output": "DescribeFileUrlsResponse",
|
@@ -568,7 +575,7 @@
|
|
568
575
|
"status": "online"
|
569
576
|
},
|
570
577
|
"GetTaskResultApi": {
|
571
|
-
"document": "此接口(GetTaskResultApi)用来查询转换任务的状态。如需发起转换任务,请使用<a href=\"https://qian.tencent.com/developers/companyApis/templatesAndFiles/CreateConvertTaskApi\" target=\"_blank\">创建文件转换任务接口</a>进行资源文件的转换操作<br />\n前提条件:已调用 <a href=\"https://qian.tencent.com/developers/companyApis/templatesAndFiles/CreateConvertTaskApi\" target=\"_blank\">创建文件转换任务接口</a>进行文件转换,并得到了返回的转换任务Id。<br />\n\n适用场景:已创建一个文件转换任务,想查询该文件转换任务的状态,或获取转换后的文件资源Id。<br />\n注:\n1.
|
578
|
+
"document": "此接口(GetTaskResultApi)用来查询转换任务的状态。如需发起转换任务,请使用<a href=\"https://qian.tencent.com/developers/companyApis/templatesAndFiles/CreateConvertTaskApi\" target=\"_blank\">创建文件转换任务接口</a>进行资源文件的转换操作<br />\n前提条件:已调用 <a href=\"https://qian.tencent.com/developers/companyApis/templatesAndFiles/CreateConvertTaskApi\" target=\"_blank\">创建文件转换任务接口</a>进行文件转换,并得到了返回的转换任务Id。<br />\n\n适用场景:已创建一个文件转换任务,想查询该文件转换任务的状态,或获取转换后的文件资源Id。<br />\n注:\n1. `大文件转换所需的时间可能会比较长`\n2. `本接口返回的文件资源ID就是PDF资源ID,可以直接用于【用PDF文件创建签署流程】接口发起合同。`",
|
572
579
|
"input": "GetTaskResultApiRequest",
|
573
580
|
"name": "查询转换任务状态",
|
574
581
|
"output": "GetTaskResultApiResponse",
|
@@ -1032,7 +1039,7 @@
|
|
1032
1039
|
},
|
1033
1040
|
{
|
1034
1041
|
"disabled": false,
|
1035
|
-
"document": "签署人信息补充类型,默认无需补充。\n\n<ul><li> **1** :
|
1042
|
+
"document": "签署人信息补充类型,默认无需补充。\n\n<ul><li> **1** : 动态签署人(可发起合同后再补充签署人信息)注:`企业自动签不支持动态补充`</li></ul>\n\n注:\n`使用动态签署人能力前,需登陆腾讯电子签控制台打开服务开关`",
|
1036
1043
|
"example": "无",
|
1037
1044
|
"member": "int64",
|
1038
1045
|
"name": "FillType",
|
@@ -3391,7 +3398,7 @@
|
|
3391
3398
|
},
|
3392
3399
|
{
|
3393
3400
|
"disabled": false,
|
3394
|
-
"document": "合同流程ID,为32位字符串。\n建议开发者妥善保存此流程ID,以便于顺利进行后续操作。\n可登录腾讯电子签控制台,在 \"合同\"->\"合同中心\" 中查看某个合同的FlowId(在页面中展示为合同ID)
|
3401
|
+
"document": "合同流程ID,为32位字符串。\n- 建议开发者妥善保存此流程ID,以便于顺利进行后续操作。\n- 可登录腾讯电子签控制台,在 \"合同\"->\"合同中心\" 中查看某个合同的FlowId(在页面中展示为合同ID)。\n- <font color=\"red\">不建议继续使用</font>,请使用<a href=\"https://qian.tencent.com/developers/companyApis/dataTypes/#fillapproverinfo/\" target=\"_blank\">补充签署人结构体</a>中的FlowId来指定需要补充的合同id",
|
3395
3402
|
"example": "无",
|
3396
3403
|
"member": "string",
|
3397
3404
|
"name": "FlowId",
|
@@ -6467,7 +6474,7 @@
|
|
6467
6474
|
},
|
6468
6475
|
{
|
6469
6476
|
"disabled": false,
|
6470
|
-
"document": "
|
6477
|
+
"document": "合同流程签署方的组织机构名称。如果名称中包含英文括号(),请使用中文括号()代替。注: `获取B端动态签署人领取链接时,可指定此字段来预先设定签署人的企业,预设后只能以该企业身份去领取合同并完成签署`",
|
6471
6478
|
"example": "典子谦示例企业",
|
6472
6479
|
"member": "string",
|
6473
6480
|
"name": "OrganizationName",
|
@@ -7725,6 +7732,125 @@
|
|
7725
7732
|
],
|
7726
7733
|
"type": "object"
|
7727
7734
|
},
|
7735
|
+
"DeleteOrganizationAuthorizationInfo": {
|
7736
|
+
"document": "清理的企业认证流信息",
|
7737
|
+
"members": [
|
7738
|
+
{
|
7739
|
+
"disabled": false,
|
7740
|
+
"document": "认证流 Id 是指在企业认证过程中,当前操作人的认证流程的唯一标识。每个企业在认证过程中只能有一条认证流认证成功。这意味着在同一认证过程内,一个企业只能有一个认证流程处于成功状态,以确保认证的唯一性和有效性。",
|
7741
|
+
"example": "yDCHHUUckpbdaiqbUxJVsHWy99WG6kTY",
|
7742
|
+
"member": "string",
|
7743
|
+
"name": "AuthorizationId",
|
7744
|
+
"output_required": false,
|
7745
|
+
"type": "string",
|
7746
|
+
"value_allowed_null": false
|
7747
|
+
},
|
7748
|
+
{
|
7749
|
+
"disabled": false,
|
7750
|
+
"document": "认证的企业名称",
|
7751
|
+
"example": "典子谦示例企业",
|
7752
|
+
"member": "string",
|
7753
|
+
"name": "OrganizationName",
|
7754
|
+
"output_required": false,
|
7755
|
+
"type": "string",
|
7756
|
+
"value_allowed_null": false
|
7757
|
+
},
|
7758
|
+
{
|
7759
|
+
"disabled": false,
|
7760
|
+
"document": "清除认证流产生的错误信息",
|
7761
|
+
"example": "无",
|
7762
|
+
"member": "string",
|
7763
|
+
"name": "Errormessage",
|
7764
|
+
"output_required": false,
|
7765
|
+
"type": "string",
|
7766
|
+
"value_allowed_null": false
|
7767
|
+
}
|
7768
|
+
],
|
7769
|
+
"usage": "out"
|
7770
|
+
},
|
7771
|
+
"DeleteOrganizationAuthorizationsRequest": {
|
7772
|
+
"document": "DeleteOrganizationAuthorizations请求参数结构体",
|
7773
|
+
"members": [
|
7774
|
+
{
|
7775
|
+
"disabled": false,
|
7776
|
+
"document": "执行本接口操作的员工信息, userId 必填。\n注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`",
|
7777
|
+
"example": "无",
|
7778
|
+
"member": "UserInfo",
|
7779
|
+
"name": "Operator",
|
7780
|
+
"required": true,
|
7781
|
+
"type": "object"
|
7782
|
+
},
|
7783
|
+
{
|
7784
|
+
"disabled": false,
|
7785
|
+
"document": "认证流Ids数组\n认证流 Id 是指在企业认证过程中,当前操作人的认证流程的唯一标识。每个企业在认证过程中只能有一条认证流认证成功。这意味着在同一认证过程内,一个企业只能有一个认证流程处于成功状态,以确保认证的唯一性和有效性。\n\n\n认证流 Id可以通过回调 [授权书认证审核结果回调](https://qian.tencent.com/developers/company/callback_types_staffs/#%E5%8D%81%E5%9B%9B-%E6%8E%88%E6%9D%83%E4%B9%A6%E8%AE%A4%E8%AF%81%E5%AE%A1%E6%A0%B8%E7%BB%93%E6%9E%9C%E5%9B%9E%E8%B0%83) 获取\n\n注意:\n如果传递了认证流Id,则下面的参数 超管二要素不会生效",
|
7786
|
+
"example": "yDCHHUUckpbdaiqbUxJVsHWy99WG6kTY",
|
7787
|
+
"member": "string",
|
7788
|
+
"name": "AuthorizationIds",
|
7789
|
+
"required": false,
|
7790
|
+
"type": "list"
|
7791
|
+
},
|
7792
|
+
{
|
7793
|
+
"disabled": false,
|
7794
|
+
"document": "认证人姓名,组织机构超管姓名。 \n在注册流程中,必须是超管本人进行操作。 ",
|
7795
|
+
"example": "张三",
|
7796
|
+
"member": "string",
|
7797
|
+
"name": "AdminName",
|
7798
|
+
"required": false,
|
7799
|
+
"type": "string"
|
7800
|
+
},
|
7801
|
+
{
|
7802
|
+
"disabled": false,
|
7803
|
+
"document": "认证人手机号,组织机构超管手机号。 在注册流程中,必须是超管本人进行操作。 ",
|
7804
|
+
"example": "18888888888",
|
7805
|
+
"member": "string",
|
7806
|
+
"name": "AdminMobile",
|
7807
|
+
"required": false,
|
7808
|
+
"type": "string"
|
7809
|
+
},
|
7810
|
+
{
|
7811
|
+
"disabled": false,
|
7812
|
+
"document": "代理企业和员工的信息。在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。",
|
7813
|
+
"example": "无",
|
7814
|
+
"member": "Agent",
|
7815
|
+
"name": "Agent",
|
7816
|
+
"required": false,
|
7817
|
+
"type": "object"
|
7818
|
+
}
|
7819
|
+
],
|
7820
|
+
"type": "object"
|
7821
|
+
},
|
7822
|
+
"DeleteOrganizationAuthorizationsResponse": {
|
7823
|
+
"document": "DeleteOrganizationAuthorizations返回参数结构体",
|
7824
|
+
"members": [
|
7825
|
+
{
|
7826
|
+
"disabled": false,
|
7827
|
+
"document": "清理的认证流的详细信息,其中包括企业名称,认证流唯一 Id 以及清理过程中产生的错误信息",
|
7828
|
+
"example": "无",
|
7829
|
+
"member": "DeleteOrganizationAuthorizationInfo",
|
7830
|
+
"name": "DeleteOrganizationAuthorizationInfos",
|
7831
|
+
"output_required": false,
|
7832
|
+
"type": "list",
|
7833
|
+
"value_allowed_null": false
|
7834
|
+
},
|
7835
|
+
{
|
7836
|
+
"disabled": false,
|
7837
|
+
"document": "批量清理认证流返回的状态值\n其中包括\n- 1 全部成功\n- 2 部分成功\n- 3 全部失败",
|
7838
|
+
"example": "1",
|
7839
|
+
"member": "uint64",
|
7840
|
+
"name": "Status",
|
7841
|
+
"output_required": false,
|
7842
|
+
"type": "int",
|
7843
|
+
"value_allowed_null": false
|
7844
|
+
},
|
7845
|
+
{
|
7846
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
7847
|
+
"member": "string",
|
7848
|
+
"name": "RequestId",
|
7849
|
+
"type": "string"
|
7850
|
+
}
|
7851
|
+
],
|
7852
|
+
"type": "object"
|
7853
|
+
},
|
7728
7854
|
"DeleteSealPoliciesRequest": {
|
7729
7855
|
"document": "DeleteSealPolicies请求参数结构体",
|
7730
7856
|
"members": [
|
@@ -10385,7 +10511,7 @@
|
|
10385
10511
|
},
|
10386
10512
|
{
|
10387
10513
|
"disabled": false,
|
10388
|
-
"document": "合同流程ID
|
10514
|
+
"document": "合同流程ID\n- 补充合同组子合同动态签署人时必传。\n- 补充普通合同时,请阅读:<a href=\"https://qian.tencent.com/developers/companyApis/operateFlows/CreateFlowApprovers/\" target=\"_blank\">补充签署人接口</a>的接口使用说明",
|
10389
10515
|
"example": "yDwFmUUckpstqfvzUE1h3jo1f3cqjkGm",
|
10390
10516
|
"member": "string",
|
10391
10517
|
"name": "FlowId",
|
@@ -10417,6 +10543,16 @@
|
|
10417
10543
|
"output_required": false,
|
10418
10544
|
"type": "string",
|
10419
10545
|
"value_allowed_null": true
|
10546
|
+
},
|
10547
|
+
{
|
10548
|
+
"disabled": false,
|
10549
|
+
"document": "合同流程ID,为32位字符串。\t\n注意:此字段可能返回 null,表示取不到有效值。",
|
10550
|
+
"example": "无",
|
10551
|
+
"member": "string",
|
10552
|
+
"name": "FlowId",
|
10553
|
+
"output_required": false,
|
10554
|
+
"type": "string",
|
10555
|
+
"value_allowed_null": true
|
10420
10556
|
}
|
10421
10557
|
],
|
10422
10558
|
"usage": "out"
|
@@ -13518,7 +13654,7 @@
|
|
13518
13654
|
},
|
13519
13655
|
{
|
13520
13656
|
"disabled": false,
|
13521
|
-
"document": "参与方在合同中的角色是按照创建合同的时候来排序的,解除协议默认会将第一个参与人叫`甲方`,第二个叫`乙方`, 第三个叫`丙方`,以此类推。\n\n如果需改动此参与人的角色名字,可用此字段指定,由汉字,英文字符,数字组成,最大20个字。\n",
|
13657
|
+
"document": "参与方在合同中的角色是按照创建合同的时候来排序的,解除协议默认会将第一个参与人叫`甲方`,第二个叫`乙方`, 第三个叫`丙方`,以此类推。\n\n如果需改动此参与人的角色名字,可用此字段指定,由汉字,英文字符,数字组成,最大20个字。\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/973a820ab66d1ce57082c160c2b2d44a.png)\n",
|
13522
13658
|
"example": "供应商",
|
13523
13659
|
"member": "string",
|
13524
13660
|
"name": "ApproverSignRole",
|
@@ -1060,6 +1060,12 @@
|
|
1060
1060
|
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSchemeUrl\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDRCLUUgygq2xun5UuO4zjEwg0vjoimj\"\n },\n \"FlowId\": \"yDwq7UU*Uu1vFD6uHSIyKQPf\",\n \"EndPoint\": \"APP\",\n \"Name\": \"典子谦\",\n \"Mobile\": \"13200000000\"\n}",
|
1061
1061
|
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"OperationDenied.NoSupportJumpPage\",\n \"Message\": \"APP类型不支持跳转到电子签主页或合同列表页\"\n },\n \"RequestId\": \"s1693830251815551087\"\n }\n}",
|
1062
1062
|
"title": "错误的示例- 获取某个流程合同的小程序跳转签署链接,PathType值没有传对(应该传1- 小程序合同详情)"
|
1063
|
+
},
|
1064
|
+
{
|
1065
|
+
"document": "获取动态签署人补充链接,创建合同时未指定具体签署人,可获取链接后推送给指定的人进行补充,预设了企业名称后进入领取链接只能以该企业身份去领取并签署合同\n注:`获取动态签署人补充链接需指定PathType值为1或3,即跳转到合同封面页,并且指定对应签署节点的签署角色编号即RecipientId`",
|
1066
|
+
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSchemeUrl\n<公共请求参数>\n\n{\n \"FlowId\": \"yDwq7UU*Uu1vFD6uHSIyKQPf\",\n \"RecipientId\": \"yDw7aUUckpkxxmljUE0xkKk1DlvwRdfK\",\n \"OrganizationName\": \"典子谦有限公司\",\n \"PathType\": 3,\n \"EndPoint\": \"HTTP_SHORT_URL\",\n \"Operator\": {\n \"UserId\": \"yDRCLUUgygq2xun5UuO4zjEwg0vjoimj\"\n }\n}",
|
1067
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"s1693829642597082849\",\n \"SchemeQrcodeUrl\": \"https://file.test.ess.tencent.cn/bresource/resource/resource/0/0.JPG?hkey=5d92f0db15e6bbba6aea641f64c5c06d01********************************f313b0728621415f3f14724c1d784e7737421333bf96a\",\n \"SchemeUrl\": \"https://essurl.cn/i3am**5Y9W\"\n }\n}",
|
1068
|
+
"title": "获取动态签署人补充链接(短链)并预设企业名"
|
1063
1069
|
}
|
1064
1070
|
],
|
1065
1071
|
"CreateSeal": [
|
@@ -1240,6 +1246,14 @@
|
|
1240
1246
|
"title": "解绑用户角色"
|
1241
1247
|
}
|
1242
1248
|
],
|
1249
|
+
"DeleteOrganizationAuthorizations": [
|
1250
|
+
{
|
1251
|
+
"document": "1. 企业典子谦示例企业 通过生成批量认证接口生成了 两个认证企业 (张三示例企业一, 张三示例企业二)\n2. 此时操作人典子谦示例企业 的业务员典子谦 发现超管应该是李四,信息填写错误,希望批量清除之前写错的信息,进行重新认证。\n3. 此时传递超管的姓名和手机号, 来进行清理。\n4. 全部清理成功,status 返回为 1",
|
1252
|
+
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteOrganizationAuthorizations\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDRCLUUgygq2xun5UuO4zjEwg0vjoimj\",\n \"ClientIp\": \"8.8.8.8\"\n },\n \"AdminName\": \"张三\",\n \"AdminMobile\": \"18888888888\"\n}",
|
1253
|
+
"output": "{\n \"Response\": {\n \"DeleteOrganizationAuthorizationInfos\": [\n {\n \"AuthorizationId\": \"yDCkRUUckp4mrr1mUuZT4VduiD2OfBVC\",\n \"Errormessage\": \"\",\n \"OrganizationName\": \"张三示例企业一\"\n },\n {\n \"AuthorizationId\": \"yDCkRUUckp4mrro0UuZT4VdvxIeRvyX0\",\n \"Errormessage\": \"\",\n \"OrganizationName\": \"张三示例企业一\"\n }\n ],\n \"RequestId\": \"s1729853630232230428\",\n \"Status\": 1\n }\n}",
|
1254
|
+
"title": "批量清理张三的所有认证中的认证流"
|
1255
|
+
}
|
1256
|
+
],
|
1243
1257
|
"DeleteSealPolicies": [
|
1244
1258
|
{
|
1245
1259
|
"document": "撤销指定印章授权",
|
@@ -1601,7 +1615,7 @@
|
|
1601
1615
|
"document": "通过转换任务Id查询任务状态",
|
1602
1616
|
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetTaskResultApi\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDxoQxxxxxxxxxxxxxxxxxx1h2hnnR\"\n },\n \"TaskId\": \"2022xxxxxxxxxx992850\"\n}",
|
1603
1617
|
"output": "{\n \"Response\": {\n \"RequestId\": \"2255xxxxx76-6192fc301053\",\n \"ResourceId\": \"yDRtsUxxxxxjEyx4jZM3A7\",\n \"TaskId\": \"2022072xxxx992850\",\n \"TaskMessage\": \"任务处理完成\",\n \"TaskStatus\": 8\n }\n}",
|
1604
|
-
"title": "
|
1618
|
+
"title": "通过转换任务Id查询任务状态"
|
1605
1619
|
}
|
1606
1620
|
],
|
1607
1621
|
"ModifyApplicationCallbackInfo": [
|
@@ -2463,6 +2463,58 @@ def doDescribeExtendedServiceAuthDetail(args, parsed_globals):
|
|
2463
2463
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2464
2464
|
|
2465
2465
|
|
2466
|
+
def doCreateCloseOrganizationUrl(args, parsed_globals):
|
2467
|
+
g_param = parse_global_arg(parsed_globals)
|
2468
|
+
|
2469
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2470
|
+
cred = credential.CVMRoleCredential()
|
2471
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2472
|
+
cred = credential.STSAssumeRoleCredential(
|
2473
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2474
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2475
|
+
)
|
2476
|
+
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):
|
2477
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2478
|
+
else:
|
2479
|
+
cred = credential.Credential(
|
2480
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2481
|
+
)
|
2482
|
+
http_profile = HttpProfile(
|
2483
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2484
|
+
reqMethod="POST",
|
2485
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2486
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2487
|
+
)
|
2488
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2489
|
+
if g_param[OptionsDefine.Language]:
|
2490
|
+
profile.language = g_param[OptionsDefine.Language]
|
2491
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2492
|
+
client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile)
|
2493
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2494
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2495
|
+
model = models.CreateCloseOrganizationUrlRequest()
|
2496
|
+
model.from_json_string(json.dumps(args))
|
2497
|
+
start_time = time.time()
|
2498
|
+
while True:
|
2499
|
+
rsp = client.CreateCloseOrganizationUrl(model)
|
2500
|
+
result = rsp.to_json_string()
|
2501
|
+
try:
|
2502
|
+
json_obj = json.loads(result)
|
2503
|
+
except TypeError as e:
|
2504
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2505
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2506
|
+
break
|
2507
|
+
cur_time = time.time()
|
2508
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2509
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2510
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2511
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2512
|
+
else:
|
2513
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2514
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2515
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2516
|
+
|
2517
|
+
|
2466
2518
|
def doGenerateUserSeal(args, parsed_globals):
|
2467
2519
|
g_param = parse_global_arg(parsed_globals)
|
2468
2520
|
|
@@ -4907,6 +4959,58 @@ def doChannelDescribeBillUsageDetail(args, parsed_globals):
|
|
4907
4959
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4908
4960
|
|
4909
4961
|
|
4962
|
+
def doDeleteOrganizationAuthorizations(args, parsed_globals):
|
4963
|
+
g_param = parse_global_arg(parsed_globals)
|
4964
|
+
|
4965
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4966
|
+
cred = credential.CVMRoleCredential()
|
4967
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4968
|
+
cred = credential.STSAssumeRoleCredential(
|
4969
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4970
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4971
|
+
)
|
4972
|
+
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):
|
4973
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4974
|
+
else:
|
4975
|
+
cred = credential.Credential(
|
4976
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4977
|
+
)
|
4978
|
+
http_profile = HttpProfile(
|
4979
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4980
|
+
reqMethod="POST",
|
4981
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4982
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4983
|
+
)
|
4984
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4985
|
+
if g_param[OptionsDefine.Language]:
|
4986
|
+
profile.language = g_param[OptionsDefine.Language]
|
4987
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4988
|
+
client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile)
|
4989
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4990
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4991
|
+
model = models.DeleteOrganizationAuthorizationsRequest()
|
4992
|
+
model.from_json_string(json.dumps(args))
|
4993
|
+
start_time = time.time()
|
4994
|
+
while True:
|
4995
|
+
rsp = client.DeleteOrganizationAuthorizations(model)
|
4996
|
+
result = rsp.to_json_string()
|
4997
|
+
try:
|
4998
|
+
json_obj = json.loads(result)
|
4999
|
+
except TypeError as e:
|
5000
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5001
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5002
|
+
break
|
5003
|
+
cur_time = time.time()
|
5004
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5005
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5006
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5007
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5008
|
+
else:
|
5009
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5010
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5011
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5012
|
+
|
5013
|
+
|
4910
5014
|
def doCancelFlow(args, parsed_globals):
|
4911
5015
|
g_param = parse_global_arg(parsed_globals)
|
4912
5016
|
|
@@ -6943,6 +7047,7 @@ ACTION_MAP = {
|
|
6943
7047
|
"GetDownloadFlowUrl": doGetDownloadFlowUrl,
|
6944
7048
|
"ChannelDescribeOrganizationSeals": doChannelDescribeOrganizationSeals,
|
6945
7049
|
"DescribeExtendedServiceAuthDetail": doDescribeExtendedServiceAuthDetail,
|
7050
|
+
"CreateCloseOrganizationUrl": doCreateCloseOrganizationUrl,
|
6946
7051
|
"GenerateUserSeal": doGenerateUserSeal,
|
6947
7052
|
"PrepareFlows": doPrepareFlows,
|
6948
7053
|
"ModifySeal": doModifySeal,
|
@@ -6990,6 +7095,7 @@ ACTION_MAP = {
|
|
6990
7095
|
"ModifyOrganizationDefaultSeal": doModifyOrganizationDefaultSeal,
|
6991
7096
|
"DescribeFlowDetailInfo": doDescribeFlowDetailInfo,
|
6992
7097
|
"ChannelDescribeBillUsageDetail": doChannelDescribeBillUsageDetail,
|
7098
|
+
"DeleteOrganizationAuthorizations": doDeleteOrganizationAuthorizations,
|
6993
7099
|
"CancelFlow": doCancelFlow,
|
6994
7100
|
"CreateH5FaceIdUrl": doCreateH5FaceIdUrl,
|
6995
7101
|
"DescribeFlowApprovers": doDescribeFlowApprovers,
|