tccli 3.0.1307.1__py2.py3-none-any.whl → 3.0.1309.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/aiart/v20221229/api.json +29 -19
- tccli/services/apm/v20210622/api.json +38 -0
- tccli/services/asr/v20190614/api.json +64 -64
- tccli/services/asr/v20190614/examples.json +4 -4
- tccli/services/bh/v20230418/api.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/cdwch/v20200915/api.json +3 -3
- tccli/services/cfs/v20190719/api.json +9 -0
- tccli/services/clb/v20180317/api.json +120 -78
- tccli/services/clb/v20180317/examples.json +31 -31
- tccli/services/cloudaudit/v20190319/api.json +67 -67
- tccli/services/cloudaudit/v20190319/examples.json +2 -2
- tccli/services/config/v20220802/api.json +184 -165
- tccli/services/cvm/v20170312/api.json +2 -2
- tccli/services/cynosdb/cynosdb_client.py +53 -0
- tccli/services/cynosdb/v20190107/api.json +63 -0
- tccli/services/cynosdb/v20190107/examples.json +8 -0
- tccli/services/dsgc/dsgc_client.py +53 -0
- tccli/services/dsgc/v20190723/api.json +221 -7
- tccli/services/dsgc/v20190723/examples.json +8 -0
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/hunyuan/hunyuan_client.py +53 -0
- tccli/services/hunyuan/v20230901/api.json +155 -0
- tccli/services/hunyuan/v20230901/examples.json +8 -0
- tccli/services/iss/v20230517/examples.json +1 -1
- tccli/services/mongodb/v20190725/api.json +1 -1
- tccli/services/ocr/v20181119/api.json +13 -3
- tccli/services/organization/v20210331/api.json +12 -12
- 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 +1 -1
- tccli/services/tdmq/v20200217/api.json +118 -14
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/teo/v20220901/api.json +9 -9
- tccli/services/teo/v20220901/examples.json +1 -1
- tccli/services/thpc/v20230321/api.json +1 -1
- tccli/services/trocket/v20230308/api.json +123 -19
- tccli/services/trocket/v20230308/examples.json +1 -1
- tccli/services/vpc/v20170312/api.json +114 -112
- tccli/services/vpc/v20170312/examples.json +4 -4
- tccli/services/waf/v20180125/api.json +43 -0
- tccli/services/waf/v20180125/examples.json +8 -0
- tccli/services/waf/waf_client.py +57 -4
- tccli/services/wedata/v20210820/api.json +1046 -10
- tccli/services/wedata/v20210820/examples.json +49 -1
- tccli/services/wedata/wedata_client.py +350 -32
- {tccli-3.0.1307.1.dist-info → tccli-3.0.1309.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1307.1.dist-info → tccli-3.0.1309.1.dist-info}/RECORD +55 -55
- {tccli-3.0.1307.1.dist-info → tccli-3.0.1309.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1307.1.dist-info → tccli-3.0.1309.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1307.1.dist-info → tccli-3.0.1309.1.dist-info}/license_files/LICENSE +0 -0
@@ -9269,7 +9269,7 @@
|
|
9269
9269
|
{
|
9270
9270
|
"disabled": false,
|
9271
9271
|
"document": "一个或多个待操作的CDH实例ID。",
|
9272
|
-
"example": "[\"host-ey16rkyg
|
9272
|
+
"example": "[\"host-ey16rkyg\"]",
|
9273
9273
|
"member": "string",
|
9274
9274
|
"name": "HostIds",
|
9275
9275
|
"required": true,
|
@@ -9286,7 +9286,7 @@
|
|
9286
9286
|
},
|
9287
9287
|
{
|
9288
9288
|
"disabled": false,
|
9289
|
-
"document": "自动续费标识。取值范围:<br><li>NOTIFY_AND_AUTO_RENEW
|
9289
|
+
"document": "自动续费标识。取值范围:<br><li>NOTIFY_AND_AUTO_RENEW:通知过期且自动续费</li><li>NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费</li><li>DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费</li><br>若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。",
|
9290
9290
|
"example": "NOTIFY_AND_AUTO_RENEW",
|
9291
9291
|
"member": "string",
|
9292
9292
|
"name": "RenewFlag",
|
@@ -8129,6 +8129,58 @@ def doRemoveClusterSlaveZone(args, parsed_globals):
|
|
8129
8129
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8130
8130
|
|
8131
8131
|
|
8132
|
+
def doCloseSSL(args, parsed_globals):
|
8133
|
+
g_param = parse_global_arg(parsed_globals)
|
8134
|
+
|
8135
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
8136
|
+
cred = credential.CVMRoleCredential()
|
8137
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
8138
|
+
cred = credential.STSAssumeRoleCredential(
|
8139
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
8140
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
8141
|
+
)
|
8142
|
+
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):
|
8143
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
8144
|
+
else:
|
8145
|
+
cred = credential.Credential(
|
8146
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
8147
|
+
)
|
8148
|
+
http_profile = HttpProfile(
|
8149
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
8150
|
+
reqMethod="POST",
|
8151
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
8152
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
8153
|
+
)
|
8154
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
8155
|
+
if g_param[OptionsDefine.Language]:
|
8156
|
+
profile.language = g_param[OptionsDefine.Language]
|
8157
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
8158
|
+
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
8159
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
8160
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8161
|
+
model = models.CloseSSLRequest()
|
8162
|
+
model.from_json_string(json.dumps(args))
|
8163
|
+
start_time = time.time()
|
8164
|
+
while True:
|
8165
|
+
rsp = client.CloseSSL(model)
|
8166
|
+
result = rsp.to_json_string()
|
8167
|
+
try:
|
8168
|
+
json_obj = json.loads(result)
|
8169
|
+
except TypeError as e:
|
8170
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
8171
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
8172
|
+
break
|
8173
|
+
cur_time = time.time()
|
8174
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
8175
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
8176
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
8177
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
8178
|
+
else:
|
8179
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
8180
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
8181
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8182
|
+
|
8183
|
+
|
8132
8184
|
def doDescribeInstanceErrorLogs(args, parsed_globals):
|
8133
8185
|
g_param = parse_global_arg(parsed_globals)
|
8134
8186
|
|
@@ -8400,6 +8452,7 @@ ACTION_MAP = {
|
|
8400
8452
|
"OpenClusterPasswordComplexity": doOpenClusterPasswordComplexity,
|
8401
8453
|
"OpenAuditService": doOpenAuditService,
|
8402
8454
|
"RemoveClusterSlaveZone": doRemoveClusterSlaveZone,
|
8455
|
+
"CloseSSL": doCloseSSL,
|
8403
8456
|
"DescribeInstanceErrorLogs": doDescribeInstanceErrorLogs,
|
8404
8457
|
"IsolateInstance": doIsolateInstance,
|
8405
8458
|
|
@@ -63,6 +63,13 @@
|
|
63
63
|
"output": "CloseProxyEndPointResponse",
|
64
64
|
"status": "online"
|
65
65
|
},
|
66
|
+
"CloseSSL": {
|
67
|
+
"document": "关闭SSL加密",
|
68
|
+
"input": "CloseSSLRequest",
|
69
|
+
"name": "关闭SSL加密",
|
70
|
+
"output": "CloseSSLResponse",
|
71
|
+
"status": "online"
|
72
|
+
},
|
66
73
|
"CloseWan": {
|
67
74
|
"document": "本接口(CloseWan)用于关闭外网。",
|
68
75
|
"input": "CloseWanRequest",
|
@@ -3323,6 +3330,62 @@
|
|
3323
3330
|
],
|
3324
3331
|
"type": "object"
|
3325
3332
|
},
|
3333
|
+
"CloseSSLRequest": {
|
3334
|
+
"document": "CloseSSL请求参数结构体",
|
3335
|
+
"members": [
|
3336
|
+
{
|
3337
|
+
"disabled": false,
|
3338
|
+
"document": "集群ID",
|
3339
|
+
"example": "cynosdbmysql-bzxxrmtq",
|
3340
|
+
"member": "string",
|
3341
|
+
"name": "ClusterId",
|
3342
|
+
"required": true,
|
3343
|
+
"type": "string"
|
3344
|
+
},
|
3345
|
+
{
|
3346
|
+
"disabled": false,
|
3347
|
+
"document": "实例ID",
|
3348
|
+
"example": "cynosdbmysql-ins-bzxxrmtq",
|
3349
|
+
"member": "string",
|
3350
|
+
"name": "InstanceId",
|
3351
|
+
"required": false,
|
3352
|
+
"type": "string"
|
3353
|
+
}
|
3354
|
+
],
|
3355
|
+
"type": "object"
|
3356
|
+
},
|
3357
|
+
"CloseSSLResponse": {
|
3358
|
+
"document": "CloseSSL返回参数结构体",
|
3359
|
+
"members": [
|
3360
|
+
{
|
3361
|
+
"disabled": false,
|
3362
|
+
"document": "流程ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
3363
|
+
"example": "123",
|
3364
|
+
"member": "int64",
|
3365
|
+
"name": "FlowId",
|
3366
|
+
"output_required": false,
|
3367
|
+
"type": "int",
|
3368
|
+
"value_allowed_null": true
|
3369
|
+
},
|
3370
|
+
{
|
3371
|
+
"disabled": false,
|
3372
|
+
"document": "任务id\n注意:此字段可能返回 null,表示取不到有效值。",
|
3373
|
+
"example": "无",
|
3374
|
+
"member": "int64",
|
3375
|
+
"name": "TaskId",
|
3376
|
+
"output_required": false,
|
3377
|
+
"type": "int",
|
3378
|
+
"value_allowed_null": true
|
3379
|
+
},
|
3380
|
+
{
|
3381
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3382
|
+
"member": "string",
|
3383
|
+
"name": "RequestId",
|
3384
|
+
"type": "string"
|
3385
|
+
}
|
3386
|
+
],
|
3387
|
+
"type": "object"
|
3388
|
+
},
|
3326
3389
|
"CloseWanRequest": {
|
3327
3390
|
"document": "CloseWan请求参数结构体",
|
3328
3391
|
"members": [
|
@@ -72,6 +72,14 @@
|
|
72
72
|
"title": "关闭数据库代理连接地址"
|
73
73
|
}
|
74
74
|
],
|
75
|
+
"CloseSSL": [
|
76
|
+
{
|
77
|
+
"document": "关闭SSL加密",
|
78
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CloseSSL\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-jd510000\",\n \"InstanceId\": \"cynosdbmysql-ins-906n0000\"\n}",
|
79
|
+
"output": "{\n \"Response\": {\n \"FlowId\": 1,\n \"RequestId\": \"42d79173-6d36-4239-b7ad-5b993559a5c6\",\n \"TaskId\": 1\n }\n}",
|
80
|
+
"title": "关闭SSL加密"
|
81
|
+
}
|
82
|
+
],
|
75
83
|
"CloseWan": [
|
76
84
|
{
|
77
85
|
"document": "",
|
@@ -4073,6 +4073,58 @@ def doDescribeDSPAAssessmentRiskTemplateVulnerableList(args, parsed_globals):
|
|
4073
4073
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4074
4074
|
|
4075
4075
|
|
4076
|
+
def doDescribeDSPADiscoveryTasks(args, parsed_globals):
|
4077
|
+
g_param = parse_global_arg(parsed_globals)
|
4078
|
+
|
4079
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4080
|
+
cred = credential.CVMRoleCredential()
|
4081
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4082
|
+
cred = credential.STSAssumeRoleCredential(
|
4083
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4084
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4085
|
+
)
|
4086
|
+
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):
|
4087
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4088
|
+
else:
|
4089
|
+
cred = credential.Credential(
|
4090
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4091
|
+
)
|
4092
|
+
http_profile = HttpProfile(
|
4093
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4094
|
+
reqMethod="POST",
|
4095
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4096
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4097
|
+
)
|
4098
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4099
|
+
if g_param[OptionsDefine.Language]:
|
4100
|
+
profile.language = g_param[OptionsDefine.Language]
|
4101
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4102
|
+
client = mod.DsgcClient(cred, g_param[OptionsDefine.Region], profile)
|
4103
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4104
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4105
|
+
model = models.DescribeDSPADiscoveryTasksRequest()
|
4106
|
+
model.from_json_string(json.dumps(args))
|
4107
|
+
start_time = time.time()
|
4108
|
+
while True:
|
4109
|
+
rsp = client.DescribeDSPADiscoveryTasks(model)
|
4110
|
+
result = rsp.to_json_string()
|
4111
|
+
try:
|
4112
|
+
json_obj = json.loads(result)
|
4113
|
+
except TypeError as e:
|
4114
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4115
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4116
|
+
break
|
4117
|
+
cur_time = time.time()
|
4118
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4119
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4120
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4121
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4122
|
+
else:
|
4123
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4124
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4125
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4126
|
+
|
4127
|
+
|
4076
4128
|
def doDeleteDSPAAssessmentTask(args, parsed_globals):
|
4077
4129
|
g_param = parse_global_arg(parsed_globals)
|
4078
4130
|
|
@@ -7750,6 +7802,7 @@ ACTION_MAP = {
|
|
7750
7802
|
"CreateDSPACOSDiscoveryTask": doCreateDSPACOSDiscoveryTask,
|
7751
7803
|
"DescribeDSPACategoryRules": doDescribeDSPACategoryRules,
|
7752
7804
|
"DescribeDSPAAssessmentRiskTemplateVulnerableList": doDescribeDSPAAssessmentRiskTemplateVulnerableList,
|
7805
|
+
"DescribeDSPADiscoveryTasks": doDescribeDSPADiscoveryTasks,
|
7753
7806
|
"DeleteDSPAAssessmentTask": doDeleteDSPAAssessmentTask,
|
7754
7807
|
"VerifyDSPADiscoveryRule": doVerifyDSPADiscoveryRule,
|
7755
7808
|
"DescribeDSPACOSDiscoveryTasks": doDescribeDSPACOSDiscoveryTasks,
|
@@ -609,6 +609,13 @@
|
|
609
609
|
"output": "DescribeDSPADiscoveryTaskTablesResponse",
|
610
610
|
"status": "online"
|
611
611
|
},
|
612
|
+
"DescribeDSPADiscoveryTasks": {
|
613
|
+
"document": "获取分类分级任务列表",
|
614
|
+
"input": "DescribeDSPADiscoveryTasksRequest",
|
615
|
+
"name": "获取分类分级任务信息列表",
|
616
|
+
"output": "DescribeDSPADiscoveryTasksResponse",
|
617
|
+
"status": "online"
|
618
|
+
},
|
612
619
|
"DescribeDSPAESDataAssetByComplianceId": {
|
613
620
|
"document": "根据合规组id,去查询ES的概览页统计数据",
|
614
621
|
"input": "DescribeDSPAESDataAssetByComplianceIdRequest",
|
@@ -1838,7 +1845,7 @@
|
|
1838
1845
|
{
|
1839
1846
|
"disabled": false,
|
1840
1847
|
"document": "支持的数据源类型",
|
1841
|
-
"example": "[
|
1848
|
+
"example": "[mysql,pgsql]",
|
1842
1849
|
"member": "string",
|
1843
1850
|
"name": "SupportDataSource",
|
1844
1851
|
"output_required": true,
|
@@ -2307,7 +2314,7 @@
|
|
2307
2314
|
{
|
2308
2315
|
"disabled": false,
|
2309
2316
|
"document": "数据源Id",
|
2310
|
-
"example": "cos-
|
2317
|
+
"example": "cos-cd514cb2baa46034bedae480c871f5b6a367e123",
|
2311
2318
|
"member": "string",
|
2312
2319
|
"name": "DataSourceId",
|
2313
2320
|
"output_required": true,
|
@@ -9456,6 +9463,107 @@
|
|
9456
9463
|
],
|
9457
9464
|
"type": "object"
|
9458
9465
|
},
|
9466
|
+
"DescribeDSPADiscoveryTasksRequest": {
|
9467
|
+
"document": "DescribeDSPADiscoveryTasks请求参数结构体",
|
9468
|
+
"members": [
|
9469
|
+
{
|
9470
|
+
"disabled": false,
|
9471
|
+
"document": "DSPA实例ID",
|
9472
|
+
"example": "dspa-001",
|
9473
|
+
"member": "string",
|
9474
|
+
"name": "DspaId",
|
9475
|
+
"required": true,
|
9476
|
+
"type": "string"
|
9477
|
+
},
|
9478
|
+
{
|
9479
|
+
"disabled": false,
|
9480
|
+
"document": "数据源类型,可取值如下:\ncdb 表示云数据库 MySQL,\ndcdb 表示TDSQL MySQL版,\nmariadb 表示云数据库 MariaDB,\npostgres 表示云数据库 PostgreSQL,\ncynosdbpg 表示TDSQL-C PostgreSQL版,\ncynosdbmysql 表示TDSQL-C MySQL版,\nselfbuilt-db 表示自建数据库",
|
9481
|
+
"example": "cdb",
|
9482
|
+
"member": "string",
|
9483
|
+
"name": "DataSourceType",
|
9484
|
+
"required": true,
|
9485
|
+
"type": "string"
|
9486
|
+
},
|
9487
|
+
{
|
9488
|
+
"disabled": false,
|
9489
|
+
"document": "任务ID",
|
9490
|
+
"example": "1",
|
9491
|
+
"member": "int64",
|
9492
|
+
"name": "TaskId",
|
9493
|
+
"required": false,
|
9494
|
+
"type": "int"
|
9495
|
+
},
|
9496
|
+
{
|
9497
|
+
"disabled": false,
|
9498
|
+
"document": "任务名称",
|
9499
|
+
"example": "扫描敏感数据任务",
|
9500
|
+
"member": "string",
|
9501
|
+
"name": "Name",
|
9502
|
+
"required": false,
|
9503
|
+
"type": "string"
|
9504
|
+
},
|
9505
|
+
{
|
9506
|
+
"disabled": false,
|
9507
|
+
"document": "任务扫描结果状态,可供选择的状态值有:-1待触发 0待扫描 1扫描中 2扫描终止 3扫描成功 4扫描失败",
|
9508
|
+
"example": "[1,2]",
|
9509
|
+
"member": "int64",
|
9510
|
+
"name": "StatusList",
|
9511
|
+
"required": false,
|
9512
|
+
"type": "list"
|
9513
|
+
},
|
9514
|
+
{
|
9515
|
+
"disabled": false,
|
9516
|
+
"document": "偏移量,默认为0",
|
9517
|
+
"example": "0",
|
9518
|
+
"member": "int64",
|
9519
|
+
"name": "Offset",
|
9520
|
+
"required": false,
|
9521
|
+
"type": "int"
|
9522
|
+
},
|
9523
|
+
{
|
9524
|
+
"disabled": false,
|
9525
|
+
"document": "返回结果集数量,默认值是10000,最大值为10000,根据该资源的个数限制条件,该资源的个数不会超过10000,所以如果不输入该字段,默认获取全量数据",
|
9526
|
+
"example": "20",
|
9527
|
+
"member": "int64",
|
9528
|
+
"name": "Limit",
|
9529
|
+
"required": false,
|
9530
|
+
"type": "int"
|
9531
|
+
}
|
9532
|
+
],
|
9533
|
+
"type": "object"
|
9534
|
+
},
|
9535
|
+
"DescribeDSPADiscoveryTasksResponse": {
|
9536
|
+
"document": "DescribeDSPADiscoveryTasks返回参数结构体",
|
9537
|
+
"members": [
|
9538
|
+
{
|
9539
|
+
"disabled": false,
|
9540
|
+
"document": "任务列表",
|
9541
|
+
"example": "无",
|
9542
|
+
"member": "DspaDiscoveryTask",
|
9543
|
+
"name": "Items",
|
9544
|
+
"output_required": true,
|
9545
|
+
"type": "list",
|
9546
|
+
"value_allowed_null": false
|
9547
|
+
},
|
9548
|
+
{
|
9549
|
+
"disabled": false,
|
9550
|
+
"document": "符合条件的任务列表数",
|
9551
|
+
"example": "1",
|
9552
|
+
"member": "int64",
|
9553
|
+
"name": "TotalCount",
|
9554
|
+
"output_required": true,
|
9555
|
+
"type": "int",
|
9556
|
+
"value_allowed_null": false
|
9557
|
+
},
|
9558
|
+
{
|
9559
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
9560
|
+
"member": "string",
|
9561
|
+
"name": "RequestId",
|
9562
|
+
"type": "string"
|
9563
|
+
}
|
9564
|
+
],
|
9565
|
+
"type": "object"
|
9566
|
+
},
|
9459
9567
|
"DescribeDSPAESDataAssetByComplianceIdRequest": {
|
9460
9568
|
"document": "DescribeDSPAESDataAssetByComplianceId请求参数结构体",
|
9461
9569
|
"members": [
|
@@ -10520,7 +10628,7 @@
|
|
10520
10628
|
{
|
10521
10629
|
"disabled": false,
|
10522
10630
|
"document": "下载链接集合",
|
10523
|
-
"example": "[
|
10631
|
+
"example": "[http://www.xxx.com/url]",
|
10524
10632
|
"member": "string",
|
10525
10633
|
"name": "DownloadUrlSet",
|
10526
10634
|
"output_required": false,
|
@@ -12666,6 +12774,112 @@
|
|
12666
12774
|
],
|
12667
12775
|
"usage": "out"
|
12668
12776
|
},
|
12777
|
+
"DspaDiscoveryTask": {
|
12778
|
+
"document": "分类分级任务相关信息",
|
12779
|
+
"members": [
|
12780
|
+
{
|
12781
|
+
"disabled": false,
|
12782
|
+
"document": "任务名称",
|
12783
|
+
"example": "无",
|
12784
|
+
"member": "string",
|
12785
|
+
"name": "Name",
|
12786
|
+
"required": true,
|
12787
|
+
"type": "string",
|
12788
|
+
"value_allowed_null": false
|
12789
|
+
},
|
12790
|
+
{
|
12791
|
+
"disabled": false,
|
12792
|
+
"document": "任务描述",
|
12793
|
+
"example": "无",
|
12794
|
+
"member": "string",
|
12795
|
+
"name": "Description",
|
12796
|
+
"required": true,
|
12797
|
+
"type": "string",
|
12798
|
+
"value_allowed_null": false
|
12799
|
+
},
|
12800
|
+
{
|
12801
|
+
"disabled": false,
|
12802
|
+
"document": "执行周期,0单次 1每天 2每周 3每月",
|
12803
|
+
"example": "无",
|
12804
|
+
"member": "int64",
|
12805
|
+
"name": "Period",
|
12806
|
+
"required": true,
|
12807
|
+
"type": "int",
|
12808
|
+
"value_allowed_null": false
|
12809
|
+
},
|
12810
|
+
{
|
12811
|
+
"disabled": false,
|
12812
|
+
"document": "执行计划,0立即 1定时",
|
12813
|
+
"example": "无",
|
12814
|
+
"member": "int64",
|
12815
|
+
"name": "Plan",
|
12816
|
+
"required": true,
|
12817
|
+
"type": "int",
|
12818
|
+
"value_allowed_null": false
|
12819
|
+
},
|
12820
|
+
{
|
12821
|
+
"disabled": false,
|
12822
|
+
"document": "任务开关;1 打开,0 关闭",
|
12823
|
+
"example": "无",
|
12824
|
+
"member": "int64",
|
12825
|
+
"name": "Enable",
|
12826
|
+
"required": true,
|
12827
|
+
"type": "int",
|
12828
|
+
"value_allowed_null": false
|
12829
|
+
},
|
12830
|
+
{
|
12831
|
+
"disabled": false,
|
12832
|
+
"document": "元数据对象信息",
|
12833
|
+
"example": "无",
|
12834
|
+
"member": "DspaDiscoveryTaskDataSource",
|
12835
|
+
"name": "DataSourceInfo",
|
12836
|
+
"required": true,
|
12837
|
+
"type": "object",
|
12838
|
+
"value_allowed_null": false
|
12839
|
+
},
|
12840
|
+
{
|
12841
|
+
"disabled": false,
|
12842
|
+
"document": "通用规则集开关,0 关闭,1 启用",
|
12843
|
+
"example": "1",
|
12844
|
+
"member": "int64",
|
12845
|
+
"name": "GeneralRuleSetEnable",
|
12846
|
+
"required": true,
|
12847
|
+
"type": "int",
|
12848
|
+
"value_allowed_null": false
|
12849
|
+
},
|
12850
|
+
{
|
12851
|
+
"disabled": false,
|
12852
|
+
"document": "任务最新的一次执行结果信息,该字段用于查询任务列表接口\n注意:此字段可能返回 null,表示取不到有效值。",
|
12853
|
+
"example": "无",
|
12854
|
+
"member": "ScanTaskResult",
|
12855
|
+
"name": "Result",
|
12856
|
+
"required": true,
|
12857
|
+
"type": "object",
|
12858
|
+
"value_allowed_null": true
|
12859
|
+
},
|
12860
|
+
{
|
12861
|
+
"disabled": false,
|
12862
|
+
"document": "定时开始时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
12863
|
+
"example": "2021-12-1212:12:12",
|
12864
|
+
"member": "string",
|
12865
|
+
"name": "TimingStartTime",
|
12866
|
+
"required": true,
|
12867
|
+
"type": "string",
|
12868
|
+
"value_allowed_null": true
|
12869
|
+
},
|
12870
|
+
{
|
12871
|
+
"disabled": false,
|
12872
|
+
"document": "关联模板是否更新\n注意:此字段可能返回 null,表示取不到有效值。",
|
12873
|
+
"example": "true",
|
12874
|
+
"member": "bool",
|
12875
|
+
"name": "ComplianceUpdate",
|
12876
|
+
"required": true,
|
12877
|
+
"type": "bool",
|
12878
|
+
"value_allowed_null": true
|
12879
|
+
}
|
12880
|
+
],
|
12881
|
+
"usage": "out"
|
12882
|
+
},
|
12669
12883
|
"DspaDiscoveryTaskCOSCondition": {
|
12670
12884
|
"document": "描述对象存储类敏感识别扫描人元数据条件。",
|
12671
12885
|
"members": [
|
@@ -14492,7 +14706,7 @@
|
|
14492
14706
|
{
|
14493
14707
|
"disabled": false,
|
14494
14708
|
"document": "地域",
|
14495
|
-
"example": "ap-
|
14709
|
+
"example": "ap-shanghai",
|
14496
14710
|
"member": "string",
|
14497
14711
|
"name": "ResourceRegion",
|
14498
14712
|
"output_required": false,
|
@@ -15662,7 +15876,7 @@
|
|
15662
15876
|
{
|
15663
15877
|
"disabled": false,
|
15664
15878
|
"document": "风险等级名称",
|
15665
|
-
"example": "
|
15879
|
+
"example": "高风险",
|
15666
15880
|
"member": "string",
|
15667
15881
|
"name": "RiskLevelName",
|
15668
15882
|
"required": true,
|
@@ -15671,7 +15885,7 @@
|
|
15671
15885
|
{
|
15672
15886
|
"disabled": false,
|
15673
15887
|
"document": "风险的描述",
|
15674
|
-
"example": "
|
15888
|
+
"example": "高风险",
|
15675
15889
|
"member": "string",
|
15676
15890
|
"name": "RiskLevelDescription",
|
15677
15891
|
"required": true,
|
@@ -15806,7 +16020,7 @@
|
|
15806
16020
|
{
|
15807
16021
|
"disabled": false,
|
15808
16022
|
"document": "模板的描述",
|
15809
|
-
"example": "
|
16023
|
+
"example": "template-desc",
|
15810
16024
|
"member": "string",
|
15811
16025
|
"name": "TemplateDescription",
|
15812
16026
|
"required": false,
|
@@ -702,6 +702,14 @@
|
|
702
702
|
"title": "获取分级分级扫描的表集合"
|
703
703
|
}
|
704
704
|
],
|
705
|
+
"DescribeDSPADiscoveryTasks": [
|
706
|
+
{
|
707
|
+
"document": "",
|
708
|
+
"input": "POST / HTTP/1.1\nHost: dsgc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDSPADiscoveryTasks\n<公共请求参数>\n\n{\n \"DataSourceType\": \"cdb\",\n \"DspaId\": \"dspa-001\",\n \"Limit\": \"1\",\n \"Offset\": \"0\"\n}",
|
709
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"91c7a73v-e540-4780-8b8e-74e0b65b4f1a\",\n \"TotalCount\": 1,\n \"Items\": [\n {\n \"Name\": \"通用规则集测试\",\n \"Description\": \"\",\n \"Period\": 0,\n \"Plan\": 0,\n \"Enable\": 1,\n \"TimingStartTime\": null,\n \"GeneralRuleSetEnable\": 0,\n \"DataSourceInfo\": {\n \"ResourceRegion\": \"ap-guangzhou\",\n \"DataSourceId\": \"cdb-6dcpe42v\",\n \"DataSourceName\": \"采集测试\",\n \"ProxyAddress\": null,\n \"Condition\": \"test_report,dsgctest001\",\n \"DataSourceType\": \"cdb\"\n },\n \"ComplianceUpdate\": false,\n \"Result\": {\n \"Id\": 4142,\n \"EndTime\": \"2024-11-05 17:17:30\",\n \"Status\": 3,\n \"Result\": \"\"\n }\n }\n ]\n }\n}",
|
710
|
+
"title": "获取分类分级任务列表"
|
711
|
+
}
|
712
|
+
],
|
705
713
|
"DescribeDSPAESDataAssetByComplianceId": [
|
706
714
|
{
|
707
715
|
"document": "概览页",
|
@@ -680,7 +680,7 @@
|
|
680
680
|
"status": "online"
|
681
681
|
},
|
682
682
|
"StartFlow": {
|
683
|
-
"document": "此接口用于启动流程。它是模板发起合同的最后一步。\n在[创建签署流程](https://qian.tencent.com/developers/companyApis/startFlows/CreateFlow)和[创建电子文档](https://qian.tencent.com/developers/companyApis/startFlows/CreateDocument)之后,用于开始整个合同流程, 推进流程进入到签署环节。\n\n\n\n注:\n1.<font color=\"red\">合同发起后就会扣减合同的额度</font>, 只有撤销没有参与方签署过或只有自动签署签署过的合同,才会返还合同额度。(过期,拒签,签署完成,解除完成等状态不会返还额度)\n\n2.<font color=\"red\">静默(自动)签署不支持非本企业合同签署方存在填写</font>功能\n\n3.<font color=\"red\">在发起签署流程之前,建议等待 [PDF合成完成的回调](https://qian.tencent.com/developers/company/
|
683
|
+
"document": "此接口用于启动流程。它是模板发起合同的最后一步。\n在[创建签署流程](https://qian.tencent.com/developers/companyApis/startFlows/CreateFlow)和[创建电子文档](https://qian.tencent.com/developers/companyApis/startFlows/CreateDocument)之后,用于开始整个合同流程, 推进流程进入到签署环节。\n\n\n\n注:\n1.<font color=\"red\">合同发起后就会扣减合同的额度</font>, 只有撤销没有参与方签署过或只有自动签署签署过的合同,才会返还合同额度。(过期,拒签,签署完成,解除完成等状态不会返还额度)\n\n2.<font color=\"red\">静默(自动)签署不支持非本企业合同签署方存在填写</font>功能\n\n3.<font color=\"red\">在发起签署流程之前,建议等待 [PDF合成完成的回调](https://qian.tencent.com/developers/company/callback_types_contracts_sign#%E4%B9%9D-%E5%90%88%E5%90%8C%E6%96%87%E6%A1%A3%E5%90%88%E6%88%90%E5%AE%8C%E6%88%90%E5%9B%9E%E8%B0%83)</font>,尤其是当模板中存在动态表格等复杂填写控件时,因为合成过程可能会耗费秒级别的时间。",
|
684
684
|
"input": "StartFlowRequest",
|
685
685
|
"name": "模板发起合同-发起签署流程",
|
686
686
|
"output": "StartFlowResponse",
|
@@ -329,6 +329,58 @@ def doGetEmbedding(args, parsed_globals):
|
|
329
329
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
330
330
|
|
331
331
|
|
332
|
+
def doImageQuestion(args, parsed_globals):
|
333
|
+
g_param = parse_global_arg(parsed_globals)
|
334
|
+
|
335
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
336
|
+
cred = credential.CVMRoleCredential()
|
337
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
338
|
+
cred = credential.STSAssumeRoleCredential(
|
339
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
340
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
341
|
+
)
|
342
|
+
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):
|
343
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
344
|
+
else:
|
345
|
+
cred = credential.Credential(
|
346
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
347
|
+
)
|
348
|
+
http_profile = HttpProfile(
|
349
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
350
|
+
reqMethod="POST",
|
351
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
352
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
353
|
+
)
|
354
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
355
|
+
if g_param[OptionsDefine.Language]:
|
356
|
+
profile.language = g_param[OptionsDefine.Language]
|
357
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
358
|
+
client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
359
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
360
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
361
|
+
model = models.ImageQuestionRequest()
|
362
|
+
model.from_json_string(json.dumps(args))
|
363
|
+
start_time = time.time()
|
364
|
+
while True:
|
365
|
+
rsp = client.ImageQuestion(model)
|
366
|
+
result = rsp.to_json_string()
|
367
|
+
try:
|
368
|
+
json_obj = json.loads(result)
|
369
|
+
except TypeError as e:
|
370
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
371
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
372
|
+
break
|
373
|
+
cur_time = time.time()
|
374
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
375
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
376
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
377
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
378
|
+
else:
|
379
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
380
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
381
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
382
|
+
|
383
|
+
|
332
384
|
def doCreateThread(args, parsed_globals):
|
333
385
|
g_param = parse_global_arg(parsed_globals)
|
334
386
|
|
@@ -1178,6 +1230,7 @@ ACTION_MAP = {
|
|
1178
1230
|
"ChatTranslations": doChatTranslations,
|
1179
1231
|
"GetThreadMessageList": doGetThreadMessageList,
|
1180
1232
|
"GetEmbedding": doGetEmbedding,
|
1233
|
+
"ImageQuestion": doImageQuestion,
|
1181
1234
|
"CreateThread": doCreateThread,
|
1182
1235
|
"RunThread": doRunThread,
|
1183
1236
|
"SetPayMode": doSetPayMode,
|