{ "title": "Sensitive Data Protection (DLP)", "version": "v2", "revision": "20240428", "ownerDomain": "google.com", "id": "dlp:v2", "auth": { "oauth2": { "scopes": { "https://www.googleapis.com/auth/cloud-platform": { "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." } } } }, "documentationLink": "https://cloud.google.com/sensitive-data-protection/docs/", "ownerName": "Google", "basePath": "", "fullyEncodeReservedExpansion": true, "resources": { "organizations": { "resources": { "storedInfoTypes": { "methods": { "create": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "parent": { "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "required": true, "type": "string", "location": "path", "pattern": "^organizations/[^/]+$" } }, "id": "dlp.organizations.storedInfoTypes.create", "httpMethod": "POST", "flatPath": "v2/organizations/{organizationsId}/storedInfoTypes", "response": { "$ref": "GooglePrivacyDlpV2StoredInfoType" }, "path": "v2/{+parent}/storedInfoTypes", "parameterOrder": [ "parent" ], "request": { "$ref": "GooglePrivacyDlpV2CreateStoredInfoTypeRequest" }, "description": "Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more." }, "delete": { "flatPath": "v2/organizations/{organizationsId}/storedInfoTypes/{storedInfoTypesId}", "parameters": { "name": { "description": "Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342.", "required": true, "pattern": "^organizations/[^/]+/storedInfoTypes/[^/]+$", "location": "path", "type": "string" } }, "description": "Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "DELETE", "parameterOrder": [ "name" ], "id": "dlp.organizations.storedInfoTypes.delete", "path": "v2/{+name}", "response": { "$ref": "GoogleProtobufEmpty" } }, "list": { "path": "v2/{+parent}/storedInfoTypes", "parameterOrder": [ "parent" ], "id": "dlp.organizations.storedInfoTypes.list", "httpMethod": "GET", "response": { "$ref": "GooglePrivacyDlpV2ListStoredInfoTypesResponse" }, "flatPath": "v2/organizations/{organizationsId}/storedInfoTypes", "parameters": { "pageSize": { "type": "integer", "format": "int32", "location": "query", "description": "Size of the page. This value can be limited by the server. If zero server returns a page of max size 100." }, "locationId": { "description": "Deprecated. This field has no effect.", "type": "string", "location": "query" }, "orderBy": { "location": "query", "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.", "type": "string" }, "pageToken": { "description": "Page token to continue retrieval. Comes from the previous call to `ListStoredInfoTypes`.", "location": "query", "type": "string" }, "parent": { "location": "path", "required": true, "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "type": "string", "pattern": "^organizations/[^/]+$" } }, "description": "Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "patch": { "description": "Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", "request": { "$ref": "GooglePrivacyDlpV2UpdateStoredInfoTypeRequest" }, "flatPath": "v2/organizations/{organizationsId}/storedInfoTypes/{storedInfoTypesId}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "PATCH", "id": "dlp.organizations.storedInfoTypes.patch", "parameters": { "name": { "location": "path", "description": "Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342.", "type": "string", "required": true, "pattern": "^organizations/[^/]+/storedInfoTypes/[^/]+$" } }, "path": "v2/{+name}", "response": { "$ref": "GooglePrivacyDlpV2StoredInfoType" }, "parameterOrder": [ "name" ] }, "get": { "httpMethod": "GET", "path": "v2/{+name}", "id": "dlp.organizations.storedInfoTypes.get", "response": { "$ref": "GooglePrivacyDlpV2StoredInfoType" }, "parameters": { "name": { "description": "Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342.", "pattern": "^organizations/[^/]+/storedInfoTypes/[^/]+$", "location": "path", "type": "string", "required": true } }, "description": "Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v2/organizations/{organizationsId}/storedInfoTypes/{storedInfoTypesId}", "parameterOrder": [ "name" ] } } }, "deidentifyTemplates": { "methods": { "get": { "parameterOrder": [ "name" ], "path": "v2/{+name}", "httpMethod": "GET", "description": "Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", "flatPath": "v2/organizations/{organizationsId}/deidentifyTemplates/{deidentifyTemplatesId}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GooglePrivacyDlpV2DeidentifyTemplate" }, "parameters": { "name": { "type": "string", "required": true, "description": "Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342.", "pattern": "^organizations/[^/]+/deidentifyTemplates/[^/]+$", "location": "path" } }, "id": "dlp.organizations.deidentifyTemplates.get" }, "delete": { "parameters": { "name": { "required": true, "location": "path", "type": "string", "pattern": "^organizations/[^/]+/deidentifyTemplates/[^/]+$", "description": "Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342." } }, "httpMethod": "DELETE", "id": "dlp.organizations.deidentifyTemplates.delete", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", "flatPath": "v2/organizations/{organizationsId}/deidentifyTemplates/{deidentifyTemplatesId}", "parameterOrder": [ "name" ], "response": { "$ref": "GoogleProtobufEmpty" }, "path": "v2/{+name}" }, "patch": { "parameterOrder": [ "name" ], "request": { "$ref": "GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest" }, "parameters": { "name": { "type": "string", "description": "Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342.", "required": true, "location": "path", "pattern": "^organizations/[^/]+/deidentifyTemplates/[^/]+$" } }, "path": "v2/{+name}", "flatPath": "v2/organizations/{organizationsId}/deidentifyTemplates/{deidentifyTemplatesId}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GooglePrivacyDlpV2DeidentifyTemplate" }, "httpMethod": "PATCH", "id": "dlp.organizations.deidentifyTemplates.patch", "description": "Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more." }, "create": { "description": "Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", "parameterOrder": [ "parent" ], "path": "v2/{+parent}/deidentifyTemplates", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v2/organizations/{organizationsId}/deidentifyTemplates", "parameters": { "parent": { "required": true, "pattern": "^organizations/[^/]+$", "type": "string", "location": "path", "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3" } }, "request": { "$ref": "GooglePrivacyDlpV2CreateDeidentifyTemplateRequest" }, "id": "dlp.organizations.deidentifyTemplates.create", "httpMethod": "POST", "response": { "$ref": "GooglePrivacyDlpV2DeidentifyTemplate" } }, "list": { "response": { "$ref": "GooglePrivacyDlpV2ListDeidentifyTemplatesResponse" }, "httpMethod": "GET", "description": "Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "parent" ], "id": "dlp.organizations.deidentifyTemplates.list", "flatPath": "v2/organizations/{organizationsId}/deidentifyTemplates", "parameters": { "pageToken": { "type": "string", "location": "query", "description": "Page token to continue retrieval. Comes from the previous call to `ListDeidentifyTemplates`." }, "parent": { "type": "string", "required": true, "location": "path", "pattern": "^organizations/[^/]+$", "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3" }, "locationId": { "location": "query", "description": "Deprecated. This field has no effect.", "type": "string" }, "orderBy": { "type": "string", "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", "location": "query" }, "pageSize": { "format": "int32", "type": "integer", "description": "Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.", "location": "query" } }, "path": "v2/{+parent}/deidentifyTemplates" } } }, "locations": { "resources": { "projectDataProfiles": { "methods": { "get": { "id": "dlp.organizations.locations.projectDataProfiles.get", "parameters": { "name": { "pattern": "^organizations/[^/]+/locations/[^/]+/projectDataProfiles/[^/]+$", "description": "Required. Resource name, for example `organizations/12345/locations/us/projectDataProfiles/53234423`.", "location": "path", "type": "string", "required": true } }, "parameterOrder": [ "name" ], "response": { "$ref": "GooglePrivacyDlpV2ProjectDataProfile" }, "httpMethod": "GET", "path": "v2/{+name}", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/projectDataProfiles/{projectDataProfilesId}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Gets a project data profile." }, "list": { "parameterOrder": [ "parent" ], "response": { "$ref": "GooglePrivacyDlpV2ListProjectDataProfilesResponse" }, "httpMethod": "GET", "description": "Lists project data profiles for an organization.", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/projectDataProfiles", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v2/{+parent}/projectDataProfiles", "parameters": { "filter": { "type": "string", "location": "query", "description": "Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` The length of this field should be no more than 500 characters." }, "orderBy": { "type": "string", "location": "query", "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id` * `sensitivity_level desc` Supported fields are: - `project_id`: Google Cloud project ID - `sensitivity_level`: How sensitive the data in a project is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds." }, "pageToken": { "location": "query", "type": "string", "description": "Page token to continue retrieval." }, "pageSize": { "location": "query", "description": "Size of the page. This value can be limited by the server. If zero, server returns a page of max size 100.", "format": "int32", "type": "integer" }, "parent": { "location": "path", "type": "string", "pattern": "^organizations/[^/]+/locations/[^/]+$", "required": true, "description": "Required. organizations/{org_id}/locations/{loc_id}" } }, "id": "dlp.organizations.locations.projectDataProfiles.list" } } }, "columnDataProfiles": { "methods": { "get": { "response": { "$ref": "GooglePrivacyDlpV2ColumnDataProfile" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Gets a column data profile.", "parameters": { "name": { "location": "path", "type": "string", "description": "Required. Resource name, for example `organizations/12345/locations/us/columnDataProfiles/53234423`.", "required": true, "pattern": "^organizations/[^/]+/locations/[^/]+/columnDataProfiles/[^/]+$" } }, "httpMethod": "GET", "path": "v2/{+name}", "id": "dlp.organizations.locations.columnDataProfiles.get", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/columnDataProfiles/{columnDataProfilesId}", "parameterOrder": [ "name" ] }, "list": { "id": "dlp.organizations.locations.columnDataProfiles.list", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/columnDataProfiles", "response": { "$ref": "GooglePrivacyDlpV2ListColumnDataProfilesResponse" }, "description": "Lists column data profiles for an organization.", "httpMethod": "GET", "parameters": { "filter": { "type": "string", "description": "Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `table_data_profile_name` - The name of the related table data profile. - `project_id` - The Google Cloud project ID. (REQUIRED) - `dataset_id` - The BigQuery dataset ID. (REQUIRED) - `table_id` - The BigQuery table ID. (REQUIRED) - `field_id` - The ID of the BigQuery field. - `info_type` - The infotype detected in the resource. - `sensitivity_level` - HIGH|MEDIUM|LOW - `data_risk_level`: How much risk is associated with this data. - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` for project_id, dataset_id, and table_id. Other filters also support `!=`. Examples: * project_id = 12345 AND status_code = 1 * project_id = 12345 AND sensitivity_level = HIGH * project_id = 12345 AND info_type = STREET_ADDRESS The length of this field should be no more than 500 characters.", "location": "query" }, "pageSize": { "format": "int32", "location": "query", "description": "Size of the page. This value can be limited by the server. If zero, server returns a page of max size 100.", "type": "integer" }, "parent": { "required": true, "type": "string", "location": "path", "description": "Required. Resource name of the organization or project, for example `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`.", "pattern": "^organizations/[^/]+/locations/[^/]+$" }, "orderBy": { "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id asc` * `table_id` * `sensitivity_level desc` Supported fields are: - `project_id`: The Google Cloud project ID. - `dataset_id`: The ID of a BigQuery dataset. - `table_id`: The ID of a BigQuery table. - `sensitivity_level`: How sensitive the data in a column is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds.", "location": "query", "type": "string" }, "pageToken": { "type": "string", "location": "query", "description": "Page token to continue retrieval." } }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "parent" ], "path": "v2/{+parent}/columnDataProfiles" } } }, "inspectTemplates": { "methods": { "list": { "description": "Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", "parameterOrder": [ "parent" ], "path": "v2/{+parent}/inspectTemplates", "parameters": { "pageSize": { "description": "Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.", "location": "query", "type": "integer", "format": "int32" }, "pageToken": { "location": "query", "type": "string", "description": "Page token to continue retrieval. Comes from the previous call to `ListInspectTemplates`." }, "orderBy": { "location": "query", "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", "type": "string" }, "locationId": { "type": "string", "location": "query", "description": "Deprecated. This field has no effect." }, "parent": { "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "required": true, "location": "path", "type": "string", "pattern": "^organizations/[^/]+/locations/[^/]+$" } }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/inspectTemplates", "httpMethod": "GET", "response": { "$ref": "GooglePrivacyDlpV2ListInspectTemplatesResponse" }, "id": "dlp.organizations.locations.inspectTemplates.list" }, "get": { "response": { "$ref": "GooglePrivacyDlpV2InspectTemplate" }, "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/inspectTemplates/{inspectTemplatesId}", "id": "dlp.organizations.locations.inspectTemplates.get", "parameters": { "name": { "type": "string", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+/inspectTemplates/[^/]+$", "description": "Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342.", "required": true } }, "description": "Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", "path": "v2/{+name}", "httpMethod": "GET" }, "create": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "parent": { "location": "path", "required": true, "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "pattern": "^organizations/[^/]+/locations/[^/]+$", "type": "string" } }, "request": { "$ref": "GooglePrivacyDlpV2CreateInspectTemplateRequest" }, "id": "dlp.organizations.locations.inspectTemplates.create", "response": { "$ref": "GooglePrivacyDlpV2InspectTemplate" }, "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/inspectTemplates", "httpMethod": "POST", "parameterOrder": [ "parent" ], "path": "v2/{+parent}/inspectTemplates", "description": "Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more." }, "patch": { "parameters": { "name": { "type": "string", "location": "path", "required": true, "pattern": "^organizations/[^/]+/locations/[^/]+/inspectTemplates/[^/]+$", "description": "Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342." } }, "request": { "$ref": "GooglePrivacyDlpV2UpdateInspectTemplateRequest" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", "parameterOrder": [ "name" ], "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/inspectTemplates/{inspectTemplatesId}", "id": "dlp.organizations.locations.inspectTemplates.patch", "path": "v2/{+name}", "response": { "$ref": "GooglePrivacyDlpV2InspectTemplate" }, "httpMethod": "PATCH" }, "delete": { "id": "dlp.organizations.locations.inspectTemplates.delete", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "response": { "$ref": "GoogleProtobufEmpty" }, "parameters": { "name": { "pattern": "^organizations/[^/]+/locations/[^/]+/inspectTemplates/[^/]+$", "location": "path", "type": "string", "description": "Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342.", "required": true } }, "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/inspectTemplates/{inspectTemplatesId}", "httpMethod": "DELETE", "description": "Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", "path": "v2/{+name}" } } }, "jobTriggers": { "methods": { "list": { "parameters": { "type": { "enum": [ "DLP_JOB_TYPE_UNSPECIFIED", "INSPECT_JOB", "RISK_ANALYSIS_JOB" ], "location": "query", "description": "The type of jobs. Will use `DlpJobType.INSPECT` if not set.", "type": "string", "enumDescriptions": [ "Defaults to INSPECT_JOB.", "The job inspected Google Cloud for sensitive data.", "The job executed a Risk Analysis computation." ] }, "pageSize": { "format": "int32", "description": "Size of the page. This value can be limited by a server.", "location": "query", "type": "integer" }, "pageToken": { "location": "query", "type": "string", "description": "Page token to continue retrieval. Comes from the previous call to ListJobTriggers. `order_by` field must not change for subsequent calls." }, "parent": { "location": "path", "required": true, "type": "string", "pattern": "^organizations/[^/]+/locations/[^/]+$", "description": "Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3" }, "orderBy": { "description": "Comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created. - `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the JobTrigger's name. - `display_name`: corresponds to the JobTrigger's display name. - `status`: corresponds to JobTrigger's status.", "location": "query", "type": "string" }, "locationId": { "type": "string", "description": "Deprecated. This field has no effect.", "location": "query" }, "filter": { "location": "query", "type": "string", "description": "Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values for inspect triggers: - `status` - HEALTHY|PAUSED|CANCELLED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds are ignored. - 'error_count' - Number of errors that have occurred while running. * The operator must be `=` or `!=` for status and inspected_storage. Examples: * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) * last_run_time \u003e \\\"2017-12-12T00:00:00+00:00\\\" The length of this field should be no more than 500 characters." } }, "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/jobTriggers", "id": "dlp.organizations.locations.jobTriggers.list", "parameterOrder": [ "parent" ], "path": "v2/{+parent}/jobTriggers", "description": "Lists job triggers. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", "httpMethod": "GET", "response": { "$ref": "GooglePrivacyDlpV2ListJobTriggersResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "patch": { "id": "dlp.organizations.locations.jobTriggers.patch", "path": "v2/{+name}", "request": { "$ref": "GooglePrivacyDlpV2UpdateJobTriggerRequest" }, "parameterOrder": [ "name" ], "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/jobTriggers/{jobTriggersId}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", "httpMethod": "PATCH", "response": { "$ref": "GooglePrivacyDlpV2JobTrigger" }, "parameters": { "name": { "description": "Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`.", "required": true, "type": "string", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+/jobTriggers/[^/]+$" } } }, "create": { "description": "Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", "request": { "$ref": "GooglePrivacyDlpV2CreateJobTriggerRequest" }, "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/jobTriggers", "id": "dlp.organizations.locations.jobTriggers.create", "httpMethod": "POST", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GooglePrivacyDlpV2JobTrigger" }, "parameters": { "parent": { "type": "string", "pattern": "^organizations/[^/]+/locations/[^/]+$", "description": "Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "location": "path", "required": true } }, "parameterOrder": [ "parent" ], "path": "v2/{+parent}/jobTriggers" }, "delete": { "id": "dlp.organizations.locations.jobTriggers.delete", "description": "Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", "path": "v2/{+name}", "response": { "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "DELETE", "parameterOrder": [ "name" ], "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/jobTriggers/{jobTriggersId}", "parameters": { "name": { "type": "string", "required": true, "description": "Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`.", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+/jobTriggers/[^/]+$" } } }, "get": { "description": "Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/jobTriggers/{jobTriggersId}", "response": { "$ref": "GooglePrivacyDlpV2JobTrigger" }, "path": "v2/{+name}", "httpMethod": "GET", "id": "dlp.organizations.locations.jobTriggers.get", "parameters": { "name": { "type": "string", "description": "Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`.", "required": true, "pattern": "^organizations/[^/]+/locations/[^/]+/jobTriggers/[^/]+$", "location": "path" } }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ] } } }, "tableDataProfiles": { "methods": { "list": { "response": { "$ref": "GooglePrivacyDlpV2ListTableDataProfilesResponse" }, "parameters": { "filter": { "type": "string", "description": "Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `project_id` - The Google Cloud project ID. - `dataset_id` - The BigQuery dataset ID. - `table_id` - The ID of the BigQuery table. - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND resource_visibility = PUBLIC` The length of this field should be no more than 500 characters.", "location": "query" }, "orderBy": { "type": "string", "location": "query", "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id asc` * `table_id` * `sensitivity_level desc` Supported fields are: - `project_id`: The Google Cloud project ID. - `dataset_id`: The ID of a BigQuery dataset. - `table_id`: The ID of a BigQuery table. - `sensitivity_level`: How sensitive the data in a table is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds. - `last_modified`: The last time the resource was modified. - `resource_visibility`: Visibility restriction for this resource. - `row_count`: Number of rows in this resource." }, "pageSize": { "type": "integer", "location": "query", "format": "int32", "description": "Size of the page. This value can be limited by the server. If zero, server returns a page of max size 100." }, "parent": { "pattern": "^organizations/[^/]+/locations/[^/]+$", "location": "path", "required": true, "description": "Required. Resource name of the organization or project, for example `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`.", "type": "string" }, "pageToken": { "location": "query", "description": "Page token to continue retrieval.", "type": "string" } }, "id": "dlp.organizations.locations.tableDataProfiles.list", "path": "v2/{+parent}/tableDataProfiles", "parameterOrder": [ "parent" ], "httpMethod": "GET", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/tableDataProfiles", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Lists table data profiles for an organization." }, "get": { "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/tableDataProfiles/{tableDataProfilesId}", "response": { "$ref": "GooglePrivacyDlpV2TableDataProfile" }, "httpMethod": "GET", "id": "dlp.organizations.locations.tableDataProfiles.get", "parameters": { "name": { "description": "Required. Resource name, for example `organizations/12345/locations/us/tableDataProfiles/53234423`.", "location": "path", "required": true, "type": "string", "pattern": "^organizations/[^/]+/locations/[^/]+/tableDataProfiles/[^/]+$" } }, "path": "v2/{+name}", "description": "Gets a table data profile.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ] }, "delete": { "description": "Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.", "response": { "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/tableDataProfiles/{tableDataProfilesId}", "path": "v2/{+name}", "httpMethod": "DELETE", "id": "dlp.organizations.locations.tableDataProfiles.delete", "parameterOrder": [ "name" ], "parameters": { "name": { "location": "path", "type": "string", "description": "Required. Resource name of the table data profile.", "pattern": "^organizations/[^/]+/locations/[^/]+/tableDataProfiles/[^/]+$", "required": true } } } } }, "dlpJobs": { "methods": { "list": { "parameterOrder": [ "parent" ], "parameters": { "parent": { "location": "path", "type": "string", "description": "Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "required": true, "pattern": "^organizations/[^/]+/locations/[^/]+$" }, "filter": { "type": "string", "location": "query", "description": "Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values for inspect jobs: - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The name of the trigger that created the job. - 'end_time` - Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * Supported fields for risk analysis jobs: - `state` - RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * The operator must be `=` or `!=`. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = done OR state = canceled) * end_time \u003e \\\"2017-12-12T00:00:00+00:00\\\" The length of this field should be no more than 500 characters." }, "orderBy": { "location": "query", "type": "string", "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. - `end_time`: corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state`" }, "pageToken": { "description": "The standard list page token.", "location": "query", "type": "string" }, "type": { "enum": [ "DLP_JOB_TYPE_UNSPECIFIED", "INSPECT_JOB", "RISK_ANALYSIS_JOB" ], "enumDescriptions": [ "Defaults to INSPECT_JOB.", "The job inspected Google Cloud for sensitive data.", "The job executed a Risk Analysis computation." ], "location": "query", "type": "string", "description": "The type of job. Defaults to `DlpJobType.INSPECT`" }, "pageSize": { "description": "The standard list page size.", "location": "query", "format": "int32", "type": "integer" }, "locationId": { "description": "Deprecated. This field has no effect.", "type": "string", "location": "query" } }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GooglePrivacyDlpV2ListDlpJobsResponse" }, "description": "Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.", "id": "dlp.organizations.locations.dlpJobs.list", "path": "v2/{+parent}/dlpJobs", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/dlpJobs", "httpMethod": "GET" } } }, "deidentifyTemplates": { "methods": { "get": { "httpMethod": "GET", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GooglePrivacyDlpV2DeidentifyTemplate" }, "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/deidentifyTemplates/{deidentifyTemplatesId}", "id": "dlp.organizations.locations.deidentifyTemplates.get", "parameters": { "name": { "pattern": "^organizations/[^/]+/locations/[^/]+/deidentifyTemplates/[^/]+$", "type": "string", "location": "path", "description": "Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342.", "required": true } }, "parameterOrder": [ "name" ], "description": "Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", "path": "v2/{+name}" }, "create": { "httpMethod": "POST", "parameters": { "parent": { "required": true, "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+$", "type": "string" } }, "description": "Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/deidentifyTemplates", "response": { "$ref": "GooglePrivacyDlpV2DeidentifyTemplate" }, "parameterOrder": [ "parent" ], "path": "v2/{+parent}/deidentifyTemplates", "id": "dlp.organizations.locations.deidentifyTemplates.create", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "request": { "$ref": "GooglePrivacyDlpV2CreateDeidentifyTemplateRequest" } }, "patch": { "response": { "$ref": "GooglePrivacyDlpV2DeidentifyTemplate" }, "parameters": { "name": { "type": "string", "pattern": "^organizations/[^/]+/locations/[^/]+/deidentifyTemplates/[^/]+$", "required": true, "location": "path", "description": "Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342." } }, "id": "dlp.organizations.locations.deidentifyTemplates.patch", "request": { "$ref": "GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest" }, "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "PATCH", "description": "Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/deidentifyTemplates/{deidentifyTemplatesId}", "path": "v2/{+name}" }, "list": { "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/deidentifyTemplates", "parameterOrder": [ "parent" ], "description": "Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", "httpMethod": "GET", "response": { "$ref": "GooglePrivacyDlpV2ListDeidentifyTemplatesResponse" }, "parameters": { "locationId": { "type": "string", "location": "query", "description": "Deprecated. This field has no effect." }, "pageSize": { "type": "integer", "format": "int32", "description": "Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.", "location": "query" }, "orderBy": { "type": "string", "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", "location": "query" }, "parent": { "required": true, "pattern": "^organizations/[^/]+/locations/[^/]+$", "type": "string", "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "location": "path" }, "pageToken": { "description": "Page token to continue retrieval. Comes from the previous call to `ListDeidentifyTemplates`.", "location": "query", "type": "string" } }, "path": "v2/{+parent}/deidentifyTemplates", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "dlp.organizations.locations.deidentifyTemplates.list" }, "delete": { "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v2/{+name}", "id": "dlp.organizations.locations.deidentifyTemplates.delete", "parameters": { "name": { "type": "string", "description": "Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342.", "pattern": "^organizations/[^/]+/locations/[^/]+/deidentifyTemplates/[^/]+$", "required": true, "location": "path" } }, "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/deidentifyTemplates/{deidentifyTemplatesId}", "httpMethod": "DELETE", "response": { "$ref": "GoogleProtobufEmpty" }, "description": "Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more." } } }, "discoveryConfigs": { "methods": { "list": { "parameters": { "orderBy": { "location": "query", "type": "string", "description": "Comma separated list of config fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. - `name`: corresponds to the DiscoveryConfig's name. - `status`: corresponds to DiscoveryConfig's status." }, "parent": { "type": "string", "location": "path", "required": true, "description": "Required. Parent resource name. The format of this value is as follows: `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "pattern": "^organizations/[^/]+/locations/[^/]+$" }, "pageToken": { "type": "string", "location": "query", "description": "Page token to continue retrieval. Comes from the previous call to ListDiscoveryConfigs. `order_by` field must not change for subsequent calls." }, "pageSize": { "description": "Size of the page. This value can be limited by a server.", "type": "integer", "location": "query", "format": "int32" } }, "description": "Lists discovery configurations.", "httpMethod": "GET", "id": "dlp.organizations.locations.discoveryConfigs.list", "parameterOrder": [ "parent" ], "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/discoveryConfigs", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v2/{+parent}/discoveryConfigs", "response": { "$ref": "GooglePrivacyDlpV2ListDiscoveryConfigsResponse" } }, "create": { "parameters": { "parent": { "type": "string", "description": "Required. Parent resource name. The format of this value is as follows: `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "location": "path", "required": true, "pattern": "^organizations/[^/]+/locations/[^/]+$" } }, "id": "dlp.organizations.locations.discoveryConfigs.create", "parameterOrder": [ "parent" ], "request": { "$ref": "GooglePrivacyDlpV2CreateDiscoveryConfigRequest" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v2/{+parent}/discoveryConfigs", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/discoveryConfigs", "response": { "$ref": "GooglePrivacyDlpV2DiscoveryConfig" }, "description": "Creates a config for discovery to scan and profile storage.", "httpMethod": "POST" }, "patch": { "parameters": { "name": { "required": true, "type": "string", "pattern": "^organizations/[^/]+/locations/[^/]+/discoveryConfigs/[^/]+$", "location": "path", "description": "Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`." } }, "description": "Updates a discovery configuration.", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/discoveryConfigs/{discoveryConfigsId}", "id": "dlp.organizations.locations.discoveryConfigs.patch", "httpMethod": "PATCH", "request": { "$ref": "GooglePrivacyDlpV2UpdateDiscoveryConfigRequest" }, "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v2/{+name}", "response": { "$ref": "GooglePrivacyDlpV2DiscoveryConfig" } }, "delete": { "description": "Deletes a discovery configuration.", "httpMethod": "DELETE", "path": "v2/{+name}", "response": { "$ref": "GoogleProtobufEmpty" }, "parameters": { "name": { "pattern": "^organizations/[^/]+/locations/[^/]+/discoveryConfigs/[^/]+$", "location": "path", "type": "string", "description": "Required. Resource name of the project and the config, for example `projects/dlp-test-project/discoveryConfigs/53234423`.", "required": true } }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/discoveryConfigs/{discoveryConfigsId}", "id": "dlp.organizations.locations.discoveryConfigs.delete" }, "get": { "id": "dlp.organizations.locations.discoveryConfigs.get", "httpMethod": "GET", "path": "v2/{+name}", "response": { "$ref": "GooglePrivacyDlpV2DiscoveryConfig" }, "parameters": { "name": { "location": "path", "required": true, "pattern": "^organizations/[^/]+/locations/[^/]+/discoveryConfigs/[^/]+$", "type": "string", "description": "Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`." } }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Gets a discovery configuration.", "parameterOrder": [ "name" ], "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/discoveryConfigs/{discoveryConfigsId}" } } }, "connections": { "methods": { "search": { "httpMethod": "GET", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/connections:search", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "dlp.organizations.locations.connections.search", "parameterOrder": [ "parent" ], "response": { "$ref": "GooglePrivacyDlpV2SearchConnectionsResponse" }, "path": "v2/{+parent}/connections:search", "description": "Searches for Connections in a parent.", "parameters": { "parent": { "description": "Required. Parent name, typically an organization, without location. For example: \"organizations/12345678\".", "required": true, "type": "string", "pattern": "^organizations/[^/]+/locations/[^/]+$", "location": "path" }, "pageToken": { "description": "Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.", "type": "string", "location": "query" }, "pageSize": { "type": "integer", "format": "int32", "description": "Optional. Number of results per page, max 1000.", "location": "query" }, "filter": { "location": "query", "description": "Optional. * Supported fields/values - `state` - MISSING|AVAILABLE|ERROR", "type": "string" } } } } }, "storedInfoTypes": { "methods": { "delete": { "parameterOrder": [ "name" ], "description": "Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GoogleProtobufEmpty" }, "httpMethod": "DELETE", "path": "v2/{+name}", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/storedInfoTypes/{storedInfoTypesId}", "id": "dlp.organizations.locations.storedInfoTypes.delete", "parameters": { "name": { "location": "path", "type": "string", "description": "Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342.", "required": true, "pattern": "^organizations/[^/]+/locations/[^/]+/storedInfoTypes/[^/]+$" } } }, "patch": { "path": "v2/{+name}", "request": { "$ref": "GooglePrivacyDlpV2UpdateStoredInfoTypeRequest" }, "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "PATCH", "parameters": { "name": { "pattern": "^organizations/[^/]+/locations/[^/]+/storedInfoTypes/[^/]+$", "location": "path", "required": true, "type": "string", "description": "Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342." } }, "response": { "$ref": "GooglePrivacyDlpV2StoredInfoType" }, "description": "Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/storedInfoTypes/{storedInfoTypesId}", "id": "dlp.organizations.locations.storedInfoTypes.patch" }, "create": { "parameters": { "parent": { "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+$", "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "type": "string", "required": true } }, "description": "Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", "parameterOrder": [ "parent" ], "response": { "$ref": "GooglePrivacyDlpV2StoredInfoType" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/storedInfoTypes", "path": "v2/{+parent}/storedInfoTypes", "httpMethod": "POST", "id": "dlp.organizations.locations.storedInfoTypes.create", "request": { "$ref": "GooglePrivacyDlpV2CreateStoredInfoTypeRequest" } }, "list": { "response": { "$ref": "GooglePrivacyDlpV2ListStoredInfoTypesResponse" }, "id": "dlp.organizations.locations.storedInfoTypes.list", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v2/{+parent}/storedInfoTypes", "description": "Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", "parameters": { "pageToken": { "description": "Page token to continue retrieval. Comes from the previous call to `ListStoredInfoTypes`.", "location": "query", "type": "string" }, "orderBy": { "location": "query", "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.", "type": "string" }, "pageSize": { "location": "query", "format": "int32", "type": "integer", "description": "Size of the page. This value can be limited by the server. If zero server returns a page of max size 100." }, "locationId": { "type": "string", "location": "query", "description": "Deprecated. This field has no effect." }, "parent": { "pattern": "^organizations/[^/]+/locations/[^/]+$", "required": true, "type": "string", "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "location": "path" } }, "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/storedInfoTypes", "parameterOrder": [ "parent" ], "httpMethod": "GET" }, "get": { "response": { "$ref": "GooglePrivacyDlpV2StoredInfoType" }, "path": "v2/{+name}", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/storedInfoTypes/{storedInfoTypesId}", "httpMethod": "GET", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "description": "Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", "id": "dlp.organizations.locations.storedInfoTypes.get", "parameters": { "name": { "pattern": "^organizations/[^/]+/locations/[^/]+/storedInfoTypes/[^/]+$", "description": "Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342.", "location": "path", "required": true, "type": "string" } } } } } } }, "inspectTemplates": { "methods": { "list": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", "response": { "$ref": "GooglePrivacyDlpV2ListInspectTemplatesResponse" }, "httpMethod": "GET", "path": "v2/{+parent}/inspectTemplates", "id": "dlp.organizations.inspectTemplates.list", "parameterOrder": [ "parent" ], "parameters": { "locationId": { "type": "string", "description": "Deprecated. This field has no effect.", "location": "query" }, "pageToken": { "type": "string", "location": "query", "description": "Page token to continue retrieval. Comes from the previous call to `ListInspectTemplates`." }, "parent": { "type": "string", "required": true, "location": "path", "pattern": "^organizations/[^/]+$", "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3" }, "pageSize": { "format": "int32", "location": "query", "description": "Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.", "type": "integer" }, "orderBy": { "location": "query", "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", "type": "string" } }, "flatPath": "v2/organizations/{organizationsId}/inspectTemplates" }, "delete": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GoogleProtobufEmpty" }, "parameterOrder": [ "name" ], "parameters": { "name": { "required": true, "pattern": "^organizations/[^/]+/inspectTemplates/[^/]+$", "description": "Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342.", "location": "path", "type": "string" } }, "id": "dlp.organizations.inspectTemplates.delete", "flatPath": "v2/organizations/{organizationsId}/inspectTemplates/{inspectTemplatesId}", "path": "v2/{+name}", "description": "Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", "httpMethod": "DELETE" }, "create": { "id": "dlp.organizations.inspectTemplates.create", "response": { "$ref": "GooglePrivacyDlpV2InspectTemplate" }, "parameters": { "parent": { "type": "string", "required": true, "pattern": "^organizations/[^/]+$", "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "location": "path" } }, "parameterOrder": [ "parent" ], "path": "v2/{+parent}/inspectTemplates", "description": "Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", "flatPath": "v2/organizations/{organizationsId}/inspectTemplates", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "request": { "$ref": "GooglePrivacyDlpV2CreateInspectTemplateRequest" }, "httpMethod": "POST" }, "get": { "httpMethod": "GET", "description": "Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", "response": { "$ref": "GooglePrivacyDlpV2InspectTemplate" }, "id": "dlp.organizations.inspectTemplates.get", "path": "v2/{+name}", "flatPath": "v2/organizations/{organizationsId}/inspectTemplates/{inspectTemplatesId}", "parameterOrder": [ "name" ], "parameters": { "name": { "pattern": "^organizations/[^/]+/inspectTemplates/[^/]+$", "type": "string", "description": "Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342.", "location": "path", "required": true } }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "patch": { "httpMethod": "PATCH", "path": "v2/{+name}", "request": { "$ref": "GooglePrivacyDlpV2UpdateInspectTemplateRequest" }, "flatPath": "v2/organizations/{organizationsId}/inspectTemplates/{inspectTemplatesId}", "response": { "$ref": "GooglePrivacyDlpV2InspectTemplate" }, "description": "Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", "id": "dlp.organizations.inspectTemplates.patch", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "name": { "pattern": "^organizations/[^/]+/inspectTemplates/[^/]+$", "required": true, "type": "string", "location": "path", "description": "Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342." } }, "parameterOrder": [ "name" ] } } } } }, "projects": { "resources": { "storedInfoTypes": { "methods": { "list": { "flatPath": "v2/projects/{projectsId}/storedInfoTypes", "httpMethod": "GET", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GooglePrivacyDlpV2ListStoredInfoTypesResponse" }, "path": "v2/{+parent}/storedInfoTypes", "parameters": { "pageSize": { "format": "int32", "description": "Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.", "type": "integer", "location": "query" }, "parent": { "location": "path", "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "required": true, "type": "string", "pattern": "^projects/[^/]+$" }, "orderBy": { "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.", "location": "query", "type": "string" }, "pageToken": { "description": "Page token to continue retrieval. Comes from the previous call to `ListStoredInfoTypes`.", "location": "query", "type": "string" }, "locationId": { "description": "Deprecated. This field has no effect.", "type": "string", "location": "query" } }, "description": "Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", "id": "dlp.projects.storedInfoTypes.list", "parameterOrder": [ "parent" ] }, "delete": { "id": "dlp.projects.storedInfoTypes.delete", "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v2/{+name}", "httpMethod": "DELETE", "response": { "$ref": "GoogleProtobufEmpty" }, "flatPath": "v2/projects/{projectsId}/storedInfoTypes/{storedInfoTypesId}", "parameters": { "name": { "location": "path", "required": true, "pattern": "^projects/[^/]+/storedInfoTypes/[^/]+$", "description": "Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342.", "type": "string" } }, "description": "Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more." }, "create": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v2/projects/{projectsId}/storedInfoTypes", "parameterOrder": [ "parent" ], "id": "dlp.projects.storedInfoTypes.create", "request": { "$ref": "GooglePrivacyDlpV2CreateStoredInfoTypeRequest" }, "path": "v2/{+parent}/storedInfoTypes", "description": "Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", "parameters": { "parent": { "pattern": "^projects/[^/]+$", "location": "path", "required": true, "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "type": "string" } }, "response": { "$ref": "GooglePrivacyDlpV2StoredInfoType" }, "httpMethod": "POST" }, "patch": { "path": "v2/{+name}", "parameters": { "name": { "description": "Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342.", "type": "string", "location": "path", "required": true, "pattern": "^projects/[^/]+/storedInfoTypes/[^/]+$" } }, "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "dlp.projects.storedInfoTypes.patch", "request": { "$ref": "GooglePrivacyDlpV2UpdateStoredInfoTypeRequest" }, "response": { "$ref": "GooglePrivacyDlpV2StoredInfoType" }, "httpMethod": "PATCH", "description": "Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", "flatPath": "v2/projects/{projectsId}/storedInfoTypes/{storedInfoTypesId}" }, "get": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "name": { "required": true, "pattern": "^projects/[^/]+/storedInfoTypes/[^/]+$", "description": "Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342.", "type": "string", "location": "path" } }, "parameterOrder": [ "name" ], "httpMethod": "GET", "id": "dlp.projects.storedInfoTypes.get", "response": { "$ref": "GooglePrivacyDlpV2StoredInfoType" }, "description": "Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", "path": "v2/{+name}", "flatPath": "v2/projects/{projectsId}/storedInfoTypes/{storedInfoTypesId}" } } }, "content": { "methods": { "reidentify": { "parameters": { "parent": { "type": "string", "description": "Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "location": "path", "pattern": "^projects/[^/]+$", "required": true } }, "flatPath": "v2/projects/{projectsId}/content:reidentify", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GooglePrivacyDlpV2ReidentifyContentResponse" }, "httpMethod": "POST", "parameterOrder": [ "parent" ], "path": "v2/{+parent}/content:reidentify", "request": { "$ref": "GooglePrivacyDlpV2ReidentifyContentRequest" }, "description": "Re-identifies content that has been de-identified. See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example to learn more.", "id": "dlp.projects.content.reidentify" }, "deidentify": { "parameters": { "parent": { "pattern": "^projects/[^/]+$", "description": "Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "required": true, "location": "path", "type": "string" } }, "httpMethod": "POST", "parameterOrder": [ "parent" ], "response": { "$ref": "GooglePrivacyDlpV2DeidentifyContentResponse" }, "description": "De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.", "id": "dlp.projects.content.deidentify", "path": "v2/{+parent}/content:deidentify", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "request": { "$ref": "GooglePrivacyDlpV2DeidentifyContentRequest" }, "flatPath": "v2/projects/{projectsId}/content:deidentify" }, "inspect": { "id": "dlp.projects.content.inspect", "request": { "$ref": "GooglePrivacyDlpV2InspectContentRequest" }, "httpMethod": "POST", "flatPath": "v2/projects/{projectsId}/content:inspect", "response": { "$ref": "GooglePrivacyDlpV2InspectContentResponse" }, "path": "v2/{+parent}/content:inspect", "parameterOrder": [ "parent" ], "parameters": { "parent": { "type": "string", "location": "path", "required": true, "pattern": "^projects/[^/]+$", "description": "Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3" } }, "description": "Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see https://cloud.google.com/sensitive-data-protection/docs/inspecting-images and https://cloud.google.com/sensitive-data-protection/docs/inspecting-text,", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] } } }, "deidentifyTemplates": { "methods": { "create": { "id": "dlp.projects.deidentifyTemplates.create", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v2/projects/{projectsId}/deidentifyTemplates", "response": { "$ref": "GooglePrivacyDlpV2DeidentifyTemplate" }, "request": { "$ref": "GooglePrivacyDlpV2CreateDeidentifyTemplateRequest" }, "parameters": { "parent": { "pattern": "^projects/[^/]+$", "location": "path", "required": true, "type": "string", "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3" } }, "path": "v2/{+parent}/deidentifyTemplates", "httpMethod": "POST", "description": "Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", "parameterOrder": [ "parent" ] }, "delete": { "description": "Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v2/{+name}", "parameterOrder": [ "name" ], "flatPath": "v2/projects/{projectsId}/deidentifyTemplates/{deidentifyTemplatesId}", "httpMethod": "DELETE", "response": { "$ref": "GoogleProtobufEmpty" }, "id": "dlp.projects.deidentifyTemplates.delete", "parameters": { "name": { "description": "Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342.", "required": true, "location": "path", "pattern": "^projects/[^/]+/deidentifyTemplates/[^/]+$", "type": "string" } } }, "get": { "response": { "$ref": "GooglePrivacyDlpV2DeidentifyTemplate" }, "httpMethod": "GET", "description": "Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "flatPath": "v2/projects/{projectsId}/deidentifyTemplates/{deidentifyTemplatesId}", "path": "v2/{+name}", "id": "dlp.projects.deidentifyTemplates.get", "parameters": { "name": { "pattern": "^projects/[^/]+/deidentifyTemplates/[^/]+$", "location": "path", "type": "string", "required": true, "description": "Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342." } } }, "patch": { "httpMethod": "PATCH", "request": { "$ref": "GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest" }, "response": { "$ref": "GooglePrivacyDlpV2DeidentifyTemplate" }, "path": "v2/{+name}", "description": "Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", "parameters": { "name": { "description": "Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342.", "type": "string", "pattern": "^projects/[^/]+/deidentifyTemplates/[^/]+$", "required": true, "location": "path" } }, "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v2/projects/{projectsId}/deidentifyTemplates/{deidentifyTemplatesId}", "id": "dlp.projects.deidentifyTemplates.patch" }, "list": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "orderBy": { "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", "type": "string", "location": "query" }, "locationId": { "location": "query", "description": "Deprecated. This field has no effect.", "type": "string" }, "parent": { "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "location": "path", "pattern": "^projects/[^/]+$", "required": true, "type": "string" }, "pageToken": { "description": "Page token to continue retrieval. Comes from the previous call to `ListDeidentifyTemplates`.", "location": "query", "type": "string" }, "pageSize": { "format": "int32", "description": "Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.", "type": "integer", "location": "query" } }, "parameterOrder": [ "parent" ], "httpMethod": "GET", "flatPath": "v2/projects/{projectsId}/deidentifyTemplates", "path": "v2/{+parent}/deidentifyTemplates", "id": "dlp.projects.deidentifyTemplates.list", "response": { "$ref": "GooglePrivacyDlpV2ListDeidentifyTemplatesResponse" }, "description": "Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more." } } }, "inspectTemplates": { "methods": { "list": { "path": "v2/{+parent}/inspectTemplates", "httpMethod": "GET", "parameterOrder": [ "parent" ], "flatPath": "v2/projects/{projectsId}/inspectTemplates", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "dlp.projects.inspectTemplates.list", "response": { "$ref": "GooglePrivacyDlpV2ListInspectTemplatesResponse" }, "parameters": { "orderBy": { "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", "type": "string", "location": "query" }, "locationId": { "location": "query", "type": "string", "description": "Deprecated. This field has no effect." }, "pageSize": { "format": "int32", "description": "Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.", "location": "query", "type": "integer" }, "pageToken": { "type": "string", "description": "Page token to continue retrieval. Comes from the previous call to `ListInspectTemplates`.", "location": "query" }, "parent": { "type": "string", "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "location": "path", "pattern": "^projects/[^/]+$", "required": true } }, "description": "Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more." }, "patch": { "flatPath": "v2/projects/{projectsId}/inspectTemplates/{inspectTemplatesId}", "description": "Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", "parameterOrder": [ "name" ], "response": { "$ref": "GooglePrivacyDlpV2InspectTemplate" }, "id": "dlp.projects.inspectTemplates.patch", "path": "v2/{+name}", "httpMethod": "PATCH", "request": { "$ref": "GooglePrivacyDlpV2UpdateInspectTemplateRequest" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "name": { "required": true, "type": "string", "description": "Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342.", "location": "path", "pattern": "^projects/[^/]+/inspectTemplates/[^/]+$" } } }, "get": { "httpMethod": "GET", "parameterOrder": [ "name" ], "parameters": { "name": { "pattern": "^projects/[^/]+/inspectTemplates/[^/]+$", "required": true, "description": "Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342.", "location": "path", "type": "string" } }, "path": "v2/{+name}", "response": { "$ref": "GooglePrivacyDlpV2InspectTemplate" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "dlp.projects.inspectTemplates.get", "flatPath": "v2/projects/{projectsId}/inspectTemplates/{inspectTemplatesId}", "description": "Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more." }, "create": { "path": "v2/{+parent}/inspectTemplates", "flatPath": "v2/projects/{projectsId}/inspectTemplates", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "parent" ], "id": "dlp.projects.inspectTemplates.create", "httpMethod": "POST", "response": { "$ref": "GooglePrivacyDlpV2InspectTemplate" }, "parameters": { "parent": { "pattern": "^projects/[^/]+$", "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "required": true, "type": "string", "location": "path" } }, "request": { "$ref": "GooglePrivacyDlpV2CreateInspectTemplateRequest" }, "description": "Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more." }, "delete": { "flatPath": "v2/projects/{projectsId}/inspectTemplates/{inspectTemplatesId}", "httpMethod": "DELETE", "id": "dlp.projects.inspectTemplates.delete", "parameters": { "name": { "description": "Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342.", "pattern": "^projects/[^/]+/inspectTemplates/[^/]+$", "location": "path", "type": "string", "required": true } }, "response": { "$ref": "GoogleProtobufEmpty" }, "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v2/{+name}", "description": "Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more." } } }, "jobTriggers": { "methods": { "list": { "httpMethod": "GET", "description": "Lists job triggers. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", "parameters": { "type": { "enumDescriptions": [ "Defaults to INSPECT_JOB.", "The job inspected Google Cloud for sensitive data.", "The job executed a Risk Analysis computation." ], "location": "query", "enum": [ "DLP_JOB_TYPE_UNSPECIFIED", "INSPECT_JOB", "RISK_ANALYSIS_JOB" ], "type": "string", "description": "The type of jobs. Will use `DlpJobType.INSPECT` if not set." }, "parent": { "location": "path", "type": "string", "required": true, "pattern": "^projects/[^/]+$", "description": "Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3" }, "filter": { "description": "Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values for inspect triggers: - `status` - HEALTHY|PAUSED|CANCELLED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds are ignored. - 'error_count' - Number of errors that have occurred while running. * The operator must be `=` or `!=` for status and inspected_storage. Examples: * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) * last_run_time \u003e \\\"2017-12-12T00:00:00+00:00\\\" The length of this field should be no more than 500 characters.", "location": "query", "type": "string" }, "locationId": { "description": "Deprecated. This field has no effect.", "type": "string", "location": "query" }, "pageToken": { "type": "string", "location": "query", "description": "Page token to continue retrieval. Comes from the previous call to ListJobTriggers. `order_by` field must not change for subsequent calls." }, "pageSize": { "format": "int32", "location": "query", "type": "integer", "description": "Size of the page. This value can be limited by a server." }, "orderBy": { "location": "query", "description": "Comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created. - `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the JobTrigger's name. - `display_name`: corresponds to the JobTrigger's display name. - `status`: corresponds to JobTrigger's status.", "type": "string" } }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GooglePrivacyDlpV2ListJobTriggersResponse" }, "parameterOrder": [ "parent" ], "path": "v2/{+parent}/jobTriggers", "id": "dlp.projects.jobTriggers.list", "flatPath": "v2/projects/{projectsId}/jobTriggers" }, "get": { "response": { "$ref": "GooglePrivacyDlpV2JobTrigger" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "GET", "description": "Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", "id": "dlp.projects.jobTriggers.get", "parameters": { "name": { "required": true, "type": "string", "description": "Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`.", "pattern": "^projects/[^/]+/jobTriggers/[^/]+$", "location": "path" } }, "flatPath": "v2/projects/{projectsId}/jobTriggers/{jobTriggersId}", "parameterOrder": [ "name" ], "path": "v2/{+name}" }, "activate": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v2/{+name}:activate", "parameterOrder": [ "name" ], "request": { "$ref": "GooglePrivacyDlpV2ActivateJobTriggerRequest" }, "parameters": { "name": { "location": "path", "description": "Required. Resource name of the trigger to activate, for example `projects/dlp-test-project/jobTriggers/53234423`.", "pattern": "^projects/[^/]+/jobTriggers/[^/]+$", "type": "string", "required": true } }, "description": "Activate a job trigger. Causes the immediate execute of a trigger instead of waiting on the trigger event to occur.", "httpMethod": "POST", "flatPath": "v2/projects/{projectsId}/jobTriggers/{jobTriggersId}:activate", "response": { "$ref": "GooglePrivacyDlpV2DlpJob" }, "id": "dlp.projects.jobTriggers.activate" }, "create": { "description": "Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", "path": "v2/{+parent}/jobTriggers", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "parent": { "pattern": "^projects/[^/]+$", "description": "Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "location": "path", "type": "string", "required": true } }, "parameterOrder": [ "parent" ], "response": { "$ref": "GooglePrivacyDlpV2JobTrigger" }, "httpMethod": "POST", "request": { "$ref": "GooglePrivacyDlpV2CreateJobTriggerRequest" }, "id": "dlp.projects.jobTriggers.create", "flatPath": "v2/projects/{projectsId}/jobTriggers" }, "patch": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GooglePrivacyDlpV2JobTrigger" }, "path": "v2/{+name}", "request": { "$ref": "GooglePrivacyDlpV2UpdateJobTriggerRequest" }, "flatPath": "v2/projects/{projectsId}/jobTriggers/{jobTriggersId}", "id": "dlp.projects.jobTriggers.patch", "parameters": { "name": { "description": "Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`.", "type": "string", "required": true, "location": "path", "pattern": "^projects/[^/]+/jobTriggers/[^/]+$" } }, "description": "Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", "parameterOrder": [ "name" ], "httpMethod": "PATCH" }, "delete": { "description": "Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "name": { "type": "string", "location": "path", "description": "Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`.", "pattern": "^projects/[^/]+/jobTriggers/[^/]+$", "required": true } }, "httpMethod": "DELETE", "id": "dlp.projects.jobTriggers.delete", "path": "v2/{+name}", "parameterOrder": [ "name" ], "flatPath": "v2/projects/{projectsId}/jobTriggers/{jobTriggersId}", "response": { "$ref": "GoogleProtobufEmpty" } } } }, "dlpJobs": { "methods": { "cancel": { "path": "v2/{+name}:cancel", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "request": { "$ref": "GooglePrivacyDlpV2CancelDlpJobRequest" }, "id": "dlp.projects.dlpJobs.cancel", "parameterOrder": [ "name" ], "response": { "$ref": "GoogleProtobufEmpty" }, "description": "Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.", "httpMethod": "POST", "flatPath": "v2/projects/{projectsId}/dlpJobs/{dlpJobsId}:cancel", "parameters": { "name": { "description": "Required. The name of the DlpJob resource to be cancelled.", "location": "path", "required": true, "type": "string", "pattern": "^projects/[^/]+/dlpJobs/[^/]+$" } } }, "list": { "id": "dlp.projects.dlpJobs.list", "path": "v2/{+parent}/dlpJobs", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "parent" ], "parameters": { "orderBy": { "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. - `end_time`: corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state`", "location": "query", "type": "string" }, "parent": { "required": true, "pattern": "^projects/[^/]+$", "type": "string", "location": "path", "description": "Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3" }, "filter": { "description": "Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values for inspect jobs: - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The name of the trigger that created the job. - 'end_time` - Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * Supported fields for risk analysis jobs: - `state` - RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * The operator must be `=` or `!=`. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = done OR state = canceled) * end_time \u003e \\\"2017-12-12T00:00:00+00:00\\\" The length of this field should be no more than 500 characters.", "type": "string", "location": "query" }, "locationId": { "type": "string", "description": "Deprecated. This field has no effect.", "location": "query" }, "type": { "enumDescriptions": [ "Defaults to INSPECT_JOB.", "The job inspected Google Cloud for sensitive data.", "The job executed a Risk Analysis computation." ], "description": "The type of job. Defaults to `DlpJobType.INSPECT`", "enum": [ "DLP_JOB_TYPE_UNSPECIFIED", "INSPECT_JOB", "RISK_ANALYSIS_JOB" ], "type": "string", "location": "query" }, "pageSize": { "format": "int32", "description": "The standard list page size.", "type": "integer", "location": "query" }, "pageToken": { "type": "string", "description": "The standard list page token.", "location": "query" } }, "description": "Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.", "response": { "$ref": "GooglePrivacyDlpV2ListDlpJobsResponse" }, "flatPath": "v2/projects/{projectsId}/dlpJobs", "httpMethod": "GET" }, "delete": { "response": { "$ref": "GoogleProtobufEmpty" }, "flatPath": "v2/projects/{projectsId}/dlpJobs/{dlpJobsId}", "id": "dlp.projects.dlpJobs.delete", "path": "v2/{+name}", "httpMethod": "DELETE", "parameters": { "name": { "description": "Required. The name of the DlpJob resource to be deleted.", "type": "string", "pattern": "^projects/[^/]+/dlpJobs/[^/]+$", "required": true, "location": "path" } }, "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more." }, "get": { "description": "Gets the latest state of a long-running DlpJob. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.", "path": "v2/{+name}", "httpMethod": "GET", "response": { "$ref": "GooglePrivacyDlpV2DlpJob" }, "parameters": { "name": { "pattern": "^projects/[^/]+/dlpJobs/[^/]+$", "type": "string", "location": "path", "description": "Required. The name of the DlpJob resource.", "required": true } }, "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "dlp.projects.dlpJobs.get", "flatPath": "v2/projects/{projectsId}/dlpJobs/{dlpJobsId}" }, "create": { "description": "Creates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.", "flatPath": "v2/projects/{projectsId}/dlpJobs", "httpMethod": "POST", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "request": { "$ref": "GooglePrivacyDlpV2CreateDlpJobRequest" }, "id": "dlp.projects.dlpJobs.create", "parameterOrder": [ "parent" ], "response": { "$ref": "GooglePrivacyDlpV2DlpJob" }, "parameters": { "parent": { "pattern": "^projects/[^/]+$", "type": "string", "location": "path", "description": "Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "required": true } }, "path": "v2/{+parent}/dlpJobs" } } }, "image": { "methods": { "redact": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "dlp.projects.image.redact", "httpMethod": "POST", "path": "v2/{+parent}/image:redact", "parameterOrder": [ "parent" ], "response": { "$ref": "GooglePrivacyDlpV2RedactImageResponse" }, "request": { "$ref": "GooglePrivacyDlpV2RedactImageRequest" }, "flatPath": "v2/projects/{projectsId}/image:redact", "parameters": { "parent": { "type": "string", "description": "Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "location": "path", "required": true, "pattern": "^projects/[^/]+$" } }, "description": "Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated." } } }, "locations": { "resources": { "columnDataProfiles": { "methods": { "get": { "response": { "$ref": "GooglePrivacyDlpV2ColumnDataProfile" }, "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/columnDataProfiles/{columnDataProfilesId}", "description": "Gets a column data profile.", "parameters": { "name": { "pattern": "^projects/[^/]+/locations/[^/]+/columnDataProfiles/[^/]+$", "location": "path", "type": "string", "description": "Required. Resource name, for example `organizations/12345/locations/us/columnDataProfiles/53234423`.", "required": true } }, "id": "dlp.projects.locations.columnDataProfiles.get", "parameterOrder": [ "name" ], "httpMethod": "GET", "path": "v2/{+name}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { "parameterOrder": [ "parent" ], "response": { "$ref": "GooglePrivacyDlpV2ListColumnDataProfilesResponse" }, "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/columnDataProfiles", "httpMethod": "GET", "parameters": { "pageToken": { "location": "query", "type": "string", "description": "Page token to continue retrieval." }, "filter": { "type": "string", "location": "query", "description": "Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `table_data_profile_name` - The name of the related table data profile. - `project_id` - The Google Cloud project ID. (REQUIRED) - `dataset_id` - The BigQuery dataset ID. (REQUIRED) - `table_id` - The BigQuery table ID. (REQUIRED) - `field_id` - The ID of the BigQuery field. - `info_type` - The infotype detected in the resource. - `sensitivity_level` - HIGH|MEDIUM|LOW - `data_risk_level`: How much risk is associated with this data. - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` for project_id, dataset_id, and table_id. Other filters also support `!=`. Examples: * project_id = 12345 AND status_code = 1 * project_id = 12345 AND sensitivity_level = HIGH * project_id = 12345 AND info_type = STREET_ADDRESS The length of this field should be no more than 500 characters." }, "orderBy": { "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id asc` * `table_id` * `sensitivity_level desc` Supported fields are: - `project_id`: The Google Cloud project ID. - `dataset_id`: The ID of a BigQuery dataset. - `table_id`: The ID of a BigQuery table. - `sensitivity_level`: How sensitive the data in a column is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds.", "location": "query", "type": "string" }, "pageSize": { "type": "integer", "location": "query", "format": "int32", "description": "Size of the page. This value can be limited by the server. If zero, server returns a page of max size 100." }, "parent": { "description": "Required. Resource name of the organization or project, for example `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`.", "location": "path", "required": true, "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+$" } }, "id": "dlp.projects.locations.columnDataProfiles.list", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v2/{+parent}/columnDataProfiles", "description": "Lists column data profiles for an organization." } } }, "projectDataProfiles": { "methods": { "list": { "path": "v2/{+parent}/projectDataProfiles", "response": { "$ref": "GooglePrivacyDlpV2ListProjectDataProfilesResponse" }, "parameterOrder": [ "parent" ], "parameters": { "parent": { "required": true, "type": "string", "description": "Required. organizations/{org_id}/locations/{loc_id}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$" }, "filter": { "type": "string", "description": "Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` The length of this field should be no more than 500 characters.", "location": "query" }, "pageToken": { "type": "string", "description": "Page token to continue retrieval.", "location": "query" }, "orderBy": { "type": "string", "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id` * `sensitivity_level desc` Supported fields are: - `project_id`: Google Cloud project ID - `sensitivity_level`: How sensitive the data in a project is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds.", "location": "query" }, "pageSize": { "format": "int32", "type": "integer", "location": "query", "description": "Size of the page. This value can be limited by the server. If zero, server returns a page of max size 100." } }, "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/projectDataProfiles", "id": "dlp.projects.locations.projectDataProfiles.list", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "GET", "description": "Lists project data profiles for an organization." }, "get": { "description": "Gets a project data profile.", "httpMethod": "GET", "id": "dlp.projects.locations.projectDataProfiles.get", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "parameters": { "name": { "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/projectDataProfiles/[^/]+$", "description": "Required. Resource name, for example `organizations/12345/locations/us/projectDataProfiles/53234423`.", "type": "string", "required": true } }, "response": { "$ref": "GooglePrivacyDlpV2ProjectDataProfile" }, "path": "v2/{+name}", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/projectDataProfiles/{projectDataProfilesId}" } } }, "image": { "methods": { "redact": { "httpMethod": "POST", "description": "Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.", "response": { "$ref": "GooglePrivacyDlpV2RedactImageResponse" }, "id": "dlp.projects.locations.image.redact", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/image:redact", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "parent" ], "parameters": { "parent": { "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string", "description": "Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3" } }, "request": { "$ref": "GooglePrivacyDlpV2RedactImageRequest" }, "path": "v2/{+parent}/image:redact" } } }, "tableDataProfiles": { "methods": { "list": { "id": "dlp.projects.locations.tableDataProfiles.list", "parameters": { "pageSize": { "format": "int32", "description": "Size of the page. This value can be limited by the server. If zero, server returns a page of max size 100.", "location": "query", "type": "integer" }, "parent": { "pattern": "^projects/[^/]+/locations/[^/]+$", "location": "path", "type": "string", "required": true, "description": "Required. Resource name of the organization or project, for example `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`." }, "pageToken": { "type": "string", "description": "Page token to continue retrieval.", "location": "query" }, "orderBy": { "type": "string", "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id asc` * `table_id` * `sensitivity_level desc` Supported fields are: - `project_id`: The Google Cloud project ID. - `dataset_id`: The ID of a BigQuery dataset. - `table_id`: The ID of a BigQuery table. - `sensitivity_level`: How sensitive the data in a table is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds. - `last_modified`: The last time the resource was modified. - `resource_visibility`: Visibility restriction for this resource. - `row_count`: Number of rows in this resource.", "location": "query" }, "filter": { "type": "string", "location": "query", "description": "Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `project_id` - The Google Cloud project ID. - `dataset_id` - The BigQuery dataset ID. - `table_id` - The ID of the BigQuery table. - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND resource_visibility = PUBLIC` The length of this field should be no more than 500 characters." } }, "parameterOrder": [ "parent" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Lists table data profiles for an organization.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/tableDataProfiles", "path": "v2/{+parent}/tableDataProfiles", "httpMethod": "GET", "response": { "$ref": "GooglePrivacyDlpV2ListTableDataProfilesResponse" } }, "delete": { "description": "Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.", "httpMethod": "DELETE", "path": "v2/{+name}", "parameters": { "name": { "pattern": "^projects/[^/]+/locations/[^/]+/tableDataProfiles/[^/]+$", "description": "Required. Resource name of the table data profile.", "location": "path", "type": "string", "required": true } }, "id": "dlp.projects.locations.tableDataProfiles.delete", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GoogleProtobufEmpty" }, "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/tableDataProfiles/{tableDataProfilesId}", "parameterOrder": [ "name" ] }, "get": { "parameterOrder": [ "name" ], "response": { "$ref": "GooglePrivacyDlpV2TableDataProfile" }, "httpMethod": "GET", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "name": { "description": "Required. Resource name, for example `organizations/12345/locations/us/tableDataProfiles/53234423`.", "location": "path", "required": true, "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+/tableDataProfiles/[^/]+$" } }, "id": "dlp.projects.locations.tableDataProfiles.get", "path": "v2/{+name}", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/tableDataProfiles/{tableDataProfilesId}", "description": "Gets a table data profile." } } }, "connections": { "methods": { "patch": { "description": "Update a Connection.", "id": "dlp.projects.locations.connections.patch", "request": { "$ref": "GooglePrivacyDlpV2UpdateConnectionRequest" }, "parameterOrder": [ "name" ], "path": "v2/{+name}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "name": { "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+$", "type": "string", "required": true, "description": "Required. Resource name in the format: \"projects/{project}/locations/{location}/connections/{connection}\"." } }, "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}", "response": { "$ref": "GooglePrivacyDlpV2Connection" }, "httpMethod": "PATCH" }, "get": { "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}", "id": "dlp.projects.locations.connections.get", "parameters": { "name": { "location": "path", "required": true, "description": "Required. Resource name in the format: \"projects/{project}/locations/{location}/connections/{connection}\".", "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+$" } }, "parameterOrder": [ "name" ], "path": "v2/{+name}", "httpMethod": "GET", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GooglePrivacyDlpV2Connection" }, "description": "Get a Connection by name." }, "create": { "response": { "$ref": "GooglePrivacyDlpV2Connection" }, "description": "Create a Connection to an external data source.", "path": "v2/{+parent}/connections", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "parent": { "type": "string", "description": "Required. Parent resource name in the format: \"projects/{project}/locations/{location}\".", "pattern": "^projects/[^/]+/locations/[^/]+$", "location": "path", "required": true } }, "httpMethod": "POST", "id": "dlp.projects.locations.connections.create", "parameterOrder": [ "parent" ], "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/connections", "request": { "$ref": "GooglePrivacyDlpV2CreateConnectionRequest" } }, "search": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "GET", "description": "Searches for Connections in a parent.", "parameterOrder": [ "parent" ], "parameters": { "filter": { "type": "string", "location": "query", "description": "Optional. * Supported fields/values - `state` - MISSING|AVAILABLE|ERROR" }, "pageSize": { "description": "Optional. Number of results per page, max 1000.", "location": "query", "format": "int32", "type": "integer" }, "parent": { "description": "Required. Parent name, typically an organization, without location. For example: \"organizations/12345678\".", "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "location": "path" }, "pageToken": { "type": "string", "description": "Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.", "location": "query" } }, "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/connections:search", "response": { "$ref": "GooglePrivacyDlpV2SearchConnectionsResponse" }, "path": "v2/{+parent}/connections:search", "id": "dlp.projects.locations.connections.search" }, "list": { "parameters": { "pageSize": { "description": "Optional. Number of results per page, max 1000.", "location": "query", "type": "integer", "format": "int32" }, "parent": { "description": "Required. Parent name, for example: \"projects/project-id/locations/global\".", "type": "string", "required": true, "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$" }, "pageToken": { "description": "Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.", "type": "string", "location": "query" }, "filter": { "type": "string", "description": "Optional. * Supported fields/values - `state` - MISSING|AVAILABLE|ERROR", "location": "query" } }, "parameterOrder": [ "parent" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v2/{+parent}/connections", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/connections", "response": { "$ref": "GooglePrivacyDlpV2ListConnectionsResponse" }, "httpMethod": "GET", "id": "dlp.projects.locations.connections.list", "description": "Lists Connections in a parent." }, "delete": { "id": "dlp.projects.locations.connections.delete", "path": "v2/{+name}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GoogleProtobufEmpty" }, "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}", "description": "Delete a Connection.", "httpMethod": "DELETE", "parameterOrder": [ "name" ], "parameters": { "name": { "type": "string", "location": "path", "required": true, "description": "Required. Resource name of the Connection to be deleted, in the format: \"projects/{project}/locations/{location}/connections/{connection}\".", "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+$" } } } } }, "deidentifyTemplates": { "methods": { "patch": { "request": { "$ref": "GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest" }, "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/deidentifyTemplates/{deidentifyTemplatesId}", "httpMethod": "PATCH", "id": "dlp.projects.locations.deidentifyTemplates.patch", "description": "Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", "path": "v2/{+name}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "name": { "pattern": "^projects/[^/]+/locations/[^/]+/deidentifyTemplates/[^/]+$", "description": "Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342.", "required": true, "location": "path", "type": "string" } }, "parameterOrder": [ "name" ], "response": { "$ref": "GooglePrivacyDlpV2DeidentifyTemplate" } }, "create": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "parent" ], "id": "dlp.projects.locations.deidentifyTemplates.create", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/deidentifyTemplates", "response": { "$ref": "GooglePrivacyDlpV2DeidentifyTemplate" }, "description": "Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", "httpMethod": "POST", "request": { "$ref": "GooglePrivacyDlpV2CreateDeidentifyTemplateRequest" }, "parameters": { "parent": { "type": "string", "location": "path", "required": true, "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "pattern": "^projects/[^/]+/locations/[^/]+$" } }, "path": "v2/{+parent}/deidentifyTemplates" }, "get": { "path": "v2/{+name}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "dlp.projects.locations.deidentifyTemplates.get", "response": { "$ref": "GooglePrivacyDlpV2DeidentifyTemplate" }, "parameters": { "name": { "pattern": "^projects/[^/]+/locations/[^/]+/deidentifyTemplates/[^/]+$", "description": "Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342.", "required": true, "location": "path", "type": "string" } }, "description": "Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", "httpMethod": "GET", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/deidentifyTemplates/{deidentifyTemplatesId}", "parameterOrder": [ "name" ] }, "list": { "parameterOrder": [ "parent" ], "path": "v2/{+parent}/deidentifyTemplates", "id": "dlp.projects.locations.deidentifyTemplates.list", "description": "Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", "response": { "$ref": "GooglePrivacyDlpV2ListDeidentifyTemplatesResponse" }, "httpMethod": "GET", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/deidentifyTemplates", "parameters": { "parent": { "location": "path", "required": true, "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "pattern": "^projects/[^/]+/locations/[^/]+$", "type": "string" }, "pageSize": { "type": "integer", "format": "int32", "location": "query", "description": "Size of the page. This value can be limited by the server. If zero server returns a page of max size 100." }, "locationId": { "location": "query", "type": "string", "description": "Deprecated. This field has no effect." }, "orderBy": { "location": "query", "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", "type": "string" }, "pageToken": { "location": "query", "type": "string", "description": "Page token to continue retrieval. Comes from the previous call to `ListDeidentifyTemplates`." } }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "delete": { "path": "v2/{+name}", "httpMethod": "DELETE", "parameterOrder": [ "name" ], "parameters": { "name": { "required": true, "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+/deidentifyTemplates/[^/]+$", "description": "Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342.", "location": "path" } }, "id": "dlp.projects.locations.deidentifyTemplates.delete", "response": { "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/deidentifyTemplates/{deidentifyTemplatesId}" } } }, "inspectTemplates": { "methods": { "get": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "path": "v2/{+name}", "description": "Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/inspectTemplates/{inspectTemplatesId}", "httpMethod": "GET", "parameters": { "name": { "type": "string", "required": true, "pattern": "^projects/[^/]+/locations/[^/]+/inspectTemplates/[^/]+$", "description": "Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342.", "location": "path" } }, "id": "dlp.projects.locations.inspectTemplates.get", "response": { "$ref": "GooglePrivacyDlpV2InspectTemplate" } }, "create": { "description": "Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "dlp.projects.locations.inspectTemplates.create", "response": { "$ref": "GooglePrivacyDlpV2InspectTemplate" }, "request": { "$ref": "GooglePrivacyDlpV2CreateInspectTemplateRequest" }, "parameters": { "parent": { "location": "path", "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+$", "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "required": true } }, "httpMethod": "POST", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/inspectTemplates", "parameterOrder": [ "parent" ], "path": "v2/{+parent}/inspectTemplates" }, "list": { "httpMethod": "GET", "id": "dlp.projects.locations.inspectTemplates.list", "path": "v2/{+parent}/inspectTemplates", "response": { "$ref": "GooglePrivacyDlpV2ListInspectTemplatesResponse" }, "parameterOrder": [ "parent" ], "description": "Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/inspectTemplates", "parameters": { "pageSize": { "format": "int32", "location": "query", "type": "integer", "description": "Size of the page. This value can be limited by the server. If zero server returns a page of max size 100." }, "pageToken": { "description": "Page token to continue retrieval. Comes from the previous call to `ListInspectTemplates`.", "location": "query", "type": "string" }, "orderBy": { "type": "string", "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", "location": "query" }, "locationId": { "description": "Deprecated. This field has no effect.", "type": "string", "location": "query" }, "parent": { "location": "path", "required": true, "pattern": "^projects/[^/]+/locations/[^/]+$", "type": "string", "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3" } }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "patch": { "response": { "$ref": "GooglePrivacyDlpV2InspectTemplate" }, "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/inspectTemplates/{inspectTemplatesId}", "path": "v2/{+name}", "parameterOrder": [ "name" ], "request": { "$ref": "GooglePrivacyDlpV2UpdateInspectTemplateRequest" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "name": { "required": true, "pattern": "^projects/[^/]+/locations/[^/]+/inspectTemplates/[^/]+$", "location": "path", "description": "Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342.", "type": "string" } }, "httpMethod": "PATCH", "description": "Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", "id": "dlp.projects.locations.inspectTemplates.patch" }, "delete": { "httpMethod": "DELETE", "id": "dlp.projects.locations.inspectTemplates.delete", "path": "v2/{+name}", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/inspectTemplates/{inspectTemplatesId}", "description": "Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", "parameterOrder": [ "name" ], "parameters": { "name": { "type": "string", "required": true, "pattern": "^projects/[^/]+/locations/[^/]+/inspectTemplates/[^/]+$", "description": "Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342.", "location": "path" } }, "response": { "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] } } }, "content": { "methods": { "reidentify": { "httpMethod": "POST", "response": { "$ref": "GooglePrivacyDlpV2ReidentifyContentResponse" }, "parameterOrder": [ "parent" ], "request": { "$ref": "GooglePrivacyDlpV2ReidentifyContentRequest" }, "parameters": { "parent": { "pattern": "^projects/[^/]+/locations/[^/]+$", "location": "path", "required": true, "description": "Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "type": "string" } }, "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/content:reidentify", "path": "v2/{+parent}/content:reidentify", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "dlp.projects.locations.content.reidentify", "description": "Re-identifies content that has been de-identified. See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example to learn more." }, "inspect": { "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/content:inspect", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GooglePrivacyDlpV2InspectContentResponse" }, "parameters": { "parent": { "type": "string", "description": "Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "pattern": "^projects/[^/]+/locations/[^/]+$", "location": "path", "required": true } }, "parameterOrder": [ "parent" ], "httpMethod": "POST", "path": "v2/{+parent}/content:inspect", "description": "Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see https://cloud.google.com/sensitive-data-protection/docs/inspecting-images and https://cloud.google.com/sensitive-data-protection/docs/inspecting-text,", "request": { "$ref": "GooglePrivacyDlpV2InspectContentRequest" }, "id": "dlp.projects.locations.content.inspect" }, "deidentify": { "request": { "$ref": "GooglePrivacyDlpV2DeidentifyContentRequest" }, "description": "De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.", "httpMethod": "POST", "path": "v2/{+parent}/content:deidentify", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "dlp.projects.locations.content.deidentify", "parameters": { "parent": { "description": "Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "location": "path", "required": true, "pattern": "^projects/[^/]+/locations/[^/]+$", "type": "string" } }, "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/content:deidentify", "parameterOrder": [ "parent" ], "response": { "$ref": "GooglePrivacyDlpV2DeidentifyContentResponse" } } } }, "discoveryConfigs": { "methods": { "get": { "parameters": { "name": { "pattern": "^projects/[^/]+/locations/[^/]+/discoveryConfigs/[^/]+$", "type": "string", "description": "Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`.", "location": "path", "required": true } }, "response": { "$ref": "GooglePrivacyDlpV2DiscoveryConfig" }, "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/discoveryConfigs/{discoveryConfigsId}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v2/{+name}", "id": "dlp.projects.locations.discoveryConfigs.get", "httpMethod": "GET", "parameterOrder": [ "name" ], "description": "Gets a discovery configuration." }, "delete": { "path": "v2/{+name}", "id": "dlp.projects.locations.discoveryConfigs.delete", "httpMethod": "DELETE", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/discoveryConfigs/{discoveryConfigsId}", "description": "Deletes a discovery configuration.", "response": { "$ref": "GoogleProtobufEmpty" }, "parameters": { "name": { "location": "path", "description": "Required. Resource name of the project and the config, for example `projects/dlp-test-project/discoveryConfigs/53234423`.", "required": true, "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+/discoveryConfigs/[^/]+$" } } }, "create": { "parameters": { "parent": { "pattern": "^projects/[^/]+/locations/[^/]+$", "type": "string", "required": true, "location": "path", "description": "Required. Parent resource name. The format of this value is as follows: `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3" } }, "response": { "$ref": "GooglePrivacyDlpV2DiscoveryConfig" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v2/{+parent}/discoveryConfigs", "httpMethod": "POST", "request": { "$ref": "GooglePrivacyDlpV2CreateDiscoveryConfigRequest" }, "id": "dlp.projects.locations.discoveryConfigs.create", "parameterOrder": [ "parent" ], "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/discoveryConfigs", "description": "Creates a config for discovery to scan and profile storage." }, "patch": { "parameterOrder": [ "name" ], "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/discoveryConfigs/{discoveryConfigsId}", "id": "dlp.projects.locations.discoveryConfigs.patch", "path": "v2/{+name}", "parameters": { "name": { "description": "Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`.", "location": "path", "required": true, "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+/discoveryConfigs/[^/]+$" } }, "description": "Updates a discovery configuration.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "PATCH", "response": { "$ref": "GooglePrivacyDlpV2DiscoveryConfig" }, "request": { "$ref": "GooglePrivacyDlpV2UpdateDiscoveryConfigRequest" } }, "list": { "parameters": { "parent": { "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+$", "description": "Required. Parent resource name. The format of this value is as follows: `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "location": "path", "required": true }, "orderBy": { "location": "query", "type": "string", "description": "Comma separated list of config fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. - `name`: corresponds to the DiscoveryConfig's name. - `status`: corresponds to DiscoveryConfig's status." }, "pageToken": { "type": "string", "description": "Page token to continue retrieval. Comes from the previous call to ListDiscoveryConfigs. `order_by` field must not change for subsequent calls.", "location": "query" }, "pageSize": { "location": "query", "description": "Size of the page. This value can be limited by a server.", "type": "integer", "format": "int32" } }, "path": "v2/{+parent}/discoveryConfigs", "id": "dlp.projects.locations.discoveryConfigs.list", "parameterOrder": [ "parent" ], "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/discoveryConfigs", "httpMethod": "GET", "description": "Lists discovery configurations.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GooglePrivacyDlpV2ListDiscoveryConfigsResponse" } } } }, "storedInfoTypes": { "methods": { "create": { "path": "v2/{+parent}/storedInfoTypes", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "dlp.projects.locations.storedInfoTypes.create", "parameterOrder": [ "parent" ], "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/storedInfoTypes", "parameters": { "parent": { "type": "string", "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "location": "path" } }, "response": { "$ref": "GooglePrivacyDlpV2StoredInfoType" }, "httpMethod": "POST", "description": "Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", "request": { "$ref": "GooglePrivacyDlpV2CreateStoredInfoTypeRequest" } }, "delete": { "parameters": { "name": { "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/storedInfoTypes/[^/]+$", "required": true, "type": "string", "description": "Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342." } }, "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/storedInfoTypes/{storedInfoTypesId}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GoogleProtobufEmpty" }, "description": "Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", "id": "dlp.projects.locations.storedInfoTypes.delete", "parameterOrder": [ "name" ], "path": "v2/{+name}", "httpMethod": "DELETE" }, "list": { "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/storedInfoTypes", "response": { "$ref": "GooglePrivacyDlpV2ListStoredInfoTypesResponse" }, "description": "Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", "parameterOrder": [ "parent" ], "id": "dlp.projects.locations.storedInfoTypes.list", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v2/{+parent}/storedInfoTypes", "parameters": { "orderBy": { "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.", "type": "string", "location": "query" }, "pageToken": { "description": "Page token to continue retrieval. Comes from the previous call to `ListStoredInfoTypes`.", "location": "query", "type": "string" }, "locationId": { "description": "Deprecated. This field has no effect.", "type": "string", "location": "query" }, "pageSize": { "format": "int32", "type": "integer", "location": "query", "description": "Size of the page. This value can be limited by the server. If zero server returns a page of max size 100." }, "parent": { "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "pattern": "^projects/[^/]+/locations/[^/]+$", "location": "path", "required": true, "type": "string" } }, "httpMethod": "GET" }, "get": { "id": "dlp.projects.locations.storedInfoTypes.get", "parameters": { "name": { "required": true, "location": "path", "type": "string", "description": "Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342.", "pattern": "^projects/[^/]+/locations/[^/]+/storedInfoTypes/[^/]+$" } }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "path": "v2/{+name}", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/storedInfoTypes/{storedInfoTypesId}", "httpMethod": "GET", "description": "Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", "response": { "$ref": "GooglePrivacyDlpV2StoredInfoType" } }, "patch": { "path": "v2/{+name}", "id": "dlp.projects.locations.storedInfoTypes.patch", "description": "Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", "parameterOrder": [ "name" ], "parameters": { "name": { "required": true, "pattern": "^projects/[^/]+/locations/[^/]+/storedInfoTypes/[^/]+$", "type": "string", "description": "Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342.", "location": "path" } }, "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/storedInfoTypes/{storedInfoTypesId}", "response": { "$ref": "GooglePrivacyDlpV2StoredInfoType" }, "httpMethod": "PATCH", "request": { "$ref": "GooglePrivacyDlpV2UpdateStoredInfoTypeRequest" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] } } }, "jobTriggers": { "methods": { "list": { "parameterOrder": [ "parent" ], "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/jobTriggers", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "GET", "parameters": { "pageToken": { "location": "query", "type": "string", "description": "Page token to continue retrieval. Comes from the previous call to ListJobTriggers. `order_by` field must not change for subsequent calls." }, "parent": { "location": "path", "required": true, "type": "string", "description": "Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "pattern": "^projects/[^/]+/locations/[^/]+$" }, "type": { "enumDescriptions": [ "Defaults to INSPECT_JOB.", "The job inspected Google Cloud for sensitive data.", "The job executed a Risk Analysis computation." ], "location": "query", "type": "string", "description": "The type of jobs. Will use `DlpJobType.INSPECT` if not set.", "enum": [ "DLP_JOB_TYPE_UNSPECIFIED", "INSPECT_JOB", "RISK_ANALYSIS_JOB" ] }, "orderBy": { "location": "query", "description": "Comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created. - `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the JobTrigger's name. - `display_name`: corresponds to the JobTrigger's display name. - `status`: corresponds to JobTrigger's status.", "type": "string" }, "filter": { "description": "Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values for inspect triggers: - `status` - HEALTHY|PAUSED|CANCELLED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds are ignored. - 'error_count' - Number of errors that have occurred while running. * The operator must be `=` or `!=` for status and inspected_storage. Examples: * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) * last_run_time \u003e \\\"2017-12-12T00:00:00+00:00\\\" The length of this field should be no more than 500 characters.", "location": "query", "type": "string" }, "locationId": { "type": "string", "description": "Deprecated. This field has no effect.", "location": "query" }, "pageSize": { "format": "int32", "type": "integer", "description": "Size of the page. This value can be limited by a server.", "location": "query" } }, "id": "dlp.projects.locations.jobTriggers.list", "description": "Lists job triggers. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", "path": "v2/{+parent}/jobTriggers", "response": { "$ref": "GooglePrivacyDlpV2ListJobTriggersResponse" } }, "hybridInspect": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "dlp.projects.locations.jobTriggers.hybridInspect", "request": { "$ref": "GooglePrivacyDlpV2HybridInspectJobTriggerRequest" }, "httpMethod": "POST", "path": "v2/{+name}:hybridInspect", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/jobTriggers/{jobTriggersId}:hybridInspect", "parameterOrder": [ "name" ], "response": { "$ref": "GooglePrivacyDlpV2HybridInspectResponse" }, "description": "Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.", "parameters": { "name": { "type": "string", "description": "Required. Resource name of the trigger to execute a hybrid inspect on, for example `projects/dlp-test-project/jobTriggers/53234423`.", "pattern": "^projects/[^/]+/locations/[^/]+/jobTriggers/[^/]+$", "location": "path", "required": true } } }, "patch": { "response": { "$ref": "GooglePrivacyDlpV2JobTrigger" }, "description": "Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", "id": "dlp.projects.locations.jobTriggers.patch", "parameters": { "name": { "required": true, "location": "path", "description": "Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`.", "pattern": "^projects/[^/]+/locations/[^/]+/jobTriggers/[^/]+$", "type": "string" } }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/jobTriggers/{jobTriggersId}", "parameterOrder": [ "name" ], "path": "v2/{+name}", "httpMethod": "PATCH", "request": { "$ref": "GooglePrivacyDlpV2UpdateJobTriggerRequest" } }, "create": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v2/{+parent}/jobTriggers", "parameterOrder": [ "parent" ], "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/jobTriggers", "request": { "$ref": "GooglePrivacyDlpV2CreateJobTriggerRequest" }, "id": "dlp.projects.locations.jobTriggers.create", "response": { "$ref": "GooglePrivacyDlpV2JobTrigger" }, "description": "Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", "parameters": { "parent": { "type": "string", "description": "Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "pattern": "^projects/[^/]+/locations/[^/]+$", "location": "path", "required": true } }, "httpMethod": "POST" }, "activate": { "description": "Activate a job trigger. Causes the immediate execute of a trigger instead of waiting on the trigger event to occur.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/jobTriggers/{jobTriggersId}:activate", "httpMethod": "POST", "response": { "$ref": "GooglePrivacyDlpV2DlpJob" }, "request": { "$ref": "GooglePrivacyDlpV2ActivateJobTriggerRequest" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "parameters": { "name": { "required": true, "location": "path", "description": "Required. Resource name of the trigger to activate, for example `projects/dlp-test-project/jobTriggers/53234423`.", "pattern": "^projects/[^/]+/locations/[^/]+/jobTriggers/[^/]+$", "type": "string" } }, "path": "v2/{+name}:activate", "id": "dlp.projects.locations.jobTriggers.activate" }, "get": { "httpMethod": "GET", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "response": { "$ref": "GooglePrivacyDlpV2JobTrigger" }, "parameters": { "name": { "description": "Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`.", "pattern": "^projects/[^/]+/locations/[^/]+/jobTriggers/[^/]+$", "required": true, "location": "path", "type": "string" } }, "path": "v2/{+name}", "id": "dlp.projects.locations.jobTriggers.get", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/jobTriggers/{jobTriggersId}", "description": "Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more." }, "delete": { "parameterOrder": [ "name" ], "description": "Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", "response": { "$ref": "GoogleProtobufEmpty" }, "parameters": { "name": { "description": "Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`.", "type": "string", "required": true, "pattern": "^projects/[^/]+/locations/[^/]+/jobTriggers/[^/]+$", "location": "path" } }, "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/jobTriggers/{jobTriggersId}", "path": "v2/{+name}", "httpMethod": "DELETE", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "dlp.projects.locations.jobTriggers.delete" } } }, "dlpJobs": { "methods": { "delete": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "DELETE", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/dlpJobs/{dlpJobsId}", "path": "v2/{+name}", "description": "Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.", "parameters": { "name": { "type": "string", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/dlpJobs/[^/]+$", "description": "Required. The name of the DlpJob resource to be deleted.", "required": true } }, "parameterOrder": [ "name" ], "response": { "$ref": "GoogleProtobufEmpty" }, "id": "dlp.projects.locations.dlpJobs.delete" }, "finish": { "parameterOrder": [ "name" ], "parameters": { "name": { "required": true, "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+/dlpJobs/[^/]+$", "description": "Required. The name of the DlpJob resource to be finished.", "location": "path" } }, "httpMethod": "POST", "path": "v2/{+name}:finish", "request": { "$ref": "GooglePrivacyDlpV2FinishDlpJobRequest" }, "description": "Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled actions that have not yet run.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "dlp.projects.locations.dlpJobs.finish", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/dlpJobs/{dlpJobsId}:finish", "response": { "$ref": "GoogleProtobufEmpty" } }, "get": { "response": { "$ref": "GooglePrivacyDlpV2DlpJob" }, "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/dlpJobs/{dlpJobsId}", "parameterOrder": [ "name" ], "httpMethod": "GET", "parameters": { "name": { "location": "path", "required": true, "type": "string", "description": "Required. The name of the DlpJob resource.", "pattern": "^projects/[^/]+/locations/[^/]+/dlpJobs/[^/]+$" } }, "description": "Gets the latest state of a long-running DlpJob. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "dlp.projects.locations.dlpJobs.get", "path": "v2/{+name}" }, "create": { "id": "dlp.projects.locations.dlpJobs.create", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/dlpJobs", "parameterOrder": [ "parent" ], "response": { "$ref": "GooglePrivacyDlpV2DlpJob" }, "path": "v2/{+parent}/dlpJobs", "description": "Creates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.", "parameters": { "parent": { "type": "string", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "description": "Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "required": true } }, "request": { "$ref": "GooglePrivacyDlpV2CreateDlpJobRequest" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "POST" }, "list": { "parameterOrder": [ "parent" ], "httpMethod": "GET", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/dlpJobs", "path": "v2/{+parent}/dlpJobs", "response": { "$ref": "GooglePrivacyDlpV2ListDlpJobsResponse" }, "description": "Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.", "id": "dlp.projects.locations.dlpJobs.list", "parameters": { "type": { "type": "string", "enum": [ "DLP_JOB_TYPE_UNSPECIFIED", "INSPECT_JOB", "RISK_ANALYSIS_JOB" ], "enumDescriptions": [ "Defaults to INSPECT_JOB.", "The job inspected Google Cloud for sensitive data.", "The job executed a Risk Analysis computation." ], "description": "The type of job. Defaults to `DlpJobType.INSPECT`", "location": "query" }, "parent": { "type": "string", "description": "Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "location": "path" }, "pageSize": { "location": "query", "format": "int32", "type": "integer", "description": "The standard list page size." }, "pageToken": { "location": "query", "description": "The standard list page token.", "type": "string" }, "filter": { "description": "Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values for inspect jobs: - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The name of the trigger that created the job. - 'end_time` - Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * Supported fields for risk analysis jobs: - `state` - RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * The operator must be `=` or `!=`. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = done OR state = canceled) * end_time \u003e \\\"2017-12-12T00:00:00+00:00\\\" The length of this field should be no more than 500 characters.", "type": "string", "location": "query" }, "locationId": { "description": "Deprecated. This field has no effect.", "location": "query", "type": "string" }, "orderBy": { "type": "string", "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. - `end_time`: corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state`", "location": "query" } } }, "hybridInspect": { "httpMethod": "POST", "path": "v2/{+name}:hybridInspect", "id": "dlp.projects.locations.dlpJobs.hybridInspect", "parameterOrder": [ "name" ], "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/dlpJobs/{dlpJobsId}:hybridInspect", "response": { "$ref": "GooglePrivacyDlpV2HybridInspectResponse" }, "parameters": { "name": { "location": "path", "required": true, "description": "Required. Resource name of the job to execute a hybrid inspect on, for example `projects/dlp-test-project/dlpJob/53234423`.", "pattern": "^projects/[^/]+/locations/[^/]+/dlpJobs/[^/]+$", "type": "string" } }, "description": "Inspect hybrid content and store findings to a job. To review the findings, inspect the job. Inspection will occur asynchronously.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "request": { "$ref": "GooglePrivacyDlpV2HybridInspectDlpJobRequest" } }, "cancel": { "httpMethod": "POST", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/dlpJobs/{dlpJobsId}:cancel", "parameterOrder": [ "name" ], "request": { "$ref": "GooglePrivacyDlpV2CancelDlpJobRequest" }, "response": { "$ref": "GoogleProtobufEmpty" }, "id": "dlp.projects.locations.dlpJobs.cancel", "description": "Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.", "path": "v2/{+name}:cancel", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "name": { "pattern": "^projects/[^/]+/locations/[^/]+/dlpJobs/[^/]+$", "description": "Required. The name of the DlpJob resource to be cancelled.", "required": true, "location": "path", "type": "string" } } } } } } } } }, "locations": { "resources": { "infoTypes": { "methods": { "list": { "flatPath": "v2/locations/{locationsId}/infoTypes", "path": "v2/{+parent}/infoTypes", "response": { "$ref": "GooglePrivacyDlpV2ListInfoTypesResponse" }, "parameterOrder": [ "parent" ], "httpMethod": "GET", "id": "dlp.locations.infoTypes.list", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Returns a list of the sensitive information types that DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.", "parameters": { "filter": { "description": "filter to only return infoTypes supported by certain parts of the API. Defaults to supported_by=INSPECT.", "location": "query", "type": "string" }, "languageCode": { "type": "string", "description": "BCP-47 language code for localized infoType friendly names. If omitted, or if localized strings are not available, en-US strings will be returned.", "location": "query" }, "parent": { "type": "string", "pattern": "^locations/[^/]+$", "description": "The parent resource name. The format of this value is as follows: locations/ LOCATION_ID", "location": "path", "required": true }, "locationId": { "location": "query", "type": "string", "description": "Deprecated. This field has no effect." } } } } } } }, "infoTypes": { "methods": { "list": { "id": "dlp.infoTypes.list", "parameterOrder": [], "path": "v2/infoTypes", "httpMethod": "GET", "parameters": { "languageCode": { "description": "BCP-47 language code for localized infoType friendly names. If omitted, or if localized strings are not available, en-US strings will be returned.", "type": "string", "location": "query" }, "locationId": { "type": "string", "location": "query", "description": "Deprecated. This field has no effect." }, "parent": { "location": "query", "type": "string", "description": "The parent resource name. The format of this value is as follows: locations/ LOCATION_ID" }, "filter": { "description": "filter to only return infoTypes supported by certain parts of the API. Defaults to supported_by=INSPECT.", "location": "query", "type": "string" } }, "description": "Returns a list of the sensitive information types that DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.", "flatPath": "v2/infoTypes", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GooglePrivacyDlpV2ListInfoTypesResponse" } } } } }, "canonicalName": "DLP", "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", "x32": "http://www.google.com/images/icons/product/search-32.gif" }, "mtlsRootUrl": "https://dlp.mtls.googleapis.com/", "rootUrl": "https://dlp.googleapis.com/", "batchPath": "batch", "name": "dlp", "kind": "discovery#restDescription", "discoveryVersion": "v1", "description": "Discover and protect your sensitive data. A fully managed service designed to help you discover, classify, and protect your valuable data assets with ease.", "servicePath": "", "baseUrl": "https://dlp.googleapis.com/", "version_module": true, "protocol": "rest", "schemas": { "GooglePrivacyDlpV2Result": { "description": "All result fields mentioned below are updated while the job is processing.", "type": "object", "properties": { "totalEstimatedBytes": { "description": "Estimate of the number of bytes to process.", "type": "string", "format": "int64" }, "hybridStats": { "$ref": "GooglePrivacyDlpV2HybridInspectStatistics", "description": "Statistics related to the processing of hybrid inspect." }, "infoTypeStats": { "type": "array", "description": "Statistics of how many instances of each info type were found during inspect job.", "items": { "$ref": "GooglePrivacyDlpV2InfoTypeStats" } }, "numRowsProcessed": { "type": "string", "description": "Number of rows scanned post sampling and time filtering (Applicable for row based stores such as BigQuery).", "format": "int64" }, "processedBytes": { "format": "int64", "description": "Total size in bytes that were processed.", "type": "string" } }, "id": "GooglePrivacyDlpV2Result" }, "GooglePrivacyDlpV2DeidentifyDataSourceDetails": { "description": "The results of a Deidentify action from an inspect job.", "type": "object", "properties": { "requestedOptions": { "description": "De-identification config used for the request.", "$ref": "GooglePrivacyDlpV2RequestedDeidentifyOptions" }, "deidentifyStats": { "description": "Stats about the de-identification operation.", "$ref": "GooglePrivacyDlpV2DeidentifyDataSourceStats" } }, "id": "GooglePrivacyDlpV2DeidentifyDataSourceDetails" }, "GooglePrivacyDlpV2BoundingBox": { "description": "Bounding box encompassing detected text within an image.", "type": "object", "properties": { "width": { "description": "Width of the bounding box in pixels.", "format": "int32", "type": "integer" }, "top": { "description": "Top coordinate of the bounding box. (0,0) is upper left.", "format": "int32", "type": "integer" }, "height": { "type": "integer", "format": "int32", "description": "Height of the bounding box in pixels." }, "left": { "description": "Left coordinate of the bounding box. (0,0) is upper left.", "format": "int32", "type": "integer" } }, "id": "GooglePrivacyDlpV2BoundingBox" }, "GooglePrivacyDlpV2ExclusionRule": { "type": "object", "id": "GooglePrivacyDlpV2ExclusionRule", "description": "The rule that specifies conditions when findings of infoTypes specified in `InspectionRuleSet` are removed from results.", "properties": { "regex": { "description": "Regular expression which defines the rule.", "$ref": "GooglePrivacyDlpV2Regex" }, "excludeByHotword": { "$ref": "GooglePrivacyDlpV2ExcludeByHotword", "description": "Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name." }, "matchingType": { "enum": [ "MATCHING_TYPE_UNSPECIFIED", "MATCHING_TYPE_FULL_MATCH", "MATCHING_TYPE_PARTIAL_MATCH", "MATCHING_TYPE_INVERSE_MATCH" ], "description": "How the rule is applied, see MatchingType documentation for details.", "enumDescriptions": [ "Invalid.", "Full match. - Dictionary: join of Dictionary results matched complete finding quote - Regex: all regex matches fill a finding quote start to end - Exclude info type: completely inside affecting info types findings", "Partial match. - Dictionary: at least one of the tokens in the finding matches - Regex: substring of the finding matches - Exclude info type: intersects with affecting info types findings", "Inverse match. - Dictionary: no tokens in the finding match the dictionary - Regex: finding doesn't match the regex - Exclude info type: no intersection with affecting info types findings" ], "type": "string" }, "dictionary": { "$ref": "GooglePrivacyDlpV2Dictionary", "description": "Dictionary which defines the rule." }, "excludeInfoTypes": { "description": "Set of infoTypes for which findings would affect this rule.", "$ref": "GooglePrivacyDlpV2ExcludeInfoTypes" } } }, "GooglePrivacyDlpV2ListTableDataProfilesResponse": { "id": "GooglePrivacyDlpV2ListTableDataProfilesResponse", "type": "object", "description": "List of profiles generated for a given organization or project.", "properties": { "nextPageToken": { "type": "string", "description": "The next page token." }, "tableDataProfiles": { "items": { "$ref": "GooglePrivacyDlpV2TableDataProfile" }, "type": "array", "description": "List of data profiles." } } }, "GooglePrivacyDlpV2CryptoDeterministicConfig": { "description": "Pseudonymization method that generates deterministic encryption for the given input. Outputs a base64 encoded representation of the encrypted output. Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.", "id": "GooglePrivacyDlpV2CryptoDeterministicConfig", "properties": { "context": { "$ref": "GooglePrivacyDlpV2FieldId", "description": "A context may be used for higher security and maintaining referential integrity such that the same identifier in two different contexts will be given a distinct surrogate. The context is appended to plaintext value being encrypted. On decryption the provided context is validated against the value used during encryption. If a context was provided during encryption, same context must be provided during decryption as well. If the context is not set, plaintext would be used as is for encryption. If the context is set but: 1. there is no record present when transforming a given value or 2. the field is not present when transforming a given value, plaintext would be used as is for encryption. Note that case (1) is expected when an `InfoTypeTransformation` is applied to both structured and unstructured `ContentItem`s." }, "cryptoKey": { "$ref": "GooglePrivacyDlpV2CryptoKey", "description": "The key used by the encryption function. For deterministic encryption using AES-SIV, the provided key is internally expanded to 64 bytes prior to use." }, "surrogateInfoType": { "$ref": "GooglePrivacyDlpV2InfoType", "description": "The custom info type to annotate the surrogate with. This annotation will be applied to the surrogate by prefixing it with the name of the custom info type followed by the number of characters comprising the surrogate. The following scheme defines the format: {info type name}({surrogate character count}):{surrogate} For example, if the name of custom info type is 'MY_TOKEN_INFO_TYPE' and the surrogate is 'abc', the full replacement value will be: 'MY_TOKEN_INFO_TYPE(3):abc' This annotation identifies the surrogate when inspecting content using the custom info type 'Surrogate'. This facilitates reversal of the surrogate when it occurs in free text. Note: For record transformations where the entire cell in a table is being transformed, surrogates are not mandatory. Surrogates are used to denote the location of the token and are necessary for re-identification in free form text. In order for inspection to work properly, the name of this info type must not occur naturally anywhere in your data; otherwise, inspection may either - reverse a surrogate that does not correspond to an actual identifier - be unable to parse the surrogate and result in an error Therefore, choose your custom info type name carefully after considering what your data looks like. One way to select a name that has a high chance of yielding reliable detection is to include one or more unicode characters that are highly improbable to exist in your data. For example, assuming your data is entered from a regular ASCII keyboard, the symbol with the hex code point 29DD might be used like so: ⧝MY_TOKEN_TYPE." } }, "type": "object" }, "GooglePrivacyDlpV2Range": { "id": "GooglePrivacyDlpV2Range", "description": "Generic half-open interval [start, end)", "properties": { "end": { "description": "Index of the last character of the range (exclusive).", "type": "string", "format": "int64" }, "start": { "description": "Index of the first character of the range (inclusive).", "format": "int64", "type": "string" } }, "type": "object" }, "GooglePrivacyDlpV2ColumnDataProfile": { "properties": { "columnType": { "description": "The data type of a given column.", "enum": [ "COLUMN_DATA_TYPE_UNSPECIFIED", "TYPE_INT64", "TYPE_BOOL", "TYPE_FLOAT64", "TYPE_STRING", "TYPE_BYTES", "TYPE_TIMESTAMP", "TYPE_DATE", "TYPE_TIME", "TYPE_DATETIME", "TYPE_GEOGRAPHY", "TYPE_NUMERIC", "TYPE_RECORD", "TYPE_BIGNUMERIC", "TYPE_JSON", "TYPE_INTERVAL", "TYPE_RANGE_DATE", "TYPE_RANGE_DATETIME", "TYPE_RANGE_TIMESTAMP" ], "type": "string", "enumDescriptions": [ "Invalid type.", "Encoded as a string in decimal format.", "Encoded as a boolean \"false\" or \"true\".", "Encoded as a number, or string \"NaN\", \"Infinity\" or \"-Infinity\".", "Encoded as a string value.", "Encoded as a base64 string per RFC 4648, section 4.", "Encoded as an RFC 3339 timestamp with mandatory \"Z\" time zone string: 1985-04-12T23:20:50.52Z", "Encoded as RFC 3339 full-date format string: 1985-04-12", "Encoded as RFC 3339 partial-time format string: 23:20:50.52", "Encoded as RFC 3339 full-date \"T\" partial-time: 1985-04-12T23:20:50.52", "Encoded as WKT", "Encoded as a decimal string.", "Container of ordered fields, each with a type and field name.", "Decimal type.", "Json type.", "Interval type.", "Range type.", "Range type.", "Range type." ] }, "columnInfoType": { "$ref": "GooglePrivacyDlpV2InfoTypeSummary", "description": "If it's been determined this column can be identified as a single type, this will be set. Otherwise the column either has unidentifiable content or mixed types." }, "policyState": { "enum": [ "COLUMN_POLICY_STATE_UNSPECIFIED", "COLUMN_POLICY_TAGGED" ], "description": "Indicates if a policy tag has been applied to the column.", "enumDescriptions": [ "No policy tags.", "Column has policy tag applied." ], "type": "string" }, "profileStatus": { "$ref": "GooglePrivacyDlpV2ProfileStatus", "description": "Success or error status from the most recent profile generation attempt. May be empty if the profile is still being generated." }, "sensitivityScore": { "$ref": "GooglePrivacyDlpV2SensitivityScore", "description": "The sensitivity of this column." }, "freeTextScore": { "type": "number", "description": "The likelihood that this column contains free-form text. A value close to 1 may indicate the column is likely to contain free-form or natural language text. Range in 0-1.", "format": "double" }, "estimatedNullPercentage": { "description": "Approximate percentage of entries being null in the column.", "enum": [ "NULL_PERCENTAGE_LEVEL_UNSPECIFIED", "NULL_PERCENTAGE_VERY_LOW", "NULL_PERCENTAGE_LOW", "NULL_PERCENTAGE_MEDIUM", "NULL_PERCENTAGE_HIGH" ], "type": "string", "enumDescriptions": [ "Unused.", "Very few null entries.", "Some null entries.", "A few null entries.", "A lot of null entries." ] }, "otherMatches": { "description": "Other types found within this column. List will be unordered.", "type": "array", "items": { "$ref": "GooglePrivacyDlpV2OtherInfoTypeSummary" } }, "name": { "type": "string", "description": "The name of the profile." }, "tableDataProfile": { "description": "The resource name of the table data profile.", "type": "string" }, "datasetProjectId": { "description": "The Google Cloud project ID that owns the profiled resource.", "type": "string" }, "tableFullResource": { "description": "The resource name of the resource this column is within.", "type": "string" }, "tableId": { "type": "string", "description": "The BigQuery table ID." }, "profileLastGenerated": { "type": "string", "format": "google-datetime", "description": "The last time the profile was generated." }, "datasetId": { "description": "The BigQuery dataset ID.", "type": "string" }, "estimatedUniquenessScore": { "enum": [ "UNIQUENESS_SCORE_LEVEL_UNSPECIFIED", "UNIQUENESS_SCORE_LOW", "UNIQUENESS_SCORE_MEDIUM", "UNIQUENESS_SCORE_HIGH" ], "type": "string", "description": "Approximate uniqueness of the column.", "enumDescriptions": [ "Some columns do not have estimated uniqueness. Possible reasons include having too few values.", "Low uniqueness, possibly a boolean, enum or similiarly typed column.", "Medium uniqueness.", "High uniqueness, possibly a column of free text or unique identifiers." ] }, "state": { "type": "string", "description": "State of a profile.", "enumDescriptions": [ "Unused.", "The profile is currently running. Once a profile has finished it will transition to DONE.", "The profile is no longer generating. If profile_status.status.code is 0, the profile succeeded, otherwise, it failed." ], "enum": [ "STATE_UNSPECIFIED", "RUNNING", "DONE" ] }, "dataRiskLevel": { "$ref": "GooglePrivacyDlpV2DataRiskLevel", "description": "The data risk level for this column." }, "datasetLocation": { "description": "The BigQuery location where the dataset's data is stored. See https://cloud.google.com/bigquery/docs/locations for supported locations.", "type": "string" }, "column": { "type": "string", "description": "The name of the column." } }, "id": "GooglePrivacyDlpV2ColumnDataProfile", "type": "object", "description": "The profile for a scanned column within a table." }, "GooglePrivacyDlpV2KMapEstimationConfig": { "type": "object", "id": "GooglePrivacyDlpV2KMapEstimationConfig", "properties": { "auxiliaryTables": { "type": "array", "description": "Several auxiliary tables can be used in the analysis. Each custom_tag used to tag a quasi-identifiers column must appear in exactly one column of one auxiliary table.", "items": { "$ref": "GooglePrivacyDlpV2AuxiliaryTable" } }, "quasiIds": { "description": "Required. Fields considered to be quasi-identifiers. No two columns can have the same tag.", "type": "array", "items": { "$ref": "GooglePrivacyDlpV2TaggedField" } }, "regionCode": { "type": "string", "description": "ISO 3166-1 alpha-2 region code to use in the statistical modeling. Set if no column is tagged with a region-specific InfoType (like US_ZIP_5) or a region code." } }, "description": "Reidentifiability metric. This corresponds to a risk model similar to what is called \"journalist risk\" in the literature, except the attack dataset is statistically modeled instead of being perfectly known. This can be done using publicly available data (like the US Census), or using a custom statistical model (indicated as one or several BigQuery tables), or by extrapolating from the distribution of values in the input dataset." }, "GooglePrivacyDlpV2ReidentifyContentResponse": { "id": "GooglePrivacyDlpV2ReidentifyContentResponse", "properties": { "overview": { "$ref": "GooglePrivacyDlpV2TransformationOverview", "description": "An overview of the changes that were made to the `item`." }, "item": { "$ref": "GooglePrivacyDlpV2ContentItem", "description": "The re-identified item." } }, "type": "object", "description": "Results of re-identifying an item." }, "GooglePrivacyDlpV2InfoTypeLikelihood": { "description": "Configuration for setting a minimum likelihood per infotype. Used to customize the minimum likelihood level for specific infotypes in the request. For example, use this if you want to lower the precision for PERSON_NAME without lowering the precision for the other infotypes in the request.", "type": "object", "id": "GooglePrivacyDlpV2InfoTypeLikelihood", "properties": { "minLikelihood": { "description": "Only returns findings equal to or above this threshold. This field is required or else the configuration fails.", "enum": [ "LIKELIHOOD_UNSPECIFIED", "VERY_UNLIKELY", "UNLIKELY", "POSSIBLE", "LIKELY", "VERY_LIKELY" ], "enumDescriptions": [ "Default value; same as POSSIBLE.", "Highest chance of a false positive.", "High chance of a false positive.", "Some matching signals. The default value.", "Low chance of a false positive.", "Confidence level is high. Lowest chance of a false positive." ], "type": "string" }, "infoType": { "$ref": "GooglePrivacyDlpV2InfoType", "description": "Type of information the likelihood threshold applies to. Only one likelihood per info_type should be provided. If InfoTypeLikelihood does not have an info_type, the configuration fails." } } }, "GooglePrivacyDlpV2DatabaseResourceRegex": { "type": "object", "id": "GooglePrivacyDlpV2DatabaseResourceRegex", "properties": { "databaseResourceNameRegex": { "description": "Regex to test the database resource's name against. An example of a database resource name is a table's name. Other database resource names like view names could be included in the future. If empty, all database resources match.", "type": "string" }, "databaseRegex": { "type": "string", "description": "Regex to test the database name against. If empty, all databases match." }, "instanceRegex": { "type": "string", "description": "Regex to test the instance name against. If empty, all instances match." }, "projectIdRegex": { "type": "string", "description": "For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project." } }, "description": "A pattern to match against one or more database resources. At least one pattern must be specified. Regular expressions use RE2 [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found under the google/re2 repository on GitHub." }, "GoogleTypeTimeOfDay": { "description": "Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.", "id": "GoogleTypeTimeOfDay", "properties": { "nanos": { "type": "integer", "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", "format": "int32" }, "minutes": { "description": "Minutes of hour of day. Must be from 0 to 59.", "format": "int32", "type": "integer" }, "hours": { "format": "int32", "type": "integer", "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time." }, "seconds": { "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", "type": "integer", "format": "int32" } }, "type": "object" }, "GooglePrivacyDlpV2StoredInfoTypeVersion": { "type": "object", "properties": { "createTime": { "format": "google-datetime", "type": "string", "description": "Create timestamp of the version. Read-only, determined by the system when the version is created." }, "errors": { "items": { "$ref": "GooglePrivacyDlpV2Error" }, "description": "Errors that occurred when creating this storedInfoType version, or anomalies detected in the storedInfoType data that render it unusable. Only the five most recent errors will be displayed, with the most recent error appearing first. For example, some of the data for stored custom dictionaries is put in the user's Cloud Storage bucket, and if this data is modified or deleted by the user or another system, the dictionary becomes invalid. If any errors occur, fix the problem indicated by the error message and use the UpdateStoredInfoType API method to create another version of the storedInfoType to continue using it, reusing the same `config` if it was not the source of the error.", "type": "array" }, "stats": { "$ref": "GooglePrivacyDlpV2StoredInfoTypeStats", "description": "Statistics about this storedInfoType version." }, "config": { "$ref": "GooglePrivacyDlpV2StoredInfoTypeConfig", "description": "StoredInfoType configuration." }, "state": { "enum": [ "STORED_INFO_TYPE_STATE_UNSPECIFIED", "PENDING", "READY", "FAILED", "INVALID" ], "type": "string", "description": "Stored info type version state. Read-only, updated by the system during dictionary creation.", "enumDescriptions": [ "Unused", "StoredInfoType version is being created.", "StoredInfoType version is ready for use.", "StoredInfoType creation failed. All relevant error messages are returned in the `StoredInfoTypeVersion` message.", "StoredInfoType is no longer valid because artifacts stored in user-controlled storage were modified. To fix an invalid StoredInfoType, use the `UpdateStoredInfoType` method to create a new version." ] } }, "description": "Version of a StoredInfoType, including the configuration used to build it, create timestamp, and current state.", "id": "GooglePrivacyDlpV2StoredInfoTypeVersion" }, "GooglePrivacyDlpV2StoredInfoType": { "type": "object", "description": "StoredInfoType resource message that contains information about the current version and any pending updates.", "properties": { "name": { "type": "string", "description": "Resource name." }, "currentVersion": { "$ref": "GooglePrivacyDlpV2StoredInfoTypeVersion", "description": "Current version of the stored info type." }, "pendingVersions": { "type": "array", "description": "Pending versions of the stored info type. Empty if no versions are pending.", "items": { "$ref": "GooglePrivacyDlpV2StoredInfoTypeVersion" } } }, "id": "GooglePrivacyDlpV2StoredInfoType" }, "GooglePrivacyDlpV2DataProfilePubSubCondition": { "description": "A condition for determining whether a Pub/Sub should be triggered.", "type": "object", "id": "GooglePrivacyDlpV2DataProfilePubSubCondition", "properties": { "expressions": { "description": "An expression.", "$ref": "GooglePrivacyDlpV2PubSubExpressions" } } }, "GooglePrivacyDlpV2StoredType": { "type": "object", "id": "GooglePrivacyDlpV2StoredType", "properties": { "name": { "type": "string", "description": "Resource name of the requested `StoredInfoType`, for example `organizations/433245324/storedInfoTypes/432452342` or `projects/project-id/storedInfoTypes/432452342`." }, "createTime": { "description": "Timestamp indicating when the version of the `StoredInfoType` used for inspection was created. Output-only field, populated by the system.", "type": "string", "format": "google-datetime" } }, "description": "A reference to a StoredInfoType to use with scanning." }, "GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails": { "id": "GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails", "properties": { "kMapEstimationResult": { "description": "K-map result", "$ref": "GooglePrivacyDlpV2KMapEstimationResult" }, "requestedPrivacyMetric": { "description": "Privacy metric to compute.", "$ref": "GooglePrivacyDlpV2PrivacyMetric" }, "lDiversityResult": { "description": "L-divesity result", "$ref": "GooglePrivacyDlpV2LDiversityResult" }, "kAnonymityResult": { "description": "K-anonymity result", "$ref": "GooglePrivacyDlpV2KAnonymityResult" }, "categoricalStatsResult": { "description": "Categorical stats result", "$ref": "GooglePrivacyDlpV2CategoricalStatsResult" }, "requestedSourceTable": { "description": "Input dataset to compute metrics over.", "$ref": "GooglePrivacyDlpV2BigQueryTable" }, "requestedOptions": { "$ref": "GooglePrivacyDlpV2RequestedRiskAnalysisOptions", "description": "The configuration used for this job." }, "numericalStatsResult": { "$ref": "GooglePrivacyDlpV2NumericalStatsResult", "description": "Numerical stats result" }, "deltaPresenceEstimationResult": { "$ref": "GooglePrivacyDlpV2DeltaPresenceEstimationResult", "description": "Delta-presence result" } }, "type": "object", "description": "Result of a risk analysis operation request." }, "GooglePrivacyDlpV2FinishDlpJobRequest": { "type": "object", "description": "The request message for finishing a DLP hybrid job.", "properties": {}, "id": "GooglePrivacyDlpV2FinishDlpJobRequest" }, "GooglePrivacyDlpV2UpdateInspectTemplateRequest": { "description": "Request message for UpdateInspectTemplate.", "id": "GooglePrivacyDlpV2UpdateInspectTemplateRequest", "properties": { "inspectTemplate": { "description": "New InspectTemplate value.", "$ref": "GooglePrivacyDlpV2InspectTemplate" }, "updateMask": { "format": "google-fieldmask", "description": "Mask to control which fields get updated.", "type": "string" } }, "type": "object" }, "GooglePrivacyDlpV2ThrowError": { "description": "Throw an error and fail the request when a transformation error occurs.", "type": "object", "id": "GooglePrivacyDlpV2ThrowError", "properties": {} }, "GooglePrivacyDlpV2TransformationSummary": { "id": "GooglePrivacyDlpV2TransformationSummary", "properties": { "results": { "type": "array", "description": "Collection of all transformations that took place or had an error.", "items": { "$ref": "GooglePrivacyDlpV2SummaryResult" } }, "transformation": { "description": "The specific transformation these stats apply to.", "$ref": "GooglePrivacyDlpV2PrimitiveTransformation" }, "recordSuppress": { "description": "The specific suppression option these stats apply to.", "$ref": "GooglePrivacyDlpV2RecordSuppression" }, "transformedBytes": { "format": "int64", "type": "string", "description": "Total size in bytes that were transformed in some way." }, "fieldTransformations": { "type": "array", "items": { "$ref": "GooglePrivacyDlpV2FieldTransformation" }, "description": "The field transformation that was applied. If multiple field transformations are requested for a single field, this list will contain all of them; otherwise, only one is supplied." }, "field": { "$ref": "GooglePrivacyDlpV2FieldId", "description": "Set if the transformation was limited to a specific FieldId." }, "infoType": { "$ref": "GooglePrivacyDlpV2InfoType", "description": "Set if the transformation was limited to a specific InfoType." } }, "description": "Summary of a single transformation. Only one of 'transformation', 'field_transformation', or 'record_suppress' will be set.", "type": "object" }, "GooglePrivacyDlpV2OutputStorageConfig": { "id": "GooglePrivacyDlpV2OutputStorageConfig", "description": "Cloud repository for storing output.", "properties": { "outputSchema": { "enum": [ "OUTPUT_SCHEMA_UNSPECIFIED", "BASIC_COLUMNS", "GCS_COLUMNS", "DATASTORE_COLUMNS", "BIG_QUERY_COLUMNS", "ALL_COLUMNS" ], "enumDescriptions": [ "Unused.", "Basic schema including only `info_type`, `quote`, `certainty`, and `timestamp`.", "Schema tailored to findings from scanning Cloud Storage.", "Schema tailored to findings from scanning Google Datastore.", "Schema tailored to findings from scanning Google BigQuery.", "Schema containing all columns." ], "description": "Schema used for writing the findings for Inspect jobs. This field is only used for Inspect and must be unspecified for Risk jobs. Columns are derived from the `Finding` object. If appending to an existing table, any columns from the predefined schema that are missing will be added. No columns in the existing table will be deleted. If unspecified, then all available columns will be used for a new table or an (existing) table with no schema, and no changes will be made to an existing table that has a schema. Only for use with external storage.", "type": "string" }, "table": { "$ref": "GooglePrivacyDlpV2BigQueryTable", "description": "Store findings in an existing table or a new table in an existing dataset. If table_id is not set a new one will be generated for you with the following format: dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used for generating the date details. For Inspect, each column in an existing output table must have the same name, type, and mode of a field in the `Finding` object. For Risk, an existing output table should be the output of a previous Risk analysis job run on the same source table, with the same privacy metric and quasi-identifiers. Risk jobs that analyze the same table but compute a different privacy metric, or use different sets of quasi-identifiers, cannot store their results in the same table." } }, "type": "object" }, "GooglePrivacyDlpV2DlpJob": { "properties": { "name": { "description": "The server-assigned name.", "type": "string" }, "createTime": { "type": "string", "description": "Time when the job was created.", "format": "google-datetime" }, "state": { "type": "string", "enum": [ "JOB_STATE_UNSPECIFIED", "PENDING", "RUNNING", "DONE", "CANCELED", "FAILED", "ACTIVE" ], "enumDescriptions": [ "Unused.", "The job has not yet started.", "The job is currently running. Once a job has finished it will transition to FAILED or DONE.", "The job is no longer running.", "The job was canceled before it could be completed.", "The job had an error and did not complete.", "The job is currently accepting findings via hybridInspect. A hybrid job in ACTIVE state may continue to have findings added to it through the calling of hybridInspect. After the job has finished no more calls to hybridInspect may be made. ACTIVE jobs can transition to DONE." ], "description": "State of a job." }, "type": { "enum": [ "DLP_JOB_TYPE_UNSPECIFIED", "INSPECT_JOB", "RISK_ANALYSIS_JOB" ], "enumDescriptions": [ "Defaults to INSPECT_JOB.", "The job inspected Google Cloud for sensitive data.", "The job executed a Risk Analysis computation." ], "type": "string", "description": "The type of job." }, "endTime": { "format": "google-datetime", "type": "string", "description": "Time when the job finished." }, "actionDetails": { "type": "array", "description": "Events that should occur after the job has completed.", "items": { "$ref": "GooglePrivacyDlpV2ActionDetails" } }, "jobTriggerName": { "type": "string", "description": "If created by a job trigger, the resource name of the trigger that instantiated the job." }, "lastModified": { "type": "string", "format": "google-datetime", "description": "Time when the job was last modified by the system." }, "errors": { "description": "A stream of errors encountered running the job.", "items": { "$ref": "GooglePrivacyDlpV2Error" }, "type": "array" }, "riskDetails": { "$ref": "GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails", "description": "Results from analyzing risk of a data source." }, "startTime": { "description": "Time when the job started.", "type": "string", "format": "google-datetime" }, "inspectDetails": { "description": "Results from inspecting a data source.", "$ref": "GooglePrivacyDlpV2InspectDataSourceDetails" } }, "id": "GooglePrivacyDlpV2DlpJob", "description": "Combines all of the information about a DLP job.", "type": "object" }, "GooglePrivacyDlpV2SensitivityScore": { "type": "object", "id": "GooglePrivacyDlpV2SensitivityScore", "description": "Score is calculated from of all elements in the data profile. A higher level means the data is more sensitive.", "properties": { "score": { "description": "The sensitivity score applied to the resource.", "enumDescriptions": [ "Unused.", "No sensitive information detected. The resource isn't publicly accessible.", "Medium risk. Contains personally identifiable information (PII), potentially sensitive data, or fields with free-text data that are at a higher risk of having intermittent sensitive data. Consider limiting access.", "High risk. Sensitive personally identifiable information (SPII) can be present. Exfiltration of data can lead to user data loss. Re-identification of users might be possible. Consider limiting usage and or removing SPII." ], "type": "string", "enum": [ "SENSITIVITY_SCORE_UNSPECIFIED", "SENSITIVITY_LOW", "SENSITIVITY_MODERATE", "SENSITIVITY_HIGH" ] } } }, "GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence": { "type": "object", "description": "How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity.", "id": "GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence", "properties": { "refreshFrequency": { "enum": [ "UPDATE_FREQUENCY_UNSPECIFIED", "UPDATE_FREQUENCY_NEVER", "UPDATE_FREQUENCY_DAILY", "UPDATE_FREQUENCY_MONTHLY" ], "enumDescriptions": [ "Unspecified.", "After the data profile is created, it will never be updated.", "The data profile can be updated up to once every 24 hours.", "The data profile can be updated up to once every 30 days. Default." ], "description": "Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never.", "type": "string" }, "schemaModifiedCadence": { "$ref": "GooglePrivacyDlpV2SchemaModifiedCadence", "description": "When to reprofile if the schema has changed." } } }, "GooglePrivacyDlpV2PartitionId": { "properties": { "projectId": { "type": "string", "description": "The ID of the project to which the entities belong." }, "namespaceId": { "type": "string", "description": "If not empty, the ID of the namespace to which the entities belong." } }, "description": "Datastore partition ID. A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID.", "type": "object", "id": "GooglePrivacyDlpV2PartitionId" }, "GooglePrivacyDlpV2ExcludeByHotword": { "type": "object", "id": "GooglePrivacyDlpV2ExcludeByHotword", "description": "The rule to exclude findings based on a hotword. For record inspection of tables, column names are considered hotwords. An example of this is to exclude a finding if it belongs to a BigQuery column that matches a specific pattern.", "properties": { "proximity": { "$ref": "GooglePrivacyDlpV2Proximity", "description": "Range of characters within which the entire hotword must reside. The total length of the window cannot exceed 1000 characters. The windowBefore property in proximity should be set to 1 if the hotword needs to be included in a column header." }, "hotwordRegex": { "description": "Regular expression pattern defining what qualifies as a hotword.", "$ref": "GooglePrivacyDlpV2Regex" } } }, "GooglePrivacyDlpV2JobNotificationEmails": { "type": "object", "id": "GooglePrivacyDlpV2JobNotificationEmails", "description": "Sends an email when the job completes. The email goes to IAM project owners and technical [Essential Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts).", "properties": {} }, "GooglePrivacyDlpV2InspectContentRequest": { "description": "Request to search for potentially sensitive info in a ContentItem.", "properties": { "locationId": { "type": "string", "description": "Deprecated. This field has no effect." }, "inspectConfig": { "$ref": "GooglePrivacyDlpV2InspectConfig", "description": "Configuration for the inspector. What specified here will override the template referenced by the inspect_template_name argument." }, "inspectTemplateName": { "type": "string", "description": "Template to use. Any configuration directly specified in inspect_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged." }, "item": { "$ref": "GooglePrivacyDlpV2ContentItem", "description": "The item to inspect." } }, "id": "GooglePrivacyDlpV2InspectContentRequest", "type": "object" }, "GooglePrivacyDlpV2InfoType": { "id": "GooglePrivacyDlpV2InfoType", "description": "Type of information detected by the API.", "type": "object", "properties": { "name": { "type": "string", "description": "Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference when specifying a built-in type. When sending Cloud DLP results to Data Catalog, infoType names should conform to the pattern `[A-Za-z0-9$_-]{1,64}`." }, "sensitivityScore": { "$ref": "GooglePrivacyDlpV2SensitivityScore", "description": "Optional custom sensitivity for this InfoType. This only applies to data profiling." }, "version": { "type": "string", "description": "Optional version name for this InfoType." } } }, "GooglePrivacyDlpV2DataProfileLocation": { "properties": { "organizationId": { "format": "int64", "type": "string", "description": "The ID of an organization to scan." }, "folderId": { "type": "string", "description": "The ID of the Folder within an organization to scan.", "format": "int64" } }, "id": "GooglePrivacyDlpV2DataProfileLocation", "description": "The data that will be profiled.", "type": "object" }, "GooglePrivacyDlpV2CloudStorageFileSet": { "type": "object", "properties": { "url": { "description": "The url, in the format `gs:///`. Trailing wildcard in the path is allowed.", "type": "string" } }, "description": "Message representing a set of files in Cloud Storage.", "id": "GooglePrivacyDlpV2CloudStorageFileSet" }, "GooglePrivacyDlpV2HybridOptions": { "id": "GooglePrivacyDlpV2HybridOptions", "properties": { "description": { "description": "A short description of where the data is coming from. Will be stored once in the job. 256 max length.", "type": "string" }, "labels": { "description": "To organize findings, these labels will be added to each finding. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. No more than 10 labels can be associated with a given finding. Examples: * `\"environment\" : \"production\"` * `\"pipeline\" : \"etl\"`", "type": "object", "additionalProperties": { "type": "string" } }, "tableOptions": { "description": "If the container is a table, additional information to make findings meaningful such as the columns that are primary keys.", "$ref": "GooglePrivacyDlpV2TableOptions" }, "requiredFindingLabelKeys": { "type": "array", "description": "These are labels that each inspection request must include within their 'finding_labels' map. Request may contain others, but any missing one of these will be rejected. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. No more than 10 keys can be required.", "items": { "type": "string" } } }, "description": "Configuration to control jobs where the content being inspected is outside of Google Cloud Platform.", "type": "object" }, "GooglePrivacyDlpV2ListStoredInfoTypesResponse": { "description": "Response message for ListStoredInfoTypes.", "type": "object", "properties": { "nextPageToken": { "type": "string", "description": "If the next page is available then the next page token to be used in the following ListStoredInfoTypes request." }, "storedInfoTypes": { "items": { "$ref": "GooglePrivacyDlpV2StoredInfoType" }, "description": "List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest.", "type": "array" } }, "id": "GooglePrivacyDlpV2ListStoredInfoTypesResponse" }, "GooglePrivacyDlpV2AllText": { "id": "GooglePrivacyDlpV2AllText", "type": "object", "properties": {}, "description": "Apply to all text." }, "GooglePrivacyDlpV2Table": { "type": "object", "id": "GooglePrivacyDlpV2Table", "properties": { "headers": { "type": "array", "description": "Headers of the table.", "items": { "$ref": "GooglePrivacyDlpV2FieldId" } }, "rows": { "items": { "$ref": "GooglePrivacyDlpV2Row" }, "description": "Rows of the table.", "type": "array" } }, "description": "Structured content to inspect. Up to 50,000 `Value`s per request allowed. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-structured-text#inspecting_a_table to learn more." }, "GooglePrivacyDlpV2Regex": { "id": "GooglePrivacyDlpV2Regex", "description": "Message defining a custom regular expression.", "type": "object", "properties": { "pattern": { "type": "string", "description": "Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub." }, "groupIndexes": { "type": "array", "items": { "type": "integer", "format": "int32" }, "description": "The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included." } } }, "GooglePrivacyDlpV2CategoricalStatsConfig": { "type": "object", "properties": { "field": { "$ref": "GooglePrivacyDlpV2FieldId", "description": "Field to compute categorical stats on. All column types are supported except for arrays and structs. However, it may be more informative to use NumericalStats when the field type is supported, depending on the data." } }, "description": "Compute numerical stats over an individual column, including number of distinct values and value count distribution.", "id": "GooglePrivacyDlpV2CategoricalStatsConfig" }, "GooglePrivacyDlpV2BigQueryOptions": { "description": "Options defining BigQuery table and row identifiers.", "properties": { "sampleMethod": { "enum": [ "SAMPLE_METHOD_UNSPECIFIED", "TOP", "RANDOM_START" ], "description": "How to sample the data.", "type": "string", "enumDescriptions": [ "No sampling.", "Scan groups of rows in the order BigQuery provides (default). Multiple groups of rows may be scanned in parallel, so results may not appear in the same order the rows are read.", "Randomly pick groups of rows to scan." ] }, "excludedFields": { "items": { "$ref": "GooglePrivacyDlpV2FieldId" }, "type": "array", "description": "References to fields excluded from scanning. This allows you to skip inspection of entire columns which you know have no findings. When inspecting a table, we recommend that you inspect all columns. Otherwise, findings might be affected because hints from excluded columns will not be used." }, "identifyingFields": { "description": "Table fields that may uniquely identify a row within the table. When `actions.saveFindings.outputConfig.table` is specified, the values of columns specified here are available in the output table under `location.content_locations.record_location.record_key.id_values`. Nested fields such as `person.birthdate.year` are allowed.", "type": "array", "items": { "$ref": "GooglePrivacyDlpV2FieldId" } }, "includedFields": { "type": "array", "items": { "$ref": "GooglePrivacyDlpV2FieldId" }, "description": "Limit scanning only to these fields. When inspecting a table, we recommend that you inspect all columns. Otherwise, findings might be affected because hints from excluded columns will not be used." }, "rowsLimitPercent": { "description": "Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of rows_limit and rows_limit_percent can be specified. Cannot be used in conjunction with TimespanConfig. Caution: A [known issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) is causing the `rowsLimitPercent` field to behave unexpectedly. We recommend using `rowsLimit` instead.", "format": "int32", "type": "integer" }, "tableReference": { "$ref": "GooglePrivacyDlpV2BigQueryTable", "description": "Complete BigQuery table reference." }, "rowsLimit": { "format": "int64", "description": "Max number of rows to scan. If the table has more rows than this value, the rest of the rows are omitted. If not set, or if set to 0, all rows will be scanned. Only one of rows_limit and rows_limit_percent can be specified. Cannot be used in conjunction with TimespanConfig.", "type": "string" } }, "type": "object", "id": "GooglePrivacyDlpV2BigQueryOptions" }, "GooglePrivacyDlpV2DocumentLocation": { "id": "GooglePrivacyDlpV2DocumentLocation", "properties": { "fileOffset": { "type": "string", "format": "int64", "description": "Offset of the line, from the beginning of the file, where the finding is located." } }, "description": "Location of a finding within a document.", "type": "object" }, "GooglePrivacyDlpV2CloudStorageRegexFileSet": { "description": "Message representing a set of files in a Cloud Storage bucket. Regular expressions are used to allow fine-grained control over which files in the bucket to include. Included files are those that match at least one item in `include_regex` and do not match any items in `exclude_regex`. Note that a file that matches items from both lists will _not_ be included. For a match to occur, the entire file path (i.e., everything in the url after the bucket name) must match the regular expression. For example, given the input `{bucket_name: \"mybucket\", include_regex: [\"directory1/.*\"], exclude_regex: [\"directory1/excluded.*\"]}`: * `gs://mybucket/directory1/myfile` will be included * `gs://mybucket/directory1/directory2/myfile` will be included (`.*` matches across `/`) * `gs://mybucket/directory0/directory1/myfile` will _not_ be included (the full path doesn't match any items in `include_regex`) * `gs://mybucket/directory1/excludedfile` will _not_ be included (the path matches an item in `exclude_regex`) If `include_regex` is left empty, it will match all files by default (this is equivalent to setting `include_regex: [\".*\"]`). Some other common use cases: * `{bucket_name: \"mybucket\", exclude_regex: [\".*\\.pdf\"]}` will include all files in `mybucket` except for .pdf files * `{bucket_name: \"mybucket\", include_regex: [\"directory/[^/]+\"]}` will include all files directly under `gs://mybucket/directory/`, without matching across `/`", "properties": { "includeRegex": { "items": { "type": "string" }, "type": "array", "description": "A list of regular expressions matching file paths to include. All files in the bucket that match at least one of these regular expressions will be included in the set of files, except for those that also match an item in `exclude_regex`. Leaving this field empty will match all files by default (this is equivalent to including `.*` in the list). Regular expressions use RE2 [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found under the google/re2 repository on GitHub." }, "excludeRegex": { "items": { "type": "string" }, "type": "array", "description": "A list of regular expressions matching file paths to exclude. All files in the bucket that match at least one of these regular expressions will be excluded from the scan. Regular expressions use RE2 [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found under the google/re2 repository on GitHub." }, "bucketName": { "type": "string", "description": "The name of a Cloud Storage bucket. Required." } }, "type": "object", "id": "GooglePrivacyDlpV2CloudStorageRegexFileSet" }, "GooglePrivacyDlpV2BigQueryTableTypes": { "id": "GooglePrivacyDlpV2BigQueryTableTypes", "description": "The types of BigQuery tables supported by Cloud DLP.", "properties": { "types": { "description": "A set of BigQuery table types.", "items": { "type": "string", "enumDescriptions": [ "Unused.", "A normal BigQuery table.", "A table that references data stored in Cloud Storage." ], "enum": [ "BIG_QUERY_TABLE_TYPE_UNSPECIFIED", "BIG_QUERY_TABLE_TYPE_TABLE", "BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE" ] }, "type": "array" } }, "type": "object" }, "GooglePrivacyDlpV2PubSubExpressions": { "id": "GooglePrivacyDlpV2PubSubExpressions", "type": "object", "description": "An expression, consisting of an operator and conditions.", "properties": { "conditions": { "items": { "$ref": "GooglePrivacyDlpV2PubSubCondition" }, "description": "Conditions to apply to the expression.", "type": "array" }, "logicalOperator": { "type": "string", "enumDescriptions": [ "Unused.", "Conditional OR.", "Conditional AND." ], "enum": [ "LOGICAL_OPERATOR_UNSPECIFIED", "OR", "AND" ], "description": "The operator to apply to the collection of conditions." } } }, "GooglePrivacyDlpV2SecretManagerCredential": { "description": "A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager [charges apply](https://cloud.google.com/secret-manager/pricing).", "id": "GooglePrivacyDlpV2SecretManagerCredential", "type": "object", "properties": { "passwordSecretVersionName": { "description": "Required. The name of the Secret Manager resource that stores the password, in the form \"projects/project-id/secrets/secret-name/versions/version\".", "type": "string" }, "username": { "type": "string", "description": "Required. The username." } } }, "GooglePrivacyDlpV2DiscoveryBigQueryFilter": { "type": "object", "id": "GooglePrivacyDlpV2DiscoveryBigQueryFilter", "description": "Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, dataset ID, and table ID.", "properties": { "otherTables": { "$ref": "GooglePrivacyDlpV2AllOtherBigQueryTables", "description": "Catch-all. This should always be the last filter in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically." }, "tables": { "description": "A specific set of tables for this filter to apply to. A table collection must be specified in only one filter per config. If a table id or dataset is empty, Cloud DLP assumes all tables in that collection must be profiled. Must specify a project ID.", "$ref": "GooglePrivacyDlpV2BigQueryTableCollection" } } }, "GooglePrivacyDlpV2SaveFindings": { "properties": { "outputConfig": { "$ref": "GooglePrivacyDlpV2OutputStorageConfig", "description": "Location to store findings outside of DLP." } }, "id": "GooglePrivacyDlpV2SaveFindings", "description": "If set, the detailed findings will be persisted to the specified OutputStorageConfig. Only a single instance of this action can be specified. Compatible with: Inspect, Risk", "type": "object" }, "GooglePrivacyDlpV2ContentLocation": { "type": "object", "id": "GooglePrivacyDlpV2ContentLocation", "description": "Precise location of the finding within a document, record, image, or metadata container.", "properties": { "containerTimestamp": { "type": "string", "format": "google-datetime", "description": "Finding container modification timestamp, if applicable. For Cloud Storage, this field contains the last file modification timestamp. For a BigQuery table, this field contains the last_modified_time property. For Datastore, this field isn't populated." }, "containerVersion": { "type": "string", "description": "Finding container version, if available (\"generation\" for Cloud Storage)." }, "documentLocation": { "$ref": "GooglePrivacyDlpV2DocumentLocation", "description": "Location data for document files." }, "metadataLocation": { "$ref": "GooglePrivacyDlpV2MetadataLocation", "description": "Location within the metadata for inspected content." }, "imageLocation": { "description": "Location within an image's pixels.", "$ref": "GooglePrivacyDlpV2ImageLocation" }, "recordLocation": { "$ref": "GooglePrivacyDlpV2RecordLocation", "description": "Location within a row or record of a database table." }, "containerName": { "type": "string", "description": "Name of the container where the finding is located. The top level name is the source file name or table name. Names of some common storage containers are formatted as follows: * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` * Cloud Storage files: `gs://{bucket}/{path}` * Datastore namespace: {namespace} Nested names could be absent if the embedded object has no string identifier (for example, an image contained within a document)." } } }, "GooglePrivacyDlpV2LargeCustomDictionaryConfig": { "id": "GooglePrivacyDlpV2LargeCustomDictionaryConfig", "properties": { "cloudStorageFileSet": { "$ref": "GooglePrivacyDlpV2CloudStorageFileSet", "description": "Set of files containing newline-delimited lists of dictionary phrases." }, "outputPath": { "$ref": "GooglePrivacyDlpV2CloudStoragePath", "description": "Location to store dictionary artifacts in Cloud Storage. These files will only be accessible by project owners and the DLP API. If any of these artifacts are modified, the dictionary is considered invalid and can no longer be used." }, "bigQueryField": { "$ref": "GooglePrivacyDlpV2BigQueryField", "description": "Field in a BigQuery table where each cell represents a dictionary phrase." } }, "description": "Configuration for a custom dictionary created from a data source of any size up to the maximum size defined in the [limits](https://cloud.google.com/sensitive-data-protection/limits) page. The artifacts of dictionary creation are stored in the specified Cloud Storage location. Consider using `CustomInfoType.Dictionary` for smaller dictionaries that satisfy the size requirements.", "type": "object" }, "GoogleTypeDate": { "id": "GoogleTypeDate", "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "type": "object", "properties": { "day": { "format": "int32", "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.", "type": "integer" }, "month": { "type": "integer", "format": "int32", "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day." }, "year": { "format": "int32", "type": "integer", "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year." } } }, "GooglePrivacyDlpV2BucketingConfig": { "properties": { "buckets": { "description": "Set of buckets. Ranges must be non-overlapping.", "items": { "$ref": "GooglePrivacyDlpV2Bucket" }, "type": "array" } }, "type": "object", "id": "GooglePrivacyDlpV2BucketingConfig", "description": "Generalization function that buckets values based on ranges. The ranges and replacement values are dynamically provided by the user for custom behavior, such as 1-30 -\u003e LOW 31-65 -\u003e MEDIUM 66-100 -\u003e HIGH This can be used on data of type: number, long, string, timestamp. If the bound `Value` type differs from the type of data being transformed, we will first attempt converting the type of the data to be transformed to match the type of the bound before comparing. See https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to learn more." }, "GooglePrivacyDlpV2FixedSizeBucketingConfig": { "description": "Buckets values based on fixed size ranges. The Bucketing transformation can provide all of this functionality, but requires more configuration. This message is provided as a convenience to the user for simple bucketing strategies. The transformed value will be a hyphenated string of {lower_bound}-{upper_bound}. For example, if lower_bound = 10 and upper_bound = 20, all values that are within this bucket will be replaced with \"10-20\". This can be used on data of type: double, long. If the bound Value type differs from the type of data being transformed, we will first attempt converting the type of the data to be transformed to match the type of the bound before comparing. See https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to learn more.", "properties": { "upperBound": { "description": "Required. Upper bound value of buckets. All values greater than upper_bound are grouped together into a single bucket; for example if `upper_bound` = 89, then all values greater than 89 are replaced with the value \"89+\".", "$ref": "GooglePrivacyDlpV2Value" }, "lowerBound": { "$ref": "GooglePrivacyDlpV2Value", "description": "Required. Lower bound value of buckets. All values less than `lower_bound` are grouped together into a single bucket; for example if `lower_bound` = 10, then all values less than 10 are replaced with the value \"-10\"." }, "bucketSize": { "type": "number", "format": "double", "description": "Required. Size of each bucket (except for minimum and maximum buckets). So if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works." } }, "id": "GooglePrivacyDlpV2FixedSizeBucketingConfig", "type": "object" }, "GooglePrivacyDlpV2ImageLocation": { "type": "object", "properties": { "boundingBoxes": { "items": { "$ref": "GooglePrivacyDlpV2BoundingBox" }, "description": "Bounding boxes locating the pixels within the image containing the finding.", "type": "array" } }, "id": "GooglePrivacyDlpV2ImageLocation", "description": "Location of the finding within an image." }, "GooglePrivacyDlpV2KAnonymityConfig": { "id": "GooglePrivacyDlpV2KAnonymityConfig", "type": "object", "description": "k-anonymity metric, used for analysis of reidentification risk.", "properties": { "quasiIds": { "items": { "$ref": "GooglePrivacyDlpV2FieldId" }, "description": "Set of fields to compute k-anonymity over. When multiple fields are specified, they are considered a single composite key. Structs and repeated data types are not supported; however, nested fields are supported so long as they are not structs themselves or nested within a repeated field.", "type": "array" }, "entityId": { "$ref": "GooglePrivacyDlpV2EntityId", "description": "Message indicating that multiple rows might be associated to a single individual. If the same entity_id is associated to multiple quasi-identifier tuples over distinct rows, we consider the entire collection of tuples as the composite quasi-identifier. This collection is a multiset: the order in which the different tuples appear in the dataset is ignored, but their frequency is taken into account. Important note: a maximum of 1000 rows can be associated to a single entity ID. If more rows are associated with the same entity ID, some might be ignored." } } }, "GooglePrivacyDlpV2WordList": { "properties": { "words": { "items": { "type": "string" }, "description": "Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits. [required]", "type": "array" } }, "id": "GooglePrivacyDlpV2WordList", "type": "object", "description": "Message defining a list of words or phrases to search for in the data." }, "GooglePrivacyDlpV2RedactImageRequest": { "id": "GooglePrivacyDlpV2RedactImageRequest", "type": "object", "description": "Request to search for potentially sensitive info in an image and redact it by covering it with a colored rectangle.", "properties": { "imageRedactionConfigs": { "description": "The configuration for specifying what content to redact from images.", "items": { "$ref": "GooglePrivacyDlpV2ImageRedactionConfig" }, "type": "array" }, "byteItem": { "$ref": "GooglePrivacyDlpV2ByteContentItem", "description": "The content must be PNG, JPEG, SVG or BMP." }, "inspectConfig": { "$ref": "GooglePrivacyDlpV2InspectConfig", "description": "Configuration for the inspector." }, "includeFindings": { "type": "boolean", "description": "Whether the response should include findings along with the redacted image." }, "locationId": { "type": "string", "description": "Deprecated. This field has no effect." } } }, "GooglePrivacyDlpV2KMapEstimationHistogramBucket": { "properties": { "maxAnonymity": { "format": "int64", "type": "string", "description": "Always greater than or equal to min_anonymity." }, "bucketValues": { "description": "Sample of quasi-identifier tuple values in this bucket. The total number of classes returned per bucket is capped at 20.", "type": "array", "items": { "$ref": "GooglePrivacyDlpV2KMapEstimationQuasiIdValues" } }, "bucketValueCount": { "description": "Total number of distinct quasi-identifier tuple values in this bucket.", "type": "string", "format": "int64" }, "bucketSize": { "type": "string", "format": "int64", "description": "Number of records within these anonymity bounds." }, "minAnonymity": { "format": "int64", "type": "string", "description": "Always positive." } }, "type": "object", "id": "GooglePrivacyDlpV2KMapEstimationHistogramBucket", "description": "A KMapEstimationHistogramBucket message with the following values: min_anonymity: 3 max_anonymity: 5 frequency: 42 means that there are 42 records whose quasi-identifier values correspond to 3, 4 or 5 people in the overlying population. An important particular case is when min_anonymity = max_anonymity = 1: the frequency field then corresponds to the number of uniquely identifiable records." }, "GooglePrivacyDlpV2CancelDlpJobRequest": { "properties": {}, "id": "GooglePrivacyDlpV2CancelDlpJobRequest", "description": "The request message for canceling a DLP job.", "type": "object" }, "GooglePrivacyDlpV2DiscoveryConfig": { "id": "GooglePrivacyDlpV2DiscoveryConfig", "description": "Configuration for discovery to scan resources for profile generation. Only one discovery configuration may exist per organization, folder, or project. The generated data profiles are retained according to the [data retention policy] (https://cloud.google.com/sensitive-data-protection/docs/data-profiles#retention).", "properties": { "inspectTemplates": { "items": { "type": "string" }, "description": "Detection logic for profile generation. Not all template features are used by Discovery. FindingLimits, include_quote and exclude_info_types have no impact on Discovery. Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including \"global\"). Each region is scanned using the applicable template. If no region-specific template is specified, but a \"global\" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned. For more information, see https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.", "type": "array" }, "targets": { "type": "array", "description": "Target to match against for determining what to scan and how frequently.", "items": { "$ref": "GooglePrivacyDlpV2DiscoveryTarget" } }, "status": { "type": "string", "description": "Required. A status for this configuration.", "enumDescriptions": [ "Unused", "The discovery config is currently active.", "The discovery config is paused temporarily." ], "enum": [ "STATUS_UNSPECIFIED", "RUNNING", "PAUSED" ] }, "actions": { "items": { "$ref": "GooglePrivacyDlpV2DataProfileAction" }, "type": "array", "description": "Actions to execute at the completion of scanning." }, "displayName": { "description": "Display name (max 100 chars)", "type": "string" }, "createTime": { "type": "string", "format": "google-datetime", "description": "Output only. The creation timestamp of a DiscoveryConfig.", "readOnly": true }, "orgConfig": { "$ref": "GooglePrivacyDlpV2OrgConfig", "description": "Only set when the parent is an org." }, "errors": { "type": "array", "description": "Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.", "items": { "$ref": "GooglePrivacyDlpV2Error" }, "readOnly": true }, "updateTime": { "description": "Output only. The last update timestamp of a DiscoveryConfig.", "format": "google-datetime", "type": "string", "readOnly": true }, "name": { "type": "string", "description": "Unique resource name for the DiscoveryConfig, assigned by the service when the DiscoveryConfig is created, for example `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`." }, "lastRunTime": { "format": "google-datetime", "description": "Output only. The timestamp of the last time this config was executed.", "type": "string", "readOnly": true } }, "type": "object" }, "GooglePrivacyDlpV2LDiversityResult": { "id": "GooglePrivacyDlpV2LDiversityResult", "properties": { "sensitiveValueFrequencyHistogramBuckets": { "description": "Histogram of l-diversity equivalence class sensitive value frequencies.", "items": { "$ref": "GooglePrivacyDlpV2LDiversityHistogramBucket" }, "type": "array" } }, "type": "object", "description": "Result of the l-diversity computation." }, "GooglePrivacyDlpV2DataRiskLevel": { "description": "Score is a summary of all elements in the data profile. A higher number means more risk.", "properties": { "score": { "enumDescriptions": [ "Unused.", "Low risk - Lower indication of sensitive data that appears to have additional access restrictions in place or no indication of sensitive data found.", "Medium risk - Sensitive data may be present but additional access or fine grain access restrictions appear to be present. Consider limiting access even further or transform data to mask.", "High risk – SPII may be present. Access controls may include public ACLs. Exfiltration of data may lead to user data loss. Re-identification of users may be possible. Consider limiting usage and or removing SPII." ], "type": "string", "description": "The score applied to the resource.", "enum": [ "RISK_SCORE_UNSPECIFIED", "RISK_LOW", "RISK_MODERATE", "RISK_HIGH" ] } }, "type": "object", "id": "GooglePrivacyDlpV2DataRiskLevel" }, "GooglePrivacyDlpV2PublishToPubSub": { "description": "Publish a message into a given Pub/Sub topic when DlpJob has completed. The message contains a single field, `DlpJobName`, which is equal to the finished job's [`DlpJob.name`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.dlpJobs#DlpJob). Compatible with: Inspect, Risk", "properties": { "topic": { "type": "string", "description": "Cloud Pub/Sub topic to send notifications to. The topic must have given publishing access rights to the DLP API service account executing the long running DlpJob sending the notifications. Format is projects/{project}/topics/{topic}." } }, "id": "GooglePrivacyDlpV2PublishToPubSub", "type": "object" }, "GooglePrivacyDlpV2CreateDiscoveryConfigRequest": { "properties": { "configId": { "type": "string", "description": "The config ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one." }, "discoveryConfig": { "$ref": "GooglePrivacyDlpV2DiscoveryConfig", "description": "Required. The DiscoveryConfig to create." } }, "description": "Request message for CreateDiscoveryConfig.", "type": "object", "id": "GooglePrivacyDlpV2CreateDiscoveryConfigRequest" }, "GooglePrivacyDlpV2CloudStorageOptions": { "id": "GooglePrivacyDlpV2CloudStorageOptions", "properties": { "fileSet": { "$ref": "GooglePrivacyDlpV2FileSet", "description": "The set of one or more files to scan." }, "bytesLimitPerFilePercent": { "type": "integer", "format": "int32", "description": "Max percentage of bytes to scan from a file. The rest are omitted. The number of bytes scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of bytes_limit_per_file and bytes_limit_per_file_percent can be specified. This field can't be set if de-identification is requested. For certain file types, setting this field has no effect. For more information, see [Limits on bytes scanned per file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file)." }, "fileTypes": { "type": "array", "items": { "enum": [ "FILE_TYPE_UNSPECIFIED", "BINARY_FILE", "TEXT_FILE", "IMAGE", "WORD", "PDF", "AVRO", "CSV", "TSV", "POWERPOINT", "EXCEL" ], "enumDescriptions": [ "Includes all files.", "Includes all file extensions not covered by another entry. Binary scanning attempts to convert the content of the file to utf_8 to scan the file. If you wish to avoid this fall back, specify one or more of the other file types in your storage scan.", "Included file extensions: asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart, dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml, ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.", "Included file extensions: bmp, gif, jpg, jpeg, jpe, png. Setting bytes_limit_per_file or bytes_limit_per_file_percent has no effect on image files. Image inspection is restricted to the `global`, `us`, `asia`, and `europe` regions.", "Microsoft Word files larger than 30 MB will be scanned as binary files. Included file extensions: docx, dotx, docm, dotm. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent` has no effect on Word files.", "PDF files larger than 30 MB will be scanned as binary files. Included file extensions: pdf. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent` has no effect on PDF files.", "Included file extensions: avro", "Included file extensions: csv", "Included file extensions: tsv", "Microsoft PowerPoint files larger than 30 MB will be scanned as binary files. Included file extensions: pptx, pptm, potx, potm, pot. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent` has no effect on PowerPoint files.", "Microsoft Excel files larger than 30 MB will be scanned as binary files. Included file extensions: xlsx, xlsm, xltx, xltm. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent` has no effect on Excel files." ], "type": "string" }, "description": "List of file type groups to include in the scan. If empty, all files are scanned and available data format processors are applied. In addition, the binary content of the selected files is always scanned as well. Images are scanned only as binary if the specified region does not support image inspection and no file_types were specified. Image inspection is restricted to 'global', 'us', 'asia', and 'europe'." }, "bytesLimitPerFile": { "format": "int64", "description": "Max number of bytes to scan from a file. If a scanned file's size is bigger than this value then the rest of the bytes are omitted. Only one of `bytes_limit_per_file` and `bytes_limit_per_file_percent` can be specified. This field can't be set if de-identification is requested. For certain file types, setting this field has no effect. For more information, see [Limits on bytes scanned per file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file).", "type": "string" }, "sampleMethod": { "type": "string", "description": "How to sample the data.", "enumDescriptions": [ "No sampling.", "Scan from the top (default).", "For each file larger than bytes_limit_per_file, randomly pick the offset to start scanning. The scanned bytes are contiguous." ], "enum": [ "SAMPLE_METHOD_UNSPECIFIED", "TOP", "RANDOM_START" ] }, "filesLimitPercent": { "description": "Limits the number of files to scan to this percentage of the input FileSet. Number of files scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0.", "format": "int32", "type": "integer" } }, "type": "object", "description": "Options defining a file or a set of files within a Cloud Storage bucket." }, "GooglePrivacyDlpV2TableOptions": { "id": "GooglePrivacyDlpV2TableOptions", "properties": { "identifyingFields": { "type": "array", "description": "The columns that are the primary keys for table objects included in ContentItem. A copy of this cell's value will stored alongside alongside each finding so that the finding can be traced to the specific row it came from. No more than 3 may be provided.", "items": { "$ref": "GooglePrivacyDlpV2FieldId" } } }, "type": "object", "description": "Instructions regarding the table content being inspected." }, "GooglePrivacyDlpV2DiscoveryStartingLocation": { "description": "The location to begin a discovery scan. Denotes an organization ID or folder ID within an organization.", "type": "object", "properties": { "folderId": { "type": "string", "format": "int64", "description": "The ID of the Folder within an organization to scan." }, "organizationId": { "format": "int64", "description": "The ID of an organization to scan.", "type": "string" } }, "id": "GooglePrivacyDlpV2DiscoveryStartingLocation" }, "GooglePrivacyDlpV2SurrogateType": { "id": "GooglePrivacyDlpV2SurrogateType", "description": "Message for detecting output from deidentification transformations such as [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig). These types of transformations are those that perform pseudonymization, thereby producing a \"surrogate\" as output. This should be used in conjunction with a field on the transformation such as `surrogate_info_type`. This CustomInfoType does not support the use of `detection_rules`.", "properties": {}, "type": "object" }, "GooglePrivacyDlpV2RedactImageResponse": { "description": "Results of redacting an image.", "type": "object", "properties": { "extractedText": { "type": "string", "description": "If an image was being inspected and the InspectConfig's include_quote was set to true, then this field will include all text, if any, that was found in the image." }, "inspectResult": { "description": "The findings. Populated when include_findings in the request is true.", "$ref": "GooglePrivacyDlpV2InspectResult" }, "redactedImage": { "description": "The redacted image. The type will be the same as the original image.", "format": "byte", "type": "string" } }, "id": "GooglePrivacyDlpV2RedactImageResponse" }, "GooglePrivacyDlpV2CharacterMaskConfig": { "type": "object", "id": "GooglePrivacyDlpV2CharacterMaskConfig", "description": "Partially mask a string by replacing a given number of characters with a fixed character. Masking can start from the beginning or end of the string. This can be used on data of any type (numbers, longs, and so on) and when de-identifying structured data we'll attempt to preserve the original data's type. (This allows you to take a long like 123 and modify it to a string like **3.", "properties": { "numberToMask": { "description": "Number of characters to mask. If not set, all matching chars will be masked. Skipped characters do not count towards this tally. If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP masks all but a number of characters. For example, suppose you have the following values: - `masking_character` is `*` - `number_to_mask` is `-4` - `reverse_order` is `false` - `CharsToIgnore` includes `-` - Input string is `1234-5678-9012-3456` The resulting de-identified string is `****-****-****-3456`. Cloud DLP masks all but the last four characters. If `reverse_order` is `true`, all but the first four characters are masked as `1234-****-****-****`.", "type": "integer", "format": "int32" }, "reverseOrder": { "type": "boolean", "description": "Mask characters in reverse order. For example, if `masking_character` is `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the input string `1234-5678-9012-3456` is masked as `00000000000000-3456`. If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order` is `true`, then the string `12345` is masked as `12***`." }, "charactersToIgnore": { "description": "When masking a string, items in this list will be skipped when replacing characters. For example, if the input string is `555-555-5555` and you instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP returns `***-**5-5555`.", "type": "array", "items": { "$ref": "GooglePrivacyDlpV2CharsToIgnore" } }, "maskingCharacter": { "type": "string", "description": "Character to use to mask the sensitive values—for example, `*` for an alphabetic string such as a name, or `0` for a numeric string such as ZIP code or credit card number. This string must have a length of 1. If not supplied, this value defaults to `*` for strings, and `0` for digits." } } }, "GooglePrivacyDlpV2Condition": { "description": "The field type of `value` and `field` do not need to match to be considered equal, but not all comparisons are possible. EQUAL_TO and NOT_EQUAL_TO attempt to compare even with incompatible types, but all other comparisons are invalid with incompatible types. A `value` of type: - `string` can be compared against all other types - `boolean` can only be compared against other booleans - `integer` can be compared against doubles or a string if the string value can be parsed as an integer. - `double` can be compared against integers or a string if the string can be parsed as a double. - `Timestamp` can be compared against strings in RFC 3339 date string format. - `TimeOfDay` can be compared against timestamps and strings in the format of 'HH:mm:ss'. If we fail to compare do to type mismatch, a warning will be given and the condition will evaluate to false.", "id": "GooglePrivacyDlpV2Condition", "properties": { "value": { "$ref": "GooglePrivacyDlpV2Value", "description": "Value to compare against. [Mandatory, except for `EXISTS` tests.]" }, "field": { "$ref": "GooglePrivacyDlpV2FieldId", "description": "Required. Field within the record this condition is evaluated against." }, "operator": { "description": "Required. Operator used to compare the field or infoType to the value.", "enum": [ "RELATIONAL_OPERATOR_UNSPECIFIED", "EQUAL_TO", "NOT_EQUAL_TO", "GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUALS", "LESS_THAN_OR_EQUALS", "EXISTS" ], "enumDescriptions": [ "Unused", "Equal. Attempts to match even with incompatible types.", "Not equal to. Attempts to match even with incompatible types.", "Greater than.", "Less than.", "Greater than or equals.", "Less than or equals.", "Exists" ], "type": "string" } }, "type": "object" }, "GooglePrivacyDlpV2TransformationResultStatus": { "id": "GooglePrivacyDlpV2TransformationResultStatus", "type": "object", "description": "The outcome of a transformation.", "properties": { "details": { "description": "Detailed error codes and messages", "$ref": "GoogleRpcStatus" }, "resultStatusType": { "enumDescriptions": [ "Unused.", "This will be set when a finding could not be transformed (i.e. outside user set bucket range).", "This will be set when a BigQuery transformation was successful but could not be stored back in BigQuery because the transformed row exceeds BigQuery's max row size.", "This will be set when there is a finding in the custom metadata of a file, but at the write time of the transformed file, this key / value pair is unretrievable.", "This will be set when the transformation and storing of it is successful." ], "enum": [ "STATE_TYPE_UNSPECIFIED", "INVALID_TRANSFORM", "BIGQUERY_MAX_ROW_SIZE_EXCEEDED", "METADATA_UNRETRIEVABLE", "SUCCESS" ], "description": "Transformation result status type, this will be either SUCCESS, or it will be the reason for why the transformation was not completely successful.", "type": "string" } } }, "GooglePrivacyDlpV2HybridContentItem": { "description": "An individual hybrid item to inspect. Will be stored temporarily during processing.", "id": "GooglePrivacyDlpV2HybridContentItem", "type": "object", "properties": { "item": { "description": "The item to inspect.", "$ref": "GooglePrivacyDlpV2ContentItem" }, "findingDetails": { "$ref": "GooglePrivacyDlpV2HybridFindingDetails", "description": "Supplementary information that will be added to each finding." } } }, "GooglePrivacyDlpV2TimePartConfig": { "type": "object", "properties": { "partToExtract": { "description": "The part of the time to keep.", "enumDescriptions": [ "Unused", "[0-9999]", "[1-12]", "[1-31]", "[1-7]", "[1-53]", "[0-23]" ], "enum": [ "TIME_PART_UNSPECIFIED", "YEAR", "MONTH", "DAY_OF_MONTH", "DAY_OF_WEEK", "WEEK_OF_YEAR", "HOUR_OF_DAY" ], "type": "string" } }, "id": "GooglePrivacyDlpV2TimePartConfig", "description": "For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a portion of the value." }, "GooglePrivacyDlpV2UpdateStoredInfoTypeRequest": { "id": "GooglePrivacyDlpV2UpdateStoredInfoTypeRequest", "properties": { "config": { "$ref": "GooglePrivacyDlpV2StoredInfoTypeConfig", "description": "Updated configuration for the storedInfoType. If not provided, a new version of the storedInfoType will be created with the existing configuration." }, "updateMask": { "type": "string", "format": "google-fieldmask", "description": "Mask to control which fields get updated." } }, "description": "Request message for UpdateStoredInfoType.", "type": "object" }, "GooglePrivacyDlpV2KindExpression": { "id": "GooglePrivacyDlpV2KindExpression", "properties": { "name": { "type": "string", "description": "The name of the kind." } }, "description": "A representation of a Datastore kind.", "type": "object" }, "GooglePrivacyDlpV2Value": { "id": "GooglePrivacyDlpV2Value", "properties": { "floatValue": { "format": "double", "description": "float", "type": "number" }, "timestampValue": { "description": "timestamp", "format": "google-datetime", "type": "string" }, "dayOfWeekValue": { "description": "day of week", "type": "string", "enum": [ "DAY_OF_WEEK_UNSPECIFIED", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY" ], "enumDescriptions": [ "The day of the week is unspecified.", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ] }, "stringValue": { "description": "string", "type": "string" }, "dateValue": { "description": "date", "$ref": "GoogleTypeDate" }, "timeValue": { "description": "time of day", "$ref": "GoogleTypeTimeOfDay" }, "integerValue": { "type": "string", "format": "int64", "description": "integer" }, "booleanValue": { "type": "boolean", "description": "boolean" } }, "description": "Set of primitive values supported by the system. Note that for the purposes of inspection or transformation, the number of bytes considered to comprise a 'Value' is based on its representation as a UTF-8 encoded string. For example, if 'integer_value' is set to 123456789, the number of bytes would be counted as 9, even though an int64 only holds up to 8 bytes of data.", "type": "object" }, "GooglePrivacyDlpV2DeidentifyConfig": { "id": "GooglePrivacyDlpV2DeidentifyConfig", "type": "object", "description": "The configuration that controls how the data will change.", "properties": { "transformationErrorHandling": { "description": "Mode for handling transformation errors. If left unspecified, the default mode is `TransformationErrorHandling.ThrowError`.", "$ref": "GooglePrivacyDlpV2TransformationErrorHandling" }, "imageTransformations": { "description": "Treat the dataset as an image and redact.", "$ref": "GooglePrivacyDlpV2ImageTransformations" }, "recordTransformations": { "description": "Treat the dataset as structured. Transformations can be applied to specific locations within structured datasets, such as transforming a column within a table.", "$ref": "GooglePrivacyDlpV2RecordTransformations" }, "infoTypeTransformations": { "$ref": "GooglePrivacyDlpV2InfoTypeTransformations", "description": "Treat the dataset as free-form text and apply the same free text transformation everywhere." } } }, "GooglePrivacyDlpV2LDiversityConfig": { "description": "l-diversity metric, used for analysis of reidentification risk.", "type": "object", "id": "GooglePrivacyDlpV2LDiversityConfig", "properties": { "sensitiveAttribute": { "$ref": "GooglePrivacyDlpV2FieldId", "description": "Sensitive field for computing the l-value." }, "quasiIds": { "items": { "$ref": "GooglePrivacyDlpV2FieldId" }, "type": "array", "description": "Set of quasi-identifiers indicating how equivalence classes are defined for the l-diversity computation. When multiple fields are specified, they are considered a single composite key." } } }, "GooglePrivacyDlpV2ImageTransformation": { "properties": { "allText": { "description": "Apply transformation to all text that doesn't match an infoType. Only one instance is allowed within the ImageTransformations message.", "$ref": "GooglePrivacyDlpV2AllText" }, "selectedInfoTypes": { "$ref": "GooglePrivacyDlpV2SelectedInfoTypes", "description": "Apply transformation to the selected info_types." }, "redactionColor": { "$ref": "GooglePrivacyDlpV2Color", "description": "The color to use when redacting content from an image. If not specified, the default is black." }, "allInfoTypes": { "$ref": "GooglePrivacyDlpV2AllInfoTypes", "description": "Apply transformation to all findings not specified in other ImageTransformation's selected_info_types. Only one instance is allowed within the ImageTransformations message." } }, "id": "GooglePrivacyDlpV2ImageTransformation", "description": "Configuration for determining how redaction of images should occur.", "type": "object" }, "GooglePrivacyDlpV2ListJobTriggersResponse": { "description": "Response message for ListJobTriggers.", "id": "GooglePrivacyDlpV2ListJobTriggersResponse", "type": "object", "properties": { "nextPageToken": { "type": "string", "description": "If the next page is available then this value is the next page token to be used in the following ListJobTriggers request." }, "jobTriggers": { "description": "List of triggeredJobs, up to page_size in ListJobTriggersRequest.", "items": { "$ref": "GooglePrivacyDlpV2JobTrigger" }, "type": "array" } } }, "GooglePrivacyDlpV2PubSubNotification": { "description": "Send a Pub/Sub message into the given Pub/Sub topic to connect other systems to data profile generation. The message payload data will be the byte serialization of `DataProfilePubSubMessage`.", "properties": { "detailOfMessage": { "enumDescriptions": [ "Unused.", "The full table data profile.", "The resource name of the table." ], "enum": [ "DETAIL_LEVEL_UNSPECIFIED", "TABLE_PROFILE", "RESOURCE_NAME" ], "type": "string", "description": "How much data to include in the Pub/Sub message. If the user wishes to limit the size of the message, they can use resource_name and fetch the profile fields they wish to. Per table profile (not per column)." }, "topic": { "description": "Cloud Pub/Sub topic to send notifications to. Format is projects/{project}/topics/{topic}.", "type": "string" }, "event": { "enum": [ "EVENT_TYPE_UNSPECIFIED", "NEW_PROFILE", "CHANGED_PROFILE", "SCORE_INCREASED", "ERROR_CHANGED" ], "description": "The type of event that triggers a Pub/Sub. At most one `PubSubNotification` per EventType is permitted.", "enumDescriptions": [ "Unused.", "New profile (not a re-profile).", "Changed one of the following profile metrics: * Table data risk score * Table sensitivity score * Table resource visibility * Table encryption type * Table predicted infoTypes * Table other infoTypes", "Table data risk score or sensitivity score increased.", "A user (non-internal) error occurred." ], "type": "string" }, "pubsubCondition": { "description": "Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.", "$ref": "GooglePrivacyDlpV2DataProfilePubSubCondition" } }, "id": "GooglePrivacyDlpV2PubSubNotification", "type": "object" }, "GooglePrivacyDlpV2Schedule": { "id": "GooglePrivacyDlpV2Schedule", "description": "Schedule for inspect job triggers.", "type": "object", "properties": { "recurrencePeriodDuration": { "description": "With this option a job is started on a regular periodic basis. For example: every day (86400 seconds). A scheduled start time will be skipped if the previous execution has not ended when its scheduled time occurs. This value must be set to a time duration greater than or equal to 1 day and can be no longer than 60 days.", "format": "google-duration", "type": "string" } } }, "GooglePrivacyDlpV2InfoTypeStats": { "id": "GooglePrivacyDlpV2InfoTypeStats", "properties": { "infoType": { "$ref": "GooglePrivacyDlpV2InfoType", "description": "The type of finding this stat is for." }, "count": { "format": "int64", "description": "Number of findings for this infoType.", "type": "string" } }, "description": "Statistics regarding a specific InfoType.", "type": "object" }, "GooglePrivacyDlpV2CryptoKey": { "properties": { "unwrapped": { "description": "Unwrapped crypto key", "$ref": "GooglePrivacyDlpV2UnwrappedCryptoKey" }, "transient": { "$ref": "GooglePrivacyDlpV2TransientCryptoKey", "description": "Transient crypto key" }, "kmsWrapped": { "$ref": "GooglePrivacyDlpV2KmsWrappedCryptoKey", "description": "Key wrapped using Cloud KMS" } }, "description": "This is a data encryption key (DEK) (as opposed to a key encryption key (KEK) stored by Cloud Key Management Service (Cloud KMS). When using Cloud KMS to wrap or unwrap a DEK, be sure to set an appropriate IAM policy on the KEK to ensure an attacker cannot unwrap the DEK.", "type": "object", "id": "GooglePrivacyDlpV2CryptoKey" }, "GooglePrivacyDlpV2Disabled": { "properties": {}, "description": "Do not profile the tables.", "type": "object", "id": "GooglePrivacyDlpV2Disabled" }, "GooglePrivacyDlpV2Container": { "id": "GooglePrivacyDlpV2Container", "type": "object", "properties": { "rootPath": { "type": "string", "description": "The root of the container. Examples: - For BigQuery table `project_id:dataset_id.table_id`, the root is `dataset_id` - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root is `gs://bucket`" }, "projectId": { "description": "Project where the finding was found. Can be different from the project that owns the finding.", "type": "string" }, "type": { "description": "Container type, for example BigQuery or Cloud Storage.", "type": "string" }, "fullPath": { "type": "string", "description": "A string representation of the full container name. Examples: - BigQuery: 'Project:DataSetId.TableId' - Cloud Storage: 'gs://Bucket/folders/filename.txt'" }, "updateTime": { "format": "google-datetime", "description": "Findings container modification timestamp, if applicable. For Cloud Storage, this field contains the last file modification timestamp. For a BigQuery table, this field contains the last_modified_time property. For Datastore, this field isn't populated.", "type": "string" }, "relativePath": { "description": "The rest of the path after the root. Examples: - For BigQuery table `project_id:dataset_id.table_id`, the relative path is `table_id` - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative path is `folder/filename.txt`", "type": "string" }, "version": { "description": "Findings container version, if available (\"generation\" for Cloud Storage).", "type": "string" } }, "description": "Represents a container that may contain DLP findings. Examples of a container include a file, table, or database record." }, "GooglePrivacyDlpV2NumericalStatsConfig": { "type": "object", "id": "GooglePrivacyDlpV2NumericalStatsConfig", "properties": { "field": { "description": "Field to compute numerical stats on. Supported types are integer, float, date, datetime, timestamp, time.", "$ref": "GooglePrivacyDlpV2FieldId" } }, "description": "Compute numerical stats over an individual column, including min, max, and quantiles." }, "GooglePrivacyDlpV2KAnonymityHistogramBucket": { "type": "object", "description": "Histogram of k-anonymity equivalence classes.", "id": "GooglePrivacyDlpV2KAnonymityHistogramBucket", "properties": { "bucketValueCount": { "format": "int64", "type": "string", "description": "Total number of distinct equivalence classes in this bucket." }, "bucketSize": { "format": "int64", "type": "string", "description": "Total number of equivalence classes in this bucket." }, "equivalenceClassSizeLowerBound": { "format": "int64", "type": "string", "description": "Lower bound on the size of the equivalence classes in this bucket." }, "equivalenceClassSizeUpperBound": { "type": "string", "format": "int64", "description": "Upper bound on the size of the equivalence classes in this bucket." }, "bucketValues": { "items": { "$ref": "GooglePrivacyDlpV2KAnonymityEquivalenceClass" }, "description": "Sample of equivalence classes in this bucket. The total number of classes returned per bucket is capped at 20.", "type": "array" } } }, "GooglePrivacyDlpV2UpdateDiscoveryConfigRequest": { "properties": { "updateMask": { "description": "Mask to control which fields get updated.", "format": "google-fieldmask", "type": "string" }, "discoveryConfig": { "$ref": "GooglePrivacyDlpV2DiscoveryConfig", "description": "Required. New DiscoveryConfig value." } }, "type": "object", "id": "GooglePrivacyDlpV2UpdateDiscoveryConfigRequest", "description": "Request message for UpdateDiscoveryConfig." }, "GooglePrivacyDlpV2UpdateConnectionRequest": { "properties": { "updateMask": { "type": "string", "format": "google-fieldmask", "description": "Optional. Mask to control which fields get updated." }, "connection": { "description": "Required. The connection with new values for the relevant fields.", "$ref": "GooglePrivacyDlpV2Connection" } }, "id": "GooglePrivacyDlpV2UpdateConnectionRequest", "description": "Request message for UpdateConnection.", "type": "object" }, "GooglePrivacyDlpV2EntityId": { "properties": { "field": { "description": "Composite key indicating which field contains the entity identifier.", "$ref": "GooglePrivacyDlpV2FieldId" } }, "id": "GooglePrivacyDlpV2EntityId", "type": "object", "description": "An entity in a dataset is a field or set of fields that correspond to a single person. For example, in medical records the `EntityId` might be a patient identifier, or for financial records it might be an account identifier. This message is used when generalizations or analysis must take into account that multiple rows correspond to the same entity." }, "GooglePrivacyDlpV2RecordCondition": { "type": "object", "properties": { "expressions": { "description": "An expression.", "$ref": "GooglePrivacyDlpV2Expressions" } }, "id": "GooglePrivacyDlpV2RecordCondition", "description": "A condition for determining whether a transformation should be applied to a field." }, "GooglePrivacyDlpV2InspectResult": { "properties": { "findingsTruncated": { "type": "boolean", "description": "If true, then this item might have more findings than were returned, and the findings returned are an arbitrary subset of all findings. The findings list might be truncated because the input items were too large, or because the server reached the maximum amount of resources allowed for a single API call. For best results, divide the input into smaller batches." }, "findings": { "type": "array", "items": { "$ref": "GooglePrivacyDlpV2Finding" }, "description": "List of findings for an item." } }, "type": "object", "id": "GooglePrivacyDlpV2InspectResult", "description": "All the findings for a single scanned item." }, "GooglePrivacyDlpV2AuxiliaryTable": { "type": "object", "description": "An auxiliary table contains statistical information on the relative frequency of different quasi-identifiers values. It has one or several quasi-identifiers columns, and one column that indicates the relative frequency of each quasi-identifier tuple. If a tuple is present in the data but not in the auxiliary table, the corresponding relative frequency is assumed to be zero (and thus, the tuple is highly reidentifiable).", "properties": { "quasiIds": { "description": "Required. Quasi-identifier columns.", "type": "array", "items": { "$ref": "GooglePrivacyDlpV2QuasiIdField" } }, "table": { "description": "Required. Auxiliary table location.", "$ref": "GooglePrivacyDlpV2BigQueryTable" }, "relativeFrequency": { "$ref": "GooglePrivacyDlpV2FieldId", "description": "Required. The relative frequency column must contain a floating-point number between 0 and 1 (inclusive). Null values are assumed to be zero." } }, "id": "GooglePrivacyDlpV2AuxiliaryTable" }, "GooglePrivacyDlpV2TransformationOverview": { "id": "GooglePrivacyDlpV2TransformationOverview", "properties": { "transformationSummaries": { "description": "Transformations applied to the dataset.", "items": { "$ref": "GooglePrivacyDlpV2TransformationSummary" }, "type": "array" }, "transformedBytes": { "type": "string", "format": "int64", "description": "Total size in bytes that were transformed in some way." } }, "type": "object", "description": "Overview of the modifications that occurred." }, "GooglePrivacyDlpV2RequestedDeidentifyOptions": { "type": "object", "description": "De-identification options.", "id": "GooglePrivacyDlpV2RequestedDeidentifyOptions", "properties": { "snapshotStructuredDeidentifyTemplate": { "description": "Snapshot of the state of the structured `DeidentifyTemplate` from the `Deidentify` action at the time this job was run.", "$ref": "GooglePrivacyDlpV2DeidentifyTemplate" }, "snapshotImageRedactTemplate": { "description": "Snapshot of the state of the image transformation `DeidentifyTemplate` from the `Deidentify` action at the time this job was run.", "$ref": "GooglePrivacyDlpV2DeidentifyTemplate" }, "snapshotDeidentifyTemplate": { "$ref": "GooglePrivacyDlpV2DeidentifyTemplate", "description": "Snapshot of the state of the `DeidentifyTemplate` from the Deidentify action at the time this job was run." } } }, "GooglePrivacyDlpV2Connection": { "type": "object", "id": "GooglePrivacyDlpV2Connection", "properties": { "state": { "description": "Required. The connection's state in its lifecycle.", "type": "string", "enum": [ "CONNECTION_STATE_UNSPECIFIED", "MISSING_CREDENTIALS", "AVAILABLE", "ERROR" ], "enumDescriptions": [ "Unused", "DLP automatically created this connection during an initial scan, and it is awaiting full configuration by a user.", "A configured connection that has not encountered any errors.", "A configured connection that encountered errors during its last use. It will not be used again until it is set to AVAILABLE. If the resolution requires external action, then a request to set the status to AVAILABLE will mark this connection for use. Otherwise, any changes to the connection properties will automatically mark it as AVAILABLE." ] }, "cloudSql": { "$ref": "GooglePrivacyDlpV2CloudSqlProperties", "description": "Connect to a Cloud SQL instance." }, "errors": { "items": { "$ref": "GooglePrivacyDlpV2Error" }, "type": "array", "description": "Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.", "readOnly": true }, "name": { "description": "Output only. Name of the connection: projects/{project}/locations/{location}/connections/{name}.", "type": "string", "readOnly": true } }, "description": "A data connection to allow DLP to profile data in locations that require additional configuration." }, "GooglePrivacyDlpV2LargeCustomDictionaryStats": { "id": "GooglePrivacyDlpV2LargeCustomDictionaryStats", "properties": { "approxNumPhrases": { "format": "int64", "description": "Approximate number of distinct phrases in the dictionary.", "type": "string" } }, "description": "Summary statistics of a custom dictionary.", "type": "object" }, "GooglePrivacyDlpV2CreateDeidentifyTemplateRequest": { "type": "object", "description": "Request message for CreateDeidentifyTemplate.", "id": "GooglePrivacyDlpV2CreateDeidentifyTemplateRequest", "properties": { "locationId": { "description": "Deprecated. This field has no effect.", "type": "string" }, "deidentifyTemplate": { "description": "Required. The DeidentifyTemplate to create.", "$ref": "GooglePrivacyDlpV2DeidentifyTemplate" }, "templateId": { "type": "string", "description": "The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one." } } }, "GooglePrivacyDlpV2RecordTransformation": { "properties": { "containerVersion": { "type": "string", "description": "Container version, if available (\"generation\" for Cloud Storage)." }, "containerTimestamp": { "format": "google-datetime", "type": "string", "description": "Findings container modification timestamp, if applicable." }, "fieldId": { "description": "For record transformations, provide a field.", "$ref": "GooglePrivacyDlpV2FieldId" } }, "type": "object", "description": "The field in a record to transform.", "id": "GooglePrivacyDlpV2RecordTransformation" }, "GooglePrivacyDlpV2CloudStoragePath": { "id": "GooglePrivacyDlpV2CloudStoragePath", "type": "object", "description": "Message representing a single file or path in Cloud Storage.", "properties": { "path": { "type": "string", "description": "A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`" } } }, "GooglePrivacyDlpV2CustomInfoType": { "type": "object", "properties": { "dictionary": { "$ref": "GooglePrivacyDlpV2Dictionary", "description": "A list of phrases to detect as a CustomInfoType." }, "detectionRules": { "items": { "$ref": "GooglePrivacyDlpV2DetectionRule" }, "type": "array", "description": "Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the `surrogate_type` CustomInfoType." }, "sensitivityScore": { "$ref": "GooglePrivacyDlpV2SensitivityScore", "description": "Sensitivity for this CustomInfoType. If this CustomInfoType extends an existing InfoType, the sensitivity here will take precedence over that of the original InfoType. If unset for a CustomInfoType, it will default to HIGH. This only applies to data profiling." }, "likelihood": { "type": "string", "enum": [ "LIKELIHOOD_UNSPECIFIED", "VERY_UNLIKELY", "UNLIKELY", "POSSIBLE", "LIKELY", "VERY_LIKELY" ], "description": "Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria specified by the rule. Defaults to `VERY_LIKELY` if not specified.", "enumDescriptions": [ "Default value; same as POSSIBLE.", "Highest chance of a false positive.", "High chance of a false positive.", "Some matching signals. The default value.", "Low chance of a false positive.", "Confidence level is high. Lowest chance of a false positive." ] }, "regex": { "$ref": "GooglePrivacyDlpV2Regex", "description": "Regular expression based CustomInfoType." }, "exclusionType": { "description": "If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.", "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, but can still affect rule execution." ], "enum": [ "EXCLUSION_TYPE_UNSPECIFIED", "EXCLUSION_TYPE_EXCLUDE" ], "type": "string" }, "surrogateType": { "description": "Message for detecting output from deidentification transformations that support reversing.", "$ref": "GooglePrivacyDlpV2SurrogateType" }, "storedType": { "$ref": "GooglePrivacyDlpV2StoredType", "description": "Load an existing `StoredInfoType` resource for use in `InspectDataSource`. Not currently supported in `InspectContent`." }, "infoType": { "description": "CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing infoTypes and that infoType is specified in `InspectContent.info_types` field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified in `InspectContent.info_types` list then the name is treated as a custom info type.", "$ref": "GooglePrivacyDlpV2InfoType" } }, "description": "Custom information type provided by the user. Used to find domain-specific sensitive information configurable to the data in question.", "id": "GooglePrivacyDlpV2CustomInfoType" }, "GooglePrivacyDlpV2DeltaPresenceEstimationConfig": { "properties": { "auxiliaryTables": { "description": "Several auxiliary tables can be used in the analysis. Each custom_tag used to tag a quasi-identifiers field must appear in exactly one field of one auxiliary table.", "type": "array", "items": { "$ref": "GooglePrivacyDlpV2StatisticalTable" } }, "quasiIds": { "type": "array", "description": "Required. Fields considered to be quasi-identifiers. No two fields can have the same tag.", "items": { "$ref": "GooglePrivacyDlpV2QuasiId" } }, "regionCode": { "type": "string", "description": "ISO 3166-1 alpha-2 region code to use in the statistical modeling. Set if no column is tagged with a region-specific InfoType (like US_ZIP_5) or a region code." } }, "description": "δ-presence metric, used to estimate how likely it is for an attacker to figure out that one given individual appears in a de-identified dataset. Similarly to the k-map metric, we cannot compute δ-presence exactly without knowing the attack dataset, so we use a statistical model instead.", "id": "GooglePrivacyDlpV2DeltaPresenceEstimationConfig", "type": "object" }, "GooglePrivacyDlpV2DatabaseResourceCollection": { "id": "GooglePrivacyDlpV2DatabaseResourceCollection", "type": "object", "properties": { "includeRegexes": { "description": "A collection of regular expressions to match a database resource against.", "$ref": "GooglePrivacyDlpV2DatabaseResourceRegexes" } }, "description": "Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures." }, "GooglePrivacyDlpV2KMapEstimationQuasiIdValues": { "type": "object", "description": "A tuple of values for the quasi-identifier columns.", "properties": { "estimatedAnonymity": { "description": "The estimated anonymity for these quasi-identifier values.", "format": "int64", "type": "string" }, "quasiIdsValues": { "description": "The quasi-identifier values.", "items": { "$ref": "GooglePrivacyDlpV2Value" }, "type": "array" } }, "id": "GooglePrivacyDlpV2KMapEstimationQuasiIdValues" }, "GooglePrivacyDlpV2DatabaseResourceRegexes": { "id": "GooglePrivacyDlpV2DatabaseResourceRegexes", "description": "A collection of regular expressions to determine what database resources to match against.", "properties": { "patterns": { "type": "array", "description": "A group of regular expression patterns to match against one or more database resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB.", "items": { "$ref": "GooglePrivacyDlpV2DatabaseResourceRegex" } } }, "type": "object" }, "GooglePrivacyDlpV2TransformationDetailsStorageConfig": { "properties": { "table": { "description": "The BigQuery table in which to store the output. This may be an existing table or in a new table in an existing dataset. If table_id is not set a new one will be generated for you with the following format: dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used for generating the date details.", "$ref": "GooglePrivacyDlpV2BigQueryTable" } }, "description": "Config for storing transformation details.", "type": "object", "id": "GooglePrivacyDlpV2TransformationDetailsStorageConfig" }, "GooglePrivacyDlpV2ActivateJobTriggerRequest": { "type": "object", "description": "Request message for ActivateJobTrigger.", "properties": {}, "id": "GooglePrivacyDlpV2ActivateJobTriggerRequest" }, "GooglePrivacyDlpV2ListDiscoveryConfigsResponse": { "id": "GooglePrivacyDlpV2ListDiscoveryConfigsResponse", "type": "object", "properties": { "nextPageToken": { "type": "string", "description": "If the next page is available then this value is the next page token to be used in the following ListDiscoveryConfigs request." }, "discoveryConfigs": { "description": "List of configs, up to page_size in ListDiscoveryConfigsRequest.", "type": "array", "items": { "$ref": "GooglePrivacyDlpV2DiscoveryConfig" } } }, "description": "Response message for ListDiscoveryConfigs." }, "GooglePrivacyDlpV2Finding": { "id": "GooglePrivacyDlpV2Finding", "type": "object", "description": "Represents a piece of potentially sensitive content.", "properties": { "triggerName": { "type": "string", "description": "Job trigger name, if applicable, for this finding." }, "infoType": { "description": "The type of content that might have been found. Provided if `excluded_types` is false.", "$ref": "GooglePrivacyDlpV2InfoType" }, "findingId": { "description": "The unique finding id.", "type": "string" }, "quoteInfo": { "description": "Contains data parsed from quotes. Only populated if include_quote was set to true and a supported infoType was requested. Currently supported infoTypes: DATE, DATE_OF_BIRTH and TIME.", "$ref": "GooglePrivacyDlpV2QuoteInfo" }, "quote": { "type": "string", "description": "The content that was found. Even if the content is not textual, it may be converted to a textual representation here. Provided if `include_quote` is true and the finding is less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes in length, the quote may be omitted." }, "name": { "type": "string", "description": "Resource name in format projects/{project}/locations/{location}/findings/{finding} Populated only when viewing persisted findings." }, "jobCreateTime": { "description": "Time the job started that produced this finding.", "format": "google-datetime", "type": "string" }, "createTime": { "format": "google-datetime", "type": "string", "description": "Timestamp when finding was detected." }, "jobName": { "type": "string", "description": "The job that stored the finding." }, "resourceName": { "type": "string", "description": "The job that stored the finding." }, "location": { "$ref": "GooglePrivacyDlpV2Location", "description": "Where the content was found." }, "likelihood": { "enumDescriptions": [ "Default value; same as POSSIBLE.", "Highest chance of a false positive.", "High chance of a false positive.", "Some matching signals. The default value.", "Low chance of a false positive.", "Confidence level is high. Lowest chance of a false positive." ], "description": "Confidence of how likely it is that the `info_type` is correct.", "enum": [ "LIKELIHOOD_UNSPECIFIED", "VERY_UNLIKELY", "UNLIKELY", "POSSIBLE", "LIKELY", "VERY_LIKELY" ], "type": "string" }, "labels": { "description": "The labels associated with this `Finding`. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. No more than 10 labels can be associated with a given finding. Examples: * `\"environment\" : \"production\"` * `\"pipeline\" : \"etl\"`", "additionalProperties": { "type": "string" }, "type": "object" } } }, "GooglePrivacyDlpV2ReidentifyContentRequest": { "description": "Request to re-identify an item.", "id": "GooglePrivacyDlpV2ReidentifyContentRequest", "properties": { "locationId": { "description": "Deprecated. This field has no effect.", "type": "string" }, "item": { "$ref": "GooglePrivacyDlpV2ContentItem", "description": "The item to re-identify. Will be treated as text." }, "reidentifyConfig": { "description": "Configuration for the re-identification of the content item. This field shares the same proto message type that is used for de-identification, however its usage here is for the reversal of the previous de-identification. Re-identification is performed by examining the transformations used to de-identify the items and executing the reverse. This requires that only reversible transformations be provided here. The reversible transformations are: - `CryptoDeterministicConfig` - `CryptoReplaceFfxFpeConfig`", "$ref": "GooglePrivacyDlpV2DeidentifyConfig" }, "inspectConfig": { "$ref": "GooglePrivacyDlpV2InspectConfig", "description": "Configuration for the inspector." }, "reidentifyTemplateName": { "type": "string", "description": "Template to use. References an instance of `DeidentifyTemplate`. Any configuration directly specified in `reidentify_config` or `inspect_config` will override those set in the template. The `DeidentifyTemplate` used must include only reversible transformations. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged." }, "inspectTemplateName": { "description": "Template to use. Any configuration directly specified in `inspect_config` will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.", "type": "string" } }, "type": "object" }, "GooglePrivacyDlpV2RequestedOptions": { "description": "Snapshot of the inspection configuration.", "properties": { "snapshotInspectTemplate": { "description": "If run with an InspectTemplate, a snapshot of its state at the time of this run.", "$ref": "GooglePrivacyDlpV2InspectTemplate" }, "jobConfig": { "description": "Inspect config.", "$ref": "GooglePrivacyDlpV2InspectJobConfig" } }, "id": "GooglePrivacyDlpV2RequestedOptions", "type": "object" }, "GooglePrivacyDlpV2StatisticalTable": { "description": "An auxiliary table containing statistical information on the relative frequency of different quasi-identifiers values. It has one or several quasi-identifiers columns, and one column that indicates the relative frequency of each quasi-identifier tuple. If a tuple is present in the data but not in the auxiliary table, the corresponding relative frequency is assumed to be zero (and thus, the tuple is highly reidentifiable).", "type": "object", "id": "GooglePrivacyDlpV2StatisticalTable", "properties": { "relativeFrequency": { "description": "Required. The relative frequency column must contain a floating-point number between 0 and 1 (inclusive). Null values are assumed to be zero.", "$ref": "GooglePrivacyDlpV2FieldId" }, "table": { "description": "Required. Auxiliary table location.", "$ref": "GooglePrivacyDlpV2BigQueryTable" }, "quasiIds": { "items": { "$ref": "GooglePrivacyDlpV2QuasiIdentifierField" }, "description": "Required. Quasi-identifier columns.", "type": "array" } } }, "GooglePrivacyDlpV2RecordSuppression": { "properties": { "condition": { "$ref": "GooglePrivacyDlpV2RecordCondition", "description": "A condition that when it evaluates to true will result in the record being evaluated to be suppressed from the transformed content." } }, "description": "Configuration to suppress records whose suppression conditions evaluate to true.", "type": "object", "id": "GooglePrivacyDlpV2RecordSuppression" }, "GooglePrivacyDlpV2DiscoveryTableModifiedCadence": { "type": "object", "properties": { "frequency": { "type": "string", "enum": [ "UPDATE_FREQUENCY_UNSPECIFIED", "UPDATE_FREQUENCY_NEVER", "UPDATE_FREQUENCY_DAILY", "UPDATE_FREQUENCY_MONTHLY" ], "enumDescriptions": [ "Unspecified.", "After the data profile is created, it will never be updated.", "The data profile can be updated up to once every 24 hours.", "The data profile can be updated up to once every 30 days. Default." ], "description": "How frequently data profiles can be updated when tables are modified. Defaults to never." }, "types": { "items": { "enumDescriptions": [ "Unused.", "A table will be considered modified when the last_modified_time from BigQuery has been updated." ], "enum": [ "TABLE_MODIFICATION_UNSPECIFIED", "TABLE_MODIFIED_TIMESTAMP" ], "type": "string" }, "type": "array", "description": "The type of events to consider when deciding if the table has been modified and should have the profile updated. Defaults to MODIFIED_TIMESTAMP." } }, "id": "GooglePrivacyDlpV2DiscoveryTableModifiedCadence", "description": "The cadence at which to update data profiles when a table is modified." }, "GooglePrivacyDlpV2ListInfoTypesResponse": { "description": "Response to the ListInfoTypes request.", "id": "GooglePrivacyDlpV2ListInfoTypesResponse", "properties": { "infoTypes": { "items": { "$ref": "GooglePrivacyDlpV2InfoTypeDescription" }, "type": "array", "description": "Set of sensitive infoTypes." } }, "type": "object" }, "GooglePrivacyDlpV2DiscoveryTarget": { "properties": { "bigQueryTarget": { "$ref": "GooglePrivacyDlpV2BigQueryDiscoveryTarget", "description": "BigQuery target for Discovery. The first target to match a table will be the one applied." }, "cloudSqlTarget": { "$ref": "GooglePrivacyDlpV2CloudSqlDiscoveryTarget", "description": "Cloud SQL target for Discovery. The first target to match a table will be the one applied." } }, "description": "Target used to match against for Discovery.", "id": "GooglePrivacyDlpV2DiscoveryTarget", "type": "object" }, "GooglePrivacyDlpV2UnwrappedCryptoKey": { "type": "object", "description": "Using raw keys is prone to security risks due to accidentally leaking the key. Choose another type of key if possible.", "properties": { "key": { "format": "byte", "description": "Required. A 128/192/256 bit key.", "type": "string" } }, "id": "GooglePrivacyDlpV2UnwrappedCryptoKey" }, "GooglePrivacyDlpV2DataProfileAction": { "description": "A task to execute when a data profile has been generated.", "id": "GooglePrivacyDlpV2DataProfileAction", "properties": { "pubSubNotification": { "$ref": "GooglePrivacyDlpV2PubSubNotification", "description": "Publish a message into the Pub/Sub topic." }, "exportData": { "description": "Export data profiles into a provided location.", "$ref": "GooglePrivacyDlpV2Export" } }, "type": "object" }, "GooglePrivacyDlpV2TransformationConfig": { "id": "GooglePrivacyDlpV2TransformationConfig", "description": "User specified templates and configs for how to deidentify structured, unstructures, and image files. User must provide either a unstructured deidentify template or at least one redact image config.", "type": "object", "properties": { "deidentifyTemplate": { "type": "string", "description": "De-identify template. If this template is specified, it will serve as the default de-identify template. This template cannot contain `record_transformations` since it can be used for unstructured content such as free-form text files. If this template is not set, a default `ReplaceWithInfoTypeConfig` will be used to de-identify unstructured content." }, "structuredDeidentifyTemplate": { "type": "string", "description": "Structured de-identify template. If this template is specified, it will serve as the de-identify template for structured content such as delimited files and tables. If this template is not set but the `deidentify_template` is set, then `deidentify_template` will also apply to the structured content. If neither template is set, a default `ReplaceWithInfoTypeConfig` will be used to de-identify structured content." }, "imageRedactTemplate": { "description": "Image redact template. If this template is specified, it will serve as the de-identify template for images. If this template is not set, all findings in the image will be redacted with a black box.", "type": "string" } } }, "GooglePrivacyDlpV2RecordLocation": { "properties": { "fieldId": { "description": "Field id of the field containing the finding.", "$ref": "GooglePrivacyDlpV2FieldId" }, "recordKey": { "$ref": "GooglePrivacyDlpV2RecordKey", "description": "Key of the finding." }, "tableLocation": { "$ref": "GooglePrivacyDlpV2TableLocation", "description": "Location within a `ContentItem.Table`." } }, "description": "Location of a finding within a row or record.", "type": "object", "id": "GooglePrivacyDlpV2RecordLocation" }, "GooglePrivacyDlpV2HotwordRule": { "id": "GooglePrivacyDlpV2HotwordRule", "type": "object", "properties": { "hotwordRegex": { "$ref": "GooglePrivacyDlpV2Regex", "description": "Regular expression pattern defining what qualifies as a hotword." }, "proximity": { "$ref": "GooglePrivacyDlpV2Proximity", "description": "Range of characters within which the entire hotword must reside. The total length of the window cannot exceed 1000 characters. The finding itself will be included in the window, so that hotwords can be used to match substrings of the finding itself. Suppose you want Cloud DLP to promote the likelihood of the phone number regex \"\\(\\d{3}\\) \\d{3}-\\d{4}\" if the area code is known to be the area code of a company's office. In this case, use the hotword regex \"\\(xxx\\)\", where \"xxx\" is the area code in question. For tabular data, if you want to modify the likelihood of an entire column of findngs, see [Hotword example: Set the match likelihood of a table column] (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values)." }, "likelihoodAdjustment": { "description": "Likelihood adjustment to apply to all matching findings.", "$ref": "GooglePrivacyDlpV2LikelihoodAdjustment" } }, "description": "The rule that adjusts the likelihood of findings within a certain proximity of hotwords." }, "GooglePrivacyDlpV2ExcludeInfoTypes": { "id": "GooglePrivacyDlpV2ExcludeInfoTypes", "properties": { "infoTypes": { "items": { "$ref": "GooglePrivacyDlpV2InfoType" }, "type": "array", "description": "InfoType list in ExclusionRule rule drops a finding when it overlaps or contained within with a finding of an infoType from this list. For example, for `InspectionRuleSet.info_types` containing \"PHONE_NUMBER\"` and `exclusion_rule` containing `exclude_info_types.info_types` with \"EMAIL_ADDRESS\" the phone number findings are dropped if they overlap with EMAIL_ADDRESS finding. That leads to \"555-222-2222@example.org\" to generate only a single finding, namely email address." } }, "description": "List of excluded infoTypes.", "type": "object" }, "GooglePrivacyDlpV2DeidentifyDataSourceStats": { "properties": { "transformationCount": { "format": "int64", "type": "string", "description": "Number of successfully applied transformations." }, "transformationErrorCount": { "format": "int64", "description": "Number of errors encountered while trying to apply transformations.", "type": "string" }, "transformedBytes": { "description": "Total size in bytes that were transformed in some way.", "type": "string", "format": "int64" } }, "type": "object", "id": "GooglePrivacyDlpV2DeidentifyDataSourceStats", "description": "Summary of what was modified during a transformation." }, "GooglePrivacyDlpV2BigQueryRegex": { "description": "A pattern to match against one or more tables, datasets, or projects that contain BigQuery tables. At least one pattern must be specified. Regular expressions use RE2 [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found under the google/re2 repository on GitHub.", "id": "GooglePrivacyDlpV2BigQueryRegex", "properties": { "projectIdRegex": { "type": "string", "description": "For organizations, if unset, will match all projects. Has no effect for data profile configurations created within a project." }, "tableIdRegex": { "type": "string", "description": "If unset, this property matches all tables." }, "datasetIdRegex": { "type": "string", "description": "If unset, this property matches all datasets." } }, "type": "object" }, "GooglePrivacyDlpV2ImageTransformations": { "properties": { "transforms": { "description": "List of transforms to make.", "items": { "$ref": "GooglePrivacyDlpV2ImageTransformation" }, "type": "array" } }, "id": "GooglePrivacyDlpV2ImageTransformations", "description": "A type of transformation that is applied over images.", "type": "object" }, "GooglePrivacyDlpV2TableLocation": { "type": "object", "id": "GooglePrivacyDlpV2TableLocation", "properties": { "rowIndex": { "type": "string", "description": "The zero-based index of the row where the finding is located. Only populated for resources that have a natural ordering, not BigQuery. In BigQuery, to identify the row a finding came from, populate BigQueryOptions.identifying_fields with your primary key column names and when you store the findings the value of those columns will be stored inside of Finding.", "format": "int64" } }, "description": "Location of a finding within a table." }, "GooglePrivacyDlpV2TransientCryptoKey": { "properties": { "name": { "type": "string", "description": "Required. Name of the key. This is an arbitrary string used to differentiate different keys. A unique key is generated per name: two separate `TransientCryptoKey` protos share the same generated key if their names are the same. When the data crypto key is generated, this name is not used in any way (repeating the api call will result in a different key being generated)." } }, "id": "GooglePrivacyDlpV2TransientCryptoKey", "type": "object", "description": "Use this to have a random data crypto key generated. It will be discarded after the request finishes." }, "GooglePrivacyDlpV2ListDlpJobsResponse": { "type": "object", "properties": { "nextPageToken": { "type": "string", "description": "The standard List next-page token." }, "jobs": { "type": "array", "items": { "$ref": "GooglePrivacyDlpV2DlpJob" }, "description": "A list of DlpJobs that matches the specified filter in the request." } }, "description": "The response message for listing DLP jobs.", "id": "GooglePrivacyDlpV2ListDlpJobsResponse" }, "GooglePrivacyDlpV2ListColumnDataProfilesResponse": { "type": "object", "description": "List of profiles generated for a given organization or project.", "properties": { "columnDataProfiles": { "type": "array", "items": { "$ref": "GooglePrivacyDlpV2ColumnDataProfile" }, "description": "List of data profiles." }, "nextPageToken": { "type": "string", "description": "The next page token." } }, "id": "GooglePrivacyDlpV2ListColumnDataProfilesResponse" }, "GooglePrivacyDlpV2DatastoreKey": { "type": "object", "description": "Record key for a finding in Cloud Datastore.", "id": "GooglePrivacyDlpV2DatastoreKey", "properties": { "entityKey": { "$ref": "GooglePrivacyDlpV2Key", "description": "Datastore entity key." } } }, "GooglePrivacyDlpV2CloudSqlDiscoveryTarget": { "type": "object", "description": "Target used to match against for discovery with Cloud SQL tables.", "properties": { "filter": { "$ref": "GooglePrivacyDlpV2DiscoveryCloudSqlFilter", "description": "Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table." }, "conditions": { "$ref": "GooglePrivacyDlpV2DiscoveryCloudSqlConditions", "description": "In addition to matching the filter, these conditions must be true before a profile is generated." }, "generationCadence": { "description": "How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity.", "$ref": "GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence" }, "disabled": { "description": "Disable profiling for database resources that match this filter.", "$ref": "GooglePrivacyDlpV2Disabled" } }, "id": "GooglePrivacyDlpV2CloudSqlDiscoveryTarget" }, "GooglePrivacyDlpV2TimeZone": { "type": "object", "id": "GooglePrivacyDlpV2TimeZone", "description": "Time zone of the date time object.", "properties": { "offsetMinutes": { "type": "integer", "description": "Set only if the offset can be determined. Positive for time ahead of UTC. E.g. For \"UTC-9\", this value is -540.", "format": "int32" } } }, "GooglePrivacyDlpV2Trigger": { "properties": { "manual": { "description": "For use with hybrid jobs. Jobs must be manually created and finished.", "$ref": "GooglePrivacyDlpV2Manual" }, "schedule": { "description": "Create a job on a repeating basis based on the elapse of time.", "$ref": "GooglePrivacyDlpV2Schedule" } }, "description": "What event needs to occur for a new job to be started.", "id": "GooglePrivacyDlpV2Trigger", "type": "object" }, "GooglePrivacyDlpV2CreateInspectTemplateRequest": { "type": "object", "properties": { "inspectTemplate": { "$ref": "GooglePrivacyDlpV2InspectTemplate", "description": "Required. The InspectTemplate to create." }, "templateId": { "description": "The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one.", "type": "string" }, "locationId": { "description": "Deprecated. This field has no effect.", "type": "string" } }, "id": "GooglePrivacyDlpV2CreateInspectTemplateRequest", "description": "Request message for CreateInspectTemplate." }, "GooglePrivacyDlpV2ListProjectDataProfilesResponse": { "description": "List of profiles generated for a given organization or project.", "id": "GooglePrivacyDlpV2ListProjectDataProfilesResponse", "type": "object", "properties": { "nextPageToken": { "description": "The next page token.", "type": "string" }, "projectDataProfiles": { "type": "array", "items": { "$ref": "GooglePrivacyDlpV2ProjectDataProfile" }, "description": "List of data profiles." } } }, "GooglePrivacyDlpV2ProfileStatus": { "type": "object", "id": "GooglePrivacyDlpV2ProfileStatus", "description": "Success or errors for the profile generation.", "properties": { "status": { "description": "Profiling status code and optional message. The `status.code` value is 0 (default value) for OK.", "$ref": "GoogleRpcStatus" }, "timestamp": { "format": "google-datetime", "description": "Time when the profile generation status was updated", "type": "string" } } }, "GooglePrivacyDlpV2SummaryResult": { "description": "A collection that informs the user the number of times a particular `TransformationResultCode` and error details occurred.", "id": "GooglePrivacyDlpV2SummaryResult", "properties": { "code": { "description": "Outcome of the transformation.", "type": "string", "enum": [ "TRANSFORMATION_RESULT_CODE_UNSPECIFIED", "SUCCESS", "ERROR" ], "enumDescriptions": [ "Unused", "Transformation completed without an error.", "Transformation had an error." ] }, "count": { "description": "Number of transformations counted by this result.", "format": "int64", "type": "string" }, "details": { "type": "string", "description": "A place for warnings or errors to show up if a transformation didn't work as expected." } }, "type": "object" }, "GooglePrivacyDlpV2AllOtherDatabaseResources": { "description": "Match database resources not covered by any other filter.", "type": "object", "id": "GooglePrivacyDlpV2AllOtherDatabaseResources", "properties": {} }, "GooglePrivacyDlpV2CategoricalStatsResult": { "properties": { "valueFrequencyHistogramBuckets": { "description": "Histogram of value frequencies in the column.", "type": "array", "items": { "$ref": "GooglePrivacyDlpV2CategoricalStatsHistogramBucket" } } }, "type": "object", "description": "Result of the categorical stats computation.", "id": "GooglePrivacyDlpV2CategoricalStatsResult" }, "GooglePrivacyDlpV2Bucket": { "type": "object", "properties": { "min": { "$ref": "GooglePrivacyDlpV2Value", "description": "Lower bound of the range, inclusive. Type should be the same as max if used." }, "replacementValue": { "description": "Required. Replacement value for this bucket.", "$ref": "GooglePrivacyDlpV2Value" }, "max": { "$ref": "GooglePrivacyDlpV2Value", "description": "Upper bound of the range, exclusive; type must match min." } }, "description": "Bucket is represented as a range, along with replacement values.", "id": "GooglePrivacyDlpV2Bucket" }, "GooglePrivacyDlpV2DataProfilePubSubMessage": { "description": "Pub/Sub topic message for a DataProfileAction.PubSubNotification event. To receive a message of protocol buffer schema type, convert the message data to an object of this proto class.", "properties": { "event": { "enumDescriptions": [ "Unused.", "New profile (not a re-profile).", "Changed one of the following profile metrics: * Table data risk score * Table sensitivity score * Table resource visibility * Table encryption type * Table predicted infoTypes * Table other infoTypes", "Table data risk score or sensitivity score increased.", "A user (non-internal) error occurred." ], "type": "string", "enum": [ "EVENT_TYPE_UNSPECIFIED", "NEW_PROFILE", "CHANGED_PROFILE", "SCORE_INCREASED", "ERROR_CHANGED" ], "description": "The event that caused the Pub/Sub message to be sent." }, "profile": { "description": "If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and `full_resource` will be populated.", "$ref": "GooglePrivacyDlpV2TableDataProfile" } }, "id": "GooglePrivacyDlpV2DataProfilePubSubMessage", "type": "object" }, "GooglePrivacyDlpV2TransformationDetails": { "id": "GooglePrivacyDlpV2TransformationDetails", "type": "object", "description": "Details about a single transformation. This object contains a description of the transformation, information about whether the transformation was successfully applied, and the precise location where the transformation occurred. These details are stored in a user-specified BigQuery table.", "properties": { "resourceName": { "description": "The name of the job that completed the transformation.", "type": "string" }, "transformedBytes": { "format": "int64", "type": "string", "description": "The number of bytes that were transformed. If transformation was unsuccessful or did not take place because there was no content to transform, this will be zero." }, "statusDetails": { "description": "Status of the transformation, if transformation was not successful, this will specify what caused it to fail, otherwise it will show that the transformation was successful.", "$ref": "GooglePrivacyDlpV2TransformationResultStatus" }, "transformationLocation": { "$ref": "GooglePrivacyDlpV2TransformationLocation", "description": "The precise location of the transformed content in the original container." }, "transformation": { "type": "array", "items": { "$ref": "GooglePrivacyDlpV2TransformationDescription" }, "description": "Description of transformation. This would only contain more than one element if there were multiple matching transformations and which one to apply was ambiguous. Not set for states that contain no transformation, currently only state that contains no transformation is TransformationResultStateType.METADATA_UNRETRIEVABLE." }, "containerName": { "description": "The top level name of the container where the transformation is located (this will be the source file name or table name).", "type": "string" } } }, "GooglePrivacyDlpV2StorageConfig": { "type": "object", "properties": { "cloudStorageOptions": { "description": "Cloud Storage options.", "$ref": "GooglePrivacyDlpV2CloudStorageOptions" }, "hybridOptions": { "$ref": "GooglePrivacyDlpV2HybridOptions", "description": "Hybrid inspection options." }, "bigQueryOptions": { "$ref": "GooglePrivacyDlpV2BigQueryOptions", "description": "BigQuery options." }, "timespanConfig": { "description": "Configuration of the timespan of the items to include in scanning.", "$ref": "GooglePrivacyDlpV2TimespanConfig" }, "datastoreOptions": { "description": "Google Cloud Datastore options.", "$ref": "GooglePrivacyDlpV2DatastoreOptions" } }, "description": "Shared message indicating Cloud storage type.", "id": "GooglePrivacyDlpV2StorageConfig" }, "GooglePrivacyDlpV2OrgConfig": { "id": "GooglePrivacyDlpV2OrgConfig", "type": "object", "description": "Project and scan location information. Only set when the parent is an org.", "properties": { "projectId": { "type": "string", "description": "The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the Cloud DLP API must be enabled." }, "location": { "$ref": "GooglePrivacyDlpV2DiscoveryStartingLocation", "description": "The data to scan: folder, org, or project" } } }, "GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket": { "properties": { "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 number of classes returned per bucket is capped at 20.", "items": { "$ref": "GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues" }, "type": "array" }, "maxProbability": { "format": "double", "description": "Always greater than or equal to min_probability.", "type": "number" }, "minProbability": { "type": "number", "format": "double", "description": "Between 0 and 1." }, "bucketSize": { "format": "int64", "type": "string", "description": "Number of records within these probability bounds." } }, "type": "object", "id": "GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket", "description": "A DeltaPresenceEstimationHistogramBucket message with the following values: min_probability: 0.1 max_probability: 0.2 frequency: 42 means that there are 42 records for which δ is in [0.1, 0.2). An important particular case is when min_probability = max_probability = 1: then, every individual who shares this quasi-identifier combination is in the dataset." }, "GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog": { "type": "object", "properties": {}, "description": "Publish findings of a DlpJob to Data Catalog. In Data Catalog, tag templates are applied to the resource that Cloud DLP scanned. Data Catalog tag templates are stored in the same project and region where the BigQuery table exists. For Cloud DLP to create and apply the tag template, the Cloud DLP service agent must have the `roles/datacatalog.tagTemplateOwner` permission on the project. The tag template contains fields summarizing the results of the DlpJob. Any field values previously written by another DlpJob are deleted. InfoType naming patterns are strictly enforced when using this feature. Findings are persisted in Data Catalog storage and are governed by service-specific policies for Data Catalog. For more information, see [Service Specific Terms](https://cloud.google.com/terms/service-terms). Only a single instance of this action can be specified. This action is allowed only if all resources being scanned are BigQuery tables. Compatible with: Inspect", "id": "GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog" }, "GooglePrivacyDlpV2KMapEstimationResult": { "properties": { "kMapEstimationHistogram": { "type": "array", "description": "The intervals [min_anonymity, max_anonymity] do not overlap. If a value doesn't correspond to any such interval, the associated frequency is zero. For example, the following records: {min_anonymity: 1, max_anonymity: 1, frequency: 17} {min_anonymity: 2, max_anonymity: 3, frequency: 42} {min_anonymity: 5, max_anonymity: 10, frequency: 99} mean that there are no record with an estimated anonymity of 4, 5, or larger than 10.", "items": { "$ref": "GooglePrivacyDlpV2KMapEstimationHistogramBucket" } } }, "type": "object", "description": "Result of the reidentifiability analysis. Note that these results are an estimation, not exact values.", "id": "GooglePrivacyDlpV2KMapEstimationResult" }, "GooglePrivacyDlpV2Manual": { "type": "object", "id": "GooglePrivacyDlpV2Manual", "properties": {}, "description": "Job trigger option for hybrid jobs. Jobs must be manually created and finished." }, "GooglePrivacyDlpV2RecordKey": { "id": "GooglePrivacyDlpV2RecordKey", "properties": { "datastoreKey": { "$ref": "GooglePrivacyDlpV2DatastoreKey", "description": "BigQuery key" }, "bigQueryKey": { "$ref": "GooglePrivacyDlpV2BigQueryKey", "description": "Datastore key" }, "idValues": { "description": "Values of identifying columns in the given row. Order of values matches the order of `identifying_fields` specified in the scanning request.", "items": { "type": "string" }, "type": "array" } }, "description": "Message for a unique key indicating a record that contains a finding.", "type": "object" }, "GooglePrivacyDlpV2DataSourceType": { "properties": { "dataSource": { "readOnly": true, "type": "string", "description": "Output only. An identifying string to the type of resource being profiled. Current values: google/bigquery/table, google/project" } }, "description": "Message used to identify the type of resource being profiled.", "id": "GooglePrivacyDlpV2DataSourceType", "type": "object" }, "GooglePrivacyDlpV2InfoTypeCategory": { "id": "GooglePrivacyDlpV2InfoTypeCategory", "type": "object", "description": "Classification of infoTypes to organize them according to geographic location, industry, and data type. NEXT_ID: 48", "properties": { "locationCategory": { "type": "string", "description": "The region or country that issued the ID or document represented by the infoType.", "enumDescriptions": [ "Unused location", "The infoType is not issued by or tied to a specific region, but is used almost everywhere.", "The infoType is typically used in Argentina.", "The infoType is typically used in Australia.", "The infoType is typically used in Belgium.", "The infoType is typically used in Brazil.", "The infoType is typically used in Canada.", "The infoType is typically used in Chile.", "The infoType is typically used in China.", "The infoType is typically used in Colombia.", "The infoType is typically used in Croatia.", "The infoType is typically used in Denmark.", "The infoType is typically used in France.", "The infoType is typically used in Finland.", "The infoType is typically used in Germany.", "The infoType is typically used in Hong Kong.", "The infoType is typically used in India.", "The infoType is typically used in Indonesia.", "The infoType is typically used in Ireland.", "The infoType is typically used in Israel.", "The infoType is typically used in Italy.", "The infoType is typically used in Japan.", "The infoType is typically used in Kazakhstan.", "The infoType is typically used in Korea.", "The infoType is typically used in Mexico.", "The infoType is typically used in the Netherlands.", "The infoType is typically used in New Zealand.", "The infoType is typically used in Norway.", "The infoType is typically used in Paraguay.", "The infoType is typically used in Peru.", "The infoType is typically used in Poland.", "The infoType is typically used in Portugal.", "The infoType is typically used in Russia.", "The infoType is typically used in Singapore.", "The infoType is typically used in South Africa.", "The infoType is typically used in Spain.", "The infoType is typically used in Sweden.", "The infoType is typically used in Switzerland.", "The infoType is typically used in Taiwan.", "The infoType is typically used in Thailand.", "The infoType is typically used in Turkey.", "The infoType is typically used in Ukraine.", "The infoType is typically used in the United Kingdom.", "The infoType is typically used in the United States.", "The infoType is typically used in Uruguay.", "The infoType is typically used in Uzbekistan.", "The infoType is typically used in Venezuela.", "The infoType is typically used in Google internally." ], "enum": [ "LOCATION_UNSPECIFIED", "GLOBAL", "ARGENTINA", "AUSTRALIA", "BELGIUM", "BRAZIL", "CANADA", "CHILE", "CHINA", "COLOMBIA", "CROATIA", "DENMARK", "FRANCE", "FINLAND", "GERMANY", "HONG_KONG", "INDIA", "INDONESIA", "IRELAND", "ISRAEL", "ITALY", "JAPAN", "KAZAKHSTAN", "KOREA", "MEXICO", "THE_NETHERLANDS", "NEW_ZEALAND", "NORWAY", "PARAGUAY", "PERU", "POLAND", "PORTUGAL", "RUSSIA", "SINGAPORE", "SOUTH_AFRICA", "SPAIN", "SWEDEN", "SWITZERLAND", "TAIWAN", "THAILAND", "TURKEY", "UKRAINE", "UNITED_KINGDOM", "UNITED_STATES", "URUGUAY", "UZBEKISTAN", "VENEZUELA", "INTERNAL" ] }, "industryCategory": { "enum": [ "INDUSTRY_UNSPECIFIED", "FINANCE", "HEALTH", "TELECOMMUNICATIONS" ], "type": "string", "description": "The group of relevant businesses where this infoType is commonly used", "enumDescriptions": [ "Unused industry", "The infoType is typically used in the finance industry.", "The infoType is typically used in the health industry.", "The infoType is typically used in the telecommunications industry." ] }, "typeCategory": { "enumDescriptions": [ "Unused type", "Personally identifiable information, for example, a name or phone number", "Personally identifiable information that is especially sensitive, for example, a passport number.", "Attributes that can partially identify someone, especially in combination with other attributes, like age, height, and gender.", "Confidential or secret information, for example, a password.", "An identification document issued by a government.", "A document, for example, a resume or source code.", "Information that is not sensitive on its own, but provides details about the circumstances surrounding an entity or an event." ], "type": "string", "enum": [ "TYPE_UNSPECIFIED", "PII", "SPII", "DEMOGRAPHIC", "CREDENTIAL", "GOVERNMENT_ID", "DOCUMENT", "CONTEXTUAL_INFORMATION" ], "description": "The class of identifiers where this infoType belongs" } } }, "GooglePrivacyDlpV2VersionDescription": { "description": "Details about each available version for an infotype.", "type": "object", "id": "GooglePrivacyDlpV2VersionDescription", "properties": { "description": { "description": "Description of the version.", "type": "string" }, "version": { "type": "string", "description": "Name of the version" } } }, "GooglePrivacyDlpV2UpdateJobTriggerRequest": { "properties": { "updateMask": { "type": "string", "description": "Mask to control which fields get updated.", "format": "google-fieldmask" }, "jobTrigger": { "description": "New JobTrigger value.", "$ref": "GooglePrivacyDlpV2JobTrigger" } }, "description": "Request message for UpdateJobTrigger.", "id": "GooglePrivacyDlpV2UpdateJobTriggerRequest", "type": "object" }, "GooglePrivacyDlpV2InspectJobConfig": { "id": "GooglePrivacyDlpV2InspectJobConfig", "properties": { "storageConfig": { "$ref": "GooglePrivacyDlpV2StorageConfig", "description": "The data to scan." }, "actions": { "description": "Actions to execute at the completion of the job.", "items": { "$ref": "GooglePrivacyDlpV2Action" }, "type": "array" }, "inspectTemplateName": { "type": "string", "description": "If provided, will be used as the default for all values in InspectConfig. `inspect_config` will be merged into the values persisted as part of the template." }, "inspectConfig": { "description": "How and what to scan for.", "$ref": "GooglePrivacyDlpV2InspectConfig" } }, "type": "object", "description": "Controls what and how to inspect for findings." }, "GooglePrivacyDlpV2PrimitiveTransformation": { "type": "object", "description": "A rule for transforming a value.", "properties": { "replaceConfig": { "description": "Replace with a specified value.", "$ref": "GooglePrivacyDlpV2ReplaceValueConfig" }, "cryptoReplaceFfxFpeConfig": { "$ref": "GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig", "description": "Ffx-Fpe" }, "fixedSizeBucketingConfig": { "$ref": "GooglePrivacyDlpV2FixedSizeBucketingConfig", "description": "Fixed size bucketing" }, "bucketingConfig": { "description": "Bucketing", "$ref": "GooglePrivacyDlpV2BucketingConfig" }, "redactConfig": { "$ref": "GooglePrivacyDlpV2RedactConfig", "description": "Redact" }, "timePartConfig": { "description": "Time extraction", "$ref": "GooglePrivacyDlpV2TimePartConfig" }, "characterMaskConfig": { "description": "Mask", "$ref": "GooglePrivacyDlpV2CharacterMaskConfig" }, "dateShiftConfig": { "description": "Date Shift", "$ref": "GooglePrivacyDlpV2DateShiftConfig" }, "cryptoHashConfig": { "description": "Crypto", "$ref": "GooglePrivacyDlpV2CryptoHashConfig" }, "replaceDictionaryConfig": { "description": "Replace with a value randomly drawn (with replacement) from a dictionary.", "$ref": "GooglePrivacyDlpV2ReplaceDictionaryConfig" }, "replaceWithInfoTypeConfig": { "$ref": "GooglePrivacyDlpV2ReplaceWithInfoTypeConfig", "description": "Replace with infotype" }, "cryptoDeterministicConfig": { "$ref": "GooglePrivacyDlpV2CryptoDeterministicConfig", "description": "Deterministic Crypto" } }, "id": "GooglePrivacyDlpV2PrimitiveTransformation" }, "GooglePrivacyDlpV2JobTrigger": { "type": "object", "properties": { "inspectJob": { "$ref": "GooglePrivacyDlpV2InspectJobConfig", "description": "For inspect jobs, a snapshot of the configuration." }, "status": { "enumDescriptions": [ "Unused.", "Trigger is healthy.", "Trigger is temporarily paused.", "Trigger is cancelled and can not be resumed." ], "enum": [ "STATUS_UNSPECIFIED", "HEALTHY", "PAUSED", "CANCELLED" ], "description": "Required. A status for this trigger.", "type": "string" }, "lastRunTime": { "readOnly": true, "type": "string", "description": "Output only. The timestamp of the last time this trigger executed.", "format": "google-datetime" }, "displayName": { "description": "Display name (max 100 chars)", "type": "string" }, "errors": { "type": "array", "description": "Output only. A stream of errors encountered when the trigger was activated. Repeated errors may result in the JobTrigger automatically being paused. Will return the last 100 errors. Whenever the JobTrigger is modified this list will be cleared.", "items": { "$ref": "GooglePrivacyDlpV2Error" }, "readOnly": true }, "updateTime": { "readOnly": true, "format": "google-datetime", "description": "Output only. The last update timestamp of a triggeredJob.", "type": "string" }, "triggers": { "items": { "$ref": "GooglePrivacyDlpV2Trigger" }, "description": "A list of triggers which will be OR'ed together. Only one in the list needs to trigger for a job to be started. The list may contain only a single Schedule trigger and must have at least one object.", "type": "array" }, "name": { "description": "Unique resource name for the triggeredJob, assigned by the service when the triggeredJob is created, for example `projects/dlp-test-project/jobTriggers/53234423`.", "type": "string" }, "description": { "type": "string", "description": "User provided description (max 256 chars)" }, "createTime": { "description": "Output only. The creation timestamp of a triggeredJob.", "format": "google-datetime", "readOnly": true, "type": "string" } }, "description": "Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more.", "id": "GooglePrivacyDlpV2JobTrigger" }, "GooglePrivacyDlpV2DeidentifyContentResponse": { "type": "object", "id": "GooglePrivacyDlpV2DeidentifyContentResponse", "description": "Results of de-identifying a ContentItem.", "properties": { "overview": { "$ref": "GooglePrivacyDlpV2TransformationOverview", "description": "An overview of the changes that were made on the `item`." }, "item": { "description": "The de-identified item.", "$ref": "GooglePrivacyDlpV2ContentItem" } } }, "GooglePrivacyDlpV2DataProfileBigQueryRowSchema": { "type": "object", "id": "GooglePrivacyDlpV2DataProfileBigQueryRowSchema", "properties": { "tableProfile": { "$ref": "GooglePrivacyDlpV2TableDataProfile", "description": "Table data profile column" }, "columnProfile": { "description": "Column data profile column", "$ref": "GooglePrivacyDlpV2ColumnDataProfile" } }, "description": "The schema of data to be saved to the BigQuery table when the `DataProfileAction` is enabled." }, "GooglePrivacyDlpV2FileSet": { "description": "Set of files to scan.", "properties": { "regexFileSet": { "$ref": "GooglePrivacyDlpV2CloudStorageRegexFileSet", "description": "The regex-filtered set of files to scan. Exactly one of `url` or `regex_file_set` must be set." }, "url": { "description": "The Cloud Storage url of the file(s) to scan, in the format `gs:///`. Trailing wildcard in the path is allowed. If the url ends in a trailing slash, the bucket or directory represented by the url will be scanned non-recursively (content in sub-directories will not be scanned). This means that `gs://mybucket/` is equivalent to `gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to `gs://mybucket/directory/*`. Exactly one of `url` or `regex_file_set` must be set.", "type": "string" } }, "id": "GooglePrivacyDlpV2FileSet", "type": "object" }, "GooglePrivacyDlpV2RecordTransformations": { "type": "object", "properties": { "recordSuppressions": { "description": "Configuration defining which records get suppressed entirely. Records that match any suppression rule are omitted from the output.", "type": "array", "items": { "$ref": "GooglePrivacyDlpV2RecordSuppression" } }, "fieldTransformations": { "description": "Transform the record by applying various field transformations.", "type": "array", "items": { "$ref": "GooglePrivacyDlpV2FieldTransformation" } } }, "id": "GooglePrivacyDlpV2RecordTransformations", "description": "A type of transformation that is applied over structured data such as a table." }, "GooglePrivacyDlpV2RiskAnalysisJobConfig": { "properties": { "actions": { "items": { "$ref": "GooglePrivacyDlpV2Action" }, "type": "array", "description": "Actions to execute at the completion of the job. Are executed in the order provided." }, "privacyMetric": { "$ref": "GooglePrivacyDlpV2PrivacyMetric", "description": "Privacy metric to compute." }, "sourceTable": { "$ref": "GooglePrivacyDlpV2BigQueryTable", "description": "Input dataset to compute metrics over." } }, "description": "Configuration for a risk analysis job. See https://cloud.google.com/sensitive-data-protection/docs/concepts-risk-analysis to learn more.", "id": "GooglePrivacyDlpV2RiskAnalysisJobConfig", "type": "object" }, "GooglePrivacyDlpV2OrConditions": { "description": "There is an OR relationship between these attributes. They are used to determine if a table should be scanned or not in Discovery.", "id": "GooglePrivacyDlpV2OrConditions", "type": "object", "properties": { "minRowCount": { "type": "integer", "format": "int32", "description": "Minimum number of rows that should be present before Cloud DLP profiles a table" }, "minAge": { "format": "google-duration", "description": "Minimum age a table must have before Cloud DLP can profile it. Value must be 1 hour or greater.", "type": "string" } } }, "GooglePrivacyDlpV2ListDeidentifyTemplatesResponse": { "description": "Response message for ListDeidentifyTemplates.", "id": "GooglePrivacyDlpV2ListDeidentifyTemplatesResponse", "type": "object", "properties": { "deidentifyTemplates": { "items": { "$ref": "GooglePrivacyDlpV2DeidentifyTemplate" }, "type": "array", "description": "List of deidentify templates, up to page_size in ListDeidentifyTemplatesRequest." }, "nextPageToken": { "description": "If the next page is available then the next page token to be used in the following ListDeidentifyTemplates request.", "type": "string" } } }, "GooglePrivacyDlpV2CloudSqlIamCredential": { "id": "GooglePrivacyDlpV2CloudSqlIamCredential", "properties": {}, "description": "Use IAM auth to connect. This requires the Cloud SQL IAM feature to be enabled on the instance, which is not the default for Cloud SQL. See https://cloud.google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/docs/mysql/authentication.", "type": "object" }, "GooglePrivacyDlpV2QuasiId": { "description": "A column with a semantic tag attached.", "properties": { "inferred": { "$ref": "GoogleProtobufEmpty", "description": "If no semantic tag is indicated, we infer the statistical model from the distribution of values in the input data" }, "field": { "description": "Required. Identifies the column.", "$ref": "GooglePrivacyDlpV2FieldId" }, "infoType": { "description": "A column can be tagged with a InfoType to use the relevant public dataset as a statistical model of population, if available. We currently support US ZIP codes, region codes, ages and genders. To programmatically obtain the list of supported InfoTypes, use ListInfoTypes with the supported_by=RISK_ANALYSIS filter.", "$ref": "GooglePrivacyDlpV2InfoType" }, "customTag": { "type": "string", "description": "A column can be tagged with a custom tag. In this case, the user must indicate an auxiliary table that contains statistical information on the possible values of this column (below)." } }, "id": "GooglePrivacyDlpV2QuasiId", "type": "object" }, "GooglePrivacyDlpV2Key": { "properties": { "path": { "description": "The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.", "items": { "$ref": "GooglePrivacyDlpV2PathElement" }, "type": "array" }, "partitionId": { "$ref": "GooglePrivacyDlpV2PartitionId", "description": "Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition." } }, "type": "object", "description": "A unique identifier for a Datastore entity. If a key's partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts.", "id": "GooglePrivacyDlpV2Key" }, "GooglePrivacyDlpV2InspectionRule": { "description": "A single inspection rule to be applied to infoTypes, specified in `InspectionRuleSet`.", "type": "object", "properties": { "exclusionRule": { "$ref": "GooglePrivacyDlpV2ExclusionRule", "description": "Exclusion rule." }, "hotwordRule": { "description": "Hotword-based detection rule.", "$ref": "GooglePrivacyDlpV2HotwordRule" } }, "id": "GooglePrivacyDlpV2InspectionRule" }, "GooglePrivacyDlpV2PrivacyMetric": { "type": "object", "id": "GooglePrivacyDlpV2PrivacyMetric", "properties": { "kAnonymityConfig": { "$ref": "GooglePrivacyDlpV2KAnonymityConfig", "description": "K-anonymity" }, "categoricalStatsConfig": { "$ref": "GooglePrivacyDlpV2CategoricalStatsConfig", "description": "Categorical stats" }, "lDiversityConfig": { "$ref": "GooglePrivacyDlpV2LDiversityConfig", "description": "l-diversity" }, "numericalStatsConfig": { "description": "Numerical stats", "$ref": "GooglePrivacyDlpV2NumericalStatsConfig" }, "kMapEstimationConfig": { "description": "k-map", "$ref": "GooglePrivacyDlpV2KMapEstimationConfig" }, "deltaPresenceEstimationConfig": { "$ref": "GooglePrivacyDlpV2DeltaPresenceEstimationConfig", "description": "delta-presence" } }, "description": "Privacy metric to compute for reidentification risk analysis." }, "GooglePrivacyDlpV2BigQueryRegexes": { "id": "GooglePrivacyDlpV2BigQueryRegexes", "description": "A collection of regular expressions to determine what tables to match against.", "type": "object", "properties": { "patterns": { "items": { "$ref": "GooglePrivacyDlpV2BigQueryRegex" }, "description": "A single BigQuery regular expression pattern to match against one or more tables, datasets, or projects that contain BigQuery tables.", "type": "array" } } }, "GooglePrivacyDlpV2TransformationErrorHandling": { "id": "GooglePrivacyDlpV2TransformationErrorHandling", "properties": { "throwError": { "$ref": "GooglePrivacyDlpV2ThrowError", "description": "Throw an error" }, "leaveUntransformed": { "$ref": "GooglePrivacyDlpV2LeaveUntransformed", "description": "Ignore errors" } }, "description": "How to handle transformation errors during de-identification. A transformation error occurs when the requested transformation is incompatible with the data. For example, trying to de-identify an IP address using a `DateShift` transformation would result in a transformation error, since date info cannot be extracted from an IP address. Information about any incompatible transformations, and how they were handled, is returned in the response as part of the `TransformationOverviews`.", "type": "object" }, "GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest": { "properties": { "updateMask": { "description": "Mask to control which fields get updated.", "type": "string", "format": "google-fieldmask" }, "deidentifyTemplate": { "$ref": "GooglePrivacyDlpV2DeidentifyTemplate", "description": "New DeidentifyTemplate value." } }, "description": "Request message for UpdateDeidentifyTemplate.", "id": "GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest", "type": "object" }, "GooglePrivacyDlpV2Deidentify": { "description": "Create a de-identified copy of the requested table or files. A TransformationDetail will be created for each transformation. If any rows in BigQuery are skipped during de-identification (transformation errors or row size exceeds BigQuery insert API limits) they are placed in the failure output table. If the original row exceeds the BigQuery insert API limit it will be truncated when written to the failure output table. The failure output table can be set in the action.deidentify.output.big_query_output.deidentified_failure_output_table field, if no table is set, a table will be automatically created in the same project and dataset as the original table. Compatible with: Inspect", "type": "object", "id": "GooglePrivacyDlpV2Deidentify", "properties": { "cloudStorageOutput": { "type": "string", "description": "Required. User settable Cloud Storage bucket and folders to store de-identified files. This field must be set for cloud storage deidentification. The output Cloud Storage bucket must be different from the input bucket. De-identified files will overwrite files in the output path. Form of: gs://bucket/folder/ or gs://bucket" }, "transformationDetailsStorageConfig": { "$ref": "GooglePrivacyDlpV2TransformationDetailsStorageConfig", "description": "Config for storing transformation details. This is separate from the de-identified content, and contains metadata about the successful transformations and/or failures that occurred while de-identifying. This needs to be set in order for users to access information about the status of each transformation (see TransformationDetails message for more information about what is noted)." }, "transformationConfig": { "description": "User specified deidentify templates and configs for structured, unstructured, and image files.", "$ref": "GooglePrivacyDlpV2TransformationConfig" }, "fileTypesToTransform": { "description": "List of user-specified file type groups to transform. If specified, only the files with these filetypes will be transformed. If empty, all supported files will be transformed. Supported types may be automatically added over time. If a file type is set in this field that isn't supported by the Deidentify action then the job will fail and will not be successfully created/started. Currently the only filetypes supported are: IMAGES, TEXT_FILES, CSV, TSV.", "items": { "type": "string", "enumDescriptions": [ "Includes all files.", "Includes all file extensions not covered by another entry. Binary scanning attempts to convert the content of the file to utf_8 to scan the file. If you wish to avoid this fall back, specify one or more of the other file types in your storage scan.", "Included file extensions: asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart, dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml, ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.", "Included file extensions: bmp, gif, jpg, jpeg, jpe, png. Setting bytes_limit_per_file or bytes_limit_per_file_percent has no effect on image files. Image inspection is restricted to the `global`, `us`, `asia`, and `europe` regions.", "Microsoft Word files larger than 30 MB will be scanned as binary files. Included file extensions: docx, dotx, docm, dotm. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent` has no effect on Word files.", "PDF files larger than 30 MB will be scanned as binary files. Included file extensions: pdf. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent` has no effect on PDF files.", "Included file extensions: avro", "Included file extensions: csv", "Included file extensions: tsv", "Microsoft PowerPoint files larger than 30 MB will be scanned as binary files. Included file extensions: pptx, pptm, potx, potm, pot. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent` has no effect on PowerPoint files.", "Microsoft Excel files larger than 30 MB will be scanned as binary files. Included file extensions: xlsx, xlsm, xltx, xltm. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent` has no effect on Excel files." ], "enum": [ "FILE_TYPE_UNSPECIFIED", "BINARY_FILE", "TEXT_FILE", "IMAGE", "WORD", "PDF", "AVRO", "CSV", "TSV", "POWERPOINT", "EXCEL" ] }, "type": "array" } } }, "GooglePrivacyDlpV2DetectionRule": { "type": "object", "description": "Deprecated; use `InspectionRuleSet` instead. Rule for modifying a `CustomInfoType` to alter behavior under certain circumstances, depending on the specific details of the rule. Not supported for the `surrogate_type` custom infoType.", "properties": { "hotwordRule": { "$ref": "GooglePrivacyDlpV2HotwordRule", "description": "Hotword-based detection rule." } }, "id": "GooglePrivacyDlpV2DetectionRule" }, "GooglePrivacyDlpV2HybridInspectResponse": { "properties": {}, "type": "object", "id": "GooglePrivacyDlpV2HybridInspectResponse", "description": "Quota exceeded errors will be thrown once quota has been met." }, "GooglePrivacyDlpV2InfoTypeDescription": { "properties": { "description": { "description": "Description of the infotype. Translated when language is provided in the request.", "type": "string" }, "versions": { "type": "array", "description": "A list of available versions for the infotype.", "items": { "$ref": "GooglePrivacyDlpV2VersionDescription" } }, "supportedBy": { "items": { "type": "string", "enum": [ "ENUM_TYPE_UNSPECIFIED", "INSPECT", "RISK_ANALYSIS" ], "enumDescriptions": [ "Unused.", "Supported by the inspect operations.", "Supported by the risk analysis operations." ] }, "type": "array", "description": "Which parts of the API supports this InfoType." }, "categories": { "description": "The category of the infoType.", "type": "array", "items": { "$ref": "GooglePrivacyDlpV2InfoTypeCategory" } }, "name": { "description": "Internal name of the infoType.", "type": "string" }, "displayName": { "description": "Human readable form of the infoType name.", "type": "string" }, "sensitivityScore": { "description": "The default sensitivity of the infoType.", "$ref": "GooglePrivacyDlpV2SensitivityScore" } }, "description": "InfoType description.", "id": "GooglePrivacyDlpV2InfoTypeDescription", "type": "object" }, "GooglePrivacyDlpV2KAnonymityResult": { "description": "Result of the k-anonymity computation.", "properties": { "equivalenceClassHistogramBuckets": { "items": { "$ref": "GooglePrivacyDlpV2KAnonymityHistogramBucket" }, "description": "Histogram of k-anonymity equivalence classes.", "type": "array" } }, "type": "object", "id": "GooglePrivacyDlpV2KAnonymityResult" }, "GooglePrivacyDlpV2ActionDetails": { "type": "object", "id": "GooglePrivacyDlpV2ActionDetails", "description": "The results of an Action.", "properties": { "deidentifyDetails": { "$ref": "GooglePrivacyDlpV2DeidentifyDataSourceDetails", "description": "Outcome of a de-identification action." } } }, "GooglePrivacyDlpV2DateTime": { "type": "object", "id": "GooglePrivacyDlpV2DateTime", "description": "Message for a date time object. e.g. 2018-01-01, 5th August.", "properties": { "date": { "description": "One or more of the following must be set. Must be a valid date or time value.", "$ref": "GoogleTypeDate" }, "time": { "description": "Time of day", "$ref": "GoogleTypeTimeOfDay" }, "timeZone": { "description": "Time zone", "$ref": "GooglePrivacyDlpV2TimeZone" }, "dayOfWeek": { "description": "Day of week", "type": "string", "enumDescriptions": [ "The day of the week is unspecified.", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ], "enum": [ "DAY_OF_WEEK_UNSPECIFIED", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY" ] } } }, "GooglePrivacyDlpV2ValueFrequency": { "properties": { "count": { "format": "int64", "type": "string", "description": "How many times the value is contained in the field." }, "value": { "description": "A value contained in the field in question.", "$ref": "GooglePrivacyDlpV2Value" } }, "type": "object", "id": "GooglePrivacyDlpV2ValueFrequency", "description": "A value of a field, including its frequency." }, "GooglePrivacyDlpV2TransformationDescription": { "type": "object", "id": "GooglePrivacyDlpV2TransformationDescription", "properties": { "description": { "description": "A description of the transformation. This is empty for a RECORD_SUPPRESSION, or is the output of calling toString() on the `PrimitiveTransformation` protocol buffer message for any other type of transformation.", "type": "string" }, "infoType": { "$ref": "GooglePrivacyDlpV2InfoType", "description": "Set if the transformation was limited to a specific `InfoType`." }, "type": { "description": "The transformation type.", "enumDescriptions": [ "Unused", "Record suppression", "Replace value", "Replace value using a dictionary.", "Redact", "Character mask", "FFX-FPE", "Fixed size bucketing", "Bucketing", "Replace with info type", "Time part", "Crypto hash", "Date shift", "Deterministic crypto", "Redact image" ], "enum": [ "TRANSFORMATION_TYPE_UNSPECIFIED", "RECORD_SUPPRESSION", "REPLACE_VALUE", "REPLACE_DICTIONARY", "REDACT", "CHARACTER_MASK", "CRYPTO_REPLACE_FFX_FPE", "FIXED_SIZE_BUCKETING", "BUCKETING", "REPLACE_WITH_INFO_TYPE", "TIME_PART", "CRYPTO_HASH", "DATE_SHIFT", "CRYPTO_DETERMINISTIC_CONFIG", "REDACT_IMAGE" ], "type": "string" }, "condition": { "type": "string", "description": "A human-readable string representation of the `RecordCondition` corresponding to this transformation. Set if a `RecordCondition` was used to determine whether or not to apply this transformation. Examples: * (age_field \u003e 85) * (age_field \u003c= 18) * (zip_field exists) * (zip_field == 01234) && (city_field != \"Springville\") * (zip_field == 01234) && (age_field \u003c= 18) && (city_field exists)" } }, "description": "A flattened description of a `PrimitiveTransformation` or `RecordSuppression`." }, "GooglePrivacyDlpV2HybridFindingDetails": { "type": "object", "properties": { "containerDetails": { "$ref": "GooglePrivacyDlpV2Container", "description": "Details about the container where the content being inspected is from." }, "rowOffset": { "type": "string", "description": "Offset of the row for tables. Populate if the row(s) being scanned are part of a bigger dataset and you want to keep track of their absolute position.", "format": "int64" }, "tableOptions": { "description": "If the container is a table, additional information to make findings meaningful such as the columns that are primary keys. If not known ahead of time, can also be set within each inspect hybrid call and the two will be merged. Note that identifying_fields will only be stored to BigQuery, and only if the BigQuery action has been included.", "$ref": "GooglePrivacyDlpV2TableOptions" }, "labels": { "description": "Labels to represent user provided metadata about the data being inspected. If configured by the job, some key values may be required. The labels associated with `Finding`'s produced by hybrid inspection. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. No more than 10 labels can be associated with a given finding. Examples: * `\"environment\" : \"production\"` * `\"pipeline\" : \"etl\"`", "type": "object", "additionalProperties": { "type": "string" } }, "fileOffset": { "description": "Offset in bytes of the line, from the beginning of the file, where the finding is located. Populate if the item being scanned is only part of a bigger item, such as a shard of a file and you want to track the absolute position of the finding.", "format": "int64", "type": "string" } }, "id": "GooglePrivacyDlpV2HybridFindingDetails", "description": "Populate to associate additional data with each finding." }, "GooglePrivacyDlpV2InfoTypeTransformations": { "description": "A type of transformation that will scan unstructured text and apply various `PrimitiveTransformation`s to each finding, where the transformation is applied to only values that were identified as a specific info_type.", "properties": { "transformations": { "description": "Required. Transformation for each infoType. Cannot specify more than one for a given infoType.", "items": { "$ref": "GooglePrivacyDlpV2InfoTypeTransformation" }, "type": "array" } }, "type": "object", "id": "GooglePrivacyDlpV2InfoTypeTransformations" }, "GooglePrivacyDlpV2StoredInfoTypeConfig": { "id": "GooglePrivacyDlpV2StoredInfoTypeConfig", "type": "object", "properties": { "regex": { "$ref": "GooglePrivacyDlpV2Regex", "description": "Store regular expression-based StoredInfoType." }, "description": { "type": "string", "description": "Description of the StoredInfoType (max 256 characters)." }, "displayName": { "type": "string", "description": "Display name of the StoredInfoType (max 256 characters)." }, "dictionary": { "description": "Store dictionary-based CustomInfoType.", "$ref": "GooglePrivacyDlpV2Dictionary" }, "largeCustomDictionary": { "description": "StoredInfoType where findings are defined by a dictionary of phrases.", "$ref": "GooglePrivacyDlpV2LargeCustomDictionaryConfig" } }, "description": "Configuration for stored infoTypes. All fields and subfield are provided by the user. For more information, see https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes." }, "GoogleRpcStatus": { "type": "object", "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "GoogleRpcStatus", "properties": { "code": { "format": "int32", "type": "integer", "description": "The status code, which should be an enum value of google.rpc.Code." }, "message": { "type": "string", "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client." }, "details": { "items": { "type": "object", "additionalProperties": { "type": "any", "description": "Properties of the object. Contains field @type with type URL." } }, "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", "type": "array" } } }, "GooglePrivacyDlpV2InspectContentResponse": { "properties": { "result": { "description": "The findings.", "$ref": "GooglePrivacyDlpV2InspectResult" } }, "id": "GooglePrivacyDlpV2InspectContentResponse", "description": "Results of inspecting an item.", "type": "object" }, "GooglePrivacyDlpV2InspectConfig": { "properties": { "ruleSet": { "items": { "$ref": "GooglePrivacyDlpV2InspectionRuleSet" }, "type": "array", "description": "Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end, other rules are executed in the order they are specified for each info type." }, "excludeInfoTypes": { "type": "boolean", "description": "When true, excludes type information of the findings. This is not used for data profiling." }, "includeQuote": { "type": "boolean", "description": "When true, a contextual quote from the data that triggered a finding is included in the response; see Finding.quote. This is not used for data profiling." }, "minLikelihood": { "enum": [ "LIKELIHOOD_UNSPECIFIED", "VERY_UNLIKELY", "UNLIKELY", "POSSIBLE", "LIKELY", "VERY_LIKELY" ], "description": "Only returns findings equal to or above this threshold. The default is POSSIBLE. In general, the highest likelihood setting yields the fewest findings in results and the lowest chance of a false positive. For more information, see [Match likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood).", "type": "string", "enumDescriptions": [ "Default value; same as POSSIBLE.", "Highest chance of a false positive.", "High chance of a false positive.", "Some matching signals. The default value.", "Low chance of a false positive.", "Confidence level is high. Lowest chance of a false positive." ] }, "customInfoTypes": { "type": "array", "description": "CustomInfoTypes provided by the user. See https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes to learn more.", "items": { "$ref": "GooglePrivacyDlpV2CustomInfoType" } }, "minLikelihoodPerInfoType": { "description": "Minimum likelihood per infotype. For each infotype, a user can specify a minimum likelihood. The system only returns a finding if its likelihood is above this threshold. If this field is not set, the system uses the InspectConfig min_likelihood.", "items": { "$ref": "GooglePrivacyDlpV2InfoTypeLikelihood" }, "type": "array" }, "contentOptions": { "description": "Deprecated and unused.", "items": { "enumDescriptions": [ "Includes entire content of a file or a data stream.", "Text content within the data, excluding any metadata.", "Images found in the data." ], "enum": [ "CONTENT_UNSPECIFIED", "CONTENT_TEXT", "CONTENT_IMAGE" ], "type": "string" }, "type": "array" }, "infoTypes": { "description": "Restricts what info_types to look for. The values must correspond to InfoType values returned by ListInfoTypes or listed at https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference. When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose a default list of detectors to run, which may change over time. If you need precise control and predictability as to what detectors are run you should specify specific InfoTypes listed in the reference, otherwise a default list will be used, which may change over time.", "type": "array", "items": { "$ref": "GooglePrivacyDlpV2InfoType" } }, "limits": { "description": "Configuration to control the number of findings returned. This is not used for data profiling. When redacting sensitive data from images, finding limits don't apply. They can cause unexpected or inconsistent results, where only some data is redacted. Don't include finding limits in RedactImage requests. Otherwise, Cloud DLP returns an error. When set within an InspectJobConfig, the specified maximum values aren't hard limits. If an inspection job reaches these limits, the job ends gradually, not abruptly. Therefore, the actual number of findings that Cloud DLP returns can be multiple times higher than these maximum values.", "$ref": "GooglePrivacyDlpV2FindingLimits" } }, "description": "Configuration description of the scanning process. When used with redactContent only info_types and min_likelihood are currently used.", "id": "GooglePrivacyDlpV2InspectConfig", "type": "object" }, "GooglePrivacyDlpV2LeaveUntransformed": { "properties": {}, "type": "object", "id": "GooglePrivacyDlpV2LeaveUntransformed", "description": "Skips the data without modifying it if the requested transformation would cause an error. For example, if a `DateShift` transformation were applied an an IP address, this mode would leave the IP address unchanged in the response." }, "GooglePrivacyDlpV2Row": { "properties": { "values": { "type": "array", "description": "Individual cells.", "items": { "$ref": "GooglePrivacyDlpV2Value" } } }, "type": "object", "description": "Values of the row.", "id": "GooglePrivacyDlpV2Row" }, "GooglePrivacyDlpV2TimespanConfig": { "type": "object", "properties": { "endTime": { "format": "google-datetime", "description": "Exclude files, tables, or rows newer than this value. If not set, no upper time limit is applied.", "type": "string" }, "enableAutoPopulationOfTimespanConfig": { "description": "When the job is started by a JobTrigger we will automatically figure out a valid start_time to avoid scanning files that have not been modified since the last time the JobTrigger executed. This will be based on the time of the execution of the last run of the JobTrigger or the timespan end_time used in the last run of the JobTrigger. *For BigQuery* Inspect jobs triggered by automatic population will scan data that is at least three hours old when the job starts. This is because streaming buffer rows are not read during inspection and reading up to the current timestamp will result in skipped rows. See the [known issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data) related to this operation.", "type": "boolean" }, "timestampField": { "description": "Specification of the field containing the timestamp of scanned items. Used for data sources like Datastore and BigQuery. *For BigQuery* If this value is not specified and the table was modified between the given start and end times, the entire table will be scanned. If this value is specified, then rows are filtered based on the given start and end times. Rows with a `NULL` value in the provided BigQuery column are skipped. Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`, `TIMESTAMP`, and `DATETIME`. If your BigQuery table is [partitioned at ingestion time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time), you can use any of the following pseudo-columns as your timestamp field. When used with Cloud DLP, these pseudo-column names are case sensitive. - _PARTITIONTIME - _PARTITIONDATE - _PARTITION_LOAD_TIME *For Datastore* If this value is specified, then entities are filtered based on the given start and end times. If an entity does not contain the provided timestamp property or contains empty or invalid values, then it is included. Valid data types of the provided timestamp property are: `TIMESTAMP`. See the [known issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) related to this operation.", "$ref": "GooglePrivacyDlpV2FieldId" }, "startTime": { "description": "Exclude files, tables, or rows older than this value. If not set, no lower time limit is applied.", "type": "string", "format": "google-datetime" } }, "id": "GooglePrivacyDlpV2TimespanConfig", "description": "Configuration of the timespan of the items to include in scanning. Currently only supported when inspecting Cloud Storage and BigQuery." }, "GooglePrivacyDlpV2CreateDlpJobRequest": { "type": "object", "properties": { "jobId": { "type": "string", "description": "The job id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one." }, "locationId": { "description": "Deprecated. This field has no effect.", "type": "string" }, "riskJob": { "description": "A risk analysis job calculates re-identification risk metrics for a BigQuery table.", "$ref": "GooglePrivacyDlpV2RiskAnalysisJobConfig" }, "inspectJob": { "description": "An inspection job scans a storage repository for InfoTypes.", "$ref": "GooglePrivacyDlpV2InspectJobConfig" } }, "id": "GooglePrivacyDlpV2CreateDlpJobRequest", "description": "Request message for CreateDlpJobRequest. Used to initiate long running jobs such as calculating risk metrics or inspecting Google Cloud Storage." }, "GooglePrivacyDlpV2Color": { "properties": { "blue": { "format": "float", "description": "The amount of blue in the color as a value in the interval [0, 1].", "type": "number" }, "green": { "format": "float", "type": "number", "description": "The amount of green in the color as a value in the interval [0, 1]." }, "red": { "description": "The amount of red in the color as a value in the interval [0, 1].", "format": "float", "type": "number" } }, "id": "GooglePrivacyDlpV2Color", "description": "Represents a color in the RGB color space.", "type": "object" }, "GooglePrivacyDlpV2LDiversityEquivalenceClass": { "description": "The set of columns' values that share the same ldiversity value.", "id": "GooglePrivacyDlpV2LDiversityEquivalenceClass", "type": "object", "properties": { "numDistinctSensitiveValues": { "format": "int64", "type": "string", "description": "Number of distinct sensitive values in this equivalence class." }, "equivalenceClassSize": { "type": "string", "format": "int64", "description": "Size of the k-anonymity equivalence class." }, "topSensitiveValues": { "description": "Estimated frequencies of top sensitive values.", "type": "array", "items": { "$ref": "GooglePrivacyDlpV2ValueFrequency" } }, "quasiIdsValues": { "items": { "$ref": "GooglePrivacyDlpV2Value" }, "description": "Quasi-identifier values defining the k-anonymity equivalence class. The order is always the same as the original request.", "type": "array" } } }, "GooglePrivacyDlpV2DiscoveryBigQueryConditions": { "properties": { "types": { "description": "Restrict discovery to specific table types.", "$ref": "GooglePrivacyDlpV2BigQueryTableTypes" }, "typeCollection": { "type": "string", "enumDescriptions": [ "Unused.", "Automatically generate profiles for all tables, even if the table type is not yet fully supported for analysis. Profiles for unsupported tables will be generated with errors to indicate their partial support. When full support is added, the tables will automatically be profiled during the next scheduled run.", "Only those types fully supported will be profiled. Will expand automatically as Cloud DLP adds support for new table types. Unsupported table types will not have partial profiles generated." ], "enum": [ "BIG_QUERY_COLLECTION_UNSPECIFIED", "BIG_QUERY_COLLECTION_ALL_TYPES", "BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES" ], "description": "Restrict discovery to categories of table types." }, "createdAfter": { "description": "BigQuery table must have been created after this date. Used to avoid backfilling.", "type": "string", "format": "google-datetime" }, "orConditions": { "$ref": "GooglePrivacyDlpV2OrConditions", "description": "At least one of the conditions must be true for a table to be scanned." } }, "description": "Requirements that must be true before a table is scanned in discovery for the first time. There is an AND relationship between the top-level attributes. Additionally, minimum conditions with an OR relationship that must be met before Cloud DLP scans a table can be set (like a minimum row count or a minimum table age).", "type": "object", "id": "GooglePrivacyDlpV2DiscoveryBigQueryConditions" }, "GooglePrivacyDlpV2InfoTypeSummary": { "type": "object", "description": "The infoType details for this column.", "id": "GooglePrivacyDlpV2InfoTypeSummary", "properties": { "estimatedPrevalence": { "deprecated": true, "format": "int32", "type": "integer", "description": "Not populated for predicted infotypes." }, "infoType": { "description": "The infoType.", "$ref": "GooglePrivacyDlpV2InfoType" } } }, "GooglePrivacyDlpV2NumericalStatsResult": { "type": "object", "description": "Result of the numerical stats computation.", "properties": { "maxValue": { "description": "Maximum value appearing in the column.", "$ref": "GooglePrivacyDlpV2Value" }, "minValue": { "description": "Minimum value appearing in the column.", "$ref": "GooglePrivacyDlpV2Value" }, "quantileValues": { "items": { "$ref": "GooglePrivacyDlpV2Value" }, "description": "List of 99 values that partition the set of field values into 100 equal sized buckets.", "type": "array" } }, "id": "GooglePrivacyDlpV2NumericalStatsResult" }, "GooglePrivacyDlpV2Action": { "properties": { "publishFindingsToCloudDataCatalog": { "$ref": "GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog", "description": "Publish findings to Cloud Datahub." }, "deidentify": { "description": "Create a de-identified copy of the input data.", "$ref": "GooglePrivacyDlpV2Deidentify" }, "pubSub": { "$ref": "GooglePrivacyDlpV2PublishToPubSub", "description": "Publish a notification to a Pub/Sub topic." }, "publishToStackdriver": { "$ref": "GooglePrivacyDlpV2PublishToStackdriver", "description": "Enable Stackdriver metric dlp.googleapis.com/finding_count." }, "saveFindings": { "$ref": "GooglePrivacyDlpV2SaveFindings", "description": "Save resulting findings in a provided location." }, "jobNotificationEmails": { "description": "Sends an email when the job completes. The email goes to IAM project owners and technical [Essential Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts).", "$ref": "GooglePrivacyDlpV2JobNotificationEmails" }, "publishSummaryToCscc": { "$ref": "GooglePrivacyDlpV2PublishSummaryToCscc", "description": "Publish summary to Cloud Security Command Center (Alpha)." } }, "description": "A task to execute on the completion of a job. See https://cloud.google.com/sensitive-data-protection/docs/concepts-actions to learn more.", "type": "object", "id": "GooglePrivacyDlpV2Action" }, "GooglePrivacyDlpV2DateShiftConfig": { "description": "Shifts dates by random number of days, with option to be consistent for the same context. See https://cloud.google.com/sensitive-data-protection/docs/concepts-date-shifting to learn more.", "properties": { "context": { "$ref": "GooglePrivacyDlpV2FieldId", "description": "Points to the field that contains the context, for example, an entity id. If set, must also set cryptoKey. If set, shift will be consistent for the given context." }, "lowerBoundDays": { "format": "int32", "description": "Required. For example, -5 means shift date to at most 5 days back in the past.", "type": "integer" }, "cryptoKey": { "description": "Causes the shift to be computed based on this key and the context. This results in the same shift for the same context and crypto_key. If set, must also set context. Can only be applied to table items.", "$ref": "GooglePrivacyDlpV2CryptoKey" }, "upperBoundDays": { "format": "int32", "type": "integer", "description": "Required. Range of shift in days. Actual shift will be selected at random within this range (inclusive ends). Negative means shift to earlier in time. Must not be more than 365250 days (1000 years) each direction. For example, 3 means shift date to at most 3 days into the future." } }, "id": "GooglePrivacyDlpV2DateShiftConfig", "type": "object" }, "GooglePrivacyDlpV2AllInfoTypes": { "description": "Apply transformation to all findings.", "type": "object", "id": "GooglePrivacyDlpV2AllInfoTypes", "properties": {} }, "GooglePrivacyDlpV2PubSubCondition": { "properties": { "minimumSensitivityScore": { "enum": [ "PROFILE_SCORE_BUCKET_UNSPECIFIED", "HIGH", "MEDIUM_OR_HIGH" ], "description": "The minimum sensitivity level that triggers the condition.", "enumDescriptions": [ "Unused.", "High risk/sensitivity detected.", "Medium or high risk/sensitivity detected." ], "type": "string" }, "minimumRiskScore": { "description": "The minimum data risk score that triggers the condition.", "enumDescriptions": [ "Unused.", "High risk/sensitivity detected.", "Medium or high risk/sensitivity detected." ], "type": "string", "enum": [ "PROFILE_SCORE_BUCKET_UNSPECIFIED", "HIGH", "MEDIUM_OR_HIGH" ] } }, "description": "A condition consisting of a value.", "id": "GooglePrivacyDlpV2PubSubCondition", "type": "object" }, "GooglePrivacyDlpV2ReplaceValueConfig": { "id": "GooglePrivacyDlpV2ReplaceValueConfig", "properties": { "newValue": { "description": "Value to replace it with.", "$ref": "GooglePrivacyDlpV2Value" } }, "description": "Replace each input value with a given `Value`.", "type": "object" }, "GooglePrivacyDlpV2Export": { "id": "GooglePrivacyDlpV2Export", "type": "object", "description": "If set, the detailed data profiles will be persisted to the location of your choice whenever updated.", "properties": { "profileTable": { "$ref": "GooglePrivacyDlpV2BigQueryTable", "description": "Store all table and column profiles in an existing table or a new table in an existing dataset. Each re-generation will result in new rows in BigQuery. Data is inserted using [streaming insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) and so data may be in the buffer for a period of time after the profile has finished. The Pub/Sub notification is sent before the streaming buffer is guaranteed to be written, so data may not be instantly visible to queries by the time your topic receives the Pub/Sub notification." } } }, "GooglePrivacyDlpV2LDiversityHistogramBucket": { "type": "object", "properties": { "bucketValues": { "items": { "$ref": "GooglePrivacyDlpV2LDiversityEquivalenceClass" }, "type": "array", "description": "Sample of equivalence classes in this bucket. The total number of classes returned per bucket is capped at 20." }, "bucketSize": { "type": "string", "format": "int64", "description": "Total number of equivalence classes in this bucket." }, "bucketValueCount": { "type": "string", "format": "int64", "description": "Total number of distinct equivalence classes in this bucket." }, "sensitiveValueFrequencyLowerBound": { "format": "int64", "description": "Lower bound on the sensitive value frequencies of the equivalence classes in this bucket.", "type": "string" }, "sensitiveValueFrequencyUpperBound": { "description": "Upper bound on the sensitive value frequencies of the equivalence classes in this bucket.", "format": "int64", "type": "string" } }, "description": "Histogram of l-diversity equivalence class sensitive value frequencies.", "id": "GooglePrivacyDlpV2LDiversityHistogramBucket" }, "GooglePrivacyDlpV2HybridInspectDlpJobRequest": { "description": "Request to search for potentially sensitive info in a custom location.", "properties": { "hybridItem": { "$ref": "GooglePrivacyDlpV2HybridContentItem", "description": "The item to inspect." } }, "type": "object", "id": "GooglePrivacyDlpV2HybridInspectDlpJobRequest" }, "GooglePrivacyDlpV2HybridInspectJobTriggerRequest": { "description": "Request to search for potentially sensitive info in a custom location.", "type": "object", "id": "GooglePrivacyDlpV2HybridInspectJobTriggerRequest", "properties": { "hybridItem": { "$ref": "GooglePrivacyDlpV2HybridContentItem", "description": "The item to inspect." } } }, "GooglePrivacyDlpV2DeidentifyTemplate": { "description": "DeidentifyTemplates contains instructions on how to de-identify content. See https://cloud.google.com/sensitive-data-protection/docs/concepts-templates to learn more.", "properties": { "description": { "description": "Short description (max 256 chars).", "type": "string" }, "displayName": { "description": "Display name (max 256 chars).", "type": "string" }, "createTime": { "type": "string", "format": "google-datetime", "readOnly": true, "description": "Output only. The creation timestamp of an inspectTemplate." }, "updateTime": { "readOnly": true, "description": "Output only. The last update timestamp of an inspectTemplate.", "type": "string", "format": "google-datetime" }, "deidentifyConfig": { "description": "The core content of the template.", "$ref": "GooglePrivacyDlpV2DeidentifyConfig" }, "name": { "readOnly": true, "description": "Output only. The template name. The template will have one of the following formats: `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` OR `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID`", "type": "string" } }, "id": "GooglePrivacyDlpV2DeidentifyTemplate", "type": "object" }, "GooglePrivacyDlpV2InspectionRuleSet": { "description": "Rule set for modifying a set of infoTypes to alter behavior under certain circumstances, depending on the specific details of the rules within the set.", "properties": { "rules": { "type": "array", "description": "Set of rules to be applied to infoTypes. The rules are applied in order.", "items": { "$ref": "GooglePrivacyDlpV2InspectionRule" } }, "infoTypes": { "type": "array", "items": { "$ref": "GooglePrivacyDlpV2InfoType" }, "description": "List of infoTypes this rule set is applied to." } }, "id": "GooglePrivacyDlpV2InspectionRuleSet", "type": "object" }, "GooglePrivacyDlpV2SelectedInfoTypes": { "description": "Apply transformation to the selected info_types.", "id": "GooglePrivacyDlpV2SelectedInfoTypes", "type": "object", "properties": { "infoTypes": { "type": "array", "description": "Required. InfoTypes to apply the transformation to. Required. Provided InfoType must be unique within the ImageTransformations message.", "items": { "$ref": "GooglePrivacyDlpV2InfoType" } } } }, "GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig": { "type": "object", "properties": { "surrogateInfoType": { "description": "The custom infoType to annotate the surrogate with. This annotation will be applied to the surrogate by prefixing it with the name of the custom infoType followed by the number of characters comprising the surrogate. The following scheme defines the format: info_type_name(surrogate_character_count):surrogate For example, if the name of custom infoType is 'MY_TOKEN_INFO_TYPE' and the surrogate is 'abc', the full replacement value will be: 'MY_TOKEN_INFO_TYPE(3):abc' This annotation identifies the surrogate when inspecting content using the custom infoType [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). This facilitates reversal of the surrogate when it occurs in free text. In order for inspection to work properly, the name of this infoType must not occur naturally anywhere in your data; otherwise, inspection may find a surrogate that does not correspond to an actual identifier. Therefore, choose your custom infoType name carefully after considering what your data looks like. One way to select a name that has a high chance of yielding reliable detection is to include one or more unicode characters that are highly improbable to exist in your data. For example, assuming your data is entered from a regular ASCII keyboard, the symbol with the hex code point 29DD might be used like so: ⧝MY_TOKEN_TYPE", "$ref": "GooglePrivacyDlpV2InfoType" }, "commonAlphabet": { "description": "Common alphabets.", "type": "string", "enum": [ "FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED", "NUMERIC", "HEXADECIMAL", "UPPER_CASE_ALPHA_NUMERIC", "ALPHA_NUMERIC" ], "enumDescriptions": [ "Unused.", "`[0-9]` (radix of 10)", "`[0-9A-F]` (radix of 16)", "`[0-9A-Z]` (radix of 36)", "`[0-9A-Za-z]` (radix of 62)" ] }, "customAlphabet": { "type": "string", "description": "This is supported by mapping these to the alphanumeric characters that the FFX mode natively supports. This happens before/after encryption/decryption. Each character listed must appear only once. Number of characters must be in the range [2, 95]. This must be encoded as ASCII. The order of characters does not matter. The full list of allowed characters is: 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ~`!@#$%^&*()_-+={[}]|\\:;\"'\u003c,\u003e.?/" }, "context": { "description": "The 'tweak', a context may be used for higher security since the same identifier in two different contexts won't be given the same surrogate. If the context is not set, a default tweak will be used. If the context is set but: 1. there is no record present when transforming a given value or 1. the field is not present when transforming a given value, a default tweak will be used. Note that case (1) is expected when an `InfoTypeTransformation` is applied to both structured and unstructured `ContentItem`s. Currently, the referenced field may be of value type integer or string. The tweak is constructed as a sequence of bytes in big endian byte order such that: - a 64 bit integer is encoded followed by a single byte of value 1 - a string is encoded in UTF-8 format followed by a single byte of value 2", "$ref": "GooglePrivacyDlpV2FieldId" }, "radix": { "format": "int32", "type": "integer", "description": "The native way to select the alphabet. Must be in the range [2, 95]." }, "cryptoKey": { "description": "Required. The key used by the encryption algorithm.", "$ref": "GooglePrivacyDlpV2CryptoKey" } }, "id": "GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig", "description": "Replaces an identifier with a surrogate using Format Preserving Encryption (FPE) with the FFX mode of operation; however when used in the `ReidentifyContent` API method, it serves the opposite function by reversing the surrogate back into the original identifier. The identifier must be encoded as ASCII. For a given crypto key and context, the same identifier will be replaced with the same surrogate. Identifiers must be at least two characters long. In the case that the identifier is the empty string, it will be skipped. See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization to learn more. Note: We recommend using CryptoDeterministicConfig for all use cases which do not require preserving the input alphabet space and size, plus warrant referential integrity." }, "GooglePrivacyDlpV2Dictionary": { "description": "Custom information type based on a dictionary of words or phrases. This can be used to match sensitive information specific to the data, such as a list of employee IDs or job titles. Dictionary words are case-insensitive and all characters other than letters and digits in the unicode [Basic Multilingual Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane) will be replaced with whitespace when scanning for matches, so the dictionary phrase \"Sam Johnson\" will match all three phrases \"sam johnson\", \"Sam, Johnson\", and \"Sam (Johnson)\". Additionally, the characters surrounding any match must be of a different type than the adjacent characters within the word, so letters must be next to non-letters and digits next to non-digits. For example, the dictionary word \"jen\" will match the first three letters of the text \"jen123\" but will return no matches for \"jennifer\". Dictionary words containing a large number of characters that are not letters or digits may result in unexpected findings because such characters are treated as whitespace. The [limits](https://cloud.google.com/sensitive-data-protection/limits) page contains details about the size limits of dictionaries. For dictionaries that do not fit within these constraints, consider using `LargeCustomDictionaryConfig` in the `StoredInfoType` API.", "type": "object", "id": "GooglePrivacyDlpV2Dictionary", "properties": { "wordList": { "$ref": "GooglePrivacyDlpV2WordList", "description": "List of words or phrases to search for." }, "cloudStoragePath": { "$ref": "GooglePrivacyDlpV2CloudStoragePath", "description": "Newline-delimited file of words in Cloud Storage. Only a single file is accepted." } } }, "GooglePrivacyDlpV2BigQueryKey": { "type": "object", "id": "GooglePrivacyDlpV2BigQueryKey", "properties": { "tableReference": { "$ref": "GooglePrivacyDlpV2BigQueryTable", "description": "Complete BigQuery table reference." }, "rowNumber": { "format": "int64", "description": "Row number inferred at the time the table was scanned. This value is nondeterministic, cannot be queried, and may be null for inspection jobs. To locate findings within a table, specify `inspect_job.storage_config.big_query_options.identifying_fields` in `CreateDlpJobRequest`.", "type": "string" } }, "description": "Row key for identifying a record in BigQuery table." }, "GooglePrivacyDlpV2InfoTypeLimit": { "description": "Max findings configuration per infoType, per content item or long running DlpJob.", "id": "GooglePrivacyDlpV2InfoTypeLimit", "properties": { "maxFindings": { "type": "integer", "description": "Max findings limit for the given infoType.", "format": "int32" }, "infoType": { "description": "Type of information the findings limit applies to. Only one limit per info_type should be provided. If InfoTypeLimit does not have an info_type, the DLP API applies the limit against all info_types that are found but not specified in another InfoTypeLimit.", "$ref": "GooglePrivacyDlpV2InfoType" } }, "type": "object" }, "GooglePrivacyDlpV2QuasiIdentifierField": { "description": "A quasi-identifier column has a custom_tag, used to know which column in the data corresponds to which column in the statistical model.", "properties": { "field": { "$ref": "GooglePrivacyDlpV2FieldId", "description": "Identifies the column." }, "customTag": { "description": "A column can be tagged with a custom tag. In this case, the user must indicate an auxiliary table that contains statistical information on the possible values of this column (below).", "type": "string" } }, "type": "object", "id": "GooglePrivacyDlpV2QuasiIdentifierField" }, "GooglePrivacyDlpV2QuoteInfo": { "properties": { "dateTime": { "$ref": "GooglePrivacyDlpV2DateTime", "description": "The date time indicated by the quote." } }, "type": "object", "id": "GooglePrivacyDlpV2QuoteInfo", "description": "Message for infoType-dependent details parsed from quote." }, "GooglePrivacyDlpV2BigQueryTableCollection": { "description": "Specifies a collection of BigQuery tables. Used for Discovery.", "properties": { "includeRegexes": { "$ref": "GooglePrivacyDlpV2BigQueryRegexes", "description": "A collection of regular expressions to match a BigQuery table against." } }, "type": "object", "id": "GooglePrivacyDlpV2BigQueryTableCollection" }, "GooglePrivacyDlpV2FieldTransformation": { "id": "GooglePrivacyDlpV2FieldTransformation", "type": "object", "description": "The transformation to apply to the field.", "properties": { "condition": { "description": "Only apply the transformation if the condition evaluates to true for the given `RecordCondition`. The conditions are allowed to reference fields that are not used in the actual transformation. Example Use Cases: - Apply a different bucket transformation to an age column if the zip code column for the same record is within a specific range. - Redact a field if the date of birth field is greater than 85.", "$ref": "GooglePrivacyDlpV2RecordCondition" }, "primitiveTransformation": { "description": "Apply the transformation to the entire field.", "$ref": "GooglePrivacyDlpV2PrimitiveTransformation" }, "infoTypeTransformations": { "$ref": "GooglePrivacyDlpV2InfoTypeTransformations", "description": "Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`." }, "fields": { "type": "array", "items": { "$ref": "GooglePrivacyDlpV2FieldId" }, "description": "Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of \"contact.nums[0].type\", use \"contact.nums.type\"." } } }, "GooglePrivacyDlpV2TaggedField": { "type": "object", "id": "GooglePrivacyDlpV2TaggedField", "description": "A column with a semantic tag attached.", "properties": { "infoType": { "description": "A column can be tagged with a InfoType to use the relevant public dataset as a statistical model of population, if available. We currently support US ZIP codes, region codes, ages and genders. To programmatically obtain the list of supported InfoTypes, use ListInfoTypes with the supported_by=RISK_ANALYSIS filter.", "$ref": "GooglePrivacyDlpV2InfoType" }, "field": { "$ref": "GooglePrivacyDlpV2FieldId", "description": "Required. Identifies the column." }, "customTag": { "description": "A column can be tagged with a custom tag. In this case, the user must indicate an auxiliary table that contains statistical information on the possible values of this column (below).", "type": "string" }, "inferred": { "description": "If no semantic tag is indicated, we infer the statistical model from the distribution of values in the input data", "$ref": "GoogleProtobufEmpty" } } }, "GooglePrivacyDlpV2SchemaModifiedCadence": { "description": "How frequency to modify the profile when the table's schema is modified.", "type": "object", "properties": { "types": { "description": "The types of schema modifications to consider. Defaults to NEW_COLUMNS.", "items": { "enum": [ "SQL_SCHEMA_MODIFICATION_UNSPECIFIED", "NEW_COLUMNS", "REMOVED_COLUMNS" ], "enumDescriptions": [ "Unused.", "New columns has appeared.", "Columns have been removed from the table." ], "type": "string" }, "type": "array" }, "frequency": { "enumDescriptions": [ "Unspecified.", "After the data profile is created, it will never be updated.", "The data profile can be updated up to once every 24 hours.", "The data profile can be updated up to once every 30 days. Default." ], "description": "Frequency to regenerate data profiles when the schema is modified. Defaults to monthly.", "enum": [ "UPDATE_FREQUENCY_UNSPECIFIED", "UPDATE_FREQUENCY_NEVER", "UPDATE_FREQUENCY_DAILY", "UPDATE_FREQUENCY_MONTHLY" ], "type": "string" } }, "id": "GooglePrivacyDlpV2SchemaModifiedCadence" }, "GooglePrivacyDlpV2AllOtherBigQueryTables": { "type": "object", "id": "GooglePrivacyDlpV2AllOtherBigQueryTables", "description": "Catch-all for all other tables not specified by other filters. Should always be last, except for single-table configurations, which will only have a TableReference target.", "properties": {} }, "GooglePrivacyDlpV2SearchConnectionsResponse": { "properties": { "nextPageToken": { "description": "Token to retrieve the next page of results. An empty value means there are no more results.", "type": "string" }, "connections": { "items": { "$ref": "GooglePrivacyDlpV2Connection" }, "type": "array", "description": "List of connections that match the search query. Note that only a subset of the fields will be populated, and only \"name\" is guaranteed to be set. For full details of a Connection, call GetConnection with the name." } }, "description": "Response message for SearchConnections.", "type": "object", "id": "GooglePrivacyDlpV2SearchConnectionsResponse" }, "GooglePrivacyDlpV2TableDataProfile": { "type": "object", "properties": { "otherInfoTypes": { "description": "Other infoTypes found in this table's data.", "items": { "$ref": "GooglePrivacyDlpV2OtherInfoTypeSummary" }, "type": "array" }, "dataRiskLevel": { "$ref": "GooglePrivacyDlpV2DataRiskLevel", "description": "The data risk level of this table." }, "profileLastGenerated": { "format": "google-datetime", "description": "The last time the profile was generated.", "type": "string" }, "name": { "description": "The name of the profile.", "type": "string" }, "expirationTime": { "type": "string", "description": "Optional. The time when this table expires.", "format": "google-datetime" }, "dataSourceType": { "description": "The resource type that was profiled.", "$ref": "GooglePrivacyDlpV2DataSourceType" }, "resourceLabels": { "additionalProperties": { "type": "string" }, "type": "object", "description": "The labels applied to the resource at the time the profile was generated." }, "datasetId": { "description": "If the resource is BigQuery, the dataset ID.", "type": "string" }, "profileStatus": { "description": "Success or error status from the most recent profile generation attempt. May be empty if the profile is still being generated.", "$ref": "GooglePrivacyDlpV2ProfileStatus" }, "createTime": { "format": "google-datetime", "type": "string", "description": "The time at which the table was created." }, "fullResource": { "type": "string", "description": "The resource name of the resource profiled. https://cloud.google.com/apis/design/resource_names#full_resource_name" }, "encryptionStatus": { "type": "string", "enum": [ "ENCRYPTION_STATUS_UNSPECIFIED", "ENCRYPTION_GOOGLE_MANAGED", "ENCRYPTION_CUSTOMER_MANAGED" ], "enumDescriptions": [ "Unused.", "Google manages server-side encryption keys on your behalf.", "Customer provides the key." ], "description": "How the table is encrypted." }, "state": { "type": "string", "description": "State of a profile.", "enum": [ "STATE_UNSPECIFIED", "RUNNING", "DONE" ], "enumDescriptions": [ "Unused.", "The profile is currently running. Once a profile has finished it will transition to DONE.", "The profile is no longer generating. If profile_status.status.code is 0, the profile succeeded, otherwise, it failed." ] }, "datasetLocation": { "type": "string", "description": "If supported, the location where the dataset's data is stored. See https://cloud.google.com/bigquery/docs/locations for supported locations." }, "tableId": { "type": "string", "description": "If the resource is BigQuery, the BigQuery table ID." }, "datasetProjectId": { "description": "The Google Cloud project ID that owns the resource.", "type": "string" }, "scannedColumnCount": { "format": "int64", "type": "string", "description": "The number of columns profiled in the table." }, "projectDataProfile": { "description": "The resource name to the project data profile for this table.", "type": "string" }, "sensitivityScore": { "description": "The sensitivity score of this table.", "$ref": "GooglePrivacyDlpV2SensitivityScore" }, "rowCount": { "format": "int64", "description": "Number of rows in the table when the profile was generated. This will not be populated for BigLake tables.", "type": "string" }, "tableSizeBytes": { "format": "int64", "type": "string", "description": "The size of the table when the profile was generated." }, "configSnapshot": { "description": "The snapshot of the configurations used to generate the profile.", "$ref": "GooglePrivacyDlpV2DataProfileConfigSnapshot" }, "resourceVisibility": { "enum": [ "RESOURCE_VISIBILITY_UNSPECIFIED", "RESOURCE_VISIBILITY_PUBLIC", "RESOURCE_VISIBILITY_RESTRICTED" ], "description": "How broadly a resource has been shared.", "type": "string", "enumDescriptions": [ "Unused.", "Visible to any user.", "Visible only to specific users." ] }, "lastModifiedTime": { "description": "The time when this table was last modified", "format": "google-datetime", "type": "string" }, "predictedInfoTypes": { "type": "array", "items": { "$ref": "GooglePrivacyDlpV2InfoTypeSummary" }, "description": "The infoTypes predicted from this table's data." }, "failedColumnCount": { "type": "string", "description": "The number of columns skipped in the table because of an error.", "format": "int64" } }, "id": "GooglePrivacyDlpV2TableDataProfile", "description": "The profile for a scanned table." }, "GooglePrivacyDlpV2ByteContentItem": { "type": "object", "id": "GooglePrivacyDlpV2ByteContentItem", "description": "Container for bytes to inspect or redact.", "properties": { "data": { "format": "byte", "type": "string", "description": "Content data to inspect or redact." }, "type": { "enumDescriptions": [ "Unused", "Any image type.", "jpeg", "bmp", "png", "svg", "plain text", "docx, docm, dotx, dotm", "pdf", "pptx, pptm, potx, potm, pot", "xlsx, xlsm, xltx, xltm", "avro", "csv", "tsv" ], "description": "The type of data stored in the bytes string. Default will be TEXT_UTF8.", "type": "string", "enum": [ "BYTES_TYPE_UNSPECIFIED", "IMAGE", "IMAGE_JPEG", "IMAGE_BMP", "IMAGE_PNG", "IMAGE_SVG", "TEXT_UTF8", "WORD_DOCUMENT", "PDF", "POWERPOINT_DOCUMENT", "EXCEL_DOCUMENT", "AVRO", "CSV", "TSV" ] } } }, "GooglePrivacyDlpV2FindingLimits": { "type": "object", "properties": { "maxFindingsPerItem": { "type": "integer", "description": "Max number of findings that are returned for each item scanned. When set within an InspectContentRequest, this field is ignored. This value isn't a hard limit. If the number of findings for an item reaches this limit, the inspection of that item ends gradually, not abruptly. Therefore, the actual number of findings that Cloud DLP returns for the item can be multiple times higher than this value.", "format": "int32" }, "maxFindingsPerRequest": { "type": "integer", "format": "int32", "description": "Max number of findings that are returned per request or job. If you set this field in an InspectContentRequest, the resulting maximum value is the value that you set or 3,000, whichever is lower. This value isn't a hard limit. If an inspection reaches this limit, the inspection ends gradually, not abruptly. Therefore, the actual number of findings that Cloud DLP returns can be multiple times higher than this value." }, "maxFindingsPerInfoType": { "description": "Configuration of findings limit given for specified infoTypes.", "items": { "$ref": "GooglePrivacyDlpV2InfoTypeLimit" }, "type": "array" } }, "description": "Configuration to control the number of findings returned for inspection. This is not used for de-identification or data profiling. When redacting sensitive data from images, finding limits don't apply. They can cause unexpected or inconsistent results, where only some data is redacted. Don't include finding limits in RedactImage requests. Otherwise, Cloud DLP returns an error.", "id": "GooglePrivacyDlpV2FindingLimits" }, "GooglePrivacyDlpV2DiscoverySchemaModifiedCadence": { "id": "GooglePrivacyDlpV2DiscoverySchemaModifiedCadence", "type": "object", "description": "The cadence at which to update data profiles when a schema is modified.", "properties": { "types": { "type": "array", "items": { "enum": [ "SCHEMA_MODIFICATION_UNSPECIFIED", "SCHEMA_NEW_COLUMNS", "SCHEMA_REMOVED_COLUMNS" ], "type": "string", "enumDescriptions": [ "Unused", "Profiles should be regenerated when new columns are added to the table. Default.", "Profiles should be regenerated when columns are removed from the table." ] }, "description": "The type of events to consider when deciding if the table's schema has been modified and should have the profile updated. Defaults to NEW_COLUMNS." }, "frequency": { "type": "string", "enumDescriptions": [ "Unspecified.", "After the data profile is created, it will never be updated.", "The data profile can be updated up to once every 24 hours.", "The data profile can be updated up to once every 30 days. Default." ], "enum": [ "UPDATE_FREQUENCY_UNSPECIFIED", "UPDATE_FREQUENCY_NEVER", "UPDATE_FREQUENCY_DAILY", "UPDATE_FREQUENCY_MONTHLY" ], "description": "How frequently profiles may be updated when schemas are modified. Defaults to monthly." } } }, "GooglePrivacyDlpV2ReplaceWithInfoTypeConfig": { "description": "Replace each matching finding with the name of the info_type.", "type": "object", "properties": {}, "id": "GooglePrivacyDlpV2ReplaceWithInfoTypeConfig" }, "GooglePrivacyDlpV2Error": { "properties": { "timestamps": { "type": "array", "items": { "format": "google-datetime", "type": "string" }, "description": "The times the error occurred. List includes the oldest timestamp and the last 9 timestamps." }, "details": { "$ref": "GoogleRpcStatus", "description": "Detailed error codes and messages." } }, "description": "Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.", "type": "object", "id": "GooglePrivacyDlpV2Error" }, "GooglePrivacyDlpV2CreateConnectionRequest": { "id": "GooglePrivacyDlpV2CreateConnectionRequest", "type": "object", "properties": { "connection": { "$ref": "GooglePrivacyDlpV2Connection", "description": "Required. The connection resource." } }, "description": "Request message for CreateConnection." }, "GooglePrivacyDlpV2Location": { "properties": { "codepointRange": { "$ref": "GooglePrivacyDlpV2Range", "description": "Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text." }, "contentLocations": { "description": "List of nested objects pointing to the precise location of the finding within the file or record.", "type": "array", "items": { "$ref": "GooglePrivacyDlpV2ContentLocation" } }, "container": { "$ref": "GooglePrivacyDlpV2Container", "description": "Information about the container where this finding occurred, if available." }, "byteRange": { "description": "Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Omitted if content is an image.", "$ref": "GooglePrivacyDlpV2Range" } }, "id": "GooglePrivacyDlpV2Location", "description": "Specifies the location of the finding.", "type": "object" }, "GooglePrivacyDlpV2DeltaPresenceEstimationResult": { "description": "Result of the δ-presence computation. Note that these results are an estimation, not exact values.", "type": "object", "id": "GooglePrivacyDlpV2DeltaPresenceEstimationResult", "properties": { "deltaPresenceEstimationHistogram": { "type": "array", "items": { "$ref": "GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket" }, "description": "The intervals [min_probability, max_probability) do not overlap. If a value doesn't correspond to any such interval, the associated frequency is zero. For example, the following records: {min_probability: 0, max_probability: 0.1, frequency: 17} {min_probability: 0.2, max_probability: 0.3, frequency: 42} {min_probability: 0.3, max_probability: 0.4, frequency: 99} mean that there are no record with an estimated probability in [0.1, 0.2) nor larger or equal to 0.4." } } }, "GooglePrivacyDlpV2LikelihoodAdjustment": { "description": "Message for specifying an adjustment to the likelihood of a finding as part of a detection rule.", "properties": { "fixedLikelihood": { "enum": [ "LIKELIHOOD_UNSPECIFIED", "VERY_UNLIKELY", "UNLIKELY", "POSSIBLE", "LIKELY", "VERY_LIKELY" ], "type": "string", "description": "Set the likelihood of a finding to a fixed value.", "enumDescriptions": [ "Default value; same as POSSIBLE.", "Highest chance of a false positive.", "High chance of a false positive.", "Some matching signals. The default value.", "Low chance of a false positive.", "Confidence level is high. Lowest chance of a false positive." ] }, "relativeLikelihood": { "description": "Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be `POSSIBLE` without the detection rule and `relative_likelihood` is 1, then it is upgraded to `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`. Likelihood may never drop below `VERY_UNLIKELY` or exceed `VERY_LIKELY`, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is `VERY_LIKELY` will result in a final likelihood of `LIKELY`.", "format": "int32", "type": "integer" } }, "type": "object", "id": "GooglePrivacyDlpV2LikelihoodAdjustment" }, "GooglePrivacyDlpV2BigQueryTable": { "description": "Message defining the location of a BigQuery table. A table is uniquely identified by its project_id, dataset_id, and table_name. Within a query a table is often referenced with a string in the format of: `:.` or `..`.", "properties": { "datasetId": { "description": "Dataset ID of the table.", "type": "string" }, "tableId": { "description": "Name of the table.", "type": "string" }, "projectId": { "description": "The Google Cloud Platform project ID of the project containing the table. If omitted, project ID is inferred from the API call.", "type": "string" } }, "type": "object", "id": "GooglePrivacyDlpV2BigQueryTable" }, "GooglePrivacyDlpV2KAnonymityEquivalenceClass": { "properties": { "equivalenceClassSize": { "description": "Size of the equivalence class, for example number of rows with the above set of values.", "format": "int64", "type": "string" }, "quasiIdsValues": { "type": "array", "items": { "$ref": "GooglePrivacyDlpV2Value" }, "description": "Set of values defining the equivalence class. One value per quasi-identifier column in the original KAnonymity metric message. The order is always the same as the original request." } }, "description": "The set of columns' values that share the same ldiversity value", "id": "GooglePrivacyDlpV2KAnonymityEquivalenceClass", "type": "object" }, "GooglePrivacyDlpV2ListConnectionsResponse": { "id": "GooglePrivacyDlpV2ListConnectionsResponse", "type": "object", "description": "Response message for ListConnections.", "properties": { "connections": { "items": { "$ref": "GooglePrivacyDlpV2Connection" }, "type": "array", "description": "List of connections." }, "nextPageToken": { "description": "Token to retrieve the next page of results. An empty value means there are no more results.", "type": "string" } } }, "GooglePrivacyDlpV2ReplaceDictionaryConfig": { "properties": { "wordList": { "$ref": "GooglePrivacyDlpV2WordList", "description": "A list of words to select from for random replacement. The [limits](https://cloud.google.com/sensitive-data-protection/limits) page contains details about the size limits of dictionaries." } }, "type": "object", "description": "Replace each input value with a value randomly selected from the dictionary.", "id": "GooglePrivacyDlpV2ReplaceDictionaryConfig" }, "GooglePrivacyDlpV2OtherInfoTypeSummary": { "properties": { "infoType": { "description": "The other infoType.", "$ref": "GooglePrivacyDlpV2InfoType" }, "estimatedPrevalence": { "description": "Approximate percentage of non-null rows that contained data detected by this infotype.", "type": "integer", "format": "int32" }, "excludedFromAnalysis": { "type": "boolean", "description": "Whether this infoType was excluded from sensitivity and risk analysis due to factors such as low prevalence (subject to change)." } }, "description": "Infotype details for other infoTypes found within a column.", "id": "GooglePrivacyDlpV2OtherInfoTypeSummary", "type": "object" }, "GoogleProtobufEmpty": { "id": "GoogleProtobufEmpty", "properties": {}, "type": "object", "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }" }, "GooglePrivacyDlpV2ListInspectTemplatesResponse": { "description": "Response message for ListInspectTemplates.", "id": "GooglePrivacyDlpV2ListInspectTemplatesResponse", "type": "object", "properties": { "inspectTemplates": { "type": "array", "description": "List of inspectTemplates, up to page_size in ListInspectTemplatesRequest.", "items": { "$ref": "GooglePrivacyDlpV2InspectTemplate" } }, "nextPageToken": { "description": "If the next page is available then the next page token to be used in the following ListInspectTemplates request.", "type": "string" } } }, "GooglePrivacyDlpV2CharsToIgnore": { "description": "Characters to skip when doing deidentification of a value. These will be left alone and skipped.", "properties": { "commonCharactersToIgnore": { "enumDescriptions": [ "Unused.", "0-9", "A-Z", "a-z", "US Punctuation, one of !\"#$%&'()*+,-./:;\u003c=\u003e?@[\\]^_`{|}~", "Whitespace character, one of [ \\t\\n\\x0B\\f\\r]" ], "description": "Common characters to not transform when masking. Useful to avoid removing punctuation.", "enum": [ "COMMON_CHARS_TO_IGNORE_UNSPECIFIED", "NUMERIC", "ALPHA_UPPER_CASE", "ALPHA_LOWER_CASE", "PUNCTUATION", "WHITESPACE" ], "type": "string" }, "charactersToSkip": { "type": "string", "description": "Characters to not transform when masking." } }, "type": "object", "id": "GooglePrivacyDlpV2CharsToIgnore" }, "GooglePrivacyDlpV2CreateStoredInfoTypeRequest": { "type": "object", "properties": { "storedInfoTypeId": { "type": "string", "description": "The storedInfoType ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one." }, "config": { "$ref": "GooglePrivacyDlpV2StoredInfoTypeConfig", "description": "Required. Configuration of the storedInfoType to create." }, "locationId": { "type": "string", "description": "Deprecated. This field has no effect." } }, "description": "Request message for CreateStoredInfoType.", "id": "GooglePrivacyDlpV2CreateStoredInfoTypeRequest" }, "GooglePrivacyDlpV2Conditions": { "properties": { "conditions": { "type": "array", "description": "A collection of conditions.", "items": { "$ref": "GooglePrivacyDlpV2Condition" } } }, "description": "A collection of conditions.", "type": "object", "id": "GooglePrivacyDlpV2Conditions" }, "GooglePrivacyDlpV2ImageRedactionConfig": { "type": "object", "id": "GooglePrivacyDlpV2ImageRedactionConfig", "properties": { "redactionColor": { "$ref": "GooglePrivacyDlpV2Color", "description": "The color to use when redacting content from an image. If not specified, the default is black." }, "infoType": { "$ref": "GooglePrivacyDlpV2InfoType", "description": "Only one per info_type should be provided per request. If not specified, and redact_all_text is false, the DLP API will redact all text that it matches against all info_types that are found, but not specified in another ImageRedactionConfig." }, "redactAllText": { "description": "If true, all text found in the image, regardless whether it matches an info_type, is redacted. Only one should be provided.", "type": "boolean" } }, "description": "Configuration for determining how redaction of images should occur." }, "GooglePrivacyDlpV2QuasiIdField": { "description": "A quasi-identifier column has a custom_tag, used to know which column in the data corresponds to which column in the statistical model.", "type": "object", "id": "GooglePrivacyDlpV2QuasiIdField", "properties": { "field": { "$ref": "GooglePrivacyDlpV2FieldId", "description": "Identifies the column." }, "customTag": { "type": "string", "description": "A auxiliary field." } } }, "GooglePrivacyDlpV2Proximity": { "id": "GooglePrivacyDlpV2Proximity", "description": "Message for specifying a window around a finding to apply a detection rule.", "properties": { "windowBefore": { "type": "integer", "description": "Number of characters before the finding to consider. For tabular data, if you want to modify the likelihood of an entire column of findngs, set this to 1. For more information, see [Hotword example: Set the match likelihood of a table column] (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values).", "format": "int32" }, "windowAfter": { "description": "Number of characters after the finding to consider.", "format": "int32", "type": "integer" } }, "type": "object" }, "GooglePrivacyDlpV2ContentItem": { "properties": { "table": { "$ref": "GooglePrivacyDlpV2Table", "description": "Structured content for inspection. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table to learn more." }, "value": { "type": "string", "description": "String data to inspect or redact." }, "byteItem": { "$ref": "GooglePrivacyDlpV2ByteContentItem", "description": "Content data to inspect or redact. Replaces `type` and `data`." } }, "description": "Type of content to inspect.", "id": "GooglePrivacyDlpV2ContentItem", "type": "object" }, "GooglePrivacyDlpV2DiscoveryCloudSqlFilter": { "type": "object", "properties": { "databaseResourceReference": { "description": "The database resource to scan. Targets including this can only include one target (the target with this database resource reference).", "$ref": "GooglePrivacyDlpV2DatabaseResourceReference" }, "others": { "description": "Catch-all. This should always be the last target in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically.", "$ref": "GooglePrivacyDlpV2AllOtherDatabaseResources" }, "collection": { "$ref": "GooglePrivacyDlpV2DatabaseResourceCollection", "description": "A specific set of database resources for this filter to apply to." } }, "id": "GooglePrivacyDlpV2DiscoveryCloudSqlFilter", "description": "Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name." }, "GooglePrivacyDlpV2BigQueryDiscoveryTarget": { "properties": { "filter": { "description": "Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table.", "$ref": "GooglePrivacyDlpV2DiscoveryBigQueryFilter" }, "conditions": { "$ref": "GooglePrivacyDlpV2DiscoveryBigQueryConditions", "description": "In addition to matching the filter, these conditions must be true before a profile is generated." }, "cadence": { "$ref": "GooglePrivacyDlpV2DiscoveryGenerationCadence", "description": "How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity." }, "disabled": { "description": "Tables that match this filter will not have profiles created.", "$ref": "GooglePrivacyDlpV2Disabled" } }, "type": "object", "description": "Target used to match against for discovery with BigQuery tables", "id": "GooglePrivacyDlpV2BigQueryDiscoveryTarget" }, "GooglePrivacyDlpV2RequestedRiskAnalysisOptions": { "properties": { "jobConfig": { "$ref": "GooglePrivacyDlpV2RiskAnalysisJobConfig", "description": "The job config for the risk job." } }, "description": "Risk analysis options.", "type": "object", "id": "GooglePrivacyDlpV2RequestedRiskAnalysisOptions" }, "GooglePrivacyDlpV2ProjectDataProfile": { "id": "GooglePrivacyDlpV2ProjectDataProfile", "description": "An aggregated profile for this project, based on the resources profiled within it.", "properties": { "name": { "type": "string", "description": "The resource name of the profile." }, "profileLastGenerated": { "format": "google-datetime", "description": "The last time the profile was generated.", "type": "string" }, "profileStatus": { "description": "Success or error status of the last attempt to profile the project.", "$ref": "GooglePrivacyDlpV2ProfileStatus" }, "sensitivityScore": { "$ref": "GooglePrivacyDlpV2SensitivityScore", "description": "The sensitivity score of this project." }, "dataRiskLevel": { "$ref": "GooglePrivacyDlpV2DataRiskLevel", "description": "The data risk level of this project." }, "projectId": { "description": "Project ID that was profiled.", "type": "string" } }, "type": "object" }, "GooglePrivacyDlpV2DeidentifyContentRequest": { "id": "GooglePrivacyDlpV2DeidentifyContentRequest", "type": "object", "properties": { "inspectTemplateName": { "description": "Template to use. Any configuration directly specified in inspect_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.", "type": "string" }, "deidentifyConfig": { "$ref": "GooglePrivacyDlpV2DeidentifyConfig", "description": "Configuration for the de-identification of the content item. Items specified here will override the template referenced by the deidentify_template_name argument." }, "inspectConfig": { "description": "Configuration for the inspector. Items specified here will override the template referenced by the inspect_template_name argument.", "$ref": "GooglePrivacyDlpV2InspectConfig" }, "item": { "$ref": "GooglePrivacyDlpV2ContentItem", "description": "The item to de-identify. Will be treated as text. This value must be of type Table if your deidentify_config is a RecordTransformations object." }, "locationId": { "description": "Deprecated. This field has no effect.", "type": "string" }, "deidentifyTemplateName": { "type": "string", "description": "Template to use. Any configuration directly specified in deidentify_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged." } }, "description": "Request to de-identify a ContentItem." }, "GooglePrivacyDlpV2PublishSummaryToCscc": { "id": "GooglePrivacyDlpV2PublishSummaryToCscc", "type": "object", "description": "Publish the result summary of a DlpJob to [Security Command Center](https://cloud.google.com/security-command-center). This action is available for only projects that belong to an organization. This action publishes the count of finding instances and their infoTypes. The summary of findings are persisted in Security Command Center and are governed by [service-specific policies for Security Command Center](https://cloud.google.com/terms/service-terms). Only a single instance of this action can be specified. Compatible with: Inspect", "properties": {} }, "GooglePrivacyDlpV2TransformationLocation": { "id": "GooglePrivacyDlpV2TransformationLocation", "description": "Specifies the location of a transformation.", "type": "object", "properties": { "containerType": { "enumDescriptions": [ "Unused.", "Body of a file.", "Metadata for a file.", "A table." ], "enum": [ "TRANSFORM_UNKNOWN_CONTAINER", "TRANSFORM_BODY", "TRANSFORM_METADATA", "TRANSFORM_TABLE" ], "description": "Information about the functionality of the container where this finding occurred, if available.", "type": "string" }, "recordTransformation": { "$ref": "GooglePrivacyDlpV2RecordTransformation", "description": "For record transformations, provide a field and container information." }, "findingId": { "description": "For infotype transformations, link to the corresponding findings ID so that location information does not need to be duplicated. Each findings ID correlates to an entry in the findings output table, this table only gets created when users specify to save findings (add the save findings action to the request).", "type": "string" } } }, "GooglePrivacyDlpV2BigQueryField": { "description": "Message defining a field of a BigQuery table.", "id": "GooglePrivacyDlpV2BigQueryField", "type": "object", "properties": { "field": { "$ref": "GooglePrivacyDlpV2FieldId", "description": "Designated field in the BigQuery table." }, "table": { "$ref": "GooglePrivacyDlpV2BigQueryTable", "description": "Source table of the field." } } }, "GooglePrivacyDlpV2InfoTypeTransformation": { "id": "GooglePrivacyDlpV2InfoTypeTransformation", "properties": { "primitiveTransformation": { "description": "Required. Primitive transformation to apply to the infoType.", "$ref": "GooglePrivacyDlpV2PrimitiveTransformation" }, "infoTypes": { "type": "array", "description": "InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in `InspectConfig`.", "items": { "$ref": "GooglePrivacyDlpV2InfoType" } } }, "type": "object", "description": "A transformation to apply to text that is identified as a specific info_type." }, "GooglePrivacyDlpV2RedactConfig": { "type": "object", "description": "Redact a given value. For example, if used with an `InfoTypeTransformation` transforming PHONE_NUMBER, and input 'My phone number is 206-555-0123', the output would be 'My phone number is '.", "properties": {}, "id": "GooglePrivacyDlpV2RedactConfig" }, "GooglePrivacyDlpV2StoredInfoTypeStats": { "properties": { "largeCustomDictionary": { "$ref": "GooglePrivacyDlpV2LargeCustomDictionaryStats", "description": "StoredInfoType where findings are defined by a dictionary of phrases." } }, "type": "object", "description": "Statistics for a StoredInfoType.", "id": "GooglePrivacyDlpV2StoredInfoTypeStats" }, "GooglePrivacyDlpV2DiscoveryGenerationCadence": { "properties": { "tableModifiedCadence": { "$ref": "GooglePrivacyDlpV2DiscoveryTableModifiedCadence", "description": "Governs when to update data profiles when a table is modified." }, "schemaModifiedCadence": { "$ref": "GooglePrivacyDlpV2DiscoverySchemaModifiedCadence", "description": "Governs when to update data profiles when a schema is modified." } }, "id": "GooglePrivacyDlpV2DiscoveryGenerationCadence", "description": "What must take place for a profile to be updated and how frequently it should occur. New tables are scanned as quickly as possible depending on system capacity.", "type": "object" }, "GooglePrivacyDlpV2PathElement": { "properties": { "id": { "description": "The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.", "format": "int64", "type": "string" }, "kind": { "type": "string", "description": "The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `\"\"`." }, "name": { "type": "string", "description": "The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `\"\"`." } }, "id": "GooglePrivacyDlpV2PathElement", "description": "A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.", "type": "object" }, "GooglePrivacyDlpV2KmsWrappedCryptoKey": { "id": "GooglePrivacyDlpV2KmsWrappedCryptoKey", "description": "Include to use an existing data crypto key wrapped by KMS. The wrapped key must be a 128-, 192-, or 256-bit key. Authorization requires the following IAM permissions when sending a request to perform a crypto transformation using a KMS-wrapped crypto key: dlp.kms.encrypt For more information, see [Creating a wrapped key] (https://cloud.google.com/sensitive-data-protection/docs/create-wrapped-key). Note: When you use Cloud KMS for cryptographic operations, [charges apply](https://cloud.google.com/kms/pricing).", "properties": { "cryptoKeyName": { "description": "Required. The resource name of the KMS CryptoKey to use for unwrapping.", "type": "string" }, "wrappedKey": { "format": "byte", "type": "string", "description": "Required. The wrapped data crypto key." } }, "type": "object" }, "GooglePrivacyDlpV2InspectTemplate": { "type": "object", "properties": { "name": { "description": "Output only. The template name. The template will have one of the following formats: `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`;", "type": "string", "readOnly": true }, "inspectConfig": { "description": "The core content of the template. Configuration of the scanning process.", "$ref": "GooglePrivacyDlpV2InspectConfig" }, "displayName": { "type": "string", "description": "Display name (max 256 chars)." }, "createTime": { "type": "string", "format": "google-datetime", "readOnly": true, "description": "Output only. The creation timestamp of an inspectTemplate." }, "description": { "description": "Short description (max 256 chars).", "type": "string" }, "updateTime": { "type": "string", "readOnly": true, "description": "Output only. The last update timestamp of an inspectTemplate.", "format": "google-datetime" } }, "id": "GooglePrivacyDlpV2InspectTemplate", "description": "The inspectTemplate contains a configuration (set of types of sensitive data to be detected) to be used anywhere you otherwise would normally specify InspectConfig. See https://cloud.google.com/sensitive-data-protection/docs/concepts-templates to learn more." }, "GooglePrivacyDlpV2DatabaseResourceReference": { "id": "GooglePrivacyDlpV2DatabaseResourceReference", "type": "object", "description": "Identifies a single database resource, like a table within a database.", "properties": { "instance": { "description": "Required. The instance where this resource is located. For example: Cloud SQL's instance id.", "type": "string" }, "projectId": { "description": "Required. If within a project-level config, then this must match the config's project id.", "type": "string" } } }, "GooglePrivacyDlpV2HybridInspectStatistics": { "type": "object", "properties": { "pendingCount": { "type": "string", "description": "The number of hybrid requests currently being processed. Only populated when called via method `getDlpJob`. A burst of traffic may cause hybrid inspect requests to be enqueued. Processing will take place as quickly as possible, but resource limitations may impact how long a request is enqueued for.", "format": "int64" }, "abortedCount": { "type": "string", "format": "int64", "description": "The number of hybrid inspection requests aborted because the job ran out of quota or was ended before they could be processed." }, "processedCount": { "type": "string", "description": "The number of hybrid inspection requests processed within this job.", "format": "int64" } }, "description": "Statistics related to processing hybrid inspect requests.", "id": "GooglePrivacyDlpV2HybridInspectStatistics" }, "GooglePrivacyDlpV2FieldId": { "type": "object", "description": "General identifier of a data field in a storage service.", "id": "GooglePrivacyDlpV2FieldId", "properties": { "name": { "type": "string", "description": "Name describing the field." } } }, "GooglePrivacyDlpV2CategoricalStatsHistogramBucket": { "type": "object", "properties": { "valueFrequencyLowerBound": { "format": "int64", "description": "Lower bound on the value frequency of the values in this bucket.", "type": "string" }, "bucketSize": { "type": "string", "format": "int64", "description": "Total number of values in this bucket." }, "bucketValues": { "description": "Sample of value frequencies in this bucket. The total number of values returned per bucket is capped at 20.", "items": { "$ref": "GooglePrivacyDlpV2ValueFrequency" }, "type": "array" }, "valueFrequencyUpperBound": { "format": "int64", "type": "string", "description": "Upper bound on the value frequency of the values in this bucket." }, "bucketValueCount": { "description": "Total number of distinct values in this bucket.", "format": "int64", "type": "string" } }, "id": "GooglePrivacyDlpV2CategoricalStatsHistogramBucket", "description": "Histogram of value frequencies in the column." }, "GooglePrivacyDlpV2StorageMetadataLabel": { "description": "Storage metadata label to indicate which metadata entry contains findings.", "id": "GooglePrivacyDlpV2StorageMetadataLabel", "properties": { "key": { "description": "Label name.", "type": "string" } }, "type": "object" }, "GooglePrivacyDlpV2DatastoreOptions": { "type": "object", "description": "Options defining a data set within Google Cloud Datastore.", "id": "GooglePrivacyDlpV2DatastoreOptions", "properties": { "kind": { "$ref": "GooglePrivacyDlpV2KindExpression", "description": "The kind to process." }, "partitionId": { "description": "A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty.", "$ref": "GooglePrivacyDlpV2PartitionId" } } }, "GooglePrivacyDlpV2CloudSqlProperties": { "properties": { "usernamePassword": { "$ref": "GooglePrivacyDlpV2SecretManagerCredential", "description": "A username and password stored in Secret Manager." }, "databaseEngine": { "enumDescriptions": [ "An engine that is not currently supported by SDP.", "Cloud SQL for MySQL instance.", "Cloud SQL for Postgres instance." ], "description": "Required. The database engine used by the Cloud SQL instance that this connection configures.", "enum": [ "DATABASE_ENGINE_UNKNOWN", "DATABASE_ENGINE_MYSQL", "DATABASE_ENGINE_POSTGRES" ], "type": "string" }, "cloudSqlIam": { "description": "Built-in IAM authentication (must be configured in Cloud SQL).", "$ref": "GooglePrivacyDlpV2CloudSqlIamCredential" }, "maxConnections": { "type": "integer", "description": "Required. DLP will limit its connections to max_connections. Must be 2 or greater.", "format": "int32" }, "connectionName": { "type": "string", "description": "Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name \"project-id:us-central1:sql-instance\" must be created under the parent \"projects/project-id/locations/us-central1\"" } }, "description": "Cloud SQL connection properties.", "type": "object", "id": "GooglePrivacyDlpV2CloudSqlProperties" }, "GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues": { "id": "GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues", "properties": { "quasiIdsValues": { "type": "array", "items": { "$ref": "GooglePrivacyDlpV2Value" }, "description": "The quasi-identifier values." }, "estimatedProbability": { "description": "The estimated probability that a given individual sharing these quasi-identifier values is in the dataset. This value, typically called δ, is the ratio between the number of records in the dataset with these quasi-identifier values, and the total number of individuals (inside *and* outside the dataset) with these quasi-identifier values. For example, if there are 15 individuals in the dataset who share the same quasi-identifier values, and an estimated 100 people in the entire population with these values, then δ is 0.15.", "type": "number", "format": "double" } }, "description": "A tuple of values for the quasi-identifier columns.", "type": "object" }, "GooglePrivacyDlpV2DataProfileConfigSnapshot": { "properties": { "dataProfileJob": { "$ref": "GooglePrivacyDlpV2DataProfileJobConfig", "deprecated": true, "description": "A copy of the configuration used to generate this profile. This is deprecated, and the DiscoveryConfig field is preferred moving forward. DataProfileJobConfig will still be written here for Discovery in BigQuery for backwards compatibility, but will not be updated with new fields, while DiscoveryConfig will." }, "inspectTemplateModifiedTime": { "format": "google-datetime", "description": "Timestamp when the template was modified", "type": "string" }, "inspectTemplateName": { "description": "Name of the inspection template used to generate this profile", "type": "string" }, "discoveryConfig": { "description": "A copy of the configuration used to generate this profile.", "$ref": "GooglePrivacyDlpV2DiscoveryConfig" }, "inspectConfig": { "$ref": "GooglePrivacyDlpV2InspectConfig", "description": "A copy of the inspection config used to generate this profile. This is a copy of the inspect_template specified in `DataProfileJobConfig`." } }, "description": "Snapshot of the configurations used to generate the profile.", "type": "object", "id": "GooglePrivacyDlpV2DataProfileConfigSnapshot" }, "GooglePrivacyDlpV2DiscoveryCloudSqlConditions": { "type": "object", "id": "GooglePrivacyDlpV2DiscoveryCloudSqlConditions", "description": "Requirements that must be true before a table is profiled for the first time.", "properties": { "types": { "items": { "type": "string", "enum": [ "DATABASE_RESOURCE_TYPE_UNSPECIFIED", "DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES", "DATABASE_RESOURCE_TYPE_TABLE" ], "enumDescriptions": [ "Unused.", "Includes database resource types that become supported at a later time.", "Tables." ] }, "description": "Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].", "type": "array" }, "databaseEngines": { "items": { "enumDescriptions": [ "Unused.", "Include all supported database engines.", "MySql database.", "PostGres database." ], "type": "string", "enum": [ "DATABASE_ENGINE_UNSPECIFIED", "ALL_SUPPORTED_DATABASE_ENGINES", "MYSQL", "POSTGRES" ] }, "type": "array", "description": "Optional. Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified." } } }, "GooglePrivacyDlpV2CreateJobTriggerRequest": { "id": "GooglePrivacyDlpV2CreateJobTriggerRequest", "description": "Request message for CreateJobTrigger.", "properties": { "jobTrigger": { "description": "Required. The JobTrigger to create.", "$ref": "GooglePrivacyDlpV2JobTrigger" }, "triggerId": { "type": "string", "description": "The trigger id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one." }, "locationId": { "type": "string", "description": "Deprecated. This field has no effect." } }, "type": "object" }, "GooglePrivacyDlpV2Expressions": { "properties": { "logicalOperator": { "description": "The operator to apply to the result of conditions. Default and currently only supported value is `AND`.", "type": "string", "enumDescriptions": [ "Unused", "Conditional AND" ], "enum": [ "LOGICAL_OPERATOR_UNSPECIFIED", "AND" ] }, "conditions": { "$ref": "GooglePrivacyDlpV2Conditions", "description": "Conditions to apply to the expression." } }, "type": "object", "id": "GooglePrivacyDlpV2Expressions", "description": "An expression, consisting of an operator and conditions." }, "GooglePrivacyDlpV2PublishToStackdriver": { "properties": {}, "description": "Enable Stackdriver metric dlp.googleapis.com/finding_count. This will publish a metric to stack driver on each infotype requested and how many findings were found for it. CustomDetectors will be bucketed as 'Custom' under the Stackdriver label 'info_type'.", "type": "object", "id": "GooglePrivacyDlpV2PublishToStackdriver" }, "GooglePrivacyDlpV2DataProfileJobConfig": { "type": "object", "properties": { "dataProfileActions": { "description": "Actions to execute at the completion of the job.", "type": "array", "items": { "$ref": "GooglePrivacyDlpV2DataProfileAction" } }, "inspectTemplates": { "type": "array", "items": { "type": "string" }, "description": "Detection logic for profile generation. Not all template features are used by profiles. FindingLimits, include_quote and exclude_info_types have no impact on data profiling. Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including \"global\"). Each region is scanned using the applicable template. If no region-specific template is specified, but a \"global\" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned. For more information, see https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency." }, "projectId": { "type": "string", "description": "The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the Cloud DLP API must be enabled." }, "location": { "description": "The data to scan.", "$ref": "GooglePrivacyDlpV2DataProfileLocation" } }, "description": "Configuration for setting up a job to scan resources for profile generation. Only one data profile configuration may exist per organization, folder, or project. The generated data profiles are retained according to the [data retention policy] (https://cloud.google.com/sensitive-data-protection/docs/data-profiles#retention).", "id": "GooglePrivacyDlpV2DataProfileJobConfig" }, "GooglePrivacyDlpV2MetadataLocation": { "type": "object", "id": "GooglePrivacyDlpV2MetadataLocation", "properties": { "storageLabel": { "$ref": "GooglePrivacyDlpV2StorageMetadataLabel", "description": "Storage metadata." }, "type": { "description": "Type of metadata containing the finding.", "enumDescriptions": [ "Unused", "General file metadata provided by Cloud Storage." ], "type": "string", "enum": [ "METADATATYPE_UNSPECIFIED", "STORAGE_METADATA" ] } }, "description": "Metadata Location" }, "GooglePrivacyDlpV2InspectDataSourceDetails": { "type": "object", "description": "The results of an inspect DataSource job.", "properties": { "result": { "$ref": "GooglePrivacyDlpV2Result", "description": "A summary of the outcome of this inspection job." }, "requestedOptions": { "$ref": "GooglePrivacyDlpV2RequestedOptions", "description": "The configuration used for this job." } }, "id": "GooglePrivacyDlpV2InspectDataSourceDetails" }, "GooglePrivacyDlpV2CryptoHashConfig": { "description": "Pseudonymization method that generates surrogates via cryptographic hashing. Uses SHA-256. The key size must be either 32 or 64 bytes. Outputs a base64 encoded representation of the hashed output (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=). Currently, only string and integer values can be hashed. See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization to learn more.", "properties": { "cryptoKey": { "description": "The key used by the hash function.", "$ref": "GooglePrivacyDlpV2CryptoKey" } }, "id": "GooglePrivacyDlpV2CryptoHashConfig", "type": "object" } }, "parameters": { "oauth_token": { "description": "OAuth 2.0 token for the current user.", "location": "query", "type": "string" }, "prettyPrint": { "description": "Returns response with indentations and line breaks.", "type": "boolean", "default": "true", "location": "query" }, "alt": { "type": "string", "enum": [ "json", "media", "proto" ], "description": "Data format for response.", "location": "query", "enumDescriptions": [ "Responses with Content-Type of application/json", "Media download with context-dependent Content-Type", "Responses with Content-Type of application/x-protobuf" ], "default": "json" }, "quotaUser": { "location": "query", "type": "string", "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." }, "$.xgafv": { "enum": [ "1", "2" ], "enumDescriptions": [ "v1 error format", "v2 error format" ], "location": "query", "description": "V1 error format.", "type": "string" }, "access_token": { "location": "query", "description": "OAuth access token.", "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" }, "upload_protocol": { "type": "string", "location": "query", "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")." }, "uploadType": { "location": "query", "type": "string", "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")." }, "callback": { "description": "JSONP", "type": "string", "location": "query" }, "fields": { "type": "string", "description": "Selector specifying which fields to include in a partial response.", "location": "query" } } }