tccli-intl-en 3.0.1263.1__py2.py3-none-any.whl → 3.0.1265.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/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +103 -0
- tccli/services/dlc/v20210125/examples.json +8 -0
- tccli/services/faceid/v20180301/api.json +12 -3
- tccli/services/mps/v20190612/api.json +9 -0
- tccli/services/tcaplusdb/v20190823/api.json +836 -760
- tccli/services/tcaplusdb/v20190823/examples.json +3 -3
- tccli/services/trtc/v20190722/api.json +114 -10
- {tccli_intl_en-3.0.1263.1.dist-info → tccli_intl_en-3.0.1265.1.dist-info}/METADATA +2 -2
- {tccli_intl_en-3.0.1263.1.dist-info → tccli_intl_en-3.0.1265.1.dist-info}/RECORD +15 -15
- {tccli_intl_en-3.0.1263.1.dist-info → tccli_intl_en-3.0.1265.1.dist-info}/LICENSE +0 -0
- {tccli_intl_en-3.0.1263.1.dist-info → tccli_intl_en-3.0.1265.1.dist-info}/WHEEL +0 -0
- {tccli_intl_en-3.0.1263.1.dist-info → tccli_intl_en-3.0.1265.1.dist-info}/entry_points.txt +0 -0
- {tccli_intl_en-3.0.1263.1.dist-info → tccli_intl_en-3.0.1265.1.dist-info}/top_level.txt +0 -0
tccli/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '3.0.
|
|
1
|
+
__version__ = '3.0.1265.1'
|
tccli/services/dlc/dlc_client.py
CHANGED
|
@@ -2149,6 +2149,58 @@ def doRollbackDataEngineImage(args, parsed_globals):
|
|
|
2149
2149
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2150
2150
|
|
|
2151
2151
|
|
|
2152
|
+
def doDescribeSessionImageVersion(args, parsed_globals):
|
|
2153
|
+
g_param = parse_global_arg(parsed_globals)
|
|
2154
|
+
|
|
2155
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
2156
|
+
cred = credential.CVMRoleCredential()
|
|
2157
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
2158
|
+
cred = credential.STSAssumeRoleCredential(
|
|
2159
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2160
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2161
|
+
)
|
|
2162
|
+
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):
|
|
2163
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2164
|
+
else:
|
|
2165
|
+
cred = credential.Credential(
|
|
2166
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
2167
|
+
)
|
|
2168
|
+
http_profile = HttpProfile(
|
|
2169
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
2170
|
+
reqMethod="POST",
|
|
2171
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2172
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2173
|
+
)
|
|
2174
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
2175
|
+
if g_param[OptionsDefine.Language]:
|
|
2176
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
2177
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2178
|
+
client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2179
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
2180
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2181
|
+
model = models.DescribeSessionImageVersionRequest()
|
|
2182
|
+
model.from_json_string(json.dumps(args))
|
|
2183
|
+
start_time = time.time()
|
|
2184
|
+
while True:
|
|
2185
|
+
rsp = client.DescribeSessionImageVersion(model)
|
|
2186
|
+
result = rsp.to_json_string()
|
|
2187
|
+
try:
|
|
2188
|
+
json_obj = json.loads(result)
|
|
2189
|
+
except TypeError as e:
|
|
2190
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
2191
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
2192
|
+
break
|
|
2193
|
+
cur_time = time.time()
|
|
2194
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
2195
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
2196
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
2197
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
2198
|
+
else:
|
|
2199
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
2200
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
2201
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2202
|
+
|
|
2203
|
+
|
|
2152
2204
|
def doDescribeSubUserAccessPolicy(args, parsed_globals):
|
|
2153
2205
|
g_param = parse_global_arg(parsed_globals)
|
|
2154
2206
|
|
|
@@ -5425,6 +5477,7 @@ ACTION_MAP = {
|
|
|
5425
5477
|
"CreateSparkApp": doCreateSparkApp,
|
|
5426
5478
|
"DescribeThirdPartyAccessUser": doDescribeThirdPartyAccessUser,
|
|
5427
5479
|
"RollbackDataEngineImage": doRollbackDataEngineImage,
|
|
5480
|
+
"DescribeSessionImageVersion": doDescribeSessionImageVersion,
|
|
5428
5481
|
"DescribeSubUserAccessPolicy": doDescribeSubUserAccessPolicy,
|
|
5429
5482
|
"DescribeDLCTableList": doDescribeDLCTableList,
|
|
5430
5483
|
"CreateSparkSessionBatchSQL": doCreateSparkSessionBatchSQL,
|
|
@@ -364,6 +364,13 @@
|
|
|
364
364
|
"output": "DescribeResultDownloadResponse",
|
|
365
365
|
"status": "online"
|
|
366
366
|
},
|
|
367
|
+
"DescribeSessionImageVersion": {
|
|
368
|
+
"document": "This API is used to retrieve all built-in images of all minor versions under a specified major version.",
|
|
369
|
+
"input": "DescribeSessionImageVersionRequest",
|
|
370
|
+
"name": "Retrieve built-in mirror information",
|
|
371
|
+
"output": "DescribeSessionImageVersionResponse",
|
|
372
|
+
"status": "online"
|
|
373
|
+
},
|
|
367
374
|
"DescribeSparkAppJob": {
|
|
368
375
|
"document": "u200cThis API is used to query the information of a Spark job.",
|
|
369
376
|
"input": "DescribeSparkAppJobRequest",
|
|
@@ -6326,6 +6333,52 @@
|
|
|
6326
6333
|
],
|
|
6327
6334
|
"type": "object"
|
|
6328
6335
|
},
|
|
6336
|
+
"DescribeSessionImageVersionRequest": {
|
|
6337
|
+
"document": "DescribeSessionImageVersion request structure.",
|
|
6338
|
+
"members": [
|
|
6339
|
+
{
|
|
6340
|
+
"disabled": false,
|
|
6341
|
+
"document": "Engine Id.",
|
|
6342
|
+
"example": "DataEngine-e482ijv6",
|
|
6343
|
+
"member": "string",
|
|
6344
|
+
"name": "DataEngineId",
|
|
6345
|
+
"required": true,
|
|
6346
|
+
"type": "string"
|
|
6347
|
+
},
|
|
6348
|
+
{
|
|
6349
|
+
"disabled": false,
|
|
6350
|
+
"document": "Framework type: machine-learning, python, spark-ml.",
|
|
6351
|
+
"example": "machine-learning",
|
|
6352
|
+
"member": "string",
|
|
6353
|
+
"name": "FrameworkType",
|
|
6354
|
+
"required": true,
|
|
6355
|
+
"type": "string"
|
|
6356
|
+
}
|
|
6357
|
+
],
|
|
6358
|
+
"type": "object"
|
|
6359
|
+
},
|
|
6360
|
+
"DescribeSessionImageVersionResponse": {
|
|
6361
|
+
"document": "DescribeSessionImageVersion response structure.",
|
|
6362
|
+
"members": [
|
|
6363
|
+
{
|
|
6364
|
+
"disabled": false,
|
|
6365
|
+
"document": "Expands the image list.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
6366
|
+
"example": "无",
|
|
6367
|
+
"member": "EngineSessionImage",
|
|
6368
|
+
"name": "EngineSessionImages",
|
|
6369
|
+
"output_required": true,
|
|
6370
|
+
"type": "list",
|
|
6371
|
+
"value_allowed_null": true
|
|
6372
|
+
},
|
|
6373
|
+
{
|
|
6374
|
+
"document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
|
|
6375
|
+
"member": "string",
|
|
6376
|
+
"name": "RequestId",
|
|
6377
|
+
"type": "string"
|
|
6378
|
+
}
|
|
6379
|
+
],
|
|
6380
|
+
"type": "object"
|
|
6381
|
+
},
|
|
6329
6382
|
"DescribeSparkAppJobRequest": {
|
|
6330
6383
|
"document": "DescribeSparkAppJob request structure.",
|
|
6331
6384
|
"members": [
|
|
@@ -7966,6 +8019,56 @@
|
|
|
7966
8019
|
],
|
|
7967
8020
|
"type": "object"
|
|
7968
8021
|
},
|
|
8022
|
+
"EngineSessionImage": {
|
|
8023
|
+
"document": "TensorFlow, Pytorch, SK-learn image information list.",
|
|
8024
|
+
"members": [
|
|
8025
|
+
{
|
|
8026
|
+
"disabled": false,
|
|
8027
|
+
"document": "Specifies the unique id of the Spark mirror.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
8028
|
+
"example": "无",
|
|
8029
|
+
"member": "string",
|
|
8030
|
+
"name": "SparkImageId",
|
|
8031
|
+
"output_required": true,
|
|
8032
|
+
"required": false,
|
|
8033
|
+
"type": "string",
|
|
8034
|
+
"value_allowed_null": true
|
|
8035
|
+
},
|
|
8036
|
+
{
|
|
8037
|
+
"disabled": false,
|
|
8038
|
+
"document": "Spark image version name.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
8039
|
+
"example": "无",
|
|
8040
|
+
"member": "string",
|
|
8041
|
+
"name": "SparkImageVersion",
|
|
8042
|
+
"output_required": true,
|
|
8043
|
+
"required": false,
|
|
8044
|
+
"type": "string",
|
|
8045
|
+
"value_allowed_null": true
|
|
8046
|
+
},
|
|
8047
|
+
{
|
|
8048
|
+
"disabled": false,
|
|
8049
|
+
"document": "Minor version image type. 1: TensorFlow, 2: Pytorch, 3: SK-learn.\n\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
8050
|
+
"example": "1",
|
|
8051
|
+
"member": "int64",
|
|
8052
|
+
"name": "SparkImageType",
|
|
8053
|
+
"output_required": true,
|
|
8054
|
+
"required": false,
|
|
8055
|
+
"type": "int",
|
|
8056
|
+
"value_allowed_null": true
|
|
8057
|
+
},
|
|
8058
|
+
{
|
|
8059
|
+
"disabled": false,
|
|
8060
|
+
"document": "Image address.\n\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
8061
|
+
"example": "无",
|
|
8062
|
+
"member": "string",
|
|
8063
|
+
"name": "SparkImageTag",
|
|
8064
|
+
"output_required": true,
|
|
8065
|
+
"required": false,
|
|
8066
|
+
"type": "string",
|
|
8067
|
+
"value_allowed_null": true
|
|
8068
|
+
}
|
|
8069
|
+
],
|
|
8070
|
+
"usage": "both"
|
|
8071
|
+
},
|
|
7969
8072
|
"Execution": {
|
|
7970
8073
|
"document": "SQL statement objects",
|
|
7971
8074
|
"members": [
|
|
@@ -422,6 +422,14 @@
|
|
|
422
422
|
"title": "Example 1"
|
|
423
423
|
}
|
|
424
424
|
],
|
|
425
|
+
"DescribeSessionImageVersion": [
|
|
426
|
+
{
|
|
427
|
+
"document": "Current engine: DataEngine-b0jt6fvk\nThis example shows you how to choose machine-learning as the framework type.",
|
|
428
|
+
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSessionImageVersion\n<Common request parameters>\n\n{\n \"DataEngineId\": \"DataEngine-b0jt6fvk\",\n \"FrameworkType\": \"machine-learning\"\n}",
|
|
429
|
+
"output": "{\n \"Response\": {\n \"EngineSessionImages\": [\n {\n \"SparkImageId\": \"123e4567-e89b-12d3-a456-426614174001\",\n \"SparkImageTag\": \"ccr.ccs.tencentyun.com/dlc_cloud/tensorflow:dev-v20241218\",\n \"SparkImageType\": 1,\n \"SparkImageVersion\": \"tensorflow-v2.18.0\"\n },\n {\n \"SparkImageId\": \"1a2b3c4d-5e6f-7g8h-9i0j-k1l2m3n4o5p6\",\n \"SparkImageTag\": \"ccr.ccs.tencentyun.com/dlc_cloud/scikit-learn:dev-v20241218\",\n \"SparkImageType\": 1,\n \"SparkImageVersion\": \"scikit-learn-v1.6.0\"\n },\n {\n \"SparkImageId\": \"98765432-10fe-bcd1-9a8b-0123456789ab\",\n \"SparkImageTag\": \"ccr.ccs.tencentyun.com/dlc_cloud/pytorch:dev-v20241218\",\n \"SparkImageType\": 1,\n \"SparkImageVersion\": \"pytorch-v2.5.1\"\n }\n ],\n \"RequestId\": \"c06478c4-bbc6-4cec-934b-6f9e2ff121ae\"\n }\n}",
|
|
430
|
+
"title": "Built-In Image"
|
|
431
|
+
}
|
|
432
|
+
],
|
|
425
433
|
"DescribeSparkAppJob": [
|
|
426
434
|
{
|
|
427
435
|
"document": "This example shows you how to query the information of a Spark job.",
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
},
|
|
408
408
|
{
|
|
409
409
|
"disabled": false,
|
|
410
|
-
"document": "
|
|
410
|
+
"document": "Specifies the identity document type used for authentication. valid values:. \n\nHK (default): hong kong (china) identity card.\n2. ML: malaysian identity card.\nIndonesian identity card.\n4. PhilippinesVoteID: specifies the voter card in the philippines.\n5. PhilippinesDrivingLicense: specifies the driving license in philippines.\n6. PhilippinesTinID: specifies the philippines tin id.\n7. PhilippinesSSSID: specifies the SSSID in the philippines.\n8. philippines UMID: specifies the philippines UMID.\n9. MLIDPassport: specifies the passport for hong kong (china), macao (china), and taiwan (china) as well as overseas passports.\nThailandIDCard: specifies the thai identity card.\nMainland id card.\n12. SingaporeIDCard: specifies the Singapore id card.\n13. HMTPermit: specifies the hong kong, macau and taiwan travel permit.",
|
|
411
411
|
"example": "HK",
|
|
412
412
|
"member": "string",
|
|
413
413
|
"name": "IdCardType",
|
|
@@ -450,6 +450,15 @@
|
|
|
450
450
|
"required": false,
|
|
451
451
|
"type": "bool"
|
|
452
452
|
},
|
|
453
|
+
{
|
|
454
|
+
"disabled": false,
|
|
455
|
+
"document": "Customize which alarm codes to block. If left blank, all alarm codes will be blocked by default.\nOptional alarm codes are: -9101 (occlusion or incomplete border), -9102 (photocopying), -9103 (screen capture by camera), -9104 (image editing/PS modification), -9107 (glare/reflection), -9108 (blurriness), -9901 (other alarms).",
|
|
456
|
+
"example": "[-9101]",
|
|
457
|
+
"member": "int64",
|
|
458
|
+
"name": "SelectedWarningCodes",
|
|
459
|
+
"required": false,
|
|
460
|
+
"type": "list"
|
|
461
|
+
},
|
|
453
462
|
{
|
|
454
463
|
"disabled": false,
|
|
455
464
|
"document": "A passthrough field, which is returned together with the verification result and can contain up to 1,024 bits.",
|
|
@@ -461,7 +470,7 @@
|
|
|
461
470
|
},
|
|
462
471
|
{
|
|
463
472
|
"disabled": false,
|
|
464
|
-
"document": "ENHANCED:
|
|
473
|
+
"document": "ENHANCED: enhanced.\nBASIC: basic version (default).",
|
|
465
474
|
"example": "ENHANCED",
|
|
466
475
|
"member": "string",
|
|
467
476
|
"name": "SdkVersion",
|
|
@@ -485,7 +494,7 @@
|
|
|
485
494
|
"members": [
|
|
486
495
|
{
|
|
487
496
|
"disabled": false,
|
|
488
|
-
"document": "
|
|
497
|
+
"document": "A token that identifies an SDK verification process. the validity time is 10 minutes. after the process is complete, the token can be used to retrieve the verification result.",
|
|
489
498
|
"example": "A561B769-C347-4724-A69A-6C3B3483E107",
|
|
490
499
|
"member": "string",
|
|
491
500
|
"name": "SdkToken",
|
|
@@ -21396,6 +21396,15 @@
|
|
|
21396
21396
|
"required": false,
|
|
21397
21397
|
"type": "string"
|
|
21398
21398
|
},
|
|
21399
|
+
{
|
|
21400
|
+
"disabled": false,
|
|
21401
|
+
"document": "Output path, which can be a relative or an absolute path.\nThe path must end with `.{format}`. For details, please refer to the [Filename Variable](https://www.tencentcloud.comom/document/product/862/37039?from_cn_redirect=1).\n**Relative path example:**\n<Li>`Filename_{Variablename}.{format}`.</li>\n<Li>`Filename.{format}`.</li>\n\n**Absolute path example:**\n<Li>`/Path/Filename_{Variablename}.{format}`.</li>\n\nIf not filled in, default relative path: `{inputName}.{format}`.",
|
|
21402
|
+
"example": "{inputName}.{format}",
|
|
21403
|
+
"member": "string",
|
|
21404
|
+
"name": "OutputPath",
|
|
21405
|
+
"required": false,
|
|
21406
|
+
"type": "string"
|
|
21407
|
+
},
|
|
21399
21408
|
{
|
|
21400
21409
|
"disabled": false,
|
|
21401
21410
|
"document": "Image processing parameter.",
|