blob: 54ca868540b8eb54275cf7935266b1095da06f0a [file] [log] [blame]
{
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
}
}
}
},
"basePath": "",
"baseUrl": "https://dlp.googleapis.com/",
"batchPath": "batch",
"canonicalName": "DLP",
"description": "Provides methods for detection, risk analysis, and de-identification of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/dlp/docs/",
"fullyEncodeReservedExpansion": true,
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"id": "dlp:v2",
"kind": "discovery#restDescription",
"name": "dlp",
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
"$.xgafv": {
"description": "V1 error format.",
"enum": [
"1",
"2"
],
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"location": "query",
"type": "string"
},
"alt": {
"default": "json",
"description": "Data format for response.",
"enum": [
"json",
"media",
"proto"
],
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"location": "query",
"type": "string"
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"location": "query",
"type": "string"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"location": "query",
"type": "string"
},
"prettyPrint": {
"default": "true",
"description": "Returns response with indentations and line breaks.",
"location": "query",
"type": "boolean"
},
"quotaUser": {
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"location": "query",
"type": "string"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
"type": "string"
}
},
"protocol": "rest",
"resources": {
"infoTypes": {
"methods": {
"list": {
"description": "Returns a list of the sensitive information types that the DLP API\nsupports. See https://cloud.google.com/dlp/docs/infotypes-reference to\nlearn more.",
"flatPath": "v2/infoTypes",
"httpMethod": "GET",
"id": "dlp.infoTypes.list",
"parameterOrder": [],
"parameters": {
"filter": {
"description": "Optional filter to only return infoTypes supported by certain parts of the\nAPI. Defaults to supported_by=INSPECT.",
"location": "query",
"type": "string"
},
"languageCode": {
"description": "Optional BCP-47 language code for localized infoType friendly\nnames. If omitted, or if localized strings are not available,\nen-US strings will be returned.",
"location": "query",
"type": "string"
}
},
"path": "v2/infoTypes",
"response": {
"$ref": "GooglePrivacyDlpV2ListInfoTypesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
"organizations": {
"resources": {
"deidentifyTemplates": {
"methods": {
"create": {
"description": "Creates a DeidentifyTemplate for re-using frequently used configuration\nfor de-identifying content, images, and storage.\nSee https://cloud.google.com/dlp/docs/creating-templates-deid to learn\nmore.",
"flatPath": "v2/organizations/{organizationsId}/deidentifyTemplates",
"httpMethod": "POST",
"id": "dlp.organizations.deidentifyTemplates.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
"location": "path",
"pattern": "^organizations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/deidentifyTemplates",
"request": {
"$ref": "GooglePrivacyDlpV2CreateDeidentifyTemplateRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2DeidentifyTemplate"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Deletes a DeidentifyTemplate.\nSee https://cloud.google.com/dlp/docs/creating-templates-deid to learn\nmore.",
"flatPath": "v2/organizations/{organizationsId}/deidentifyTemplates/{deidentifyTemplatesId}",
"httpMethod": "DELETE",
"id": "dlp.organizations.deidentifyTemplates.delete",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of the organization and deidentify template to be deleted,\nfor example `organizations/433245324/deidentifyTemplates/432452342` or\nprojects/project-id/deidentifyTemplates/432452342.",
"location": "path",
"pattern": "^organizations/[^/]+/deidentifyTemplates/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"response": {
"$ref": "GoogleProtobufEmpty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Gets a DeidentifyTemplate.\nSee https://cloud.google.com/dlp/docs/creating-templates-deid to learn\nmore.",
"flatPath": "v2/organizations/{organizationsId}/deidentifyTemplates/{deidentifyTemplatesId}",
"httpMethod": "GET",
"id": "dlp.organizations.deidentifyTemplates.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of the organization and deidentify template to be read, for\nexample `organizations/433245324/deidentifyTemplates/432452342` or\nprojects/project-id/deidentifyTemplates/432452342.",
"location": "path",
"pattern": "^organizations/[^/]+/deidentifyTemplates/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"response": {
"$ref": "GooglePrivacyDlpV2DeidentifyTemplate"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists DeidentifyTemplates.\nSee https://cloud.google.com/dlp/docs/creating-templates-deid to learn\nmore.",
"flatPath": "v2/organizations/{organizationsId}/deidentifyTemplates",
"httpMethod": "GET",
"id": "dlp.organizations.deidentifyTemplates.list",
"parameterOrder": [
"parent"
],
"parameters": {
"orderBy": {
"description": "Optional comma separated list of fields to order by,\nfollowed by `asc` or `desc` postfix. This list is case-insensitive,\ndefault sorting order is ascending, redundant space characters are\ninsignificant.\n\nExample: `name asc,update_time, create_time desc`\n\nSupported fields are:\n\n- `create_time`: corresponds to time the template was created.\n- `update_time`: corresponds to time the template was last updated.\n- `name`: corresponds to template's name.\n- `display_name`: corresponds to template's display name.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional size of the page, can be limited by server. If zero server returns\na page of max size 100.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional page token to continue retrieval. Comes from previous call\nto `ListDeidentifyTemplates`.",
"location": "query",
"type": "string"
},
"parent": {
"description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
"location": "path",
"pattern": "^organizations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/deidentifyTemplates",
"response": {
"$ref": "GooglePrivacyDlpV2ListDeidentifyTemplatesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"patch": {
"description": "Updates the DeidentifyTemplate.\nSee https://cloud.google.com/dlp/docs/creating-templates-deid to learn\nmore.",
"flatPath": "v2/organizations/{organizationsId}/deidentifyTemplates/{deidentifyTemplatesId}",
"httpMethod": "PATCH",
"id": "dlp.organizations.deidentifyTemplates.patch",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of organization and deidentify template to be updated, for\nexample `organizations/433245324/deidentifyTemplates/432452342` or\nprojects/project-id/deidentifyTemplates/432452342.",
"location": "path",
"pattern": "^organizations/[^/]+/deidentifyTemplates/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"request": {
"$ref": "GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2DeidentifyTemplate"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
"inspectTemplates": {
"methods": {
"create": {
"description": "Creates an InspectTemplate for re-using frequently used configuration\nfor inspecting content, images, and storage.\nSee https://cloud.google.com/dlp/docs/creating-templates to learn more.",
"flatPath": "v2/organizations/{organizationsId}/inspectTemplates",
"httpMethod": "POST",
"id": "dlp.organizations.inspectTemplates.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
"location": "path",
"pattern": "^organizations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/inspectTemplates",
"request": {
"$ref": "GooglePrivacyDlpV2CreateInspectTemplateRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2InspectTemplate"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Deletes an InspectTemplate.\nSee https://cloud.google.com/dlp/docs/creating-templates to learn more.",
"flatPath": "v2/organizations/{organizationsId}/inspectTemplates/{inspectTemplatesId}",
"httpMethod": "DELETE",
"id": "dlp.organizations.inspectTemplates.delete",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of the organization and inspectTemplate to be deleted, for\nexample `organizations/433245324/inspectTemplates/432452342` or\nprojects/project-id/inspectTemplates/432452342.",
"location": "path",
"pattern": "^organizations/[^/]+/inspectTemplates/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"response": {
"$ref": "GoogleProtobufEmpty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Gets an InspectTemplate.\nSee https://cloud.google.com/dlp/docs/creating-templates to learn more.",
"flatPath": "v2/organizations/{organizationsId}/inspectTemplates/{inspectTemplatesId}",
"httpMethod": "GET",
"id": "dlp.organizations.inspectTemplates.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of the organization and inspectTemplate to be read, for\nexample `organizations/433245324/inspectTemplates/432452342` or\nprojects/project-id/inspectTemplates/432452342.",
"location": "path",
"pattern": "^organizations/[^/]+/inspectTemplates/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"response": {
"$ref": "GooglePrivacyDlpV2InspectTemplate"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists InspectTemplates.\nSee https://cloud.google.com/dlp/docs/creating-templates to learn more.",
"flatPath": "v2/organizations/{organizationsId}/inspectTemplates",
"httpMethod": "GET",
"id": "dlp.organizations.inspectTemplates.list",
"parameterOrder": [
"parent"
],
"parameters": {
"orderBy": {
"description": "Optional comma separated list of fields to order by,\nfollowed by `asc` or `desc` postfix. This list is case-insensitive,\ndefault sorting order is ascending, redundant space characters are\ninsignificant.\n\nExample: `name asc,update_time, create_time desc`\n\nSupported fields are:\n\n- `create_time`: corresponds to time the template was created.\n- `update_time`: corresponds to time the template was last updated.\n- `name`: corresponds to template's name.\n- `display_name`: corresponds to template's display name.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional size of the page, can be limited by server. If zero server returns\na page of max size 100.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional page token to continue retrieval. Comes from previous call\nto `ListInspectTemplates`.",
"location": "query",
"type": "string"
},
"parent": {
"description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
"location": "path",
"pattern": "^organizations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/inspectTemplates",
"response": {
"$ref": "GooglePrivacyDlpV2ListInspectTemplatesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"patch": {
"description": "Updates the InspectTemplate.\nSee https://cloud.google.com/dlp/docs/creating-templates to learn more.",
"flatPath": "v2/organizations/{organizationsId}/inspectTemplates/{inspectTemplatesId}",
"httpMethod": "PATCH",
"id": "dlp.organizations.inspectTemplates.patch",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of organization and inspectTemplate to be updated, for\nexample `organizations/433245324/inspectTemplates/432452342` or\nprojects/project-id/inspectTemplates/432452342.",
"location": "path",
"pattern": "^organizations/[^/]+/inspectTemplates/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"request": {
"$ref": "GooglePrivacyDlpV2UpdateInspectTemplateRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2InspectTemplate"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
"storedInfoTypes": {
"methods": {
"create": {
"description": "Creates a pre-built stored infoType to be used for inspection.\nSee https://cloud.google.com/dlp/docs/creating-stored-infotypes to\nlearn more.",
"flatPath": "v2/organizations/{organizationsId}/storedInfoTypes",
"httpMethod": "POST",
"id": "dlp.organizations.storedInfoTypes.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
"location": "path",
"pattern": "^organizations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/storedInfoTypes",
"request": {
"$ref": "GooglePrivacyDlpV2CreateStoredInfoTypeRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2StoredInfoType"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Deletes a stored infoType.\nSee https://cloud.google.com/dlp/docs/creating-stored-infotypes to\nlearn more.",
"flatPath": "v2/organizations/{organizationsId}/storedInfoTypes/{storedInfoTypesId}",
"httpMethod": "DELETE",
"id": "dlp.organizations.storedInfoTypes.delete",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of the organization and storedInfoType to be deleted, for\nexample `organizations/433245324/storedInfoTypes/432452342` or\nprojects/project-id/storedInfoTypes/432452342.",
"location": "path",
"pattern": "^organizations/[^/]+/storedInfoTypes/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"response": {
"$ref": "GoogleProtobufEmpty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Gets a stored infoType.\nSee https://cloud.google.com/dlp/docs/creating-stored-infotypes to\nlearn more.",
"flatPath": "v2/organizations/{organizationsId}/storedInfoTypes/{storedInfoTypesId}",
"httpMethod": "GET",
"id": "dlp.organizations.storedInfoTypes.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of the organization and storedInfoType to be read, for\nexample `organizations/433245324/storedInfoTypes/432452342` or\nprojects/project-id/storedInfoTypes/432452342.",
"location": "path",
"pattern": "^organizations/[^/]+/storedInfoTypes/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"response": {
"$ref": "GooglePrivacyDlpV2StoredInfoType"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists stored infoTypes.\nSee https://cloud.google.com/dlp/docs/creating-stored-infotypes to\nlearn more.",
"flatPath": "v2/organizations/{organizationsId}/storedInfoTypes",
"httpMethod": "GET",
"id": "dlp.organizations.storedInfoTypes.list",
"parameterOrder": [
"parent"
],
"parameters": {
"orderBy": {
"description": "Optional comma separated list of fields to order by,\nfollowed by `asc` or `desc` postfix. This list is case-insensitive,\ndefault sorting order is ascending, redundant space characters are\ninsignificant.\n\nExample: `name asc, display_name, create_time desc`\n\nSupported fields are:\n\n- `create_time`: corresponds to time the most recent version of the\nresource was created.\n- `state`: corresponds to the state of the resource.\n- `name`: corresponds to resource name.\n- `display_name`: corresponds to info type's display name.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional size of the page, can be limited by server. If zero server returns\na page of max size 100.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional page token to continue retrieval. Comes from previous call\nto `ListStoredInfoTypes`.",
"location": "query",
"type": "string"
},
"parent": {
"description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
"location": "path",
"pattern": "^organizations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/storedInfoTypes",
"response": {
"$ref": "GooglePrivacyDlpV2ListStoredInfoTypesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"patch": {
"description": "Updates the stored infoType by creating a new version. The existing version\nwill continue to be used until the new version is ready.\nSee https://cloud.google.com/dlp/docs/creating-stored-infotypes to\nlearn more.",
"flatPath": "v2/organizations/{organizationsId}/storedInfoTypes/{storedInfoTypesId}",
"httpMethod": "PATCH",
"id": "dlp.organizations.storedInfoTypes.patch",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of organization and storedInfoType to be updated, for\nexample `organizations/433245324/storedInfoTypes/432452342` or\nprojects/project-id/storedInfoTypes/432452342.",
"location": "path",
"pattern": "^organizations/[^/]+/storedInfoTypes/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"request": {
"$ref": "GooglePrivacyDlpV2UpdateStoredInfoTypeRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2StoredInfoType"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
}
},
"projects": {
"resources": {
"content": {
"methods": {
"deidentify": {
"description": "De-identifies potentially sensitive info from a ContentItem.\nThis method has limits on input size and output size.\nSee https://cloud.google.com/dlp/docs/deidentify-sensitive-data to\nlearn more.\n\nWhen no InfoTypes or CustomInfoTypes are specified in this request, the\nsystem will automatically choose what detectors to run. By default this may\nbe all types, but may change over time as detectors are updated.",
"flatPath": "v2/projects/{projectsId}/content:deidentify",
"httpMethod": "POST",
"id": "dlp.projects.content.deidentify",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "The parent resource name, for example projects/my-project-id.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/content:deidentify",
"request": {
"$ref": "GooglePrivacyDlpV2DeidentifyContentRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2DeidentifyContentResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"inspect": {
"description": "Finds potentially sensitive info in content.\nThis method has limits on input size, processing time, and output size.\n\nWhen no InfoTypes or CustomInfoTypes are specified in this request, the\nsystem will automatically choose what detectors to run. By default this may\nbe all types, but may change over time as detectors are updated.\n\nFor how to guides, see https://cloud.google.com/dlp/docs/inspecting-images\nand https://cloud.google.com/dlp/docs/inspecting-text,",
"flatPath": "v2/projects/{projectsId}/content:inspect",
"httpMethod": "POST",
"id": "dlp.projects.content.inspect",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "The parent resource name, for example projects/my-project-id.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/content:inspect",
"request": {
"$ref": "GooglePrivacyDlpV2InspectContentRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2InspectContentResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"reidentify": {
"description": "Re-identifies content that has been de-identified.\nSee\nhttps://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example\nto learn more.",
"flatPath": "v2/projects/{projectsId}/content:reidentify",
"httpMethod": "POST",
"id": "dlp.projects.content.reidentify",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "The parent resource name.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/content:reidentify",
"request": {
"$ref": "GooglePrivacyDlpV2ReidentifyContentRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2ReidentifyContentResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
"deidentifyTemplates": {
"methods": {
"create": {
"description": "Creates a DeidentifyTemplate for re-using frequently used configuration\nfor de-identifying content, images, and storage.\nSee https://cloud.google.com/dlp/docs/creating-templates-deid to learn\nmore.",
"flatPath": "v2/projects/{projectsId}/deidentifyTemplates",
"httpMethod": "POST",
"id": "dlp.projects.deidentifyTemplates.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/deidentifyTemplates",
"request": {
"$ref": "GooglePrivacyDlpV2CreateDeidentifyTemplateRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2DeidentifyTemplate"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Deletes a DeidentifyTemplate.\nSee https://cloud.google.com/dlp/docs/creating-templates-deid to learn\nmore.",
"flatPath": "v2/projects/{projectsId}/deidentifyTemplates/{deidentifyTemplatesId}",
"httpMethod": "DELETE",
"id": "dlp.projects.deidentifyTemplates.delete",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of the organization and deidentify template to be deleted,\nfor example `organizations/433245324/deidentifyTemplates/432452342` or\nprojects/project-id/deidentifyTemplates/432452342.",
"location": "path",
"pattern": "^projects/[^/]+/deidentifyTemplates/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"response": {
"$ref": "GoogleProtobufEmpty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Gets a DeidentifyTemplate.\nSee https://cloud.google.com/dlp/docs/creating-templates-deid to learn\nmore.",
"flatPath": "v2/projects/{projectsId}/deidentifyTemplates/{deidentifyTemplatesId}",
"httpMethod": "GET",
"id": "dlp.projects.deidentifyTemplates.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of the organization and deidentify template to be read, for\nexample `organizations/433245324/deidentifyTemplates/432452342` or\nprojects/project-id/deidentifyTemplates/432452342.",
"location": "path",
"pattern": "^projects/[^/]+/deidentifyTemplates/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"response": {
"$ref": "GooglePrivacyDlpV2DeidentifyTemplate"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists DeidentifyTemplates.\nSee https://cloud.google.com/dlp/docs/creating-templates-deid to learn\nmore.",
"flatPath": "v2/projects/{projectsId}/deidentifyTemplates",
"httpMethod": "GET",
"id": "dlp.projects.deidentifyTemplates.list",
"parameterOrder": [
"parent"
],
"parameters": {
"orderBy": {
"description": "Optional comma separated list of fields to order by,\nfollowed by `asc` or `desc` postfix. This list is case-insensitive,\ndefault sorting order is ascending, redundant space characters are\ninsignificant.\n\nExample: `name asc,update_time, create_time desc`\n\nSupported fields are:\n\n- `create_time`: corresponds to time the template was created.\n- `update_time`: corresponds to time the template was last updated.\n- `name`: corresponds to template's name.\n- `display_name`: corresponds to template's display name.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional size of the page, can be limited by server. If zero server returns\na page of max size 100.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional page token to continue retrieval. Comes from previous call\nto `ListDeidentifyTemplates`.",
"location": "query",
"type": "string"
},
"parent": {
"description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/deidentifyTemplates",
"response": {
"$ref": "GooglePrivacyDlpV2ListDeidentifyTemplatesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"patch": {
"description": "Updates the DeidentifyTemplate.\nSee https://cloud.google.com/dlp/docs/creating-templates-deid to learn\nmore.",
"flatPath": "v2/projects/{projectsId}/deidentifyTemplates/{deidentifyTemplatesId}",
"httpMethod": "PATCH",
"id": "dlp.projects.deidentifyTemplates.patch",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of organization and deidentify template to be updated, for\nexample `organizations/433245324/deidentifyTemplates/432452342` or\nprojects/project-id/deidentifyTemplates/432452342.",
"location": "path",
"pattern": "^projects/[^/]+/deidentifyTemplates/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"request": {
"$ref": "GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2DeidentifyTemplate"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
"dlpJobs": {
"methods": {
"cancel": {
"description": "Starts asynchronous cancellation on a long-running DlpJob. The server\nmakes a best effort to cancel the DlpJob, but success is not\nguaranteed.\nSee https://cloud.google.com/dlp/docs/inspecting-storage and\nhttps://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.",
"flatPath": "v2/projects/{projectsId}/dlpJobs/{dlpJobsId}:cancel",
"httpMethod": "POST",
"id": "dlp.projects.dlpJobs.cancel",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the DlpJob resource to be cancelled.",
"location": "path",
"pattern": "^projects/[^/]+/dlpJobs/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}:cancel",
"request": {
"$ref": "GooglePrivacyDlpV2CancelDlpJobRequest"
},
"response": {
"$ref": "GoogleProtobufEmpty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"create": {
"description": "Creates a new job to inspect storage or calculate risk metrics.\nSee https://cloud.google.com/dlp/docs/inspecting-storage and\nhttps://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.\n\nWhen no InfoTypes or CustomInfoTypes are specified in inspect jobs, the\nsystem will automatically choose what detectors to run. By default this may\nbe all types, but may change over time as detectors are updated.",
"flatPath": "v2/projects/{projectsId}/dlpJobs",
"httpMethod": "POST",
"id": "dlp.projects.dlpJobs.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "The parent resource name, for example projects/my-project-id.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/dlpJobs",
"request": {
"$ref": "GooglePrivacyDlpV2CreateDlpJobRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2DlpJob"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Deletes a long-running DlpJob. This method indicates that the client is\nno longer interested in the DlpJob result. The job will be cancelled if\npossible.\nSee https://cloud.google.com/dlp/docs/inspecting-storage and\nhttps://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.",
"flatPath": "v2/projects/{projectsId}/dlpJobs/{dlpJobsId}",
"httpMethod": "DELETE",
"id": "dlp.projects.dlpJobs.delete",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the DlpJob resource to be deleted.",
"location": "path",
"pattern": "^projects/[^/]+/dlpJobs/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"response": {
"$ref": "GoogleProtobufEmpty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Gets the latest state of a long-running DlpJob.\nSee https://cloud.google.com/dlp/docs/inspecting-storage and\nhttps://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.",
"flatPath": "v2/projects/{projectsId}/dlpJobs/{dlpJobsId}",
"httpMethod": "GET",
"id": "dlp.projects.dlpJobs.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the DlpJob resource.",
"location": "path",
"pattern": "^projects/[^/]+/dlpJobs/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"response": {
"$ref": "GooglePrivacyDlpV2DlpJob"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists DlpJobs that match the specified filter in the request.\nSee https://cloud.google.com/dlp/docs/inspecting-storage and\nhttps://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.",
"flatPath": "v2/projects/{projectsId}/dlpJobs",
"httpMethod": "GET",
"id": "dlp.projects.dlpJobs.list",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "Optional. Allows filtering.\n\nSupported syntax:\n\n* Filter expressions are made up of one or more restrictions.\n* Restrictions can be combined by `AND` or `OR` logical operators. A\nsequence of restrictions implicitly uses `AND`.\n* A restriction has the form of `\u003cfield\u003e \u003coperator\u003e \u003cvalue\u003e`.\n* Supported fields/values for inspect jobs:\n - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED\n - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY\n - `trigger_name` - The resource name of the trigger that created job.\n* Supported fields for risk analysis jobs:\n - `state` - RUNNING|CANCELED|FINISHED|FAILED\n* The operator must be `=` or `!=`.\n\nExamples:\n\n* inspected_storage = cloud_storage AND state = done\n* inspected_storage = cloud_storage OR inspected_storage = bigquery\n* inspected_storage = cloud_storage AND (state = done OR state = canceled)\n\nThe length of this field should be no more than 500 characters.",
"location": "query",
"type": "string"
},
"orderBy": {
"description": "Optional comma separated list of fields to order by,\nfollowed by `asc` or `desc` postfix. This list is case-insensitive,\ndefault sorting order is ascending, redundant space characters are\ninsignificant.\n\nExample: `name asc, end_time asc, create_time desc`\n\nSupported fields are:\n\n- `create_time`: corresponds to time the job was created.\n- `end_time`: corresponds to time the job ended.\n- `name`: corresponds to job's name.\n- `state`: corresponds to `state`",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "The standard list page size.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "The standard list page token.",
"location": "query",
"type": "string"
},
"parent": {
"description": "The parent resource name, for example projects/my-project-id.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
},
"type": {
"description": "The type of job. Defaults to `DlpJobType.INSPECT`",
"enum": [
"DLP_JOB_TYPE_UNSPECIFIED",
"INSPECT_JOB",
"RISK_ANALYSIS_JOB"
],
"location": "query",
"type": "string"
}
},
"path": "v2/{+parent}/dlpJobs",
"response": {
"$ref": "GooglePrivacyDlpV2ListDlpJobsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
"image": {
"methods": {
"redact": {
"description": "Redacts potentially sensitive info from an image.\nThis method has limits on input size, processing time, and output size.\nSee https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to\nlearn more.\n\nWhen no InfoTypes or CustomInfoTypes are specified in this request, the\nsystem will automatically choose what detectors to run. By default this may\nbe all types, but may change over time as detectors are updated.",
"flatPath": "v2/projects/{projectsId}/image:redact",
"httpMethod": "POST",
"id": "dlp.projects.image.redact",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "The parent resource name, for example projects/my-project-id.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/image:redact",
"request": {
"$ref": "GooglePrivacyDlpV2RedactImageRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2RedactImageResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
"inspectTemplates": {
"methods": {
"create": {
"description": "Creates an InspectTemplate for re-using frequently used configuration\nfor inspecting content, images, and storage.\nSee https://cloud.google.com/dlp/docs/creating-templates to learn more.",
"flatPath": "v2/projects/{projectsId}/inspectTemplates",
"httpMethod": "POST",
"id": "dlp.projects.inspectTemplates.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/inspectTemplates",
"request": {
"$ref": "GooglePrivacyDlpV2CreateInspectTemplateRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2InspectTemplate"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Deletes an InspectTemplate.\nSee https://cloud.google.com/dlp/docs/creating-templates to learn more.",
"flatPath": "v2/projects/{projectsId}/inspectTemplates/{inspectTemplatesId}",
"httpMethod": "DELETE",
"id": "dlp.projects.inspectTemplates.delete",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of the organization and inspectTemplate to be deleted, for\nexample `organizations/433245324/inspectTemplates/432452342` or\nprojects/project-id/inspectTemplates/432452342.",
"location": "path",
"pattern": "^projects/[^/]+/inspectTemplates/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"response": {
"$ref": "GoogleProtobufEmpty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Gets an InspectTemplate.\nSee https://cloud.google.com/dlp/docs/creating-templates to learn more.",
"flatPath": "v2/projects/{projectsId}/inspectTemplates/{inspectTemplatesId}",
"httpMethod": "GET",
"id": "dlp.projects.inspectTemplates.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of the organization and inspectTemplate to be read, for\nexample `organizations/433245324/inspectTemplates/432452342` or\nprojects/project-id/inspectTemplates/432452342.",
"location": "path",
"pattern": "^projects/[^/]+/inspectTemplates/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"response": {
"$ref": "GooglePrivacyDlpV2InspectTemplate"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists InspectTemplates.\nSee https://cloud.google.com/dlp/docs/creating-templates to learn more.",
"flatPath": "v2/projects/{projectsId}/inspectTemplates",
"httpMethod": "GET",
"id": "dlp.projects.inspectTemplates.list",
"parameterOrder": [
"parent"
],
"parameters": {
"orderBy": {
"description": "Optional comma separated list of fields to order by,\nfollowed by `asc` or `desc` postfix. This list is case-insensitive,\ndefault sorting order is ascending, redundant space characters are\ninsignificant.\n\nExample: `name asc,update_time, create_time desc`\n\nSupported fields are:\n\n- `create_time`: corresponds to time the template was created.\n- `update_time`: corresponds to time the template was last updated.\n- `name`: corresponds to template's name.\n- `display_name`: corresponds to template's display name.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional size of the page, can be limited by server. If zero server returns\na page of max size 100.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional page token to continue retrieval. Comes from previous call\nto `ListInspectTemplates`.",
"location": "query",
"type": "string"
},
"parent": {
"description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/inspectTemplates",
"response": {
"$ref": "GooglePrivacyDlpV2ListInspectTemplatesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"patch": {
"description": "Updates the InspectTemplate.\nSee https://cloud.google.com/dlp/docs/creating-templates to learn more.",
"flatPath": "v2/projects/{projectsId}/inspectTemplates/{inspectTemplatesId}",
"httpMethod": "PATCH",
"id": "dlp.projects.inspectTemplates.patch",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of organization and inspectTemplate to be updated, for\nexample `organizations/433245324/inspectTemplates/432452342` or\nprojects/project-id/inspectTemplates/432452342.",
"location": "path",
"pattern": "^projects/[^/]+/inspectTemplates/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"request": {
"$ref": "GooglePrivacyDlpV2UpdateInspectTemplateRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2InspectTemplate"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
"jobTriggers": {
"methods": {
"create": {
"description": "Creates a job trigger to run DLP actions such as scanning storage for\nsensitive information on a set schedule.\nSee https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.",
"flatPath": "v2/projects/{projectsId}/jobTriggers",
"httpMethod": "POST",
"id": "dlp.projects.jobTriggers.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "The parent resource name, for example projects/my-project-id.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/jobTriggers",
"request": {
"$ref": "GooglePrivacyDlpV2CreateJobTriggerRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2JobTrigger"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Deletes a job trigger.\nSee https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.",
"flatPath": "v2/projects/{projectsId}/jobTriggers/{jobTriggersId}",
"httpMethod": "DELETE",
"id": "dlp.projects.jobTriggers.delete",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of the project and the triggeredJob, for example\n`projects/dlp-test-project/jobTriggers/53234423`.",
"location": "path",
"pattern": "^projects/[^/]+/jobTriggers/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"response": {
"$ref": "GoogleProtobufEmpty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Gets a job trigger.\nSee https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.",
"flatPath": "v2/projects/{projectsId}/jobTriggers/{jobTriggersId}",
"httpMethod": "GET",
"id": "dlp.projects.jobTriggers.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of the project and the triggeredJob, for example\n`projects/dlp-test-project/jobTriggers/53234423`.",
"location": "path",
"pattern": "^projects/[^/]+/jobTriggers/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"response": {
"$ref": "GooglePrivacyDlpV2JobTrigger"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists job triggers.\nSee https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.",
"flatPath": "v2/projects/{projectsId}/jobTriggers",
"httpMethod": "GET",
"id": "dlp.projects.jobTriggers.list",
"parameterOrder": [
"parent"
],
"parameters": {
"orderBy": {
"description": "Optional comma separated list of triggeredJob fields to order by,\nfollowed by `asc` or `desc` postfix. This list is case-insensitive,\ndefault sorting order is ascending, redundant space characters are\ninsignificant.\n\nExample: `name asc,update_time, create_time desc`\n\nSupported fields are:\n\n- `create_time`: corresponds to time the JobTrigger was created.\n- `update_time`: corresponds to time the JobTrigger was last updated.\n- `name`: corresponds to JobTrigger's name.\n- `display_name`: corresponds to JobTrigger's display name.\n- `status`: corresponds to JobTrigger's status.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional size of the page, can be limited by a server.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional page token to continue retrieval. Comes from previous call\nto ListJobTriggers. `order_by` field must not\nchange for subsequent calls.",
"location": "query",
"type": "string"
},
"parent": {
"description": "The parent resource name, for example `projects/my-project-id`.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/jobTriggers",
"response": {
"$ref": "GooglePrivacyDlpV2ListJobTriggersResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"patch": {
"description": "Updates a job trigger.\nSee https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.",
"flatPath": "v2/projects/{projectsId}/jobTriggers/{jobTriggersId}",
"httpMethod": "PATCH",
"id": "dlp.projects.jobTriggers.patch",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of the project and the triggeredJob, for example\n`projects/dlp-test-project/jobTriggers/53234423`.",
"location": "path",
"pattern": "^projects/[^/]+/jobTriggers/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"request": {
"$ref": "GooglePrivacyDlpV2UpdateJobTriggerRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2JobTrigger"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
"storedInfoTypes": {
"methods": {
"create": {
"description": "Creates a pre-built stored infoType to be used for inspection.\nSee https://cloud.google.com/dlp/docs/creating-stored-infotypes to\nlearn more.",
"flatPath": "v2/projects/{projectsId}/storedInfoTypes",
"httpMethod": "POST",
"id": "dlp.projects.storedInfoTypes.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/storedInfoTypes",
"request": {
"$ref": "GooglePrivacyDlpV2CreateStoredInfoTypeRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2StoredInfoType"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Deletes a stored infoType.\nSee https://cloud.google.com/dlp/docs/creating-stored-infotypes to\nlearn more.",
"flatPath": "v2/projects/{projectsId}/storedInfoTypes/{storedInfoTypesId}",
"httpMethod": "DELETE",
"id": "dlp.projects.storedInfoTypes.delete",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of the organization and storedInfoType to be deleted, for\nexample `organizations/433245324/storedInfoTypes/432452342` or\nprojects/project-id/storedInfoTypes/432452342.",
"location": "path",
"pattern": "^projects/[^/]+/storedInfoTypes/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"response": {
"$ref": "GoogleProtobufEmpty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Gets a stored infoType.\nSee https://cloud.google.com/dlp/docs/creating-stored-infotypes to\nlearn more.",
"flatPath": "v2/projects/{projectsId}/storedInfoTypes/{storedInfoTypesId}",
"httpMethod": "GET",
"id": "dlp.projects.storedInfoTypes.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of the organization and storedInfoType to be read, for\nexample `organizations/433245324/storedInfoTypes/432452342` or\nprojects/project-id/storedInfoTypes/432452342.",
"location": "path",
"pattern": "^projects/[^/]+/storedInfoTypes/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"response": {
"$ref": "GooglePrivacyDlpV2StoredInfoType"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists stored infoTypes.\nSee https://cloud.google.com/dlp/docs/creating-stored-infotypes to\nlearn more.",
"flatPath": "v2/projects/{projectsId}/storedInfoTypes",
"httpMethod": "GET",
"id": "dlp.projects.storedInfoTypes.list",
"parameterOrder": [
"parent"
],
"parameters": {
"orderBy": {
"description": "Optional comma separated list of fields to order by,\nfollowed by `asc` or `desc` postfix. This list is case-insensitive,\ndefault sorting order is ascending, redundant space characters are\ninsignificant.\n\nExample: `name asc, display_name, create_time desc`\n\nSupported fields are:\n\n- `create_time`: corresponds to time the most recent version of the\nresource was created.\n- `state`: corresponds to the state of the resource.\n- `name`: corresponds to resource name.\n- `display_name`: corresponds to info type's display name.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional size of the page, can be limited by server. If zero server returns\na page of max size 100.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional page token to continue retrieval. Comes from previous call\nto `ListStoredInfoTypes`.",
"location": "query",
"type": "string"
},
"parent": {
"description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/storedInfoTypes",
"response": {
"$ref": "GooglePrivacyDlpV2ListStoredInfoTypesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"patch": {
"description": "Updates the stored infoType by creating a new version. The existing version\nwill continue to be used until the new version is ready.\nSee https://cloud.google.com/dlp/docs/creating-stored-infotypes to\nlearn more.",
"flatPath": "v2/projects/{projectsId}/storedInfoTypes/{storedInfoTypesId}",
"httpMethod": "PATCH",
"id": "dlp.projects.storedInfoTypes.patch",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name of organization and storedInfoType to be updated, for\nexample `organizations/433245324/storedInfoTypes/432452342` or\nprojects/project-id/storedInfoTypes/432452342.",
"location": "path",
"pattern": "^projects/[^/]+/storedInfoTypes/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"request": {
"$ref": "GooglePrivacyDlpV2UpdateStoredInfoTypeRequest"
},
"response": {
"$ref": "GooglePrivacyDlpV2StoredInfoType"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
}
}
},
"revision": "20181121",
"rootUrl": "https://dlp.googleapis.com/",
"schemas": {
"GooglePrivacyDlpV2Action": {
"description": "A task to execute on the completion of a job.\nSee https://cloud.google.com/dlp/docs/concepts-actions to learn more.",
"id": "GooglePrivacyDlpV2Action",
"properties": {
"pubSub": {
"$ref": "GooglePrivacyDlpV2PublishToPubSub",
"description": "Publish a notification to a pubsub topic."
},
"publishSummaryToCscc": {
"$ref": "GooglePrivacyDlpV2PublishSummaryToCscc",
"description": "Publish summary to Cloud Security Command Center (Alpha)."
},
"saveFindings": {
"$ref": "GooglePrivacyDlpV2SaveFindings",
"description": "Save resulting findings in a provided location."
}
},
"type": "object"
},
"GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails": {
"description": "Result of a risk analysis operation request.",
"id": "GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails",
"properties": {
"categoricalStatsResult": {
"$ref": "GooglePrivacyDlpV2CategoricalStatsResult"
},
"deltaPresenceEstimationResult": {
"$ref": "GooglePrivacyDlpV2DeltaPresenceEstimationResult"
},
"kAnonymityResult": {
"$ref": "GooglePrivacyDlpV2KAnonymityResult"
},
"kMapEstimationResult": {
"$ref": "GooglePrivacyDlpV2KMapEstimationResult"
},
"lDiversityResult": {
"$ref": "GooglePrivacyDlpV2LDiversityResult"
},
"numericalStatsResult": {
"$ref": "GooglePrivacyDlpV2NumericalStatsResult"
},
"requestedPrivacyMetric": {
"$ref": "GooglePrivacyDlpV2PrivacyMetric",
"description": "Privacy metric to compute."
},
"requestedSourceTable": {
"$ref": "GooglePrivacyDlpV2BigQueryTable",
"description": "Input dataset to compute metrics over."
}
},
"type": "object"
},
"GooglePrivacyDlpV2AuxiliaryTable": {
"description": "An auxiliary table contains statistical information on the relative\nfrequency of different quasi-identifiers values. It has one or several\nquasi-identifiers columns, and one column that indicates the relative\nfrequency of each quasi-identifier tuple.\nIf a tuple is present in the data but not in the auxiliary table, the\ncorresponding relative frequency is assumed to be zero (and thus, the\ntuple is highly reidentifiable).",
"id": "GooglePrivacyDlpV2AuxiliaryTable",
"properties": {
"quasiIds": {
"description": "Quasi-identifier columns. [required]",
"items": {
"$ref": "GooglePrivacyDlpV2QuasiIdField"
},
"type": "array"
},
"relativeFrequency": {
"$ref": "GooglePrivacyDlpV2FieldId",
"description": "The relative frequency column must contain a floating-point number\nbetween 0 and 1 (inclusive). Null values are assumed to be zero.\n[required]"
},
"table": {
"$ref": "GooglePrivacyDlpV2BigQueryTable",
"description": "Auxiliary table location. [required]"
}
},
"type": "object"
},
"GooglePrivacyDlpV2BigQueryField": {
"description": "Message defining a field of a BigQuery table.",
"id": "GooglePrivacyDlpV2BigQueryField",
"properties": {
"field": {
"$ref": "GooglePrivacyDlpV2FieldId",
"description": "Designated field in the BigQuery table."
},
"table": {
"$ref": "GooglePrivacyDlpV2BigQueryTable",
"description": "Source table of the field."
}
},
"type": "object"
},
"GooglePrivacyDlpV2BigQueryKey": {
"description": "Row key for identifying a record in BigQuery table.",
"id": "GooglePrivacyDlpV2BigQueryKey",
"properties": {
"rowNumber": {
"description": "Absolute number of the row from the beginning of the table at the time\nof scanning.",
"format": "int64",
"type": "string"
},
"tableReference": {
"$ref": "GooglePrivacyDlpV2BigQueryTable",
"description": "Complete BigQuery table reference."
}
},
"type": "object"
},
"GooglePrivacyDlpV2BigQueryOptions": {
"description": "Options defining BigQuery table and row identifiers.",
"id": "GooglePrivacyDlpV2BigQueryOptions",
"properties": {
"excludedFields": {
"description": "References to fields excluded from scanning. This allows you to skip\ninspection of entire columns which you know have no findings.",
"items": {
"$ref": "GooglePrivacyDlpV2FieldId"
},
"type": "array"
},
"identifyingFields": {
"description": "References to fields uniquely identifying rows within the table.\nNested fields in the format, like `person.birthdate.year`, are allowed.",
"items": {
"$ref": "GooglePrivacyDlpV2FieldId"
},
"type": "array"
},
"rowsLimit": {
"description": "Max number of rows to scan. If the table has more rows than this value, the\nrest of the rows are omitted. If not set, or if set to 0, all rows will be\nscanned. Only one of rows_limit and rows_limit_percent can be specified.\nCannot be used in conjunction with TimespanConfig.",
"format": "int64",
"type": "string"
},
"rowsLimitPercent": {
"description": "Max percentage of rows to scan. The rest are omitted. The number of rows\nscanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and\n100 means no limit. Defaults to 0. Only one of rows_limit and\nrows_limit_percent can be specified. Cannot be used in conjunction with\nTimespanConfig.",
"format": "int32",
"type": "integer"
},
"sampleMethod": {
"enum": [
"SAMPLE_METHOD_UNSPECIFIED",
"TOP",
"RANDOM_START"
],
"enumDescriptions": [
"",
"Scan from the top (default).",
"Randomly pick the row to start scanning. The scanned rows are contiguous."
],
"type": "string"
},
"tableReference": {
"$ref": "GooglePrivacyDlpV2BigQueryTable",
"description": "Complete BigQuery table reference."
}
},
"type": "object"
},
"GooglePrivacyDlpV2BigQueryTable": {
"description": "Message defining the location of a BigQuery table. A table is uniquely\nidentified by its project_id, dataset_id, and table_name. Within a query\na table is often referenced with a string in the format of:\n`\u003cproject_id\u003e:\u003cdataset_id\u003e.\u003ctable_id\u003e` or\n`\u003cproject_id\u003e.\u003cdataset_id\u003e.\u003ctable_id\u003e`.",
"id": "GooglePrivacyDlpV2BigQueryTable",
"properties": {
"datasetId": {
"description": "Dataset ID of the table.",
"type": "string"
},
"projectId": {
"description": "The Google Cloud Platform project ID of the project containing the table.\nIf omitted, project ID is inferred from the API call.",
"type": "string"
},
"tableId": {
"description": "Name of the table.",
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2BoundingBox": {
"description": "Bounding box encompassing detected text within an image.",
"id": "GooglePrivacyDlpV2BoundingBox",
"properties": {
"height": {
"description": "Height of the bounding box in pixels.",
"format": "int32",
"type": "integer"
},
"left": {
"description": "Left coordinate of the bounding box. (0,0) is upper left.",
"format": "int32",
"type": "integer"
},
"top": {
"description": "Top coordinate of the bounding box. (0,0) is upper left.",
"format": "int32",
"type": "integer"
},
"width": {
"description": "Width of the bounding box in pixels.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"GooglePrivacyDlpV2Bucket": {
"description": "Bucket is represented as a range, along with replacement values.",
"id": "GooglePrivacyDlpV2Bucket",
"properties": {
"max": {
"$ref": "GooglePrivacyDlpV2Value",
"description": "Upper bound of the range, exclusive; type must match min."
},
"min": {
"$ref": "GooglePrivacyDlpV2Value",
"description": "Lower bound of the range, inclusive. Type should be the same as max if\nused."
},
"replacementValue": {
"$ref": "GooglePrivacyDlpV2Value",
"description": "Replacement value for this bucket. If not provided\nthe default behavior will be to hyphenate the min-max range."
}
},
"type": "object"
},
"GooglePrivacyDlpV2BucketingConfig": {
"description": "Generalization function that buckets values based on ranges. The ranges and\nreplacement values are dynamically provided by the user for custom behavior,\nsuch as 1-30 -\u003e LOW 31-65 -\u003e MEDIUM 66-100 -\u003e HIGH\nThis can be used on\ndata of type: number, long, string, timestamp.\nIf the bound `Value` type differs from the type of data being transformed, we\nwill first attempt converting the type of the data to be transformed to match\nthe type of the bound before comparing.\nSee https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.",
"id": "GooglePrivacyDlpV2BucketingConfig",
"properties": {
"buckets": {
"description": "Set of buckets. Ranges must be non-overlapping.",
"items": {
"$ref": "GooglePrivacyDlpV2Bucket"
},
"type": "array"
}
},
"type": "object"
},
"GooglePrivacyDlpV2ByteContentItem": {
"description": "Container for bytes to inspect or redact.",
"id": "GooglePrivacyDlpV2ByteContentItem",
"properties": {
"data": {
"description": "Content data to inspect or redact.",
"format": "byte",
"type": "string"
},
"type": {
"description": "The type of data stored in the bytes string. Default will be TEXT_UTF8.",
"enum": [
"BYTES_TYPE_UNSPECIFIED",
"IMAGE",
"IMAGE_JPEG",
"IMAGE_BMP",
"IMAGE_PNG",
"IMAGE_SVG",
"TEXT_UTF8"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
""
],
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2CancelDlpJobRequest": {
"description": "The request message for canceling a DLP job.",
"id": "GooglePrivacyDlpV2CancelDlpJobRequest",
"properties": {},
"type": "object"
},
"GooglePrivacyDlpV2CategoricalStatsConfig": {
"description": "Compute numerical stats over an individual column, including\nnumber of distinct values and value count distribution.",
"id": "GooglePrivacyDlpV2CategoricalStatsConfig",
"properties": {
"field": {
"$ref": "GooglePrivacyDlpV2FieldId",
"description": "Field to compute categorical stats on. All column types are\nsupported except for arrays and structs. However, it may be more\ninformative to use NumericalStats when the field type is supported,\ndepending on the data."
}
},
"type": "object"
},
"GooglePrivacyDlpV2CategoricalStatsHistogramBucket": {
"id": "GooglePrivacyDlpV2CategoricalStatsHistogramBucket",
"properties": {
"bucketSize": {
"description": "Total number of values in this bucket.",
"format": "int64",
"type": "string"
},
"bucketValueCount": {
"description": "Total number of distinct values in this bucket.",
"format": "int64",
"type": "string"
},
"bucketValues": {
"description": "Sample of value frequencies in this bucket. The total number of\nvalues returned per bucket is capped at 20.",
"items": {
"$ref": "GooglePrivacyDlpV2ValueFrequency"
},
"type": "array"
},
"valueFrequencyLowerBound": {
"description": "Lower bound on the value frequency of the values in this bucket.",
"format": "int64",
"type": "string"
},
"valueFrequencyUpperBound": {
"description": "Upper bound on the value frequency of the values in this bucket.",
"format": "int64",
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2CategoricalStatsResult": {
"description": "Result of the categorical stats computation.",
"id": "GooglePrivacyDlpV2CategoricalStatsResult",
"properties": {
"valueFrequencyHistogramBuckets": {
"description": "Histogram of value frequencies in the column.",
"items": {
"$ref": "GooglePrivacyDlpV2CategoricalStatsHistogramBucket"
},
"type": "array"
}
},
"type": "object"
},
"GooglePrivacyDlpV2CharacterMaskConfig": {
"description": "Partially mask a string by replacing a given number of characters with a\nfixed character. Masking can start from the beginning or end of the string.\nThis can be used on data of any type (numbers, longs, and so on) and when\nde-identifying structured data we'll attempt to preserve the original data's\ntype. (This allows you to take a long like 123 and modify it to a string like\n**3.",
"id": "GooglePrivacyDlpV2CharacterMaskConfig",
"properties": {
"charactersToIgnore": {
"description": "When masking a string, items in this list will be skipped when replacing.\nFor example, if your string is 555-555-5555 and you ask us to skip `-` and\nmask 5 chars with * we would produce ***-*55-5555.",
"items": {
"$ref": "GooglePrivacyDlpV2CharsToIgnore"
},
"type": "array"
},
"maskingCharacter": {
"description": "Character to mask the sensitive values\u0026mdash;for example, \"*\" for an\nalphabetic string such as name, or \"0\" for a numeric string such as ZIP\ncode or credit card number. String must have length 1. If not supplied, we\nwill default to \"*\" for strings, 0 for digits.",
"type": "string"
},
"numberToMask": {
"description": "Number of characters to mask. If not set, all matching chars will be\nmasked. Skipped characters do not count towards this tally.",
"format": "int32",
"type": "integer"
},
"reverseOrder": {
"description": "Mask characters in reverse order. For example, if `masking_character` is\n'0', number_to_mask is 14, and `reverse_order` is false, then\n1234-5678-9012-3456 -\u003e 00000000000000-3456\nIf `masking_character` is '*', `number_to_mask` is 3, and `reverse_order`\nis true, then 12345 -\u003e 12***",
"type": "boolean"
}
},
"type": "object"
},
"GooglePrivacyDlpV2CharsToIgnore": {
"description": "Characters to skip when doing deidentification of a value. These will be left\nalone and skipped.",
"id": "GooglePrivacyDlpV2CharsToIgnore",
"properties": {
"charactersToSkip": {
"type": "string"
},
"commonCharactersToIgnore": {
"enum": [
"COMMON_CHARS_TO_IGNORE_UNSPECIFIED",
"NUMERIC",
"ALPHA_UPPER_CASE",
"ALPHA_LOWER_CASE",
"PUNCTUATION",
"WHITESPACE"
],
"enumDescriptions": [
"",
"0-9",
"A-Z",
"a-z",
"US Punctuation, one of !\"#$%\u0026'()*+,-./:;\u003c=\u003e?@[\\]^_`{|}~",
"Whitespace character, one of [ \\t\\n\\x0B\\f\\r]"
],
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2CloudStorageFileSet": {
"description": "Message representing a set of files in Cloud Storage.",
"id": "GooglePrivacyDlpV2CloudStorageFileSet",
"properties": {
"url": {
"description": "The url, in the format `gs://\u003cbucket\u003e/\u003cpath\u003e`. Trailing wildcard in the\npath is allowed.",
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2CloudStorageOptions": {
"description": "Options defining a file or a set of files within a Google Cloud Storage\nbucket.",
"id": "GooglePrivacyDlpV2CloudStorageOptions",
"properties": {
"bytesLimitPerFile": {
"description": "Max number of bytes to scan from a file. If a scanned file's size is bigger\nthan this value then the rest of the bytes are omitted. Only one\nof bytes_limit_per_file and bytes_limit_per_file_percent can be specified.",
"format": "int64",
"type": "string"
},
"bytesLimitPerFilePercent": {
"description": "Max percentage of bytes to scan from a file. The rest are omitted. The\nnumber of bytes scanned is rounded down. Must be between 0 and 100,\ninclusively. Both 0 and 100 means no limit. Defaults to 0. Only one\nof bytes_limit_per_file and bytes_limit_per_file_percent can be specified.",
"format": "int32",
"type": "integer"
},
"fileSet": {
"$ref": "GooglePrivacyDlpV2FileSet",
"description": "The set of one or more files to scan."
},
"fileTypes": {
"description": "List of file type groups to include in the scan.\nIf empty, all files are scanned and available data format processors\nare applied. In addition, the binary content of the selected files\nis always scanned as well.",
"enumDescriptions": [
"Includes all files.",
"Includes all file extensions not covered by text file types.",
"Included file extensions:\n asc, brf, c, cc, cpp, csv, cxx, c++, cs, css, dart, eml, go, h, hh, hpp,\n hxx, h++, hs, html, htm, shtml, shtm, xhtml, lhs, ini, java, js, json,\n ocaml, md, mkd, markdown, m, ml, mli, pl, pm, php, phtml, pht, py, pyw,\n rb, rbw, rs, rc, scala, sh, sql, tex, txt, text, tsv, vcard, vcs, wml,\n xml, xsl, xsd, yml, yaml."
],
"items": {
"enum": [
"FILE_TYPE_UNSPECIFIED",
"BINARY_FILE",
"TEXT_FILE"
],
"type": "string"
},
"type": "array"
},
"filesLimitPercent": {
"description": "Limits the number of files to scan to this percentage of the input FileSet.\nNumber of files scanned is rounded down. Must be between 0 and 100,\ninclusively. Both 0 and 100 means no limit. Defaults to 0.",
"format": "int32",
"type": "integer"
},
"sampleMethod": {
"enum": [
"SAMPLE_METHOD_UNSPECIFIED",
"TOP",
"RANDOM_START"
],
"enumDescriptions": [
"",
"Scan from the top (default).",
"For each file larger than bytes_limit_per_file, randomly pick the offset\nto start scanning. The scanned bytes are contiguous."
],
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2CloudStoragePath": {
"description": "Message representing a single file or path in Cloud Storage.",
"id": "GooglePrivacyDlpV2CloudStoragePath",
"properties": {
"path": {
"description": "A url representing a file or path (no wildcards) in Cloud Storage.\nExample: gs://[BUCKET_NAME]/dictionary.txt",
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2CloudStorageRegexFileSet": {
"description": "Message representing a set of files in a Cloud Storage bucket. Regular\nexpressions are used to allow fine-grained control over which files in the\nbucket to include.\n\nIncluded files are those that match at least one item in `include_regex` and\ndo not match any items in `exclude_regex`. Note that a file that matches\nitems from both lists will _not_ be included. For a match to occur, the\nentire file path (i.e., everything in the url after the bucket name) must\nmatch the regular expression.\n\nFor example, given the input `{bucket_name: \"mybucket\", include_regex:\n[\"directory1/.*\"], exclude_regex:\n[\"directory1/excluded.*\"]}`:\n\n* `gs://mybucket/directory1/myfile` will be included\n* `gs://mybucket/directory1/directory2/myfile` will be included (`.*` matches\nacross `/`)\n* `gs://mybucket/directory0/directory1/myfile` will _not_ be included (the\nfull path doesn't match any items in `include_regex`)\n* `gs://mybucket/directory1/excludedfile` will _not_ be included (the path\nmatches an item in `exclude_regex`)\n\nIf `include_regex` is left empty, it will match all files by default\n(this is equivalent to setting `include_regex: [\".*\"]`).\n\nSome other common use cases:\n\n* `{bucket_name: \"mybucket\", exclude_regex: [\".*\\.pdf\"]}` will include all\nfiles in `mybucket` except for .pdf files\n* `{bucket_name: \"mybucket\", include_regex: [\"directory/[^/]+\"]}` will\ninclude all files directly under `gs://mybucket/directory/`, without matching\nacross `/`",
"id": "GooglePrivacyDlpV2CloudStorageRegexFileSet",
"properties": {
"bucketName": {
"description": "The name of a Cloud Storage bucket. Required.",
"type": "string"
},
"excludeRegex": {
"description": "A list of regular expressions matching file paths to exclude. All files in\nthe bucket that match at least one of these regular expressions will be\nexcluded from the scan.\n\nRegular expressions use RE2\n[syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found\nunder the google/re2 repository on GitHub.",
"items": {
"type": "string"
},
"type": "array"
},
"includeRegex": {
"description": "A list of regular expressions matching file paths to include. All files in\nthe bucket that match at least one of these regular expressions will be\nincluded in the set of files, except for those that also match an item in\n`exclude_regex`. Leaving this field empty will match all files by default\n(this is equivalent to including `.*` in the list).\n\nRegular expressions use RE2\n[syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found\nunder the google/re2 repository on GitHub.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"GooglePrivacyDlpV2Color": {
"description": "Represents a color in the RGB color space.",
"id": "GooglePrivacyDlpV2Color",
"properties": {
"blue": {
"description": "The amount of blue in the color as a value in the interval [0, 1].",
"format": "float",
"type": "number"
},
"green": {
"description": "The amount of green in the color as a value in the interval [0, 1].",
"format": "float",
"type": "number"
},
"red": {
"description": "The amount of red in the color as a value in the interval [0, 1].",
"format": "float",
"type": "number"
}
},
"type": "object"
},
"GooglePrivacyDlpV2Condition": {
"description": "The field type of `value` and `field` do not need to match to be\nconsidered equal, but not all comparisons are possible.\n\nA `value` of type:\n\n- `string` can be compared against all other types\n- `boolean` can only be compared against other booleans\n- `integer` can be compared against doubles or a string if the string value\ncan be parsed as an integer.\n- `double` can be compared against integers or a string if the string can\nbe parsed as a double.\n- `Timestamp` can be compared against strings in RFC 3339 date string\nformat.\n- `TimeOfDay` can be compared against timestamps and strings in the format\nof 'HH:mm:ss'.\n\nIf we fail to compare do to type mismatch, a warning will be given and\nthe condition will evaluate to false.",
"id": "GooglePrivacyDlpV2Condition",
"properties": {
"field": {
"$ref": "GooglePrivacyDlpV2FieldId",
"description": "Field within the record this condition is evaluated against. [required]"
},
"operator": {
"description": "Operator used to compare the field or infoType to the value. [required]",
"enum": [
"RELATIONAL_OPERATOR_UNSPECIFIED",
"EQUAL_TO",
"NOT_EQUAL_TO",
"GREATER_THAN",
"LESS_THAN",
"GREATER_THAN_OR_EQUALS",
"LESS_THAN_OR_EQUALS",
"EXISTS"
],
"enumDescriptions": [
"",
"Equal.",
"Not equal to.",
"Greater than.",
"Less than.",
"Greater than or equals.",
"Less than or equals.",
"Exists"
],
"type": "string"
},
"value": {
"$ref": "GooglePrivacyDlpV2Value",
"description": "Value to compare against. [Required, except for `EXISTS` tests.]"
}
},
"type": "object"
},
"GooglePrivacyDlpV2Conditions": {
"description": "A collection of conditions.",
"id": "GooglePrivacyDlpV2Conditions",
"properties": {
"conditions": {
"items": {
"$ref": "GooglePrivacyDlpV2Condition"
},
"type": "array"
}
},
"type": "object"
},
"GooglePrivacyDlpV2ContentItem": {
"description": "Container structure for the content to inspect.",
"id": "GooglePrivacyDlpV2ContentItem",
"properties": {
"byteItem": {
"$ref": "GooglePrivacyDlpV2ByteContentItem",
"description": "Content data to inspect or redact. Replaces `type` and `data`."
},
"table": {
"$ref": "GooglePrivacyDlpV2Table",
"description": "Structured content for inspection. See\nhttps://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to\nlearn more."
},
"value": {
"description": "String data to inspect or redact.",
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2ContentLocation": {
"description": "Findings container location data.",
"id": "GooglePrivacyDlpV2ContentLocation",
"properties": {
"containerName": {
"description": "Name of the container where the finding is located.\nThe top level name is the source file name or table name. Names of some\ncommon storage containers are formatted as follows:\n\n* BigQuery tables: `\u003cproject_id\u003e:\u003cdataset_id\u003e.\u003ctable_id\u003e`\n* Cloud Storage files: `gs://\u003cbucket\u003e/\u003cpath\u003e`\n* Datastore namespace: \u003cnamespace\u003e\n\nNested names could be absent if the embedded object has no string\nidentifier (for an example an image contained within a document).",
"type": "string"
},
"containerTimestamp": {
"description": "Findings container modification timestamp, if applicable.\nFor Google Cloud Storage contains last file modification timestamp.\nFor BigQuery table contains last_modified_time property.\nFor Datastore - not populated.",
"format": "google-datetime",
"type": "string"
},
"containerVersion": {
"description": "Findings container version, if available\n(\"generation\" for Google Cloud Storage).",
"type": "string"
},
"documentLocation": {
"$ref": "GooglePrivacyDlpV2DocumentLocation",
"description": "Location data for document files."
},
"imageLocation": {
"$ref": "GooglePrivacyDlpV2ImageLocation",
"description": "Location within an image's pixels."
},
"recordLocation": {
"$ref": "GooglePrivacyDlpV2RecordLocation",
"description": "Location within a row or record of a database table."
}
},
"type": "object"
},
"GooglePrivacyDlpV2CreateDeidentifyTemplateRequest": {
"description": "Request message for CreateDeidentifyTemplate.",
"id": "GooglePrivacyDlpV2CreateDeidentifyTemplateRequest",
"properties": {
"deidentifyTemplate": {
"$ref": "GooglePrivacyDlpV2DeidentifyTemplate",
"description": "The DeidentifyTemplate to create."
},
"templateId": {
"description": "The template id can contain uppercase and lowercase letters,\nnumbers, and hyphens; that is, it must match the regular\nexpression: `[a-zA-Z\\\\d-]+`. The maximum length is 100\ncharacters. Can be empty to allow the system to generate one.",
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2CreateDlpJobRequest": {
"description": "Request message for CreateDlpJobRequest. Used to initiate long running\njobs such as calculating risk metrics or inspecting Google Cloud\nStorage.",
"id": "GooglePrivacyDlpV2CreateDlpJobRequest",
"properties": {
"inspectJob": {
"$ref": "GooglePrivacyDlpV2InspectJobConfig"
},
"jobId": {
"description": "The job id can contain uppercase and lowercase letters,\nnumbers, and hyphens; that is, it must match the regular\nexpression: `[a-zA-Z\\\\d-]+`. The maximum length is 100\ncharacters. Can be empty to allow the system to generate one.",
"type": "string"
},
"riskJob": {
"$ref": "GooglePrivacyDlpV2RiskAnalysisJobConfig"
}
},
"type": "object"
},
"GooglePrivacyDlpV2CreateInspectTemplateRequest": {
"description": "Request message for CreateInspectTemplate.",
"id": "GooglePrivacyDlpV2CreateInspectTemplateRequest",
"properties": {
"inspectTemplate": {
"$ref": "GooglePrivacyDlpV2InspectTemplate",
"description": "The InspectTemplate to create."
},
"templateId": {
"description": "The template id can contain uppercase and lowercase letters,\nnumbers, and hyphens; that is, it must match the regular\nexpression: `[a-zA-Z\\\\d-]+`. The maximum length is 100\ncharacters. Can be empty to allow the system to generate one.",
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2CreateJobTriggerRequest": {
"description": "Request message for CreateJobTrigger.",
"id": "GooglePrivacyDlpV2CreateJobTriggerRequest",
"properties": {
"jobTrigger": {
"$ref": "GooglePrivacyDlpV2JobTrigger",
"description": "The JobTrigger to create."
},
"triggerId": {
"description": "The trigger id can contain uppercase and lowercase letters,\nnumbers, and hyphens; that is, it must match the regular\nexpression: `[a-zA-Z\\\\d-]+`. The maximum length is 100\ncharacters. Can be empty to allow the system to generate one.",
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2CreateStoredInfoTypeRequest": {
"description": "Request message for CreateStoredInfoType.",
"id": "GooglePrivacyDlpV2CreateStoredInfoTypeRequest",
"properties": {
"config": {
"$ref": "GooglePrivacyDlpV2StoredInfoTypeConfig",
"description": "Configuration of the storedInfoType to create."
},
"storedInfoTypeId": {
"description": "The storedInfoType ID can contain uppercase and lowercase letters,\nnumbers, and hyphens; that is, it must match the regular\nexpression: `[a-zA-Z\\\\d-]+`. The maximum length is 100\ncharacters. Can be empty to allow the system to generate one.",
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2CryptoHashConfig": {
"description": "Pseudonymization method that generates surrogates via cryptographic hashing.\nUses SHA-256.\nThe key size must be either 32 or 64 bytes.\nOutputs a 32 byte digest as an uppercase hex string\n(for example, 41D1567F7F99F1DC2A5FAB886DEE5BEE).\nCurrently, only string and integer values can be hashed.",
"id": "GooglePrivacyDlpV2CryptoHashConfig",
"properties": {
"cryptoKey": {
"$ref": "GooglePrivacyDlpV2CryptoKey",
"description": "The key used by the hash function."
}
},
"type": "object"
},
"GooglePrivacyDlpV2CryptoKey": {
"description": "This is a data encryption key (DEK) (as opposed to\na key encryption key (KEK) stored by KMS).\nWhen using KMS to wrap/unwrap DEKs, be sure to set an appropriate\nIAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot\nunwrap the data crypto key.",
"id": "GooglePrivacyDlpV2CryptoKey",
"properties": {
"kmsWrapped": {
"$ref": "GooglePrivacyDlpV2KmsWrappedCryptoKey"
},
"transient": {
"$ref": "GooglePrivacyDlpV2TransientCryptoKey"
},
"unwrapped": {
"$ref": "GooglePrivacyDlpV2UnwrappedCryptoKey"
}
},
"type": "object"
},
"GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig": {
"description": "Replaces an identifier with a surrogate using FPE with the FFX\nmode of operation; however when used in the `ReidentifyContent` API method,\nit serves the opposite function by reversing the surrogate back into\nthe original identifier.\nThe identifier must be encoded as ASCII.\nFor a given crypto key and context, the same identifier will be\nreplaced with the same surrogate.\nIdentifiers must be at least two characters long.\nIn the case that the identifier is the empty string, it will be skipped.\nSee https://cloud.google.com/dlp/docs/pseudonymization to learn more.",
"id": "GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig",
"properties": {
"commonAlphabet": {
"enum": [
"FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED",
"NUMERIC",
"HEXADECIMAL",
"UPPER_CASE_ALPHA_NUMERIC",
"ALPHA_NUMERIC"
],
"enumDescriptions": [
"",
"[0-9] (radix of 10)",
"[0-9A-F] (radix of 16)",
"[0-9A-Z] (radix of 36)",
"[0-9A-Za-z] (radix of 62)"
],
"type": "string"
},
"context": {
"$ref": "GooglePrivacyDlpV2FieldId",
"description": "The 'tweak', a context may be used for higher security since the same\nidentifier in two different contexts won't be given the same surrogate. If\nthe context is not set, a default tweak will be used.\n\nIf the context is set but:\n\n1. there is no record present when transforming a given value or\n1. the field is not present when transforming a given value,\n\na default tweak will be used.\n\nNote that case (1) is expected when an `InfoTypeTransformation` is\napplied to both structured and non-structured `ContentItem`s.\nCurrently, the referenced field may be of value type integer or string.\n\nThe tweak is constructed as a sequence of bytes in big endian byte order\nsuch that:\n\n- a 64 bit integer is encoded followed by a single byte of value 1\n- a string is encoded in UTF-8 format followed by a single byte of value 2"
},
"cryptoKey": {
"$ref": "GooglePrivacyDlpV2CryptoKey",
"description": "The key used by the encryption algorithm. [required]"
},
"customAlphabet": {
"description": "This is supported by mapping these to the alphanumeric characters\nthat the FFX mode natively supports. This happens before/after\nencryption/decryption.\nEach character listed must appear only once.\nNumber of characters must be in the range [2, 62].\nThis must be encoded as ASCII.\nThe order of characters does not matter.",
"type": "string"
},
"radix": {
"description": "The native way to select the alphabet. Must be in the range [2, 62].",
"format": "int32",
"type": "integer"
},
"surrogateInfoType": {
"$ref": "GooglePrivacyDlpV2InfoType",
"description": "The custom infoType to annotate the surrogate with.\nThis annotation will be applied to the surrogate by prefixing it with\nthe name of the custom infoType followed by the number of\ncharacters comprising the surrogate. The following scheme defines the\nformat: info_type_name(surrogate_character_count):surrogate\n\nFor example, if the name of custom infoType is 'MY_TOKEN_INFO_TYPE' and\nthe surrogate is 'abc', the full replacement value\nwill be: 'MY_TOKEN_INFO_TYPE(3):abc'\n\nThis annotation identifies the surrogate when inspecting content using the\ncustom infoType\n[`SurrogateType`](/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).\nThis facilitates reversal of the surrogate when it occurs in free text.\n\nIn order for inspection to work properly, the name of this infoType must\nnot occur naturally anywhere in your data; otherwise, inspection may\nfind a surrogate that does not correspond to an actual identifier.\nTherefore, choose your custom infoType name carefully after considering\nwhat your data looks like. One way to select a name that has a high chance\nof yielding reliable detection is to include one or more unicode characters\nthat are highly improbable to exist in your data.\nFor example, assuming your data is entered from a regular ASCII keyboard,\nthe symbol with the hex code point 29DD might be used like so:\n⧝MY_TOKEN_TYPE"
}
},
"type": "object"
},
"GooglePrivacyDlpV2CustomInfoType": {
"description": "Custom information type provided by the user. Used to find domain-specific\nsensitive information configurable to the data in question.",
"id": "GooglePrivacyDlpV2CustomInfoType",
"properties": {
"detectionRules": {
"description": "Set of detection rules to apply to all findings of this CustomInfoType.\nRules are applied in order that they are specified. Not supported for the\n`surrogate_type` CustomInfoType.",
"items": {
"$ref": "GooglePrivacyDlpV2DetectionRule"
},
"type": "array"
},
"dictionary": {
"$ref": "GooglePrivacyDlpV2Dictionary",
"description": "A list of phrases to detect as a CustomInfoType."
},
"exclusionType": {
"description": "If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding\nto be returned. It still can be used for rules matching.",
"enum": [
"EXCLUSION_TYPE_UNSPECIFIED",
"EXCLUSION_TYPE_EXCLUDE"
],
"enumDescriptions": [
"A finding of this custom info type will not be excluded from results.",
"A finding of this custom info type will be excluded from final results,\nbut can still affect rule execution."
],
"type": "string"
},
"infoType": {
"$ref": "GooglePrivacyDlpV2InfoType",
"description": "CustomInfoType can either be a new infoType, or an extension of built-in\ninfoType, when the name matches one of existing infoTypes and that infoType\nis specified in `InspectContent.info_types` field. Specifying the latter\nadds findings to the one detected by the system. If built-in info type is\nnot specified in `InspectContent.info_types` list then the name is treated\nas a custom info type."
},
"likelihood": {
"description": "Likelihood to return for this CustomInfoType. This base value can be\naltered by a detection rule if the finding meets the criteria specified by\nthe rule. Defaults to `VERY_LIKELY` if not specified.",
"enum": [
"LIKELIHOOD_UNSPECIFIED",
"VERY_UNLIKELY",
"UNLIKELY",
"POSSIBLE",
"LIKELY",
"VERY_LIKELY"
],
"enumDescriptions": [
"Default value; same as POSSIBLE.",
"Few matching elements.",
"",
"Some matching elements.",
"",
"Many matching elements."
],
"type": "string"
},
"regex": {
"$ref": "GooglePrivacyDlpV2Regex",
"description": "Regular expression based CustomInfoType."
},
"storedType": {
"$ref": "GooglePrivacyDlpV2StoredType",
"description": "Load an existing `StoredInfoType` resource for use in\n`InspectDataSource`. Not currently supported in `InspectContent`."
},
"surrogateType": {
"$ref": "GooglePrivacyDlpV2SurrogateType",
"description": "Message for detecting output from deidentification transformations that\nsupport reversing."
}
},
"type": "object"
},
"GooglePrivacyDlpV2DatastoreKey": {
"description": "Record key for a finding in Cloud Datastore.",
"id": "GooglePrivacyDlpV2DatastoreKey",
"properties": {
"entityKey": {
"$ref": "GooglePrivacyDlpV2Key",
"description": "Datastore entity key."
}
},
"type": "object"
},
"GooglePrivacyDlpV2DatastoreOptions": {
"description": "Options defining a data set within Google Cloud Datastore.",
"id": "GooglePrivacyDlpV2DatastoreOptions",
"properties": {
"kind": {
"$ref": "GooglePrivacyDlpV2KindExpression",
"description": "The kind to process."
},
"partitionId": {
"$ref": "GooglePrivacyDlpV2PartitionId",
"description": "A partition ID identifies a grouping of entities. The grouping is always\nby project and namespace, however the namespace ID may be empty."
}
},
"type": "object"
},
"GooglePrivacyDlpV2DateShiftConfig": {
"description": "Shifts dates by random number of days, with option to be consistent for the\nsame context. See https://cloud.google.com/dlp/docs/concepts-date-shifting\nto learn more.",
"id": "GooglePrivacyDlpV2DateShiftConfig",
"properties": {
"context": {
"$ref": "GooglePrivacyDlpV2FieldId",
"description": "Points to the field that contains the context, for example, an entity id.\nIf set, must also set method. If set, shift will be consistent for the\ngiven context."
},
"cryptoKey": {
"$ref": "GooglePrivacyDlpV2CryptoKey",
"description": "Causes the shift to be computed based on this key and the context. This\nresults in the same shift for the same context and crypto_key."
},
"lowerBoundDays": {
"description": "For example, -5 means shift date to at most 5 days back in the past.\n[Required]",
"format": "int32",
"type": "integer"
},
"upperBoundDays": {
"description": "Range of shift in days. Actual shift will be selected at random within this\nrange (inclusive ends). Negative means shift to earlier in time. Must not\nbe more than 365250 days (1000 years) each direction.\n\nFor example, 3 means shift date to at most 3 days into the future.\n[Required]",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"GooglePrivacyDlpV2DateTime": {
"description": "Message for a date time object.\ne.g. 2018-01-01, 5th August.",
"id": "GooglePrivacyDlpV2DateTime",
"properties": {
"date": {
"$ref": "GoogleTypeDate",
"description": "One or more of the following must be set. All fields are optional, but\nwhen set must be valid date or time values."
},
"dayOfWeek": {
"enum": [
"DAY_OF_WEEK_UNSPECIFIED",
"MONDAY",
"TUESDAY",
"WEDNESDAY",
"THURSDAY",
"FRIDAY",
"SATURDAY",
"SUNDAY"
],
"enumDescriptions": [
"The unspecified day-of-week.",
"The day-of-week of Monday.",
"The day-of-week of Tuesday.",
"The day-of-week of Wednesday.",
"The day-of-week of Thursday.",
"The day-of-week of Friday.",
"The day-of-week of Saturday.",
"The day-of-week of Sunday."
],
"type": "string"
},
"time": {
"$ref": "GoogleTypeTimeOfDay"
},
"timeZone": {
"$ref": "GooglePrivacyDlpV2TimeZone"
}
},
"type": "object"
},
"GooglePrivacyDlpV2DeidentifyConfig": {
"description": "The configuration that controls how the data will change.",
"id": "GooglePrivacyDlpV2DeidentifyConfig",
"properties": {
"infoTypeTransformations": {
"$ref": "GooglePrivacyDlpV2InfoTypeTransformations",
"description": "Treat the dataset as free-form text and apply the same free text\ntransformation everywhere."
},
"recordTransformations": {
"$ref": "GooglePrivacyDlpV2RecordTransformations",
"description": "Treat the dataset as structured. Transformations can be applied to\nspecific locations within structured datasets, such as transforming\na column within a table."
}
},
"type": "object"
},
"GooglePrivacyDlpV2DeidentifyContentRequest": {
"description": "Request to de-identify a list of items.",
"id": "GooglePrivacyDlpV2DeidentifyContentRequest",
"properties": {
"deidentifyConfig": {
"$ref": "GooglePrivacyDlpV2DeidentifyConfig",
"description": "Configuration for the de-identification of the content item.\nItems specified here will override the template referenced by the\ndeidentify_template_name argument."
},
"deidentifyTemplateName": {
"description": "Optional template to use. Any configuration directly specified in\ndeidentify_config will override those set in the template. Singular fields\nthat are set in this request will replace their corresponding fields in the\ntemplate. Repeated fields are appended. Singular sub-messages and groups\nare recursively merged.",
"type": "string"
},
"inspectConfig": {
"$ref": "GooglePrivacyDlpV2InspectConfig",
"description": "Configuration for the inspector.\nItems specified here will override the template referenced by the\ninspect_template_name argument."
},
"inspectTemplateName": {
"description": "Optional template to use. Any configuration directly specified in\ninspect_config will override those set in the template. Singular fields\nthat are set in this request will replace their corresponding fields in the\ntemplate. Repeated fields are appended. Singular sub-messages and groups\nare recursively merged.",
"type": "string"
},
"item": {
"$ref": "GooglePrivacyDlpV2ContentItem",
"description": "The item to de-identify. Will be treated as text."
}
},
"type": "object"
},
"GooglePrivacyDlpV2DeidentifyContentResponse": {
"description": "Results of de-identifying a ContentItem.",
"id": "GooglePrivacyDlpV2DeidentifyContentResponse",
"properties": {
"item": {
"$ref": "GooglePrivacyDlpV2ContentItem",
"description": "The de-identified item."
},
"overview": {
"$ref": "GooglePrivacyDlpV2TransformationOverview",
"description": "An overview of the changes that were made on the `item`."
}
},
"type": "object"
},
"GooglePrivacyDlpV2DeidentifyTemplate": {
"description": "The DeidentifyTemplates contains instructions on how to deidentify content.\nSee https://cloud.google.com/dlp/docs/concepts-templates to learn more.",
"id": "GooglePrivacyDlpV2DeidentifyTemplate",
"properties": {
"createTime": {
"description": "The creation timestamp of a inspectTemplate, output only field.",
"format": "google-datetime",
"type": "string"
},
"deidentifyConfig": {
"$ref": "GooglePrivacyDlpV2DeidentifyConfig",
"description": "///////////// // The core content of the template // ///////////////"
},
"description": {
"description": "Short description (max 256 chars).",
"type": "string"
},
"displayName": {
"description": "Display name (max 256 chars).",
"type": "string"
},
"name": {
"description": "The template name. Output only.\n\nThe template will have one of the following formats:\n`projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` OR\n`organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID`",
"type": "string"
},
"updateTime": {
"description": "The last update timestamp of a inspectTemplate, output only field.",
"format": "google-datetime",
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2DeltaPresenceEstimationConfig": {
"description": "δ-presence metric, used to estimate how likely it is for an attacker to\nfigure out that one given individual appears in a de-identified dataset.\nSimilarly to the k-map metric, we cannot compute δ-presence exactly without\nknowing the attack dataset, so we use a statistical model instead.",
"id": "GooglePrivacyDlpV2DeltaPresenceEstimationConfig",
"properties": {
"auxiliaryTables": {
"description": "Several auxiliary tables can be used in the analysis. Each custom_tag\nused to tag a quasi-identifiers field must appear in exactly one\nfield of one auxiliary table.",
"items": {
"$ref": "GooglePrivacyDlpV2StatisticalTable"
},
"type": "array"
},
"quasiIds": {
"description": "Fields considered to be quasi-identifiers. No two fields can have the\nsame tag. [required]",
"items": {
"$ref": "GooglePrivacyDlpV2QuasiId"
},
"type": "array"
},
"regionCode": {
"description": "ISO 3166-1 alpha-2 region code to use in the statistical modeling.\nRequired if no column is tagged with a region-specific InfoType (like\nUS_ZIP_5) or a region code.",
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket": {
"description": "A DeltaPresenceEstimationHistogramBucket message with the following\nvalues:\n min_probability: 0.1\n max_probability: 0.2\n frequency: 42\nmeans that there are 42 records for which δ is in [0.1, 0.2). An\nimportant particular case is when min_probability = max_probability = 1:\nthen, every individual who shares this quasi-identifier combination is in\nthe dataset.",
"id": "GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket",
"properties": {
"bucketSize": {
"description": "Number of records within these probability bounds.",
"format": "int64",
"type": "string"
},
"bucketValueCount": {
"description": "Total number of distinct quasi-identifier tuple values in this bucket.",
"format": "int64",
"type": "string"
},
"bucketValues": {
"description": "Sample of quasi-identifier tuple values in this bucket. The total\nnumber of classes returned per bucket is capped at 20.",
"items": {
"$ref": "GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues"
},
"type": "array"
},
"maxProbability": {
"description": "Always greater than or equal to min_probability.",
"format": "double",
"type": "number"
},
"minProbability": {
"description": "Between 0 and 1.",
"format": "double",
"type": "number"
}
},
"type": "object"
},
"GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues": {
"description": "A tuple of values for the quasi-identifier columns.",
"id": "GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues",
"properties": {
"estimatedProbability": {
"description": "The estimated probability that a given individual sharing these\nquasi-identifier values is in the dataset. This value, typically called\nδ, is the ratio between the number of records in the dataset with these\nquasi-identifier values, and the total number of individuals (inside\n*and* outside the dataset) with these quasi-identifier values.\nFor example, if there are 15 individuals in the dataset who share the\nsame quasi-identifier values, and an estimated 100 people in the entire\npopulation with these values, then δ is 0.15.",
"format": "double",
"type": "number"
},
"quasiIdsValues": {
"description": "The quasi-identifier values.",
"items": {
"$ref": "GooglePrivacyDlpV2Value"
},
"type": "array"
}
},
"type": "object"
},
"GooglePrivacyDlpV2DeltaPresenceEstimationResult": {
"description": "Result of the δ-presence computation. Note that these results are an\nestimation, not exact values.",
"id": "GooglePrivacyDlpV2DeltaPresenceEstimationResult",
"properties": {
"deltaPresenceEstimationHistogram": {
"description": "The intervals [min_probability, max_probability) do not overlap. If a\nvalue doesn't correspond to any such interval, the associated frequency\nis zero. For example, the following records:\n {min_probability: 0, max_probability: 0.1, frequency: 17}\n {min_probability: 0.2, max_probability: 0.3, frequency: 42}\n {min_probability: 0.3, max_probability: 0.4, frequency: 99}\nmean that there are no record with an estimated probability in [0.1, 0.2)\nnor larger or equal to 0.4.",
"items": {
"$ref": "GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket"
},
"type": "array"
}
},
"type": "object"
},
"GooglePrivacyDlpV2DetectionRule": {
"description": "Rule for modifying a CustomInfoType to alter behavior under certain\ncircumstances, depending on the specific details of the rule. Not supported\nfor the `surrogate_type` custom info type.",
"id": "GooglePrivacyDlpV2DetectionRule",
"properties": {
"hotwordRule": {
"$ref": "GooglePrivacyDlpV2HotwordRule",
"description": "Hotword-based detection rule."
}
},
"type": "object"
},
"GooglePrivacyDlpV2Dictionary": {
"description": "Custom information type based on a dictionary of words or phrases. This can\nbe used to match sensitive information specific to the data, such as a list\nof employee IDs or job titles.\n\nDictionary words are case-insensitive and all characters other than letters\nand digits in the unicode [Basic Multilingual\nPlane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)\nwill be replaced with whitespace when scanning for matches, so the\ndictionary phrase \"Sam Johnson\" will match all three phrases \"sam johnson\",\n\"Sam, Johnson\", and \"Sam (Johnson)\". Additionally, the characters\nsurrounding any match must be of a different type than the adjacent\ncharacters within the word, so letters must be next to non-letters and\ndigits next to non-digits. For example, the dictionary word \"jen\" will\nmatch the first three letters of the text \"jen123\" but will return no\nmatches for \"jennifer\".\n\nDictionary words containing a large number of characters that are not\nletters or digits may result in unexpected findings because such characters\nare treated as whitespace. The\n[limits](https://cloud.google.com/dlp/limits) page contains details about\nthe size limits of dictionaries. For dictionaries that do not fit within\nthese constraints, consider using `LargeCustomDictionaryConfig` in the\n`StoredInfoType` API.",
"id": "GooglePrivacyDlpV2Dictionary",
"properties": {
"cloudStoragePath": {
"$ref": "GooglePrivacyDlpV2CloudStoragePath",
"description": "Newline-delimited file of words in Cloud Storage. Only a single file\nis accepted."
},
"wordList": {
"$ref": "GooglePrivacyDlpV2WordList",
"description": "List of words or phrases to search for."
}
},
"type": "object"
},
"GooglePrivacyDlpV2DlpJob": {
"description": "Combines all of the information about a DLP job.",
"id": "GooglePrivacyDlpV2DlpJob",
"properties": {
"createTime": {
"description": "Time when the job was created.",
"format": "google-datetime",
"type": "string"
},
"endTime": {
"description": "Time when the job finished.",
"format": "google-datetime",
"type": "string"
},
"errors": {
"description": "A stream of errors encountered running the job.",
"items": {
"$ref": "GooglePrivacyDlpV2Error"
},
"type": "array"
},
"inspectDetails": {
"$ref": "GooglePrivacyDlpV2InspectDataSourceDetails",
"description": "Results from inspecting a data source."
},
"jobTriggerName": {
"description": "If created by a job trigger, the resource name of the trigger that\ninstantiated the job.",
"type": "string"
},
"name": {
"description": "The server-assigned name.",
"type": "string"
},
"riskDetails": {
"$ref": "GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails",
"description": "Results from analyzing risk of a data source."
},
"startTime": {
"description": "Time when the job started.",
"format": "google-datetime",
"type": "string"
},
"state": {
"description": "State of a job.",
"enum": [
"JOB_STATE_UNSPECIFIED",
"PENDING",
"RUNNING",
"DONE",
"CANCELED",
"FAILED"
],
"enumDescriptions": [
"",
"The job has not yet started.",
"The job is currently running.",
"The job is no longer running.",
"The job was canceled before it could complete.",
"The job had an error and did not complete."
],
"type": "string"
},
"type": {
"description": "The type of job.",
"enum": [
"DLP_JOB_TYPE_UNSPECIFIED",
"INSPECT_JOB",
"RISK_ANALYSIS_JOB"
],
"enumDescriptions": [
"",
"The job inspected Google Cloud for sensitive data.",
"The job executed a Risk Analysis computation."
],
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2DocumentLocation": {
"description": "Location of a finding within a document.",
"id": "GooglePrivacyDlpV2DocumentLocation",
"properties": {
"fileOffset": {
"description": "Offset of the line, from the beginning of the file, where the finding\nis located.",
"format": "int64",
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2EntityId": {
"description": "An entity in a dataset is a field or set of fields that correspond to a\nsingle person. For example, in medical records the `EntityId` might be a\npatient identifier, or for financial records it might be an account\nidentifier. This message is used when generalizations or analysis must take\ninto account that multiple rows correspond to the same entity.",
"id": "GooglePrivacyDlpV2EntityId",
"properties": {
"field": {
"$ref": "GooglePrivacyDlpV2FieldId",
"description": "Composite key indicating which field contains the entity identifier."
}
},
"type": "object"
},
"GooglePrivacyDlpV2Error": {
"description": "Details information about an error encountered during job execution or\nthe results of an unsuccessful activation of the JobTrigger.\nOutput only field.",
"id": "GooglePrivacyDlpV2Error",
"properties": {
"details": {
"$ref": "GoogleRpcStatus"
},
"timestamps": {
"description": "The times the error occurred.",
"items": {
"format": "google-datetime",
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"GooglePrivacyDlpV2ExcludeInfoTypes": {
"description": "List of exclude infoTypes.",
"id": "GooglePrivacyDlpV2ExcludeInfoTypes",
"properties": {
"infoTypes": {
"description": "InfoType list in ExclusionRule rule drops a finding when it overlaps or\ncontained within with a finding of an infoType from this list. For\nexample, for `InspectionRuleSet.info_types` containing \"PHONE_NUMBER\"` and\n`exclusion_rule` containing `exclude_info_types.info_types` with\n\"EMAIL_ADDRESS\" the phone number findings are dropped if they overlap\nwith EMAIL_ADDRESS finding.\nThat leads to \"555-222-2222@example.org\" to generate only a single\nfinding, namely email address.",
"items": {
"$ref": "GooglePrivacyDlpV2InfoType"
},
"type": "array"
}
},
"type": "object"
},
"GooglePrivacyDlpV2ExclusionRule": {
"description": "The rule that specifies conditions when findings of infoTypes specified in\n`InspectionRuleSet` are removed from results.",
"id": "GooglePrivacyDlpV2ExclusionRule",
"properties": {
"dictionary": {
"$ref": "GooglePrivacyDlpV2Dictionary",
"description": "Dictionary which defines the rule."
},
"excludeInfoTypes": {
"$ref": "GooglePrivacyDlpV2ExcludeInfoTypes",
"description": "Set of infoTypes for which findings would affect this rule."
},
"matchingType": {
"description": "How the rule is applied, see MatchingType documentation for details.",
"enum": [
"MATCHING_TYPE_UNSPECIFIED",
"MATCHING_TYPE_FULL_MATCH",
"MATCHING_TYPE_PARTIAL_MATCH",
"MATCHING_TYPE_INVERSE_MATCH"
],
"enumDescriptions": [
"Invalid.",
"Full match.\n\n- Dictionary: join of Dictionary results matched complete finding quote\n- Regex: all regex matches fill a finding quote start to end\n- Exclude info type: completely inside affecting info types findings",
"Partial match.\n\n- Dictionary: at least one of the tokens in the finding matches\n- Regex: substring of the finding matches\n- Exclude info type: intersects with affecting info types findings",
"Inverse match.\n\n- Dictionary: no tokens in the finding match the dictionary\n- Regex: finding doesn't match the regex\n- Exclude info type: no intersection with affecting info types findings"
],
"type": "string"
},
"regex": {
"$ref": "GooglePrivacyDlpV2Regex",
"description": "Regular expression which defines the rule."
}
},
"type": "object"
},
"GooglePrivacyDlpV2Expressions": {
"description": "An expression, consisting or an operator and conditions.",
"id": "GooglePrivacyDlpV2Expressions",
"properties": {
"conditions": {
"$ref": "GooglePrivacyDlpV2Conditions"
},
"logicalOperator": {
"description": "The operator to apply to the result of conditions. Default and currently\nonly supported value is `AND`.",
"enum": [
"LOGICAL_OPERATOR_UNSPECIFIED",
"AND"
],
"enumDescriptions": [
"",
""
],
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2FieldId": {
"description": "General identifier of a data field in a storage service.",
"id": "GooglePrivacyDlpV2FieldId",
"properties": {
"name": {
"description": "Name describing the field.",
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2FieldTransformation": {
"description": "The transformation to apply to the field.",
"id": "GooglePrivacyDlpV2FieldTransformation",
"properties": {
"condition": {
"$ref": "GooglePrivacyDlpV2RecordCondition",
"description": "Only apply the transformation if the condition evaluates to true for the\ngiven `RecordCondition`. The conditions are allowed to reference fields\nthat are not used in the actual transformation. [optional]\n\nExample Use Cases:\n\n- Apply a different bucket transformation to an age column if the zip code\ncolumn for the same record is within a specific range.\n- Redact a field if the date of birth field is greater than 85."
},
"fields": {
"description": "Input field(s) to apply the transformation to. [required]",
"items": {
"$ref": "GooglePrivacyDlpV2FieldId"
},
"type": "array"
},
"infoTypeTransformations": {
"$ref": "GooglePrivacyDlpV2InfoTypeTransformations",
"description": "Treat the contents of the field as free text, and selectively\ntransform content that matches an `InfoType`."
},
"primitiveTransformation": {
"$ref": "GooglePrivacyDlpV2PrimitiveTransformation",
"description": "Apply the transformation to the entire field."
}
},
"type": "object"
},
"GooglePrivacyDlpV2FileSet": {
"description": "Set of files to scan.",
"id": "GooglePrivacyDlpV2FileSet",
"properties": {
"regexFileSet": {
"$ref": "GooglePrivacyDlpV2CloudStorageRegexFileSet",
"description": "The regex-filtered set of files to scan. Exactly one of `url` or\n`regex_file_set` must be set."
},
"url": {
"description": "The Cloud Storage url of the file(s) to scan, in the format\n`gs://\u003cbucket\u003e/\u003cpath\u003e`. Trailing wildcard in the path is allowed. Exactly\none of `url` or `regex_file_set` must be set.",
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2Finding": {
"description": "Represents a piece of potentially sensitive content.",
"id": "GooglePrivacyDlpV2Finding",
"properties": {
"createTime": {
"description": "Timestamp when finding was detected.",
"format": "google-datetime",
"type": "string"
},
"infoType": {
"$ref": "GooglePrivacyDlpV2InfoType",
"description": "The type of content that might have been found.\nProvided if `excluded_types` is false."
},
"likelihood": {
"description": "Confidence of how likely it is that the `info_type` is correct.",
"enum": [
"LIKELIHOOD_UNSPECIFIED",
"VERY_UNLIKELY",
"UNLIKELY",
"POSSIBLE",
"LIKELY",
"VERY_LIKELY"
],
"enumDescriptions": [
"Default value; same as POSSIBLE.",
"Few matching elements.",
"",
"Some matching elements.",
"",
"Many matching elements."
],
"type": "string"
},
"location": {
"$ref": "GooglePrivacyDlpV2Location",
"description": "Where the content was found."
},
"quote": {
"description": "The content that was found. Even if the content is not textual, it\nmay be converted to a textual representation here.\nProvided if `include_quote` is true and the finding is\nless than or equal to 4096 bytes long. If the finding exceeds 4096 bytes\nin length, the quote may be omitted.",
"type": "string"
},
"quoteInfo": {
"$ref": "GooglePrivacyDlpV2QuoteInfo",
"description": "Contains data parsed from quotes. Only populated if include_quote was set\nto true and a supported infoType was requested. Currently supported\ninfoTypes: DATE, DATE_OF_BIRTH and TIME."
}
},
"type": "object"
},
"GooglePrivacyDlpV2FindingLimits": {
"id": "GooglePrivacyDlpV2FindingLimits",
"properties": {
"maxFindingsPerInfoType": {
"description": "Configuration of findings limit given for specified infoTypes.",
"items": {
"$ref": "GooglePrivacyDlpV2InfoTypeLimit"
},
"type": "array"
},
"maxFindingsPerItem": {
"description": "Max number of findings that will be returned for each item scanned.\nWhen set within `InspectDataSourceRequest`,\nthe maximum returned is 1000 regardless if this is set higher.\nWhen set within `InspectContentRequest`, this field is ignored.",
"format": "int32",
"type": "integer"
},
"maxFindingsPerRequest": {
"description": "Max number of findings that will be returned per request/job.\nWhen set within `InspectContentRequest`, the maximum returned is 1000\nregardless if this is set higher.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"GooglePrivacyDlpV2FixedSizeBucketingConfig": {
"description": "Buckets values based on fixed size ranges. The\nBucketing transformation can provide all of this functionality,\nbut requires more configuration. This message is provided as a convenience to\nthe user for simple bucketing strategies.\n\nThe transformed value will be a hyphenated string of\n\u003clower_bound\u003e-\u003cupper_bound\u003e, i.e if lower_bound = 10 and upper_bound = 20\nall values that are within this bucket will be replaced with \"10-20\".\n\nThis can be used on data of type: double, long.\n\nIf the bound Value type differs from the type of data\nbeing transformed, we will first attempt converting the type of the data to\nbe transformed to match the type of the bound before comparing.\n\nSee https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.",
"id": "GooglePrivacyDlpV2FixedSizeBucketingConfig",
"properties": {
"bucketSize": {
"description": "Size of each bucket (except for minimum and maximum buckets). So if\n`lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the\nfollowing buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,\n60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. [Required].",
"format": "double",
"type": "number"
},
"lowerBound": {
"$ref": "GooglePrivacyDlpV2Value",
"description": "Lower bound value of buckets. All values less than `lower_bound` are\ngrouped together into a single bucket; for example if `lower_bound` = 10,\nthen all values less than 10 are replaced with the value “-10”. [Required]."
},
"upperBound": {
"$ref": "GooglePrivacyDlpV2Value",
"description": "Upper bound value of buckets. All values greater than upper_bound are\ngrouped together into a single bucket; for example if `upper_bound` = 89,\nthen all values greater than 89 are replaced with the value “89+”.\n[Required]."
}
},
"type": "object"
},
"GooglePrivacyDlpV2HotwordRule": {
"description": "The rule that adjusts the likelihood of findings within a certain\nproximity of hotwords.",
"id": "GooglePrivacyDlpV2HotwordRule",
"properties": {
"hotwordRegex": {
"$ref": "GooglePrivacyDlpV2Regex",
"description": "Regular expression pattern defining what qualifies as a hotword."
},
"likelihoodAdjustment": {
"$ref": "GooglePrivacyDlpV2LikelihoodAdjustment",
"description": "Likelihood adjustment to apply to all matching findings."
},
"proximity": {
"$ref": "GooglePrivacyDlpV2Proximity",
"description": "Proximity of the finding within which the entire hotword must reside.\nThe total length of the window cannot exceed 1000 characters. Note that\nthe finding itself will be included in the window, so that hotwords may\nbe used to match substrings of the finding itself. For example, the\ncertainty of a phone number regex \"\\(\\d{3}\\) \\d{3}-\\d{4}\" could be\nadjusted upwards if the area code is known to be the local area code of\na company office using the hotword regex \"\\(xxx\\)\", where \"xxx\"\nis the area code in question."
}
},
"type": "object"
},
"GooglePrivacyDlpV2ImageLocation": {
"description": "Location of the finding within an image.",
"id": "GooglePrivacyDlpV2ImageLocation",
"properties": {
"boundingBoxes": {
"description": "Bounding boxes locating the pixels within the image containing the finding.",
"items": {
"$ref": "GooglePrivacyDlpV2BoundingBox"
},
"type": "array"
}
},
"type": "object"
},
"GooglePrivacyDlpV2ImageRedactionConfig": {
"description": "Configuration for determining how redaction of images should occur.",
"id": "GooglePrivacyDlpV2ImageRedactionConfig",
"properties": {
"infoType": {
"$ref": "GooglePrivacyDlpV2InfoType",
"description": "Only one per info_type should be provided per request. If not\nspecified, and redact_all_text is false, the DLP API will redact all\ntext that it matches against all info_types that are found, but not\nspecified in another ImageRedactionConfig."
},
"redactAllText": {
"description": "If true, all text found in the image, regardless whether it matches an\ninfo_type, is redacted. Only one should be provided.",
"type": "boolean"
},
"redactionColor": {
"$ref": "GooglePrivacyDlpV2Color",
"description": "The color to use when redacting content from an image. If not specified,\nthe default is black."
}
},
"type": "object"
},
"GooglePrivacyDlpV2InfoType": {
"description": "Type of information detected by the API.",
"id": "GooglePrivacyDlpV2InfoType",
"properties": {
"name": {
"description": "Name of the information type. Either a name of your choosing when\ncreating a CustomInfoType, or one of the names listed\nat https://cloud.google.com/dlp/docs/infotypes-reference when specifying\na built-in type. InfoType names should conform to the pattern\n[a-zA-Z0-9_]{1,64}.",
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2InfoTypeDescription": {
"description": "InfoType description.",
"id": "GooglePrivacyDlpV2InfoTypeDescription",
"properties": {
"displayName": {
"description": "Human readable form of the infoType name.",
"type": "string"
},
"name": {
"description": "Internal name of the infoType.",
"type": "string"
},
"supportedBy": {
"description": "Which parts of the API supports this InfoType.",
"enumDescriptions": [
"",
"Supported by the inspect operations.",
"Supported by the risk analysis operations."
],
"items": {
"enum": [
"ENUM_TYPE_UNSPECIFIED",
"INSPECT",
"RISK_ANALYSIS"
],
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"GooglePrivacyDlpV2InfoTypeLimit": {
"description": "Max findings configuration per infoType, per content item or long\nrunning DlpJob.",
"id": "GooglePrivacyDlpV2InfoTypeLimit",
"properties": {
"infoType": {
"$ref": "GooglePrivacyDlpV2InfoType",
"description": "Type of information the findings limit applies to. Only one limit per\ninfo_type should be provided. If InfoTypeLimit does not have an\ninfo_type, the DLP API applies the limit against all info_types that\nare found but not specified in another InfoTypeLimit."
},
"maxFindings": {
"description": "Max findings limit for the given infoType.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"GooglePrivacyDlpV2InfoTypeStats": {
"description": "Statistics regarding a specific InfoType.",
"id": "GooglePrivacyDlpV2InfoTypeStats",
"properties": {
"count": {
"description": "Number of findings for this infoType.",
"format": "int64",
"type": "string"
},
"infoType": {
"$ref": "GooglePrivacyDlpV2InfoType",
"description": "The type of finding this stat is for."
}
},
"type": "object"
},
"GooglePrivacyDlpV2InfoTypeTransformation": {
"description": "A transformation to apply to text that is identified as a specific\ninfo_type.",
"id": "GooglePrivacyDlpV2InfoTypeTransformation",
"properties": {
"infoTypes": {
"description": "InfoTypes to apply the transformation to. An empty list will cause\nthis transformation to apply to all findings that correspond to\ninfoTypes that were requested in `InspectConfig`.",
"items": {
"$ref": "GooglePrivacyDlpV2InfoType"
},
"type": "array"
},
"primitiveTransformation": {
"$ref": "GooglePrivacyDlpV2PrimitiveTransformation",
"description": "Primitive transformation to apply to the infoType. [required]"
}
},
"type": "object"
},
"GooglePrivacyDlpV2InfoTypeTransformations": {
"description": "A type of transformation that will scan unstructured text and\napply various `PrimitiveTransformation`s to each finding, where the\ntransformation is applied to only values that were identified as a specific\ninfo_type.",
"id": "GooglePrivacyDlpV2InfoTypeTransformations",
"properties": {
"transformations": {
"description": "Transformation for each infoType. Cannot specify more than one\nfor a given infoType. [required]",
"items": {
"$ref": "GooglePrivacyDlpV2InfoTypeTransformation"
},
"type": "array"
}
},
"type": "object"
},
"GooglePrivacyDlpV2InspectConfig": {
"description": "Configuration description of the scanning process.\nWhen used with redactContent only info_types and min_likelihood are currently\nused.",
"id": "GooglePrivacyDlpV2InspectConfig",
"properties": {
"contentOptions": {
"description": "List of options defining data content to scan.\nIf empty, text, images, and other content will be included.",
"enumDescriptions": [
"Includes entire content of a file or a data stream.",
"Text content within the data, excluding any metadata.",
"Images found in the data."
],
"items": {
"enum": [
"CONTENT_UNSPECIFIED",
"CONTENT_TEXT",
"CONTENT_IMAGE"
],
"type": "string"
},
"type": "array"
},
"customInfoTypes": {
"description": "CustomInfoTypes provided by the user. See\nhttps://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.",
"items": {
"$ref": "GooglePrivacyDlpV2CustomInfoType"
},
"type": "array"
},
"excludeInfoTypes": {
"description": "When true, excludes type information of the findings.",
"type": "boolean"
},
"includeQuote": {
"description": "When true, a contextual quote from the data that triggered a finding is\nincluded in the response; see Finding.quote.",
"type": "boolean"
},
"infoTypes": {
"description": "Restricts what info_types to look for. The values must correspond to\nInfoType values returned by ListInfoTypes or listed at\nhttps://cloud.google.com/dlp/docs/infotypes-reference.\n\nWhen no InfoTypes or CustomInfoTypes are specified in a request, the\nsystem may automatically choose what detectors to run. By default this may\nbe all types, but may change over time as detectors are updated.\n\nThe special InfoType name \"ALL_BASIC\" can be used to trigger all detectors,\nbut may change over time as new InfoTypes are added. If you need precise\ncontrol and predictability as to what detectors are run you should specify\nspecific InfoTypes listed in the reference.",
"items": {
"$ref": "GooglePrivacyDlpV2InfoType"
},
"type": "array"
},
"limits": {
"$ref": "GooglePrivacyDlpV2FindingLimits"
},
"minLikelihood": {
"description": "Only returns findings equal or above this threshold. The default is\nPOSSIBLE.\nSee https://cloud.google.com/dlp/docs/likelihood to learn more.",
"enum": [
"LIKELIHOOD_UNSPECIFIED",
"VERY_UNLIKELY",
"UNLIKELY",
"POSSIBLE",
"LIKELY",
"VERY_LIKELY"
],
"enumDescriptions": [
"Default value; same as POSSIBLE.",
"Few matching elements.",
"",
"Some matching elements.",
"",
"Many matching elements."
],
"type": "string"
},
"ruleSet": {
"description": "Set of rules to apply to the findings for this InspectConfig.\nExclusion rules, contained in the set are executed in the end, other\nrules are executed in the order they are specified for each info type.",
"items": {
"$ref": "GooglePrivacyDlpV2InspectionRuleSet"
},
"type": "array"
}
},
"type": "object"
},
"GooglePrivacyDlpV2InspectContentRequest": {
"description": "Request to search for potentially sensitive info in a ContentItem.",
"id": "GooglePrivacyDlpV2InspectContentRequest",
"properties": {
"inspectConfig": {
"$ref": "GooglePrivacyDlpV2InspectConfig",
"description": "Configuration for the inspector. What specified here will override\nthe template referenced by the inspect_template_name argument."
},
"inspectTemplateName": {
"description": "Optional template to use. Any configuration directly specified in\ninspect_config will override those set in the template. Singular fields\nthat are set in this request will replace their corresponding fields in the\ntemplate. Repeated fields are appended. Singular sub-messages and groups\nare recursively merged.",
"type": "string"
},
"item": {
"$ref": "GooglePrivacyDlpV2ContentItem",
"description": "The item to inspect."
}
},
"type": "object"
},
"GooglePrivacyDlpV2InspectContentResponse": {
"description": "Results of inspecting an item.",
"id": "GooglePrivacyDlpV2InspectContentResponse",
"properties": {
"result": {
"$ref": "GooglePrivacyDlpV2InspectResult",
"description": "The findings."
}
},
"type": "object"
},
"GooglePrivacyDlpV2InspectDataSourceDetails": {
"description": "The results of an inspect DataSource job.",
"id": "GooglePrivacyDlpV2InspectDataSourceDetails",
"properties": {
"requestedOptions": {
"$ref": "GooglePrivacyDlpV2RequestedOptions",
"description": "The configuration used for this job."
},
"result": {
"$ref": "GooglePrivacyDlpV2Result",
"description": "A summary of the outcome of this inspect job."
}
},
"type": "object"
},
"GooglePrivacyDlpV2InspectJobConfig": {
"id": "GooglePrivacyDlpV2InspectJobConfig",
"properties": {
"actions": {
"description": "Actions to execute at the completion of the job. Are executed in the order\nprovided.",
"items": {
"$ref": "GooglePrivacyDlpV2Action"
},
"type": "array"
},
"inspectConfig": {
"$ref": "GooglePrivacyDlpV2InspectConfig",
"description": "How and what to scan for."
},
"inspectTemplateName": {
"description": "If provided, will be used as the default for all values in InspectConfig.\n`inspect_config` will be merged into the values persisted as part of the\ntemplate.",
"type": "string"
},
"storageConfig": {
"$ref": "GooglePrivacyDlpV2StorageConfig",
"description": "The data to scan."
}
},
"type": "object"
},
"GooglePrivacyDlpV2InspectResult": {
"description": "All the findings for a single scanned item.",
"id": "GooglePrivacyDlpV2InspectResult",
"properties": {
"findings": {
"description": "List of findings for an item.",
"items": {
"$ref": "GooglePrivacyDlpV2Finding"
},
"type": "array"
},
"findingsTruncated": {
"description": "If true, then this item might have more findings than were returned,\nand the findings returned are an arbitrary subset of all findings.\nThe findings list might be truncated because the input items were too\nlarge, or because the server reached the maximum amount of resources\nallowed for a single API call. For best results, divide the input into\nsmaller batches.",
"type": "boolean"
}
},
"type": "object"
},
"GooglePrivacyDlpV2InspectTemplate": {
"description": "The inspectTemplate contains a configuration (set of types of sensitive data\nto be detected) to be used anywhere you otherwise would normally specify\nInspectConfig. See https://cloud.google.com/dlp/docs/concepts-templates\nto learn more.",
"id": "GooglePrivacyDlpV2InspectTemplate",
"properties": {
"createTime": {
"description": "The creation timestamp of a inspectTemplate, output only field.",
"format": "google-datetime",
"type": "string"
},
"description": {
"description": "Short description (max 256 chars).",
"type": "string"
},
"displayName": {
"description": "Display name (max 256 chars).",
"type": "string"
},
"inspectConfig": {
"$ref": "GooglePrivacyDlpV2InspectConfig",
"description": "The core content of the template. Configuration of the scanning process."
},
"name": {
"description": "The template name. Output only.\n\nThe template will have one of the following formats:\n`projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR\n`organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`",
"type": "string"
},
"updateTime": {
"description": "The last update timestamp of a inspectTemplate, output only field.",
"format": "google-datetime",
"type": "string"
}
},
"type": "object"
},
"GooglePrivacyDlpV2InspectionRule": {
"description": "A single inspection rule to be applied to infoTypes, specified in\n`InspectionRuleSet`.",
"id": "GooglePrivacyDlpV2InspectionRule",
"properties": {
"exclusionRule": {
"$ref": "GooglePrivacyDlpV2ExclusionRule",
"description": "Exclusion rule."
},
"hotwordRule": {
"$ref": "GooglePrivacyDlpV2HotwordRule",
"description": "Hotword-based detection rule."
}
},
"type": "object"
},
"GooglePrivacyDlpV2InspectionRuleSet": {
"description": "Rule set for modifying a set of infoTypes to alter behavior under certain\ncircumstances, depending on the specific details of the rules within the set.",
"id": "GooglePrivacyDlpV2InspectionRuleSet",
"properties": {
"infoTypes": {
"description": "List of infoTypes this rule set is applied to.",
"items": {
"$ref": "GooglePrivacyDlpV2InfoType"
},
"type": "array"
},
"rules": {
"description": "Set of rules to be applied to infoTypes. The rules are applied in order.",
"items": {
"$ref": "GooglePrivacyDlpV2InspectionRule"
},
"type": "array"
}
},
"type": "object"
},
"GooglePrivacyDlpV2JobTrigger": {
"description": "Contains a configuration to make dlp api calls on a repeating basis.\nSee https://cloud.google.com/dlp/docs/concepts-job-triggers to learn more.",
"id": "GooglePrivacyDlpV2JobTrigger",
"properties": {
"createTime": {
"description": "The creation timestamp of a triggeredJob, output only field.",
"format": "google-datetime",
"type": "string"
},
"description": {
"description": "User provided description (max 256 chars)",
"type": "string"
},
"displayName": {
"description": "Display name (max 100 chars)",
"type": "string"
},
"errors": {
"description": "A stream of errors encountered when the trigger was activated. Repeated\nerrors may result in the JobTrigger automatically being paused.\nWill return the last 100 errors. Whenever the JobTrigger is modified\nthis list will be cleared. Output only field.",
"items": {
"$ref": "GooglePrivacyDlpV2Error"
},
"type": "array"
},