tccli 3.0.1308.1__py2.py3-none-any.whl → 3.0.1310.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.
- tccli/__init__.py +1 -1
- tccli/services/apm/v20210622/api.json +18 -0
- tccli/services/asr/v20190614/api.json +9 -0
- tccli/services/bh/v20230418/api.json +193 -2
- tccli/services/bh/v20230418/examples.json +2 -2
- tccli/services/cat/cat_client.py +53 -0
- tccli/services/cat/v20180409/api.json +80 -0
- tccli/services/cat/v20180409/examples.json +8 -0
- tccli/services/cdb/cdb_client.py +0 -53
- tccli/services/cdb/v20170320/api.json +0 -64
- tccli/services/cdb/v20170320/examples.json +0 -8
- tccli/services/cdwch/v20200915/examples.json +1 -1
- tccli/services/cfs/v20190719/api.json +9 -0
- tccli/services/cfw/v20190904/api.json +11 -1
- tccli/services/cfw/v20190904/examples.json +2 -2
- tccli/services/dsgc/v20190723/api.json +28 -18
- tccli/services/dsgc/v20190723/examples.json +1 -1
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +103 -4
- tccli/services/ess/v20201111/examples.json +14 -0
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +110 -2
- tccli/services/essbasic/v20210526/examples.json +14 -0
- tccli/services/gaap/gaap_client.py +12 -171
- tccli/services/gaap/v20180529/api.json +0 -325
- tccli/services/gaap/v20180529/examples.json +0 -24
- tccli/services/hunyuan/hunyuan_client.py +53 -0
- tccli/services/hunyuan/v20230901/api.json +162 -7
- tccli/services/hunyuan/v20230901/examples.json +8 -0
- tccli/services/iai/v20180301/api.json +12 -12
- tccli/services/iai/v20180301/examples.json +8 -2
- tccli/services/iss/v20230517/examples.json +1 -1
- tccli/services/keewidb/v20220308/api.json +1 -1
- tccli/services/keewidb/v20220308/examples.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +2 -2
- tccli/services/mongodb/v20190725/api.json +1 -1
- tccli/services/partners/partners_client.py +57 -4
- tccli/services/partners/v20180321/api.json +151 -0
- tccli/services/partners/v20180321/examples.json +14 -0
- tccli/services/postgres/v20170312/api.json +7 -7
- tccli/services/redis/v20180412/api.json +12 -12
- tccli/services/redis/v20180412/examples.json +4 -4
- tccli/services/tcbr/v20220217/api.json +94 -0
- tccli/services/tdmq/v20200217/api.json +4 -4
- tccli/services/teo/v20220901/api.json +9 -9
- tccli/services/teo/v20220901/examples.json +1 -1
- tccli/services/thpc/v20230321/api.json +2 -2
- tccli/services/tmt/v20180321/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +11 -11
- tccli/services/vpc/v20170312/examples.json +1 -1
- tccli/services/waf/v20180125/api.json +183 -29
- tccli/services/waf/v20180125/examples.json +7 -1
- tccli/services/wedata/v20210820/api.json +1519 -0
- tccli/services/wedata/v20210820/examples.json +65 -1
- tccli/services/wedata/wedata_client.py +424 -0
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/RECORD +60 -60
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/license_files/LICENSE +0 -0
@@ -161,6 +161,13 @@
|
|
161
161
|
"output": "ChannelCreatePrepareFlowResponse",
|
162
162
|
"status": "online"
|
163
163
|
},
|
164
|
+
"ChannelCreatePrepareFlowGroup": {
|
165
|
+
"document": "接口(ChannelCreatePrepareFlowGroup)用于创建嵌入式合同组签署流程。\n\n- 该接口当前仅支持文件发起\n- 该接口能力和ChannelCreateFlowGroupByFiles,~~ChannelCreateFlowGroupByTemplates~~保持一致。\n- 返回的FlowGroupId 为临时id,只有在页面内成功发起后FlowGroupId才会有效。",
|
166
|
+
"input": "ChannelCreatePrepareFlowGroupRequest",
|
167
|
+
"name": "获取发起合同组嵌入链接",
|
168
|
+
"output": "ChannelCreatePrepareFlowGroupResponse",
|
169
|
+
"status": "online"
|
170
|
+
},
|
164
171
|
"ChannelCreatePreparedPersonalEsign": {
|
165
172
|
"document": "本接口(ChannelCreatePreparedPersonalEsign)用于创建导入个人印章(处方单场景专用,使用此接口请与客户经理确认)。",
|
166
173
|
"input": "ChannelCreatePreparedPersonalEsignRequest",
|
@@ -1222,6 +1229,24 @@
|
|
1222
1229
|
"name": "FlowDisplayType",
|
1223
1230
|
"required": false,
|
1224
1231
|
"type": "int"
|
1232
|
+
},
|
1233
|
+
{
|
1234
|
+
"disabled": false,
|
1235
|
+
"document": "签署文件资源Id列表,目前仅支持单个文件",
|
1236
|
+
"example": "yDCWiUUckpv6iggyUyuqIrwyppQV",
|
1237
|
+
"member": "string",
|
1238
|
+
"name": "FileIds",
|
1239
|
+
"required": false,
|
1240
|
+
"type": "list"
|
1241
|
+
},
|
1242
|
+
{
|
1243
|
+
"disabled": false,
|
1244
|
+
"document": "合同签署人信息",
|
1245
|
+
"example": "无",
|
1246
|
+
"member": "CommonFlowApprover",
|
1247
|
+
"name": "Approvers",
|
1248
|
+
"required": false,
|
1249
|
+
"type": "list"
|
1225
1250
|
}
|
1226
1251
|
],
|
1227
1252
|
"usage": "in"
|
@@ -3313,6 +3338,15 @@
|
|
3313
3338
|
"name": "Mobile",
|
3314
3339
|
"required": false,
|
3315
3340
|
"type": "string"
|
3341
|
+
},
|
3342
|
+
{
|
3343
|
+
"disabled": false,
|
3344
|
+
"document": "合同组Id,传入此参数则可以不传FlowIds",
|
3345
|
+
"example": "yDttAUUckpxbczx6UySqdD5wIcNyCCQW",
|
3346
|
+
"member": "string",
|
3347
|
+
"name": "FlowGroupId",
|
3348
|
+
"required": false,
|
3349
|
+
"type": "string"
|
3316
3350
|
}
|
3317
3351
|
],
|
3318
3352
|
"type": "object"
|
@@ -3396,6 +3430,80 @@
|
|
3396
3430
|
],
|
3397
3431
|
"type": "object"
|
3398
3432
|
},
|
3433
|
+
"ChannelCreatePrepareFlowGroupRequest": {
|
3434
|
+
"document": "ChannelCreatePrepareFlowGroup请求参数结构体",
|
3435
|
+
"members": [
|
3436
|
+
{
|
3437
|
+
"disabled": false,
|
3438
|
+
"document": "合同组中每个合同签署流程的信息,合同组中最少包含2个合同,不能超过50个合同。",
|
3439
|
+
"example": "无",
|
3440
|
+
"member": "BaseFlowInfo",
|
3441
|
+
"name": "BaseFlowInfos",
|
3442
|
+
"required": true,
|
3443
|
+
"type": "list"
|
3444
|
+
},
|
3445
|
+
{
|
3446
|
+
"disabled": false,
|
3447
|
+
"document": "合同组的名称(可自定义此名称),长度不能超过200,只能由中文、字母、数字和下划线组成。",
|
3448
|
+
"example": "\"2023年采购合同们\"",
|
3449
|
+
"member": "string",
|
3450
|
+
"name": "FlowGroupName",
|
3451
|
+
"required": true,
|
3452
|
+
"type": "string"
|
3453
|
+
},
|
3454
|
+
{
|
3455
|
+
"disabled": false,
|
3456
|
+
"document": "资源类型,取值有: <ul><li> **1**:模板</li> <li> **2**:文件</li></ul>",
|
3457
|
+
"example": "1",
|
3458
|
+
"member": "int64",
|
3459
|
+
"name": "ResourceType",
|
3460
|
+
"required": true,
|
3461
|
+
"type": "int"
|
3462
|
+
},
|
3463
|
+
{
|
3464
|
+
"disabled": false,
|
3465
|
+
"document": "合同的发起企业和发起人信息,<a href=\"https://qcloudimg.tencent-cloud.cn/raw/b69f8aad306c40b7b78d096e39b2edbb.png\" target=\"_blank\">点击查看合同发起企业和人展示的位置</a>\n\n此接口下面信息必填。\n<ul>\n<li>渠道应用标识: <a href=\"https://qcloudimg.tencent-cloud.cn/raw/a71872de3d540d55451e3e73a2ad1a6e.png\" target=\"_blank\">Agent.AppId</a></li>\n<li>第三方平台子客企业标识: Agent.ProxyOrganizationOpenId(合同的发起企业)</li>\n<li>第三方平台子客企业中的员工标识: Agent.ProxyOperator.OpenId (合同的发起人)</li>\n</ul>\n\n合同的发起企业和发起人必需已经完成实名,并加入企业",
|
3466
|
+
"example": "无",
|
3467
|
+
"member": "Agent",
|
3468
|
+
"name": "Agent",
|
3469
|
+
"required": false,
|
3470
|
+
"type": "object"
|
3471
|
+
}
|
3472
|
+
],
|
3473
|
+
"type": "object"
|
3474
|
+
},
|
3475
|
+
"ChannelCreatePrepareFlowGroupResponse": {
|
3476
|
+
"document": "ChannelCreatePrepareFlowGroup返回参数结构体",
|
3477
|
+
"members": [
|
3478
|
+
{
|
3479
|
+
"disabled": false,
|
3480
|
+
"document": "合同组ID,为32位字符串。\n建议开发者妥善保存此合同组ID,以便于顺利进行后续操作。",
|
3481
|
+
"example": "yDwFmUUckpstqfvzUE1h3jo1f3cqjkGm",
|
3482
|
+
"member": "string",
|
3483
|
+
"name": "FlowGroupId",
|
3484
|
+
"output_required": true,
|
3485
|
+
"type": "string",
|
3486
|
+
"value_allowed_null": false
|
3487
|
+
},
|
3488
|
+
{
|
3489
|
+
"disabled": false,
|
3490
|
+
"document": "嵌入式发起链接",
|
3491
|
+
"example": "https://embed.test.qian.tencent.cn/contract-create?embed=1&expiredOn=1744785243&code=yDtBLUUckpx65&businessId=yDtBLUUckYNlO&channel=TENCENTCLOUD&operateSource=byFileGroup&themeId=saas_web_theme",
|
3492
|
+
"member": "string",
|
3493
|
+
"name": "PrepareUrl",
|
3494
|
+
"output_required": true,
|
3495
|
+
"type": "string",
|
3496
|
+
"value_allowed_null": false
|
3497
|
+
},
|
3498
|
+
{
|
3499
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3500
|
+
"member": "string",
|
3501
|
+
"name": "RequestId",
|
3502
|
+
"type": "string"
|
3503
|
+
}
|
3504
|
+
],
|
3505
|
+
"type": "object"
|
3506
|
+
},
|
3399
3507
|
"ChannelCreatePrepareFlowRequest": {
|
3400
3508
|
"document": "ChannelCreatePrepareFlow请求参数结构体",
|
3401
3509
|
"members": [
|
@@ -6133,7 +6241,7 @@
|
|
6133
6241
|
},
|
6134
6242
|
{
|
6135
6243
|
"disabled": false,
|
6136
|
-
"document": "
|
6244
|
+
"document": "**在绝对定位方式下**,可以指定控件横向位置的位置,单位为pt(点)。",
|
6137
6245
|
"example": "10",
|
6138
6246
|
"member": "float",
|
6139
6247
|
"name": "ComponentPosX",
|
@@ -6144,7 +6252,7 @@
|
|
6144
6252
|
},
|
6145
6253
|
{
|
6146
6254
|
"disabled": false,
|
6147
|
-
"document": "
|
6255
|
+
"document": "**在绝对定位方式下**,可以指定控件纵向位置的位置,单位为pt(点)。",
|
6148
6256
|
"example": "10",
|
6149
6257
|
"member": "float",
|
6150
6258
|
"name": "ComponentPosY",
|
@@ -436,6 +436,12 @@
|
|
436
436
|
"input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChannelCreateOrganizationBatchSignUrl\n<公共请求参数>\n\n{\n \"Agent\": {\n \"AppId\": \"60exxxxxxxxxxxxxxxxxxxxxc16e9\",\n \"ProxyOrganizationOpenId\": \"org_open_id\"\n },\n \"Name\": \"\",\n \"Mobile\": \"\",\n \"FlowIds\": [\n \"yDxxxxxxxxxxxxxxxxxxxxxxxx\"\n ],\n \"OpenId\": \"user_open_id\"\n}",
|
437
437
|
"output": "{\n \"Response\": {\n \"SignUrl\": \"https://embed.test.qian.tencent.cn/console/?channel=PROXYCHANNEL&expiredTime=1695805069&code=xxxxx&menuStatus=ENABLE&token=xxxx\",\n \"ExpiredTime\": 0,\n \"RequestId\": \"s1695804769054178191\"\n }\n}",
|
438
438
|
"title": "创建签署链接"
|
439
|
+
},
|
440
|
+
{
|
441
|
+
"document": "",
|
442
|
+
"input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChannelCreateOrganizationBatchSignUrl\n<公共请求参数>\n\n{\n \"Agent\": {\n \"AppId\": \"60exxxxxxxxxxxxxxxxxxxxxc16e9\",\n \"ProxyOrganizationOpenId\": \"org_open_id\"\n },\n \"Name\": \"\",\n \"Mobile\": \"\",\n \"FlowGroupId\": \"yDxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"OpenId\": \"user_open_id\"\n}",
|
443
|
+
"output": "{\n \"Response\": {\n \"SignUrl\": \"https://embed.test.qian.tencent.cn/console/?channel=PROXYCHANNEL&expiredTime=1695805069&code=xxxxx&menuStatus=ENABLE&token=xxxx\",\n \"ExpiredTime\": 0,\n \"RequestId\": \"s1695804769054178191\"\n }\n}",
|
444
|
+
"title": "创建合同组签署链接"
|
439
445
|
}
|
440
446
|
],
|
441
447
|
"ChannelCreateOrganizationModifyQrCode": [
|
@@ -466,6 +472,14 @@
|
|
466
472
|
"title": "创建发起合同签署链接-模板发起(固定所有的参与方)"
|
467
473
|
}
|
468
474
|
],
|
475
|
+
"ChannelCreatePrepareFlowGroup": [
|
476
|
+
{
|
477
|
+
"document": "",
|
478
|
+
"input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChannelCreatePrepareFlowGroup\n<公共请求参数>\n\n{\n \"Agent\": {\n \"AppId\": \"yDwFoUUckpsomwx1UyhWGhIR2RkhOjw2\",\n \"ProxyOrganizationOpenId\": \"kevinlcheng_open_organization_1\",\n \"ProxyOperator\": {\n \"OpenId\": \"kevinlcheng_1\"\n }\n },\n \"FlowGroupName\": \"group\",\n \"ResourceType\": 2,\n \"BaseFlowInfos\": [\n {\n \"FlowName\": \"第三方预发起合同\",\n \"FlowType\": \"第三方嵌入式文件发起合同\",\n \"FileIds\": [\n \"yDCWiUUckpv6iggyUyuqIrwyppQVS7TR\"\n ],\n \"FlowDescription\": \"描述\",\n \"Deadline\": 1757034793,\n \"Unordered\": false,\n \"IntelligentStatus\": \"CLOSE\",\n \"FormFields\": [],\n \"NeedCreateReview\": false,\n \"NeedSignReview\": false,\n \"UserData\": \"\",\n \"CcInfos\": [],\n \"Approvers\": [\n {\n \"ApproverType\": 1,\n \"OrganizationName\": \"\",\n \"NotChannelOrganization\": false,\n \"ApproverName\": \"张轩\",\n \"ApproverOption\": {\n \"CanEditApprover\": true\n },\n \"IsFullText\": true,\n \"ApproverMobile\": \"18729585347\",\n \"SignComponents\": [\n {\n \"ChannelComponentId\": \"\",\n \"ComponentDateFontSize\": 0,\n \"ComponentDescription\": \"\",\n \"ComponentExtra\": \"\",\n \"ComponentHeight\": 100,\n \"ComponentId\": \"\",\n \"ComponentName\": \"\",\n \"ComponentPage\": 3,\n \"ComponentPosX\": 160,\n \"ComponentPosY\": 360,\n \"ComponentRecipientId\": \"\",\n \"ComponentRequired\": false,\n \"ComponentType\": \"SIGN_SIGNATURE\",\n \"ComponentValue\": \"\",\n \"ComponentWidth\": 100,\n \"DocumentId\": \"\",\n \"FileIndex\": 0,\n \"ForbidMoveAndDelete\": true,\n \"GenerateMode\": \"\",\n \"KeywordIndexes\": [],\n \"KeywordOrder\": \"\",\n \"KeywordPage\": 0,\n \"LockComponentValue\": false,\n \"OffsetX\": 0,\n \"OffsetY\": 0,\n \"Placeholder\": \"\",\n \"RelativeLocation\": \"\"\n }\n ]\n }\n ]\n }\n ]\n}",
|
479
|
+
"output": "{\n \"Response\": {\n \"FlowGroupId\": \"yDttAUUckpxbcz9uUySqdD58t8bwneLp\",\n \"PrepareUrl\": \"https://embed.test.qian.tencent.cn/contract-create?embed=1&expiredOn=1747036582&code=yDttAUUckpxbcz9vUySqdD5u3jnsKVT6&businessId=yDttAUUckpxbcz9uUySqdD58t8bwneLp&channel=PROXYCHANNEL&operateSource=byFileGroup&themeId=channel_web_theme_yDSLbUUckpo3e14eUEK7ajSyPX7g3kIc\",\n \"RequestId\": \"s1747036282702037847\"\n }\n}",
|
480
|
+
"title": "嵌入式文件发起合同组"
|
481
|
+
}
|
482
|
+
],
|
469
483
|
"ChannelCreatePreparedPersonalEsign": [
|
470
484
|
{
|
471
485
|
"document": "通过准备好的个人印章图片创建印章",
|
@@ -1837,58 +1837,6 @@ def doDeleteCertificate(args, parsed_globals):
|
|
1837
1837
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1838
1838
|
|
1839
1839
|
|
1840
|
-
def doCreateFirstLinkSession(args, parsed_globals):
|
1841
|
-
g_param = parse_global_arg(parsed_globals)
|
1842
|
-
|
1843
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1844
|
-
cred = credential.CVMRoleCredential()
|
1845
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1846
|
-
cred = credential.STSAssumeRoleCredential(
|
1847
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1848
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1849
|
-
)
|
1850
|
-
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):
|
1851
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1852
|
-
else:
|
1853
|
-
cred = credential.Credential(
|
1854
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1855
|
-
)
|
1856
|
-
http_profile = HttpProfile(
|
1857
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1858
|
-
reqMethod="POST",
|
1859
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
1860
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1861
|
-
)
|
1862
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1863
|
-
if g_param[OptionsDefine.Language]:
|
1864
|
-
profile.language = g_param[OptionsDefine.Language]
|
1865
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1866
|
-
client = mod.GaapClient(cred, g_param[OptionsDefine.Region], profile)
|
1867
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
1868
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1869
|
-
model = models.CreateFirstLinkSessionRequest()
|
1870
|
-
model.from_json_string(json.dumps(args))
|
1871
|
-
start_time = time.time()
|
1872
|
-
while True:
|
1873
|
-
rsp = client.CreateFirstLinkSession(model)
|
1874
|
-
result = rsp.to_json_string()
|
1875
|
-
try:
|
1876
|
-
json_obj = json.loads(result)
|
1877
|
-
except TypeError as e:
|
1878
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1879
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1880
|
-
break
|
1881
|
-
cur_time = time.time()
|
1882
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1883
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1884
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1885
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1886
|
-
else:
|
1887
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1888
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1889
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1890
|
-
|
1891
|
-
|
1892
1840
|
def doDescribeAccessRegionsByDestRegion(args, parsed_globals):
|
1893
1841
|
g_param = parse_global_arg(parsed_globals)
|
1894
1842
|
|
@@ -2721,7 +2669,7 @@ def doDescribeCustomHeader(args, parsed_globals):
|
|
2721
2669
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2722
2670
|
|
2723
2671
|
|
2724
|
-
def
|
2672
|
+
def doModifyProxiesAttribute(args, parsed_globals):
|
2725
2673
|
g_param = parse_global_arg(parsed_globals)
|
2726
2674
|
|
2727
2675
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2750,11 +2698,11 @@ def doDeleteGlobalDomainDns(args, parsed_globals):
|
|
2750
2698
|
client = mod.GaapClient(cred, g_param[OptionsDefine.Region], profile)
|
2751
2699
|
client._sdkVersion += ("_CLI_" + __version__)
|
2752
2700
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2753
|
-
model = models.
|
2701
|
+
model = models.ModifyProxiesAttributeRequest()
|
2754
2702
|
model.from_json_string(json.dumps(args))
|
2755
2703
|
start_time = time.time()
|
2756
2704
|
while True:
|
2757
|
-
rsp = client.
|
2705
|
+
rsp = client.ModifyProxiesAttribute(model)
|
2758
2706
|
result = rsp.to_json_string()
|
2759
2707
|
try:
|
2760
2708
|
json_obj = json.loads(result)
|
@@ -3553,7 +3501,7 @@ def doModifyProxiesProject(args, parsed_globals):
|
|
3553
3501
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3554
3502
|
|
3555
3503
|
|
3556
|
-
def
|
3504
|
+
def doAddRealServers(args, parsed_globals):
|
3557
3505
|
g_param = parse_global_arg(parsed_globals)
|
3558
3506
|
|
3559
3507
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3582,11 +3530,11 @@ def doDeleteFirstLinkSession(args, parsed_globals):
|
|
3582
3530
|
client = mod.GaapClient(cred, g_param[OptionsDefine.Region], profile)
|
3583
3531
|
client._sdkVersion += ("_CLI_" + __version__)
|
3584
3532
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3585
|
-
model = models.
|
3533
|
+
model = models.AddRealServersRequest()
|
3586
3534
|
model.from_json_string(json.dumps(args))
|
3587
3535
|
start_time = time.time()
|
3588
3536
|
while True:
|
3589
|
-
rsp = client.
|
3537
|
+
rsp = client.AddRealServers(model)
|
3590
3538
|
result = rsp.to_json_string()
|
3591
3539
|
try:
|
3592
3540
|
json_obj = json.loads(result)
|
@@ -3709,58 +3657,6 @@ def doDescribeCertificateDetail(args, parsed_globals):
|
|
3709
3657
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3710
3658
|
|
3711
3659
|
|
3712
|
-
def doDescribeFirstLinkSession(args, parsed_globals):
|
3713
|
-
g_param = parse_global_arg(parsed_globals)
|
3714
|
-
|
3715
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3716
|
-
cred = credential.CVMRoleCredential()
|
3717
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3718
|
-
cred = credential.STSAssumeRoleCredential(
|
3719
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3720
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3721
|
-
)
|
3722
|
-
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):
|
3723
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3724
|
-
else:
|
3725
|
-
cred = credential.Credential(
|
3726
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3727
|
-
)
|
3728
|
-
http_profile = HttpProfile(
|
3729
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3730
|
-
reqMethod="POST",
|
3731
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
3732
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3733
|
-
)
|
3734
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3735
|
-
if g_param[OptionsDefine.Language]:
|
3736
|
-
profile.language = g_param[OptionsDefine.Language]
|
3737
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3738
|
-
client = mod.GaapClient(cred, g_param[OptionsDefine.Region], profile)
|
3739
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
3740
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3741
|
-
model = models.DescribeFirstLinkSessionRequest()
|
3742
|
-
model.from_json_string(json.dumps(args))
|
3743
|
-
start_time = time.time()
|
3744
|
-
while True:
|
3745
|
-
rsp = client.DescribeFirstLinkSession(model)
|
3746
|
-
result = rsp.to_json_string()
|
3747
|
-
try:
|
3748
|
-
json_obj = json.loads(result)
|
3749
|
-
except TypeError as e:
|
3750
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3751
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3752
|
-
break
|
3753
|
-
cur_time = time.time()
|
3754
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3755
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3756
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3757
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3758
|
-
else:
|
3759
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3760
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3761
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3762
|
-
|
3763
|
-
|
3764
3660
|
def doDescribeTaskStatus(args, parsed_globals):
|
3765
3661
|
g_param = parse_global_arg(parsed_globals)
|
3766
3662
|
|
@@ -3813,58 +3709,6 @@ def doDescribeTaskStatus(args, parsed_globals):
|
|
3813
3709
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3814
3710
|
|
3815
3711
|
|
3816
|
-
def doAddRealServers(args, parsed_globals):
|
3817
|
-
g_param = parse_global_arg(parsed_globals)
|
3818
|
-
|
3819
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3820
|
-
cred = credential.CVMRoleCredential()
|
3821
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3822
|
-
cred = credential.STSAssumeRoleCredential(
|
3823
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3824
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3825
|
-
)
|
3826
|
-
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):
|
3827
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3828
|
-
else:
|
3829
|
-
cred = credential.Credential(
|
3830
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3831
|
-
)
|
3832
|
-
http_profile = HttpProfile(
|
3833
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3834
|
-
reqMethod="POST",
|
3835
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
3836
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3837
|
-
)
|
3838
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3839
|
-
if g_param[OptionsDefine.Language]:
|
3840
|
-
profile.language = g_param[OptionsDefine.Language]
|
3841
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3842
|
-
client = mod.GaapClient(cred, g_param[OptionsDefine.Region], profile)
|
3843
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
3844
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3845
|
-
model = models.AddRealServersRequest()
|
3846
|
-
model.from_json_string(json.dumps(args))
|
3847
|
-
start_time = time.time()
|
3848
|
-
while True:
|
3849
|
-
rsp = client.AddRealServers(model)
|
3850
|
-
result = rsp.to_json_string()
|
3851
|
-
try:
|
3852
|
-
json_obj = json.loads(result)
|
3853
|
-
except TypeError as e:
|
3854
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3855
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3856
|
-
break
|
3857
|
-
cur_time = time.time()
|
3858
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3859
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3860
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3861
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3862
|
-
else:
|
3863
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3864
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3865
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3866
|
-
|
3867
|
-
|
3868
3712
|
def doDisableGlobalDomain(args, parsed_globals):
|
3869
3713
|
g_param = parse_global_arg(parsed_globals)
|
3870
3714
|
|
@@ -4541,7 +4385,7 @@ def doDescribeGroupDomainConfig(args, parsed_globals):
|
|
4541
4385
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4542
4386
|
|
4543
4387
|
|
4544
|
-
def
|
4388
|
+
def doDeleteGlobalDomainDns(args, parsed_globals):
|
4545
4389
|
g_param = parse_global_arg(parsed_globals)
|
4546
4390
|
|
4547
4391
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4570,11 +4414,11 @@ def doModifyProxiesAttribute(args, parsed_globals):
|
|
4570
4414
|
client = mod.GaapClient(cred, g_param[OptionsDefine.Region], profile)
|
4571
4415
|
client._sdkVersion += ("_CLI_" + __version__)
|
4572
4416
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4573
|
-
model = models.
|
4417
|
+
model = models.DeleteGlobalDomainDnsRequest()
|
4574
4418
|
model.from_json_string(json.dumps(args))
|
4575
4419
|
start_time = time.time()
|
4576
4420
|
while True:
|
4577
|
-
rsp = client.
|
4421
|
+
rsp = client.DeleteGlobalDomainDns(model)
|
4578
4422
|
result = rsp.to_json_string()
|
4579
4423
|
try:
|
4580
4424
|
json_obj = json.loads(result)
|
@@ -5523,7 +5367,6 @@ ACTION_MAP = {
|
|
5523
5367
|
"DescribeProxyGroupDetails": doDescribeProxyGroupDetails,
|
5524
5368
|
"DeleteSecurityRules": doDeleteSecurityRules,
|
5525
5369
|
"DeleteCertificate": doDeleteCertificate,
|
5526
|
-
"CreateFirstLinkSession": doCreateFirstLinkSession,
|
5527
5370
|
"DescribeAccessRegionsByDestRegion": doDescribeAccessRegionsByDestRegion,
|
5528
5371
|
"ModifyGroupDomainConfig": doModifyGroupDomainConfig,
|
5529
5372
|
"DescribeTCPListeners": doDescribeTCPListeners,
|
@@ -5540,7 +5383,7 @@ ACTION_MAP = {
|
|
5540
5383
|
"CreateProxyGroup": doCreateProxyGroup,
|
5541
5384
|
"CreateCertificate": doCreateCertificate,
|
5542
5385
|
"DescribeCustomHeader": doDescribeCustomHeader,
|
5543
|
-
"
|
5386
|
+
"ModifyProxiesAttribute": doModifyProxiesAttribute,
|
5544
5387
|
"CreateProxy": doCreateProxy,
|
5545
5388
|
"DeleteDomain": doDeleteDomain,
|
5546
5389
|
"DescribeSecurityPolicyDetail": doDescribeSecurityPolicyDetail,
|
@@ -5556,12 +5399,10 @@ ACTION_MAP = {
|
|
5556
5399
|
"DescribeProxies": doDescribeProxies,
|
5557
5400
|
"DeleteProxyGroup": doDeleteProxyGroup,
|
5558
5401
|
"ModifyProxiesProject": doModifyProxiesProject,
|
5559
|
-
"
|
5402
|
+
"AddRealServers": doAddRealServers,
|
5560
5403
|
"CreateDomain": doCreateDomain,
|
5561
5404
|
"DescribeCertificateDetail": doDescribeCertificateDetail,
|
5562
|
-
"DescribeFirstLinkSession": doDescribeFirstLinkSession,
|
5563
5405
|
"DescribeTaskStatus": doDescribeTaskStatus,
|
5564
|
-
"AddRealServers": doAddRealServers,
|
5565
5406
|
"DisableGlobalDomain": doDisableGlobalDomain,
|
5566
5407
|
"DescribeRegionAndPrice": doDescribeRegionAndPrice,
|
5567
5408
|
"DescribeGlobalDomains": doDescribeGlobalDomains,
|
@@ -5575,7 +5416,7 @@ ACTION_MAP = {
|
|
5575
5416
|
"DescribeAccessRegions": doDescribeAccessRegions,
|
5576
5417
|
"ModifyRuleAttribute": doModifyRuleAttribute,
|
5577
5418
|
"DescribeGroupDomainConfig": doDescribeGroupDomainConfig,
|
5578
|
-
"
|
5419
|
+
"DeleteGlobalDomainDns": doDeleteGlobalDomainDns,
|
5579
5420
|
"ModifyHTTPSListenerAttribute": doModifyHTTPSListenerAttribute,
|
5580
5421
|
"DescribeListenerStatistics": doDescribeListenerStatistics,
|
5581
5422
|
"DeleteListeners": doDeleteListeners,
|