Debian Codegraph @

docs/dyn/dlp_v2.projects.storedInfoTypes.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="dlp_v2.html">Sensitive Data Protection (DLP)</a> . <a href="dlp_v2.projects.html">projects</a> . <a href="dlp_v2.projects.storedInfoTypes.html">storedInfoTypes</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">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.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, locationId=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">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.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
106 <pre>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.
107
108 Args:
109 parent: string, 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)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # Request message for CreateStoredInfoType.
114 &quot;config&quot;: { # 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. # Required. Configuration of the storedInfoType to create.
115 &quot;description&quot;: &quot;A String&quot;, # Description of the StoredInfoType (max 256 characters).
116 &quot;dictionary&quot;: { # 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 &quot;Sam Johnson&quot; will match all three phrases &quot;sam johnson&quot;, &quot;Sam, Johnson&quot;, and &quot;Sam (Johnson)&quot;. 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 &quot;jen&quot; will match the first three letters of the text &quot;jen123&quot; but will return no matches for &quot;jennifer&quot;. 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. # Store dictionary-based CustomInfoType.
117 &quot;cloudStoragePath&quot;: { # Message representing a single file or path in Cloud Storage. # Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
118 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
119 },
120 &quot;wordList&quot;: { # Message defining a list of words or phrases to search for in the data. # List of words or phrases to search for.
121 &quot;words&quot;: [ # 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]
122 &quot;A String&quot;,
123 ],
124 },
125 },
126 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the StoredInfoType (max 256 characters).
127 &quot;largeCustomDictionary&quot;: { # 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. # StoredInfoType where findings are defined by a dictionary of phrases.
128 &quot;bigQueryField&quot;: { # Message defining a field of a BigQuery table. # Field in a BigQuery table where each cell represents a dictionary phrase.
129 &quot;field&quot;: { # General identifier of a data field in a storage service. # Designated field in the BigQuery table.
130 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
131 },
132 &quot;table&quot;: { # 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 `..`. # Source table of the field.
133 &quot;datasetId&quot;: &quot;A String&quot;, # Dataset ID of the table.
134 &quot;projectId&quot;: &quot;A String&quot;, # The Google Cloud project ID of the project containing the table. If omitted, project ID is inferred from the API call.
135 &quot;tableId&quot;: &quot;A String&quot;, # Name of the table.
136 },
137 },
138 &quot;cloudStorageFileSet&quot;: { # Message representing a set of files in Cloud Storage. # Set of files containing newline-delimited lists of dictionary phrases.
139 &quot;url&quot;: &quot;A String&quot;, # The url, in the format `gs:///`. Trailing wildcard in the path is allowed.
140 },
141 &quot;outputPath&quot;: { # Message representing a single file or path in Cloud Storage. # 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.
142 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
143 },
144 },
145 &quot;regex&quot;: { # Message defining a custom regular expression. # Store regular expression-based StoredInfoType.
146 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
147 42,
148 ],
149 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
150 },
151 },
152 &quot;locationId&quot;: &quot;A String&quot;, # Deprecated. This field has no effect.
153 &quot;storedInfoTypeId&quot;: &quot;A String&quot;, # 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.
154 }
155
156 x__xgafv: string, V1 error format.
157 Allowed values
158 1 - v1 error format
159 2 - v2 error format
160
161 Returns:
162 An object of the form:
163
164 { # StoredInfoType resource message that contains information about the current version and any pending updates.
165 &quot;currentVersion&quot;: { # Version of a StoredInfoType, including the configuration used to build it, create timestamp, and current state. # Current version of the stored info type.
166 &quot;config&quot;: { # 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. # StoredInfoType configuration.
167 &quot;description&quot;: &quot;A String&quot;, # Description of the StoredInfoType (max 256 characters).
168 &quot;dictionary&quot;: { # 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 &quot;Sam Johnson&quot; will match all three phrases &quot;sam johnson&quot;, &quot;Sam, Johnson&quot;, and &quot;Sam (Johnson)&quot;. 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 &quot;jen&quot; will match the first three letters of the text &quot;jen123&quot; but will return no matches for &quot;jennifer&quot;. 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. # Store dictionary-based CustomInfoType.
169 &quot;cloudStoragePath&quot;: { # Message representing a single file or path in Cloud Storage. # Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
170 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
171 },
172 &quot;wordList&quot;: { # Message defining a list of words or phrases to search for in the data. # List of words or phrases to search for.
173 &quot;words&quot;: [ # 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]
174 &quot;A String&quot;,
175 ],
176 },
177 },
178 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the StoredInfoType (max 256 characters).
179 &quot;largeCustomDictionary&quot;: { # 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. # StoredInfoType where findings are defined by a dictionary of phrases.
180 &quot;bigQueryField&quot;: { # Message defining a field of a BigQuery table. # Field in a BigQuery table where each cell represents a dictionary phrase.
181 &quot;field&quot;: { # General identifier of a data field in a storage service. # Designated field in the BigQuery table.
182 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
183 },
184 &quot;table&quot;: { # 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 `..`. # Source table of the field.
185 &quot;datasetId&quot;: &quot;A String&quot;, # Dataset ID of the table.
186 &quot;projectId&quot;: &quot;A String&quot;, # The Google Cloud project ID of the project containing the table. If omitted, project ID is inferred from the API call.
187 &quot;tableId&quot;: &quot;A String&quot;, # Name of the table.
188 },
189 },
190 &quot;cloudStorageFileSet&quot;: { # Message representing a set of files in Cloud Storage. # Set of files containing newline-delimited lists of dictionary phrases.
191 &quot;url&quot;: &quot;A String&quot;, # The url, in the format `gs:///`. Trailing wildcard in the path is allowed.
192 },
193 &quot;outputPath&quot;: { # Message representing a single file or path in Cloud Storage. # 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.
194 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
195 },
196 },
197 &quot;regex&quot;: { # Message defining a custom regular expression. # Store regular expression-based StoredInfoType.
198 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
199 42,
200 ],
201 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
202 },
203 },
204 &quot;createTime&quot;: &quot;A String&quot;, # Create timestamp of the version. Read-only, determined by the system when the version is created.
205 &quot;errors&quot;: [ # 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&#x27;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.
206 { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
207 &quot;details&quot;: { # 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). # Detailed error codes and messages.
208 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
209 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
210 {
211 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
212 },
213 ],
214 &quot;message&quot;: &quot;A String&quot;, # 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.
215 },
216 &quot;extraInfo&quot;: &quot;A String&quot;, # Additional information about the error.
217 &quot;timestamps&quot;: [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
218 &quot;A String&quot;,
219 ],
220 },
221 ],
222 &quot;state&quot;: &quot;A String&quot;, # Stored info type version state. Read-only, updated by the system during dictionary creation.
223 &quot;stats&quot;: { # Statistics for a StoredInfoType. # Statistics about this storedInfoType version.
224 &quot;largeCustomDictionary&quot;: { # Summary statistics of a custom dictionary. # StoredInfoType where findings are defined by a dictionary of phrases.
225 &quot;approxNumPhrases&quot;: &quot;A String&quot;, # Approximate number of distinct phrases in the dictionary.
226 },
227 },
228 },
229 &quot;name&quot;: &quot;A String&quot;, # Resource name.
230 &quot;pendingVersions&quot;: [ # Pending versions of the stored info type. Empty if no versions are pending.
231 { # Version of a StoredInfoType, including the configuration used to build it, create timestamp, and current state.
232 &quot;config&quot;: { # 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. # StoredInfoType configuration.
233 &quot;description&quot;: &quot;A String&quot;, # Description of the StoredInfoType (max 256 characters).
234 &quot;dictionary&quot;: { # 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 &quot;Sam Johnson&quot; will match all three phrases &quot;sam johnson&quot;, &quot;Sam, Johnson&quot;, and &quot;Sam (Johnson)&quot;. 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 &quot;jen&quot; will match the first three letters of the text &quot;jen123&quot; but will return no matches for &quot;jennifer&quot;. 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. # Store dictionary-based CustomInfoType.
235 &quot;cloudStoragePath&quot;: { # Message representing a single file or path in Cloud Storage. # Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
236 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
237 },
238 &quot;wordList&quot;: { # Message defining a list of words or phrases to search for in the data. # List of words or phrases to search for.
239 &quot;words&quot;: [ # 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]
240 &quot;A String&quot;,
241 ],
242 },
243 },
244 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the StoredInfoType (max 256 characters).
245 &quot;largeCustomDictionary&quot;: { # 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. # StoredInfoType where findings are defined by a dictionary of phrases.
246 &quot;bigQueryField&quot;: { # Message defining a field of a BigQuery table. # Field in a BigQuery table where each cell represents a dictionary phrase.
247 &quot;field&quot;: { # General identifier of a data field in a storage service. # Designated field in the BigQuery table.
248 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
249 },
250 &quot;table&quot;: { # 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 `..`. # Source table of the field.
251 &quot;datasetId&quot;: &quot;A String&quot;, # Dataset ID of the table.
252 &quot;projectId&quot;: &quot;A String&quot;, # The Google Cloud project ID of the project containing the table. If omitted, project ID is inferred from the API call.
253 &quot;tableId&quot;: &quot;A String&quot;, # Name of the table.
254 },
255 },
256 &quot;cloudStorageFileSet&quot;: { # Message representing a set of files in Cloud Storage. # Set of files containing newline-delimited lists of dictionary phrases.
257 &quot;url&quot;: &quot;A String&quot;, # The url, in the format `gs:///`. Trailing wildcard in the path is allowed.
258 },
259 &quot;outputPath&quot;: { # Message representing a single file or path in Cloud Storage. # 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.
260 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
261 },
262 },
263 &quot;regex&quot;: { # Message defining a custom regular expression. # Store regular expression-based StoredInfoType.
264 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
265 42,
266 ],
267 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
268 },
269 },
270 &quot;createTime&quot;: &quot;A String&quot;, # Create timestamp of the version. Read-only, determined by the system when the version is created.
271 &quot;errors&quot;: [ # 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&#x27;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.
272 { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
273 &quot;details&quot;: { # 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). # Detailed error codes and messages.
274 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
275 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
276 {
277 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
278 },
279 ],
280 &quot;message&quot;: &quot;A String&quot;, # 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.
281 },
282 &quot;extraInfo&quot;: &quot;A String&quot;, # Additional information about the error.
283 &quot;timestamps&quot;: [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
284 &quot;A String&quot;,
285 ],
286 },
287 ],
288 &quot;state&quot;: &quot;A String&quot;, # Stored info type version state. Read-only, updated by the system during dictionary creation.
289 &quot;stats&quot;: { # Statistics for a StoredInfoType. # Statistics about this storedInfoType version.
290 &quot;largeCustomDictionary&quot;: { # Summary statistics of a custom dictionary. # StoredInfoType where findings are defined by a dictionary of phrases.
291 &quot;approxNumPhrases&quot;: &quot;A String&quot;, # Approximate number of distinct phrases in the dictionary.
292 },
293 },
294 },
295 ],
296 }</pre>
297 </div>
298
299 <div class="method">
300 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
301 <pre>Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
302
303 Args:
304 name: string, Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. (required)
305 x__xgafv: string, V1 error format.
306 Allowed values
307 1 - v1 error format
308 2 - v2 error format
309
310 Returns:
311 An object of the form:
312
313 { # 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); }
314 }</pre>
315 </div>
316
317 <div class="method">
318 <code class="details" id="get">get(name, x__xgafv=None)</code>
319 <pre>Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
320
321 Args:
322 name: string, Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. (required)
323 x__xgafv: string, V1 error format.
324 Allowed values
325 1 - v1 error format
326 2 - v2 error format
327
328 Returns:
329 An object of the form:
330
331 { # StoredInfoType resource message that contains information about the current version and any pending updates.
332 &quot;currentVersion&quot;: { # Version of a StoredInfoType, including the configuration used to build it, create timestamp, and current state. # Current version of the stored info type.
333 &quot;config&quot;: { # 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. # StoredInfoType configuration.
334 &quot;description&quot;: &quot;A String&quot;, # Description of the StoredInfoType (max 256 characters).
335 &quot;dictionary&quot;: { # 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 &quot;Sam Johnson&quot; will match all three phrases &quot;sam johnson&quot;, &quot;Sam, Johnson&quot;, and &quot;Sam (Johnson)&quot;. 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 &quot;jen&quot; will match the first three letters of the text &quot;jen123&quot; but will return no matches for &quot;jennifer&quot;. 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. # Store dictionary-based CustomInfoType.
336 &quot;cloudStoragePath&quot;: { # Message representing a single file or path in Cloud Storage. # Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
337 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
338 },
339 &quot;wordList&quot;: { # Message defining a list of words or phrases to search for in the data. # List of words or phrases to search for.
340 &quot;words&quot;: [ # 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]
341 &quot;A String&quot;,
342 ],
343 },
344 },
345 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the StoredInfoType (max 256 characters).
346 &quot;largeCustomDictionary&quot;: { # 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. # StoredInfoType where findings are defined by a dictionary of phrases.
347 &quot;bigQueryField&quot;: { # Message defining a field of a BigQuery table. # Field in a BigQuery table where each cell represents a dictionary phrase.
348 &quot;field&quot;: { # General identifier of a data field in a storage service. # Designated field in the BigQuery table.
349 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
350 },
351 &quot;table&quot;: { # 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 `..`. # Source table of the field.
352 &quot;datasetId&quot;: &quot;A String&quot;, # Dataset ID of the table.
353 &quot;projectId&quot;: &quot;A String&quot;, # The Google Cloud project ID of the project containing the table. If omitted, project ID is inferred from the API call.
354 &quot;tableId&quot;: &quot;A String&quot;, # Name of the table.
355 },
356 },
357 &quot;cloudStorageFileSet&quot;: { # Message representing a set of files in Cloud Storage. # Set of files containing newline-delimited lists of dictionary phrases.
358 &quot;url&quot;: &quot;A String&quot;, # The url, in the format `gs:///`. Trailing wildcard in the path is allowed.
359 },
360 &quot;outputPath&quot;: { # Message representing a single file or path in Cloud Storage. # 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.
361 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
362 },
363 },
364 &quot;regex&quot;: { # Message defining a custom regular expression. # Store regular expression-based StoredInfoType.
365 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
366 42,
367 ],
368 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
369 },
370 },
371 &quot;createTime&quot;: &quot;A String&quot;, # Create timestamp of the version. Read-only, determined by the system when the version is created.
372 &quot;errors&quot;: [ # 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&#x27;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.
373 { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
374 &quot;details&quot;: { # 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). # Detailed error codes and messages.
375 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
376 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
377 {
378 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
379 },
380 ],
381 &quot;message&quot;: &quot;A String&quot;, # 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.
382 },
383 &quot;extraInfo&quot;: &quot;A String&quot;, # Additional information about the error.
384 &quot;timestamps&quot;: [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
385 &quot;A String&quot;,
386 ],
387 },
388 ],
389 &quot;state&quot;: &quot;A String&quot;, # Stored info type version state. Read-only, updated by the system during dictionary creation.
390 &quot;stats&quot;: { # Statistics for a StoredInfoType. # Statistics about this storedInfoType version.
391 &quot;largeCustomDictionary&quot;: { # Summary statistics of a custom dictionary. # StoredInfoType where findings are defined by a dictionary of phrases.
392 &quot;approxNumPhrases&quot;: &quot;A String&quot;, # Approximate number of distinct phrases in the dictionary.
393 },
394 },
395 },
396 &quot;name&quot;: &quot;A String&quot;, # Resource name.
397 &quot;pendingVersions&quot;: [ # Pending versions of the stored info type. Empty if no versions are pending.
398 { # Version of a StoredInfoType, including the configuration used to build it, create timestamp, and current state.
399 &quot;config&quot;: { # 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. # StoredInfoType configuration.
400 &quot;description&quot;: &quot;A String&quot;, # Description of the StoredInfoType (max 256 characters).
401 &quot;dictionary&quot;: { # 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 &quot;Sam Johnson&quot; will match all three phrases &quot;sam johnson&quot;, &quot;Sam, Johnson&quot;, and &quot;Sam (Johnson)&quot;. 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 &quot;jen&quot; will match the first three letters of the text &quot;jen123&quot; but will return no matches for &quot;jennifer&quot;. 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. # Store dictionary-based CustomInfoType.
402 &quot;cloudStoragePath&quot;: { # Message representing a single file or path in Cloud Storage. # Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
403 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
404 },
405 &quot;wordList&quot;: { # Message defining a list of words or phrases to search for in the data. # List of words or phrases to search for.
406 &quot;words&quot;: [ # 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]
407 &quot;A String&quot;,
408 ],
409 },
410 },
411 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the StoredInfoType (max 256 characters).
412 &quot;largeCustomDictionary&quot;: { # 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. # StoredInfoType where findings are defined by a dictionary of phrases.
413 &quot;bigQueryField&quot;: { # Message defining a field of a BigQuery table. # Field in a BigQuery table where each cell represents a dictionary phrase.
414 &quot;field&quot;: { # General identifier of a data field in a storage service. # Designated field in the BigQuery table.
415 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
416 },
417 &quot;table&quot;: { # 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 `..`. # Source table of the field.
418 &quot;datasetId&quot;: &quot;A String&quot;, # Dataset ID of the table.
419 &quot;projectId&quot;: &quot;A String&quot;, # The Google Cloud project ID of the project containing the table. If omitted, project ID is inferred from the API call.
420 &quot;tableId&quot;: &quot;A String&quot;, # Name of the table.
421 },
422 },
423 &quot;cloudStorageFileSet&quot;: { # Message representing a set of files in Cloud Storage. # Set of files containing newline-delimited lists of dictionary phrases.
424 &quot;url&quot;: &quot;A String&quot;, # The url, in the format `gs:///`. Trailing wildcard in the path is allowed.
425 },
426 &quot;outputPath&quot;: { # Message representing a single file or path in Cloud Storage. # 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.
427 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
428 },
429 },
430 &quot;regex&quot;: { # Message defining a custom regular expression. # Store regular expression-based StoredInfoType.
431 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
432 42,
433 ],
434 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
435 },
436 },
437 &quot;createTime&quot;: &quot;A String&quot;, # Create timestamp of the version. Read-only, determined by the system when the version is created.
438 &quot;errors&quot;: [ # 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&#x27;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.
439 { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
440 &quot;details&quot;: { # 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). # Detailed error codes and messages.
441 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
442 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
443 {
444 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
445 },
446 ],
447 &quot;message&quot;: &quot;A String&quot;, # 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.
448 },
449 &quot;extraInfo&quot;: &quot;A String&quot;, # Additional information about the error.
450 &quot;timestamps&quot;: [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
451 &quot;A String&quot;,
452 ],
453 },
454 ],
455 &quot;state&quot;: &quot;A String&quot;, # Stored info type version state. Read-only, updated by the system during dictionary creation.
456 &quot;stats&quot;: { # Statistics for a StoredInfoType. # Statistics about this storedInfoType version.
457 &quot;largeCustomDictionary&quot;: { # Summary statistics of a custom dictionary. # StoredInfoType where findings are defined by a dictionary of phrases.
458 &quot;approxNumPhrases&quot;: &quot;A String&quot;, # Approximate number of distinct phrases in the dictionary.
459 },
460 },
461 },
462 ],
463 }</pre>
464 </div>
465
466 <div class="method">
467 <code class="details" id="list">list(parent, locationId=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
468 <pre>Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
469
470 Args:
471 parent: string, 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)
472 locationId: string, Deprecated. This field has no effect.
473 orderBy: string, 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&#x27;s display name.
474 pageSize: integer, Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.
475 pageToken: string, Page token to continue retrieval. Comes from the previous call to `ListStoredInfoTypes`.
476 x__xgafv: string, V1 error format.
477 Allowed values
478 1 - v1 error format
479 2 - v2 error format
480
481 Returns:
482 An object of the form:
483
484 { # Response message for ListStoredInfoTypes.
485 &quot;nextPageToken&quot;: &quot;A String&quot;, # If the next page is available then the next page token to be used in the following ListStoredInfoTypes request.
486 &quot;storedInfoTypes&quot;: [ # List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest.
487 { # StoredInfoType resource message that contains information about the current version and any pending updates.
488 &quot;currentVersion&quot;: { # Version of a StoredInfoType, including the configuration used to build it, create timestamp, and current state. # Current version of the stored info type.
489 &quot;config&quot;: { # 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. # StoredInfoType configuration.
490 &quot;description&quot;: &quot;A String&quot;, # Description of the StoredInfoType (max 256 characters).
491 &quot;dictionary&quot;: { # 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 &quot;Sam Johnson&quot; will match all three phrases &quot;sam johnson&quot;, &quot;Sam, Johnson&quot;, and &quot;Sam (Johnson)&quot;. 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 &quot;jen&quot; will match the first three letters of the text &quot;jen123&quot; but will return no matches for &quot;jennifer&quot;. 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. # Store dictionary-based CustomInfoType.
492 &quot;cloudStoragePath&quot;: { # Message representing a single file or path in Cloud Storage. # Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
493 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
494 },
495 &quot;wordList&quot;: { # Message defining a list of words or phrases to search for in the data. # List of words or phrases to search for.
496 &quot;words&quot;: [ # 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]
497 &quot;A String&quot;,
498 ],
499 },
500 },
501 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the StoredInfoType (max 256 characters).
502 &quot;largeCustomDictionary&quot;: { # 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. # StoredInfoType where findings are defined by a dictionary of phrases.
503 &quot;bigQueryField&quot;: { # Message defining a field of a BigQuery table. # Field in a BigQuery table where each cell represents a dictionary phrase.
504 &quot;field&quot;: { # General identifier of a data field in a storage service. # Designated field in the BigQuery table.
505 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
506 },
507 &quot;table&quot;: { # 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 `..`. # Source table of the field.
508 &quot;datasetId&quot;: &quot;A String&quot;, # Dataset ID of the table.
509 &quot;projectId&quot;: &quot;A String&quot;, # The Google Cloud project ID of the project containing the table. If omitted, project ID is inferred from the API call.
510 &quot;tableId&quot;: &quot;A String&quot;, # Name of the table.
511 },
512 },
513 &quot;cloudStorageFileSet&quot;: { # Message representing a set of files in Cloud Storage. # Set of files containing newline-delimited lists of dictionary phrases.
514 &quot;url&quot;: &quot;A String&quot;, # The url, in the format `gs:///`. Trailing wildcard in the path is allowed.
515 },
516 &quot;outputPath&quot;: { # Message representing a single file or path in Cloud Storage. # 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.
517 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
518 },
519 },
520 &quot;regex&quot;: { # Message defining a custom regular expression. # Store regular expression-based StoredInfoType.
521 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
522 42,
523 ],
524 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
525 },
526 },
527 &quot;createTime&quot;: &quot;A String&quot;, # Create timestamp of the version. Read-only, determined by the system when the version is created.
528 &quot;errors&quot;: [ # 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&#x27;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.
529 { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
530 &quot;details&quot;: { # 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). # Detailed error codes and messages.
531 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
532 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
533 {
534 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
535 },
536 ],
537 &quot;message&quot;: &quot;A String&quot;, # 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.
538 },
539 &quot;extraInfo&quot;: &quot;A String&quot;, # Additional information about the error.
540 &quot;timestamps&quot;: [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
541 &quot;A String&quot;,
542 ],
543 },
544 ],
545 &quot;state&quot;: &quot;A String&quot;, # Stored info type version state. Read-only, updated by the system during dictionary creation.
546 &quot;stats&quot;: { # Statistics for a StoredInfoType. # Statistics about this storedInfoType version.
547 &quot;largeCustomDictionary&quot;: { # Summary statistics of a custom dictionary. # StoredInfoType where findings are defined by a dictionary of phrases.
548 &quot;approxNumPhrases&quot;: &quot;A String&quot;, # Approximate number of distinct phrases in the dictionary.
549 },
550 },
551 },
552 &quot;name&quot;: &quot;A String&quot;, # Resource name.
553 &quot;pendingVersions&quot;: [ # Pending versions of the stored info type. Empty if no versions are pending.
554 { # Version of a StoredInfoType, including the configuration used to build it, create timestamp, and current state.
555 &quot;config&quot;: { # 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. # StoredInfoType configuration.
556 &quot;description&quot;: &quot;A String&quot;, # Description of the StoredInfoType (max 256 characters).
557 &quot;dictionary&quot;: { # 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 &quot;Sam Johnson&quot; will match all three phrases &quot;sam johnson&quot;, &quot;Sam, Johnson&quot;, and &quot;Sam (Johnson)&quot;. 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 &quot;jen&quot; will match the first three letters of the text &quot;jen123&quot; but will return no matches for &quot;jennifer&quot;. 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. # Store dictionary-based CustomInfoType.
558 &quot;cloudStoragePath&quot;: { # Message representing a single file or path in Cloud Storage. # Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
559 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
560 },
561 &quot;wordList&quot;: { # Message defining a list of words or phrases to search for in the data. # List of words or phrases to search for.
562 &quot;words&quot;: [ # 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]
563 &quot;A String&quot;,
564 ],
565 },
566 },
567 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the StoredInfoType (max 256 characters).
568 &quot;largeCustomDictionary&quot;: { # 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. # StoredInfoType where findings are defined by a dictionary of phrases.
569 &quot;bigQueryField&quot;: { # Message defining a field of a BigQuery table. # Field in a BigQuery table where each cell represents a dictionary phrase.
570 &quot;field&quot;: { # General identifier of a data field in a storage service. # Designated field in the BigQuery table.
571 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
572 },
573 &quot;table&quot;: { # 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 `..`. # Source table of the field.
574 &quot;datasetId&quot;: &quot;A String&quot;, # Dataset ID of the table.
575 &quot;projectId&quot;: &quot;A String&quot;, # The Google Cloud project ID of the project containing the table. If omitted, project ID is inferred from the API call.
576 &quot;tableId&quot;: &quot;A String&quot;, # Name of the table.
577 },
578 },
579 &quot;cloudStorageFileSet&quot;: { # Message representing a set of files in Cloud Storage. # Set of files containing newline-delimited lists of dictionary phrases.
580 &quot;url&quot;: &quot;A String&quot;, # The url, in the format `gs:///`. Trailing wildcard in the path is allowed.
581 },
582 &quot;outputPath&quot;: { # Message representing a single file or path in Cloud Storage. # 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.
583 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
584 },
585 },
586 &quot;regex&quot;: { # Message defining a custom regular expression. # Store regular expression-based StoredInfoType.
587 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
588 42,
589 ],
590 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
591 },
592 },
593 &quot;createTime&quot;: &quot;A String&quot;, # Create timestamp of the version. Read-only, determined by the system when the version is created.
594 &quot;errors&quot;: [ # 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&#x27;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.
595 { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
596 &quot;details&quot;: { # 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). # Detailed error codes and messages.
597 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
598 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
599 {
600 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
601 },
602 ],
603 &quot;message&quot;: &quot;A String&quot;, # 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.
604 },
605 &quot;extraInfo&quot;: &quot;A String&quot;, # Additional information about the error.
606 &quot;timestamps&quot;: [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
607 &quot;A String&quot;,
608 ],
609 },
610 ],
611 &quot;state&quot;: &quot;A String&quot;, # Stored info type version state. Read-only, updated by the system during dictionary creation.
612 &quot;stats&quot;: { # Statistics for a StoredInfoType. # Statistics about this storedInfoType version.
613 &quot;largeCustomDictionary&quot;: { # Summary statistics of a custom dictionary. # StoredInfoType where findings are defined by a dictionary of phrases.
614 &quot;approxNumPhrases&quot;: &quot;A String&quot;, # Approximate number of distinct phrases in the dictionary.
615 },
616 },
617 },
618 ],
619 },
620 ],
621 }</pre>
622 </div>
623
624 <div class="method">
625 <code class="details" id="list_next">list_next()</code>
626 <pre>Retrieves the next page of results.
627
628 Args:
629 previous_request: The request for the previous page. (required)
630 previous_response: The response from the request for the previous page. (required)
631
632 Returns:
633 A request object that you can call &#x27;execute()&#x27; on to request the next
634 page. Returns None if there are no more items in the collection.
635 </pre>
636 </div>
637
638 <div class="method">
639 <code class="details" id="patch">patch(name, body=None, x__xgafv=None)</code>
640 <pre>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.
641
642 Args:
643 name: string, Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. (required)
644 body: object, The request body.
645 The object takes the form of:
646
647 { # Request message for UpdateStoredInfoType.
648 &quot;config&quot;: { # 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. # Updated configuration for the storedInfoType. If not provided, a new version of the storedInfoType will be created with the existing configuration.
649 &quot;description&quot;: &quot;A String&quot;, # Description of the StoredInfoType (max 256 characters).
650 &quot;dictionary&quot;: { # 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 &quot;Sam Johnson&quot; will match all three phrases &quot;sam johnson&quot;, &quot;Sam, Johnson&quot;, and &quot;Sam (Johnson)&quot;. 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 &quot;jen&quot; will match the first three letters of the text &quot;jen123&quot; but will return no matches for &quot;jennifer&quot;. 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. # Store dictionary-based CustomInfoType.
651 &quot;cloudStoragePath&quot;: { # Message representing a single file or path in Cloud Storage. # Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
652 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
653 },
654 &quot;wordList&quot;: { # Message defining a list of words or phrases to search for in the data. # List of words or phrases to search for.
655 &quot;words&quot;: [ # 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]
656 &quot;A String&quot;,
657 ],
658 },
659 },
660 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the StoredInfoType (max 256 characters).
661 &quot;largeCustomDictionary&quot;: { # 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. # StoredInfoType where findings are defined by a dictionary of phrases.
662 &quot;bigQueryField&quot;: { # Message defining a field of a BigQuery table. # Field in a BigQuery table where each cell represents a dictionary phrase.
663 &quot;field&quot;: { # General identifier of a data field in a storage service. # Designated field in the BigQuery table.
664 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
665 },
666 &quot;table&quot;: { # 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 `..`. # Source table of the field.
667 &quot;datasetId&quot;: &quot;A String&quot;, # Dataset ID of the table.
668 &quot;projectId&quot;: &quot;A String&quot;, # The Google Cloud project ID of the project containing the table. If omitted, project ID is inferred from the API call.
669 &quot;tableId&quot;: &quot;A String&quot;, # Name of the table.
670 },
671 },
672 &quot;cloudStorageFileSet&quot;: { # Message representing a set of files in Cloud Storage. # Set of files containing newline-delimited lists of dictionary phrases.
673 &quot;url&quot;: &quot;A String&quot;, # The url, in the format `gs:///`. Trailing wildcard in the path is allowed.
674 },
675 &quot;outputPath&quot;: { # Message representing a single file or path in Cloud Storage. # 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.
676 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
677 },
678 },
679 &quot;regex&quot;: { # Message defining a custom regular expression. # Store regular expression-based StoredInfoType.
680 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
681 42,
682 ],
683 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
684 },
685 },
686 &quot;updateMask&quot;: &quot;A String&quot;, # Mask to control which fields get updated.
687 }
688
689 x__xgafv: string, V1 error format.
690 Allowed values
691 1 - v1 error format
692 2 - v2 error format
693
694 Returns:
695 An object of the form:
696
697 { # StoredInfoType resource message that contains information about the current version and any pending updates.
698 &quot;currentVersion&quot;: { # Version of a StoredInfoType, including the configuration used to build it, create timestamp, and current state. # Current version of the stored info type.
699 &quot;config&quot;: { # 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. # StoredInfoType configuration.
700 &quot;description&quot;: &quot;A String&quot;, # Description of the StoredInfoType (max 256 characters).
701 &quot;dictionary&quot;: { # 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 &quot;Sam Johnson&quot; will match all three phrases &quot;sam johnson&quot;, &quot;Sam, Johnson&quot;, and &quot;Sam (Johnson)&quot;. 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 &quot;jen&quot; will match the first three letters of the text &quot;jen123&quot; but will return no matches for &quot;jennifer&quot;. 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. # Store dictionary-based CustomInfoType.
702 &quot;cloudStoragePath&quot;: { # Message representing a single file or path in Cloud Storage. # Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
703 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
704 },
705 &quot;wordList&quot;: { # Message defining a list of words or phrases to search for in the data. # List of words or phrases to search for.
706 &quot;words&quot;: [ # 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]
707 &quot;A String&quot;,
708 ],
709 },
710 },
711 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the StoredInfoType (max 256 characters).
712 &quot;largeCustomDictionary&quot;: { # 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. # StoredInfoType where findings are defined by a dictionary of phrases.
713 &quot;bigQueryField&quot;: { # Message defining a field of a BigQuery table. # Field in a BigQuery table where each cell represents a dictionary phrase.
714 &quot;field&quot;: { # General identifier of a data field in a storage service. # Designated field in the BigQuery table.
715 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
716 },
717 &quot;table&quot;: { # 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 `..`. # Source table of the field.
718 &quot;datasetId&quot;: &quot;A String&quot;, # Dataset ID of the table.
719 &quot;projectId&quot;: &quot;A String&quot;, # The Google Cloud project ID of the project containing the table. If omitted, project ID is inferred from the API call.
720 &quot;tableId&quot;: &quot;A String&quot;, # Name of the table.
721 },
722 },
723 &quot;cloudStorageFileSet&quot;: { # Message representing a set of files in Cloud Storage. # Set of files containing newline-delimited lists of dictionary phrases.
724 &quot;url&quot;: &quot;A String&quot;, # The url, in the format `gs:///`. Trailing wildcard in the path is allowed.
725 },
726 &quot;outputPath&quot;: { # Message representing a single file or path in Cloud Storage. # 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.
727 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
728 },
729 },
730 &quot;regex&quot;: { # Message defining a custom regular expression. # Store regular expression-based StoredInfoType.
731 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
732 42,
733 ],
734 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
735 },
736 },
737 &quot;createTime&quot;: &quot;A String&quot;, # Create timestamp of the version. Read-only, determined by the system when the version is created.
738 &quot;errors&quot;: [ # 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&#x27;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.
739 { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
740 &quot;details&quot;: { # 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). # Detailed error codes and messages.
741 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
742 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
743 {
744 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
745 },
746 ],
747 &quot;message&quot;: &quot;A String&quot;, # 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.
748 },
749 &quot;extraInfo&quot;: &quot;A String&quot;, # Additional information about the error.
750 &quot;timestamps&quot;: [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
751 &quot;A String&quot;,
752 ],
753 },
754 ],
755 &quot;state&quot;: &quot;A String&quot;, # Stored info type version state. Read-only, updated by the system during dictionary creation.
756 &quot;stats&quot;: { # Statistics for a StoredInfoType. # Statistics about this storedInfoType version.
757 &quot;largeCustomDictionary&quot;: { # Summary statistics of a custom dictionary. # StoredInfoType where findings are defined by a dictionary of phrases.
758 &quot;approxNumPhrases&quot;: &quot;A String&quot;, # Approximate number of distinct phrases in the dictionary.
759 },
760 },
761 },
762 &quot;name&quot;: &quot;A String&quot;, # Resource name.
763 &quot;pendingVersions&quot;: [ # Pending versions of the stored info type. Empty if no versions are pending.
764 { # Version of a StoredInfoType, including the configuration used to build it, create timestamp, and current state.
765 &quot;config&quot;: { # 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. # StoredInfoType configuration.
766 &quot;description&quot;: &quot;A String&quot;, # Description of the StoredInfoType (max 256 characters).
767 &quot;dictionary&quot;: { # 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 &quot;Sam Johnson&quot; will match all three phrases &quot;sam johnson&quot;, &quot;Sam, Johnson&quot;, and &quot;Sam (Johnson)&quot;. 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 &quot;jen&quot; will match the first three letters of the text &quot;jen123&quot; but will return no matches for &quot;jennifer&quot;. 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. # Store dictionary-based CustomInfoType.
768 &quot;cloudStoragePath&quot;: { # Message representing a single file or path in Cloud Storage. # Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
769 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
770 },
771 &quot;wordList&quot;: { # Message defining a list of words or phrases to search for in the data. # List of words or phrases to search for.
772 &quot;words&quot;: [ # 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]
773 &quot;A String&quot;,
774 ],
775 },
776 },
777 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the StoredInfoType (max 256 characters).
778 &quot;largeCustomDictionary&quot;: { # 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. # StoredInfoType where findings are defined by a dictionary of phrases.
779 &quot;bigQueryField&quot;: { # Message defining a field of a BigQuery table. # Field in a BigQuery table where each cell represents a dictionary phrase.
780 &quot;field&quot;: { # General identifier of a data field in a storage service. # Designated field in the BigQuery table.
781 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
782 },
783 &quot;table&quot;: { # 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 `..`. # Source table of the field.
784 &quot;datasetId&quot;: &quot;A String&quot;, # Dataset ID of the table.
785 &quot;projectId&quot;: &quot;A String&quot;, # The Google Cloud project ID of the project containing the table. If omitted, project ID is inferred from the API call.
786 &quot;tableId&quot;: &quot;A String&quot;, # Name of the table.
787 },
788 },
789 &quot;cloudStorageFileSet&quot;: { # Message representing a set of files in Cloud Storage. # Set of files containing newline-delimited lists of dictionary phrases.
790 &quot;url&quot;: &quot;A String&quot;, # The url, in the format `gs:///`. Trailing wildcard in the path is allowed.
791 },
792 &quot;outputPath&quot;: { # Message representing a single file or path in Cloud Storage. # 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.
793 &quot;path&quot;: &quot;A String&quot;, # A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
794 },
795 },
796 &quot;regex&quot;: { # Message defining a custom regular expression. # Store regular expression-based StoredInfoType.
797 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
798 42,
799 ],
800 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
801 },
802 },
803 &quot;createTime&quot;: &quot;A String&quot;, # Create timestamp of the version. Read-only, determined by the system when the version is created.
804 &quot;errors&quot;: [ # 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&#x27;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.
805 { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
806 &quot;details&quot;: { # 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). # Detailed error codes and messages.
807 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
808 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
809 {
810 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
811 },
812 ],
813 &quot;message&quot;: &quot;A String&quot;, # 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.
814 },
815 &quot;extraInfo&quot;: &quot;A String&quot;, # Additional information about the error.
816 &quot;timestamps&quot;: [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
817 &quot;A String&quot;,
818 ],
819 },
820 ],
821 &quot;state&quot;: &quot;A String&quot;, # Stored info type version state. Read-only, updated by the system during dictionary creation.
822 &quot;stats&quot;: { # Statistics for a StoredInfoType. # Statistics about this storedInfoType version.
823 &quot;largeCustomDictionary&quot;: { # Summary statistics of a custom dictionary. # StoredInfoType where findings are defined by a dictionary of phrases.
824 &quot;approxNumPhrases&quot;: &quot;A String&quot;, # Approximate number of distinct phrases in the dictionary.
825 },
826 },
827 },
828 ],
829 }</pre>
830 </div>
831
832 </body></html>