Cloud Data Loss Prevention (DLP) API . infoTypes

Instance Methods

list(languageCode=None, filter=None, x__xgafv=None)

Returns a list of the sensitive information types that the DLP API

Method Details

list(languageCode=None, filter=None, x__xgafv=None)
Returns a list of the sensitive information types that the DLP API
supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
learn more.

Args:
  languageCode: string, Optional BCP-47 language code for localized infoType friendly
names. If omitted, or if localized strings are not available,
en-US strings will be returned.
  filter: string, Optional filter to only return infoTypes supported by certain parts of the
API. Defaults to supported_by=INSPECT.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response to the ListInfoTypes request.
    "infoTypes": [ # Set of sensitive infoTypes.
      { # InfoType description.
        "displayName": "A String", # Human readable form of the infoType name.
        "name": "A String", # Internal name of the infoType.
        "supportedBy": [ # Which parts of the API supports this InfoType.
          "A String",
        ],
        "description": "A String", # Description of the infotype. Translated when language is provided in the
            # request.
      },
    ],
  }