Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(441)

Side by Side Diff: generated/googleapis_beta/lib/dlp/v2beta1.dart

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 } 310 }
311 311
312 /** 312 /**
313 * Fetch the list of long running operations. 313 * Fetch the list of long running operations.
314 * 314 *
315 * Request parameters: 315 * Request parameters:
316 * 316 *
317 * [name] - The name of the operation's parent resource. 317 * [name] - The name of the operation's parent resource.
318 * Value must have pattern "^inspect/operations$". 318 * Value must have pattern "^inspect/operations$".
319 * 319 *
320 * [pageSize] - The list page size. The max allowed value is 256 and default
321 * is 100.
322 *
320 * [filter] - This parameter supports filtering by done, ie done=true or 323 * [filter] - This parameter supports filtering by done, ie done=true or
321 * done=false. 324 * done=false.
322 * 325 *
323 * [pageToken] - The standard list page token. 326 * [pageToken] - The standard list page token.
324 * 327 *
325 * [pageSize] - The list page size. The max allowed value is 256 and default
326 * is 100.
327 *
328 * Completes with a [GoogleLongrunningListOperationsResponse]. 328 * Completes with a [GoogleLongrunningListOperationsResponse].
329 * 329 *
330 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 330 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
331 * error. 331 * error.
332 * 332 *
333 * 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,
334 * this method will complete with the same error. 334 * this method will complete with the same error.
335 */ 335 */
336 async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, { core.String filter, core.String pageToken, core.int pageSize}) { 336 async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, { core.int pageSize, core.String filter, core.String pageToken}) {
337 var _url = null; 337 var _url = null;
338 var _queryParams = new core.Map(); 338 var _queryParams = new core.Map();
339 var _uploadMedia = null; 339 var _uploadMedia = null;
340 var _uploadOptions = null; 340 var _uploadOptions = null;
341 var _downloadOptions = commons.DownloadOptions.Metadata; 341 var _downloadOptions = commons.DownloadOptions.Metadata;
342 var _body = null; 342 var _body = null;
343 343
344 if (name == null) { 344 if (name == null) {
345 throw new core.ArgumentError("Parameter name is required."); 345 throw new core.ArgumentError("Parameter name is required.");
346 } 346 }
347 if (pageSize != null) {
348 _queryParams["pageSize"] = ["${pageSize}"];
349 }
347 if (filter != null) { 350 if (filter != null) {
348 _queryParams["filter"] = [filter]; 351 _queryParams["filter"] = [filter];
349 } 352 }
350 if (pageToken != null) { 353 if (pageToken != null) {
351 _queryParams["pageToken"] = [pageToken]; 354 _queryParams["pageToken"] = [pageToken];
352 } 355 }
353 if (pageSize != null) {
354 _queryParams["pageSize"] = ["${pageSize}"];
355 }
356 356
357 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); 357 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name');
358 358
359 var _response = _requester.request(_url, 359 var _response = _requester.request(_url,
360 "GET", 360 "GET",
361 body: _body, 361 body: _body,
362 queryParams: _queryParams, 362 queryParams: _queryParams,
363 uploadOptions: _uploadOptions, 363 uploadOptions: _uploadOptions,
364 uploadMedia: _uploadMedia, 364 uploadMedia: _uploadMedia,
365 downloadOptions: _downloadOptions); 365 downloadOptions: _downloadOptions);
(...skipping 19 matching lines...) Expand all
385 InspectResultsFindingsResourceApi(commons.ApiRequester client) : 385 InspectResultsFindingsResourceApi(commons.ApiRequester client) :
386 _requester = client; 386 _requester = client;
387 387
388 /** 388 /**
389 * Returns list of results for given inspect operation result set id. 389 * Returns list of results for given inspect operation result set id.
390 * 390 *
391 * Request parameters: 391 * Request parameters:
392 * 392 *
393 * [name] - Identifier of the results set returned as metadata of 393 * [name] - Identifier of the results set returned as metadata of
394 * the longrunning operation created by a call to CreateInspectOperation. 394 * the longrunning operation created by a call to CreateInspectOperation.
395 * Should be in the format of `inspect/results/{id}. 395 * Should be in the format of `inspect/results/{id}`.
396 * Value must have pattern "^inspect/results/[^/]+$". 396 * Value must have pattern "^inspect/results/[^/]+$".
397 * 397 *
398 * [pageSize] - Maximum number of results to return.
399 * If 0, the implementation selects a reasonable value.
400 *
398 * [filter] - Restricts findings to items that match. Supports info_type and 401 * [filter] - Restricts findings to items that match. Supports info_type and
399 * likelihood. 402 * likelihood.
400 * <p>Examples:<br/> 403 * <p>Examples:<br/>
401 * <li>info_type=EMAIL_ADDRESS 404 * <li>info_type=EMAIL_ADDRESS
402 * <li>info_type=PHONE_NUMBER,EMAIL_ADDRESS 405 * <li>info_type=PHONE_NUMBER,EMAIL_ADDRESS
403 * <li>likelihood=VERY_LIKELY 406 * <li>likelihood=VERY_LIKELY
404 * <li>likelihood=VERY_LIKELY,LIKELY 407 * <li>likelihood=VERY_LIKELY,LIKELY
405 * <li>info_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY,LIKELY 408 * <li>info_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY,LIKELY
406 * 409 *
407 * [pageToken] - The value returned by the last `ListInspectFindingsResponse`; 410 * [pageToken] - The value returned by the last `ListInspectFindingsResponse`;
408 * indicates 411 * indicates
409 * that this is a continuation of a prior `ListInspectFindings` call, and that 412 * that this is a continuation of a prior `ListInspectFindings` call, and that
410 * the system should return the next page of data. 413 * the system should return the next page of data.
411 * 414 *
412 * [pageSize] - Maximum number of results to return.
413 * If 0, the implementation selects a reasonable value.
414 *
415 * Completes with a [GooglePrivacyDlpV2beta1ListInspectFindingsResponse]. 415 * Completes with a [GooglePrivacyDlpV2beta1ListInspectFindingsResponse].
416 * 416 *
417 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 417 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
418 * error. 418 * error.
419 * 419 *
420 * 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,
421 * this method will complete with the same error. 421 * this method will complete with the same error.
422 */ 422 */
423 async.Future<GooglePrivacyDlpV2beta1ListInspectFindingsResponse> list(core.Str ing name, {core.String filter, core.String pageToken, core.int pageSize}) { 423 async.Future<GooglePrivacyDlpV2beta1ListInspectFindingsResponse> list(core.Str ing name, {core.int pageSize, core.String filter, core.String pageToken}) {
424 var _url = null; 424 var _url = null;
425 var _queryParams = new core.Map(); 425 var _queryParams = new core.Map();
426 var _uploadMedia = null; 426 var _uploadMedia = null;
427 var _uploadOptions = null; 427 var _uploadOptions = null;
428 var _downloadOptions = commons.DownloadOptions.Metadata; 428 var _downloadOptions = commons.DownloadOptions.Metadata;
429 var _body = null; 429 var _body = null;
430 430
431 if (name == null) { 431 if (name == null) {
432 throw new core.ArgumentError("Parameter name is required."); 432 throw new core.ArgumentError("Parameter name is required.");
433 } 433 }
434 if (pageSize != null) {
435 _queryParams["pageSize"] = ["${pageSize}"];
436 }
434 if (filter != null) { 437 if (filter != null) {
435 _queryParams["filter"] = [filter]; 438 _queryParams["filter"] = [filter];
436 } 439 }
437 if (pageToken != null) { 440 if (pageToken != null) {
438 _queryParams["pageToken"] = [pageToken]; 441 _queryParams["pageToken"] = [pageToken];
439 } 442 }
440 if (pageSize != null) {
441 _queryParams["pageSize"] = ["${pageSize}"];
442 }
443 443
444 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name') + '/findi ngs'; 444 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name') + '/findi ngs';
445 445
446 var _response = _requester.request(_url, 446 var _response = _requester.request(_url,
447 "GET", 447 "GET",
448 body: _body, 448 body: _body,
449 queryParams: _queryParams, 449 queryParams: _queryParams,
450 uploadOptions: _uploadOptions, 450 uploadOptions: _uploadOptions,
451 uploadMedia: _uploadMedia, 451 uploadMedia: _uploadMedia,
452 downloadOptions: _downloadOptions); 452 downloadOptions: _downloadOptions);
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 } 996 }
997 if (projection != null) { 997 if (projection != null) {
998 _json["projection"] = projection.map((value) => (value).toJson()).toList() ; 998 _json["projection"] = projection.map((value) => (value).toJson()).toList() ;
999 } 999 }
1000 return _json; 1000 return _json;
1001 } 1001 }
1002 } 1002 }
1003 1003
1004 /** General identifier of a data field in a storage service. */ 1004 /** General identifier of a data field in a storage service. */
1005 class GooglePrivacyDlpV2beta1FieldId { 1005 class GooglePrivacyDlpV2beta1FieldId {
1006 /** Column name describing the field. */ 1006 /** Name describing the field. */
1007 core.String columnName; 1007 core.String columnName;
1008 1008
1009 GooglePrivacyDlpV2beta1FieldId(); 1009 GooglePrivacyDlpV2beta1FieldId();
1010 1010
1011 GooglePrivacyDlpV2beta1FieldId.fromJson(core.Map _json) { 1011 GooglePrivacyDlpV2beta1FieldId.fromJson(core.Map _json) {
1012 if (_json.containsKey("columnName")) { 1012 if (_json.containsKey("columnName")) {
1013 columnName = _json["columnName"]; 1013 columnName = _json["columnName"];
1014 } 1014 }
1015 } 1015 }
1016 1016
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 } 1204 }
1205 if (redactionColor != null) { 1205 if (redactionColor != null) {
1206 _json["redactionColor"] = (redactionColor).toJson(); 1206 _json["redactionColor"] = (redactionColor).toJson();
1207 } 1207 }
1208 return _json; 1208 return _json;
1209 } 1209 }
1210 } 1210 }
1211 1211
1212 /** Type of information detected by the API. */ 1212 /** Type of information detected by the API. */
1213 class GooglePrivacyDlpV2beta1InfoType { 1213 class GooglePrivacyDlpV2beta1InfoType {
1214 /** 1214 /** Name of the information type. */
1215 * Name of the information type. For built-in info types, this is provided by
1216 * the API call ListInfoTypes. For user-defined info types, this is
1217 * provided by the user. All user-defined info types must have unique names,
1218 * and cannot conflict with built-in info type names.
1219 */
1220 core.String name; 1215 core.String name;
1221 1216
1222 GooglePrivacyDlpV2beta1InfoType(); 1217 GooglePrivacyDlpV2beta1InfoType();
1223 1218
1224 GooglePrivacyDlpV2beta1InfoType.fromJson(core.Map _json) { 1219 GooglePrivacyDlpV2beta1InfoType.fromJson(core.Map _json) {
1225 if (_json.containsKey("name")) { 1220 if (_json.containsKey("name")) {
1226 name = _json["name"]; 1221 name = _json["name"];
1227 } 1222 }
1228 } 1223 }
1229 1224
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
2213 * results in its response, the status of those operations should be 2208 * results in its response, the status of those operations should be
2214 * represented directly using the `Status` message. 2209 * represented directly using the `Status` message.
2215 * 2210 *
2216 * - Logging. If some API errors are stored in logs, the message `Status` could 2211 * - Logging. If some API errors are stored in logs, the message `Status` could
2217 * be used directly after any stripping needed for security/privacy reasons. 2212 * be used directly after any stripping needed for security/privacy reasons.
2218 */ 2213 */
2219 class GoogleRpcStatus { 2214 class GoogleRpcStatus {
2220 /** The status code, which should be an enum value of google.rpc.Code. */ 2215 /** The status code, which should be an enum value of google.rpc.Code. */
2221 core.int code; 2216 core.int code;
2222 /** 2217 /**
2223 * A list of messages that carry the error details. There will be a 2218 * A list of messages that carry the error details. There is a common set of
2224 * common set of message types for APIs to use. 2219 * message types for APIs to use.
2225 * 2220 *
2226 * The values for Object must be JSON objects. It can consist of `num`, 2221 * The values for Object must be JSON objects. It can consist of `num`,
2227 * `String`, `bool` and `null` as well as `Map` and `List` values. 2222 * `String`, `bool` and `null` as well as `Map` and `List` values.
2228 */ 2223 */
2229 core.List<core.Map<core.String, core.Object>> details; 2224 core.List<core.Map<core.String, core.Object>> details;
2230 /** 2225 /**
2231 * A developer-facing error message, which should be in English. Any 2226 * A developer-facing error message, which should be in English. Any
2232 * user-facing error message should be localized and sent in the 2227 * user-facing error message should be localized and sent in the
2233 * google.rpc.Status.details field, or localized by the client. 2228 * google.rpc.Status.details field, or localized by the client.
2234 */ 2229 */
(...skipping 20 matching lines...) Expand all
2255 } 2250 }
2256 if (details != null) { 2251 if (details != null) {
2257 _json["details"] = details; 2252 _json["details"] = details;
2258 } 2253 }
2259 if (message != null) { 2254 if (message != null) {
2260 _json["message"] = message; 2255 _json["message"] = message;
2261 } 2256 }
2262 return _json; 2257 return _json;
2263 } 2258 }
2264 } 2259 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/dataproc/v1beta1.dart ('k') | generated/googleapis_beta/lib/language/v1beta1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698