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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 uploadOptions: _uploadOptions, | 305 uploadOptions: _uploadOptions, |
306 uploadMedia: _uploadMedia, | 306 uploadMedia: _uploadMedia, |
307 downloadOptions: _downloadOptions); | 307 downloadOptions: _downloadOptions); |
308 return _response.then((data) => new Operation.fromJson(data)); | 308 return _response.then((data) => new Operation.fromJson(data)); |
309 } | 309 } |
310 | 310 |
311 /** | 311 /** |
312 * Lists operations that match the specified filter in the request. If the | 312 * Lists operations that match the specified filter in the request. If the |
313 * server doesn't support this method, it returns `UNIMPLEMENTED`. | 313 * server doesn't support this method, it returns `UNIMPLEMENTED`. |
314 * | 314 * |
315 * NOTE: the `name` binding below allows API services to override the binding | 315 * NOTE: the `name` binding allows API services to override the binding |
316 * to use different resource name schemes, such as `users / * /operations`. | 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. |
317 * | 322 * |
318 * Request parameters: | 323 * Request parameters: |
319 * | 324 * |
320 * [name] - The name of the operation collection. | 325 * [name] - The name of the operation's parent resource. |
321 * Value must have pattern "^inspect/operations$". | 326 * Value must have pattern "^inspect/operations$". |
322 * | 327 * |
| 328 * [pageSize] - The list page size. The max allowed value is 256 and default |
| 329 * is 100. |
| 330 * |
323 * [filter] - This parameter supports filtering by done, ie done=true or | 331 * [filter] - This parameter supports filtering by done, ie done=true or |
324 * done=false. | 332 * done=false. |
325 * | 333 * |
326 * [pageToken] - The list page token. | 334 * [pageToken] - The list page token. |
327 * | 335 * |
328 * [pageSize] - The list page size. The max allowed value is 256 and default | |
329 * is 100. | |
330 * | |
331 * Completes with a [ListOperationsResponse]. | 336 * Completes with a [ListOperationsResponse]. |
332 * | 337 * |
333 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 338 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
334 * error. | 339 * error. |
335 * | 340 * |
336 * If the used [http.Client] completes with an error when making a REST call, | 341 * If the used [http.Client] completes with an error when making a REST call, |
337 * this method will complete with the same error. | 342 * this method will complete with the same error. |
338 */ | 343 */ |
339 async.Future<ListOperationsResponse> list(core.String name, {core.String filte
r, core.String pageToken, core.int pageSize}) { | 344 async.Future<ListOperationsResponse> list(core.String name, {core.int pageSize
, core.String filter, core.String pageToken}) { |
340 var _url = null; | 345 var _url = null; |
341 var _queryParams = new core.Map(); | 346 var _queryParams = new core.Map(); |
342 var _uploadMedia = null; | 347 var _uploadMedia = null; |
343 var _uploadOptions = null; | 348 var _uploadOptions = null; |
344 var _downloadOptions = commons.DownloadOptions.Metadata; | 349 var _downloadOptions = commons.DownloadOptions.Metadata; |
345 var _body = null; | 350 var _body = null; |
346 | 351 |
347 if (name == null) { | 352 if (name == null) { |
348 throw new core.ArgumentError("Parameter name is required."); | 353 throw new core.ArgumentError("Parameter name is required."); |
349 } | 354 } |
| 355 if (pageSize != null) { |
| 356 _queryParams["pageSize"] = ["${pageSize}"]; |
| 357 } |
350 if (filter != null) { | 358 if (filter != null) { |
351 _queryParams["filter"] = [filter]; | 359 _queryParams["filter"] = [filter]; |
352 } | 360 } |
353 if (pageToken != null) { | 361 if (pageToken != null) { |
354 _queryParams["pageToken"] = [pageToken]; | 362 _queryParams["pageToken"] = [pageToken]; |
355 } | 363 } |
356 if (pageSize != null) { | |
357 _queryParams["pageSize"] = ["${pageSize}"]; | |
358 } | |
359 | 364 |
360 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); | 365 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); |
361 | 366 |
362 var _response = _requester.request(_url, | 367 var _response = _requester.request(_url, |
363 "GET", | 368 "GET", |
364 body: _body, | 369 body: _body, |
365 queryParams: _queryParams, | 370 queryParams: _queryParams, |
366 uploadOptions: _uploadOptions, | 371 uploadOptions: _uploadOptions, |
367 uploadMedia: _uploadMedia, | 372 uploadMedia: _uploadMedia, |
368 downloadOptions: _downloadOptions); | 373 downloadOptions: _downloadOptions); |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 | 576 |
572 | 577 |
573 /** The request message for Operations.CancelOperation. */ | 578 /** The request message for Operations.CancelOperation. */ |
574 class CancelOperationRequest { | 579 class CancelOperationRequest { |
575 | 580 |
576 CancelOperationRequest(); | 581 CancelOperationRequest(); |
577 | 582 |
578 CancelOperationRequest.fromJson(core.Map _json) { | 583 CancelOperationRequest.fromJson(core.Map _json) { |
579 } | 584 } |
580 | 585 |
581 core.Map toJson() { | 586 core.Map<core.String, core.Object> toJson() { |
582 var _json = new core.Map(); | 587 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
583 return _json; | 588 return _json; |
584 } | 589 } |
585 } | 590 } |
586 | 591 |
587 /** Info Type Category description. */ | 592 /** Info Type Category description. */ |
588 class CategoryDescription { | 593 class CategoryDescription { |
589 /** Human readable form of the category name. */ | 594 /** Human readable form of the category name. */ |
590 core.String displayName; | 595 core.String displayName; |
591 /** Internal name of the category. */ | 596 /** Internal name of the category. */ |
592 core.String name; | 597 core.String name; |
593 | 598 |
594 CategoryDescription(); | 599 CategoryDescription(); |
595 | 600 |
596 CategoryDescription.fromJson(core.Map _json) { | 601 CategoryDescription.fromJson(core.Map _json) { |
597 if (_json.containsKey("displayName")) { | 602 if (_json.containsKey("displayName")) { |
598 displayName = _json["displayName"]; | 603 displayName = _json["displayName"]; |
599 } | 604 } |
600 if (_json.containsKey("name")) { | 605 if (_json.containsKey("name")) { |
601 name = _json["name"]; | 606 name = _json["name"]; |
602 } | 607 } |
603 } | 608 } |
604 | 609 |
605 core.Map toJson() { | 610 core.Map<core.String, core.Object> toJson() { |
606 var _json = new core.Map(); | 611 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
607 if (displayName != null) { | 612 if (displayName != null) { |
608 _json["displayName"] = displayName; | 613 _json["displayName"] = displayName; |
609 } | 614 } |
610 if (name != null) { | 615 if (name != null) { |
611 _json["name"] = name; | 616 _json["name"] = name; |
612 } | 617 } |
613 return _json; | 618 return _json; |
614 } | 619 } |
615 } | 620 } |
616 | 621 |
617 /** Record key for a finding in a Cloud Storage file. */ | 622 /** Record key for a finding in a Cloud Storage file. */ |
618 class CloudStorageKey { | 623 class CloudStorageKey { |
619 /** Path to the file. */ | 624 /** Path to the file. */ |
620 core.String filePath; | 625 core.String filePath; |
621 /** Byte offset of the referenced data in the file. */ | 626 /** Byte offset of the referenced data in the file. */ |
622 core.String startOffset; | 627 core.String startOffset; |
623 | 628 |
624 CloudStorageKey(); | 629 CloudStorageKey(); |
625 | 630 |
626 CloudStorageKey.fromJson(core.Map _json) { | 631 CloudStorageKey.fromJson(core.Map _json) { |
627 if (_json.containsKey("filePath")) { | 632 if (_json.containsKey("filePath")) { |
628 filePath = _json["filePath"]; | 633 filePath = _json["filePath"]; |
629 } | 634 } |
630 if (_json.containsKey("startOffset")) { | 635 if (_json.containsKey("startOffset")) { |
631 startOffset = _json["startOffset"]; | 636 startOffset = _json["startOffset"]; |
632 } | 637 } |
633 } | 638 } |
634 | 639 |
635 core.Map toJson() { | 640 core.Map<core.String, core.Object> toJson() { |
636 var _json = new core.Map(); | 641 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
637 if (filePath != null) { | 642 if (filePath != null) { |
638 _json["filePath"] = filePath; | 643 _json["filePath"] = filePath; |
639 } | 644 } |
640 if (startOffset != null) { | 645 if (startOffset != null) { |
641 _json["startOffset"] = startOffset; | 646 _json["startOffset"] = startOffset; |
642 } | 647 } |
643 return _json; | 648 return _json; |
644 } | 649 } |
645 } | 650 } |
646 | 651 |
647 /** | 652 /** |
648 * Options defining a file or a set of files (path ending with *) within | 653 * Options defining a file or a set of files (path ending with *) within |
649 * a Google Cloud Storage bucket. | 654 * a Google Cloud Storage bucket. |
650 */ | 655 */ |
651 class CloudStorageOptions { | 656 class CloudStorageOptions { |
652 FileSet fileSet; | 657 FileSet fileSet; |
653 | 658 |
654 CloudStorageOptions(); | 659 CloudStorageOptions(); |
655 | 660 |
656 CloudStorageOptions.fromJson(core.Map _json) { | 661 CloudStorageOptions.fromJson(core.Map _json) { |
657 if (_json.containsKey("fileSet")) { | 662 if (_json.containsKey("fileSet")) { |
658 fileSet = new FileSet.fromJson(_json["fileSet"]); | 663 fileSet = new FileSet.fromJson(_json["fileSet"]); |
659 } | 664 } |
660 } | 665 } |
661 | 666 |
662 core.Map toJson() { | 667 core.Map<core.String, core.Object> toJson() { |
663 var _json = new core.Map(); | 668 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
664 if (fileSet != null) { | 669 if (fileSet != null) { |
665 _json["fileSet"] = (fileSet).toJson(); | 670 _json["fileSet"] = (fileSet).toJson(); |
666 } | 671 } |
667 return _json; | 672 return _json; |
668 } | 673 } |
669 } | 674 } |
670 | 675 |
671 /** A location in Cloud Storage. */ | 676 /** A location in Cloud Storage. */ |
672 class CloudStoragePath { | 677 class CloudStoragePath { |
673 /** The url, in the format of `gs://bucket/<path>`. */ | 678 /** The url, in the format of `gs://bucket/<path>`. */ |
674 core.String path; | 679 core.String path; |
675 | 680 |
676 CloudStoragePath(); | 681 CloudStoragePath(); |
677 | 682 |
678 CloudStoragePath.fromJson(core.Map _json) { | 683 CloudStoragePath.fromJson(core.Map _json) { |
679 if (_json.containsKey("path")) { | 684 if (_json.containsKey("path")) { |
680 path = _json["path"]; | 685 path = _json["path"]; |
681 } | 686 } |
682 } | 687 } |
683 | 688 |
684 core.Map toJson() { | 689 core.Map<core.String, core.Object> toJson() { |
685 var _json = new core.Map(); | 690 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
686 if (path != null) { | 691 if (path != null) { |
687 _json["path"] = path; | 692 _json["path"] = path; |
688 } | 693 } |
689 return _json; | 694 return _json; |
690 } | 695 } |
691 } | 696 } |
692 | 697 |
693 /** Container structure for the content to inspect. */ | 698 /** Container structure for the content to inspect. */ |
694 class ContentItem { | 699 class ContentItem { |
695 /** Content data to inspect or redact. */ | 700 /** Content data to inspect or redact. */ |
(...skipping 21 matching lines...) Expand all Loading... |
717 data = _json["data"]; | 722 data = _json["data"]; |
718 } | 723 } |
719 if (_json.containsKey("type")) { | 724 if (_json.containsKey("type")) { |
720 type = _json["type"]; | 725 type = _json["type"]; |
721 } | 726 } |
722 if (_json.containsKey("value")) { | 727 if (_json.containsKey("value")) { |
723 value = _json["value"]; | 728 value = _json["value"]; |
724 } | 729 } |
725 } | 730 } |
726 | 731 |
727 core.Map toJson() { | 732 core.Map<core.String, core.Object> toJson() { |
728 var _json = new core.Map(); | 733 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
729 if (data != null) { | 734 if (data != null) { |
730 _json["data"] = data; | 735 _json["data"] = data; |
731 } | 736 } |
732 if (type != null) { | 737 if (type != null) { |
733 _json["type"] = type; | 738 _json["type"] = type; |
734 } | 739 } |
735 if (value != null) { | 740 if (value != null) { |
736 _json["value"] = value; | 741 _json["value"] = value; |
737 } | 742 } |
738 return _json; | 743 return _json; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 inspectConfig = new InspectConfig.fromJson(_json["inspectConfig"]); | 778 inspectConfig = new InspectConfig.fromJson(_json["inspectConfig"]); |
774 } | 779 } |
775 if (_json.containsKey("outputConfig")) { | 780 if (_json.containsKey("outputConfig")) { |
776 outputConfig = new OutputStorageConfig.fromJson(_json["outputConfig"]); | 781 outputConfig = new OutputStorageConfig.fromJson(_json["outputConfig"]); |
777 } | 782 } |
778 if (_json.containsKey("storageConfig")) { | 783 if (_json.containsKey("storageConfig")) { |
779 storageConfig = new StorageConfig.fromJson(_json["storageConfig"]); | 784 storageConfig = new StorageConfig.fromJson(_json["storageConfig"]); |
780 } | 785 } |
781 } | 786 } |
782 | 787 |
783 core.Map toJson() { | 788 core.Map<core.String, core.Object> toJson() { |
784 var _json = new core.Map(); | 789 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
785 if (inspectConfig != null) { | 790 if (inspectConfig != null) { |
786 _json["inspectConfig"] = (inspectConfig).toJson(); | 791 _json["inspectConfig"] = (inspectConfig).toJson(); |
787 } | 792 } |
788 if (outputConfig != null) { | 793 if (outputConfig != null) { |
789 _json["outputConfig"] = (outputConfig).toJson(); | 794 _json["outputConfig"] = (outputConfig).toJson(); |
790 } | 795 } |
791 if (storageConfig != null) { | 796 if (storageConfig != null) { |
792 _json["storageConfig"] = (storageConfig).toJson(); | 797 _json["storageConfig"] = (storageConfig).toJson(); |
793 } | 798 } |
794 return _json; | 799 return _json; |
795 } | 800 } |
796 } | 801 } |
797 | 802 |
798 /** Record key for a finding in Cloud Datastore. */ | 803 /** Record key for a finding in Cloud Datastore. */ |
799 class DatastoreKey { | 804 class DatastoreKey { |
800 /** Datastore entity key. */ | 805 /** Datastore entity key. */ |
801 Key entityKey; | 806 Key entityKey; |
802 | 807 |
803 DatastoreKey(); | 808 DatastoreKey(); |
804 | 809 |
805 DatastoreKey.fromJson(core.Map _json) { | 810 DatastoreKey.fromJson(core.Map _json) { |
806 if (_json.containsKey("entityKey")) { | 811 if (_json.containsKey("entityKey")) { |
807 entityKey = new Key.fromJson(_json["entityKey"]); | 812 entityKey = new Key.fromJson(_json["entityKey"]); |
808 } | 813 } |
809 } | 814 } |
810 | 815 |
811 core.Map toJson() { | 816 core.Map<core.String, core.Object> toJson() { |
812 var _json = new core.Map(); | 817 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
813 if (entityKey != null) { | 818 if (entityKey != null) { |
814 _json["entityKey"] = (entityKey).toJson(); | 819 _json["entityKey"] = (entityKey).toJson(); |
815 } | 820 } |
816 return _json; | 821 return _json; |
817 } | 822 } |
818 } | 823 } |
819 | 824 |
820 /** Options defining a data set within Google Cloud Datastore. */ | 825 /** Options defining a data set within Google Cloud Datastore. */ |
821 class DatastoreOptions { | 826 class DatastoreOptions { |
822 /** The kind to process. */ | 827 /** The kind to process. */ |
(...skipping 16 matching lines...) Expand all Loading... |
839 kind = new KindExpression.fromJson(_json["kind"]); | 844 kind = new KindExpression.fromJson(_json["kind"]); |
840 } | 845 } |
841 if (_json.containsKey("partitionId")) { | 846 if (_json.containsKey("partitionId")) { |
842 partitionId = new PartitionId.fromJson(_json["partitionId"]); | 847 partitionId = new PartitionId.fromJson(_json["partitionId"]); |
843 } | 848 } |
844 if (_json.containsKey("projection")) { | 849 if (_json.containsKey("projection")) { |
845 projection = _json["projection"].map((value) => new Projection.fromJson(va
lue)).toList(); | 850 projection = _json["projection"].map((value) => new Projection.fromJson(va
lue)).toList(); |
846 } | 851 } |
847 } | 852 } |
848 | 853 |
849 core.Map toJson() { | 854 core.Map<core.String, core.Object> toJson() { |
850 var _json = new core.Map(); | 855 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
851 if (kind != null) { | 856 if (kind != null) { |
852 _json["kind"] = (kind).toJson(); | 857 _json["kind"] = (kind).toJson(); |
853 } | 858 } |
854 if (partitionId != null) { | 859 if (partitionId != null) { |
855 _json["partitionId"] = (partitionId).toJson(); | 860 _json["partitionId"] = (partitionId).toJson(); |
856 } | 861 } |
857 if (projection != null) { | 862 if (projection != null) { |
858 _json["projection"] = projection.map((value) => (value).toJson()).toList()
; | 863 _json["projection"] = projection.map((value) => (value).toJson()).toList()
; |
859 } | 864 } |
860 return _json; | 865 return _json; |
(...skipping 11 matching lines...) Expand all Loading... |
872 * | 877 * |
873 * The JSON representation for `Empty` is empty JSON object `{}`. | 878 * The JSON representation for `Empty` is empty JSON object `{}`. |
874 */ | 879 */ |
875 class Empty { | 880 class Empty { |
876 | 881 |
877 Empty(); | 882 Empty(); |
878 | 883 |
879 Empty.fromJson(core.Map _json) { | 884 Empty.fromJson(core.Map _json) { |
880 } | 885 } |
881 | 886 |
882 core.Map toJson() { | 887 core.Map<core.String, core.Object> toJson() { |
883 var _json = new core.Map(); | 888 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
884 return _json; | 889 return _json; |
885 } | 890 } |
886 } | 891 } |
887 | 892 |
888 /** General identifier of a data field in a storage service. */ | 893 /** General identifier of a data field in a storage service. */ |
889 class FieldId { | 894 class FieldId { |
890 /** Column name describing the field. */ | 895 /** Column name describing the field. */ |
891 core.String columnName; | 896 core.String columnName; |
892 | 897 |
893 FieldId(); | 898 FieldId(); |
894 | 899 |
895 FieldId.fromJson(core.Map _json) { | 900 FieldId.fromJson(core.Map _json) { |
896 if (_json.containsKey("columnName")) { | 901 if (_json.containsKey("columnName")) { |
897 columnName = _json["columnName"]; | 902 columnName = _json["columnName"]; |
898 } | 903 } |
899 } | 904 } |
900 | 905 |
901 core.Map toJson() { | 906 core.Map<core.String, core.Object> toJson() { |
902 var _json = new core.Map(); | 907 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
903 if (columnName != null) { | 908 if (columnName != null) { |
904 _json["columnName"] = columnName; | 909 _json["columnName"] = columnName; |
905 } | 910 } |
906 return _json; | 911 return _json; |
907 } | 912 } |
908 } | 913 } |
909 | 914 |
910 /** Set of files to scan. */ | 915 /** Set of files to scan. */ |
911 class FileSet { | 916 class FileSet { |
912 /** | 917 /** |
913 * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the | 918 * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the |
914 * path is allowed. | 919 * path is allowed. |
915 */ | 920 */ |
916 core.String url; | 921 core.String url; |
917 | 922 |
918 FileSet(); | 923 FileSet(); |
919 | 924 |
920 FileSet.fromJson(core.Map _json) { | 925 FileSet.fromJson(core.Map _json) { |
921 if (_json.containsKey("url")) { | 926 if (_json.containsKey("url")) { |
922 url = _json["url"]; | 927 url = _json["url"]; |
923 } | 928 } |
924 } | 929 } |
925 | 930 |
926 core.Map toJson() { | 931 core.Map<core.String, core.Object> toJson() { |
927 var _json = new core.Map(); | 932 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
928 if (url != null) { | 933 if (url != null) { |
929 _json["url"] = url; | 934 _json["url"] = url; |
930 } | 935 } |
931 return _json; | 936 return _json; |
932 } | 937 } |
933 } | 938 } |
934 | 939 |
935 /** | 940 /** |
936 * Container structure describing a single finding within a string or image. | 941 * Container structure describing a single finding within a string or image. |
937 */ | 942 */ |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
970 likelihood = _json["likelihood"]; | 975 likelihood = _json["likelihood"]; |
971 } | 976 } |
972 if (_json.containsKey("location")) { | 977 if (_json.containsKey("location")) { |
973 location = new Location.fromJson(_json["location"]); | 978 location = new Location.fromJson(_json["location"]); |
974 } | 979 } |
975 if (_json.containsKey("quote")) { | 980 if (_json.containsKey("quote")) { |
976 quote = _json["quote"]; | 981 quote = _json["quote"]; |
977 } | 982 } |
978 } | 983 } |
979 | 984 |
980 core.Map toJson() { | 985 core.Map<core.String, core.Object> toJson() { |
981 var _json = new core.Map(); | 986 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
982 if (createTime != null) { | 987 if (createTime != null) { |
983 _json["createTime"] = createTime; | 988 _json["createTime"] = createTime; |
984 } | 989 } |
985 if (infoType != null) { | 990 if (infoType != null) { |
986 _json["infoType"] = (infoType).toJson(); | 991 _json["infoType"] = (infoType).toJson(); |
987 } | 992 } |
988 if (likelihood != null) { | 993 if (likelihood != null) { |
989 _json["likelihood"] = likelihood; | 994 _json["likelihood"] = likelihood; |
990 } | 995 } |
991 if (location != null) { | 996 if (location != null) { |
(...skipping 27 matching lines...) Expand all Loading... |
1019 left = _json["left"]; | 1024 left = _json["left"]; |
1020 } | 1025 } |
1021 if (_json.containsKey("top")) { | 1026 if (_json.containsKey("top")) { |
1022 top = _json["top"]; | 1027 top = _json["top"]; |
1023 } | 1028 } |
1024 if (_json.containsKey("width")) { | 1029 if (_json.containsKey("width")) { |
1025 width = _json["width"]; | 1030 width = _json["width"]; |
1026 } | 1031 } |
1027 } | 1032 } |
1028 | 1033 |
1029 core.Map toJson() { | 1034 core.Map<core.String, core.Object> toJson() { |
1030 var _json = new core.Map(); | 1035 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1031 if (height != null) { | 1036 if (height != null) { |
1032 _json["height"] = height; | 1037 _json["height"] = height; |
1033 } | 1038 } |
1034 if (left != null) { | 1039 if (left != null) { |
1035 _json["left"] = left; | 1040 _json["left"] = left; |
1036 } | 1041 } |
1037 if (top != null) { | 1042 if (top != null) { |
1038 _json["top"] = top; | 1043 _json["top"] = top; |
1039 } | 1044 } |
1040 if (width != null) { | 1045 if (width != null) { |
1041 _json["width"] = width; | 1046 _json["width"] = width; |
1042 } | 1047 } |
1043 return _json; | 1048 return _json; |
1044 } | 1049 } |
1045 } | 1050 } |
1046 | 1051 |
1047 /** Type of information detected by the API. */ | 1052 /** Type of information detected by the API. */ |
1048 class InfoType { | 1053 class InfoType { |
1049 /** Name of the information type, provided by the API call ListInfoTypes. */ | 1054 /** |
| 1055 * 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 |
| 1057 * provided by the user. All user-defined info types must have unique names, |
| 1058 * and cannot conflict with built-in info type names. |
| 1059 */ |
1050 core.String name; | 1060 core.String name; |
1051 | 1061 |
1052 InfoType(); | 1062 InfoType(); |
1053 | 1063 |
1054 InfoType.fromJson(core.Map _json) { | 1064 InfoType.fromJson(core.Map _json) { |
1055 if (_json.containsKey("name")) { | 1065 if (_json.containsKey("name")) { |
1056 name = _json["name"]; | 1066 name = _json["name"]; |
1057 } | 1067 } |
1058 } | 1068 } |
1059 | 1069 |
1060 core.Map toJson() { | 1070 core.Map<core.String, core.Object> toJson() { |
1061 var _json = new core.Map(); | 1071 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1062 if (name != null) { | 1072 if (name != null) { |
1063 _json["name"] = name; | 1073 _json["name"] = name; |
1064 } | 1074 } |
1065 return _json; | 1075 return _json; |
1066 } | 1076 } |
1067 } | 1077 } |
1068 | 1078 |
1069 /** Info type description. */ | 1079 /** Info type description. */ |
1070 class InfoTypeDescription { | 1080 class InfoTypeDescription { |
1071 /** List of categories this info type belongs to. */ | 1081 /** List of categories this info type belongs to. */ |
(...skipping 10 matching lines...) Expand all Loading... |
1082 categories = _json["categories"].map((value) => new CategoryDescription.fr
omJson(value)).toList(); | 1092 categories = _json["categories"].map((value) => new CategoryDescription.fr
omJson(value)).toList(); |
1083 } | 1093 } |
1084 if (_json.containsKey("displayName")) { | 1094 if (_json.containsKey("displayName")) { |
1085 displayName = _json["displayName"]; | 1095 displayName = _json["displayName"]; |
1086 } | 1096 } |
1087 if (_json.containsKey("name")) { | 1097 if (_json.containsKey("name")) { |
1088 name = _json["name"]; | 1098 name = _json["name"]; |
1089 } | 1099 } |
1090 } | 1100 } |
1091 | 1101 |
1092 core.Map toJson() { | 1102 core.Map<core.String, core.Object> toJson() { |
1093 var _json = new core.Map(); | 1103 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1094 if (categories != null) { | 1104 if (categories != null) { |
1095 _json["categories"] = categories.map((value) => (value).toJson()).toList()
; | 1105 _json["categories"] = categories.map((value) => (value).toJson()).toList()
; |
1096 } | 1106 } |
1097 if (displayName != null) { | 1107 if (displayName != null) { |
1098 _json["displayName"] = displayName; | 1108 _json["displayName"] = displayName; |
1099 } | 1109 } |
1100 if (name != null) { | 1110 if (name != null) { |
1101 _json["name"] = name; | 1111 _json["name"] = name; |
1102 } | 1112 } |
1103 return _json; | 1113 return _json; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1151 infoTypes = _json["infoTypes"].map((value) => new InfoType.fromJson(value)
).toList(); | 1161 infoTypes = _json["infoTypes"].map((value) => new InfoType.fromJson(value)
).toList(); |
1152 } | 1162 } |
1153 if (_json.containsKey("maxFindings")) { | 1163 if (_json.containsKey("maxFindings")) { |
1154 maxFindings = _json["maxFindings"]; | 1164 maxFindings = _json["maxFindings"]; |
1155 } | 1165 } |
1156 if (_json.containsKey("minLikelihood")) { | 1166 if (_json.containsKey("minLikelihood")) { |
1157 minLikelihood = _json["minLikelihood"]; | 1167 minLikelihood = _json["minLikelihood"]; |
1158 } | 1168 } |
1159 } | 1169 } |
1160 | 1170 |
1161 core.Map toJson() { | 1171 core.Map<core.String, core.Object> toJson() { |
1162 var _json = new core.Map(); | 1172 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1163 if (excludeTypes != null) { | 1173 if (excludeTypes != null) { |
1164 _json["excludeTypes"] = excludeTypes; | 1174 _json["excludeTypes"] = excludeTypes; |
1165 } | 1175 } |
1166 if (includeQuote != null) { | 1176 if (includeQuote != null) { |
1167 _json["includeQuote"] = includeQuote; | 1177 _json["includeQuote"] = includeQuote; |
1168 } | 1178 } |
1169 if (infoTypes != null) { | 1179 if (infoTypes != null) { |
1170 _json["infoTypes"] = infoTypes.map((value) => (value).toJson()).toList(); | 1180 _json["infoTypes"] = infoTypes.map((value) => (value).toJson()).toList(); |
1171 } | 1181 } |
1172 if (maxFindings != null) { | 1182 if (maxFindings != null) { |
(...skipping 21 matching lines...) Expand all Loading... |
1194 | 1204 |
1195 InspectContentRequest.fromJson(core.Map _json) { | 1205 InspectContentRequest.fromJson(core.Map _json) { |
1196 if (_json.containsKey("inspectConfig")) { | 1206 if (_json.containsKey("inspectConfig")) { |
1197 inspectConfig = new InspectConfig.fromJson(_json["inspectConfig"]); | 1207 inspectConfig = new InspectConfig.fromJson(_json["inspectConfig"]); |
1198 } | 1208 } |
1199 if (_json.containsKey("items")) { | 1209 if (_json.containsKey("items")) { |
1200 items = _json["items"].map((value) => new ContentItem.fromJson(value)).toL
ist(); | 1210 items = _json["items"].map((value) => new ContentItem.fromJson(value)).toL
ist(); |
1201 } | 1211 } |
1202 } | 1212 } |
1203 | 1213 |
1204 core.Map toJson() { | 1214 core.Map<core.String, core.Object> toJson() { |
1205 var _json = new core.Map(); | 1215 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1206 if (inspectConfig != null) { | 1216 if (inspectConfig != null) { |
1207 _json["inspectConfig"] = (inspectConfig).toJson(); | 1217 _json["inspectConfig"] = (inspectConfig).toJson(); |
1208 } | 1218 } |
1209 if (items != null) { | 1219 if (items != null) { |
1210 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1220 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1211 } | 1221 } |
1212 return _json; | 1222 return _json; |
1213 } | 1223 } |
1214 } | 1224 } |
1215 | 1225 |
1216 /** Results of inspecting a list of items. */ | 1226 /** Results of inspecting a list of items. */ |
1217 class InspectContentResponse { | 1227 class InspectContentResponse { |
1218 /** | 1228 /** |
1219 * Each content_item from the request has a result in this list, in the | 1229 * Each content_item from the request has a result in this list, in the |
1220 * same order as the request. | 1230 * same order as the request. |
1221 */ | 1231 */ |
1222 core.List<InspectResult> results; | 1232 core.List<InspectResult> results; |
1223 | 1233 |
1224 InspectContentResponse(); | 1234 InspectContentResponse(); |
1225 | 1235 |
1226 InspectContentResponse.fromJson(core.Map _json) { | 1236 InspectContentResponse.fromJson(core.Map _json) { |
1227 if (_json.containsKey("results")) { | 1237 if (_json.containsKey("results")) { |
1228 results = _json["results"].map((value) => new InspectResult.fromJson(value
)).toList(); | 1238 results = _json["results"].map((value) => new InspectResult.fromJson(value
)).toList(); |
1229 } | 1239 } |
1230 } | 1240 } |
1231 | 1241 |
1232 core.Map toJson() { | 1242 core.Map<core.String, core.Object> toJson() { |
1233 var _json = new core.Map(); | 1243 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1234 if (results != null) { | 1244 if (results != null) { |
1235 _json["results"] = results.map((value) => (value).toJson()).toList(); | 1245 _json["results"] = results.map((value) => (value).toJson()).toList(); |
1236 } | 1246 } |
1237 return _json; | 1247 return _json; |
1238 } | 1248 } |
1239 } | 1249 } |
1240 | 1250 |
1241 /** All the findings for a single scanned item. */ | 1251 /** All the findings for a single scanned item. */ |
1242 class InspectResult { | 1252 class InspectResult { |
1243 /** List of findings for an item. */ | 1253 /** List of findings for an item. */ |
(...skipping 12 matching lines...) Expand all Loading... |
1256 | 1266 |
1257 InspectResult.fromJson(core.Map _json) { | 1267 InspectResult.fromJson(core.Map _json) { |
1258 if (_json.containsKey("findings")) { | 1268 if (_json.containsKey("findings")) { |
1259 findings = _json["findings"].map((value) => new Finding.fromJson(value)).t
oList(); | 1269 findings = _json["findings"].map((value) => new Finding.fromJson(value)).t
oList(); |
1260 } | 1270 } |
1261 if (_json.containsKey("findingsTruncated")) { | 1271 if (_json.containsKey("findingsTruncated")) { |
1262 findingsTruncated = _json["findingsTruncated"]; | 1272 findingsTruncated = _json["findingsTruncated"]; |
1263 } | 1273 } |
1264 } | 1274 } |
1265 | 1275 |
1266 core.Map toJson() { | 1276 core.Map<core.String, core.Object> toJson() { |
1267 var _json = new core.Map(); | 1277 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1268 if (findings != null) { | 1278 if (findings != null) { |
1269 _json["findings"] = findings.map((value) => (value).toJson()).toList(); | 1279 _json["findings"] = findings.map((value) => (value).toJson()).toList(); |
1270 } | 1280 } |
1271 if (findingsTruncated != null) { | 1281 if (findingsTruncated != null) { |
1272 _json["findingsTruncated"] = findingsTruncated; | 1282 _json["findingsTruncated"] = findingsTruncated; |
1273 } | 1283 } |
1274 return _json; | 1284 return _json; |
1275 } | 1285 } |
1276 } | 1286 } |
1277 | 1287 |
(...skipping 27 matching lines...) Expand all Loading... |
1305 | 1315 |
1306 Key.fromJson(core.Map _json) { | 1316 Key.fromJson(core.Map _json) { |
1307 if (_json.containsKey("partitionId")) { | 1317 if (_json.containsKey("partitionId")) { |
1308 partitionId = new PartitionId.fromJson(_json["partitionId"]); | 1318 partitionId = new PartitionId.fromJson(_json["partitionId"]); |
1309 } | 1319 } |
1310 if (_json.containsKey("path")) { | 1320 if (_json.containsKey("path")) { |
1311 path = _json["path"].map((value) => new PathElement.fromJson(value)).toLis
t(); | 1321 path = _json["path"].map((value) => new PathElement.fromJson(value)).toLis
t(); |
1312 } | 1322 } |
1313 } | 1323 } |
1314 | 1324 |
1315 core.Map toJson() { | 1325 core.Map<core.String, core.Object> toJson() { |
1316 var _json = new core.Map(); | 1326 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1317 if (partitionId != null) { | 1327 if (partitionId != null) { |
1318 _json["partitionId"] = (partitionId).toJson(); | 1328 _json["partitionId"] = (partitionId).toJson(); |
1319 } | 1329 } |
1320 if (path != null) { | 1330 if (path != null) { |
1321 _json["path"] = path.map((value) => (value).toJson()).toList(); | 1331 _json["path"] = path.map((value) => (value).toJson()).toList(); |
1322 } | 1332 } |
1323 return _json; | 1333 return _json; |
1324 } | 1334 } |
1325 } | 1335 } |
1326 | 1336 |
1327 /** A representation of a Datastore kind. */ | 1337 /** A representation of a Datastore kind. */ |
1328 class KindExpression { | 1338 class KindExpression { |
1329 /** The name of the kind. */ | 1339 /** The name of the kind. */ |
1330 core.String name; | 1340 core.String name; |
1331 | 1341 |
1332 KindExpression(); | 1342 KindExpression(); |
1333 | 1343 |
1334 KindExpression.fromJson(core.Map _json) { | 1344 KindExpression.fromJson(core.Map _json) { |
1335 if (_json.containsKey("name")) { | 1345 if (_json.containsKey("name")) { |
1336 name = _json["name"]; | 1346 name = _json["name"]; |
1337 } | 1347 } |
1338 } | 1348 } |
1339 | 1349 |
1340 core.Map toJson() { | 1350 core.Map<core.String, core.Object> toJson() { |
1341 var _json = new core.Map(); | 1351 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1342 if (name != null) { | 1352 if (name != null) { |
1343 _json["name"] = name; | 1353 _json["name"] = name; |
1344 } | 1354 } |
1345 return _json; | 1355 return _json; |
1346 } | 1356 } |
1347 } | 1357 } |
1348 | 1358 |
1349 /** Response to the ListInfoTypes request. */ | 1359 /** Response to the ListInfoTypes request. */ |
1350 class ListInfoTypesResponse { | 1360 class ListInfoTypesResponse { |
1351 /** Set of sensitive info types belonging to a category. */ | 1361 /** Set of sensitive info types belonging to a category. */ |
1352 core.List<InfoTypeDescription> infoTypes; | 1362 core.List<InfoTypeDescription> infoTypes; |
1353 | 1363 |
1354 ListInfoTypesResponse(); | 1364 ListInfoTypesResponse(); |
1355 | 1365 |
1356 ListInfoTypesResponse.fromJson(core.Map _json) { | 1366 ListInfoTypesResponse.fromJson(core.Map _json) { |
1357 if (_json.containsKey("infoTypes")) { | 1367 if (_json.containsKey("infoTypes")) { |
1358 infoTypes = _json["infoTypes"].map((value) => new InfoTypeDescription.from
Json(value)).toList(); | 1368 infoTypes = _json["infoTypes"].map((value) => new InfoTypeDescription.from
Json(value)).toList(); |
1359 } | 1369 } |
1360 } | 1370 } |
1361 | 1371 |
1362 core.Map toJson() { | 1372 core.Map<core.String, core.Object> toJson() { |
1363 var _json = new core.Map(); | 1373 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1364 if (infoTypes != null) { | 1374 if (infoTypes != null) { |
1365 _json["infoTypes"] = infoTypes.map((value) => (value).toJson()).toList(); | 1375 _json["infoTypes"] = infoTypes.map((value) => (value).toJson()).toList(); |
1366 } | 1376 } |
1367 return _json; | 1377 return _json; |
1368 } | 1378 } |
1369 } | 1379 } |
1370 | 1380 |
1371 /** Response to the ListInspectFindings request. */ | 1381 /** Response to the ListInspectFindings request. */ |
1372 class ListInspectFindingsResponse { | 1382 class ListInspectFindingsResponse { |
1373 /** | 1383 /** |
1374 * If not empty, indicates that there may be more results that match the | 1384 * If not empty, indicates that there may be more results that match the |
1375 * request; this value should be passed in a new `ListInspectFindingsRequest`. | 1385 * request; this value should be passed in a new `ListInspectFindingsRequest`. |
1376 */ | 1386 */ |
1377 core.String nextPageToken; | 1387 core.String nextPageToken; |
1378 /** The results. */ | 1388 /** The results. */ |
1379 InspectResult result; | 1389 InspectResult result; |
1380 | 1390 |
1381 ListInspectFindingsResponse(); | 1391 ListInspectFindingsResponse(); |
1382 | 1392 |
1383 ListInspectFindingsResponse.fromJson(core.Map _json) { | 1393 ListInspectFindingsResponse.fromJson(core.Map _json) { |
1384 if (_json.containsKey("nextPageToken")) { | 1394 if (_json.containsKey("nextPageToken")) { |
1385 nextPageToken = _json["nextPageToken"]; | 1395 nextPageToken = _json["nextPageToken"]; |
1386 } | 1396 } |
1387 if (_json.containsKey("result")) { | 1397 if (_json.containsKey("result")) { |
1388 result = new InspectResult.fromJson(_json["result"]); | 1398 result = new InspectResult.fromJson(_json["result"]); |
1389 } | 1399 } |
1390 } | 1400 } |
1391 | 1401 |
1392 core.Map toJson() { | 1402 core.Map<core.String, core.Object> toJson() { |
1393 var _json = new core.Map(); | 1403 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1394 if (nextPageToken != null) { | 1404 if (nextPageToken != null) { |
1395 _json["nextPageToken"] = nextPageToken; | 1405 _json["nextPageToken"] = nextPageToken; |
1396 } | 1406 } |
1397 if (result != null) { | 1407 if (result != null) { |
1398 _json["result"] = (result).toJson(); | 1408 _json["result"] = (result).toJson(); |
1399 } | 1409 } |
1400 return _json; | 1410 return _json; |
1401 } | 1411 } |
1402 } | 1412 } |
1403 | 1413 |
1404 /** The response message for Operations.ListOperations. */ | 1414 /** The response message for Operations.ListOperations. */ |
1405 class ListOperationsResponse { | 1415 class ListOperationsResponse { |
1406 /** The standard List next-page token. */ | 1416 /** The standard List next-page token. */ |
1407 core.String nextPageToken; | 1417 core.String nextPageToken; |
1408 /** A list of operations that matches the specified filter in the request. */ | 1418 /** A list of operations that matches the specified filter in the request. */ |
1409 core.List<Operation> operations; | 1419 core.List<Operation> operations; |
1410 | 1420 |
1411 ListOperationsResponse(); | 1421 ListOperationsResponse(); |
1412 | 1422 |
1413 ListOperationsResponse.fromJson(core.Map _json) { | 1423 ListOperationsResponse.fromJson(core.Map _json) { |
1414 if (_json.containsKey("nextPageToken")) { | 1424 if (_json.containsKey("nextPageToken")) { |
1415 nextPageToken = _json["nextPageToken"]; | 1425 nextPageToken = _json["nextPageToken"]; |
1416 } | 1426 } |
1417 if (_json.containsKey("operations")) { | 1427 if (_json.containsKey("operations")) { |
1418 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); | 1428 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); |
1419 } | 1429 } |
1420 } | 1430 } |
1421 | 1431 |
1422 core.Map toJson() { | 1432 core.Map<core.String, core.Object> toJson() { |
1423 var _json = new core.Map(); | 1433 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1424 if (nextPageToken != null) { | 1434 if (nextPageToken != null) { |
1425 _json["nextPageToken"] = nextPageToken; | 1435 _json["nextPageToken"] = nextPageToken; |
1426 } | 1436 } |
1427 if (operations != null) { | 1437 if (operations != null) { |
1428 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 1438 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; |
1429 } | 1439 } |
1430 return _json; | 1440 return _json; |
1431 } | 1441 } |
1432 } | 1442 } |
1433 | 1443 |
1434 /** Response for ListRootCategories request. */ | 1444 /** Response for ListRootCategories request. */ |
1435 class ListRootCategoriesResponse { | 1445 class ListRootCategoriesResponse { |
1436 /** List of all into type categories supported by the API. */ | 1446 /** List of all into type categories supported by the API. */ |
1437 core.List<CategoryDescription> categories; | 1447 core.List<CategoryDescription> categories; |
1438 | 1448 |
1439 ListRootCategoriesResponse(); | 1449 ListRootCategoriesResponse(); |
1440 | 1450 |
1441 ListRootCategoriesResponse.fromJson(core.Map _json) { | 1451 ListRootCategoriesResponse.fromJson(core.Map _json) { |
1442 if (_json.containsKey("categories")) { | 1452 if (_json.containsKey("categories")) { |
1443 categories = _json["categories"].map((value) => new CategoryDescription.fr
omJson(value)).toList(); | 1453 categories = _json["categories"].map((value) => new CategoryDescription.fr
omJson(value)).toList(); |
1444 } | 1454 } |
1445 } | 1455 } |
1446 | 1456 |
1447 core.Map toJson() { | 1457 core.Map<core.String, core.Object> toJson() { |
1448 var _json = new core.Map(); | 1458 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1449 if (categories != null) { | 1459 if (categories != null) { |
1450 _json["categories"] = categories.map((value) => (value).toJson()).toList()
; | 1460 _json["categories"] = categories.map((value) => (value).toJson()).toList()
; |
1451 } | 1461 } |
1452 return _json; | 1462 return _json; |
1453 } | 1463 } |
1454 } | 1464 } |
1455 | 1465 |
1456 /** Specifies the location of a finding within its source item. */ | 1466 /** Specifies the location of a finding within its source item. */ |
1457 class Location { | 1467 class Location { |
1458 /** Zero-based byte offsets within a content item. */ | 1468 /** Zero-based byte offsets within a content item. */ |
(...skipping 23 matching lines...) Expand all Loading... |
1482 fieldId = new FieldId.fromJson(_json["fieldId"]); | 1492 fieldId = new FieldId.fromJson(_json["fieldId"]); |
1483 } | 1493 } |
1484 if (_json.containsKey("imageBoxes")) { | 1494 if (_json.containsKey("imageBoxes")) { |
1485 imageBoxes = _json["imageBoxes"].map((value) => new ImageLocation.fromJson
(value)).toList(); | 1495 imageBoxes = _json["imageBoxes"].map((value) => new ImageLocation.fromJson
(value)).toList(); |
1486 } | 1496 } |
1487 if (_json.containsKey("recordKey")) { | 1497 if (_json.containsKey("recordKey")) { |
1488 recordKey = new RecordKey.fromJson(_json["recordKey"]); | 1498 recordKey = new RecordKey.fromJson(_json["recordKey"]); |
1489 } | 1499 } |
1490 } | 1500 } |
1491 | 1501 |
1492 core.Map toJson() { | 1502 core.Map<core.String, core.Object> toJson() { |
1493 var _json = new core.Map(); | 1503 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1494 if (byteRange != null) { | 1504 if (byteRange != null) { |
1495 _json["byteRange"] = (byteRange).toJson(); | 1505 _json["byteRange"] = (byteRange).toJson(); |
1496 } | 1506 } |
1497 if (codepointRange != null) { | 1507 if (codepointRange != null) { |
1498 _json["codepointRange"] = (codepointRange).toJson(); | 1508 _json["codepointRange"] = (codepointRange).toJson(); |
1499 } | 1509 } |
1500 if (fieldId != null) { | 1510 if (fieldId != null) { |
1501 _json["fieldId"] = (fieldId).toJson(); | 1511 _json["fieldId"] = (fieldId).toJson(); |
1502 } | 1512 } |
1503 if (imageBoxes != null) { | 1513 if (imageBoxes != null) { |
(...skipping 13 matching lines...) Expand all Loading... |
1517 class Operation { | 1527 class Operation { |
1518 /** | 1528 /** |
1519 * If the value is `false`, it means the operation is still in progress. | 1529 * If the value is `false`, it means the operation is still in progress. |
1520 * If true, the operation is completed, and either `error` or `response` is | 1530 * If true, the operation is completed, and either `error` or `response` is |
1521 * available. | 1531 * available. |
1522 */ | 1532 */ |
1523 core.bool done; | 1533 core.bool done; |
1524 /** The error result of the operation in case of failure or cancellation. */ | 1534 /** The error result of the operation in case of failure or cancellation. */ |
1525 Status error; | 1535 Status error; |
1526 /** | 1536 /** |
1527 * This field will contain an `InspectOperationMetdata` object. | 1537 * This field will contain an `InspectOperationMetadata` object. |
1528 * | 1538 * |
1529 * The values for Object must be JSON objects. It can consist of `num`, | 1539 * The values for Object must be JSON objects. It can consist of `num`, |
1530 * `String`, `bool` and `null` as well as `Map` and `List` values. | 1540 * `String`, `bool` and `null` as well as `Map` and `List` values. |
1531 */ | 1541 */ |
1532 core.Map<core.String, core.Object> metadata; | 1542 core.Map<core.String, core.Object> metadata; |
1533 /** | 1543 /** |
1534 * The server-assigned name, The `name` should have the format of | 1544 * The server-assigned name, The `name` should have the format of |
1535 * `inspect/operations/<identifier>`. | 1545 * `inspect/operations/<identifier>`. |
1536 */ | 1546 */ |
1537 core.String name; | 1547 core.String name; |
(...skipping 18 matching lines...) Expand all Loading... |
1556 metadata = _json["metadata"]; | 1566 metadata = _json["metadata"]; |
1557 } | 1567 } |
1558 if (_json.containsKey("name")) { | 1568 if (_json.containsKey("name")) { |
1559 name = _json["name"]; | 1569 name = _json["name"]; |
1560 } | 1570 } |
1561 if (_json.containsKey("response")) { | 1571 if (_json.containsKey("response")) { |
1562 response = _json["response"]; | 1572 response = _json["response"]; |
1563 } | 1573 } |
1564 } | 1574 } |
1565 | 1575 |
1566 core.Map toJson() { | 1576 core.Map<core.String, core.Object> toJson() { |
1567 var _json = new core.Map(); | 1577 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1568 if (done != null) { | 1578 if (done != null) { |
1569 _json["done"] = done; | 1579 _json["done"] = done; |
1570 } | 1580 } |
1571 if (error != null) { | 1581 if (error != null) { |
1572 _json["error"] = (error).toJson(); | 1582 _json["error"] = (error).toJson(); |
1573 } | 1583 } |
1574 if (metadata != null) { | 1584 if (metadata != null) { |
1575 _json["metadata"] = metadata; | 1585 _json["metadata"] = metadata; |
1576 } | 1586 } |
1577 if (name != null) { | 1587 if (name != null) { |
(...skipping 12 matching lines...) Expand all Loading... |
1590 CloudStoragePath storagePath; | 1600 CloudStoragePath storagePath; |
1591 | 1601 |
1592 OutputStorageConfig(); | 1602 OutputStorageConfig(); |
1593 | 1603 |
1594 OutputStorageConfig.fromJson(core.Map _json) { | 1604 OutputStorageConfig.fromJson(core.Map _json) { |
1595 if (_json.containsKey("storagePath")) { | 1605 if (_json.containsKey("storagePath")) { |
1596 storagePath = new CloudStoragePath.fromJson(_json["storagePath"]); | 1606 storagePath = new CloudStoragePath.fromJson(_json["storagePath"]); |
1597 } | 1607 } |
1598 } | 1608 } |
1599 | 1609 |
1600 core.Map toJson() { | 1610 core.Map<core.String, core.Object> toJson() { |
1601 var _json = new core.Map(); | 1611 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1602 if (storagePath != null) { | 1612 if (storagePath != null) { |
1603 _json["storagePath"] = (storagePath).toJson(); | 1613 _json["storagePath"] = (storagePath).toJson(); |
1604 } | 1614 } |
1605 return _json; | 1615 return _json; |
1606 } | 1616 } |
1607 } | 1617 } |
1608 | 1618 |
1609 /** | 1619 /** |
1610 * Datastore partition ID. | 1620 * Datastore partition ID. |
1611 * A partition ID identifies a grouping of entities. The grouping is always | 1621 * A partition ID identifies a grouping of entities. The grouping is always |
(...skipping 12 matching lines...) Expand all Loading... |
1624 | 1634 |
1625 PartitionId.fromJson(core.Map _json) { | 1635 PartitionId.fromJson(core.Map _json) { |
1626 if (_json.containsKey("namespaceId")) { | 1636 if (_json.containsKey("namespaceId")) { |
1627 namespaceId = _json["namespaceId"]; | 1637 namespaceId = _json["namespaceId"]; |
1628 } | 1638 } |
1629 if (_json.containsKey("projectId")) { | 1639 if (_json.containsKey("projectId")) { |
1630 projectId = _json["projectId"]; | 1640 projectId = _json["projectId"]; |
1631 } | 1641 } |
1632 } | 1642 } |
1633 | 1643 |
1634 core.Map toJson() { | 1644 core.Map<core.String, core.Object> toJson() { |
1635 var _json = new core.Map(); | 1645 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1636 if (namespaceId != null) { | 1646 if (namespaceId != null) { |
1637 _json["namespaceId"] = namespaceId; | 1647 _json["namespaceId"] = namespaceId; |
1638 } | 1648 } |
1639 if (projectId != null) { | 1649 if (projectId != null) { |
1640 _json["projectId"] = projectId; | 1650 _json["projectId"] = projectId; |
1641 } | 1651 } |
1642 return _json; | 1652 return _json; |
1643 } | 1653 } |
1644 } | 1654 } |
1645 | 1655 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1678 id = _json["id"]; | 1688 id = _json["id"]; |
1679 } | 1689 } |
1680 if (_json.containsKey("kind")) { | 1690 if (_json.containsKey("kind")) { |
1681 kind = _json["kind"]; | 1691 kind = _json["kind"]; |
1682 } | 1692 } |
1683 if (_json.containsKey("name")) { | 1693 if (_json.containsKey("name")) { |
1684 name = _json["name"]; | 1694 name = _json["name"]; |
1685 } | 1695 } |
1686 } | 1696 } |
1687 | 1697 |
1688 core.Map toJson() { | 1698 core.Map<core.String, core.Object> toJson() { |
1689 var _json = new core.Map(); | 1699 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1690 if (id != null) { | 1700 if (id != null) { |
1691 _json["id"] = id; | 1701 _json["id"] = id; |
1692 } | 1702 } |
1693 if (kind != null) { | 1703 if (kind != null) { |
1694 _json["kind"] = kind; | 1704 _json["kind"] = kind; |
1695 } | 1705 } |
1696 if (name != null) { | 1706 if (name != null) { |
1697 _json["name"] = name; | 1707 _json["name"] = name; |
1698 } | 1708 } |
1699 return _json; | 1709 return _json; |
1700 } | 1710 } |
1701 } | 1711 } |
1702 | 1712 |
1703 /** A representation of a Datastore property in a projection. */ | 1713 /** A representation of a Datastore property in a projection. */ |
1704 class Projection { | 1714 class Projection { |
1705 /** The property to project. */ | 1715 /** The property to project. */ |
1706 PropertyReference property; | 1716 PropertyReference property; |
1707 | 1717 |
1708 Projection(); | 1718 Projection(); |
1709 | 1719 |
1710 Projection.fromJson(core.Map _json) { | 1720 Projection.fromJson(core.Map _json) { |
1711 if (_json.containsKey("property")) { | 1721 if (_json.containsKey("property")) { |
1712 property = new PropertyReference.fromJson(_json["property"]); | 1722 property = new PropertyReference.fromJson(_json["property"]); |
1713 } | 1723 } |
1714 } | 1724 } |
1715 | 1725 |
1716 core.Map toJson() { | 1726 core.Map<core.String, core.Object> toJson() { |
1717 var _json = new core.Map(); | 1727 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1718 if (property != null) { | 1728 if (property != null) { |
1719 _json["property"] = (property).toJson(); | 1729 _json["property"] = (property).toJson(); |
1720 } | 1730 } |
1721 return _json; | 1731 return _json; |
1722 } | 1732 } |
1723 } | 1733 } |
1724 | 1734 |
1725 /** A reference to a property relative to the Datastore kind expressions. */ | 1735 /** A reference to a property relative to the Datastore kind expressions. */ |
1726 class PropertyReference { | 1736 class PropertyReference { |
1727 /** | 1737 /** |
1728 * The name of the property. | 1738 * The name of the property. |
1729 * If name includes "."s, it may be interpreted as a property name path. | 1739 * If name includes "."s, it may be interpreted as a property name path. |
1730 */ | 1740 */ |
1731 core.String name; | 1741 core.String name; |
1732 | 1742 |
1733 PropertyReference(); | 1743 PropertyReference(); |
1734 | 1744 |
1735 PropertyReference.fromJson(core.Map _json) { | 1745 PropertyReference.fromJson(core.Map _json) { |
1736 if (_json.containsKey("name")) { | 1746 if (_json.containsKey("name")) { |
1737 name = _json["name"]; | 1747 name = _json["name"]; |
1738 } | 1748 } |
1739 } | 1749 } |
1740 | 1750 |
1741 core.Map toJson() { | 1751 core.Map<core.String, core.Object> toJson() { |
1742 var _json = new core.Map(); | 1752 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1743 if (name != null) { | 1753 if (name != null) { |
1744 _json["name"] = name; | 1754 _json["name"] = name; |
1745 } | 1755 } |
1746 return _json; | 1756 return _json; |
1747 } | 1757 } |
1748 } | 1758 } |
1749 | 1759 |
1750 /** Generic half-open interval [start, end) */ | 1760 /** Generic half-open interval [start, end) */ |
1751 class Range { | 1761 class Range { |
1752 /** Index of the last character of the range (exclusive). */ | 1762 /** Index of the last character of the range (exclusive). */ |
1753 core.String end; | 1763 core.String end; |
1754 /** Index of the first character of the range (inclusive). */ | 1764 /** Index of the first character of the range (inclusive). */ |
1755 core.String start; | 1765 core.String start; |
1756 | 1766 |
1757 Range(); | 1767 Range(); |
1758 | 1768 |
1759 Range.fromJson(core.Map _json) { | 1769 Range.fromJson(core.Map _json) { |
1760 if (_json.containsKey("end")) { | 1770 if (_json.containsKey("end")) { |
1761 end = _json["end"]; | 1771 end = _json["end"]; |
1762 } | 1772 } |
1763 if (_json.containsKey("start")) { | 1773 if (_json.containsKey("start")) { |
1764 start = _json["start"]; | 1774 start = _json["start"]; |
1765 } | 1775 } |
1766 } | 1776 } |
1767 | 1777 |
1768 core.Map toJson() { | 1778 core.Map<core.String, core.Object> toJson() { |
1769 var _json = new core.Map(); | 1779 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1770 if (end != null) { | 1780 if (end != null) { |
1771 _json["end"] = end; | 1781 _json["end"] = end; |
1772 } | 1782 } |
1773 if (start != null) { | 1783 if (start != null) { |
1774 _json["start"] = start; | 1784 _json["start"] = start; |
1775 } | 1785 } |
1776 return _json; | 1786 return _json; |
1777 } | 1787 } |
1778 } | 1788 } |
1779 | 1789 |
1780 /** Message for a unique key indicating a record that contains a finding. */ | 1790 /** Message for a unique key indicating a record that contains a finding. */ |
1781 class RecordKey { | 1791 class RecordKey { |
1782 CloudStorageKey cloudStorageKey; | 1792 CloudStorageKey cloudStorageKey; |
1783 DatastoreKey datastoreKey; | 1793 DatastoreKey datastoreKey; |
1784 | 1794 |
1785 RecordKey(); | 1795 RecordKey(); |
1786 | 1796 |
1787 RecordKey.fromJson(core.Map _json) { | 1797 RecordKey.fromJson(core.Map _json) { |
1788 if (_json.containsKey("cloudStorageKey")) { | 1798 if (_json.containsKey("cloudStorageKey")) { |
1789 cloudStorageKey = new CloudStorageKey.fromJson(_json["cloudStorageKey"]); | 1799 cloudStorageKey = new CloudStorageKey.fromJson(_json["cloudStorageKey"]); |
1790 } | 1800 } |
1791 if (_json.containsKey("datastoreKey")) { | 1801 if (_json.containsKey("datastoreKey")) { |
1792 datastoreKey = new DatastoreKey.fromJson(_json["datastoreKey"]); | 1802 datastoreKey = new DatastoreKey.fromJson(_json["datastoreKey"]); |
1793 } | 1803 } |
1794 } | 1804 } |
1795 | 1805 |
1796 core.Map toJson() { | 1806 core.Map<core.String, core.Object> toJson() { |
1797 var _json = new core.Map(); | 1807 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1798 if (cloudStorageKey != null) { | 1808 if (cloudStorageKey != null) { |
1799 _json["cloudStorageKey"] = (cloudStorageKey).toJson(); | 1809 _json["cloudStorageKey"] = (cloudStorageKey).toJson(); |
1800 } | 1810 } |
1801 if (datastoreKey != null) { | 1811 if (datastoreKey != null) { |
1802 _json["datastoreKey"] = (datastoreKey).toJson(); | 1812 _json["datastoreKey"] = (datastoreKey).toJson(); |
1803 } | 1813 } |
1804 return _json; | 1814 return _json; |
1805 } | 1815 } |
1806 } | 1816 } |
1807 | 1817 |
(...skipping 16 matching lines...) Expand all Loading... |
1824 inspectConfig = new InspectConfig.fromJson(_json["inspectConfig"]); | 1834 inspectConfig = new InspectConfig.fromJson(_json["inspectConfig"]); |
1825 } | 1835 } |
1826 if (_json.containsKey("items")) { | 1836 if (_json.containsKey("items")) { |
1827 items = _json["items"].map((value) => new ContentItem.fromJson(value)).toL
ist(); | 1837 items = _json["items"].map((value) => new ContentItem.fromJson(value)).toL
ist(); |
1828 } | 1838 } |
1829 if (_json.containsKey("replaceConfigs")) { | 1839 if (_json.containsKey("replaceConfigs")) { |
1830 replaceConfigs = _json["replaceConfigs"].map((value) => new ReplaceConfig.
fromJson(value)).toList(); | 1840 replaceConfigs = _json["replaceConfigs"].map((value) => new ReplaceConfig.
fromJson(value)).toList(); |
1831 } | 1841 } |
1832 } | 1842 } |
1833 | 1843 |
1834 core.Map toJson() { | 1844 core.Map<core.String, core.Object> toJson() { |
1835 var _json = new core.Map(); | 1845 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1836 if (inspectConfig != null) { | 1846 if (inspectConfig != null) { |
1837 _json["inspectConfig"] = (inspectConfig).toJson(); | 1847 _json["inspectConfig"] = (inspectConfig).toJson(); |
1838 } | 1848 } |
1839 if (items != null) { | 1849 if (items != null) { |
1840 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1850 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1841 } | 1851 } |
1842 if (replaceConfigs != null) { | 1852 if (replaceConfigs != null) { |
1843 _json["replaceConfigs"] = replaceConfigs.map((value) => (value).toJson()).
toList(); | 1853 _json["replaceConfigs"] = replaceConfigs.map((value) => (value).toJson()).
toList(); |
1844 } | 1854 } |
1845 return _json; | 1855 return _json; |
1846 } | 1856 } |
1847 } | 1857 } |
1848 | 1858 |
1849 /** Results of redacting a list of items. */ | 1859 /** Results of redacting a list of items. */ |
1850 class RedactContentResponse { | 1860 class RedactContentResponse { |
1851 /** The redacted content. */ | 1861 /** The redacted content. */ |
1852 core.List<ContentItem> items; | 1862 core.List<ContentItem> items; |
1853 | 1863 |
1854 RedactContentResponse(); | 1864 RedactContentResponse(); |
1855 | 1865 |
1856 RedactContentResponse.fromJson(core.Map _json) { | 1866 RedactContentResponse.fromJson(core.Map _json) { |
1857 if (_json.containsKey("items")) { | 1867 if (_json.containsKey("items")) { |
1858 items = _json["items"].map((value) => new ContentItem.fromJson(value)).toL
ist(); | 1868 items = _json["items"].map((value) => new ContentItem.fromJson(value)).toL
ist(); |
1859 } | 1869 } |
1860 } | 1870 } |
1861 | 1871 |
1862 core.Map toJson() { | 1872 core.Map<core.String, core.Object> toJson() { |
1863 var _json = new core.Map(); | 1873 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1864 if (items != null) { | 1874 if (items != null) { |
1865 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1875 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1866 } | 1876 } |
1867 return _json; | 1877 return _json; |
1868 } | 1878 } |
1869 } | 1879 } |
1870 | 1880 |
1871 class ReplaceConfig { | 1881 class ReplaceConfig { |
1872 /** | 1882 /** |
1873 * Type of information to replace. Only one ReplaceConfig per info_type | 1883 * Type of information to replace. Only one ReplaceConfig per info_type |
1874 * should be provided. If ReplaceConfig does not have an info_type, the DLP | 1884 * should be provided. If ReplaceConfig does not have an info_type, the DLP |
1875 * API matches it against all info_types that are found but not specified in | 1885 * API matches it against all info_types that are found but not specified in |
1876 * another ReplaceConfig. | 1886 * another ReplaceConfig. |
1877 */ | 1887 */ |
1878 InfoType infoType; | 1888 InfoType infoType; |
1879 /** Content replacing sensitive information of given type. Max 256 chars. */ | 1889 /** Content replacing sensitive information of given type. Max 256 chars. */ |
1880 core.String replaceWith; | 1890 core.String replaceWith; |
1881 | 1891 |
1882 ReplaceConfig(); | 1892 ReplaceConfig(); |
1883 | 1893 |
1884 ReplaceConfig.fromJson(core.Map _json) { | 1894 ReplaceConfig.fromJson(core.Map _json) { |
1885 if (_json.containsKey("infoType")) { | 1895 if (_json.containsKey("infoType")) { |
1886 infoType = new InfoType.fromJson(_json["infoType"]); | 1896 infoType = new InfoType.fromJson(_json["infoType"]); |
1887 } | 1897 } |
1888 if (_json.containsKey("replaceWith")) { | 1898 if (_json.containsKey("replaceWith")) { |
1889 replaceWith = _json["replaceWith"]; | 1899 replaceWith = _json["replaceWith"]; |
1890 } | 1900 } |
1891 } | 1901 } |
1892 | 1902 |
1893 core.Map toJson() { | 1903 core.Map<core.String, core.Object> toJson() { |
1894 var _json = new core.Map(); | 1904 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1895 if (infoType != null) { | 1905 if (infoType != null) { |
1896 _json["infoType"] = (infoType).toJson(); | 1906 _json["infoType"] = (infoType).toJson(); |
1897 } | 1907 } |
1898 if (replaceWith != null) { | 1908 if (replaceWith != null) { |
1899 _json["replaceWith"] = replaceWith; | 1909 _json["replaceWith"] = replaceWith; |
1900 } | 1910 } |
1901 return _json; | 1911 return _json; |
1902 } | 1912 } |
1903 } | 1913 } |
1904 | 1914 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1983 code = _json["code"]; | 1993 code = _json["code"]; |
1984 } | 1994 } |
1985 if (_json.containsKey("details")) { | 1995 if (_json.containsKey("details")) { |
1986 details = _json["details"]; | 1996 details = _json["details"]; |
1987 } | 1997 } |
1988 if (_json.containsKey("message")) { | 1998 if (_json.containsKey("message")) { |
1989 message = _json["message"]; | 1999 message = _json["message"]; |
1990 } | 2000 } |
1991 } | 2001 } |
1992 | 2002 |
1993 core.Map toJson() { | 2003 core.Map<core.String, core.Object> toJson() { |
1994 var _json = new core.Map(); | 2004 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1995 if (code != null) { | 2005 if (code != null) { |
1996 _json["code"] = code; | 2006 _json["code"] = code; |
1997 } | 2007 } |
1998 if (details != null) { | 2008 if (details != null) { |
1999 _json["details"] = details; | 2009 _json["details"] = details; |
2000 } | 2010 } |
2001 if (message != null) { | 2011 if (message != null) { |
2002 _json["message"] = message; | 2012 _json["message"] = message; |
2003 } | 2013 } |
2004 return _json; | 2014 return _json; |
(...skipping 11 matching lines...) Expand all Loading... |
2016 | 2026 |
2017 StorageConfig.fromJson(core.Map _json) { | 2027 StorageConfig.fromJson(core.Map _json) { |
2018 if (_json.containsKey("cloudStorageOptions")) { | 2028 if (_json.containsKey("cloudStorageOptions")) { |
2019 cloudStorageOptions = new CloudStorageOptions.fromJson(_json["cloudStorage
Options"]); | 2029 cloudStorageOptions = new CloudStorageOptions.fromJson(_json["cloudStorage
Options"]); |
2020 } | 2030 } |
2021 if (_json.containsKey("datastoreOptions")) { | 2031 if (_json.containsKey("datastoreOptions")) { |
2022 datastoreOptions = new DatastoreOptions.fromJson(_json["datastoreOptions"]
); | 2032 datastoreOptions = new DatastoreOptions.fromJson(_json["datastoreOptions"]
); |
2023 } | 2033 } |
2024 } | 2034 } |
2025 | 2035 |
2026 core.Map toJson() { | 2036 core.Map<core.String, core.Object> toJson() { |
2027 var _json = new core.Map(); | 2037 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2028 if (cloudStorageOptions != null) { | 2038 if (cloudStorageOptions != null) { |
2029 _json["cloudStorageOptions"] = (cloudStorageOptions).toJson(); | 2039 _json["cloudStorageOptions"] = (cloudStorageOptions).toJson(); |
2030 } | 2040 } |
2031 if (datastoreOptions != null) { | 2041 if (datastoreOptions != null) { |
2032 _json["datastoreOptions"] = (datastoreOptions).toJson(); | 2042 _json["datastoreOptions"] = (datastoreOptions).toJson(); |
2033 } | 2043 } |
2034 return _json; | 2044 return _json; |
2035 } | 2045 } |
2036 } | 2046 } |
OLD | NEW |