stored_info_types
Creates, updates, deletes, gets or lists a stored_info_types
resource.
Overview
Name | stored_info_types |
Type | Resource |
Id | google.dlp.stored_info_types |
Fields
The following fields are returned by SELECT
queries:
- projects_locations_stored_info_types_get
- organizations_locations_stored_info_types_get
- projects_locations_stored_info_types_list
- projects_stored_info_types_get
- organizations_locations_stored_info_types_list
- organizations_stored_info_types_get
- projects_stored_info_types_list
- organizations_stored_info_types_list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Resource name. |
currentVersion | object | Current version of the stored info type. (id: GooglePrivacyDlpV2StoredInfoTypeVersion) |
pendingVersions | array | Pending versions of the stored info type. Empty if no versions are pending. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Resource name. |
currentVersion | object | Current version of the stored info type. (id: GooglePrivacyDlpV2StoredInfoTypeVersion) |
pendingVersions | array | Pending versions of the stored info type. Empty if no versions are pending. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Resource name. |
currentVersion | object | Current version of the stored info type. (id: GooglePrivacyDlpV2StoredInfoTypeVersion) |
pendingVersions | array | Pending versions of the stored info type. Empty if no versions are pending. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Resource name. |
currentVersion | object | Current version of the stored info type. (id: GooglePrivacyDlpV2StoredInfoTypeVersion) |
pendingVersions | array | Pending versions of the stored info type. Empty if no versions are pending. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Resource name. |
currentVersion | object | Current version of the stored info type. (id: GooglePrivacyDlpV2StoredInfoTypeVersion) |
pendingVersions | array | Pending versions of the stored info type. Empty if no versions are pending. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Resource name. |
currentVersion | object | Current version of the stored info type. (id: GooglePrivacyDlpV2StoredInfoTypeVersion) |
pendingVersions | array | Pending versions of the stored info type. Empty if no versions are pending. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Resource name. |
currentVersion | object | Current version of the stored info type. (id: GooglePrivacyDlpV2StoredInfoTypeVersion) |
pendingVersions | array | Pending versions of the stored info type. Empty if no versions are pending. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Resource name. |
currentVersion | object | Current version of the stored info type. (id: GooglePrivacyDlpV2StoredInfoTypeVersion) |
pendingVersions | array | Pending versions of the stored info type. Empty if no versions are pending. |
Methods
The following methods are available for this resource:
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
organizationsId | string | |
projectsId | string | |
storedInfoTypesId | string | |
locationId | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- projects_locations_stored_info_types_get
- organizations_locations_stored_info_types_get
- projects_locations_stored_info_types_list
- projects_stored_info_types_get
- organizations_locations_stored_info_types_list
- organizations_stored_info_types_get
- projects_stored_info_types_list
- organizations_stored_info_types_list
Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
SELECT
name,
currentVersion,
pendingVersions
FROM google.dlp.stored_info_types
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND storedInfoTypesId = '{{ storedInfoTypesId }}' -- required;
Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
SELECT
name,
currentVersion,
pendingVersions
FROM google.dlp.stored_info_types
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND storedInfoTypesId = '{{ storedInfoTypesId }}' -- required;
Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
SELECT
name,
currentVersion,
pendingVersions
FROM google.dlp.stored_info_types
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}'
AND orderBy = '{{ orderBy }}'
AND locationId = '{{ locationId }}';
Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
SELECT
name,
currentVersion,
pendingVersions
FROM google.dlp.stored_info_types
WHERE projectsId = '{{ projectsId }}' -- required
AND storedInfoTypesId = '{{ storedInfoTypesId }}' -- required;
Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
SELECT
name,
currentVersion,
pendingVersions
FROM google.dlp.stored_info_types
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}'
AND orderBy = '{{ orderBy }}'
AND locationId = '{{ locationId }}';
Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
SELECT
name,
currentVersion,
pendingVersions
FROM google.dlp.stored_info_types
WHERE organizationsId = '{{ organizationsId }}' -- required
AND storedInfoTypesId = '{{ storedInfoTypesId }}' -- required;
Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
SELECT
name,
currentVersion,
pendingVersions
FROM google.dlp.stored_info_types
WHERE projectsId = '{{ projectsId }}' -- required
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}'
AND orderBy = '{{ orderBy }}'
AND locationId = '{{ locationId }}';
Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
SELECT
name,
currentVersion,
pendingVersions
FROM google.dlp.stored_info_types
WHERE organizationsId = '{{ organizationsId }}' -- required
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}'
AND orderBy = '{{ orderBy }}'
AND locationId = '{{ locationId }}';
INSERT
examples
- projects_locations_stored_info_types_create
- organizations_locations_stored_info_types_create
- projects_stored_info_types_create
- organizations_stored_info_types_create
- Manifest
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.
INSERT INTO google.dlp.stored_info_types (
data__config,
data__storedInfoTypeId,
data__locationId,
projectsId,
locationsId
)
SELECT
'{{ config }}',
'{{ storedInfoTypeId }}',
'{{ locationId }}',
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
name,
currentVersion,
pendingVersions
;
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.
INSERT INTO google.dlp.stored_info_types (
data__config,
data__storedInfoTypeId,
data__locationId,
organizationsId,
locationsId
)
SELECT
'{{ config }}',
'{{ storedInfoTypeId }}',
'{{ locationId }}',
'{{ organizationsId }}',
'{{ locationsId }}'
RETURNING
name,
currentVersion,
pendingVersions
;
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.
INSERT INTO google.dlp.stored_info_types (
data__config,
data__storedInfoTypeId,
data__locationId,
projectsId
)
SELECT
'{{ config }}',
'{{ storedInfoTypeId }}',
'{{ locationId }}',
'{{ projectsId }}'
RETURNING
name,
currentVersion,
pendingVersions
;
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.
INSERT INTO google.dlp.stored_info_types (
data__config,
data__storedInfoTypeId,
data__locationId,
organizationsId
)
SELECT
'{{ config }}',
'{{ storedInfoTypeId }}',
'{{ locationId }}',
'{{ organizationsId }}'
RETURNING
name,
currentVersion,
pendingVersions
;
# Description fields are for documentation purposes
- name: stored_info_types
props:
- name: projectsId
value: string
description: Required parameter for the stored_info_types resource.
- name: locationsId
value: string
description: Required parameter for the stored_info_types resource.
- name: organizationsId
value: string
description: Required parameter for the stored_info_types resource.
- name: config
value: object
description: >
Required. Configuration of the storedInfoType to create.
- name: storedInfoTypeId
value: 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.
- name: locationId
value: string
description: >
Deprecated. This field has no effect.
UPDATE
examples
- projects_locations_stored_info_types_patch
- organizations_locations_stored_info_types_patch
- projects_stored_info_types_patch
- organizations_stored_info_types_patch
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.
UPDATE google.dlp.stored_info_types
SET
data__config = '{{ config }}',
data__updateMask = '{{ updateMask }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND storedInfoTypesId = '{{ storedInfoTypesId }}' --required
RETURNING
name,
currentVersion,
pendingVersions;
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.
UPDATE google.dlp.stored_info_types
SET
data__config = '{{ config }}',
data__updateMask = '{{ updateMask }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND storedInfoTypesId = '{{ storedInfoTypesId }}' --required
RETURNING
name,
currentVersion,
pendingVersions;
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.
UPDATE google.dlp.stored_info_types
SET
data__config = '{{ config }}',
data__updateMask = '{{ updateMask }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND storedInfoTypesId = '{{ storedInfoTypesId }}' --required
RETURNING
name,
currentVersion,
pendingVersions;
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.
UPDATE google.dlp.stored_info_types
SET
data__config = '{{ config }}',
data__updateMask = '{{ updateMask }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND storedInfoTypesId = '{{ storedInfoTypesId }}' --required
RETURNING
name,
currentVersion,
pendingVersions;
DELETE
examples
- projects_locations_stored_info_types_delete
- organizations_locations_stored_info_types_delete
- projects_stored_info_types_delete
- organizations_stored_info_types_delete
Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
DELETE FROM google.dlp.stored_info_types
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND storedInfoTypesId = '{{ storedInfoTypesId }}' --required;
Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
DELETE FROM google.dlp.stored_info_types
WHERE organizationsId = '{{ organizationsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND storedInfoTypesId = '{{ storedInfoTypesId }}' --required;
Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
DELETE FROM google.dlp.stored_info_types
WHERE projectsId = '{{ projectsId }}' --required
AND storedInfoTypesId = '{{ storedInfoTypesId }}' --required;
Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
DELETE FROM google.dlp.stored_info_types
WHERE organizationsId = '{{ organizationsId }}' --required
AND storedInfoTypesId = '{{ storedInfoTypesId }}' --required;