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

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

Issue 3003493002: Api-Roll 53: 2017-08-21 (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 *
323 * [filter] - This parameter supports filtering by done, ie done=true or 320 * [filter] - This parameter supports filtering by done, ie done=true or
324 * done=false. 321 * done=false.
325 * 322 *
326 * [pageToken] - The standard list page token. 323 * [pageToken] - The standard list page token.
327 * 324 *
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.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}) {
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 }
350 if (filter != null) { 347 if (filter != null) {
351 _queryParams["filter"] = [filter]; 348 _queryParams["filter"] = [filter];
352 } 349 }
353 if (pageToken != null) { 350 if (pageToken != null) {
354 _queryParams["pageToken"] = [pageToken]; 351 _queryParams["pageToken"] = [pageToken];
355 } 352 }
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 22 matching lines...) Expand all
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 * [pageToken] - The value returned by the last `ListInspectFindingsResponse`;
399 * indicates
400 * that this is a continuation of a prior `ListInspectFindings` call, and that
401 * the system should return the next page of data.
402 *
398 * [pageSize] - Maximum number of results to return. 403 * [pageSize] - Maximum number of results to return.
399 * If 0, the implementation selects a reasonable value. 404 * If 0, the implementation selects a reasonable value.
400 * 405 *
401 * [filter] - Restricts findings to items that match. Supports info_type and 406 * [filter] - Restricts findings to items that match. Supports info_type and
402 * likelihood. 407 * likelihood.
403 * <p>Examples:<br/> 408 * <p>Examples:<br/>
404 * <li>info_type=EMAIL_ADDRESS 409 * <li>info_type=EMAIL_ADDRESS
405 * <li>info_type=PHONE_NUMBER,EMAIL_ADDRESS 410 * <li>info_type=PHONE_NUMBER,EMAIL_ADDRESS
406 * <li>likelihood=VERY_LIKELY 411 * <li>likelihood=VERY_LIKELY
407 * <li>likelihood=VERY_LIKELY,LIKELY 412 * <li>likelihood=VERY_LIKELY,LIKELY
408 * <li>info_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY,LIKELY 413 * <li>info_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY,LIKELY
409 * 414 *
410 * [pageToken] - The value returned by the last `ListInspectFindingsResponse`;
411 * indicates
412 * that this is a continuation of a prior `ListInspectFindings` call, and that
413 * the system should return the next page of data.
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.int pageSize, core.String filter, core.String pageToken}) { 423 async.Future<GooglePrivacyDlpV2beta1ListInspectFindingsResponse> list(core.Str ing name, {core.String pageToken, core.int pageSize, core.String filter}) {
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 (pageToken != null) {
435 _queryParams["pageToken"] = [pageToken];
436 }
434 if (pageSize != null) { 437 if (pageSize != null) {
435 _queryParams["pageSize"] = ["${pageSize}"]; 438 _queryParams["pageSize"] = ["${pageSize}"];
436 } 439 }
437 if (filter != null) { 440 if (filter != null) {
438 _queryParams["filter"] = [filter]; 441 _queryParams["filter"] = [filter];
439 } 442 }
440 if (pageToken != null) {
441 _queryParams["pageToken"] = [pageToken];
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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 if (name != null) { 679 if (name != null) {
680 _json["name"] = name; 680 _json["name"] = name;
681 } 681 }
682 if (response != null) { 682 if (response != null) {
683 _json["response"] = response; 683 _json["response"] = response;
684 } 684 }
685 return _json; 685 return _json;
686 } 686 }
687 } 687 }
688 688
689 /** Options defining BigQuery table and row identifiers. */
690 class GooglePrivacyDlpV2beta1BigQueryOptions {
691 /**
692 * References to fields uniquely identifying rows within the table.
693 * Nested fields in the format, like `person.birthdate.year`, are allowed.
694 */
695 core.List<GooglePrivacyDlpV2beta1FieldId> identifyingFields;
696 /** Complete BigQuery table reference. */
697 GooglePrivacyDlpV2beta1BigQueryTable tableReference;
698
699 GooglePrivacyDlpV2beta1BigQueryOptions();
700
701 GooglePrivacyDlpV2beta1BigQueryOptions.fromJson(core.Map _json) {
702 if (_json.containsKey("identifyingFields")) {
703 identifyingFields = _json["identifyingFields"].map((value) => new GooglePr ivacyDlpV2beta1FieldId.fromJson(value)).toList();
704 }
705 if (_json.containsKey("tableReference")) {
706 tableReference = new GooglePrivacyDlpV2beta1BigQueryTable.fromJson(_json[" tableReference"]);
707 }
708 }
709
710 core.Map<core.String, core.Object> toJson() {
711 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
712 if (identifyingFields != null) {
713 _json["identifyingFields"] = identifyingFields.map((value) => (value).toJs on()).toList();
714 }
715 if (tableReference != null) {
716 _json["tableReference"] = (tableReference).toJson();
717 }
718 return _json;
719 }
720 }
721
722 /**
723 * Message defining the location of a BigQuery table. A table is uniquely
724 * identified by its project_id, dataset_id, and table_name. Within a query
725 * a table is often referenced with a string in the format of:
726 * `<project_id>:<dataset_id>.<table_id>` or
727 * `<project_id>.<dataset_id>.<table_id>`.
728 */
729 class GooglePrivacyDlpV2beta1BigQueryTable {
730 /** Dataset ID of the table. */
731 core.String datasetId;
732 /**
733 * The Google Cloud Platform project ID of the project containing the table.
734 * If omitted, project ID is inferred from the API call.
735 */
736 core.String projectId;
737 /** Name of the table. */
738 core.String tableId;
739
740 GooglePrivacyDlpV2beta1BigQueryTable();
741
742 GooglePrivacyDlpV2beta1BigQueryTable.fromJson(core.Map _json) {
743 if (_json.containsKey("datasetId")) {
744 datasetId = _json["datasetId"];
745 }
746 if (_json.containsKey("projectId")) {
747 projectId = _json["projectId"];
748 }
749 if (_json.containsKey("tableId")) {
750 tableId = _json["tableId"];
751 }
752 }
753
754 core.Map<core.String, core.Object> toJson() {
755 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
756 if (datasetId != null) {
757 _json["datasetId"] = datasetId;
758 }
759 if (projectId != null) {
760 _json["projectId"] = projectId;
761 }
762 if (tableId != null) {
763 _json["tableId"] = tableId;
764 }
765 return _json;
766 }
767 }
768
689 /** Info Type Category description. */ 769 /** Info Type Category description. */
690 class GooglePrivacyDlpV2beta1CategoryDescription { 770 class GooglePrivacyDlpV2beta1CategoryDescription {
691 /** Human readable form of the category name. */ 771 /** Human readable form of the category name. */
692 core.String displayName; 772 core.String displayName;
693 /** Internal name of the category. */ 773 /** Internal name of the category. */
694 core.String name; 774 core.String name;
695 775
696 GooglePrivacyDlpV2beta1CategoryDescription(); 776 GooglePrivacyDlpV2beta1CategoryDescription();
697 777
698 GooglePrivacyDlpV2beta1CategoryDescription.fromJson(core.Map _json) { 778 GooglePrivacyDlpV2beta1CategoryDescription.fromJson(core.Map _json) {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 class GooglePrivacyDlpV2beta1ContentItem { 914 class GooglePrivacyDlpV2beta1ContentItem {
835 /** Content data to inspect or redact. */ 915 /** Content data to inspect or redact. */
836 core.String data; 916 core.String data;
837 core.List<core.int> get dataAsBytes { 917 core.List<core.int> get dataAsBytes {
838 return convert.BASE64.decode(data); 918 return convert.BASE64.decode(data);
839 } 919 }
840 920
841 void set dataAsBytes(core.List<core.int> _bytes) { 921 void set dataAsBytes(core.List<core.int> _bytes) {
842 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- "); 922 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- ");
843 } 923 }
924 /** Structured content for inspection. */
925 GooglePrivacyDlpV2beta1Table table;
844 /** 926 /**
845 * Type of the content, as defined in Content-Type HTTP header. 927 * Type of the content, as defined in Content-Type HTTP header.
846 * Supported types are: all "text" types, octet streams, PNG images, 928 * Supported types are: all "text" types, octet streams, PNG images,
847 * JPEG images. 929 * JPEG images.
848 */ 930 */
849 core.String type; 931 core.String type;
850 /** String data to inspect or redact. */ 932 /** String data to inspect or redact. */
851 core.String value; 933 core.String value;
852 934
853 GooglePrivacyDlpV2beta1ContentItem(); 935 GooglePrivacyDlpV2beta1ContentItem();
854 936
855 GooglePrivacyDlpV2beta1ContentItem.fromJson(core.Map _json) { 937 GooglePrivacyDlpV2beta1ContentItem.fromJson(core.Map _json) {
856 if (_json.containsKey("data")) { 938 if (_json.containsKey("data")) {
857 data = _json["data"]; 939 data = _json["data"];
858 } 940 }
941 if (_json.containsKey("table")) {
942 table = new GooglePrivacyDlpV2beta1Table.fromJson(_json["table"]);
943 }
859 if (_json.containsKey("type")) { 944 if (_json.containsKey("type")) {
860 type = _json["type"]; 945 type = _json["type"];
861 } 946 }
862 if (_json.containsKey("value")) { 947 if (_json.containsKey("value")) {
863 value = _json["value"]; 948 value = _json["value"];
864 } 949 }
865 } 950 }
866 951
867 core.Map<core.String, core.Object> toJson() { 952 core.Map<core.String, core.Object> toJson() {
868 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 953 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
869 if (data != null) { 954 if (data != null) {
870 _json["data"] = data; 955 _json["data"] = data;
871 } 956 }
957 if (table != null) {
958 _json["table"] = (table).toJson();
959 }
872 if (type != null) { 960 if (type != null) {
873 _json["type"] = type; 961 _json["type"] = type;
874 } 962 }
875 if (value != null) { 963 if (value != null) {
876 _json["value"] = value; 964 _json["value"] = value;
877 } 965 }
878 return _json; 966 return _json;
879 } 967 }
880 } 968 }
881 969
882 /** 970 /**
883 * Request for scheduling a scan of a data subset from a Google Platform data 971 * Request for scheduling a scan of a data subset from a Google Platform data
884 * repository. 972 * repository.
885 */ 973 */
886 class GooglePrivacyDlpV2beta1CreateInspectOperationRequest { 974 class GooglePrivacyDlpV2beta1CreateInspectOperationRequest {
887 /** Configuration for the inspector. */ 975 /** Configuration for the inspector. */
888 GooglePrivacyDlpV2beta1InspectConfig inspectConfig; 976 GooglePrivacyDlpV2beta1InspectConfig inspectConfig;
977 /** Additional configuration settings for long running operations. */
978 GooglePrivacyDlpV2beta1OperationConfig operationConfig;
889 /** 979 /**
890 * Optional location to store findings. The bucket must already exist and 980 * Optional location to store findings. The bucket must already exist and
891 * the Google APIs service account for DLP must have write permission to 981 * the Google APIs service account for DLP must have write permission to
892 * write to the given bucket. 982 * write to the given bucket.
893 * <p>Results are split over multiple csv files with each file name matching 983 * <p>Results are split over multiple csv files with each file name matching
894 * the pattern "[operation_id]_[count].csv", for example 984 * the pattern "[operation_id]_[count].csv", for example
895 * `3094877188788974909_1.csv`. The `operation_id` matches the 985 * `3094877188788974909_1.csv`. The `operation_id` matches the
896 * identifier for the Operation, and the `count` is a counter used for 986 * identifier for the Operation, and the `count` is a counter used for
897 * tracking the number of files written. <p>The CSV file(s) contain the 987 * tracking the number of files written. <p>The CSV file(s) contain the
898 * following columns regardless of storage type scanned: <li>id <li>info_type 988 * following columns regardless of storage type scanned: <li>id <li>info_type
899 * <li>likelihood <li>byte size of finding <li>quote <li>time_stamp<br/> 989 * <li>likelihood <li>byte size of finding <li>quote <li>timestamp<br/>
900 * <p>For Cloud Storage the next columns are: <li>file_path 990 * <p>For Cloud Storage the next columns are: <li>file_path
901 * <li>start_offset<br/> 991 * <li>start_offset<br/>
902 * <p>For Cloud Datastore the next columns are: <li>project_id 992 * <p>For Cloud Datastore the next columns are: <li>project_id
903 * <li>namespace_id <li>path <li>column_name <li>offset 993 * <li>namespace_id <li>path <li>column_name <li>offset<br/>
994 * <p>For BigQuery the next columns are: <li>row_number <li>project_id
995 * <li>dataset_id <li>table_id
904 */ 996 */
905 GooglePrivacyDlpV2beta1OutputStorageConfig outputConfig; 997 GooglePrivacyDlpV2beta1OutputStorageConfig outputConfig;
906 /** Specification of the data set to process. */ 998 /** Specification of the data set to process. */
907 GooglePrivacyDlpV2beta1StorageConfig storageConfig; 999 GooglePrivacyDlpV2beta1StorageConfig storageConfig;
908 1000
909 GooglePrivacyDlpV2beta1CreateInspectOperationRequest(); 1001 GooglePrivacyDlpV2beta1CreateInspectOperationRequest();
910 1002
911 GooglePrivacyDlpV2beta1CreateInspectOperationRequest.fromJson(core.Map _json) { 1003 GooglePrivacyDlpV2beta1CreateInspectOperationRequest.fromJson(core.Map _json) {
912 if (_json.containsKey("inspectConfig")) { 1004 if (_json.containsKey("inspectConfig")) {
913 inspectConfig = new GooglePrivacyDlpV2beta1InspectConfig.fromJson(_json["i nspectConfig"]); 1005 inspectConfig = new GooglePrivacyDlpV2beta1InspectConfig.fromJson(_json["i nspectConfig"]);
914 } 1006 }
1007 if (_json.containsKey("operationConfig")) {
1008 operationConfig = new GooglePrivacyDlpV2beta1OperationConfig.fromJson(_jso n["operationConfig"]);
1009 }
915 if (_json.containsKey("outputConfig")) { 1010 if (_json.containsKey("outputConfig")) {
916 outputConfig = new GooglePrivacyDlpV2beta1OutputStorageConfig.fromJson(_js on["outputConfig"]); 1011 outputConfig = new GooglePrivacyDlpV2beta1OutputStorageConfig.fromJson(_js on["outputConfig"]);
917 } 1012 }
918 if (_json.containsKey("storageConfig")) { 1013 if (_json.containsKey("storageConfig")) {
919 storageConfig = new GooglePrivacyDlpV2beta1StorageConfig.fromJson(_json["s torageConfig"]); 1014 storageConfig = new GooglePrivacyDlpV2beta1StorageConfig.fromJson(_json["s torageConfig"]);
920 } 1015 }
921 } 1016 }
922 1017
923 core.Map<core.String, core.Object> toJson() { 1018 core.Map<core.String, core.Object> toJson() {
924 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1019 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
925 if (inspectConfig != null) { 1020 if (inspectConfig != null) {
926 _json["inspectConfig"] = (inspectConfig).toJson(); 1021 _json["inspectConfig"] = (inspectConfig).toJson();
927 } 1022 }
1023 if (operationConfig != null) {
1024 _json["operationConfig"] = (operationConfig).toJson();
1025 }
928 if (outputConfig != null) { 1026 if (outputConfig != null) {
929 _json["outputConfig"] = (outputConfig).toJson(); 1027 _json["outputConfig"] = (outputConfig).toJson();
930 } 1028 }
931 if (storageConfig != null) { 1029 if (storageConfig != null) {
932 _json["storageConfig"] = (storageConfig).toJson(); 1030 _json["storageConfig"] = (storageConfig).toJson();
933 } 1031 }
934 return _json; 1032 return _json;
935 } 1033 }
936 } 1034 }
937 1035
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1157 _json["width"] = width; 1255 _json["width"] = width;
1158 } 1256 }
1159 return _json; 1257 return _json;
1160 } 1258 }
1161 } 1259 }
1162 1260
1163 /** Configuration for determing how redaction of images should occur. */ 1261 /** Configuration for determing how redaction of images should occur. */
1164 class GooglePrivacyDlpV2beta1ImageRedactionConfig { 1262 class GooglePrivacyDlpV2beta1ImageRedactionConfig {
1165 /** 1263 /**
1166 * Only one per info_type should be provided per request. If not 1264 * 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 1265 * specified, and redact_all_text is false, the DLP API will redact all
1168 * text that it matches against all info_types that are found, but not 1266 * text that it matches against all info_types that are found, but not
1169 * specified in another ImageRedactionConfig. 1267 * specified in another ImageRedactionConfig.
1170 */ 1268 */
1171 GooglePrivacyDlpV2beta1InfoType infoType; 1269 GooglePrivacyDlpV2beta1InfoType infoType;
1172 /** 1270 /**
1173 * If true, all text found in the image, regardless if it matches an 1271 * If true, all text found in the image, regardless whether it matches an
1174 * info_type, is redacted. 1272 * info_type, is redacted.
1175 */ 1273 */
1176 core.bool redactAllText; 1274 core.bool redactAllText;
1177 /** 1275 /**
1178 * The color to use when redacting content from an image. If not specified, 1276 * The color to use when redacting content from an image. If not specified,
1179 * the default is black. 1277 * the default is black.
1180 */ 1278 */
1181 GooglePrivacyDlpV2beta1Color redactionColor; 1279 GooglePrivacyDlpV2beta1Color redactionColor;
1182 1280
1183 GooglePrivacyDlpV2beta1ImageRedactionConfig(); 1281 GooglePrivacyDlpV2beta1ImageRedactionConfig();
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
1262 if (displayName != null) { 1360 if (displayName != null) {
1263 _json["displayName"] = displayName; 1361 _json["displayName"] = displayName;
1264 } 1362 }
1265 if (name != null) { 1363 if (name != null) {
1266 _json["name"] = name; 1364 _json["name"] = name;
1267 } 1365 }
1268 return _json; 1366 return _json;
1269 } 1367 }
1270 } 1368 }
1271 1369
1370 /**
1371 * Max findings configuration per info type, per content item or long running
1372 * operation.
1373 */
1374 class GooglePrivacyDlpV2beta1InfoTypeLimit {
1375 /**
1376 * Type of information the findings limit applies to. Only one limit per
1377 * info_type should be provided. If InfoTypeLimit does not have an
1378 * info_type, the DLP API applies the limit against all info_types that are
1379 * found but not specified in another InfoTypeLimit.
1380 */
1381 GooglePrivacyDlpV2beta1InfoType infoType;
1382 /** Max findings limit for the given info type. */
1383 core.int maxFindings;
1384
1385 GooglePrivacyDlpV2beta1InfoTypeLimit();
1386
1387 GooglePrivacyDlpV2beta1InfoTypeLimit.fromJson(core.Map _json) {
1388 if (_json.containsKey("infoType")) {
1389 infoType = new GooglePrivacyDlpV2beta1InfoType.fromJson(_json["infoType"]) ;
1390 }
1391 if (_json.containsKey("maxFindings")) {
1392 maxFindings = _json["maxFindings"];
1393 }
1394 }
1395
1396 core.Map<core.String, core.Object> toJson() {
1397 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1398 if (infoType != null) {
1399 _json["infoType"] = (infoType).toJson();
1400 }
1401 if (maxFindings != null) {
1402 _json["maxFindings"] = maxFindings;
1403 }
1404 return _json;
1405 }
1406 }
1407
1272 /** Statistics regarding a specific InfoType. */ 1408 /** Statistics regarding a specific InfoType. */
1273 class GooglePrivacyDlpV2beta1InfoTypeStatistics { 1409 class GooglePrivacyDlpV2beta1InfoTypeStatistics {
1274 /** Number of findings for this info type. */ 1410 /** Number of findings for this info type. */
1275 core.String count; 1411 core.String count;
1276 /** The type of finding this stat is for. */ 1412 /** The type of finding this stat is for. */
1277 GooglePrivacyDlpV2beta1InfoType infoType; 1413 GooglePrivacyDlpV2beta1InfoType infoType;
1278 1414
1279 GooglePrivacyDlpV2beta1InfoTypeStatistics(); 1415 GooglePrivacyDlpV2beta1InfoTypeStatistics();
1280 1416
1281 GooglePrivacyDlpV2beta1InfoTypeStatistics.fromJson(core.Map _json) { 1417 GooglePrivacyDlpV2beta1InfoTypeStatistics.fromJson(core.Map _json) {
(...skipping 23 matching lines...) Expand all
1305 * used. 1441 * used.
1306 */ 1442 */
1307 class GooglePrivacyDlpV2beta1InspectConfig { 1443 class GooglePrivacyDlpV2beta1InspectConfig {
1308 /** When true, excludes type information of the findings. */ 1444 /** When true, excludes type information of the findings. */
1309 core.bool excludeTypes; 1445 core.bool excludeTypes;
1310 /** 1446 /**
1311 * When true, a contextual quote from the data that triggered a finding is 1447 * When true, a contextual quote from the data that triggered a finding is
1312 * included in the response; see Finding.quote. 1448 * included in the response; see Finding.quote.
1313 */ 1449 */
1314 core.bool includeQuote; 1450 core.bool includeQuote;
1451 /** Configuration of findings limit given for specified info types. */
1452 core.List<GooglePrivacyDlpV2beta1InfoTypeLimit> infoTypeLimits;
1315 /** 1453 /**
1316 * Restricts what info_types to look for. The values must correspond to 1454 * Restricts what info_types to look for. The values must correspond to
1317 * InfoType values returned by ListInfoTypes or found in documentation. 1455 * InfoType values returned by ListInfoTypes or found in documentation.
1318 * Empty info_types runs all enabled detectors. 1456 * Empty info_types runs all enabled detectors.
1319 */ 1457 */
1320 core.List<GooglePrivacyDlpV2beta1InfoType> infoTypes; 1458 core.List<GooglePrivacyDlpV2beta1InfoType> infoTypes;
1321 /** 1459 /**
1322 * Limits the number of findings per content item or long running operation. 1460 * Limits the number of findings per content item or long running operation.
1323 */ 1461 */
1324 core.int maxFindings; 1462 core.int maxFindings;
(...skipping 12 matching lines...) Expand all
1337 1475
1338 GooglePrivacyDlpV2beta1InspectConfig(); 1476 GooglePrivacyDlpV2beta1InspectConfig();
1339 1477
1340 GooglePrivacyDlpV2beta1InspectConfig.fromJson(core.Map _json) { 1478 GooglePrivacyDlpV2beta1InspectConfig.fromJson(core.Map _json) {
1341 if (_json.containsKey("excludeTypes")) { 1479 if (_json.containsKey("excludeTypes")) {
1342 excludeTypes = _json["excludeTypes"]; 1480 excludeTypes = _json["excludeTypes"];
1343 } 1481 }
1344 if (_json.containsKey("includeQuote")) { 1482 if (_json.containsKey("includeQuote")) {
1345 includeQuote = _json["includeQuote"]; 1483 includeQuote = _json["includeQuote"];
1346 } 1484 }
1485 if (_json.containsKey("infoTypeLimits")) {
1486 infoTypeLimits = _json["infoTypeLimits"].map((value) => new GooglePrivacyD lpV2beta1InfoTypeLimit.fromJson(value)).toList();
1487 }
1347 if (_json.containsKey("infoTypes")) { 1488 if (_json.containsKey("infoTypes")) {
1348 infoTypes = _json["infoTypes"].map((value) => new GooglePrivacyDlpV2beta1I nfoType.fromJson(value)).toList(); 1489 infoTypes = _json["infoTypes"].map((value) => new GooglePrivacyDlpV2beta1I nfoType.fromJson(value)).toList();
1349 } 1490 }
1350 if (_json.containsKey("maxFindings")) { 1491 if (_json.containsKey("maxFindings")) {
1351 maxFindings = _json["maxFindings"]; 1492 maxFindings = _json["maxFindings"];
1352 } 1493 }
1353 if (_json.containsKey("minLikelihood")) { 1494 if (_json.containsKey("minLikelihood")) {
1354 minLikelihood = _json["minLikelihood"]; 1495 minLikelihood = _json["minLikelihood"];
1355 } 1496 }
1356 } 1497 }
1357 1498
1358 core.Map<core.String, core.Object> toJson() { 1499 core.Map<core.String, core.Object> toJson() {
1359 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1500 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1360 if (excludeTypes != null) { 1501 if (excludeTypes != null) {
1361 _json["excludeTypes"] = excludeTypes; 1502 _json["excludeTypes"] = excludeTypes;
1362 } 1503 }
1363 if (includeQuote != null) { 1504 if (includeQuote != null) {
1364 _json["includeQuote"] = includeQuote; 1505 _json["includeQuote"] = includeQuote;
1365 } 1506 }
1507 if (infoTypeLimits != null) {
1508 _json["infoTypeLimits"] = infoTypeLimits.map((value) => (value).toJson()). toList();
1509 }
1366 if (infoTypes != null) { 1510 if (infoTypes != null) {
1367 _json["infoTypes"] = infoTypes.map((value) => (value).toJson()).toList(); 1511 _json["infoTypes"] = infoTypes.map((value) => (value).toJson()).toList();
1368 } 1512 }
1369 if (maxFindings != null) { 1513 if (maxFindings != null) {
1370 _json["maxFindings"] = maxFindings; 1514 _json["maxFindings"] = maxFindings;
1371 } 1515 }
1372 if (minLikelihood != null) { 1516 if (minLikelihood != null) {
1373 _json["minLikelihood"] = minLikelihood; 1517 _json["minLikelihood"] = minLikelihood;
1374 } 1518 }
1375 return _json; 1519 return _json;
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 * Character offsets within a content item, included when content type 1867 * Character offsets within a content item, included when content type
1724 * is a text. Default charset assumed to be UTF-8. 1868 * is a text. Default charset assumed to be UTF-8.
1725 */ 1869 */
1726 GooglePrivacyDlpV2beta1Range codepointRange; 1870 GooglePrivacyDlpV2beta1Range codepointRange;
1727 /** Field id of the field containing the finding. */ 1871 /** Field id of the field containing the finding. */
1728 GooglePrivacyDlpV2beta1FieldId fieldId; 1872 GooglePrivacyDlpV2beta1FieldId fieldId;
1729 /** Location within an image's pixels. */ 1873 /** Location within an image's pixels. */
1730 core.List<GooglePrivacyDlpV2beta1ImageLocation> imageBoxes; 1874 core.List<GooglePrivacyDlpV2beta1ImageLocation> imageBoxes;
1731 /** Key of the finding. */ 1875 /** Key of the finding. */
1732 GooglePrivacyDlpV2beta1RecordKey recordKey; 1876 GooglePrivacyDlpV2beta1RecordKey recordKey;
1877 /** Location within a `ContentItem.Table`. */
1878 GooglePrivacyDlpV2beta1TableLocation tableLocation;
1733 1879
1734 GooglePrivacyDlpV2beta1Location(); 1880 GooglePrivacyDlpV2beta1Location();
1735 1881
1736 GooglePrivacyDlpV2beta1Location.fromJson(core.Map _json) { 1882 GooglePrivacyDlpV2beta1Location.fromJson(core.Map _json) {
1737 if (_json.containsKey("byteRange")) { 1883 if (_json.containsKey("byteRange")) {
1738 byteRange = new GooglePrivacyDlpV2beta1Range.fromJson(_json["byteRange"]); 1884 byteRange = new GooglePrivacyDlpV2beta1Range.fromJson(_json["byteRange"]);
1739 } 1885 }
1740 if (_json.containsKey("codepointRange")) { 1886 if (_json.containsKey("codepointRange")) {
1741 codepointRange = new GooglePrivacyDlpV2beta1Range.fromJson(_json["codepoin tRange"]); 1887 codepointRange = new GooglePrivacyDlpV2beta1Range.fromJson(_json["codepoin tRange"]);
1742 } 1888 }
1743 if (_json.containsKey("fieldId")) { 1889 if (_json.containsKey("fieldId")) {
1744 fieldId = new GooglePrivacyDlpV2beta1FieldId.fromJson(_json["fieldId"]); 1890 fieldId = new GooglePrivacyDlpV2beta1FieldId.fromJson(_json["fieldId"]);
1745 } 1891 }
1746 if (_json.containsKey("imageBoxes")) { 1892 if (_json.containsKey("imageBoxes")) {
1747 imageBoxes = _json["imageBoxes"].map((value) => new GooglePrivacyDlpV2beta 1ImageLocation.fromJson(value)).toList(); 1893 imageBoxes = _json["imageBoxes"].map((value) => new GooglePrivacyDlpV2beta 1ImageLocation.fromJson(value)).toList();
1748 } 1894 }
1749 if (_json.containsKey("recordKey")) { 1895 if (_json.containsKey("recordKey")) {
1750 recordKey = new GooglePrivacyDlpV2beta1RecordKey.fromJson(_json["recordKey "]); 1896 recordKey = new GooglePrivacyDlpV2beta1RecordKey.fromJson(_json["recordKey "]);
1751 } 1897 }
1898 if (_json.containsKey("tableLocation")) {
1899 tableLocation = new GooglePrivacyDlpV2beta1TableLocation.fromJson(_json["t ableLocation"]);
1900 }
1752 } 1901 }
1753 1902
1754 core.Map<core.String, core.Object> toJson() { 1903 core.Map<core.String, core.Object> toJson() {
1755 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1904 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1756 if (byteRange != null) { 1905 if (byteRange != null) {
1757 _json["byteRange"] = (byteRange).toJson(); 1906 _json["byteRange"] = (byteRange).toJson();
1758 } 1907 }
1759 if (codepointRange != null) { 1908 if (codepointRange != null) {
1760 _json["codepointRange"] = (codepointRange).toJson(); 1909 _json["codepointRange"] = (codepointRange).toJson();
1761 } 1910 }
1762 if (fieldId != null) { 1911 if (fieldId != null) {
1763 _json["fieldId"] = (fieldId).toJson(); 1912 _json["fieldId"] = (fieldId).toJson();
1764 } 1913 }
1765 if (imageBoxes != null) { 1914 if (imageBoxes != null) {
1766 _json["imageBoxes"] = imageBoxes.map((value) => (value).toJson()).toList() ; 1915 _json["imageBoxes"] = imageBoxes.map((value) => (value).toJson()).toList() ;
1767 } 1916 }
1768 if (recordKey != null) { 1917 if (recordKey != null) {
1769 _json["recordKey"] = (recordKey).toJson(); 1918 _json["recordKey"] = (recordKey).toJson();
1770 } 1919 }
1920 if (tableLocation != null) {
1921 _json["tableLocation"] = (tableLocation).toJson();
1922 }
1771 return _json; 1923 return _json;
1772 } 1924 }
1773 } 1925 }
1926
1927 /** Additional configuration for inspect long running operations. */
1928 class GooglePrivacyDlpV2beta1OperationConfig {
1929 /** Max number of findings per file, Datastore entity or database row. */
1930 core.String maxItemFindings;
1931
1932 GooglePrivacyDlpV2beta1OperationConfig();
1933
1934 GooglePrivacyDlpV2beta1OperationConfig.fromJson(core.Map _json) {
1935 if (_json.containsKey("maxItemFindings")) {
1936 maxItemFindings = _json["maxItemFindings"];
1937 }
1938 }
1939
1940 core.Map<core.String, core.Object> toJson() {
1941 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1942 if (maxItemFindings != null) {
1943 _json["maxItemFindings"] = maxItemFindings;
1944 }
1945 return _json;
1946 }
1947 }
1774 1948
1775 /** Cloud repository for storing output. */ 1949 /** Cloud repository for storing output. */
1776 class GooglePrivacyDlpV2beta1OutputStorageConfig { 1950 class GooglePrivacyDlpV2beta1OutputStorageConfig {
1777 /** The path to a Google Cloud Storage location to store output. */ 1951 /** The path to a Google Cloud Storage location to store output. */
1778 GooglePrivacyDlpV2beta1CloudStoragePath storagePath; 1952 GooglePrivacyDlpV2beta1CloudStoragePath storagePath;
1953 /** Store findings in a new table in the dataset. */
1954 GooglePrivacyDlpV2beta1BigQueryTable table;
1779 1955
1780 GooglePrivacyDlpV2beta1OutputStorageConfig(); 1956 GooglePrivacyDlpV2beta1OutputStorageConfig();
1781 1957
1782 GooglePrivacyDlpV2beta1OutputStorageConfig.fromJson(core.Map _json) { 1958 GooglePrivacyDlpV2beta1OutputStorageConfig.fromJson(core.Map _json) {
1783 if (_json.containsKey("storagePath")) { 1959 if (_json.containsKey("storagePath")) {
1784 storagePath = new GooglePrivacyDlpV2beta1CloudStoragePath.fromJson(_json[" storagePath"]); 1960 storagePath = new GooglePrivacyDlpV2beta1CloudStoragePath.fromJson(_json[" storagePath"]);
1785 } 1961 }
1962 if (_json.containsKey("table")) {
1963 table = new GooglePrivacyDlpV2beta1BigQueryTable.fromJson(_json["table"]);
1964 }
1786 } 1965 }
1787 1966
1788 core.Map<core.String, core.Object> toJson() { 1967 core.Map<core.String, core.Object> toJson() {
1789 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1968 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1790 if (storagePath != null) { 1969 if (storagePath != null) {
1791 _json["storagePath"] = (storagePath).toJson(); 1970 _json["storagePath"] = (storagePath).toJson();
1792 } 1971 }
1972 if (table != null) {
1973 _json["table"] = (table).toJson();
1974 }
1793 return _json; 1975 return _json;
1794 } 1976 }
1795 } 1977 }
1796 1978
1797 /** 1979 /**
1798 * Datastore partition ID. 1980 * Datastore partition ID.
1799 * A partition ID identifies a grouping of entities. The grouping is always 1981 * A partition ID identifies a grouping of entities. The grouping is always
1800 * by project and namespace, however the namespace ID may be empty. 1982 * by project and namespace, however the namespace ID may be empty.
1801 * 1983 *
1802 * A partition ID contains several dimensions: 1984 * A partition ID contains several dimensions:
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
2094 if (infoType != null) { 2276 if (infoType != null) {
2095 _json["infoType"] = (infoType).toJson(); 2277 _json["infoType"] = (infoType).toJson();
2096 } 2278 }
2097 if (replaceWith != null) { 2279 if (replaceWith != null) {
2098 _json["replaceWith"] = replaceWith; 2280 _json["replaceWith"] = replaceWith;
2099 } 2281 }
2100 return _json; 2282 return _json;
2101 } 2283 }
2102 } 2284 }
2103 2285
2286 class GooglePrivacyDlpV2beta1Row {
2287 core.List<GooglePrivacyDlpV2beta1Value> values;
2288
2289 GooglePrivacyDlpV2beta1Row();
2290
2291 GooglePrivacyDlpV2beta1Row.fromJson(core.Map _json) {
2292 if (_json.containsKey("values")) {
2293 values = _json["values"].map((value) => new GooglePrivacyDlpV2beta1Value.f romJson(value)).toList();
2294 }
2295 }
2296
2297 core.Map<core.String, core.Object> toJson() {
2298 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2299 if (values != null) {
2300 _json["values"] = values.map((value) => (value).toJson()).toList();
2301 }
2302 return _json;
2303 }
2304 }
2305
2104 /** Shared message indicating Cloud storage type. */ 2306 /** Shared message indicating Cloud storage type. */
2105 class GooglePrivacyDlpV2beta1StorageConfig { 2307 class GooglePrivacyDlpV2beta1StorageConfig {
2308 /** BigQuery options specification. */
2309 GooglePrivacyDlpV2beta1BigQueryOptions bigQueryOptions;
2106 /** Google Cloud Storage options specification. */ 2310 /** Google Cloud Storage options specification. */
2107 GooglePrivacyDlpV2beta1CloudStorageOptions cloudStorageOptions; 2311 GooglePrivacyDlpV2beta1CloudStorageOptions cloudStorageOptions;
2108 /** Google Cloud Datastore options specification. */ 2312 /** Google Cloud Datastore options specification. */
2109 GooglePrivacyDlpV2beta1DatastoreOptions datastoreOptions; 2313 GooglePrivacyDlpV2beta1DatastoreOptions datastoreOptions;
2110 2314
2111 GooglePrivacyDlpV2beta1StorageConfig(); 2315 GooglePrivacyDlpV2beta1StorageConfig();
2112 2316
2113 GooglePrivacyDlpV2beta1StorageConfig.fromJson(core.Map _json) { 2317 GooglePrivacyDlpV2beta1StorageConfig.fromJson(core.Map _json) {
2318 if (_json.containsKey("bigQueryOptions")) {
2319 bigQueryOptions = new GooglePrivacyDlpV2beta1BigQueryOptions.fromJson(_jso n["bigQueryOptions"]);
2320 }
2114 if (_json.containsKey("cloudStorageOptions")) { 2321 if (_json.containsKey("cloudStorageOptions")) {
2115 cloudStorageOptions = new GooglePrivacyDlpV2beta1CloudStorageOptions.fromJ son(_json["cloudStorageOptions"]); 2322 cloudStorageOptions = new GooglePrivacyDlpV2beta1CloudStorageOptions.fromJ son(_json["cloudStorageOptions"]);
2116 } 2323 }
2117 if (_json.containsKey("datastoreOptions")) { 2324 if (_json.containsKey("datastoreOptions")) {
2118 datastoreOptions = new GooglePrivacyDlpV2beta1DatastoreOptions.fromJson(_j son["datastoreOptions"]); 2325 datastoreOptions = new GooglePrivacyDlpV2beta1DatastoreOptions.fromJson(_j son["datastoreOptions"]);
2119 } 2326 }
2120 } 2327 }
2121 2328
2122 core.Map<core.String, core.Object> toJson() { 2329 core.Map<core.String, core.Object> toJson() {
2123 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2330 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2331 if (bigQueryOptions != null) {
2332 _json["bigQueryOptions"] = (bigQueryOptions).toJson();
2333 }
2124 if (cloudStorageOptions != null) { 2334 if (cloudStorageOptions != null) {
2125 _json["cloudStorageOptions"] = (cloudStorageOptions).toJson(); 2335 _json["cloudStorageOptions"] = (cloudStorageOptions).toJson();
2126 } 2336 }
2127 if (datastoreOptions != null) { 2337 if (datastoreOptions != null) {
2128 _json["datastoreOptions"] = (datastoreOptions).toJson(); 2338 _json["datastoreOptions"] = (datastoreOptions).toJson();
2129 } 2339 }
2130 return _json; 2340 return _json;
2131 } 2341 }
2132 } 2342 }
2133 2343
2134 /** 2344 /**
2345 * Structured content to inspect. Up to 50,000 `Value`s per request allowed.
2346 */
2347 class GooglePrivacyDlpV2beta1Table {
2348 core.List<GooglePrivacyDlpV2beta1FieldId> headers;
2349 core.List<GooglePrivacyDlpV2beta1Row> rows;
2350
2351 GooglePrivacyDlpV2beta1Table();
2352
2353 GooglePrivacyDlpV2beta1Table.fromJson(core.Map _json) {
2354 if (_json.containsKey("headers")) {
2355 headers = _json["headers"].map((value) => new GooglePrivacyDlpV2beta1Field Id.fromJson(value)).toList();
2356 }
2357 if (_json.containsKey("rows")) {
2358 rows = _json["rows"].map((value) => new GooglePrivacyDlpV2beta1Row.fromJso n(value)).toList();
2359 }
2360 }
2361
2362 core.Map<core.String, core.Object> toJson() {
2363 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2364 if (headers != null) {
2365 _json["headers"] = headers.map((value) => (value).toJson()).toList();
2366 }
2367 if (rows != null) {
2368 _json["rows"] = rows.map((value) => (value).toJson()).toList();
2369 }
2370 return _json;
2371 }
2372 }
2373
2374 /** Location of a finding within a `ContentItem.Table`. */
2375 class GooglePrivacyDlpV2beta1TableLocation {
2376 /** The zero-based index of the row where the finding is located. */
2377 core.String rowIndex;
2378
2379 GooglePrivacyDlpV2beta1TableLocation();
2380
2381 GooglePrivacyDlpV2beta1TableLocation.fromJson(core.Map _json) {
2382 if (_json.containsKey("rowIndex")) {
2383 rowIndex = _json["rowIndex"];
2384 }
2385 }
2386
2387 core.Map<core.String, core.Object> toJson() {
2388 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2389 if (rowIndex != null) {
2390 _json["rowIndex"] = rowIndex;
2391 }
2392 return _json;
2393 }
2394 }
2395
2396 /** Set of primitive values supported by the system. */
2397 class GooglePrivacyDlpV2beta1Value {
2398 core.bool booleanValue;
2399 GoogleTypeDate dateValue;
2400 core.double floatValue;
2401 core.String integerValue;
2402 core.String stringValue;
2403 GoogleTypeTimeOfDay timeValue;
2404 core.String timestampValue;
2405
2406 GooglePrivacyDlpV2beta1Value();
2407
2408 GooglePrivacyDlpV2beta1Value.fromJson(core.Map _json) {
2409 if (_json.containsKey("booleanValue")) {
2410 booleanValue = _json["booleanValue"];
2411 }
2412 if (_json.containsKey("dateValue")) {
2413 dateValue = new GoogleTypeDate.fromJson(_json["dateValue"]);
2414 }
2415 if (_json.containsKey("floatValue")) {
2416 floatValue = _json["floatValue"];
2417 }
2418 if (_json.containsKey("integerValue")) {
2419 integerValue = _json["integerValue"];
2420 }
2421 if (_json.containsKey("stringValue")) {
2422 stringValue = _json["stringValue"];
2423 }
2424 if (_json.containsKey("timeValue")) {
2425 timeValue = new GoogleTypeTimeOfDay.fromJson(_json["timeValue"]);
2426 }
2427 if (_json.containsKey("timestampValue")) {
2428 timestampValue = _json["timestampValue"];
2429 }
2430 }
2431
2432 core.Map<core.String, core.Object> toJson() {
2433 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2434 if (booleanValue != null) {
2435 _json["booleanValue"] = booleanValue;
2436 }
2437 if (dateValue != null) {
2438 _json["dateValue"] = (dateValue).toJson();
2439 }
2440 if (floatValue != null) {
2441 _json["floatValue"] = floatValue;
2442 }
2443 if (integerValue != null) {
2444 _json["integerValue"] = integerValue;
2445 }
2446 if (stringValue != null) {
2447 _json["stringValue"] = stringValue;
2448 }
2449 if (timeValue != null) {
2450 _json["timeValue"] = (timeValue).toJson();
2451 }
2452 if (timestampValue != null) {
2453 _json["timestampValue"] = timestampValue;
2454 }
2455 return _json;
2456 }
2457 }
2458
2459 /**
2135 * A generic empty message that you can re-use to avoid defining duplicated 2460 * A generic empty message that you can re-use to avoid defining duplicated
2136 * empty messages in your APIs. A typical example is to use it as the request 2461 * empty messages in your APIs. A typical example is to use it as the request
2137 * or the response type of an API method. For instance: 2462 * or the response type of an API method. For instance:
2138 * 2463 *
2139 * service Foo { 2464 * service Foo {
2140 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); 2465 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
2141 * } 2466 * }
2142 * 2467 *
2143 * The JSON representation for `Empty` is empty JSON object `{}`. 2468 * The JSON representation for `Empty` is empty JSON object `{}`.
2144 */ 2469 */
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
2250 } 2575 }
2251 if (details != null) { 2576 if (details != null) {
2252 _json["details"] = details; 2577 _json["details"] = details;
2253 } 2578 }
2254 if (message != null) { 2579 if (message != null) {
2255 _json["message"] = message; 2580 _json["message"] = message;
2256 } 2581 }
2257 return _json; 2582 return _json;
2258 } 2583 }
2259 } 2584 }
2585
2586 /**
2587 * Represents a whole calendar date, e.g. date of birth. The time of day and
2588 * time zone are either specified elsewhere or are not significant. The date
2589 * is relative to the Proleptic Gregorian Calendar. The day may be 0 to
2590 * represent a year and month where the day is not significant, e.g. credit card
2591 * expiration date. The year may be 0 to represent a month and day independent
2592 * of year, e.g. anniversary date. Related types are google.type.TimeOfDay
2593 * and `google.protobuf.Timestamp`.
2594 */
2595 class GoogleTypeDate {
2596 /**
2597 * Day of month. Must be from 1 to 31 and valid for the year and month, or 0
2598 * if specifying a year/month where the day is not significant.
2599 */
2600 core.int day;
2601 /** Month of year. Must be from 1 to 12. */
2602 core.int month;
2603 /**
2604 * Year of date. Must be from 1 to 9999, or 0 if specifying a date without
2605 * a year.
2606 */
2607 core.int year;
2608
2609 GoogleTypeDate();
2610
2611 GoogleTypeDate.fromJson(core.Map _json) {
2612 if (_json.containsKey("day")) {
2613 day = _json["day"];
2614 }
2615 if (_json.containsKey("month")) {
2616 month = _json["month"];
2617 }
2618 if (_json.containsKey("year")) {
2619 year = _json["year"];
2620 }
2621 }
2622
2623 core.Map<core.String, core.Object> toJson() {
2624 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2625 if (day != null) {
2626 _json["day"] = day;
2627 }
2628 if (month != null) {
2629 _json["month"] = month;
2630 }
2631 if (year != null) {
2632 _json["year"] = year;
2633 }
2634 return _json;
2635 }
2636 }
2637
2638 /**
2639 * Represents a time of day. The date and time zone are either not significant
2640 * or are specified elsewhere. An API may choose to allow leap seconds. Related
2641 * types are google.type.Date and `google.protobuf.Timestamp`.
2642 */
2643 class GoogleTypeTimeOfDay {
2644 /**
2645 * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2646 * to allow the value "24:00:00" for scenarios like business closing time.
2647 */
2648 core.int hours;
2649 /** Minutes of hour of day. Must be from 0 to 59. */
2650 core.int minutes;
2651 /** Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. */
2652 core.int nanos;
2653 /**
2654 * Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2655 * allow the value 60 if it allows leap-seconds.
2656 */
2657 core.int seconds;
2658
2659 GoogleTypeTimeOfDay();
2660
2661 GoogleTypeTimeOfDay.fromJson(core.Map _json) {
2662 if (_json.containsKey("hours")) {
2663 hours = _json["hours"];
2664 }
2665 if (_json.containsKey("minutes")) {
2666 minutes = _json["minutes"];
2667 }
2668 if (_json.containsKey("nanos")) {
2669 nanos = _json["nanos"];
2670 }
2671 if (_json.containsKey("seconds")) {
2672 seconds = _json["seconds"];
2673 }
2674 }
2675
2676 core.Map<core.String, core.Object> toJson() {
2677 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2678 if (hours != null) {
2679 _json["hours"] = hours;
2680 }
2681 if (minutes != null) {
2682 _json["minutes"] = minutes;
2683 }
2684 if (nanos != null) {
2685 _json["nanos"] = nanos;
2686 }
2687 if (seconds != null) {
2688 _json["seconds"] = seconds;
2689 }
2690 return _json;
2691 }
2692 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/dataflow/v1b3.dart ('k') | generated/googleapis_beta/lib/logging/v2beta1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698