tccli 3.0.1095.1__py2.py3-none-any.whl → 3.0.1097.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 (92) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/aiart/v20221229/QueryDrawPortraitJob.md +30 -0
  3. tccli/examples/aiart/v20221229/QueryTrainPortraitModelJob.md +24 -0
  4. tccli/examples/aiart/v20221229/SubmitDrawPortraitJob.md +23 -0
  5. tccli/examples/aiart/v20221229/SubmitTrainPortraitModelJob.md +20 -0
  6. tccli/examples/aiart/v20221229/UploadTrainPortraitImages.md +25 -0
  7. tccli/examples/ccc/v20200210/ModifyStaffPassword.md +22 -0
  8. tccli/examples/cls/v20201016/DeleteKafkaRecharge.md +3 -3
  9. tccli/examples/cls/v20201016/ModifyKafkaRecharge.md +23 -13
  10. tccli/examples/cls/v20201016/PreviewKafkaRecharge.md +47 -15
  11. tccli/examples/csip/v20221121/DescribeAlertList.md +176 -0
  12. tccli/examples/cynosdb/v20190107/AddClusterSlaveZone.md +2 -1
  13. tccli/examples/cynosdb/v20190107/DescribeClusterDetail.md +9 -2
  14. tccli/examples/cynosdb/v20190107/DescribeTasks.md +12 -0
  15. tccli/examples/cynosdb/v20190107/ModifyClusterSlaveZone.md +2 -1
  16. tccli/examples/cynosdb/v20190107/ModifyInstanceUpgradeLimitDays.md +22 -0
  17. tccli/examples/dcdb/v20180411/DescribeDCDBInstances.md +4 -3
  18. tccli/examples/dlc/v20210125/DescribeNotebookSessionStatementSqlResult.md +3 -1
  19. tccli/examples/lke/v20231130/GetEmbedding.md +4 -1
  20. tccli/examples/lke/v20231130/QueryParseDocResult.md +4 -1
  21. tccli/examples/lke/v20231130/QueryRewrite.md +6 -1
  22. tccli/examples/mariadb/v20170312/DescribeDBInstanceDetail.md +2 -1
  23. tccli/examples/mariadb/v20170312/DescribeDBInstances.md +4 -3
  24. tccli/examples/mps/v20190612/CreateAdaptiveDynamicStreamingTemplate.md +1 -1
  25. tccli/examples/mps/v20190612/ModifyAdaptiveDynamicStreamingTemplate.md +1 -1
  26. tccli/examples/organization/v20210331/DescribeEffectivePolicy.md +25 -0
  27. tccli/examples/organization/v20210331/ListNonCompliantResource.md +43 -0
  28. tccli/examples/ssl/v20191205/DescribeDeleteCertificatesTaskResult.md +72 -0
  29. tccli/examples/tdmq/v20200217/DescribeRabbitMQQueueDetail.md +25 -22
  30. tccli/examples/trocket/v20230308/DescribeMQTTClient.md +57 -49
  31. tccli/examples/trocket/v20230308/DescribeMQTTInsPublicEndpoints.md +38 -6
  32. tccli/examples/trocket/v20230308/DescribeMQTTInsVPCEndpoints.md +14 -12
  33. tccli/examples/trocket/v20230308/DescribeMQTTInstanceList.md +1 -121
  34. tccli/examples/trocket/v20230308/DescribeMQTTProductSKUList.md +0 -47
  35. tccli/examples/trocket/v20230308/DescribeMQTTUserList.md +1 -1
  36. tccli/examples/vpc/v20170312/DisableVpnGatewaySslClientCert.md +2 -2
  37. tccli/services/aiart/aiart_client.py +269 -4
  38. tccli/services/aiart/v20221229/api.json +405 -1
  39. tccli/services/aiart/v20221229/examples.json +40 -0
  40. tccli/services/billing/v20180709/api.json +30 -0
  41. tccli/services/bma/v20221115/api.json +4 -6
  42. tccli/services/ccc/ccc_client.py +53 -0
  43. tccli/services/ccc/v20200210/api.json +57 -5
  44. tccli/services/ccc/v20200210/examples.json +8 -0
  45. tccli/services/cdb/v20170320/api.json +9 -0
  46. tccli/services/cdn/v20180606/api.json +1 -1
  47. tccli/services/cls/v20201016/api.json +49 -49
  48. tccli/services/cls/v20201016/examples.json +13 -7
  49. tccli/services/csip/csip_client.py +53 -0
  50. tccli/services/csip/v20221121/api.json +1468 -7
  51. tccli/services/csip/v20221121/examples.json +8 -0
  52. tccli/services/cynosdb/cynosdb_client.py +53 -0
  53. tccli/services/cynosdb/v20190107/api.json +126 -0
  54. tccli/services/cynosdb/v20190107/examples.json +12 -4
  55. tccli/services/dcdb/v20180411/api.json +45 -3
  56. tccli/services/dcdb/v20180411/examples.json +1 -1
  57. tccli/services/dlc/v20210125/api.json +30 -0
  58. tccli/services/dlc/v20210125/examples.json +1 -1
  59. tccli/services/essbasic/v20210526/api.json +9 -0
  60. tccli/services/faceid/v20180301/api.json +22 -3
  61. tccli/services/hunyuan/v20230901/api.json +14 -14
  62. tccli/services/iotexplorer/v20190423/api.json +1 -1
  63. tccli/services/lighthouse/v20200324/api.json +2 -2
  64. tccli/services/live/v20180801/api.json +16 -7
  65. tccli/services/lke/v20231130/api.json +82 -6
  66. tccli/services/lke/v20231130/examples.json +3 -3
  67. tccli/services/mariadb/v20170312/api.json +45 -2
  68. tccli/services/mariadb/v20170312/examples.json +2 -2
  69. tccli/services/mps/v20190612/api.json +172 -92
  70. tccli/services/mps/v20190612/examples.json +2 -2
  71. tccli/services/ocr/v20181119/api.json +1 -1
  72. tccli/services/omics/v20221128/api.json +20 -2
  73. tccli/services/organization/organization_client.py +106 -0
  74. tccli/services/organization/v20210331/api.json +258 -0
  75. tccli/services/organization/v20210331/examples.json +16 -0
  76. tccli/services/ssl/ssl_client.py +53 -0
  77. tccli/services/ssl/v20191205/api.json +160 -9
  78. tccli/services/ssl/v20191205/examples.json +8 -0
  79. tccli/services/ssm/v20190923/api.json +1 -1
  80. tccli/services/tdmq/v20200217/api.json +65 -26
  81. tccli/services/tdmq/v20200217/examples.json +2 -2
  82. tccli/services/trocket/v20230308/api.json +226 -108
  83. tccli/services/trocket/v20230308/examples.json +13 -25
  84. tccli/services/trtc/v20190722/api.json +34 -15
  85. tccli/services/vpc/v20170312/api.json +20 -5
  86. tccli/services/vpc/v20170312/examples.json +2 -2
  87. tccli/services/weilingwith/v20230427/api.json +11 -11
  88. {tccli-3.0.1095.1.dist-info → tccli-3.0.1097.1.dist-info}/METADATA +2 -2
  89. {tccli-3.0.1095.1.dist-info → tccli-3.0.1097.1.dist-info}/RECORD +92 -81
  90. {tccli-3.0.1095.1.dist-info → tccli-3.0.1097.1.dist-info}/WHEEL +0 -0
  91. {tccli-3.0.1095.1.dist-info → tccli-3.0.1097.1.dist-info}/entry_points.txt +0 -0
  92. {tccli-3.0.1095.1.dist-info → tccli-3.0.1097.1.dist-info}/license_files/LICENSE +0 -0
@@ -67,7 +67,7 @@
67
67
  "CreateAdaptiveDynamicStreamingTemplate": [
68
68
  {
69
69
  "document": "",
70
- "input": "https://mps.tencentcloudapi.com/?Action=CreateAdaptiveDynamicStreamingTemplate\n&Name=转自适应码流模板1\n&Format=HLS\n&StreamInfos.0.Video.Codec=libx264\n&StreamInfos.0.Video.Bitrate=2000\n&StreamInfos.0.Video.Fps=2000\n&StreamInfos.0.Audio.Codec=flac\n&StreamInfos.0.Audio.SampleRate=44100\n&StreamInfos.0.Audio.Bitrate=200\n&<公共请求参数>",
70
+ "input": "https://mps.tencentcloudapi.com/?Action=CreateAdaptiveDynamicStreamingTemplate\n&Name=转自适应码流模板1\n&Format=HLS\n&StreamInfos.0.Video.Codec=h264\n&StreamInfos.0.Video.Bitrate=2000\n&StreamInfos.0.Video.Fps=2000\n&StreamInfos.0.Audio.Codec=flac\n&StreamInfos.0.Audio.SampleRate=44100\n&StreamInfos.0.Audio.Bitrate=200\n&<公共请求参数>",
71
71
  "output": "{\n \"Response\": {\n \"Definition\": 30018,\n \"RequestId\": \"12ae8d8e-dce3-4151-9d4b-5594145287e1\"\n }\n}",
72
72
  "title": "创建转自适应码流模板"
73
73
  }
@@ -719,7 +719,7 @@
719
719
  "ModifyAdaptiveDynamicStreamingTemplate": [
720
720
  {
721
721
  "document": "",
722
- "input": "https://mps.tencentcloudapi.com/?Action=ModifyAdaptiveDynamicStreamingTemplate\n&Definition=10038\n&Name=转自适应码流模板2\n&Format=HLS\n&StreamInfos.0.Video.Codec=libx264\n&StreamInfos.0.Video.Bitrate=2000\n&StreamInfos.0.Video.Fps=25\n&StreamInfos.0.Audio.Codec=flac\n&StreamInfos.0.Audio.SampleRate=44100\n&StreamInfos.0.Audio.Bitrate=200\n&<公共请求参数>",
722
+ "input": "https://mps.tencentcloudapi.com/?Action=ModifyAdaptiveDynamicStreamingTemplate\n&Definition=10038\n&Name=转自适应码流模板2\n&Format=HLS\n&StreamInfos.0.Video.Codec=h264\n&StreamInfos.0.Video.Bitrate=2000\n&StreamInfos.0.Video.Fps=25\n&StreamInfos.0.Audio.Codec=flac\n&StreamInfos.0.Audio.SampleRate=44100\n&StreamInfos.0.Audio.Bitrate=200\n&<公共请求参数>",
723
723
  "output": "{\n \"Response\": {\n \"RequestId\": \"12ae8d8e-dce3-4151-9d4b-5594145287e1\"\n }\n}",
724
724
  "title": "修改转自适应码流模板"
725
725
  }
@@ -14349,7 +14349,7 @@
14349
14349
  },
14350
14350
  {
14351
14351
  "disabled": false,
14352
- "document": "配置id支持:\nGeneral -- 通用场景\nOnlineTaxiItinerary -- 网约车行程单\nRideHailingDriverLicense -- 网约车驾驶证\nRideHailingTransportLicense -- 网约车运输证\nWayBill -- 快递运单\nAccountOpeningPermit -- 银行开户许可证\nInvoiceEng -- 海外发票模版\nCoin --钱币识别模板\nOnboardingDocuments -- 入职材料识别\nPropertyOwnershipCertificate -- 房产证识别\nRealEstateCertificate --不动产权证识别\nHouseEncumbranceCertificate -- 他权证识别",
14352
+ "document": "配置id支持:\nGeneral -- 通用场景\nOnlineTaxiItinerary -- 网约车行程单\nRideHailingDriverLicense -- 网约车驾驶证\nRideHailingTransportLicense -- 网约车运输证\nWayBill -- 快递运单\nAccountOpeningPermit -- 银行开户许可证\nInvoiceEng -- 海外发票模版\nCoin --钱币识别模板\nOnboardingDocuments -- 入职材料识别\nPropertyOwnershipCertificate -- 房产证识别\nRealEstateCertificate --不动产权证识别\nHouseEncumbranceCertificate -- 他权证识别\nCarInsurance -- 车险保单",
14353
14353
  "example": "无",
14354
14354
  "member": "string",
14355
14355
  "name": "ConfigId",
@@ -2243,7 +2243,7 @@
2243
2243
  },
2244
2244
  {
2245
2245
  "disabled": false,
2246
- "document": "工作目录,使用缓存卷内的相对路径 (暂时仅支持Nextflow)",
2246
+ "document": "工作目录,可填写指定缓存卷内的绝对路径,不填使用默认缓存卷内的默认路径,暂时仅支持Nextflow",
2247
2247
  "example": "无",
2248
2248
  "member": "string",
2249
2249
  "name": "WorkDir",
@@ -2258,6 +2258,15 @@
2258
2258
  "name": "AccessMode",
2259
2259
  "required": false,
2260
2260
  "type": "string"
2261
+ },
2262
+ {
2263
+ "disabled": false,
2264
+ "document": "缓存卷ID,不填使用默认缓存卷,暂时仅支持Nextflow。",
2265
+ "example": "无",
2266
+ "member": "string",
2267
+ "name": "VolumeIds",
2268
+ "required": false,
2269
+ "type": "list"
2261
2270
  }
2262
2271
  ],
2263
2272
  "type": "object"
@@ -2938,12 +2947,21 @@
2938
2947
  },
2939
2948
  {
2940
2949
  "disabled": false,
2941
- "document": "工作目录,使用缓存卷内的相对路径 (暂时仅支持Nextflow)",
2950
+ "document": "工作目录,可填写指定缓存卷内的绝对路径,不填使用默认缓存卷内的默认路径,暂时仅支持Nextflow",
2942
2951
  "example": "无",
2943
2952
  "member": "string",
2944
2953
  "name": "WorkDir",
2945
2954
  "required": false,
2946
2955
  "type": "string"
2956
+ },
2957
+ {
2958
+ "disabled": false,
2959
+ "document": "缓存卷ID,不填使用默认缓存卷,暂时仅支持Nextflow。",
2960
+ "example": "无",
2961
+ "member": "string",
2962
+ "name": "VolumeIds",
2963
+ "required": false,
2964
+ "type": "list"
2947
2965
  }
2948
2966
  ],
2949
2967
  "type": "object"
@@ -1215,6 +1215,58 @@ def doDeleteOrganizationNodes(args, parsed_globals):
1215
1215
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1216
1216
 
1217
1217
 
1218
+ def doDescribeEffectivePolicy(args, parsed_globals):
1219
+ g_param = parse_global_arg(parsed_globals)
1220
+
1221
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1222
+ cred = credential.CVMRoleCredential()
1223
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1224
+ cred = credential.STSAssumeRoleCredential(
1225
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1226
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1227
+ )
1228
+ 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):
1229
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1230
+ else:
1231
+ cred = credential.Credential(
1232
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1233
+ )
1234
+ http_profile = HttpProfile(
1235
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1236
+ reqMethod="POST",
1237
+ endpoint=g_param[OptionsDefine.Endpoint],
1238
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1239
+ )
1240
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1241
+ if g_param[OptionsDefine.Language]:
1242
+ profile.language = g_param[OptionsDefine.Language]
1243
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1244
+ client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
1245
+ client._sdkVersion += ("_CLI_" + __version__)
1246
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1247
+ model = models.DescribeEffectivePolicyRequest()
1248
+ model.from_json_string(json.dumps(args))
1249
+ start_time = time.time()
1250
+ while True:
1251
+ rsp = client.DescribeEffectivePolicy(model)
1252
+ result = rsp.to_json_string()
1253
+ try:
1254
+ json_obj = json.loads(result)
1255
+ except TypeError as e:
1256
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1257
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1258
+ break
1259
+ cur_time = time.time()
1260
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1261
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1262
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1263
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1264
+ else:
1265
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1266
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1267
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1268
+
1269
+
1218
1270
  def doDeleteShareUnitResources(args, parsed_globals):
1219
1271
  g_param = parse_global_arg(parsed_globals)
1220
1272
 
@@ -1683,6 +1735,58 @@ def doAddShareUnitResources(args, parsed_globals):
1683
1735
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1684
1736
 
1685
1737
 
1738
+ def doListNonCompliantResource(args, parsed_globals):
1739
+ g_param = parse_global_arg(parsed_globals)
1740
+
1741
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1742
+ cred = credential.CVMRoleCredential()
1743
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1744
+ cred = credential.STSAssumeRoleCredential(
1745
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1746
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1747
+ )
1748
+ 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):
1749
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1750
+ else:
1751
+ cred = credential.Credential(
1752
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1753
+ )
1754
+ http_profile = HttpProfile(
1755
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1756
+ reqMethod="POST",
1757
+ endpoint=g_param[OptionsDefine.Endpoint],
1758
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1759
+ )
1760
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1761
+ if g_param[OptionsDefine.Language]:
1762
+ profile.language = g_param[OptionsDefine.Language]
1763
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1764
+ client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
1765
+ client._sdkVersion += ("_CLI_" + __version__)
1766
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1767
+ model = models.ListNonCompliantResourceRequest()
1768
+ model.from_json_string(json.dumps(args))
1769
+ start_time = time.time()
1770
+ while True:
1771
+ rsp = client.ListNonCompliantResource(model)
1772
+ result = rsp.to_json_string()
1773
+ try:
1774
+ json_obj = json.loads(result)
1775
+ except TypeError as e:
1776
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1777
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1778
+ break
1779
+ cur_time = time.time()
1780
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1781
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1782
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1783
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1784
+ else:
1785
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1786
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1787
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1788
+
1789
+
1686
1790
  def doAttachPolicy(args, parsed_globals):
1687
1791
  g_param = parse_global_arg(parsed_globals)
1688
1792
 
@@ -3747,6 +3851,7 @@ ACTION_MAP = {
3747
3851
  "DescribeOrganizationFinancialByMonth": doDescribeOrganizationFinancialByMonth,
3748
3852
  "DeleteAccount": doDeleteAccount,
3749
3853
  "DeleteOrganizationNodes": doDeleteOrganizationNodes,
3854
+ "DescribeEffectivePolicy": doDescribeEffectivePolicy,
3750
3855
  "DeleteShareUnitResources": doDeleteShareUnitResources,
3751
3856
  "DescribeOrganizationMemberPolicies": doDescribeOrganizationMemberPolicies,
3752
3857
  "CancelOrganizationInvitation": doCancelOrganizationInvitation,
@@ -3756,6 +3861,7 @@ ACTION_MAP = {
3756
3861
  "DescribeOrganizationFinancialByMember": doDescribeOrganizationFinancialByMember,
3757
3862
  "GetOrganizationMember": doGetOrganizationMember,
3758
3863
  "AddShareUnitResources": doAddShareUnitResources,
3864
+ "ListNonCompliantResource": doListNonCompliantResource,
3759
3865
  "AttachPolicy": doAttachPolicy,
3760
3866
  "CreateOrganizationMembersPolicy": doCreateOrganizationMembersPolicy,
3761
3867
  "DescribeShareAreas": doDescribeShareAreas,
@@ -189,6 +189,13 @@
189
189
  "output": "DeleteShareUnitResourcesResponse",
190
190
  "status": "online"
191
191
  },
192
+ "DescribeEffectivePolicy": {
193
+ "document": "查询目标关联的有效策略",
194
+ "input": "DescribeEffectivePolicyRequest",
195
+ "name": "查询目标关联的有效策略",
196
+ "output": "DescribeEffectivePolicyResponse",
197
+ "status": "online"
198
+ },
192
199
  "DescribeOrganization": {
193
200
  "document": "获取企业组织信息",
194
201
  "input": "DescribeOrganizationRequest",
@@ -329,6 +336,13 @@
329
336
  "output": "EnablePolicyTypeResponse",
330
337
  "status": "online"
331
338
  },
339
+ "ListNonCompliantResource": {
340
+ "document": "获取成员标签检测不合规资源列表",
341
+ "input": "ListNonCompliantResourceRequest",
342
+ "name": "获取成员标签检测不合规资源列表",
343
+ "output": "ListNonCompliantResourceResponse",
344
+ "status": "online"
345
+ },
332
346
  "ListOrganizationIdentity": {
333
347
  "document": "获取组织成员访问身份列表",
334
348
  "input": "ListOrganizationIdentityRequest",
@@ -1709,6 +1723,42 @@
1709
1723
  ],
1710
1724
  "type": "object"
1711
1725
  },
1726
+ "DescribeEffectivePolicyRequest": {
1727
+ "document": "DescribeEffectivePolicy请求参数结构体",
1728
+ "members": [
1729
+ {
1730
+ "disabled": false,
1731
+ "document": "账号uin或者节点id。",
1732
+ "example": "10083",
1733
+ "member": "uint64",
1734
+ "name": "TargetId",
1735
+ "required": true,
1736
+ "type": "int"
1737
+ }
1738
+ ],
1739
+ "type": "object"
1740
+ },
1741
+ "DescribeEffectivePolicyResponse": {
1742
+ "document": "DescribeEffectivePolicy返回参数结构体",
1743
+ "members": [
1744
+ {
1745
+ "disabled": false,
1746
+ "document": "有效策略。\n注意:此字段可能返回 null,表示取不到有效值。",
1747
+ "example": "无",
1748
+ "member": "EffectivePolicy",
1749
+ "name": "EffectivePolicy",
1750
+ "type": "object",
1751
+ "value_allowed_null": true
1752
+ },
1753
+ {
1754
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
1755
+ "member": "string",
1756
+ "name": "RequestId",
1757
+ "type": "string"
1758
+ }
1759
+ ],
1760
+ "type": "object"
1761
+ },
1712
1762
  "DescribeOrganizationAuthNodeRequest": {
1713
1763
  "document": "DescribeOrganizationAuthNode请求参数结构体",
1714
1764
  "members": [
@@ -3249,6 +3299,42 @@
3249
3299
  ],
3250
3300
  "type": "object"
3251
3301
  },
3302
+ "EffectivePolicy": {
3303
+ "document": "有效策略。",
3304
+ "members": [
3305
+ {
3306
+ "disabled": false,
3307
+ "document": "目标ID。",
3308
+ "example": "111111111111",
3309
+ "member": "uint64",
3310
+ "name": "TargetId",
3311
+ "required": true,
3312
+ "type": "int",
3313
+ "value_allowed_null": false
3314
+ },
3315
+ {
3316
+ "disabled": false,
3317
+ "document": "有效策略内容。",
3318
+ "example": "无",
3319
+ "member": "string",
3320
+ "name": "PolicyContent",
3321
+ "required": true,
3322
+ "type": "string",
3323
+ "value_allowed_null": false
3324
+ },
3325
+ {
3326
+ "disabled": false,
3327
+ "document": "有效策略更新时间。",
3328
+ "example": "1668394639",
3329
+ "member": "uint64",
3330
+ "name": "LastUpdatedTimestamp",
3331
+ "required": true,
3332
+ "type": "int",
3333
+ "value_allowed_null": false
3334
+ }
3335
+ ],
3336
+ "usage": "out"
3337
+ },
3252
3338
  "EnablePolicyTypeRequest": {
3253
3339
  "document": "EnablePolicyType请求参数结构体",
3254
3340
  "members": [
@@ -3335,6 +3421,80 @@
3335
3421
  ],
3336
3422
  "usage": "both"
3337
3423
  },
3424
+ "ListNonCompliantResourceRequest": {
3425
+ "document": "ListNonCompliantResource请求参数结构体",
3426
+ "members": [
3427
+ {
3428
+ "disabled": false,
3429
+ "document": "限制数目。取值范围:1~50。",
3430
+ "example": "10",
3431
+ "member": "uint64",
3432
+ "name": "MaxResults",
3433
+ "required": true,
3434
+ "type": "int"
3435
+ },
3436
+ {
3437
+ "disabled": false,
3438
+ "document": "成员Uin。",
3439
+ "example": "111111111111",
3440
+ "member": "uint64",
3441
+ "name": "MemberUin",
3442
+ "required": true,
3443
+ "type": "int"
3444
+ },
3445
+ {
3446
+ "disabled": false,
3447
+ "document": "从上一页的响应中获取的下一页的Token值。\n如果是第一次请求,设置为空。",
3448
+ "example": "\"\"",
3449
+ "member": "string",
3450
+ "name": "PaginationToken",
3451
+ "required": false,
3452
+ "type": "string"
3453
+ },
3454
+ {
3455
+ "disabled": false,
3456
+ "document": "标签键。",
3457
+ "example": "\"\"",
3458
+ "member": "string",
3459
+ "name": "TagKey",
3460
+ "required": false,
3461
+ "type": "string"
3462
+ }
3463
+ ],
3464
+ "type": "object"
3465
+ },
3466
+ "ListNonCompliantResourceResponse": {
3467
+ "document": "ListNonCompliantResource返回参数结构体",
3468
+ "members": [
3469
+ {
3470
+ "disabled": false,
3471
+ "document": "资源及标签合规信息。\n注意:此字段可能返回 null,表示取不到有效值。",
3472
+ "example": "无",
3473
+ "member": "ResourceTagMapping",
3474
+ "name": "Items",
3475
+ "output_required": true,
3476
+ "type": "list",
3477
+ "value_allowed_null": true
3478
+ },
3479
+ {
3480
+ "disabled": false,
3481
+ "document": "获取的下一页的Token值。\n注意:此字段可能返回 null,表示取不到有效值。",
3482
+ "example": "\"\"",
3483
+ "member": "string",
3484
+ "name": "PaginationToken",
3485
+ "output_required": true,
3486
+ "type": "string",
3487
+ "value_allowed_null": true
3488
+ },
3489
+ {
3490
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
3491
+ "member": "string",
3492
+ "name": "RequestId",
3493
+ "type": "string"
3494
+ }
3495
+ ],
3496
+ "type": "object"
3497
+ },
3338
3498
  "ListOrganizationIdentityRequest": {
3339
3499
  "document": "ListOrganizationIdentity请求参数结构体",
3340
3500
  "members": [
@@ -4979,6 +5139,42 @@
4979
5139
  ],
4980
5140
  "type": "object"
4981
5141
  },
5142
+ "ResourceTagMapping": {
5143
+ "document": "资源及关联的标签",
5144
+ "members": [
5145
+ {
5146
+ "disabled": false,
5147
+ "document": "资源六段式。腾讯云使用资源六段式描述一个资源。\n例如:qcs::${ServiceType}:${Region}:${Account}:${ResourcePreifx}/${ResourceId}。\n注意:此字段可能返回 null,表示取不到有效值。",
5148
+ "example": "无",
5149
+ "member": "string",
5150
+ "name": "Resource",
5151
+ "required": true,
5152
+ "type": "string",
5153
+ "value_allowed_null": true
5154
+ },
5155
+ {
5156
+ "disabled": false,
5157
+ "document": "合规详情。\n注意:此字段可能返回 null,表示取不到有效值。",
5158
+ "example": "无",
5159
+ "member": "TagComplianceDetails",
5160
+ "name": "ComplianceDetails",
5161
+ "required": true,
5162
+ "type": "object",
5163
+ "value_allowed_null": true
5164
+ },
5165
+ {
5166
+ "disabled": false,
5167
+ "document": "资源标签。\n注意:此字段可能返回 null,表示取不到有效值。",
5168
+ "example": "无",
5169
+ "member": "Tags",
5170
+ "name": "Tags",
5171
+ "required": true,
5172
+ "type": "list",
5173
+ "value_allowed_null": true
5174
+ }
5175
+ ],
5176
+ "usage": "out"
5177
+ },
4982
5178
  "ShareArea": {
4983
5179
  "document": "共享地域",
4984
5180
  "members": [
@@ -5160,6 +5356,68 @@
5160
5356
  ],
5161
5357
  "usage": "out"
5162
5358
  },
5359
+ "TagComplianceDetails": {
5360
+ "document": "标签合规信息",
5361
+ "members": [
5362
+ {
5363
+ "disabled": false,
5364
+ "document": "合规状态。true-合规,false-不合规\n注意:此字段可能返回 null,表示取不到有效值。",
5365
+ "example": "true",
5366
+ "member": "bool",
5367
+ "name": "ComplianceStatus",
5368
+ "required": true,
5369
+ "type": "bool",
5370
+ "value_allowed_null": true
5371
+ },
5372
+ {
5373
+ "disabled": false,
5374
+ "document": "值不合规的标签键列表。\n注意:此字段可能返回 null,表示取不到有效值。",
5375
+ "example": "[]",
5376
+ "member": "string",
5377
+ "name": "KeysWithNonCompliantValues",
5378
+ "required": true,
5379
+ "type": "list",
5380
+ "value_allowed_null": true
5381
+ },
5382
+ {
5383
+ "disabled": false,
5384
+ "document": "键不合规的标签键列表。\n注意:此字段可能返回 null,表示取不到有效值。",
5385
+ "example": "[]",
5386
+ "member": "string",
5387
+ "name": "NonCompliantKeys",
5388
+ "required": true,
5389
+ "type": "list",
5390
+ "value_allowed_null": true
5391
+ }
5392
+ ],
5393
+ "usage": "out"
5394
+ },
5395
+ "Tags": {
5396
+ "document": "标签键值对",
5397
+ "members": [
5398
+ {
5399
+ "disabled": false,
5400
+ "document": "标签键。\n注意:此字段可能返回 null,表示取不到有效值。",
5401
+ "example": "\"\"",
5402
+ "member": "string",
5403
+ "name": "TagKey",
5404
+ "required": true,
5405
+ "type": "string",
5406
+ "value_allowed_null": true
5407
+ },
5408
+ {
5409
+ "disabled": false,
5410
+ "document": "标签值。\n注意:此字段可能返回 null,表示取不到有效值。",
5411
+ "example": "\"\"",
5412
+ "member": "string",
5413
+ "name": "TagValue",
5414
+ "required": true,
5415
+ "type": "string",
5416
+ "value_allowed_null": true
5417
+ }
5418
+ ],
5419
+ "usage": "out"
5420
+ },
5163
5421
  "UpdateOrganizationIdentityRequest": {
5164
5422
  "document": "UpdateOrganizationIdentity请求参数结构体",
5165
5423
  "members": [
@@ -216,6 +216,14 @@
216
216
  "title": "删除共享单元资源"
217
217
  }
218
218
  ],
219
+ "DescribeEffectivePolicy": [
220
+ {
221
+ "document": "查询目标关联的有效策略",
222
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEffectivePolicy\n<公共请求参数>\n\n{\n \"TargetId\": 111111111111\n}",
223
+ "output": "{\n \"Response\": {\n \"EffectivePolicy\": {\n \"TargetId\": 111111111111,\n \"PolicyContent\": \"{\\\"tags\\\":{\\\"aaa\\\":{\\\"tag_key\\\":\\\"aaa\\\",\\\"tag_value\\\":[\\\"111\\\",\\\"222\\\"],\\\"resource_type_scope\\\":[\\\"cvm:instance\\\",\\\"cvm:volume\\\",\\\"cvm:keypair\\\",\\\"cvm:image\\\"]},\\\"bbb\\\":{\\\"tag_key\\\":\\\"bbb\\\",\\\"tag_value\\\":[\\\"333\\\"]}}}\",\n \"LastUpdatedTimestamp\": 1668394639\n },\n \"RequestId\": \"b46d2afe-6893-4529-bc96-2c82d9214957\"\n }\n}",
224
+ "title": "查询目标关联的有效策略"
225
+ }
226
+ ],
219
227
  "DescribeOrganization": [
220
228
  {
221
229
  "document": "",
@@ -376,6 +384,14 @@
376
384
  "title": "启用策略类型"
377
385
  }
378
386
  ],
387
+ "ListNonCompliantResource": [
388
+ {
389
+ "document": "获取成员标签检测不合规资源列表",
390
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListNonCompliantResource\n<公共请求参数>\n\n{\n \"MaxResults\": \"10\",\n \"PaginationToken\": \"\",\n \"MemberUin\": 1111111111\n}",
391
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"Resource\": \"qcs::vpc::uin/1111111111:subnet/subnet-test1\",\n \"ComplianceDetails\": {\n \"ComplianceStatus\": true,\n \"KeysWithNonCompliantValues\": [\n \"abc\"\n ],\n \"NonCompliantKeys\": [\n \"abc\"\n ]\n },\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ]\n }\n ],\n \"PaginationToken\": \"fgh363\",\n \"RequestId\": \"242effbd-5220-4776-9cc2-87afbdcb68db\"\n }\n}",
392
+ "title": "获取成员标签检测不合规资源列表"
393
+ }
394
+ ],
379
395
  "ListOrganizationIdentity": [
380
396
  {
381
397
  "document": "获取组织成员访问身份列表",
@@ -1941,6 +1941,58 @@ def doUpdateCertificateRecordRetry(args, parsed_globals):
1941
1941
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1942
1942
 
1943
1943
 
1944
+ def doDescribeDeleteCertificatesTaskResult(args, parsed_globals):
1945
+ g_param = parse_global_arg(parsed_globals)
1946
+
1947
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1948
+ cred = credential.CVMRoleCredential()
1949
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1950
+ cred = credential.STSAssumeRoleCredential(
1951
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1952
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1953
+ )
1954
+ 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):
1955
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1956
+ else:
1957
+ cred = credential.Credential(
1958
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1959
+ )
1960
+ http_profile = HttpProfile(
1961
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1962
+ reqMethod="POST",
1963
+ endpoint=g_param[OptionsDefine.Endpoint],
1964
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1965
+ )
1966
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1967
+ if g_param[OptionsDefine.Language]:
1968
+ profile.language = g_param[OptionsDefine.Language]
1969
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1970
+ client = mod.SslClient(cred, g_param[OptionsDefine.Region], profile)
1971
+ client._sdkVersion += ("_CLI_" + __version__)
1972
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1973
+ model = models.DescribeDeleteCertificatesTaskResultRequest()
1974
+ model.from_json_string(json.dumps(args))
1975
+ start_time = time.time()
1976
+ while True:
1977
+ rsp = client.DescribeDeleteCertificatesTaskResult(model)
1978
+ result = rsp.to_json_string()
1979
+ try:
1980
+ json_obj = json.loads(result)
1981
+ except TypeError as e:
1982
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1983
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1984
+ break
1985
+ cur_time = time.time()
1986
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1987
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1988
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1989
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1990
+ else:
1991
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1992
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1993
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1994
+
1995
+
1944
1996
  def doModifyCertificateProject(args, parsed_globals):
1945
1997
  g_param = parse_global_arg(parsed_globals)
1946
1998
 
@@ -2977,6 +3029,7 @@ ACTION_MAP = {
2977
3029
  "CancelAuditCertificate": doCancelAuditCertificate,
2978
3030
  "DescribeHostDeployRecord": doDescribeHostDeployRecord,
2979
3031
  "UpdateCertificateRecordRetry": doUpdateCertificateRecordRetry,
3032
+ "DescribeDeleteCertificatesTaskResult": doDescribeDeleteCertificatesTaskResult,
2980
3033
  "ModifyCertificateProject": doModifyCertificateProject,
2981
3034
  "ModifyCertificateAlias": doModifyCertificateAlias,
2982
3035
  "DescribeHostUpdateRecordDetail": doDescribeHostUpdateRecordDetail,