tccli 3.0.1147.1__py2.py3-none-any.whl → 3.0.1149.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/aiart_client.py +53 -0
  3. tccli/services/aiart/v20221229/api.json +80 -0
  4. tccli/services/aiart/v20221229/examples.json +8 -0
  5. tccli/services/asr/v20190614/api.json +6 -6
  6. tccli/services/cam/v20190116/api.json +4 -4
  7. tccli/services/cam/v20190116/examples.json +1 -1
  8. tccli/services/clb/v20180317/api.json +1 -1
  9. tccli/services/cwp/v20180228/api.json +63 -16
  10. tccli/services/cwp/v20180228/examples.json +1 -1
  11. tccli/services/dcdb/v20180411/api.json +2 -0
  12. tccli/services/dnspod/v20210323/api.json +9 -0
  13. tccli/services/ess/ess_client.py +53 -0
  14. tccli/services/ess/v20201111/api.json +67 -5
  15. tccli/services/ess/v20201111/examples.json +14 -0
  16. tccli/services/essbasic/essbasic_client.py +57 -4
  17. tccli/services/essbasic/v20210526/api.json +56 -3
  18. tccli/services/essbasic/v20210526/examples.json +8 -0
  19. tccli/services/gaap/gaap_client.py +53 -0
  20. tccli/services/gaap/v20180529/api.json +24 -0
  21. tccli/services/gaap/v20180529/examples.json +8 -0
  22. tccli/services/lighthouse/v20200324/api.json +33 -31
  23. tccli/services/lighthouse/v20200324/examples.json +3 -3
  24. tccli/services/live/v20180801/api.json +6 -0
  25. tccli/services/live/v20180801/examples.json +1 -1
  26. tccli/services/lke/lke_client.py +53 -0
  27. tccli/services/lke/v20231130/api.json +160 -1
  28. tccli/services/lke/v20231130/examples.json +8 -0
  29. tccli/services/mariadb/mariadb_client.py +53 -0
  30. tccli/services/mariadb/v20170312/api.json +88 -0
  31. tccli/services/mariadb/v20170312/examples.json +8 -0
  32. tccli/services/mna/mna_client.py +485 -8
  33. tccli/services/mna/v20210119/api.json +743 -21
  34. tccli/services/mna/v20210119/examples.json +72 -0
  35. tccli/services/mongodb/v20190725/api.json +35 -35
  36. tccli/services/monitor/v20180724/api.json +1 -1
  37. tccli/services/mps/v20190612/api.json +31 -10
  38. tccli/services/oceanus/v20190422/api.json +24 -0
  39. tccli/services/organization/v20210331/api.json +1 -1
  40. tccli/services/rum/v20210622/api.json +9 -0
  41. tccli/services/tdmq/v20200217/api.json +12 -10
  42. tccli/services/tdmq/v20200217/examples.json +1 -1
  43. tccli/services/thpc/v20230321/api.json +11 -3
  44. tccli/services/tke/v20180525/api.json +3 -3
  45. tccli/services/trtc/v20190722/api.json +15 -5
  46. tccli/services/tsf/tsf_client.py +110 -4
  47. tccli/services/tsf/v20180326/api.json +142 -0
  48. tccli/services/tsf/v20180326/examples.json +16 -0
  49. tccli/services/vpc/v20170312/api.json +1 -1
  50. {tccli-3.0.1147.1.dist-info → tccli-3.0.1149.1.dist-info}/METADATA +2 -2
  51. {tccli-3.0.1147.1.dist-info → tccli-3.0.1149.1.dist-info}/RECORD +54 -54
  52. {tccli-3.0.1147.1.dist-info → tccli-3.0.1149.1.dist-info}/WHEEL +0 -0
  53. {tccli-3.0.1147.1.dist-info → tccli-3.0.1149.1.dist-info}/entry_points.txt +0 -0
  54. {tccli-3.0.1147.1.dist-info → tccli-3.0.1149.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1147.1'
1
+ __version__ = '3.0.1149.1'
@@ -485,6 +485,58 @@ def doTextToImage(args, parsed_globals):
485
485
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
486
486
 
487
487
 
488
+ def doChangeClothes(args, parsed_globals):
489
+ g_param = parse_global_arg(parsed_globals)
490
+
491
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
492
+ cred = credential.CVMRoleCredential()
493
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
494
+ cred = credential.STSAssumeRoleCredential(
495
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
496
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
497
+ )
498
+ 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):
499
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
500
+ else:
501
+ cred = credential.Credential(
502
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
503
+ )
504
+ http_profile = HttpProfile(
505
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
506
+ reqMethod="POST",
507
+ endpoint=g_param[OptionsDefine.Endpoint],
508
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
509
+ )
510
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
511
+ if g_param[OptionsDefine.Language]:
512
+ profile.language = g_param[OptionsDefine.Language]
513
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
514
+ client = mod.AiartClient(cred, g_param[OptionsDefine.Region], profile)
515
+ client._sdkVersion += ("_CLI_" + __version__)
516
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
517
+ model = models.ChangeClothesRequest()
518
+ model.from_json_string(json.dumps(args))
519
+ start_time = time.time()
520
+ while True:
521
+ rsp = client.ChangeClothes(model)
522
+ result = rsp.to_json_string()
523
+ try:
524
+ json_obj = json.loads(result)
525
+ except TypeError as e:
526
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
527
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
528
+ break
529
+ cur_time = time.time()
530
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
531
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
532
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
533
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
534
+ else:
535
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
536
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
537
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
538
+
539
+
488
540
  def doSubmitDrawPortraitJob(args, parsed_globals):
489
541
  g_param = parse_global_arg(parsed_globals)
490
542
 
@@ -609,6 +661,7 @@ ACTION_MAP = {
609
661
  "UploadTrainPortraitImages": doUploadTrainPortraitImages,
610
662
  "QueryDrawPortraitJob": doQueryDrawPortraitJob,
611
663
  "TextToImage": doTextToImage,
664
+ "ChangeClothes": doChangeClothes,
612
665
  "SubmitDrawPortraitJob": doSubmitDrawPortraitJob,
613
666
  "ImageToImage": doImageToImage,
614
667
 
@@ -1,5 +1,12 @@
1
1
  {
2
2
  "actions": {
3
+ "ChangeClothes": {
4
+ "document": "上传正面全身模特照和服装平铺图,生成模特换装后的图片。\n生成的换装图片分辨率和模特照分辨率一致。\n模特换装默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
5
+ "input": "ChangeClothesRequest",
6
+ "name": "模特换装",
7
+ "output": "ChangeClothesResponse",
8
+ "status": "online"
9
+ },
3
10
  "GenerateAvatar": {
4
11
  "document": "百变头像接口将根据输入的人像照片,生成风格百变的头像。\n百变头像默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
5
12
  "input": "GenerateAvatarRequest",
@@ -85,6 +92,79 @@
85
92
  "serviceShortName": "aiart"
86
93
  },
87
94
  "objects": {
95
+ "ChangeClothesRequest": {
96
+ "document": "ChangeClothes请求参数结构体",
97
+ "members": [
98
+ {
99
+ "disabled": false,
100
+ "document": "模特图片 Url。\n图片限制:单边分辨率小于3000,且大于512,转成 Base64 字符串后小于 8MB。\n输入要求:\n1、建议上传正面模特图片,至少完整露出应穿着输入指定服装的身体部位(全身、上半身或下半身),无大角度身体偏转或异常姿势。\n2、建议上传3:4比例的图片,生成效果更佳。\n3、建议模特图片中的原始服装和更换后的服装类别一致,或原始服装在身体上的覆盖范围小于等于更换后的服装(例如需要给模特换上短裤,则原始模特图片中也建议穿短裤,不建议穿长裤),否则会影响人像生成效果。\n",
101
+ "example": "无",
102
+ "member": "string",
103
+ "name": "ModelUrl",
104
+ "required": true,
105
+ "type": "string"
106
+ },
107
+ {
108
+ "disabled": false,
109
+ "document": "服装图片 Url。\n图片限制:单边分辨率小于3000,大于512,转成 Base64 字符串后小于 8MB。\n输入要求:\n建议上传服装完整的正面平铺图片,仅包含1个服装主体,服装类型支持上衣、下装、连衣裙,三选一。算法将根据输入的图片,结合服装图片给模特换装。",
110
+ "example": "无",
111
+ "member": "string",
112
+ "name": "ClothesUrl",
113
+ "required": true,
114
+ "type": "string"
115
+ },
116
+ {
117
+ "disabled": false,
118
+ "document": "服装类型,需要和服装图片保持一致。\n取值:\nUpper-body:上衣\nLower-body:下装\nDress:连衣裙",
119
+ "example": "无",
120
+ "member": "string",
121
+ "name": "ClothesType",
122
+ "required": true,
123
+ "type": "string"
124
+ },
125
+ {
126
+ "disabled": false,
127
+ "document": "为生成结果图添加标识的开关,默认为1。\n1:添加标识。\n0:不添加标识。\n其他数值:默认按1处理。\n建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。",
128
+ "example": "无",
129
+ "member": "int64",
130
+ "name": "LogoAdd",
131
+ "required": false,
132
+ "type": "int"
133
+ },
134
+ {
135
+ "disabled": false,
136
+ "document": "返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。\n生成图分辨率较大时建议选择 url,使用 base64 可能因图片过大导致返回失败。",
137
+ "example": "base64",
138
+ "member": "string",
139
+ "name": "RspImgType",
140
+ "required": false,
141
+ "type": "string"
142
+ }
143
+ ],
144
+ "type": "object"
145
+ },
146
+ "ChangeClothesResponse": {
147
+ "document": "ChangeClothes返回参数结构体",
148
+ "members": [
149
+ {
150
+ "disabled": false,
151
+ "document": "根据入参 RspImgType 填入不同,返回不同的内容。\n如果传入 base64 则返回生成图 Base64 编码。\n如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。",
152
+ "example": "无",
153
+ "member": "string",
154
+ "name": "ResultImage",
155
+ "output_required": true,
156
+ "type": "string",
157
+ "value_allowed_null": false
158
+ },
159
+ {
160
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
161
+ "member": "string",
162
+ "name": "RequestId",
163
+ "type": "string"
164
+ }
165
+ ],
166
+ "type": "object"
167
+ },
88
168
  "Filter": {
89
169
  "document": "训练图像质量过滤开关配置。\n支持开启或关闭对训练图像分辨率下限、脸部区域大小、脸部遮挡、脸部角度的过滤,默认开启以上过滤。\n如果训练图像内包含多人脸或无人脸、和 Base 人像不为同一人也将被过滤,不可关闭该过滤条件。\n建议:关闭以上过滤可能导致写真生成效果受损,建议使用单人、正脸、脸部清晰、无遮挡、无夸张表情、脸部区域占比较大的图像进行训练。",
90
170
  "members": [
@@ -1,5 +1,13 @@
1
1
  {
2
2
  "actions": {
3
+ "ChangeClothes": [
4
+ {
5
+ "document": "",
6
+ "input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChangeClothes\n<公共请求参数>\n\n{\n \"ModelUrl\": \"https://xxx.com/test.jpg\",\n \"ClothesUrl\": \"https://xxx.com/test.jpg\",\n \"ClothesType\": \"Upper-body\",\n \"RspImgType\": \"url\"\n}",
7
+ "output": "{\n \"Response\": {\n \"RequestId\": \"0d0728ed-f777-4861-aa4b-5a6167daa0b6\",\n \"ResultImage\": \"https://result.jpg\"\n }\n}",
8
+ "title": "成功"
9
+ }
10
+ ],
3
11
  "GenerateAvatar": [
4
12
  {
5
13
  "document": "",
@@ -2727,19 +2727,19 @@
2727
2727
  },
2728
2728
  {
2729
2729
  "disabled": false,
2730
- "document": "说话人id, 说话人唯一标识",
2731
- "example": "dasdagfdgddsdsada",
2730
+ "document": "音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2M\t",
2731
+ "example": "",
2732
2732
  "member": "string",
2733
- "name": "VoicePrintId",
2733
+ "name": "Data",
2734
2734
  "required": true,
2735
2735
  "type": "string"
2736
2736
  },
2737
2737
  {
2738
2738
  "disabled": false,
2739
- "document": "音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2M\t",
2740
- "example": "",
2739
+ "document": "说话人id, 说话人唯一标识",
2740
+ "example": "dasdagfdgddsdsada",
2741
2741
  "member": "string",
2742
- "name": "Data",
2742
+ "name": "VoicePrintId",
2743
2743
  "required": true,
2744
2744
  "type": "string"
2745
2745
  }
@@ -2454,7 +2454,7 @@
2454
2454
  {
2455
2455
  "disabled": false,
2456
2456
  "document": "SAML身份提供商名称",
2457
- "example": "",
2457
+ "example": "testName",
2458
2458
  "member": "string",
2459
2459
  "name": "Name",
2460
2460
  "required": true,
@@ -7016,7 +7016,7 @@
7016
7016
  {
7017
7017
  "disabled": false,
7018
7018
  "document": "SAML身份提供商名称",
7019
- "example": "",
7019
+ "example": "testName",
7020
7020
  "member": "string",
7021
7021
  "name": "Name",
7022
7022
  "required": true,
@@ -7025,7 +7025,7 @@
7025
7025
  {
7026
7026
  "disabled": false,
7027
7027
  "document": "SAML身份提供商描述",
7028
- "example": "",
7028
+ "example": "test",
7029
7029
  "member": "string",
7030
7030
  "name": "Description",
7031
7031
  "required": false,
@@ -7034,7 +7034,7 @@
7034
7034
  {
7035
7035
  "disabled": false,
7036
7036
  "document": "SAML身份提供商Base64编码的元数据文档",
7037
- "example": "",
7037
+ "example": "PD94bWwgdmVyc2lvbj0iMS4wIi***",
7038
7038
  "member": "string",
7039
7039
  "name": "SAMLMetadataDocument",
7040
7040
  "required": false,
@@ -687,7 +687,7 @@
687
687
  "UpdateSAMLProvider": [
688
688
  {
689
689
  "document": "",
690
- "input": "POST / HTTP/1.1\nHost: cam.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateSAMLProvider\n<公共请求参数>\n\n{\n \"SAMLMetadataDocument\": \"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48bWQ6RW50aXR5RGVzY3JpcHRvciBlbnRpdHlJRD0iaHR0cDovL3d3dy5va3RhLmNvbS9leGsxa3F4bWNqUW1HQURNeTM1NyIgeG1sbnM6bWQ9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDptZXRhZGF0YSI%2BPG1kOklEUFNTT0Rlc2NyaXB0b3IgV2FudEF1dGhuUmVxdWVzdHNTaWduZWQ9ImZhbHNlIiBwcm90b2NvbFN1cHBvcnRFbnVtZXJhdGlvbj0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnB%3D%3D\",\n \"Name\": \"testName\",\n \"Description\": \"testProvider\"\n}",
690
+ "input": "https://cam.tencentcloudapi.com/?Action=UpdateSAMLProvider\r\n&Name=testName\r\n&Description=testProvider\r\n&SAMLMetadataDocument=PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48bWQ6RW50aXR5RGVzY3JpcHRvciBlbnRpdHlJRD0iaHR0cDovL3d3dy5va3RhLmNvbS9leGsxa3F4bWNqUW1HQURNeTM1NyIgeG1sbnM6bWQ9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDptZXRhZGF0YSI%2BPG1kOklEUFNTT0Rlc2NyaXB0b3IgV2FudEF1dGhuUmVxdWVzdHNTaWduZWQ9ImZhbHNlIiBwcm90b2NvbFN1cHBvcnRFbnVtZXJhdGlvbj0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnB%3D%3D&Signature=bmqyzCmdLxEFbsI6pu40V%2BEbWNo%3D\r\n&<公共请求参数>",
691
691
  "output": "{\n \"Response\": {\n \"RequestId\": \"1e44e8e5-7878-4aa0-8bd2-555dde56cddb\"\n }\n}",
692
692
  "title": "更新身份提供商"
693
693
  }
@@ -43,7 +43,7 @@
43
43
  "status": "online"
44
44
  },
45
45
  "CloneLoadBalancer": {
46
- "document": "克隆负载均衡实例,根据指定的负载均衡实例,复制出相同规则和绑定关系的负载均衡实例。克隆接口为异步操作,克隆的数据以调用CloneLoadBalancer时为准,如果调用CloneLoadBalancer后克隆CLB发生变化,变化规则不会克隆。\n\n注:查询实例创建状态可以根据返回值中的requestId访问[DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683)接口\n\n限制说明:\n实例属性维度限制\n 仅支持克隆按量计费实例,不支持包年包月实例。\n 不支持克隆未关联实例计费项的 CLB。\n 不支持克隆传统型负载均衡实例和高防 CLB。\n 不支持克隆基础网络类型的实例。\n 不支持克隆 IPv6、IPv6 NAT64 版本以及混绑的实例。\n 个性化配置、重定向配置、安全组默认放通开关的配置将不会被克隆,需重新配置。\n 执行克隆操作前,请确保实例上没有使用已过期证书,否则会导致克隆失败。\n监听器维度限制\n 不支持克隆监听器为 QUIC 类型和端口段的实例。\n 不支持监听器为 TCP_SSL 的内网型负载均衡的实例。\n 不支持克隆七层监听器没有转发规则的实例。\n 当实例的监听器个数超过50个时,不支持克隆。\n后端服务维度限制\n 不支持克隆绑定的后端服务类型为目标组和 SCF 云函数的实例。\n\n通过接口调用:\nBGP带宽包必须传带宽包id\n独占集群克隆必须传对应的参数,否则按共享型创建\n功能内测中,请提交 [内测申请](https://cloud.tencent.com/apply/p/1akuvsmyn0g)。",
46
+ "document": "克隆负载均衡实例,根据指定的负载均衡实例,复制出相同规则和绑定关系的负载均衡实例。克隆接口为异步操作,克隆的数据以调用CloneLoadBalancer时为准,如果调用CloneLoadBalancer后克隆CLB发生变化,变化规则不会克隆。\n\n注:查询实例创建状态可以根据返回值中的requestId访问[DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683)接口\n\n限制说明\n实例属性维度限制:\n- 支持克隆网络计费模式为按量计费与包年包月的实例,包年包月实例克隆后的新实例网络计费模式会转换为按小时带宽计费,其带宽、规格与原实例设置保持一致。\n- 不支持克隆未关联实例计费项的 CLB。\n- 不支持克隆传统型负载均衡实例和高防 CLB。\n- 不支持克隆基础网络类型的实例。\n- 不支持克隆 Anycast 类型的实例。\n- 不支持克隆 IPv6 NAT64 版本的实例。\n- 不支持克隆被封禁或冻结的实例。\n- 执行克隆操作前,请确保实例上没有使用已过期证书,否则会导致克隆失败。\n配额维度限制:\n- 当实例的监听器个数超过 50 个时,不支持克隆。\n- 当共享型实例的公网带宽上限超过 2G 时,不支持克隆。\n\n通过接口调用:\nBGP带宽包必须传带宽包id\n独占集群克隆必须传对应的参数,否则按共享型创建\n功能内测中,请提交 [内测申请](https://cloud.tencent.com/apply/p/1akuvsmyn0g)。",
47
47
  "input": "CloneLoadBalancerRequest",
48
48
  "name": "克隆负载均衡实例",
49
49
  "output": "CloneLoadBalancerResponse",
@@ -28853,7 +28853,7 @@
28853
28853
  "example": "1",
28854
28854
  "member": "uint64",
28855
28855
  "name": "CheckPattern",
28856
- "required": true,
28856
+ "output_required": true,
28857
28857
  "type": "int",
28858
28858
  "value_allowed_null": false
28859
28859
  },
@@ -28863,7 +28863,7 @@
28863
28863
  "example": "xxx",
28864
28864
  "member": "string",
28865
28865
  "name": "StartTime",
28866
- "required": true,
28866
+ "output_required": true,
28867
28867
  "type": "string",
28868
28868
  "value_allowed_null": false
28869
28869
  },
@@ -28873,7 +28873,7 @@
28873
28873
  "example": "xxx",
28874
28874
  "member": "string",
28875
28875
  "name": "EndTime",
28876
- "required": true,
28876
+ "output_required": true,
28877
28877
  "type": "string",
28878
28878
  "value_allowed_null": false
28879
28879
  },
@@ -28883,7 +28883,7 @@
28883
28883
  "example": "1",
28884
28884
  "member": "uint64",
28885
28885
  "name": "IsGlobal",
28886
- "required": true,
28886
+ "output_required": true,
28887
28887
  "type": "int",
28888
28888
  "value_allowed_null": false
28889
28889
  },
@@ -28893,7 +28893,7 @@
28893
28893
  "example": "[]",
28894
28894
  "member": "string",
28895
28895
  "name": "QuuidList",
28896
- "required": true,
28896
+ "output_required": true,
28897
28897
  "type": "list",
28898
28898
  "value_allowed_null": true
28899
28899
  },
@@ -28903,7 +28903,7 @@
28903
28903
  "example": "1",
28904
28904
  "member": "uint64",
28905
28905
  "name": "MonitoringPattern",
28906
- "required": true,
28906
+ "output_required": true,
28907
28907
  "type": "int",
28908
28908
  "value_allowed_null": false
28909
28909
  },
@@ -28913,7 +28913,7 @@
28913
28913
  "example": "1",
28914
28914
  "member": "uint64",
28915
28915
  "name": "Cycle",
28916
- "required": true,
28916
+ "output_required": true,
28917
28917
  "type": "int",
28918
28918
  "value_allowed_null": false
28919
28919
  },
@@ -28923,7 +28923,7 @@
28923
28923
  "example": "1",
28924
28924
  "member": "int64",
28925
28925
  "name": "EnableScan",
28926
- "required": true,
28926
+ "output_required": true,
28927
28927
  "type": "int",
28928
28928
  "value_allowed_null": false
28929
28929
  },
@@ -28933,7 +28933,7 @@
28933
28933
  "example": "xxx",
28934
28934
  "member": "int64",
28935
28935
  "name": "Id",
28936
- "required": true,
28936
+ "output_required": true,
28937
28937
  "type": "int",
28938
28938
  "value_allowed_null": false
28939
28939
  },
@@ -28943,7 +28943,7 @@
28943
28943
  "example": "1",
28944
28944
  "member": "int64",
28945
28945
  "name": "RealTimeMonitoring",
28946
- "required": true,
28946
+ "output_required": true,
28947
28947
  "type": "int",
28948
28948
  "value_allowed_null": false
28949
28949
  },
@@ -28953,7 +28953,7 @@
28953
28953
  "example": "1",
28954
28954
  "member": "uint64",
28955
28955
  "name": "AutoIsolation",
28956
- "required": true,
28956
+ "output_required": true,
28957
28957
  "type": "int",
28958
28958
  "value_allowed_null": false
28959
28959
  },
@@ -28963,7 +28963,7 @@
28963
28963
  "example": "60",
28964
28964
  "member": "uint64",
28965
28965
  "name": "ClickTimeout",
28966
- "required": true,
28966
+ "output_required": true,
28967
28967
  "type": "int",
28968
28968
  "value_allowed_null": false
28969
28969
  },
@@ -28973,7 +28973,7 @@
28973
28973
  "example": "1",
28974
28974
  "member": "uint64",
28975
28975
  "name": "KillProcess",
28976
- "required": true,
28976
+ "output_required": true,
28977
28977
  "type": "int",
28978
28978
  "value_allowed_null": false
28979
28979
  },
@@ -28983,7 +28983,7 @@
28983
28983
  "example": "1",
28984
28984
  "member": "uint64",
28985
28985
  "name": "EngineType",
28986
- "required": true,
28986
+ "output_required": true,
28987
28987
  "type": "int",
28988
28988
  "value_allowed_null": false
28989
28989
  },
@@ -28993,7 +28993,7 @@
28993
28993
  "example": "1",
28994
28994
  "member": "uint64",
28995
28995
  "name": "EnableInspiredEngine",
28996
- "required": true,
28996
+ "output_required": true,
28997
28997
  "type": "int",
28998
28998
  "value_allowed_null": false
28999
28999
  },
@@ -29003,7 +29003,27 @@
29003
29003
  "example": "1",
29004
29004
  "member": "uint64",
29005
29005
  "name": "EnableMemShellScan",
29006
- "required": true,
29006
+ "output_required": true,
29007
+ "type": "int",
29008
+ "value_allowed_null": false
29009
+ },
29010
+ {
29011
+ "disabled": false,
29012
+ "document": "防护模式 0 标准 1 重保",
29013
+ "example": "0",
29014
+ "member": "uint64",
29015
+ "name": "ProtectMode",
29016
+ "output_required": false,
29017
+ "type": "int",
29018
+ "value_allowed_null": false
29019
+ },
29020
+ {
29021
+ "disabled": false,
29022
+ "document": "查杀范围 0 脚本类之外的恶意文件,1全部恶意文件",
29023
+ "example": "0",
29024
+ "member": "uint64",
29025
+ "name": "ProtectFileScope",
29026
+ "output_required": false,
29007
29027
  "type": "int",
29008
29028
  "value_allowed_null": false
29009
29029
  },
@@ -47974,6 +47994,15 @@
47974
47994
  "required": false,
47975
47995
  "type": "int"
47976
47996
  },
47997
+ {
47998
+ "disabled": false,
47999
+ "document": "1 清理, 0 不清理\n<li>本操作会修复被篡改的系统命令,计划任务等系统文件,操作中请确保yum/apt 可用</li>",
48000
+ "example": "无",
48001
+ "member": "uint64",
48002
+ "name": "DoClean",
48003
+ "required": false,
48004
+ "type": "int"
48005
+ },
47977
48006
  {
47978
48007
  "disabled": false,
47979
48008
  "document": "1标准模式(只报严重、高危)、2增强模式(报严重、高危、中危)、3严格模式(报严重、高、中、低、提示)",
@@ -48000,6 +48029,24 @@
48000
48029
  "name": "EnableMemShellScan",
48001
48030
  "required": false,
48002
48031
  "type": "int"
48032
+ },
48033
+ {
48034
+ "disabled": false,
48035
+ "document": "防护模式 0 标准 1重保",
48036
+ "example": "0",
48037
+ "member": "uint64",
48038
+ "name": "ProtectMode",
48039
+ "required": false,
48040
+ "type": "int"
48041
+ },
48042
+ {
48043
+ "disabled": false,
48044
+ "document": "查杀范围 0 脚本类之外的恶意文件,1全部恶意文件",
48045
+ "example": "0",
48046
+ "member": "uint64",
48047
+ "name": "ProtectFileScope",
48048
+ "required": false,
48049
+ "type": "int"
48003
48050
  }
48004
48051
  ],
48005
48052
  "type": "object"
@@ -1992,7 +1992,7 @@
1992
1992
  {
1993
1993
  "document": "",
1994
1994
  "input": "POST / HTTP/1.1\nHost: cwp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeMalwareTimingScanSetting\n<公共请求参数>\n\n{}",
1995
- "output": "{\n \"Response\": {\n \"RequestId\": \"1e96ed81-a2f2-4029-893b-b63ed1328694\",\n \"CheckPattern\": 1,\n \"StartTime\": \"2020-05-20 00:00:00\",\n \"EndTime\": \"2020-05-20 00:00:00\",\n \"IsGlobal\": 1,\n \"QuuidList\": [\n \"972290ce-2e07-4689-8f92-f617239bbf82\"\n ],\n \"RealTimeMonitoring\": 1,\n \"MonitoringPattern\": 0,\n \"Cycle\": 1,\n \"EnableScan\": 1,\n \"Id\": 0,\n \"AutoIsolation\": 1,\n \"KillProcess\": 1,\n \"ClickTimeout\": 0,\n \"EngineType\": 1,\n \"EnableInspiredEngine\": 1,\n \"EnableMemShellScan\": 1\n }\n}",
1995
+ "output": "{\n \"Response\": {\n \"RequestId\": \"1e96ed81-a2f2-4029-893b-b63ed1328694\",\n \"CheckPattern\": 1,\n \"StartTime\": \"2020-05-20 00:00:00\",\n \"EndTime\": \"2020-05-20 00:00:00\",\n \"IsGlobal\": 1,\n \"QuuidList\": [\n \"972290ce-2e07-4689-8f92-f617239bbf82\"\n ],\n \"RealTimeMonitoring\": 1,\n \"MonitoringPattern\": 0,\n \"Cycle\": 1,\n \"EnableScan\": 1,\n \"Id\": 0,\n \"AutoIsolation\": 1,\n \"KillProcess\": 1,\n \"ClickTimeout\": 0,\n \"EngineType\": 1,\n \"EnableInspiredEngine\": 1,\n \"EnableMemShellScan\": 1,\n \"ProtectMode\": 0,\n \"ProtectFileScope\": 0\n }\n}",
1996
1996
  "title": "查询定时扫描配置"
1997
1997
  }
1998
1998
  ],
@@ -6747,6 +6747,7 @@
6747
6747
  "example": "[]",
6748
6748
  "member": "string",
6749
6749
  "name": "SuccessInstanceIds",
6750
+ "output_required": true,
6750
6751
  "type": "list",
6751
6752
  "value_allowed_null": false
6752
6753
  },
@@ -6756,6 +6757,7 @@
6756
6757
  "example": "[]",
6757
6758
  "member": "string",
6758
6759
  "name": "FailedInstanceIds",
6760
+ "output_required": true,
6759
6761
  "type": "list",
6760
6762
  "value_allowed_null": false
6761
6763
  },
@@ -1930,6 +1930,15 @@
1930
1930
  "name": "DnssecConflictMode",
1931
1931
  "required": false,
1932
1932
  "type": "string"
1933
+ },
1934
+ {
1935
+ "disabled": false,
1936
+ "document": "记录分组 Id。可以通过接口 DescribeRecordGroupList 接口 GroupId 字段获取。",
1937
+ "example": "123",
1938
+ "member": "uint64",
1939
+ "name": "GroupId",
1940
+ "required": false,
1941
+ "type": "int"
1933
1942
  }
1934
1943
  ],
1935
1944
  "type": "object"
@@ -2877,6 +2877,58 @@ def doCreateBatchOrganizationRegistrationTasks(args, parsed_globals):
2877
2877
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2878
2878
 
2879
2879
 
2880
+ def doCreateEmployeeQualificationSealQrCode(args, parsed_globals):
2881
+ g_param = parse_global_arg(parsed_globals)
2882
+
2883
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2884
+ cred = credential.CVMRoleCredential()
2885
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2886
+ cred = credential.STSAssumeRoleCredential(
2887
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2888
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2889
+ )
2890
+ 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):
2891
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2892
+ else:
2893
+ cred = credential.Credential(
2894
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2895
+ )
2896
+ http_profile = HttpProfile(
2897
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2898
+ reqMethod="POST",
2899
+ endpoint=g_param[OptionsDefine.Endpoint],
2900
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2901
+ )
2902
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2903
+ if g_param[OptionsDefine.Language]:
2904
+ profile.language = g_param[OptionsDefine.Language]
2905
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2906
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
2907
+ client._sdkVersion += ("_CLI_" + __version__)
2908
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2909
+ model = models.CreateEmployeeQualificationSealQrCodeRequest()
2910
+ model.from_json_string(json.dumps(args))
2911
+ start_time = time.time()
2912
+ while True:
2913
+ rsp = client.CreateEmployeeQualificationSealQrCode(model)
2914
+ result = rsp.to_json_string()
2915
+ try:
2916
+ json_obj = json.loads(result)
2917
+ except TypeError as e:
2918
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2919
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2920
+ break
2921
+ cur_time = time.time()
2922
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2923
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2924
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2925
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2926
+ else:
2927
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2928
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2929
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2930
+
2931
+
2880
2932
  def doCreateExtendedServiceAuthInfos(args, parsed_globals):
2881
2933
  g_param = parse_global_arg(parsed_globals)
2882
2934
 
@@ -4555,6 +4607,7 @@ ACTION_MAP = {
4555
4607
  "DescribeUserVerifyStatus": doDescribeUserVerifyStatus,
4556
4608
  "ModifyIntegrationRole": doModifyIntegrationRole,
4557
4609
  "CreateBatchOrganizationRegistrationTasks": doCreateBatchOrganizationRegistrationTasks,
4610
+ "CreateEmployeeQualificationSealQrCode": doCreateEmployeeQualificationSealQrCode,
4558
4611
  "CreateExtendedServiceAuthInfos": doCreateExtendedServiceAuthInfos,
4559
4612
  "CreateOrganizationInfoChangeUrl": doCreateOrganizationInfoChangeUrl,
4560
4613
  "CreateConvertTaskApi": doCreateConvertTaskApi,