OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis_beta.dlp.v2beta1; | 3 library googleapis_beta.dlp.v2beta1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 24 matching lines...) Expand all Loading... |
35 } | 35 } |
36 | 36 |
37 | 37 |
38 class ContentResourceApi { | 38 class ContentResourceApi { |
39 final commons.ApiRequester _requester; | 39 final commons.ApiRequester _requester; |
40 | 40 |
41 ContentResourceApi(commons.ApiRequester client) : | 41 ContentResourceApi(commons.ApiRequester client) : |
42 _requester = client; | 42 _requester = client; |
43 | 43 |
44 /** | 44 /** |
45 * Find potentially sensitive info in a list of strings. | 45 * Finds potentially sensitive info in a list of strings. |
46 * This method has limits on input size, processing time, and output size. | 46 * This method has limits on input size, processing time, and output size. |
47 * | 47 * |
48 * [request] - The metadata request object. | 48 * [request] - The metadata request object. |
49 * | 49 * |
50 * Request parameters: | 50 * Request parameters: |
51 * | 51 * |
52 * Completes with a [InspectContentResponse]. | 52 * Completes with a [GooglePrivacyDlpV2beta1InspectContentResponse]. |
53 * | 53 * |
54 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 54 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
55 * error. | 55 * error. |
56 * | 56 * |
57 * If the used [http.Client] completes with an error when making a REST call, | 57 * If the used [http.Client] completes with an error when making a REST call, |
58 * this method will complete with the same error. | 58 * this method will complete with the same error. |
59 */ | 59 */ |
60 async.Future<InspectContentResponse> inspect(InspectContentRequest request) { | 60 async.Future<GooglePrivacyDlpV2beta1InspectContentResponse> inspect(GooglePriv
acyDlpV2beta1InspectContentRequest request) { |
61 var _url = null; | 61 var _url = null; |
62 var _queryParams = new core.Map(); | 62 var _queryParams = new core.Map(); |
63 var _uploadMedia = null; | 63 var _uploadMedia = null; |
64 var _uploadOptions = null; | 64 var _uploadOptions = null; |
65 var _downloadOptions = commons.DownloadOptions.Metadata; | 65 var _downloadOptions = commons.DownloadOptions.Metadata; |
66 var _body = null; | 66 var _body = null; |
67 | 67 |
68 if (request != null) { | 68 if (request != null) { |
69 _body = convert.JSON.encode((request).toJson()); | 69 _body = convert.JSON.encode((request).toJson()); |
70 } | 70 } |
71 | 71 |
72 _url = 'v2beta1/content:inspect'; | 72 _url = 'v2beta1/content:inspect'; |
73 | 73 |
74 var _response = _requester.request(_url, | 74 var _response = _requester.request(_url, |
75 "POST", | 75 "POST", |
76 body: _body, | 76 body: _body, |
77 queryParams: _queryParams, | 77 queryParams: _queryParams, |
78 uploadOptions: _uploadOptions, | 78 uploadOptions: _uploadOptions, |
79 uploadMedia: _uploadMedia, | 79 uploadMedia: _uploadMedia, |
80 downloadOptions: _downloadOptions); | 80 downloadOptions: _downloadOptions); |
81 return _response.then((data) => new InspectContentResponse.fromJson(data)); | 81 return _response.then((data) => new GooglePrivacyDlpV2beta1InspectContentRes
ponse.fromJson(data)); |
82 } | 82 } |
83 | 83 |
84 /** | 84 /** |
85 * Redact potentially sensitive info from a list of strings. | 85 * Redacts potentially sensitive info from a list of strings. |
86 * This method has limits on input size, processing time, and output size. | 86 * This method has limits on input size, processing time, and output size. |
87 * | 87 * |
88 * [request] - The metadata request object. | 88 * [request] - The metadata request object. |
89 * | 89 * |
90 * Request parameters: | 90 * Request parameters: |
91 * | 91 * |
92 * Completes with a [RedactContentResponse]. | 92 * Completes with a [GooglePrivacyDlpV2beta1RedactContentResponse]. |
93 * | 93 * |
94 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 94 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
95 * error. | 95 * error. |
96 * | 96 * |
97 * If the used [http.Client] completes with an error when making a REST call, | 97 * If the used [http.Client] completes with an error when making a REST call, |
98 * this method will complete with the same error. | 98 * this method will complete with the same error. |
99 */ | 99 */ |
100 async.Future<RedactContentResponse> redact(RedactContentRequest request) { | 100 async.Future<GooglePrivacyDlpV2beta1RedactContentResponse> redact(GooglePrivac
yDlpV2beta1RedactContentRequest request) { |
101 var _url = null; | 101 var _url = null; |
102 var _queryParams = new core.Map(); | 102 var _queryParams = new core.Map(); |
103 var _uploadMedia = null; | 103 var _uploadMedia = null; |
104 var _uploadOptions = null; | 104 var _uploadOptions = null; |
105 var _downloadOptions = commons.DownloadOptions.Metadata; | 105 var _downloadOptions = commons.DownloadOptions.Metadata; |
106 var _body = null; | 106 var _body = null; |
107 | 107 |
108 if (request != null) { | 108 if (request != null) { |
109 _body = convert.JSON.encode((request).toJson()); | 109 _body = convert.JSON.encode((request).toJson()); |
110 } | 110 } |
111 | 111 |
112 _url = 'v2beta1/content:redact'; | 112 _url = 'v2beta1/content:redact'; |
113 | 113 |
114 var _response = _requester.request(_url, | 114 var _response = _requester.request(_url, |
115 "POST", | 115 "POST", |
116 body: _body, | 116 body: _body, |
117 queryParams: _queryParams, | 117 queryParams: _queryParams, |
118 uploadOptions: _uploadOptions, | 118 uploadOptions: _uploadOptions, |
119 uploadMedia: _uploadMedia, | 119 uploadMedia: _uploadMedia, |
120 downloadOptions: _downloadOptions); | 120 downloadOptions: _downloadOptions); |
121 return _response.then((data) => new RedactContentResponse.fromJson(data)); | 121 return _response.then((data) => new GooglePrivacyDlpV2beta1RedactContentResp
onse.fromJson(data)); |
122 } | 122 } |
123 | 123 |
124 } | 124 } |
125 | 125 |
126 | 126 |
127 class InspectResourceApi { | 127 class InspectResourceApi { |
128 final commons.ApiRequester _requester; | 128 final commons.ApiRequester _requester; |
129 | 129 |
130 InspectOperationsResourceApi get operations => new InspectOperationsResourceAp
i(_requester); | 130 InspectOperationsResourceApi get operations => new InspectOperationsResourceAp
i(_requester); |
131 InspectResultsResourceApi get results => new InspectResultsResourceApi(_reques
ter); | 131 InspectResultsResourceApi get results => new InspectResultsResourceApi(_reques
ter); |
(...skipping 13 matching lines...) Expand all Loading... |
145 * Cancels an operation. Use the get method to check whether the cancellation | 145 * Cancels an operation. Use the get method to check whether the cancellation |
146 * succeeded or whether the operation completed despite cancellation. | 146 * succeeded or whether the operation completed despite cancellation. |
147 * | 147 * |
148 * [request] - The metadata request object. | 148 * [request] - The metadata request object. |
149 * | 149 * |
150 * Request parameters: | 150 * Request parameters: |
151 * | 151 * |
152 * [name] - The name of the operation resource to be cancelled. | 152 * [name] - The name of the operation resource to be cancelled. |
153 * Value must have pattern "^inspect/operations/[^/]+$". | 153 * Value must have pattern "^inspect/operations/[^/]+$". |
154 * | 154 * |
155 * Completes with a [Empty]. | 155 * Completes with a [GoogleProtobufEmpty]. |
156 * | 156 * |
157 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 157 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
158 * error. | 158 * error. |
159 * | 159 * |
160 * If the used [http.Client] completes with an error when making a REST call, | 160 * If the used [http.Client] completes with an error when making a REST call, |
161 * this method will complete with the same error. | 161 * this method will complete with the same error. |
162 */ | 162 */ |
163 async.Future<Empty> cancel(CancelOperationRequest request, core.String name) { | 163 async.Future<GoogleProtobufEmpty> cancel(GoogleLongrunningCancelOperationReque
st request, core.String name) { |
164 var _url = null; | 164 var _url = null; |
165 var _queryParams = new core.Map(); | 165 var _queryParams = new core.Map(); |
166 var _uploadMedia = null; | 166 var _uploadMedia = null; |
167 var _uploadOptions = null; | 167 var _uploadOptions = null; |
168 var _downloadOptions = commons.DownloadOptions.Metadata; | 168 var _downloadOptions = commons.DownloadOptions.Metadata; |
169 var _body = null; | 169 var _body = null; |
170 | 170 |
171 if (request != null) { | 171 if (request != null) { |
172 _body = convert.JSON.encode((request).toJson()); | 172 _body = convert.JSON.encode((request).toJson()); |
173 } | 173 } |
174 if (name == null) { | 174 if (name == null) { |
175 throw new core.ArgumentError("Parameter name is required."); | 175 throw new core.ArgumentError("Parameter name is required."); |
176 } | 176 } |
177 | 177 |
178 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cance
l'; | 178 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cance
l'; |
179 | 179 |
180 var _response = _requester.request(_url, | 180 var _response = _requester.request(_url, |
181 "POST", | 181 "POST", |
182 body: _body, | 182 body: _body, |
183 queryParams: _queryParams, | 183 queryParams: _queryParams, |
184 uploadOptions: _uploadOptions, | 184 uploadOptions: _uploadOptions, |
185 uploadMedia: _uploadMedia, | 185 uploadMedia: _uploadMedia, |
186 downloadOptions: _downloadOptions); | 186 downloadOptions: _downloadOptions); |
187 return _response.then((data) => new Empty.fromJson(data)); | 187 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data)); |
188 } | 188 } |
189 | 189 |
190 /** | 190 /** |
191 * Schedule a job scanning content in a Google Cloud Platform data repository. | 191 * Schedules a job scanning content in a Google Cloud Platform data |
| 192 * repository. |
192 * | 193 * |
193 * [request] - The metadata request object. | 194 * [request] - The metadata request object. |
194 * | 195 * |
195 * Request parameters: | 196 * Request parameters: |
196 * | 197 * |
197 * Completes with a [Operation]. | 198 * Completes with a [GoogleLongrunningOperation]. |
198 * | 199 * |
199 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 200 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
200 * error. | 201 * error. |
201 * | 202 * |
202 * If the used [http.Client] completes with an error when making a REST call, | 203 * If the used [http.Client] completes with an error when making a REST call, |
203 * this method will complete with the same error. | 204 * this method will complete with the same error. |
204 */ | 205 */ |
205 async.Future<Operation> create(CreateInspectOperationRequest request) { | 206 async.Future<GoogleLongrunningOperation> create(GooglePrivacyDlpV2beta1CreateI
nspectOperationRequest request) { |
206 var _url = null; | 207 var _url = null; |
207 var _queryParams = new core.Map(); | 208 var _queryParams = new core.Map(); |
208 var _uploadMedia = null; | 209 var _uploadMedia = null; |
209 var _uploadOptions = null; | 210 var _uploadOptions = null; |
210 var _downloadOptions = commons.DownloadOptions.Metadata; | 211 var _downloadOptions = commons.DownloadOptions.Metadata; |
211 var _body = null; | 212 var _body = null; |
212 | 213 |
213 if (request != null) { | 214 if (request != null) { |
214 _body = convert.JSON.encode((request).toJson()); | 215 _body = convert.JSON.encode((request).toJson()); |
215 } | 216 } |
216 | 217 |
217 _url = 'v2beta1/inspect/operations'; | 218 _url = 'v2beta1/inspect/operations'; |
218 | 219 |
219 var _response = _requester.request(_url, | 220 var _response = _requester.request(_url, |
220 "POST", | 221 "POST", |
221 body: _body, | 222 body: _body, |
222 queryParams: _queryParams, | 223 queryParams: _queryParams, |
223 uploadOptions: _uploadOptions, | 224 uploadOptions: _uploadOptions, |
224 uploadMedia: _uploadMedia, | 225 uploadMedia: _uploadMedia, |
225 downloadOptions: _downloadOptions); | 226 downloadOptions: _downloadOptions); |
226 return _response.then((data) => new Operation.fromJson(data)); | 227 return _response.then((data) => new GoogleLongrunningOperation.fromJson(data
)); |
227 } | 228 } |
228 | 229 |
229 /** | 230 /** |
230 * This method is not supported and the server returns `UNIMPLEMENTED`. | 231 * This method is not supported and the server returns `UNIMPLEMENTED`. |
231 * | 232 * |
232 * Request parameters: | 233 * Request parameters: |
233 * | 234 * |
234 * [name] - The name of the operation resource to be deleted. | 235 * [name] - The name of the operation resource to be deleted. |
235 * Value must have pattern "^inspect/operations/[^/]+$". | 236 * Value must have pattern "^inspect/operations/[^/]+$". |
236 * | 237 * |
237 * Completes with a [Empty]. | 238 * Completes with a [GoogleProtobufEmpty]. |
238 * | 239 * |
239 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 240 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
240 * error. | 241 * error. |
241 * | 242 * |
242 * If the used [http.Client] completes with an error when making a REST call, | 243 * If the used [http.Client] completes with an error when making a REST call, |
243 * this method will complete with the same error. | 244 * this method will complete with the same error. |
244 */ | 245 */ |
245 async.Future<Empty> delete(core.String name) { | 246 async.Future<GoogleProtobufEmpty> delete(core.String name) { |
246 var _url = null; | 247 var _url = null; |
247 var _queryParams = new core.Map(); | 248 var _queryParams = new core.Map(); |
248 var _uploadMedia = null; | 249 var _uploadMedia = null; |
249 var _uploadOptions = null; | 250 var _uploadOptions = null; |
250 var _downloadOptions = commons.DownloadOptions.Metadata; | 251 var _downloadOptions = commons.DownloadOptions.Metadata; |
251 var _body = null; | 252 var _body = null; |
252 | 253 |
253 if (name == null) { | 254 if (name == null) { |
254 throw new core.ArgumentError("Parameter name is required."); | 255 throw new core.ArgumentError("Parameter name is required."); |
255 } | 256 } |
256 | 257 |
257 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); | 258 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); |
258 | 259 |
259 var _response = _requester.request(_url, | 260 var _response = _requester.request(_url, |
260 "DELETE", | 261 "DELETE", |
261 body: _body, | 262 body: _body, |
262 queryParams: _queryParams, | 263 queryParams: _queryParams, |
263 uploadOptions: _uploadOptions, | 264 uploadOptions: _uploadOptions, |
264 uploadMedia: _uploadMedia, | 265 uploadMedia: _uploadMedia, |
265 downloadOptions: _downloadOptions); | 266 downloadOptions: _downloadOptions); |
266 return _response.then((data) => new Empty.fromJson(data)); | 267 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data)); |
267 } | 268 } |
268 | 269 |
269 /** | 270 /** |
270 * Gets the latest state of a long-running operation. Clients can use this | 271 * Gets the latest state of a long-running operation. Clients can use this |
271 * method to poll the operation result at intervals as recommended by the API | 272 * method to poll the operation result at intervals as recommended by the API |
272 * service. | 273 * service. |
273 * | 274 * |
274 * Request parameters: | 275 * Request parameters: |
275 * | 276 * |
276 * [name] - The name of the operation resource. | 277 * [name] - The name of the operation resource. |
277 * Value must have pattern "^inspect/operations/[^/]+$". | 278 * Value must have pattern "^inspect/operations/[^/]+$". |
278 * | 279 * |
279 * Completes with a [Operation]. | 280 * Completes with a [GoogleLongrunningOperation]. |
280 * | 281 * |
281 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 282 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
282 * error. | 283 * error. |
283 * | 284 * |
284 * If the used [http.Client] completes with an error when making a REST call, | 285 * If the used [http.Client] completes with an error when making a REST call, |
285 * this method will complete with the same error. | 286 * this method will complete with the same error. |
286 */ | 287 */ |
287 async.Future<Operation> get(core.String name) { | 288 async.Future<GoogleLongrunningOperation> get(core.String name) { |
288 var _url = null; | 289 var _url = null; |
289 var _queryParams = new core.Map(); | 290 var _queryParams = new core.Map(); |
290 var _uploadMedia = null; | 291 var _uploadMedia = null; |
291 var _uploadOptions = null; | 292 var _uploadOptions = null; |
292 var _downloadOptions = commons.DownloadOptions.Metadata; | 293 var _downloadOptions = commons.DownloadOptions.Metadata; |
293 var _body = null; | 294 var _body = null; |
294 | 295 |
295 if (name == null) { | 296 if (name == null) { |
296 throw new core.ArgumentError("Parameter name is required."); | 297 throw new core.ArgumentError("Parameter name is required."); |
297 } | 298 } |
298 | 299 |
299 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); | 300 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); |
300 | 301 |
301 var _response = _requester.request(_url, | 302 var _response = _requester.request(_url, |
302 "GET", | 303 "GET", |
303 body: _body, | 304 body: _body, |
304 queryParams: _queryParams, | 305 queryParams: _queryParams, |
305 uploadOptions: _uploadOptions, | 306 uploadOptions: _uploadOptions, |
306 uploadMedia: _uploadMedia, | 307 uploadMedia: _uploadMedia, |
307 downloadOptions: _downloadOptions); | 308 downloadOptions: _downloadOptions); |
308 return _response.then((data) => new Operation.fromJson(data)); | 309 return _response.then((data) => new GoogleLongrunningOperation.fromJson(data
)); |
309 } | 310 } |
310 | 311 |
311 /** | 312 /** |
312 * Lists operations that match the specified filter in the request. If the | 313 * Fetch the list of long running operations. |
313 * server doesn't support this method, it returns `UNIMPLEMENTED`. | |
314 * | |
315 * NOTE: the `name` binding allows API services to override the binding | |
316 * to use different resource name schemes, such as `users / * /operations`. To | |
317 * override the binding, API services can add a binding such as | |
318 * `"/v1/{name=users / * }/operations"` to their service configuration. | |
319 * For backwards compatibility, the default name includes the operations | |
320 * collection id, however overriding users must ensure the name binding | |
321 * is the parent resource, without the operations collection id. | |
322 * | 314 * |
323 * Request parameters: | 315 * Request parameters: |
324 * | 316 * |
325 * [name] - The name of the operation's parent resource. | 317 * [name] - The name of the operation's parent resource. |
326 * Value must have pattern "^inspect/operations$". | 318 * Value must have pattern "^inspect/operations$". |
327 * | 319 * |
| 320 * [filter] - This parameter supports filtering by done, ie done=true or |
| 321 * done=false. |
| 322 * |
| 323 * [pageToken] - The standard list page token. |
| 324 * |
328 * [pageSize] - The list page size. The max allowed value is 256 and default | 325 * [pageSize] - The list page size. The max allowed value is 256 and default |
329 * is 100. | 326 * is 100. |
330 * | 327 * |
331 * [filter] - This parameter supports filtering by done, ie done=true or | 328 * Completes with a [GoogleLongrunningListOperationsResponse]. |
332 * done=false. | |
333 * | |
334 * [pageToken] - The list page token. | |
335 * | |
336 * Completes with a [ListOperationsResponse]. | |
337 * | 329 * |
338 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 330 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
339 * error. | 331 * error. |
340 * | 332 * |
341 * If the used [http.Client] completes with an error when making a REST call, | 333 * If the used [http.Client] completes with an error when making a REST call, |
342 * this method will complete with the same error. | 334 * this method will complete with the same error. |
343 */ | 335 */ |
344 async.Future<ListOperationsResponse> list(core.String name, {core.int pageSize
, core.String filter, core.String pageToken}) { | 336 async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, {
core.String filter, core.String pageToken, core.int pageSize}) { |
345 var _url = null; | 337 var _url = null; |
346 var _queryParams = new core.Map(); | 338 var _queryParams = new core.Map(); |
347 var _uploadMedia = null; | 339 var _uploadMedia = null; |
348 var _uploadOptions = null; | 340 var _uploadOptions = null; |
349 var _downloadOptions = commons.DownloadOptions.Metadata; | 341 var _downloadOptions = commons.DownloadOptions.Metadata; |
350 var _body = null; | 342 var _body = null; |
351 | 343 |
352 if (name == null) { | 344 if (name == null) { |
353 throw new core.ArgumentError("Parameter name is required."); | 345 throw new core.ArgumentError("Parameter name is required."); |
354 } | 346 } |
355 if (pageSize != null) { | |
356 _queryParams["pageSize"] = ["${pageSize}"]; | |
357 } | |
358 if (filter != null) { | 347 if (filter != null) { |
359 _queryParams["filter"] = [filter]; | 348 _queryParams["filter"] = [filter]; |
360 } | 349 } |
361 if (pageToken != null) { | 350 if (pageToken != null) { |
362 _queryParams["pageToken"] = [pageToken]; | 351 _queryParams["pageToken"] = [pageToken]; |
363 } | 352 } |
| 353 if (pageSize != null) { |
| 354 _queryParams["pageSize"] = ["${pageSize}"]; |
| 355 } |
364 | 356 |
365 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); | 357 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); |
366 | 358 |
367 var _response = _requester.request(_url, | 359 var _response = _requester.request(_url, |
368 "GET", | 360 "GET", |
369 body: _body, | 361 body: _body, |
370 queryParams: _queryParams, | 362 queryParams: _queryParams, |
371 uploadOptions: _uploadOptions, | 363 uploadOptions: _uploadOptions, |
372 uploadMedia: _uploadMedia, | 364 uploadMedia: _uploadMedia, |
373 downloadOptions: _downloadOptions); | 365 downloadOptions: _downloadOptions); |
374 return _response.then((data) => new ListOperationsResponse.fromJson(data)); | 366 return _response.then((data) => new GoogleLongrunningListOperationsResponse.
fromJson(data)); |
375 } | 367 } |
376 | 368 |
377 } | 369 } |
378 | 370 |
379 | 371 |
380 class InspectResultsResourceApi { | 372 class InspectResultsResourceApi { |
381 final commons.ApiRequester _requester; | 373 final commons.ApiRequester _requester; |
382 | 374 |
383 InspectResultsFindingsResourceApi get findings => new InspectResultsFindingsRe
sourceApi(_requester); | 375 InspectResultsFindingsResourceApi get findings => new InspectResultsFindingsRe
sourceApi(_requester); |
384 | 376 |
(...skipping 11 matching lines...) Expand all Loading... |
396 /** | 388 /** |
397 * Returns list of results for given inspect operation result set id. | 389 * Returns list of results for given inspect operation result set id. |
398 * | 390 * |
399 * Request parameters: | 391 * Request parameters: |
400 * | 392 * |
401 * [name] - Identifier of the results set returned as metadata of | 393 * [name] - Identifier of the results set returned as metadata of |
402 * the longrunning operation created by a call to CreateInspectOperation. | 394 * the longrunning operation created by a call to CreateInspectOperation. |
403 * Should be in the format of `inspect/results/{id}. | 395 * Should be in the format of `inspect/results/{id}. |
404 * Value must have pattern "^inspect/results/[^/]+$". | 396 * Value must have pattern "^inspect/results/[^/]+$". |
405 * | 397 * |
406 * [pageSize] - Maximum number of results to return. | 398 * [filter] - Restricts findings to items that match. Supports info_type and |
407 * If 0, the implementation select a reasonable value. | |
408 * | |
409 * [filter] - Restrict findings to items that match. Supports info_type and | |
410 * likelihood. | 399 * likelihood. |
411 * <p>Examples:<br/> | 400 * <p>Examples:<br/> |
412 * <li>info_type=EMAIL_ADDRESS | 401 * <li>info_type=EMAIL_ADDRESS |
413 * <li>info_type=PHONE_NUMBER,EMAIL_ADDRESS | 402 * <li>info_type=PHONE_NUMBER,EMAIL_ADDRESS |
414 * <li>likelihood=VERY_LIKELY | 403 * <li>likelihood=VERY_LIKELY |
415 * <li>likelihood=VERY_LIKELY,LIKELY | 404 * <li>likelihood=VERY_LIKELY,LIKELY |
416 * <li>info_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY,LIKELY | 405 * <li>info_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY,LIKELY |
417 * | 406 * |
418 * [pageToken] - The value returned by the last `ListInspectFindingsResponse`; | 407 * [pageToken] - The value returned by the last `ListInspectFindingsResponse`; |
419 * indicates | 408 * indicates |
420 * that this is a continuation of a prior `ListInspectFindings` call, and that | 409 * that this is a continuation of a prior `ListInspectFindings` call, and that |
421 * the system should return the next page of data. | 410 * the system should return the next page of data. |
422 * | 411 * |
423 * Completes with a [ListInspectFindingsResponse]. | 412 * [pageSize] - Maximum number of results to return. |
| 413 * If 0, the implementation selects a reasonable value. |
| 414 * |
| 415 * Completes with a [GooglePrivacyDlpV2beta1ListInspectFindingsResponse]. |
424 * | 416 * |
425 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 417 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
426 * error. | 418 * error. |
427 * | 419 * |
428 * If the used [http.Client] completes with an error when making a REST call, | 420 * If the used [http.Client] completes with an error when making a REST call, |
429 * this method will complete with the same error. | 421 * this method will complete with the same error. |
430 */ | 422 */ |
431 async.Future<ListInspectFindingsResponse> list(core.String name, {core.int pag
eSize, core.String filter, core.String pageToken}) { | 423 async.Future<GooglePrivacyDlpV2beta1ListInspectFindingsResponse> list(core.Str
ing name, {core.String filter, core.String pageToken, core.int pageSize}) { |
432 var _url = null; | 424 var _url = null; |
433 var _queryParams = new core.Map(); | 425 var _queryParams = new core.Map(); |
434 var _uploadMedia = null; | 426 var _uploadMedia = null; |
435 var _uploadOptions = null; | 427 var _uploadOptions = null; |
436 var _downloadOptions = commons.DownloadOptions.Metadata; | 428 var _downloadOptions = commons.DownloadOptions.Metadata; |
437 var _body = null; | 429 var _body = null; |
438 | 430 |
439 if (name == null) { | 431 if (name == null) { |
440 throw new core.ArgumentError("Parameter name is required."); | 432 throw new core.ArgumentError("Parameter name is required."); |
441 } | 433 } |
442 if (pageSize != null) { | |
443 _queryParams["pageSize"] = ["${pageSize}"]; | |
444 } | |
445 if (filter != null) { | 434 if (filter != null) { |
446 _queryParams["filter"] = [filter]; | 435 _queryParams["filter"] = [filter]; |
447 } | 436 } |
448 if (pageToken != null) { | 437 if (pageToken != null) { |
449 _queryParams["pageToken"] = [pageToken]; | 438 _queryParams["pageToken"] = [pageToken]; |
450 } | 439 } |
| 440 if (pageSize != null) { |
| 441 _queryParams["pageSize"] = ["${pageSize}"]; |
| 442 } |
451 | 443 |
452 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name') + '/findi
ngs'; | 444 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name') + '/findi
ngs'; |
453 | 445 |
454 var _response = _requester.request(_url, | 446 var _response = _requester.request(_url, |
455 "GET", | 447 "GET", |
456 body: _body, | 448 body: _body, |
457 queryParams: _queryParams, | 449 queryParams: _queryParams, |
458 uploadOptions: _uploadOptions, | 450 uploadOptions: _uploadOptions, |
459 uploadMedia: _uploadMedia, | 451 uploadMedia: _uploadMedia, |
460 downloadOptions: _downloadOptions); | 452 downloadOptions: _downloadOptions); |
461 return _response.then((data) => new ListInspectFindingsResponse.fromJson(dat
a)); | 453 return _response.then((data) => new GooglePrivacyDlpV2beta1ListInspectFindin
gsResponse.fromJson(data)); |
462 } | 454 } |
463 | 455 |
464 } | 456 } |
465 | 457 |
466 | 458 |
467 class RootCategoriesResourceApi { | 459 class RootCategoriesResourceApi { |
468 final commons.ApiRequester _requester; | 460 final commons.ApiRequester _requester; |
469 | 461 |
470 RootCategoriesInfoTypesResourceApi get infoTypes => new RootCategoriesInfoType
sResourceApi(_requester); | 462 RootCategoriesInfoTypesResourceApi get infoTypes => new RootCategoriesInfoType
sResourceApi(_requester); |
471 | 463 |
472 RootCategoriesResourceApi(commons.ApiRequester client) : | 464 RootCategoriesResourceApi(commons.ApiRequester client) : |
473 _requester = client; | 465 _requester = client; |
474 | 466 |
475 /** | 467 /** |
476 * Returns the list of root categories of sensitive information. | 468 * Returns the list of root categories of sensitive information. |
477 * | 469 * |
478 * Request parameters: | 470 * Request parameters: |
479 * | 471 * |
480 * [languageCode] - Optional language code for localized friendly category | 472 * [languageCode] - Optional language code for localized friendly category |
481 * names. | 473 * names. |
482 * If omitted or if localized strings are not available, | 474 * If omitted or if localized strings are not available, |
483 * en-US strings will be returned. | 475 * en-US strings will be returned. |
484 * | 476 * |
485 * Completes with a [ListRootCategoriesResponse]. | 477 * Completes with a [GooglePrivacyDlpV2beta1ListRootCategoriesResponse]. |
486 * | 478 * |
487 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 479 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
488 * error. | 480 * error. |
489 * | 481 * |
490 * If the used [http.Client] completes with an error when making a REST call, | 482 * If the used [http.Client] completes with an error when making a REST call, |
491 * this method will complete with the same error. | 483 * this method will complete with the same error. |
492 */ | 484 */ |
493 async.Future<ListRootCategoriesResponse> list({core.String languageCode}) { | 485 async.Future<GooglePrivacyDlpV2beta1ListRootCategoriesResponse> list({core.Str
ing languageCode}) { |
494 var _url = null; | 486 var _url = null; |
495 var _queryParams = new core.Map(); | 487 var _queryParams = new core.Map(); |
496 var _uploadMedia = null; | 488 var _uploadMedia = null; |
497 var _uploadOptions = null; | 489 var _uploadOptions = null; |
498 var _downloadOptions = commons.DownloadOptions.Metadata; | 490 var _downloadOptions = commons.DownloadOptions.Metadata; |
499 var _body = null; | 491 var _body = null; |
500 | 492 |
501 if (languageCode != null) { | 493 if (languageCode != null) { |
502 _queryParams["languageCode"] = [languageCode]; | 494 _queryParams["languageCode"] = [languageCode]; |
503 } | 495 } |
504 | 496 |
505 _url = 'v2beta1/rootCategories'; | 497 _url = 'v2beta1/rootCategories'; |
506 | 498 |
507 var _response = _requester.request(_url, | 499 var _response = _requester.request(_url, |
508 "GET", | 500 "GET", |
509 body: _body, | 501 body: _body, |
510 queryParams: _queryParams, | 502 queryParams: _queryParams, |
511 uploadOptions: _uploadOptions, | 503 uploadOptions: _uploadOptions, |
512 uploadMedia: _uploadMedia, | 504 uploadMedia: _uploadMedia, |
513 downloadOptions: _downloadOptions); | 505 downloadOptions: _downloadOptions); |
514 return _response.then((data) => new ListRootCategoriesResponse.fromJson(data
)); | 506 return _response.then((data) => new GooglePrivacyDlpV2beta1ListRootCategorie
sResponse.fromJson(data)); |
515 } | 507 } |
516 | 508 |
517 } | 509 } |
518 | 510 |
519 | 511 |
520 class RootCategoriesInfoTypesResourceApi { | 512 class RootCategoriesInfoTypesResourceApi { |
521 final commons.ApiRequester _requester; | 513 final commons.ApiRequester _requester; |
522 | 514 |
523 RootCategoriesInfoTypesResourceApi(commons.ApiRequester client) : | 515 RootCategoriesInfoTypesResourceApi(commons.ApiRequester client) : |
524 _requester = client; | 516 _requester = client; |
525 | 517 |
526 /** | 518 /** |
527 * Returns sensitive information types for given category. | 519 * Returns sensitive information types for given category. |
528 * | 520 * |
529 * Request parameters: | 521 * Request parameters: |
530 * | 522 * |
531 * [category] - Category name as returned by ListRootCategories. | 523 * [category] - Category name as returned by ListRootCategories. |
532 * Value must have pattern "^[^/]+$". | 524 * Value must have pattern "^[^/]+$". |
533 * | 525 * |
534 * [languageCode] - Optional BCP-47 language code for localized info type | 526 * [languageCode] - Optional BCP-47 language code for localized info type |
535 * friendly | 527 * friendly |
536 * names. If omitted, or if localized strings are not available, | 528 * names. If omitted, or if localized strings are not available, |
537 * en-US strings will be returned. | 529 * en-US strings will be returned. |
538 * | 530 * |
539 * Completes with a [ListInfoTypesResponse]. | 531 * Completes with a [GooglePrivacyDlpV2beta1ListInfoTypesResponse]. |
540 * | 532 * |
541 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 533 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
542 * error. | 534 * error. |
543 * | 535 * |
544 * If the used [http.Client] completes with an error when making a REST call, | 536 * If the used [http.Client] completes with an error when making a REST call, |
545 * this method will complete with the same error. | 537 * this method will complete with the same error. |
546 */ | 538 */ |
547 async.Future<ListInfoTypesResponse> list(core.String category, {core.String la
nguageCode}) { | 539 async.Future<GooglePrivacyDlpV2beta1ListInfoTypesResponse> list(core.String ca
tegory, {core.String languageCode}) { |
548 var _url = null; | 540 var _url = null; |
549 var _queryParams = new core.Map(); | 541 var _queryParams = new core.Map(); |
550 var _uploadMedia = null; | 542 var _uploadMedia = null; |
551 var _uploadOptions = null; | 543 var _uploadOptions = null; |
552 var _downloadOptions = commons.DownloadOptions.Metadata; | 544 var _downloadOptions = commons.DownloadOptions.Metadata; |
553 var _body = null; | 545 var _body = null; |
554 | 546 |
555 if (category == null) { | 547 if (category == null) { |
556 throw new core.ArgumentError("Parameter category is required."); | 548 throw new core.ArgumentError("Parameter category is required."); |
557 } | 549 } |
558 if (languageCode != null) { | 550 if (languageCode != null) { |
559 _queryParams["languageCode"] = [languageCode]; | 551 _queryParams["languageCode"] = [languageCode]; |
560 } | 552 } |
561 | 553 |
562 _url = 'v2beta1/rootCategories/' + commons.Escaper.ecapeVariableReserved('$c
ategory') + '/infoTypes'; | 554 _url = 'v2beta1/rootCategories/' + commons.Escaper.ecapeVariableReserved('$c
ategory') + '/infoTypes'; |
563 | 555 |
564 var _response = _requester.request(_url, | 556 var _response = _requester.request(_url, |
565 "GET", | 557 "GET", |
566 body: _body, | 558 body: _body, |
567 queryParams: _queryParams, | 559 queryParams: _queryParams, |
568 uploadOptions: _uploadOptions, | 560 uploadOptions: _uploadOptions, |
569 uploadMedia: _uploadMedia, | 561 uploadMedia: _uploadMedia, |
570 downloadOptions: _downloadOptions); | 562 downloadOptions: _downloadOptions); |
571 return _response.then((data) => new ListInfoTypesResponse.fromJson(data)); | 563 return _response.then((data) => new GooglePrivacyDlpV2beta1ListInfoTypesResp
onse.fromJson(data)); |
572 } | 564 } |
573 | 565 |
574 } | 566 } |
575 | 567 |
576 | 568 |
577 | 569 |
578 /** The request message for Operations.CancelOperation. */ | 570 /** The request message for Operations.CancelOperation. */ |
579 class CancelOperationRequest { | 571 class GoogleLongrunningCancelOperationRequest { |
580 | 572 |
581 CancelOperationRequest(); | 573 GoogleLongrunningCancelOperationRequest(); |
582 | 574 |
583 CancelOperationRequest.fromJson(core.Map _json) { | 575 GoogleLongrunningCancelOperationRequest.fromJson(core.Map _json) { |
584 } | 576 } |
585 | 577 |
586 core.Map<core.String, core.Object> toJson() { | 578 core.Map<core.String, core.Object> toJson() { |
587 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 579 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
588 return _json; | 580 return _json; |
589 } | 581 } |
590 } | 582 } |
591 | 583 |
| 584 /** The response message for Operations.ListOperations. */ |
| 585 class GoogleLongrunningListOperationsResponse { |
| 586 /** The standard List next-page token. */ |
| 587 core.String nextPageToken; |
| 588 /** A list of operations that matches the specified filter in the request. */ |
| 589 core.List<GoogleLongrunningOperation> operations; |
| 590 |
| 591 GoogleLongrunningListOperationsResponse(); |
| 592 |
| 593 GoogleLongrunningListOperationsResponse.fromJson(core.Map _json) { |
| 594 if (_json.containsKey("nextPageToken")) { |
| 595 nextPageToken = _json["nextPageToken"]; |
| 596 } |
| 597 if (_json.containsKey("operations")) { |
| 598 operations = _json["operations"].map((value) => new GoogleLongrunningOpera
tion.fromJson(value)).toList(); |
| 599 } |
| 600 } |
| 601 |
| 602 core.Map<core.String, core.Object> toJson() { |
| 603 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 604 if (nextPageToken != null) { |
| 605 _json["nextPageToken"] = nextPageToken; |
| 606 } |
| 607 if (operations != null) { |
| 608 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; |
| 609 } |
| 610 return _json; |
| 611 } |
| 612 } |
| 613 |
| 614 /** |
| 615 * This resource represents a long-running operation that is the result of a |
| 616 * network API call. |
| 617 */ |
| 618 class GoogleLongrunningOperation { |
| 619 /** |
| 620 * If the value is `false`, it means the operation is still in progress. |
| 621 * If true, the operation is completed, and either `error` or `response` is |
| 622 * available. |
| 623 */ |
| 624 core.bool done; |
| 625 /** The error result of the operation in case of failure or cancellation. */ |
| 626 GoogleRpcStatus error; |
| 627 /** |
| 628 * This field will contain an InspectOperationMetadata object. This will |
| 629 * always be returned with the Operation. |
| 630 * |
| 631 * The values for Object must be JSON objects. It can consist of `num`, |
| 632 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 633 */ |
| 634 core.Map<core.String, core.Object> metadata; |
| 635 /** |
| 636 * The server-assigned name, The `name` should have the format of |
| 637 * `inspect/operations/<identifier>`. |
| 638 */ |
| 639 core.String name; |
| 640 /** |
| 641 * This field will contain an InspectOperationResult object. |
| 642 * |
| 643 * The values for Object must be JSON objects. It can consist of `num`, |
| 644 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 645 */ |
| 646 core.Map<core.String, core.Object> response; |
| 647 |
| 648 GoogleLongrunningOperation(); |
| 649 |
| 650 GoogleLongrunningOperation.fromJson(core.Map _json) { |
| 651 if (_json.containsKey("done")) { |
| 652 done = _json["done"]; |
| 653 } |
| 654 if (_json.containsKey("error")) { |
| 655 error = new GoogleRpcStatus.fromJson(_json["error"]); |
| 656 } |
| 657 if (_json.containsKey("metadata")) { |
| 658 metadata = _json["metadata"]; |
| 659 } |
| 660 if (_json.containsKey("name")) { |
| 661 name = _json["name"]; |
| 662 } |
| 663 if (_json.containsKey("response")) { |
| 664 response = _json["response"]; |
| 665 } |
| 666 } |
| 667 |
| 668 core.Map<core.String, core.Object> toJson() { |
| 669 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 670 if (done != null) { |
| 671 _json["done"] = done; |
| 672 } |
| 673 if (error != null) { |
| 674 _json["error"] = (error).toJson(); |
| 675 } |
| 676 if (metadata != null) { |
| 677 _json["metadata"] = metadata; |
| 678 } |
| 679 if (name != null) { |
| 680 _json["name"] = name; |
| 681 } |
| 682 if (response != null) { |
| 683 _json["response"] = response; |
| 684 } |
| 685 return _json; |
| 686 } |
| 687 } |
| 688 |
592 /** Info Type Category description. */ | 689 /** Info Type Category description. */ |
593 class CategoryDescription { | 690 class GooglePrivacyDlpV2beta1CategoryDescription { |
594 /** Human readable form of the category name. */ | 691 /** Human readable form of the category name. */ |
595 core.String displayName; | 692 core.String displayName; |
596 /** Internal name of the category. */ | 693 /** Internal name of the category. */ |
597 core.String name; | 694 core.String name; |
598 | 695 |
599 CategoryDescription(); | 696 GooglePrivacyDlpV2beta1CategoryDescription(); |
600 | 697 |
601 CategoryDescription.fromJson(core.Map _json) { | 698 GooglePrivacyDlpV2beta1CategoryDescription.fromJson(core.Map _json) { |
602 if (_json.containsKey("displayName")) { | 699 if (_json.containsKey("displayName")) { |
603 displayName = _json["displayName"]; | 700 displayName = _json["displayName"]; |
604 } | 701 } |
605 if (_json.containsKey("name")) { | 702 if (_json.containsKey("name")) { |
606 name = _json["name"]; | 703 name = _json["name"]; |
607 } | 704 } |
608 } | 705 } |
609 | 706 |
610 core.Map<core.String, core.Object> toJson() { | 707 core.Map<core.String, core.Object> toJson() { |
611 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 708 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
612 if (displayName != null) { | 709 if (displayName != null) { |
613 _json["displayName"] = displayName; | 710 _json["displayName"] = displayName; |
614 } | 711 } |
615 if (name != null) { | 712 if (name != null) { |
616 _json["name"] = name; | 713 _json["name"] = name; |
617 } | 714 } |
618 return _json; | 715 return _json; |
619 } | 716 } |
620 } | 717 } |
621 | 718 |
622 /** Record key for a finding in a Cloud Storage file. */ | 719 /** Record key for a finding in a Cloud Storage file. */ |
623 class CloudStorageKey { | 720 class GooglePrivacyDlpV2beta1CloudStorageKey { |
624 /** Path to the file. */ | 721 /** Path to the file. */ |
625 core.String filePath; | 722 core.String filePath; |
626 /** Byte offset of the referenced data in the file. */ | 723 /** Byte offset of the referenced data in the file. */ |
627 core.String startOffset; | 724 core.String startOffset; |
628 | 725 |
629 CloudStorageKey(); | 726 GooglePrivacyDlpV2beta1CloudStorageKey(); |
630 | 727 |
631 CloudStorageKey.fromJson(core.Map _json) { | 728 GooglePrivacyDlpV2beta1CloudStorageKey.fromJson(core.Map _json) { |
632 if (_json.containsKey("filePath")) { | 729 if (_json.containsKey("filePath")) { |
633 filePath = _json["filePath"]; | 730 filePath = _json["filePath"]; |
634 } | 731 } |
635 if (_json.containsKey("startOffset")) { | 732 if (_json.containsKey("startOffset")) { |
636 startOffset = _json["startOffset"]; | 733 startOffset = _json["startOffset"]; |
637 } | 734 } |
638 } | 735 } |
639 | 736 |
640 core.Map<core.String, core.Object> toJson() { | 737 core.Map<core.String, core.Object> toJson() { |
641 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 738 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
642 if (filePath != null) { | 739 if (filePath != null) { |
643 _json["filePath"] = filePath; | 740 _json["filePath"] = filePath; |
644 } | 741 } |
645 if (startOffset != null) { | 742 if (startOffset != null) { |
646 _json["startOffset"] = startOffset; | 743 _json["startOffset"] = startOffset; |
647 } | 744 } |
648 return _json; | 745 return _json; |
649 } | 746 } |
650 } | 747 } |
651 | 748 |
652 /** | 749 /** |
653 * Options defining a file or a set of files (path ending with *) within | 750 * Options defining a file or a set of files (path ending with *) within |
654 * a Google Cloud Storage bucket. | 751 * a Google Cloud Storage bucket. |
655 */ | 752 */ |
656 class CloudStorageOptions { | 753 class GooglePrivacyDlpV2beta1CloudStorageOptions { |
657 FileSet fileSet; | 754 GooglePrivacyDlpV2beta1FileSet fileSet; |
658 | 755 |
659 CloudStorageOptions(); | 756 GooglePrivacyDlpV2beta1CloudStorageOptions(); |
660 | 757 |
661 CloudStorageOptions.fromJson(core.Map _json) { | 758 GooglePrivacyDlpV2beta1CloudStorageOptions.fromJson(core.Map _json) { |
662 if (_json.containsKey("fileSet")) { | 759 if (_json.containsKey("fileSet")) { |
663 fileSet = new FileSet.fromJson(_json["fileSet"]); | 760 fileSet = new GooglePrivacyDlpV2beta1FileSet.fromJson(_json["fileSet"]); |
664 } | 761 } |
665 } | 762 } |
666 | 763 |
667 core.Map<core.String, core.Object> toJson() { | 764 core.Map<core.String, core.Object> toJson() { |
668 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 765 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
669 if (fileSet != null) { | 766 if (fileSet != null) { |
670 _json["fileSet"] = (fileSet).toJson(); | 767 _json["fileSet"] = (fileSet).toJson(); |
671 } | 768 } |
672 return _json; | 769 return _json; |
673 } | 770 } |
674 } | 771 } |
675 | 772 |
676 /** A location in Cloud Storage. */ | 773 /** A location in Cloud Storage. */ |
677 class CloudStoragePath { | 774 class GooglePrivacyDlpV2beta1CloudStoragePath { |
678 /** The url, in the format of `gs://bucket/<path>`. */ | 775 /** The url, in the format of `gs://bucket/<path>`. */ |
679 core.String path; | 776 core.String path; |
680 | 777 |
681 CloudStoragePath(); | 778 GooglePrivacyDlpV2beta1CloudStoragePath(); |
682 | 779 |
683 CloudStoragePath.fromJson(core.Map _json) { | 780 GooglePrivacyDlpV2beta1CloudStoragePath.fromJson(core.Map _json) { |
684 if (_json.containsKey("path")) { | 781 if (_json.containsKey("path")) { |
685 path = _json["path"]; | 782 path = _json["path"]; |
686 } | 783 } |
687 } | 784 } |
688 | 785 |
689 core.Map<core.String, core.Object> toJson() { | 786 core.Map<core.String, core.Object> toJson() { |
690 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 787 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
691 if (path != null) { | 788 if (path != null) { |
692 _json["path"] = path; | 789 _json["path"] = path; |
693 } | 790 } |
694 return _json; | 791 return _json; |
695 } | 792 } |
696 } | 793 } |
697 | 794 |
| 795 /** Represents a color in the RGB color space. */ |
| 796 class GooglePrivacyDlpV2beta1Color { |
| 797 /** The amount of blue in the color as a value in the interval [0, 1]. */ |
| 798 core.double blue; |
| 799 /** The amount of green in the color as a value in the interval [0, 1]. */ |
| 800 core.double green; |
| 801 /** The amount of red in the color as a value in the interval [0, 1]. */ |
| 802 core.double red; |
| 803 |
| 804 GooglePrivacyDlpV2beta1Color(); |
| 805 |
| 806 GooglePrivacyDlpV2beta1Color.fromJson(core.Map _json) { |
| 807 if (_json.containsKey("blue")) { |
| 808 blue = _json["blue"]; |
| 809 } |
| 810 if (_json.containsKey("green")) { |
| 811 green = _json["green"]; |
| 812 } |
| 813 if (_json.containsKey("red")) { |
| 814 red = _json["red"]; |
| 815 } |
| 816 } |
| 817 |
| 818 core.Map<core.String, core.Object> toJson() { |
| 819 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 820 if (blue != null) { |
| 821 _json["blue"] = blue; |
| 822 } |
| 823 if (green != null) { |
| 824 _json["green"] = green; |
| 825 } |
| 826 if (red != null) { |
| 827 _json["red"] = red; |
| 828 } |
| 829 return _json; |
| 830 } |
| 831 } |
| 832 |
698 /** Container structure for the content to inspect. */ | 833 /** Container structure for the content to inspect. */ |
699 class ContentItem { | 834 class GooglePrivacyDlpV2beta1ContentItem { |
700 /** Content data to inspect or redact. */ | 835 /** Content data to inspect or redact. */ |
701 core.String data; | 836 core.String data; |
702 core.List<core.int> get dataAsBytes { | 837 core.List<core.int> get dataAsBytes { |
703 return convert.BASE64.decode(data); | 838 return convert.BASE64.decode(data); |
704 } | 839 } |
705 | 840 |
706 void set dataAsBytes(core.List<core.int> _bytes) { | 841 void set dataAsBytes(core.List<core.int> _bytes) { |
707 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-
"); | 842 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-
"); |
708 } | 843 } |
709 /** | 844 /** |
710 * Type of the content, as defined in Content-Type HTTP header. | 845 * Type of the content, as defined in Content-Type HTTP header. |
711 * Supported types are: all "text" types, octet streams, PNG images, | 846 * Supported types are: all "text" types, octet streams, PNG images, |
712 * JPEG images. | 847 * JPEG images. |
713 */ | 848 */ |
714 core.String type; | 849 core.String type; |
715 /** String data to inspect or redact. */ | 850 /** String data to inspect or redact. */ |
716 core.String value; | 851 core.String value; |
717 | 852 |
718 ContentItem(); | 853 GooglePrivacyDlpV2beta1ContentItem(); |
719 | 854 |
720 ContentItem.fromJson(core.Map _json) { | 855 GooglePrivacyDlpV2beta1ContentItem.fromJson(core.Map _json) { |
721 if (_json.containsKey("data")) { | 856 if (_json.containsKey("data")) { |
722 data = _json["data"]; | 857 data = _json["data"]; |
723 } | 858 } |
724 if (_json.containsKey("type")) { | 859 if (_json.containsKey("type")) { |
725 type = _json["type"]; | 860 type = _json["type"]; |
726 } | 861 } |
727 if (_json.containsKey("value")) { | 862 if (_json.containsKey("value")) { |
728 value = _json["value"]; | 863 value = _json["value"]; |
729 } | 864 } |
730 } | 865 } |
(...skipping 10 matching lines...) Expand all Loading... |
741 _json["value"] = value; | 876 _json["value"] = value; |
742 } | 877 } |
743 return _json; | 878 return _json; |
744 } | 879 } |
745 } | 880 } |
746 | 881 |
747 /** | 882 /** |
748 * Request for scheduling a scan of a data subset from a Google Platform data | 883 * Request for scheduling a scan of a data subset from a Google Platform data |
749 * repository. | 884 * repository. |
750 */ | 885 */ |
751 class CreateInspectOperationRequest { | 886 class GooglePrivacyDlpV2beta1CreateInspectOperationRequest { |
752 /** Configuration for the inspector. */ | 887 /** Configuration for the inspector. */ |
753 InspectConfig inspectConfig; | 888 GooglePrivacyDlpV2beta1InspectConfig inspectConfig; |
754 /** | 889 /** |
755 * Optional location to store findings. The bucket must already exist and | 890 * Optional location to store findings. The bucket must already exist and |
756 * the Google APIs service account for DLP must have write permission to | 891 * the Google APIs service account for DLP must have write permission to |
757 * write to the given bucket. | 892 * write to the given bucket. |
758 * <p>Results are split over multiple csv files with each file name matching | 893 * <p>Results are split over multiple csv files with each file name matching |
759 * the pattern "[operation_id]_[count].csv", for example | 894 * the pattern "[operation_id]_[count].csv", for example |
760 * `3094877188788974909_1.csv`. The `operation_id` matches the | 895 * `3094877188788974909_1.csv`. The `operation_id` matches the |
761 * identifier for the Operation, and the `count` is a counter used for | 896 * identifier for the Operation, and the `count` is a counter used for |
762 * tracking the number of files written. <p>The CSV file(s) contain the | 897 * tracking the number of files written. <p>The CSV file(s) contain the |
763 * following columns regardless of storage type scanned: <li>id <li>info_type | 898 * following columns regardless of storage type scanned: <li>id <li>info_type |
764 * <li>likelihood <li>byte size of finding <li>quote <li>time_stamp<br/> | 899 * <li>likelihood <li>byte size of finding <li>quote <li>time_stamp<br/> |
765 * <p>For Cloud Storage the next columns are: <li>file_path | 900 * <p>For Cloud Storage the next columns are: <li>file_path |
766 * <li>start_offset<br/> | 901 * <li>start_offset<br/> |
767 * <p>For Cloud Datastore the next columns are: <li>project_id | 902 * <p>For Cloud Datastore the next columns are: <li>project_id |
768 * <li>namespace_id <li>path <li>column_name <li>offset | 903 * <li>namespace_id <li>path <li>column_name <li>offset |
769 */ | 904 */ |
770 OutputStorageConfig outputConfig; | 905 GooglePrivacyDlpV2beta1OutputStorageConfig outputConfig; |
771 /** Specification of the data set to process. */ | 906 /** Specification of the data set to process. */ |
772 StorageConfig storageConfig; | 907 GooglePrivacyDlpV2beta1StorageConfig storageConfig; |
773 | 908 |
774 CreateInspectOperationRequest(); | 909 GooglePrivacyDlpV2beta1CreateInspectOperationRequest(); |
775 | 910 |
776 CreateInspectOperationRequest.fromJson(core.Map _json) { | 911 GooglePrivacyDlpV2beta1CreateInspectOperationRequest.fromJson(core.Map _json)
{ |
777 if (_json.containsKey("inspectConfig")) { | 912 if (_json.containsKey("inspectConfig")) { |
778 inspectConfig = new InspectConfig.fromJson(_json["inspectConfig"]); | 913 inspectConfig = new GooglePrivacyDlpV2beta1InspectConfig.fromJson(_json["i
nspectConfig"]); |
779 } | 914 } |
780 if (_json.containsKey("outputConfig")) { | 915 if (_json.containsKey("outputConfig")) { |
781 outputConfig = new OutputStorageConfig.fromJson(_json["outputConfig"]); | 916 outputConfig = new GooglePrivacyDlpV2beta1OutputStorageConfig.fromJson(_js
on["outputConfig"]); |
782 } | 917 } |
783 if (_json.containsKey("storageConfig")) { | 918 if (_json.containsKey("storageConfig")) { |
784 storageConfig = new StorageConfig.fromJson(_json["storageConfig"]); | 919 storageConfig = new GooglePrivacyDlpV2beta1StorageConfig.fromJson(_json["s
torageConfig"]); |
785 } | 920 } |
786 } | 921 } |
787 | 922 |
788 core.Map<core.String, core.Object> toJson() { | 923 core.Map<core.String, core.Object> toJson() { |
789 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 924 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
790 if (inspectConfig != null) { | 925 if (inspectConfig != null) { |
791 _json["inspectConfig"] = (inspectConfig).toJson(); | 926 _json["inspectConfig"] = (inspectConfig).toJson(); |
792 } | 927 } |
793 if (outputConfig != null) { | 928 if (outputConfig != null) { |
794 _json["outputConfig"] = (outputConfig).toJson(); | 929 _json["outputConfig"] = (outputConfig).toJson(); |
795 } | 930 } |
796 if (storageConfig != null) { | 931 if (storageConfig != null) { |
797 _json["storageConfig"] = (storageConfig).toJson(); | 932 _json["storageConfig"] = (storageConfig).toJson(); |
798 } | 933 } |
799 return _json; | 934 return _json; |
800 } | 935 } |
801 } | 936 } |
802 | 937 |
803 /** Record key for a finding in Cloud Datastore. */ | 938 /** Record key for a finding in Cloud Datastore. */ |
804 class DatastoreKey { | 939 class GooglePrivacyDlpV2beta1DatastoreKey { |
805 /** Datastore entity key. */ | 940 /** Datastore entity key. */ |
806 Key entityKey; | 941 GooglePrivacyDlpV2beta1Key entityKey; |
807 | 942 |
808 DatastoreKey(); | 943 GooglePrivacyDlpV2beta1DatastoreKey(); |
809 | 944 |
810 DatastoreKey.fromJson(core.Map _json) { | 945 GooglePrivacyDlpV2beta1DatastoreKey.fromJson(core.Map _json) { |
811 if (_json.containsKey("entityKey")) { | 946 if (_json.containsKey("entityKey")) { |
812 entityKey = new Key.fromJson(_json["entityKey"]); | 947 entityKey = new GooglePrivacyDlpV2beta1Key.fromJson(_json["entityKey"]); |
813 } | 948 } |
814 } | 949 } |
815 | 950 |
816 core.Map<core.String, core.Object> toJson() { | 951 core.Map<core.String, core.Object> toJson() { |
817 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 952 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
818 if (entityKey != null) { | 953 if (entityKey != null) { |
819 _json["entityKey"] = (entityKey).toJson(); | 954 _json["entityKey"] = (entityKey).toJson(); |
820 } | 955 } |
821 return _json; | 956 return _json; |
822 } | 957 } |
823 } | 958 } |
824 | 959 |
825 /** Options defining a data set within Google Cloud Datastore. */ | 960 /** Options defining a data set within Google Cloud Datastore. */ |
826 class DatastoreOptions { | 961 class GooglePrivacyDlpV2beta1DatastoreOptions { |
827 /** The kind to process. */ | 962 /** The kind to process. */ |
828 KindExpression kind; | 963 GooglePrivacyDlpV2beta1KindExpression kind; |
829 /** | 964 /** |
830 * A partition ID identifies a grouping of entities. The grouping is always | 965 * A partition ID identifies a grouping of entities. The grouping is always |
831 * by project and namespace, however the namespace ID may be empty. | 966 * by project and namespace, however the namespace ID may be empty. |
832 */ | 967 */ |
833 PartitionId partitionId; | 968 GooglePrivacyDlpV2beta1PartitionId partitionId; |
834 /** | 969 /** |
835 * Properties to scan. If none are specified, all properties will be scanned | 970 * Properties to scan. If none are specified, all properties will be scanned |
836 * by default. | 971 * by default. |
837 */ | 972 */ |
838 core.List<Projection> projection; | 973 core.List<GooglePrivacyDlpV2beta1Projection> projection; |
839 | 974 |
840 DatastoreOptions(); | 975 GooglePrivacyDlpV2beta1DatastoreOptions(); |
841 | 976 |
842 DatastoreOptions.fromJson(core.Map _json) { | 977 GooglePrivacyDlpV2beta1DatastoreOptions.fromJson(core.Map _json) { |
843 if (_json.containsKey("kind")) { | 978 if (_json.containsKey("kind")) { |
844 kind = new KindExpression.fromJson(_json["kind"]); | 979 kind = new GooglePrivacyDlpV2beta1KindExpression.fromJson(_json["kind"]); |
845 } | 980 } |
846 if (_json.containsKey("partitionId")) { | 981 if (_json.containsKey("partitionId")) { |
847 partitionId = new PartitionId.fromJson(_json["partitionId"]); | 982 partitionId = new GooglePrivacyDlpV2beta1PartitionId.fromJson(_json["parti
tionId"]); |
848 } | 983 } |
849 if (_json.containsKey("projection")) { | 984 if (_json.containsKey("projection")) { |
850 projection = _json["projection"].map((value) => new Projection.fromJson(va
lue)).toList(); | 985 projection = _json["projection"].map((value) => new GooglePrivacyDlpV2beta
1Projection.fromJson(value)).toList(); |
851 } | 986 } |
852 } | 987 } |
853 | 988 |
854 core.Map<core.String, core.Object> toJson() { | 989 core.Map<core.String, core.Object> toJson() { |
855 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 990 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
856 if (kind != null) { | 991 if (kind != null) { |
857 _json["kind"] = (kind).toJson(); | 992 _json["kind"] = (kind).toJson(); |
858 } | 993 } |
859 if (partitionId != null) { | 994 if (partitionId != null) { |
860 _json["partitionId"] = (partitionId).toJson(); | 995 _json["partitionId"] = (partitionId).toJson(); |
861 } | 996 } |
862 if (projection != null) { | 997 if (projection != null) { |
863 _json["projection"] = projection.map((value) => (value).toJson()).toList()
; | 998 _json["projection"] = projection.map((value) => (value).toJson()).toList()
; |
864 } | 999 } |
865 return _json; | 1000 return _json; |
866 } | 1001 } |
867 } | 1002 } |
868 | 1003 |
869 /** | |
870 * A generic empty message that you can re-use to avoid defining duplicated | |
871 * empty messages in your APIs. A typical example is to use it as the request | |
872 * or the response type of an API method. For instance: | |
873 * | |
874 * service Foo { | |
875 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | |
876 * } | |
877 * | |
878 * The JSON representation for `Empty` is empty JSON object `{}`. | |
879 */ | |
880 class Empty { | |
881 | |
882 Empty(); | |
883 | |
884 Empty.fromJson(core.Map _json) { | |
885 } | |
886 | |
887 core.Map<core.String, core.Object> toJson() { | |
888 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | |
889 return _json; | |
890 } | |
891 } | |
892 | |
893 /** General identifier of a data field in a storage service. */ | 1004 /** General identifier of a data field in a storage service. */ |
894 class FieldId { | 1005 class GooglePrivacyDlpV2beta1FieldId { |
895 /** Column name describing the field. */ | 1006 /** Column name describing the field. */ |
896 core.String columnName; | 1007 core.String columnName; |
897 | 1008 |
898 FieldId(); | 1009 GooglePrivacyDlpV2beta1FieldId(); |
899 | 1010 |
900 FieldId.fromJson(core.Map _json) { | 1011 GooglePrivacyDlpV2beta1FieldId.fromJson(core.Map _json) { |
901 if (_json.containsKey("columnName")) { | 1012 if (_json.containsKey("columnName")) { |
902 columnName = _json["columnName"]; | 1013 columnName = _json["columnName"]; |
903 } | 1014 } |
904 } | 1015 } |
905 | 1016 |
906 core.Map<core.String, core.Object> toJson() { | 1017 core.Map<core.String, core.Object> toJson() { |
907 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1018 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
908 if (columnName != null) { | 1019 if (columnName != null) { |
909 _json["columnName"] = columnName; | 1020 _json["columnName"] = columnName; |
910 } | 1021 } |
911 return _json; | 1022 return _json; |
912 } | 1023 } |
913 } | 1024 } |
914 | 1025 |
915 /** Set of files to scan. */ | 1026 /** Set of files to scan. */ |
916 class FileSet { | 1027 class GooglePrivacyDlpV2beta1FileSet { |
917 /** | 1028 /** |
918 * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the | 1029 * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the |
919 * path is allowed. | 1030 * path is allowed. |
920 */ | 1031 */ |
921 core.String url; | 1032 core.String url; |
922 | 1033 |
923 FileSet(); | 1034 GooglePrivacyDlpV2beta1FileSet(); |
924 | 1035 |
925 FileSet.fromJson(core.Map _json) { | 1036 GooglePrivacyDlpV2beta1FileSet.fromJson(core.Map _json) { |
926 if (_json.containsKey("url")) { | 1037 if (_json.containsKey("url")) { |
927 url = _json["url"]; | 1038 url = _json["url"]; |
928 } | 1039 } |
929 } | 1040 } |
930 | 1041 |
931 core.Map<core.String, core.Object> toJson() { | 1042 core.Map<core.String, core.Object> toJson() { |
932 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1043 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
933 if (url != null) { | 1044 if (url != null) { |
934 _json["url"] = url; | 1045 _json["url"] = url; |
935 } | 1046 } |
936 return _json; | 1047 return _json; |
937 } | 1048 } |
938 } | 1049 } |
939 | 1050 |
940 /** | 1051 /** |
941 * Container structure describing a single finding within a string or image. | 1052 * Container structure describing a single finding within a string or image. |
942 */ | 1053 */ |
943 class Finding { | 1054 class GooglePrivacyDlpV2beta1Finding { |
944 /** Timestamp when finding was detected. */ | 1055 /** Timestamp when finding was detected. */ |
945 core.String createTime; | 1056 core.String createTime; |
946 /** The specific type of info the string might be. */ | 1057 /** The specific type of info the string might be. */ |
947 InfoType infoType; | 1058 GooglePrivacyDlpV2beta1InfoType infoType; |
948 /** | 1059 /** |
949 * Estimate of how likely it is that the info_type is correct. | 1060 * Estimate of how likely it is that the info_type is correct. |
950 * Possible string values are: | 1061 * Possible string values are: |
951 * - "LIKELIHOOD_UNSPECIFIED" : Default value; information with all | 1062 * - "LIKELIHOOD_UNSPECIFIED" : Default value; information with all |
952 * likelihoods is included. | 1063 * likelihoods is included. |
953 * - "VERY_UNLIKELY" : Few matching elements. | 1064 * - "VERY_UNLIKELY" : Few matching elements. |
954 * - "UNLIKELY" | 1065 * - "UNLIKELY" |
955 * - "POSSIBLE" : Some matching elements. | 1066 * - "POSSIBLE" : Some matching elements. |
956 * - "LIKELY" | 1067 * - "LIKELY" |
957 * - "VERY_LIKELY" : Many matching elements. | 1068 * - "VERY_LIKELY" : Many matching elements. |
958 */ | 1069 */ |
959 core.String likelihood; | 1070 core.String likelihood; |
960 /** Location of the info found. */ | 1071 /** Location of the info found. */ |
961 Location location; | 1072 GooglePrivacyDlpV2beta1Location location; |
962 /** The specific string that may be potentially sensitive info. */ | 1073 /** The specific string that may be potentially sensitive info. */ |
963 core.String quote; | 1074 core.String quote; |
964 | 1075 |
965 Finding(); | 1076 GooglePrivacyDlpV2beta1Finding(); |
966 | 1077 |
967 Finding.fromJson(core.Map _json) { | 1078 GooglePrivacyDlpV2beta1Finding.fromJson(core.Map _json) { |
968 if (_json.containsKey("createTime")) { | 1079 if (_json.containsKey("createTime")) { |
969 createTime = _json["createTime"]; | 1080 createTime = _json["createTime"]; |
970 } | 1081 } |
971 if (_json.containsKey("infoType")) { | 1082 if (_json.containsKey("infoType")) { |
972 infoType = new InfoType.fromJson(_json["infoType"]); | 1083 infoType = new GooglePrivacyDlpV2beta1InfoType.fromJson(_json["infoType"])
; |
973 } | 1084 } |
974 if (_json.containsKey("likelihood")) { | 1085 if (_json.containsKey("likelihood")) { |
975 likelihood = _json["likelihood"]; | 1086 likelihood = _json["likelihood"]; |
976 } | 1087 } |
977 if (_json.containsKey("location")) { | 1088 if (_json.containsKey("location")) { |
978 location = new Location.fromJson(_json["location"]); | 1089 location = new GooglePrivacyDlpV2beta1Location.fromJson(_json["location"])
; |
979 } | 1090 } |
980 if (_json.containsKey("quote")) { | 1091 if (_json.containsKey("quote")) { |
981 quote = _json["quote"]; | 1092 quote = _json["quote"]; |
982 } | 1093 } |
983 } | 1094 } |
984 | 1095 |
985 core.Map<core.String, core.Object> toJson() { | 1096 core.Map<core.String, core.Object> toJson() { |
986 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1097 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
987 if (createTime != null) { | 1098 if (createTime != null) { |
988 _json["createTime"] = createTime; | 1099 _json["createTime"] = createTime; |
989 } | 1100 } |
990 if (infoType != null) { | 1101 if (infoType != null) { |
991 _json["infoType"] = (infoType).toJson(); | 1102 _json["infoType"] = (infoType).toJson(); |
992 } | 1103 } |
993 if (likelihood != null) { | 1104 if (likelihood != null) { |
994 _json["likelihood"] = likelihood; | 1105 _json["likelihood"] = likelihood; |
995 } | 1106 } |
996 if (location != null) { | 1107 if (location != null) { |
997 _json["location"] = (location).toJson(); | 1108 _json["location"] = (location).toJson(); |
998 } | 1109 } |
999 if (quote != null) { | 1110 if (quote != null) { |
1000 _json["quote"] = quote; | 1111 _json["quote"] = quote; |
1001 } | 1112 } |
1002 return _json; | 1113 return _json; |
1003 } | 1114 } |
1004 } | 1115 } |
1005 | 1116 |
1006 /** Bounding box encompassing detected text within an image. */ | 1117 /** Bounding box encompassing detected text within an image. */ |
1007 class ImageLocation { | 1118 class GooglePrivacyDlpV2beta1ImageLocation { |
1008 /** Height of the bounding box in pixels. */ | 1119 /** Height of the bounding box in pixels. */ |
1009 core.int height; | 1120 core.int height; |
1010 /** Left coordinate of the bounding box. (0,0) is upper left. */ | 1121 /** Left coordinate of the bounding box. (0,0) is upper left. */ |
1011 core.int left; | 1122 core.int left; |
1012 /** Top coordinate of the bounding box. (0,0) is upper left. */ | 1123 /** Top coordinate of the bounding box. (0,0) is upper left. */ |
1013 core.int top; | 1124 core.int top; |
1014 /** Width of the bounding box in pixels. */ | 1125 /** Width of the bounding box in pixels. */ |
1015 core.int width; | 1126 core.int width; |
1016 | 1127 |
1017 ImageLocation(); | 1128 GooglePrivacyDlpV2beta1ImageLocation(); |
1018 | 1129 |
1019 ImageLocation.fromJson(core.Map _json) { | 1130 GooglePrivacyDlpV2beta1ImageLocation.fromJson(core.Map _json) { |
1020 if (_json.containsKey("height")) { | 1131 if (_json.containsKey("height")) { |
1021 height = _json["height"]; | 1132 height = _json["height"]; |
1022 } | 1133 } |
1023 if (_json.containsKey("left")) { | 1134 if (_json.containsKey("left")) { |
1024 left = _json["left"]; | 1135 left = _json["left"]; |
1025 } | 1136 } |
1026 if (_json.containsKey("top")) { | 1137 if (_json.containsKey("top")) { |
1027 top = _json["top"]; | 1138 top = _json["top"]; |
1028 } | 1139 } |
1029 if (_json.containsKey("width")) { | 1140 if (_json.containsKey("width")) { |
(...skipping 12 matching lines...) Expand all Loading... |
1042 if (top != null) { | 1153 if (top != null) { |
1043 _json["top"] = top; | 1154 _json["top"] = top; |
1044 } | 1155 } |
1045 if (width != null) { | 1156 if (width != null) { |
1046 _json["width"] = width; | 1157 _json["width"] = width; |
1047 } | 1158 } |
1048 return _json; | 1159 return _json; |
1049 } | 1160 } |
1050 } | 1161 } |
1051 | 1162 |
| 1163 /** Configuration for determing how redaction of images should occur. */ |
| 1164 class GooglePrivacyDlpV2beta1ImageRedactionConfig { |
| 1165 /** |
| 1166 * Only one per info_type should be provided per request. If not |
| 1167 * specified, and redact_all_text is false, the DLP API will redacts all |
| 1168 * text that it matches against all info_types that are found, but not |
| 1169 * specified in another ImageRedactionConfig. |
| 1170 */ |
| 1171 GooglePrivacyDlpV2beta1InfoType infoType; |
| 1172 /** |
| 1173 * If true, all text found in the image, regardless if it matches an |
| 1174 * info_type, is redacted. |
| 1175 */ |
| 1176 core.bool redactAllText; |
| 1177 /** |
| 1178 * The color to use when redacting content from an image. If not specified, |
| 1179 * the default is black. |
| 1180 */ |
| 1181 GooglePrivacyDlpV2beta1Color redactionColor; |
| 1182 |
| 1183 GooglePrivacyDlpV2beta1ImageRedactionConfig(); |
| 1184 |
| 1185 GooglePrivacyDlpV2beta1ImageRedactionConfig.fromJson(core.Map _json) { |
| 1186 if (_json.containsKey("infoType")) { |
| 1187 infoType = new GooglePrivacyDlpV2beta1InfoType.fromJson(_json["infoType"])
; |
| 1188 } |
| 1189 if (_json.containsKey("redactAllText")) { |
| 1190 redactAllText = _json["redactAllText"]; |
| 1191 } |
| 1192 if (_json.containsKey("redactionColor")) { |
| 1193 redactionColor = new GooglePrivacyDlpV2beta1Color.fromJson(_json["redactio
nColor"]); |
| 1194 } |
| 1195 } |
| 1196 |
| 1197 core.Map<core.String, core.Object> toJson() { |
| 1198 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1199 if (infoType != null) { |
| 1200 _json["infoType"] = (infoType).toJson(); |
| 1201 } |
| 1202 if (redactAllText != null) { |
| 1203 _json["redactAllText"] = redactAllText; |
| 1204 } |
| 1205 if (redactionColor != null) { |
| 1206 _json["redactionColor"] = (redactionColor).toJson(); |
| 1207 } |
| 1208 return _json; |
| 1209 } |
| 1210 } |
| 1211 |
1052 /** Type of information detected by the API. */ | 1212 /** Type of information detected by the API. */ |
1053 class InfoType { | 1213 class GooglePrivacyDlpV2beta1InfoType { |
1054 /** | 1214 /** |
1055 * Name of the information type. For built-in info types, this is provided by | 1215 * Name of the information type. For built-in info types, this is provided by |
1056 * the API call ListInfoTypes. For user-defined info types, this is | 1216 * the API call ListInfoTypes. For user-defined info types, this is |
1057 * provided by the user. All user-defined info types must have unique names, | 1217 * provided by the user. All user-defined info types must have unique names, |
1058 * and cannot conflict with built-in info type names. | 1218 * and cannot conflict with built-in info type names. |
1059 */ | 1219 */ |
1060 core.String name; | 1220 core.String name; |
1061 | 1221 |
1062 InfoType(); | 1222 GooglePrivacyDlpV2beta1InfoType(); |
1063 | 1223 |
1064 InfoType.fromJson(core.Map _json) { | 1224 GooglePrivacyDlpV2beta1InfoType.fromJson(core.Map _json) { |
1065 if (_json.containsKey("name")) { | 1225 if (_json.containsKey("name")) { |
1066 name = _json["name"]; | 1226 name = _json["name"]; |
1067 } | 1227 } |
1068 } | 1228 } |
1069 | 1229 |
1070 core.Map<core.String, core.Object> toJson() { | 1230 core.Map<core.String, core.Object> toJson() { |
1071 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1231 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1072 if (name != null) { | 1232 if (name != null) { |
1073 _json["name"] = name; | 1233 _json["name"] = name; |
1074 } | 1234 } |
1075 return _json; | 1235 return _json; |
1076 } | 1236 } |
1077 } | 1237 } |
1078 | 1238 |
1079 /** Info type description. */ | 1239 /** Info type description. */ |
1080 class InfoTypeDescription { | 1240 class GooglePrivacyDlpV2beta1InfoTypeDescription { |
1081 /** List of categories this info type belongs to. */ | 1241 /** List of categories this info type belongs to. */ |
1082 core.List<CategoryDescription> categories; | 1242 core.List<GooglePrivacyDlpV2beta1CategoryDescription> categories; |
1083 /** Human readable form of the info type name. */ | 1243 /** Human readable form of the info type name. */ |
1084 core.String displayName; | 1244 core.String displayName; |
1085 /** Internal name of the info type. */ | 1245 /** Internal name of the info type. */ |
1086 core.String name; | 1246 core.String name; |
1087 | 1247 |
1088 InfoTypeDescription(); | 1248 GooglePrivacyDlpV2beta1InfoTypeDescription(); |
1089 | 1249 |
1090 InfoTypeDescription.fromJson(core.Map _json) { | 1250 GooglePrivacyDlpV2beta1InfoTypeDescription.fromJson(core.Map _json) { |
1091 if (_json.containsKey("categories")) { | 1251 if (_json.containsKey("categories")) { |
1092 categories = _json["categories"].map((value) => new CategoryDescription.fr
omJson(value)).toList(); | 1252 categories = _json["categories"].map((value) => new GooglePrivacyDlpV2beta
1CategoryDescription.fromJson(value)).toList(); |
1093 } | 1253 } |
1094 if (_json.containsKey("displayName")) { | 1254 if (_json.containsKey("displayName")) { |
1095 displayName = _json["displayName"]; | 1255 displayName = _json["displayName"]; |
1096 } | 1256 } |
1097 if (_json.containsKey("name")) { | 1257 if (_json.containsKey("name")) { |
1098 name = _json["name"]; | 1258 name = _json["name"]; |
1099 } | 1259 } |
1100 } | 1260 } |
1101 | 1261 |
1102 core.Map<core.String, core.Object> toJson() { | 1262 core.Map<core.String, core.Object> toJson() { |
1103 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1263 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1104 if (categories != null) { | 1264 if (categories != null) { |
1105 _json["categories"] = categories.map((value) => (value).toJson()).toList()
; | 1265 _json["categories"] = categories.map((value) => (value).toJson()).toList()
; |
1106 } | 1266 } |
1107 if (displayName != null) { | 1267 if (displayName != null) { |
1108 _json["displayName"] = displayName; | 1268 _json["displayName"] = displayName; |
1109 } | 1269 } |
1110 if (name != null) { | 1270 if (name != null) { |
1111 _json["name"] = name; | 1271 _json["name"] = name; |
1112 } | 1272 } |
1113 return _json; | 1273 return _json; |
1114 } | 1274 } |
1115 } | 1275 } |
1116 | 1276 |
| 1277 /** Statistics regarding a specific InfoType. */ |
| 1278 class GooglePrivacyDlpV2beta1InfoTypeStatistics { |
| 1279 /** Number of findings for this info type. */ |
| 1280 core.String count; |
| 1281 /** The type of finding this stat is for. */ |
| 1282 GooglePrivacyDlpV2beta1InfoType infoType; |
| 1283 |
| 1284 GooglePrivacyDlpV2beta1InfoTypeStatistics(); |
| 1285 |
| 1286 GooglePrivacyDlpV2beta1InfoTypeStatistics.fromJson(core.Map _json) { |
| 1287 if (_json.containsKey("count")) { |
| 1288 count = _json["count"]; |
| 1289 } |
| 1290 if (_json.containsKey("infoType")) { |
| 1291 infoType = new GooglePrivacyDlpV2beta1InfoType.fromJson(_json["infoType"])
; |
| 1292 } |
| 1293 } |
| 1294 |
| 1295 core.Map<core.String, core.Object> toJson() { |
| 1296 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1297 if (count != null) { |
| 1298 _json["count"] = count; |
| 1299 } |
| 1300 if (infoType != null) { |
| 1301 _json["infoType"] = (infoType).toJson(); |
| 1302 } |
| 1303 return _json; |
| 1304 } |
| 1305 } |
| 1306 |
1117 /** | 1307 /** |
1118 * Configuration description of the scanning process. | 1308 * Configuration description of the scanning process. |
1119 * When used with redactContent only info_types and min_likelihood are currently | 1309 * When used with redactContent only info_types and min_likelihood are currently |
1120 * used. | 1310 * used. |
1121 */ | 1311 */ |
1122 class InspectConfig { | 1312 class GooglePrivacyDlpV2beta1InspectConfig { |
1123 /** When true, exclude type information of the findings. */ | 1313 /** When true, excludes type information of the findings. */ |
1124 core.bool excludeTypes; | 1314 core.bool excludeTypes; |
1125 /** | 1315 /** |
1126 * When true, a contextual quote from the data that triggered a finding is | 1316 * When true, a contextual quote from the data that triggered a finding is |
1127 * included in the response; see Finding.quote. | 1317 * included in the response; see Finding.quote. |
1128 */ | 1318 */ |
1129 core.bool includeQuote; | 1319 core.bool includeQuote; |
1130 /** | 1320 /** |
1131 * Restrict what info_types to look for. The values must correspond to | 1321 * Restricts what info_types to look for. The values must correspond to |
1132 * InfoType values returned by ListInfoTypes or found in documentation. | 1322 * InfoType values returned by ListInfoTypes or found in documentation. |
1133 * Empty info_types runs all enabled detectors. | 1323 * Empty info_types runs all enabled detectors. |
1134 */ | 1324 */ |
1135 core.List<InfoType> infoTypes; | 1325 core.List<GooglePrivacyDlpV2beta1InfoType> infoTypes; |
1136 /** Limit the number of findings per content item. */ | 1326 /** |
| 1327 * Limits the number of findings per content item or long running operation. |
| 1328 */ |
1137 core.int maxFindings; | 1329 core.int maxFindings; |
1138 /** | 1330 /** |
1139 * Only return findings equal or above this threshold. | 1331 * Only returns findings equal or above this threshold. |
1140 * Possible string values are: | 1332 * Possible string values are: |
1141 * - "LIKELIHOOD_UNSPECIFIED" : Default value; information with all | 1333 * - "LIKELIHOOD_UNSPECIFIED" : Default value; information with all |
1142 * likelihoods is included. | 1334 * likelihoods is included. |
1143 * - "VERY_UNLIKELY" : Few matching elements. | 1335 * - "VERY_UNLIKELY" : Few matching elements. |
1144 * - "UNLIKELY" | 1336 * - "UNLIKELY" |
1145 * - "POSSIBLE" : Some matching elements. | 1337 * - "POSSIBLE" : Some matching elements. |
1146 * - "LIKELY" | 1338 * - "LIKELY" |
1147 * - "VERY_LIKELY" : Many matching elements. | 1339 * - "VERY_LIKELY" : Many matching elements. |
1148 */ | 1340 */ |
1149 core.String minLikelihood; | 1341 core.String minLikelihood; |
1150 | 1342 |
1151 InspectConfig(); | 1343 GooglePrivacyDlpV2beta1InspectConfig(); |
1152 | 1344 |
1153 InspectConfig.fromJson(core.Map _json) { | 1345 GooglePrivacyDlpV2beta1InspectConfig.fromJson(core.Map _json) { |
1154 if (_json.containsKey("excludeTypes")) { | 1346 if (_json.containsKey("excludeTypes")) { |
1155 excludeTypes = _json["excludeTypes"]; | 1347 excludeTypes = _json["excludeTypes"]; |
1156 } | 1348 } |
1157 if (_json.containsKey("includeQuote")) { | 1349 if (_json.containsKey("includeQuote")) { |
1158 includeQuote = _json["includeQuote"]; | 1350 includeQuote = _json["includeQuote"]; |
1159 } | 1351 } |
1160 if (_json.containsKey("infoTypes")) { | 1352 if (_json.containsKey("infoTypes")) { |
1161 infoTypes = _json["infoTypes"].map((value) => new InfoType.fromJson(value)
).toList(); | 1353 infoTypes = _json["infoTypes"].map((value) => new GooglePrivacyDlpV2beta1I
nfoType.fromJson(value)).toList(); |
1162 } | 1354 } |
1163 if (_json.containsKey("maxFindings")) { | 1355 if (_json.containsKey("maxFindings")) { |
1164 maxFindings = _json["maxFindings"]; | 1356 maxFindings = _json["maxFindings"]; |
1165 } | 1357 } |
1166 if (_json.containsKey("minLikelihood")) { | 1358 if (_json.containsKey("minLikelihood")) { |
1167 minLikelihood = _json["minLikelihood"]; | 1359 minLikelihood = _json["minLikelihood"]; |
1168 } | 1360 } |
1169 } | 1361 } |
1170 | 1362 |
1171 core.Map<core.String, core.Object> toJson() { | 1363 core.Map<core.String, core.Object> toJson() { |
(...skipping 11 matching lines...) Expand all Loading... |
1183 _json["maxFindings"] = maxFindings; | 1375 _json["maxFindings"] = maxFindings; |
1184 } | 1376 } |
1185 if (minLikelihood != null) { | 1377 if (minLikelihood != null) { |
1186 _json["minLikelihood"] = minLikelihood; | 1378 _json["minLikelihood"] = minLikelihood; |
1187 } | 1379 } |
1188 return _json; | 1380 return _json; |
1189 } | 1381 } |
1190 } | 1382 } |
1191 | 1383 |
1192 /** Request to search for potentially sensitive info in a list of items. */ | 1384 /** Request to search for potentially sensitive info in a list of items. */ |
1193 class InspectContentRequest { | 1385 class GooglePrivacyDlpV2beta1InspectContentRequest { |
1194 /** Configuration for the inspector. */ | 1386 /** Configuration for the inspector. */ |
1195 InspectConfig inspectConfig; | 1387 GooglePrivacyDlpV2beta1InspectConfig inspectConfig; |
1196 /** | 1388 /** |
1197 * The list of items to inspect. Items in a single request are | 1389 * The list of items to inspect. Items in a single request are |
1198 * considered "related" unless inspect_config.independent_inputs is true. | 1390 * considered "related" unless inspect_config.independent_inputs is true. |
1199 * Up to 100 are allowed per request. | 1391 * Up to 100 are allowed per request. |
1200 */ | 1392 */ |
1201 core.List<ContentItem> items; | 1393 core.List<GooglePrivacyDlpV2beta1ContentItem> items; |
1202 | 1394 |
1203 InspectContentRequest(); | 1395 GooglePrivacyDlpV2beta1InspectContentRequest(); |
1204 | 1396 |
1205 InspectContentRequest.fromJson(core.Map _json) { | 1397 GooglePrivacyDlpV2beta1InspectContentRequest.fromJson(core.Map _json) { |
1206 if (_json.containsKey("inspectConfig")) { | 1398 if (_json.containsKey("inspectConfig")) { |
1207 inspectConfig = new InspectConfig.fromJson(_json["inspectConfig"]); | 1399 inspectConfig = new GooglePrivacyDlpV2beta1InspectConfig.fromJson(_json["i
nspectConfig"]); |
1208 } | 1400 } |
1209 if (_json.containsKey("items")) { | 1401 if (_json.containsKey("items")) { |
1210 items = _json["items"].map((value) => new ContentItem.fromJson(value)).toL
ist(); | 1402 items = _json["items"].map((value) => new GooglePrivacyDlpV2beta1ContentIt
em.fromJson(value)).toList(); |
1211 } | 1403 } |
1212 } | 1404 } |
1213 | 1405 |
1214 core.Map<core.String, core.Object> toJson() { | 1406 core.Map<core.String, core.Object> toJson() { |
1215 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1407 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1216 if (inspectConfig != null) { | 1408 if (inspectConfig != null) { |
1217 _json["inspectConfig"] = (inspectConfig).toJson(); | 1409 _json["inspectConfig"] = (inspectConfig).toJson(); |
1218 } | 1410 } |
1219 if (items != null) { | 1411 if (items != null) { |
1220 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1412 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1221 } | 1413 } |
1222 return _json; | 1414 return _json; |
1223 } | 1415 } |
1224 } | 1416 } |
1225 | 1417 |
1226 /** Results of inspecting a list of items. */ | 1418 /** Results of inspecting a list of items. */ |
1227 class InspectContentResponse { | 1419 class GooglePrivacyDlpV2beta1InspectContentResponse { |
1228 /** | 1420 /** |
1229 * Each content_item from the request has a result in this list, in the | 1421 * Each content_item from the request has a result in this list, in the |
1230 * same order as the request. | 1422 * same order as the request. |
1231 */ | 1423 */ |
1232 core.List<InspectResult> results; | 1424 core.List<GooglePrivacyDlpV2beta1InspectResult> results; |
1233 | 1425 |
1234 InspectContentResponse(); | 1426 GooglePrivacyDlpV2beta1InspectContentResponse(); |
1235 | 1427 |
1236 InspectContentResponse.fromJson(core.Map _json) { | 1428 GooglePrivacyDlpV2beta1InspectContentResponse.fromJson(core.Map _json) { |
1237 if (_json.containsKey("results")) { | 1429 if (_json.containsKey("results")) { |
1238 results = _json["results"].map((value) => new InspectResult.fromJson(value
)).toList(); | 1430 results = _json["results"].map((value) => new GooglePrivacyDlpV2beta1Inspe
ctResult.fromJson(value)).toList(); |
1239 } | 1431 } |
1240 } | 1432 } |
1241 | 1433 |
1242 core.Map<core.String, core.Object> toJson() { | 1434 core.Map<core.String, core.Object> toJson() { |
1243 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1435 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1244 if (results != null) { | 1436 if (results != null) { |
1245 _json["results"] = results.map((value) => (value).toJson()).toList(); | 1437 _json["results"] = results.map((value) => (value).toJson()).toList(); |
1246 } | 1438 } |
1247 return _json; | 1439 return _json; |
1248 } | 1440 } |
1249 } | 1441 } |
1250 | 1442 |
| 1443 /** Metadata returned within GetOperation for an inspect request. */ |
| 1444 class GooglePrivacyDlpV2beta1InspectOperationMetadata { |
| 1445 /** The time which this request was started. */ |
| 1446 core.String createTime; |
| 1447 core.List<GooglePrivacyDlpV2beta1InfoTypeStatistics> infoTypeStats; |
| 1448 /** Total size in bytes that were processed. */ |
| 1449 core.String processedBytes; |
| 1450 /** The inspect config used to create the Operation. */ |
| 1451 GooglePrivacyDlpV2beta1InspectConfig requestInspectConfig; |
| 1452 /** Optional location to store findings. */ |
| 1453 GooglePrivacyDlpV2beta1OutputStorageConfig requestOutputConfig; |
| 1454 /** The storage config used to create the Operation. */ |
| 1455 GooglePrivacyDlpV2beta1StorageConfig requestStorageConfig; |
| 1456 /** Estimate of the number of bytes to process. */ |
| 1457 core.String totalEstimatedBytes; |
| 1458 |
| 1459 GooglePrivacyDlpV2beta1InspectOperationMetadata(); |
| 1460 |
| 1461 GooglePrivacyDlpV2beta1InspectOperationMetadata.fromJson(core.Map _json) { |
| 1462 if (_json.containsKey("createTime")) { |
| 1463 createTime = _json["createTime"]; |
| 1464 } |
| 1465 if (_json.containsKey("infoTypeStats")) { |
| 1466 infoTypeStats = _json["infoTypeStats"].map((value) => new GooglePrivacyDlp
V2beta1InfoTypeStatistics.fromJson(value)).toList(); |
| 1467 } |
| 1468 if (_json.containsKey("processedBytes")) { |
| 1469 processedBytes = _json["processedBytes"]; |
| 1470 } |
| 1471 if (_json.containsKey("requestInspectConfig")) { |
| 1472 requestInspectConfig = new GooglePrivacyDlpV2beta1InspectConfig.fromJson(_
json["requestInspectConfig"]); |
| 1473 } |
| 1474 if (_json.containsKey("requestOutputConfig")) { |
| 1475 requestOutputConfig = new GooglePrivacyDlpV2beta1OutputStorageConfig.fromJ
son(_json["requestOutputConfig"]); |
| 1476 } |
| 1477 if (_json.containsKey("requestStorageConfig")) { |
| 1478 requestStorageConfig = new GooglePrivacyDlpV2beta1StorageConfig.fromJson(_
json["requestStorageConfig"]); |
| 1479 } |
| 1480 if (_json.containsKey("totalEstimatedBytes")) { |
| 1481 totalEstimatedBytes = _json["totalEstimatedBytes"]; |
| 1482 } |
| 1483 } |
| 1484 |
| 1485 core.Map<core.String, core.Object> toJson() { |
| 1486 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1487 if (createTime != null) { |
| 1488 _json["createTime"] = createTime; |
| 1489 } |
| 1490 if (infoTypeStats != null) { |
| 1491 _json["infoTypeStats"] = infoTypeStats.map((value) => (value).toJson()).to
List(); |
| 1492 } |
| 1493 if (processedBytes != null) { |
| 1494 _json["processedBytes"] = processedBytes; |
| 1495 } |
| 1496 if (requestInspectConfig != null) { |
| 1497 _json["requestInspectConfig"] = (requestInspectConfig).toJson(); |
| 1498 } |
| 1499 if (requestOutputConfig != null) { |
| 1500 _json["requestOutputConfig"] = (requestOutputConfig).toJson(); |
| 1501 } |
| 1502 if (requestStorageConfig != null) { |
| 1503 _json["requestStorageConfig"] = (requestStorageConfig).toJson(); |
| 1504 } |
| 1505 if (totalEstimatedBytes != null) { |
| 1506 _json["totalEstimatedBytes"] = totalEstimatedBytes; |
| 1507 } |
| 1508 return _json; |
| 1509 } |
| 1510 } |
| 1511 |
| 1512 /** The operational data. */ |
| 1513 class GooglePrivacyDlpV2beta1InspectOperationResult { |
| 1514 /** |
| 1515 * The server-assigned name, which is only unique within the same service that |
| 1516 * originally returns it. If you use the default HTTP mapping, the |
| 1517 * `name` should have the format of `inspect/results/{id}`. |
| 1518 */ |
| 1519 core.String name; |
| 1520 |
| 1521 GooglePrivacyDlpV2beta1InspectOperationResult(); |
| 1522 |
| 1523 GooglePrivacyDlpV2beta1InspectOperationResult.fromJson(core.Map _json) { |
| 1524 if (_json.containsKey("name")) { |
| 1525 name = _json["name"]; |
| 1526 } |
| 1527 } |
| 1528 |
| 1529 core.Map<core.String, core.Object> toJson() { |
| 1530 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1531 if (name != null) { |
| 1532 _json["name"] = name; |
| 1533 } |
| 1534 return _json; |
| 1535 } |
| 1536 } |
| 1537 |
1251 /** All the findings for a single scanned item. */ | 1538 /** All the findings for a single scanned item. */ |
1252 class InspectResult { | 1539 class GooglePrivacyDlpV2beta1InspectResult { |
1253 /** List of findings for an item. */ | 1540 /** List of findings for an item. */ |
1254 core.List<Finding> findings; | 1541 core.List<GooglePrivacyDlpV2beta1Finding> findings; |
1255 /** | 1542 /** |
1256 * If true, then this item might have more findings than were returned, | 1543 * If true, then this item might have more findings than were returned, |
1257 * and the findings returned are an arbitrary subset of all findings. | 1544 * and the findings returned are an arbitrary subset of all findings. |
1258 * The findings list might be truncated because the input items were too | 1545 * The findings list might be truncated because the input items were too |
1259 * large, or because the server reached the maximum amount of resources | 1546 * large, or because the server reached the maximum amount of resources |
1260 * allowed for a single API call. For best results, divide the input into | 1547 * allowed for a single API call. For best results, divide the input into |
1261 * smaller batches. | 1548 * smaller batches. |
1262 */ | 1549 */ |
1263 core.bool findingsTruncated; | 1550 core.bool findingsTruncated; |
1264 | 1551 |
1265 InspectResult(); | 1552 GooglePrivacyDlpV2beta1InspectResult(); |
1266 | 1553 |
1267 InspectResult.fromJson(core.Map _json) { | 1554 GooglePrivacyDlpV2beta1InspectResult.fromJson(core.Map _json) { |
1268 if (_json.containsKey("findings")) { | 1555 if (_json.containsKey("findings")) { |
1269 findings = _json["findings"].map((value) => new Finding.fromJson(value)).t
oList(); | 1556 findings = _json["findings"].map((value) => new GooglePrivacyDlpV2beta1Fin
ding.fromJson(value)).toList(); |
1270 } | 1557 } |
1271 if (_json.containsKey("findingsTruncated")) { | 1558 if (_json.containsKey("findingsTruncated")) { |
1272 findingsTruncated = _json["findingsTruncated"]; | 1559 findingsTruncated = _json["findingsTruncated"]; |
1273 } | 1560 } |
1274 } | 1561 } |
1275 | 1562 |
1276 core.Map<core.String, core.Object> toJson() { | 1563 core.Map<core.String, core.Object> toJson() { |
1277 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1564 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1278 if (findings != null) { | 1565 if (findings != null) { |
1279 _json["findings"] = findings.map((value) => (value).toJson()).toList(); | 1566 _json["findings"] = findings.map((value) => (value).toJson()).toList(); |
1280 } | 1567 } |
1281 if (findingsTruncated != null) { | 1568 if (findingsTruncated != null) { |
1282 _json["findingsTruncated"] = findingsTruncated; | 1569 _json["findingsTruncated"] = findingsTruncated; |
1283 } | 1570 } |
1284 return _json; | 1571 return _json; |
1285 } | 1572 } |
1286 } | 1573 } |
1287 | 1574 |
1288 /** | 1575 /** |
1289 * A unique identifier for a Datastore entity. | 1576 * A unique identifier for a Datastore entity. |
1290 * If a key's partition ID or any of its path kinds or names are | 1577 * If a key's partition ID or any of its path kinds or names are |
1291 * reserved/read-only, the key is reserved/read-only. | 1578 * reserved/read-only, the key is reserved/read-only. |
1292 * A reserved/read-only key is forbidden in certain documented contexts. | 1579 * A reserved/read-only key is forbidden in certain documented contexts. |
1293 */ | 1580 */ |
1294 class Key { | 1581 class GooglePrivacyDlpV2beta1Key { |
1295 /** | 1582 /** |
1296 * Entities are partitioned into subsets, currently identified by a project | 1583 * Entities are partitioned into subsets, currently identified by a project |
1297 * ID and namespace ID. | 1584 * ID and namespace ID. |
1298 * Queries are scoped to a single partition. | 1585 * Queries are scoped to a single partition. |
1299 */ | 1586 */ |
1300 PartitionId partitionId; | 1587 GooglePrivacyDlpV2beta1PartitionId partitionId; |
1301 /** | 1588 /** |
1302 * The entity path. | 1589 * The entity path. |
1303 * An entity path consists of one or more elements composed of a kind and a | 1590 * An entity path consists of one or more elements composed of a kind and a |
1304 * string or numerical identifier, which identify entities. The first | 1591 * string or numerical identifier, which identify entities. The first |
1305 * element identifies a _root entity_, the second element identifies | 1592 * element identifies a _root entity_, the second element identifies |
1306 * a _child_ of the root entity, the third element identifies a child of the | 1593 * a _child_ of the root entity, the third element identifies a child of the |
1307 * second entity, and so forth. The entities identified by all prefixes of | 1594 * second entity, and so forth. The entities identified by all prefixes of |
1308 * the path are called the element's _ancestors_. | 1595 * the path are called the element's _ancestors_. |
1309 * | 1596 * |
1310 * A path can never be empty, and a path can have at most 100 elements. | 1597 * A path can never be empty, and a path can have at most 100 elements. |
1311 */ | 1598 */ |
1312 core.List<PathElement> path; | 1599 core.List<GooglePrivacyDlpV2beta1PathElement> path; |
1313 | 1600 |
1314 Key(); | 1601 GooglePrivacyDlpV2beta1Key(); |
1315 | 1602 |
1316 Key.fromJson(core.Map _json) { | 1603 GooglePrivacyDlpV2beta1Key.fromJson(core.Map _json) { |
1317 if (_json.containsKey("partitionId")) { | 1604 if (_json.containsKey("partitionId")) { |
1318 partitionId = new PartitionId.fromJson(_json["partitionId"]); | 1605 partitionId = new GooglePrivacyDlpV2beta1PartitionId.fromJson(_json["parti
tionId"]); |
1319 } | 1606 } |
1320 if (_json.containsKey("path")) { | 1607 if (_json.containsKey("path")) { |
1321 path = _json["path"].map((value) => new PathElement.fromJson(value)).toLis
t(); | 1608 path = _json["path"].map((value) => new GooglePrivacyDlpV2beta1PathElement
.fromJson(value)).toList(); |
1322 } | 1609 } |
1323 } | 1610 } |
1324 | 1611 |
1325 core.Map<core.String, core.Object> toJson() { | 1612 core.Map<core.String, core.Object> toJson() { |
1326 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1613 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1327 if (partitionId != null) { | 1614 if (partitionId != null) { |
1328 _json["partitionId"] = (partitionId).toJson(); | 1615 _json["partitionId"] = (partitionId).toJson(); |
1329 } | 1616 } |
1330 if (path != null) { | 1617 if (path != null) { |
1331 _json["path"] = path.map((value) => (value).toJson()).toList(); | 1618 _json["path"] = path.map((value) => (value).toJson()).toList(); |
1332 } | 1619 } |
1333 return _json; | 1620 return _json; |
1334 } | 1621 } |
1335 } | 1622 } |
1336 | 1623 |
1337 /** A representation of a Datastore kind. */ | 1624 /** A representation of a Datastore kind. */ |
1338 class KindExpression { | 1625 class GooglePrivacyDlpV2beta1KindExpression { |
1339 /** The name of the kind. */ | 1626 /** The name of the kind. */ |
1340 core.String name; | 1627 core.String name; |
1341 | 1628 |
1342 KindExpression(); | 1629 GooglePrivacyDlpV2beta1KindExpression(); |
1343 | 1630 |
1344 KindExpression.fromJson(core.Map _json) { | 1631 GooglePrivacyDlpV2beta1KindExpression.fromJson(core.Map _json) { |
1345 if (_json.containsKey("name")) { | 1632 if (_json.containsKey("name")) { |
1346 name = _json["name"]; | 1633 name = _json["name"]; |
1347 } | 1634 } |
1348 } | 1635 } |
1349 | 1636 |
1350 core.Map<core.String, core.Object> toJson() { | 1637 core.Map<core.String, core.Object> toJson() { |
1351 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1638 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1352 if (name != null) { | 1639 if (name != null) { |
1353 _json["name"] = name; | 1640 _json["name"] = name; |
1354 } | 1641 } |
1355 return _json; | 1642 return _json; |
1356 } | 1643 } |
1357 } | 1644 } |
1358 | 1645 |
1359 /** Response to the ListInfoTypes request. */ | 1646 /** Response to the ListInfoTypes request. */ |
1360 class ListInfoTypesResponse { | 1647 class GooglePrivacyDlpV2beta1ListInfoTypesResponse { |
1361 /** Set of sensitive info types belonging to a category. */ | 1648 /** Set of sensitive info types belonging to a category. */ |
1362 core.List<InfoTypeDescription> infoTypes; | 1649 core.List<GooglePrivacyDlpV2beta1InfoTypeDescription> infoTypes; |
1363 | 1650 |
1364 ListInfoTypesResponse(); | 1651 GooglePrivacyDlpV2beta1ListInfoTypesResponse(); |
1365 | 1652 |
1366 ListInfoTypesResponse.fromJson(core.Map _json) { | 1653 GooglePrivacyDlpV2beta1ListInfoTypesResponse.fromJson(core.Map _json) { |
1367 if (_json.containsKey("infoTypes")) { | 1654 if (_json.containsKey("infoTypes")) { |
1368 infoTypes = _json["infoTypes"].map((value) => new InfoTypeDescription.from
Json(value)).toList(); | 1655 infoTypes = _json["infoTypes"].map((value) => new GooglePrivacyDlpV2beta1I
nfoTypeDescription.fromJson(value)).toList(); |
1369 } | 1656 } |
1370 } | 1657 } |
1371 | 1658 |
1372 core.Map<core.String, core.Object> toJson() { | 1659 core.Map<core.String, core.Object> toJson() { |
1373 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1660 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1374 if (infoTypes != null) { | 1661 if (infoTypes != null) { |
1375 _json["infoTypes"] = infoTypes.map((value) => (value).toJson()).toList(); | 1662 _json["infoTypes"] = infoTypes.map((value) => (value).toJson()).toList(); |
1376 } | 1663 } |
1377 return _json; | 1664 return _json; |
1378 } | 1665 } |
1379 } | 1666 } |
1380 | 1667 |
1381 /** Response to the ListInspectFindings request. */ | 1668 /** Response to the ListInspectFindings request. */ |
1382 class ListInspectFindingsResponse { | 1669 class GooglePrivacyDlpV2beta1ListInspectFindingsResponse { |
1383 /** | 1670 /** |
1384 * If not empty, indicates that there may be more results that match the | 1671 * If not empty, indicates that there may be more results that match the |
1385 * request; this value should be passed in a new `ListInspectFindingsRequest`. | 1672 * request; this value should be passed in a new `ListInspectFindingsRequest`. |
1386 */ | 1673 */ |
1387 core.String nextPageToken; | 1674 core.String nextPageToken; |
1388 /** The results. */ | 1675 /** The results. */ |
1389 InspectResult result; | 1676 GooglePrivacyDlpV2beta1InspectResult result; |
1390 | 1677 |
1391 ListInspectFindingsResponse(); | 1678 GooglePrivacyDlpV2beta1ListInspectFindingsResponse(); |
1392 | 1679 |
1393 ListInspectFindingsResponse.fromJson(core.Map _json) { | 1680 GooglePrivacyDlpV2beta1ListInspectFindingsResponse.fromJson(core.Map _json) { |
1394 if (_json.containsKey("nextPageToken")) { | 1681 if (_json.containsKey("nextPageToken")) { |
1395 nextPageToken = _json["nextPageToken"]; | 1682 nextPageToken = _json["nextPageToken"]; |
1396 } | 1683 } |
1397 if (_json.containsKey("result")) { | 1684 if (_json.containsKey("result")) { |
1398 result = new InspectResult.fromJson(_json["result"]); | 1685 result = new GooglePrivacyDlpV2beta1InspectResult.fromJson(_json["result"]
); |
1399 } | 1686 } |
1400 } | 1687 } |
1401 | 1688 |
1402 core.Map<core.String, core.Object> toJson() { | 1689 core.Map<core.String, core.Object> toJson() { |
1403 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1690 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1404 if (nextPageToken != null) { | 1691 if (nextPageToken != null) { |
1405 _json["nextPageToken"] = nextPageToken; | 1692 _json["nextPageToken"] = nextPageToken; |
1406 } | 1693 } |
1407 if (result != null) { | 1694 if (result != null) { |
1408 _json["result"] = (result).toJson(); | 1695 _json["result"] = (result).toJson(); |
1409 } | 1696 } |
1410 return _json; | 1697 return _json; |
1411 } | 1698 } |
1412 } | 1699 } |
1413 | 1700 |
1414 /** The response message for Operations.ListOperations. */ | |
1415 class ListOperationsResponse { | |
1416 /** The standard List next-page token. */ | |
1417 core.String nextPageToken; | |
1418 /** A list of operations that matches the specified filter in the request. */ | |
1419 core.List<Operation> operations; | |
1420 | |
1421 ListOperationsResponse(); | |
1422 | |
1423 ListOperationsResponse.fromJson(core.Map _json) { | |
1424 if (_json.containsKey("nextPageToken")) { | |
1425 nextPageToken = _json["nextPageToken"]; | |
1426 } | |
1427 if (_json.containsKey("operations")) { | |
1428 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); | |
1429 } | |
1430 } | |
1431 | |
1432 core.Map<core.String, core.Object> toJson() { | |
1433 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | |
1434 if (nextPageToken != null) { | |
1435 _json["nextPageToken"] = nextPageToken; | |
1436 } | |
1437 if (operations != null) { | |
1438 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | |
1439 } | |
1440 return _json; | |
1441 } | |
1442 } | |
1443 | |
1444 /** Response for ListRootCategories request. */ | 1701 /** Response for ListRootCategories request. */ |
1445 class ListRootCategoriesResponse { | 1702 class GooglePrivacyDlpV2beta1ListRootCategoriesResponse { |
1446 /** List of all into type categories supported by the API. */ | 1703 /** List of all into type categories supported by the API. */ |
1447 core.List<CategoryDescription> categories; | 1704 core.List<GooglePrivacyDlpV2beta1CategoryDescription> categories; |
1448 | 1705 |
1449 ListRootCategoriesResponse(); | 1706 GooglePrivacyDlpV2beta1ListRootCategoriesResponse(); |
1450 | 1707 |
1451 ListRootCategoriesResponse.fromJson(core.Map _json) { | 1708 GooglePrivacyDlpV2beta1ListRootCategoriesResponse.fromJson(core.Map _json) { |
1452 if (_json.containsKey("categories")) { | 1709 if (_json.containsKey("categories")) { |
1453 categories = _json["categories"].map((value) => new CategoryDescription.fr
omJson(value)).toList(); | 1710 categories = _json["categories"].map((value) => new GooglePrivacyDlpV2beta
1CategoryDescription.fromJson(value)).toList(); |
1454 } | 1711 } |
1455 } | 1712 } |
1456 | 1713 |
1457 core.Map<core.String, core.Object> toJson() { | 1714 core.Map<core.String, core.Object> toJson() { |
1458 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1715 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1459 if (categories != null) { | 1716 if (categories != null) { |
1460 _json["categories"] = categories.map((value) => (value).toJson()).toList()
; | 1717 _json["categories"] = categories.map((value) => (value).toJson()).toList()
; |
1461 } | 1718 } |
1462 return _json; | 1719 return _json; |
1463 } | 1720 } |
1464 } | 1721 } |
1465 | 1722 |
1466 /** Specifies the location of a finding within its source item. */ | 1723 /** Specifies the location of a finding within its source item. */ |
1467 class Location { | 1724 class GooglePrivacyDlpV2beta1Location { |
1468 /** Zero-based byte offsets within a content item. */ | 1725 /** Zero-based byte offsets within a content item. */ |
1469 Range byteRange; | 1726 GooglePrivacyDlpV2beta1Range byteRange; |
1470 /** | 1727 /** |
1471 * Character offsets within a content item, included when content type | 1728 * Character offsets within a content item, included when content type |
1472 * is a text. Default charset assumed to be UTF-8. | 1729 * is a text. Default charset assumed to be UTF-8. |
1473 */ | 1730 */ |
1474 Range codepointRange; | 1731 GooglePrivacyDlpV2beta1Range codepointRange; |
1475 /** Field id of the field containing the finding. */ | 1732 /** Field id of the field containing the finding. */ |
1476 FieldId fieldId; | 1733 GooglePrivacyDlpV2beta1FieldId fieldId; |
1477 /** Location within an image's pixels. */ | 1734 /** Location within an image's pixels. */ |
1478 core.List<ImageLocation> imageBoxes; | 1735 core.List<GooglePrivacyDlpV2beta1ImageLocation> imageBoxes; |
1479 /** Key of the finding. */ | 1736 /** Key of the finding. */ |
1480 RecordKey recordKey; | 1737 GooglePrivacyDlpV2beta1RecordKey recordKey; |
1481 | 1738 |
1482 Location(); | 1739 GooglePrivacyDlpV2beta1Location(); |
1483 | 1740 |
1484 Location.fromJson(core.Map _json) { | 1741 GooglePrivacyDlpV2beta1Location.fromJson(core.Map _json) { |
1485 if (_json.containsKey("byteRange")) { | 1742 if (_json.containsKey("byteRange")) { |
1486 byteRange = new Range.fromJson(_json["byteRange"]); | 1743 byteRange = new GooglePrivacyDlpV2beta1Range.fromJson(_json["byteRange"]); |
1487 } | 1744 } |
1488 if (_json.containsKey("codepointRange")) { | 1745 if (_json.containsKey("codepointRange")) { |
1489 codepointRange = new Range.fromJson(_json["codepointRange"]); | 1746 codepointRange = new GooglePrivacyDlpV2beta1Range.fromJson(_json["codepoin
tRange"]); |
1490 } | 1747 } |
1491 if (_json.containsKey("fieldId")) { | 1748 if (_json.containsKey("fieldId")) { |
1492 fieldId = new FieldId.fromJson(_json["fieldId"]); | 1749 fieldId = new GooglePrivacyDlpV2beta1FieldId.fromJson(_json["fieldId"]); |
1493 } | 1750 } |
1494 if (_json.containsKey("imageBoxes")) { | 1751 if (_json.containsKey("imageBoxes")) { |
1495 imageBoxes = _json["imageBoxes"].map((value) => new ImageLocation.fromJson
(value)).toList(); | 1752 imageBoxes = _json["imageBoxes"].map((value) => new GooglePrivacyDlpV2beta
1ImageLocation.fromJson(value)).toList(); |
1496 } | 1753 } |
1497 if (_json.containsKey("recordKey")) { | 1754 if (_json.containsKey("recordKey")) { |
1498 recordKey = new RecordKey.fromJson(_json["recordKey"]); | 1755 recordKey = new GooglePrivacyDlpV2beta1RecordKey.fromJson(_json["recordKey
"]); |
1499 } | 1756 } |
1500 } | 1757 } |
1501 | 1758 |
1502 core.Map<core.String, core.Object> toJson() { | 1759 core.Map<core.String, core.Object> toJson() { |
1503 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1760 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1504 if (byteRange != null) { | 1761 if (byteRange != null) { |
1505 _json["byteRange"] = (byteRange).toJson(); | 1762 _json["byteRange"] = (byteRange).toJson(); |
1506 } | 1763 } |
1507 if (codepointRange != null) { | 1764 if (codepointRange != null) { |
1508 _json["codepointRange"] = (codepointRange).toJson(); | 1765 _json["codepointRange"] = (codepointRange).toJson(); |
1509 } | 1766 } |
1510 if (fieldId != null) { | 1767 if (fieldId != null) { |
1511 _json["fieldId"] = (fieldId).toJson(); | 1768 _json["fieldId"] = (fieldId).toJson(); |
1512 } | 1769 } |
1513 if (imageBoxes != null) { | 1770 if (imageBoxes != null) { |
1514 _json["imageBoxes"] = imageBoxes.map((value) => (value).toJson()).toList()
; | 1771 _json["imageBoxes"] = imageBoxes.map((value) => (value).toJson()).toList()
; |
1515 } | 1772 } |
1516 if (recordKey != null) { | 1773 if (recordKey != null) { |
1517 _json["recordKey"] = (recordKey).toJson(); | 1774 _json["recordKey"] = (recordKey).toJson(); |
1518 } | 1775 } |
1519 return _json; | 1776 return _json; |
1520 } | 1777 } |
1521 } | 1778 } |
1522 | 1779 |
1523 /** | |
1524 * This resource represents a long-running operation that is the result of a | |
1525 * network API call. | |
1526 */ | |
1527 class Operation { | |
1528 /** | |
1529 * If the value is `false`, it means the operation is still in progress. | |
1530 * If true, the operation is completed, and either `error` or `response` is | |
1531 * available. | |
1532 */ | |
1533 core.bool done; | |
1534 /** The error result of the operation in case of failure or cancellation. */ | |
1535 Status error; | |
1536 /** | |
1537 * This field will contain an `InspectOperationMetadata` object. | |
1538 * | |
1539 * The values for Object must be JSON objects. It can consist of `num`, | |
1540 * `String`, `bool` and `null` as well as `Map` and `List` values. | |
1541 */ | |
1542 core.Map<core.String, core.Object> metadata; | |
1543 /** | |
1544 * The server-assigned name, The `name` should have the format of | |
1545 * `inspect/operations/<identifier>`. | |
1546 */ | |
1547 core.String name; | |
1548 /** | |
1549 * This field will contain an `InspectOperationResult` object. | |
1550 * | |
1551 * The values for Object must be JSON objects. It can consist of `num`, | |
1552 * `String`, `bool` and `null` as well as `Map` and `List` values. | |
1553 */ | |
1554 core.Map<core.String, core.Object> response; | |
1555 | |
1556 Operation(); | |
1557 | |
1558 Operation.fromJson(core.Map _json) { | |
1559 if (_json.containsKey("done")) { | |
1560 done = _json["done"]; | |
1561 } | |
1562 if (_json.containsKey("error")) { | |
1563 error = new Status.fromJson(_json["error"]); | |
1564 } | |
1565 if (_json.containsKey("metadata")) { | |
1566 metadata = _json["metadata"]; | |
1567 } | |
1568 if (_json.containsKey("name")) { | |
1569 name = _json["name"]; | |
1570 } | |
1571 if (_json.containsKey("response")) { | |
1572 response = _json["response"]; | |
1573 } | |
1574 } | |
1575 | |
1576 core.Map<core.String, core.Object> toJson() { | |
1577 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | |
1578 if (done != null) { | |
1579 _json["done"] = done; | |
1580 } | |
1581 if (error != null) { | |
1582 _json["error"] = (error).toJson(); | |
1583 } | |
1584 if (metadata != null) { | |
1585 _json["metadata"] = metadata; | |
1586 } | |
1587 if (name != null) { | |
1588 _json["name"] = name; | |
1589 } | |
1590 if (response != null) { | |
1591 _json["response"] = response; | |
1592 } | |
1593 return _json; | |
1594 } | |
1595 } | |
1596 | |
1597 /** Cloud repository for storing output. */ | 1780 /** Cloud repository for storing output. */ |
1598 class OutputStorageConfig { | 1781 class GooglePrivacyDlpV2beta1OutputStorageConfig { |
1599 /** The path to a Google Cloud Storage location to store output. */ | 1782 /** The path to a Google Cloud Storage location to store output. */ |
1600 CloudStoragePath storagePath; | 1783 GooglePrivacyDlpV2beta1CloudStoragePath storagePath; |
1601 | 1784 |
1602 OutputStorageConfig(); | 1785 GooglePrivacyDlpV2beta1OutputStorageConfig(); |
1603 | 1786 |
1604 OutputStorageConfig.fromJson(core.Map _json) { | 1787 GooglePrivacyDlpV2beta1OutputStorageConfig.fromJson(core.Map _json) { |
1605 if (_json.containsKey("storagePath")) { | 1788 if (_json.containsKey("storagePath")) { |
1606 storagePath = new CloudStoragePath.fromJson(_json["storagePath"]); | 1789 storagePath = new GooglePrivacyDlpV2beta1CloudStoragePath.fromJson(_json["
storagePath"]); |
1607 } | 1790 } |
1608 } | 1791 } |
1609 | 1792 |
1610 core.Map<core.String, core.Object> toJson() { | 1793 core.Map<core.String, core.Object> toJson() { |
1611 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1794 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1612 if (storagePath != null) { | 1795 if (storagePath != null) { |
1613 _json["storagePath"] = (storagePath).toJson(); | 1796 _json["storagePath"] = (storagePath).toJson(); |
1614 } | 1797 } |
1615 return _json; | 1798 return _json; |
1616 } | 1799 } |
1617 } | 1800 } |
1618 | 1801 |
1619 /** | 1802 /** |
1620 * Datastore partition ID. | 1803 * Datastore partition ID. |
1621 * A partition ID identifies a grouping of entities. The grouping is always | 1804 * A partition ID identifies a grouping of entities. The grouping is always |
1622 * by project and namespace, however the namespace ID may be empty. | 1805 * by project and namespace, however the namespace ID may be empty. |
1623 * | 1806 * |
1624 * A partition ID contains several dimensions: | 1807 * A partition ID contains several dimensions: |
1625 * project ID and namespace ID. | 1808 * project ID and namespace ID. |
1626 */ | 1809 */ |
1627 class PartitionId { | 1810 class GooglePrivacyDlpV2beta1PartitionId { |
1628 /** If not empty, the ID of the namespace to which the entities belong. */ | 1811 /** If not empty, the ID of the namespace to which the entities belong. */ |
1629 core.String namespaceId; | 1812 core.String namespaceId; |
1630 /** The ID of the project to which the entities belong. */ | 1813 /** The ID of the project to which the entities belong. */ |
1631 core.String projectId; | 1814 core.String projectId; |
1632 | 1815 |
1633 PartitionId(); | 1816 GooglePrivacyDlpV2beta1PartitionId(); |
1634 | 1817 |
1635 PartitionId.fromJson(core.Map _json) { | 1818 GooglePrivacyDlpV2beta1PartitionId.fromJson(core.Map _json) { |
1636 if (_json.containsKey("namespaceId")) { | 1819 if (_json.containsKey("namespaceId")) { |
1637 namespaceId = _json["namespaceId"]; | 1820 namespaceId = _json["namespaceId"]; |
1638 } | 1821 } |
1639 if (_json.containsKey("projectId")) { | 1822 if (_json.containsKey("projectId")) { |
1640 projectId = _json["projectId"]; | 1823 projectId = _json["projectId"]; |
1641 } | 1824 } |
1642 } | 1825 } |
1643 | 1826 |
1644 core.Map<core.String, core.Object> toJson() { | 1827 core.Map<core.String, core.Object> toJson() { |
1645 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1828 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1646 if (namespaceId != null) { | 1829 if (namespaceId != null) { |
1647 _json["namespaceId"] = namespaceId; | 1830 _json["namespaceId"] = namespaceId; |
1648 } | 1831 } |
1649 if (projectId != null) { | 1832 if (projectId != null) { |
1650 _json["projectId"] = projectId; | 1833 _json["projectId"] = projectId; |
1651 } | 1834 } |
1652 return _json; | 1835 return _json; |
1653 } | 1836 } |
1654 } | 1837 } |
1655 | 1838 |
1656 /** | 1839 /** |
1657 * A (kind, ID/name) pair used to construct a key path. | 1840 * A (kind, ID/name) pair used to construct a key path. |
1658 * | 1841 * |
1659 * If either name or ID is set, the element is complete. | 1842 * If either name or ID is set, the element is complete. |
1660 * If neither is set, the element is incomplete. | 1843 * If neither is set, the element is incomplete. |
1661 */ | 1844 */ |
1662 class PathElement { | 1845 class GooglePrivacyDlpV2beta1PathElement { |
1663 /** | 1846 /** |
1664 * The auto-allocated ID of the entity. | 1847 * The auto-allocated ID of the entity. |
1665 * Never equal to zero. Values less than zero are discouraged and may not | 1848 * Never equal to zero. Values less than zero are discouraged and may not |
1666 * be supported in the future. | 1849 * be supported in the future. |
1667 */ | 1850 */ |
1668 core.String id; | 1851 core.String id; |
1669 /** | 1852 /** |
1670 * The kind of the entity. | 1853 * The kind of the entity. |
1671 * A kind matching regex `__.*__` is reserved/read-only. | 1854 * A kind matching regex `__.*__` is reserved/read-only. |
1672 * A kind must not contain more than 1500 bytes when UTF-8 encoded. | 1855 * A kind must not contain more than 1500 bytes when UTF-8 encoded. |
1673 * Cannot be `""`. | 1856 * Cannot be `""`. |
1674 */ | 1857 */ |
1675 core.String kind; | 1858 core.String kind; |
1676 /** | 1859 /** |
1677 * The name of the entity. | 1860 * The name of the entity. |
1678 * A name matching regex `__.*__` is reserved/read-only. | 1861 * A name matching regex `__.*__` is reserved/read-only. |
1679 * A name must not be more than 1500 bytes when UTF-8 encoded. | 1862 * A name must not be more than 1500 bytes when UTF-8 encoded. |
1680 * Cannot be `""`. | 1863 * Cannot be `""`. |
1681 */ | 1864 */ |
1682 core.String name; | 1865 core.String name; |
1683 | 1866 |
1684 PathElement(); | 1867 GooglePrivacyDlpV2beta1PathElement(); |
1685 | 1868 |
1686 PathElement.fromJson(core.Map _json) { | 1869 GooglePrivacyDlpV2beta1PathElement.fromJson(core.Map _json) { |
1687 if (_json.containsKey("id")) { | 1870 if (_json.containsKey("id")) { |
1688 id = _json["id"]; | 1871 id = _json["id"]; |
1689 } | 1872 } |
1690 if (_json.containsKey("kind")) { | 1873 if (_json.containsKey("kind")) { |
1691 kind = _json["kind"]; | 1874 kind = _json["kind"]; |
1692 } | 1875 } |
1693 if (_json.containsKey("name")) { | 1876 if (_json.containsKey("name")) { |
1694 name = _json["name"]; | 1877 name = _json["name"]; |
1695 } | 1878 } |
1696 } | 1879 } |
1697 | 1880 |
1698 core.Map<core.String, core.Object> toJson() { | 1881 core.Map<core.String, core.Object> toJson() { |
1699 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1882 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1700 if (id != null) { | 1883 if (id != null) { |
1701 _json["id"] = id; | 1884 _json["id"] = id; |
1702 } | 1885 } |
1703 if (kind != null) { | 1886 if (kind != null) { |
1704 _json["kind"] = kind; | 1887 _json["kind"] = kind; |
1705 } | 1888 } |
1706 if (name != null) { | 1889 if (name != null) { |
1707 _json["name"] = name; | 1890 _json["name"] = name; |
1708 } | 1891 } |
1709 return _json; | 1892 return _json; |
1710 } | 1893 } |
1711 } | 1894 } |
1712 | 1895 |
1713 /** A representation of a Datastore property in a projection. */ | 1896 /** A representation of a Datastore property in a projection. */ |
1714 class Projection { | 1897 class GooglePrivacyDlpV2beta1Projection { |
1715 /** The property to project. */ | 1898 /** The property to project. */ |
1716 PropertyReference property; | 1899 GooglePrivacyDlpV2beta1PropertyReference property; |
1717 | 1900 |
1718 Projection(); | 1901 GooglePrivacyDlpV2beta1Projection(); |
1719 | 1902 |
1720 Projection.fromJson(core.Map _json) { | 1903 GooglePrivacyDlpV2beta1Projection.fromJson(core.Map _json) { |
1721 if (_json.containsKey("property")) { | 1904 if (_json.containsKey("property")) { |
1722 property = new PropertyReference.fromJson(_json["property"]); | 1905 property = new GooglePrivacyDlpV2beta1PropertyReference.fromJson(_json["pr
operty"]); |
1723 } | 1906 } |
1724 } | 1907 } |
1725 | 1908 |
1726 core.Map<core.String, core.Object> toJson() { | 1909 core.Map<core.String, core.Object> toJson() { |
1727 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1910 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1728 if (property != null) { | 1911 if (property != null) { |
1729 _json["property"] = (property).toJson(); | 1912 _json["property"] = (property).toJson(); |
1730 } | 1913 } |
1731 return _json; | 1914 return _json; |
1732 } | 1915 } |
1733 } | 1916 } |
1734 | 1917 |
1735 /** A reference to a property relative to the Datastore kind expressions. */ | 1918 /** A reference to a property relative to the Datastore kind expressions. */ |
1736 class PropertyReference { | 1919 class GooglePrivacyDlpV2beta1PropertyReference { |
1737 /** | 1920 /** |
1738 * The name of the property. | 1921 * The name of the property. |
1739 * If name includes "."s, it may be interpreted as a property name path. | 1922 * If name includes "."s, it may be interpreted as a property name path. |
1740 */ | 1923 */ |
1741 core.String name; | 1924 core.String name; |
1742 | 1925 |
1743 PropertyReference(); | 1926 GooglePrivacyDlpV2beta1PropertyReference(); |
1744 | 1927 |
1745 PropertyReference.fromJson(core.Map _json) { | 1928 GooglePrivacyDlpV2beta1PropertyReference.fromJson(core.Map _json) { |
1746 if (_json.containsKey("name")) { | 1929 if (_json.containsKey("name")) { |
1747 name = _json["name"]; | 1930 name = _json["name"]; |
1748 } | 1931 } |
1749 } | 1932 } |
1750 | 1933 |
1751 core.Map<core.String, core.Object> toJson() { | 1934 core.Map<core.String, core.Object> toJson() { |
1752 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1935 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1753 if (name != null) { | 1936 if (name != null) { |
1754 _json["name"] = name; | 1937 _json["name"] = name; |
1755 } | 1938 } |
1756 return _json; | 1939 return _json; |
1757 } | 1940 } |
1758 } | 1941 } |
1759 | 1942 |
1760 /** Generic half-open interval [start, end) */ | 1943 /** Generic half-open interval [start, end) */ |
1761 class Range { | 1944 class GooglePrivacyDlpV2beta1Range { |
1762 /** Index of the last character of the range (exclusive). */ | 1945 /** Index of the last character of the range (exclusive). */ |
1763 core.String end; | 1946 core.String end; |
1764 /** Index of the first character of the range (inclusive). */ | 1947 /** Index of the first character of the range (inclusive). */ |
1765 core.String start; | 1948 core.String start; |
1766 | 1949 |
1767 Range(); | 1950 GooglePrivacyDlpV2beta1Range(); |
1768 | 1951 |
1769 Range.fromJson(core.Map _json) { | 1952 GooglePrivacyDlpV2beta1Range.fromJson(core.Map _json) { |
1770 if (_json.containsKey("end")) { | 1953 if (_json.containsKey("end")) { |
1771 end = _json["end"]; | 1954 end = _json["end"]; |
1772 } | 1955 } |
1773 if (_json.containsKey("start")) { | 1956 if (_json.containsKey("start")) { |
1774 start = _json["start"]; | 1957 start = _json["start"]; |
1775 } | 1958 } |
1776 } | 1959 } |
1777 | 1960 |
1778 core.Map<core.String, core.Object> toJson() { | 1961 core.Map<core.String, core.Object> toJson() { |
1779 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1962 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1780 if (end != null) { | 1963 if (end != null) { |
1781 _json["end"] = end; | 1964 _json["end"] = end; |
1782 } | 1965 } |
1783 if (start != null) { | 1966 if (start != null) { |
1784 _json["start"] = start; | 1967 _json["start"] = start; |
1785 } | 1968 } |
1786 return _json; | 1969 return _json; |
1787 } | 1970 } |
1788 } | 1971 } |
1789 | 1972 |
1790 /** Message for a unique key indicating a record that contains a finding. */ | 1973 /** Message for a unique key indicating a record that contains a finding. */ |
1791 class RecordKey { | 1974 class GooglePrivacyDlpV2beta1RecordKey { |
1792 CloudStorageKey cloudStorageKey; | 1975 GooglePrivacyDlpV2beta1CloudStorageKey cloudStorageKey; |
1793 DatastoreKey datastoreKey; | 1976 GooglePrivacyDlpV2beta1DatastoreKey datastoreKey; |
1794 | 1977 |
1795 RecordKey(); | 1978 GooglePrivacyDlpV2beta1RecordKey(); |
1796 | 1979 |
1797 RecordKey.fromJson(core.Map _json) { | 1980 GooglePrivacyDlpV2beta1RecordKey.fromJson(core.Map _json) { |
1798 if (_json.containsKey("cloudStorageKey")) { | 1981 if (_json.containsKey("cloudStorageKey")) { |
1799 cloudStorageKey = new CloudStorageKey.fromJson(_json["cloudStorageKey"]); | 1982 cloudStorageKey = new GooglePrivacyDlpV2beta1CloudStorageKey.fromJson(_jso
n["cloudStorageKey"]); |
1800 } | 1983 } |
1801 if (_json.containsKey("datastoreKey")) { | 1984 if (_json.containsKey("datastoreKey")) { |
1802 datastoreKey = new DatastoreKey.fromJson(_json["datastoreKey"]); | 1985 datastoreKey = new GooglePrivacyDlpV2beta1DatastoreKey.fromJson(_json["dat
astoreKey"]); |
1803 } | 1986 } |
1804 } | 1987 } |
1805 | 1988 |
1806 core.Map<core.String, core.Object> toJson() { | 1989 core.Map<core.String, core.Object> toJson() { |
1807 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1990 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1808 if (cloudStorageKey != null) { | 1991 if (cloudStorageKey != null) { |
1809 _json["cloudStorageKey"] = (cloudStorageKey).toJson(); | 1992 _json["cloudStorageKey"] = (cloudStorageKey).toJson(); |
1810 } | 1993 } |
1811 if (datastoreKey != null) { | 1994 if (datastoreKey != null) { |
1812 _json["datastoreKey"] = (datastoreKey).toJson(); | 1995 _json["datastoreKey"] = (datastoreKey).toJson(); |
1813 } | 1996 } |
1814 return _json; | 1997 return _json; |
1815 } | 1998 } |
1816 } | 1999 } |
1817 | 2000 |
1818 /** | 2001 /** |
1819 * Request to search for potentially sensitive info in a list of items | 2002 * Request to search for potentially sensitive info in a list of items |
1820 * and replace it with a default or provided content. | 2003 * and replace it with a default or provided content. |
1821 */ | 2004 */ |
1822 class RedactContentRequest { | 2005 class GooglePrivacyDlpV2beta1RedactContentRequest { |
| 2006 /** The configuration for specifying what content to redact from images. */ |
| 2007 core.List<GooglePrivacyDlpV2beta1ImageRedactionConfig> imageRedactionConfigs; |
1823 /** Configuration for the inspector. */ | 2008 /** Configuration for the inspector. */ |
1824 InspectConfig inspectConfig; | 2009 GooglePrivacyDlpV2beta1InspectConfig inspectConfig; |
1825 /** The list of items to inspect. Up to 100 are allowed per request. */ | 2010 /** The list of items to inspect. Up to 100 are allowed per request. */ |
1826 core.List<ContentItem> items; | 2011 core.List<GooglePrivacyDlpV2beta1ContentItem> items; |
1827 /** The strings to replace findings with. Must specify at least one. */ | 2012 /** |
1828 core.List<ReplaceConfig> replaceConfigs; | 2013 * The strings to replace findings text findings with. Must specify at least |
| 2014 * one of these or one ImageRedactionConfig if redacting images. |
| 2015 */ |
| 2016 core.List<GooglePrivacyDlpV2beta1ReplaceConfig> replaceConfigs; |
1829 | 2017 |
1830 RedactContentRequest(); | 2018 GooglePrivacyDlpV2beta1RedactContentRequest(); |
1831 | 2019 |
1832 RedactContentRequest.fromJson(core.Map _json) { | 2020 GooglePrivacyDlpV2beta1RedactContentRequest.fromJson(core.Map _json) { |
| 2021 if (_json.containsKey("imageRedactionConfigs")) { |
| 2022 imageRedactionConfigs = _json["imageRedactionConfigs"].map((value) => new
GooglePrivacyDlpV2beta1ImageRedactionConfig.fromJson(value)).toList(); |
| 2023 } |
1833 if (_json.containsKey("inspectConfig")) { | 2024 if (_json.containsKey("inspectConfig")) { |
1834 inspectConfig = new InspectConfig.fromJson(_json["inspectConfig"]); | 2025 inspectConfig = new GooglePrivacyDlpV2beta1InspectConfig.fromJson(_json["i
nspectConfig"]); |
1835 } | 2026 } |
1836 if (_json.containsKey("items")) { | 2027 if (_json.containsKey("items")) { |
1837 items = _json["items"].map((value) => new ContentItem.fromJson(value)).toL
ist(); | 2028 items = _json["items"].map((value) => new GooglePrivacyDlpV2beta1ContentIt
em.fromJson(value)).toList(); |
1838 } | 2029 } |
1839 if (_json.containsKey("replaceConfigs")) { | 2030 if (_json.containsKey("replaceConfigs")) { |
1840 replaceConfigs = _json["replaceConfigs"].map((value) => new ReplaceConfig.
fromJson(value)).toList(); | 2031 replaceConfigs = _json["replaceConfigs"].map((value) => new GooglePrivacyD
lpV2beta1ReplaceConfig.fromJson(value)).toList(); |
1841 } | 2032 } |
1842 } | 2033 } |
1843 | 2034 |
1844 core.Map<core.String, core.Object> toJson() { | 2035 core.Map<core.String, core.Object> toJson() { |
1845 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2036 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2037 if (imageRedactionConfigs != null) { |
| 2038 _json["imageRedactionConfigs"] = imageRedactionConfigs.map((value) => (val
ue).toJson()).toList(); |
| 2039 } |
1846 if (inspectConfig != null) { | 2040 if (inspectConfig != null) { |
1847 _json["inspectConfig"] = (inspectConfig).toJson(); | 2041 _json["inspectConfig"] = (inspectConfig).toJson(); |
1848 } | 2042 } |
1849 if (items != null) { | 2043 if (items != null) { |
1850 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2044 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1851 } | 2045 } |
1852 if (replaceConfigs != null) { | 2046 if (replaceConfigs != null) { |
1853 _json["replaceConfigs"] = replaceConfigs.map((value) => (value).toJson()).
toList(); | 2047 _json["replaceConfigs"] = replaceConfigs.map((value) => (value).toJson()).
toList(); |
1854 } | 2048 } |
1855 return _json; | 2049 return _json; |
1856 } | 2050 } |
1857 } | 2051 } |
1858 | 2052 |
1859 /** Results of redacting a list of items. */ | 2053 /** Results of redacting a list of items. */ |
1860 class RedactContentResponse { | 2054 class GooglePrivacyDlpV2beta1RedactContentResponse { |
1861 /** The redacted content. */ | 2055 /** The redacted content. */ |
1862 core.List<ContentItem> items; | 2056 core.List<GooglePrivacyDlpV2beta1ContentItem> items; |
1863 | 2057 |
1864 RedactContentResponse(); | 2058 GooglePrivacyDlpV2beta1RedactContentResponse(); |
1865 | 2059 |
1866 RedactContentResponse.fromJson(core.Map _json) { | 2060 GooglePrivacyDlpV2beta1RedactContentResponse.fromJson(core.Map _json) { |
1867 if (_json.containsKey("items")) { | 2061 if (_json.containsKey("items")) { |
1868 items = _json["items"].map((value) => new ContentItem.fromJson(value)).toL
ist(); | 2062 items = _json["items"].map((value) => new GooglePrivacyDlpV2beta1ContentIt
em.fromJson(value)).toList(); |
1869 } | 2063 } |
1870 } | 2064 } |
1871 | 2065 |
1872 core.Map<core.String, core.Object> toJson() { | 2066 core.Map<core.String, core.Object> toJson() { |
1873 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2067 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1874 if (items != null) { | 2068 if (items != null) { |
1875 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2069 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1876 } | 2070 } |
1877 return _json; | 2071 return _json; |
1878 } | 2072 } |
1879 } | 2073 } |
1880 | 2074 |
1881 class ReplaceConfig { | 2075 class GooglePrivacyDlpV2beta1ReplaceConfig { |
1882 /** | 2076 /** |
1883 * Type of information to replace. Only one ReplaceConfig per info_type | 2077 * Type of information to replace. Only one ReplaceConfig per info_type |
1884 * should be provided. If ReplaceConfig does not have an info_type, the DLP | 2078 * should be provided. If ReplaceConfig does not have an info_type, the DLP |
1885 * API matches it against all info_types that are found but not specified in | 2079 * API matches it against all info_types that are found but not specified in |
1886 * another ReplaceConfig. | 2080 * another ReplaceConfig. |
1887 */ | 2081 */ |
1888 InfoType infoType; | 2082 GooglePrivacyDlpV2beta1InfoType infoType; |
1889 /** Content replacing sensitive information of given type. Max 256 chars. */ | 2083 /** Content replacing sensitive information of given type. Max 256 chars. */ |
1890 core.String replaceWith; | 2084 core.String replaceWith; |
1891 | 2085 |
1892 ReplaceConfig(); | 2086 GooglePrivacyDlpV2beta1ReplaceConfig(); |
1893 | 2087 |
1894 ReplaceConfig.fromJson(core.Map _json) { | 2088 GooglePrivacyDlpV2beta1ReplaceConfig.fromJson(core.Map _json) { |
1895 if (_json.containsKey("infoType")) { | 2089 if (_json.containsKey("infoType")) { |
1896 infoType = new InfoType.fromJson(_json["infoType"]); | 2090 infoType = new GooglePrivacyDlpV2beta1InfoType.fromJson(_json["infoType"])
; |
1897 } | 2091 } |
1898 if (_json.containsKey("replaceWith")) { | 2092 if (_json.containsKey("replaceWith")) { |
1899 replaceWith = _json["replaceWith"]; | 2093 replaceWith = _json["replaceWith"]; |
1900 } | 2094 } |
1901 } | 2095 } |
1902 | 2096 |
1903 core.Map<core.String, core.Object> toJson() { | 2097 core.Map<core.String, core.Object> toJson() { |
1904 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2098 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1905 if (infoType != null) { | 2099 if (infoType != null) { |
1906 _json["infoType"] = (infoType).toJson(); | 2100 _json["infoType"] = (infoType).toJson(); |
1907 } | 2101 } |
1908 if (replaceWith != null) { | 2102 if (replaceWith != null) { |
1909 _json["replaceWith"] = replaceWith; | 2103 _json["replaceWith"] = replaceWith; |
1910 } | 2104 } |
1911 return _json; | 2105 return _json; |
1912 } | 2106 } |
1913 } | 2107 } |
1914 | 2108 |
| 2109 /** Shared message indicating Cloud storage type. */ |
| 2110 class GooglePrivacyDlpV2beta1StorageConfig { |
| 2111 /** Google Cloud Storage options specification. */ |
| 2112 GooglePrivacyDlpV2beta1CloudStorageOptions cloudStorageOptions; |
| 2113 /** Google Cloud Datastore options specification. */ |
| 2114 GooglePrivacyDlpV2beta1DatastoreOptions datastoreOptions; |
| 2115 |
| 2116 GooglePrivacyDlpV2beta1StorageConfig(); |
| 2117 |
| 2118 GooglePrivacyDlpV2beta1StorageConfig.fromJson(core.Map _json) { |
| 2119 if (_json.containsKey("cloudStorageOptions")) { |
| 2120 cloudStorageOptions = new GooglePrivacyDlpV2beta1CloudStorageOptions.fromJ
son(_json["cloudStorageOptions"]); |
| 2121 } |
| 2122 if (_json.containsKey("datastoreOptions")) { |
| 2123 datastoreOptions = new GooglePrivacyDlpV2beta1DatastoreOptions.fromJson(_j
son["datastoreOptions"]); |
| 2124 } |
| 2125 } |
| 2126 |
| 2127 core.Map<core.String, core.Object> toJson() { |
| 2128 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2129 if (cloudStorageOptions != null) { |
| 2130 _json["cloudStorageOptions"] = (cloudStorageOptions).toJson(); |
| 2131 } |
| 2132 if (datastoreOptions != null) { |
| 2133 _json["datastoreOptions"] = (datastoreOptions).toJson(); |
| 2134 } |
| 2135 return _json; |
| 2136 } |
| 2137 } |
| 2138 |
| 2139 /** |
| 2140 * A generic empty message that you can re-use to avoid defining duplicated |
| 2141 * empty messages in your APIs. A typical example is to use it as the request |
| 2142 * or the response type of an API method. For instance: |
| 2143 * |
| 2144 * service Foo { |
| 2145 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 2146 * } |
| 2147 * |
| 2148 * The JSON representation for `Empty` is empty JSON object `{}`. |
| 2149 */ |
| 2150 class GoogleProtobufEmpty { |
| 2151 |
| 2152 GoogleProtobufEmpty(); |
| 2153 |
| 2154 GoogleProtobufEmpty.fromJson(core.Map _json) { |
| 2155 } |
| 2156 |
| 2157 core.Map<core.String, core.Object> toJson() { |
| 2158 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2159 return _json; |
| 2160 } |
| 2161 } |
| 2162 |
1915 /** | 2163 /** |
1916 * The `Status` type defines a logical error model that is suitable for | 2164 * The `Status` type defines a logical error model that is suitable for |
1917 * different | 2165 * different |
1918 * programming environments, including REST APIs and RPC APIs. It is used by | 2166 * programming environments, including REST APIs and RPC APIs. It is used by |
1919 * [gRPC](https://github.com/grpc). The error model is designed to be: | 2167 * [gRPC](https://github.com/grpc). The error model is designed to be: |
1920 * | 2168 * |
1921 * - Simple to use and understand for most users | 2169 * - Simple to use and understand for most users |
1922 * - Flexible enough to meet unexpected needs | 2170 * - Flexible enough to meet unexpected needs |
1923 * | 2171 * |
1924 * # Overview | 2172 * # Overview |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1961 * `Status` message should be used directly inside batch response, one for | 2209 * `Status` message should be used directly inside batch response, one for |
1962 * each error sub-response. | 2210 * each error sub-response. |
1963 * | 2211 * |
1964 * - Asynchronous operations. If an API call embeds asynchronous operation | 2212 * - Asynchronous operations. If an API call embeds asynchronous operation |
1965 * results in its response, the status of those operations should be | 2213 * results in its response, the status of those operations should be |
1966 * represented directly using the `Status` message. | 2214 * represented directly using the `Status` message. |
1967 * | 2215 * |
1968 * - Logging. If some API errors are stored in logs, the message `Status` could | 2216 * - Logging. If some API errors are stored in logs, the message `Status` could |
1969 * be used directly after any stripping needed for security/privacy reasons. | 2217 * be used directly after any stripping needed for security/privacy reasons. |
1970 */ | 2218 */ |
1971 class Status { | 2219 class GoogleRpcStatus { |
1972 /** The status code, which should be an enum value of google.rpc.Code. */ | 2220 /** The status code, which should be an enum value of google.rpc.Code. */ |
1973 core.int code; | 2221 core.int code; |
1974 /** | 2222 /** |
1975 * A list of messages that carry the error details. There will be a | 2223 * A list of messages that carry the error details. There will be a |
1976 * common set of message types for APIs to use. | 2224 * common set of message types for APIs to use. |
1977 * | 2225 * |
1978 * The values for Object must be JSON objects. It can consist of `num`, | 2226 * The values for Object must be JSON objects. It can consist of `num`, |
1979 * `String`, `bool` and `null` as well as `Map` and `List` values. | 2227 * `String`, `bool` and `null` as well as `Map` and `List` values. |
1980 */ | 2228 */ |
1981 core.List<core.Map<core.String, core.Object>> details; | 2229 core.List<core.Map<core.String, core.Object>> details; |
1982 /** | 2230 /** |
1983 * A developer-facing error message, which should be in English. Any | 2231 * A developer-facing error message, which should be in English. Any |
1984 * user-facing error message should be localized and sent in the | 2232 * user-facing error message should be localized and sent in the |
1985 * google.rpc.Status.details field, or localized by the client. | 2233 * google.rpc.Status.details field, or localized by the client. |
1986 */ | 2234 */ |
1987 core.String message; | 2235 core.String message; |
1988 | 2236 |
1989 Status(); | 2237 GoogleRpcStatus(); |
1990 | 2238 |
1991 Status.fromJson(core.Map _json) { | 2239 GoogleRpcStatus.fromJson(core.Map _json) { |
1992 if (_json.containsKey("code")) { | 2240 if (_json.containsKey("code")) { |
1993 code = _json["code"]; | 2241 code = _json["code"]; |
1994 } | 2242 } |
1995 if (_json.containsKey("details")) { | 2243 if (_json.containsKey("details")) { |
1996 details = _json["details"]; | 2244 details = _json["details"]; |
1997 } | 2245 } |
1998 if (_json.containsKey("message")) { | 2246 if (_json.containsKey("message")) { |
1999 message = _json["message"]; | 2247 message = _json["message"]; |
2000 } | 2248 } |
2001 } | 2249 } |
2002 | 2250 |
2003 core.Map<core.String, core.Object> toJson() { | 2251 core.Map<core.String, core.Object> toJson() { |
2004 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2252 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2005 if (code != null) { | 2253 if (code != null) { |
2006 _json["code"] = code; | 2254 _json["code"] = code; |
2007 } | 2255 } |
2008 if (details != null) { | 2256 if (details != null) { |
2009 _json["details"] = details; | 2257 _json["details"] = details; |
2010 } | 2258 } |
2011 if (message != null) { | 2259 if (message != null) { |
2012 _json["message"] = message; | 2260 _json["message"] = message; |
2013 } | 2261 } |
2014 return _json; | 2262 return _json; |
2015 } | 2263 } |
2016 } | 2264 } |
2017 | |
2018 /** Shared message indicating Cloud storage type. */ | |
2019 class StorageConfig { | |
2020 /** Google Cloud Storage options specification. */ | |
2021 CloudStorageOptions cloudStorageOptions; | |
2022 /** Google Cloud Datastore options specification. */ | |
2023 DatastoreOptions datastoreOptions; | |
2024 | |
2025 StorageConfig(); | |
2026 | |
2027 StorageConfig.fromJson(core.Map _json) { | |
2028 if (_json.containsKey("cloudStorageOptions")) { | |
2029 cloudStorageOptions = new CloudStorageOptions.fromJson(_json["cloudStorage
Options"]); | |
2030 } | |
2031 if (_json.containsKey("datastoreOptions")) { | |
2032 datastoreOptions = new DatastoreOptions.fromJson(_json["datastoreOptions"]
); | |
2033 } | |
2034 } | |
2035 | |
2036 core.Map<core.String, core.Object> toJson() { | |
2037 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | |
2038 if (cloudStorageOptions != null) { | |
2039 _json["cloudStorageOptions"] = (cloudStorageOptions).toJson(); | |
2040 } | |
2041 if (datastoreOptions != null) { | |
2042 _json["datastoreOptions"] = (datastoreOptions).toJson(); | |
2043 } | |
2044 return _json; | |
2045 } | |
2046 } | |
OLD | NEW |