Python 使用Google Cloud DLP存储的信息类型并获取400个无效的内置信息类型名称

Python 使用Google Cloud DLP存储的信息类型并获取400个无效的内置信息类型名称,python,google-cloud-platform,google-cloud-dlp,Python,Google Cloud Platform,Google Cloud Dlp,我的DLP仪表板上有一个处于就绪状态的存储信息类型。它的名字是联邦所得税 使用上的python示例,我可以看到以下内容: info_types = [{"name": info_type} for info_type in info_types] 我已将其更改为查找存储的信息类型 info_types_to_locate = [{"name": "Federal_Income_Tax"}] 我还提供了我的google_应用程序_凭据

我的DLP仪表板上有一个处于就绪状态的存储信息类型。它的名字是联邦所得税

使用上的python示例,我可以看到以下内容:

info_types = [{"name": info_type} for info_type in info_types]
我已将其更改为查找存储的信息类型

info_types_to_locate = [{"name": "Federal_Income_Tax"}]
我还提供了我的google_应用程序_凭据和活动项目ID

调用时,它返回
400无效的内置信息类型
name
Federal\u Income\u Tax


什么语法表示我希望使用存储的信息类型而不是内置的信息类型?

请确保将要使用的存储的信息类型添加到
customInfoTypes
数组中。见文件:

仅适用于内置信息类型