google-apis-dlp_v2 0.45.0 → 0.47.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/dlp_v2/classes.rb +175 -5
- data/lib/google/apis/dlp_v2/gem_version.rb +2 -2
- data/lib/google/apis/dlp_v2/representations.rb +53 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71ed9c8ed5e215ed18e95c6863fd1bdf8509836087cf58f08e140b4c9df08b1b
|
4
|
+
data.tar.gz: 9d9600299785bfad01f192201a74a1e69046530a746edaaf565787d31078b7c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2edd54464e3a340e69386b863a3baf75e90c6d7d73e79a36a989a667006195fe12f0ce886dce0e577e1cc5c47e3a03c1c66566891021f95777ac9a7f116e4f9f
|
7
|
+
data.tar.gz: 8efa8d09cda1065dd190790ed7bea50a415e1fc3915c1c608811af43dcd76848a7639b8c4c1ba988d36f423f565439e87d1ed5e3a1de13be73ca8c1bc752d08d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-dlp_v2
|
2
2
|
|
3
|
+
### v0.47.0 (2023-07-02)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230625
|
6
|
+
|
7
|
+
### v0.46.0 (2023-06-25)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230618
|
10
|
+
|
3
11
|
### v0.45.0 (2023-05-28)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230521
|
@@ -780,9 +780,12 @@ module Google
|
|
780
780
|
include Google::Apis::Core::Hashable
|
781
781
|
|
782
782
|
# Max number of bytes to scan from a file. If a scanned file's size is bigger
|
783
|
-
# than this value then the rest of the bytes are omitted. Only one of
|
784
|
-
# bytes_limit_per_file and bytes_limit_per_file_percent can be specified.
|
785
|
-
# be set if de-identification is requested.
|
783
|
+
# than this value then the rest of the bytes are omitted. Only one of `
|
784
|
+
# bytes_limit_per_file` and `bytes_limit_per_file_percent` can be specified.
|
785
|
+
# This field can't be set if de-identification is requested. For certain file
|
786
|
+
# types, setting this field has no effect. For more information, see [Limits on
|
787
|
+
# bytes scanned per file](https://cloud.google.com/dlp/docs/supported-file-types#
|
788
|
+
# max-byte-size-per-file).
|
786
789
|
# Corresponds to the JSON property `bytesLimitPerFile`
|
787
790
|
# @return [Fixnum]
|
788
791
|
attr_accessor :bytes_limit_per_file
|
@@ -790,8 +793,10 @@ module Google
|
|
790
793
|
# Max percentage of bytes to scan from a file. The rest are omitted. The number
|
791
794
|
# of bytes scanned is rounded down. Must be between 0 and 100, inclusively. Both
|
792
795
|
# 0 and 100 means no limit. Defaults to 0. Only one of bytes_limit_per_file and
|
793
|
-
# bytes_limit_per_file_percent can be specified.
|
794
|
-
# identification is requested.
|
796
|
+
# bytes_limit_per_file_percent can be specified. This field can't be set if de-
|
797
|
+
# identification is requested. For certain file types, setting this field has no
|
798
|
+
# effect. For more information, see [Limits on bytes scanned per file](https://
|
799
|
+
# cloud.google.com/dlp/docs/supported-file-types#max-byte-size-per-file).
|
795
800
|
# Corresponds to the JSON property `bytesLimitPerFilePercent`
|
796
801
|
# @return [Fixnum]
|
797
802
|
attr_accessor :bytes_limit_per_file_percent
|
@@ -948,6 +953,145 @@ module Google
|
|
948
953
|
end
|
949
954
|
end
|
950
955
|
|
956
|
+
# The profile for a scanned column within a table.
|
957
|
+
class GooglePrivacyDlpV2ColumnDataProfile
|
958
|
+
include Google::Apis::Core::Hashable
|
959
|
+
|
960
|
+
# The name of the column.
|
961
|
+
# Corresponds to the JSON property `column`
|
962
|
+
# @return [String]
|
963
|
+
attr_accessor :column
|
964
|
+
|
965
|
+
# The infoType details for this column.
|
966
|
+
# Corresponds to the JSON property `columnInfoType`
|
967
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeSummary]
|
968
|
+
attr_accessor :column_info_type
|
969
|
+
|
970
|
+
# The data type of a given column.
|
971
|
+
# Corresponds to the JSON property `columnType`
|
972
|
+
# @return [String]
|
973
|
+
attr_accessor :column_type
|
974
|
+
|
975
|
+
# Score is a summary of all elements in the data profile. A higher number means
|
976
|
+
# more risk.
|
977
|
+
# Corresponds to the JSON property `dataRiskLevel`
|
978
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel]
|
979
|
+
attr_accessor :data_risk_level
|
980
|
+
|
981
|
+
# The BigQuery dataset ID.
|
982
|
+
# Corresponds to the JSON property `datasetId`
|
983
|
+
# @return [String]
|
984
|
+
attr_accessor :dataset_id
|
985
|
+
|
986
|
+
# The BigQuery location where the dataset's data is stored. See https://cloud.
|
987
|
+
# google.com/bigquery/docs/locations for supported locations.
|
988
|
+
# Corresponds to the JSON property `datasetLocation`
|
989
|
+
# @return [String]
|
990
|
+
attr_accessor :dataset_location
|
991
|
+
|
992
|
+
# The Google Cloud project ID that owns the BigQuery dataset.
|
993
|
+
# Corresponds to the JSON property `datasetProjectId`
|
994
|
+
# @return [String]
|
995
|
+
attr_accessor :dataset_project_id
|
996
|
+
|
997
|
+
# Approximate percentage of entries being null in the column.
|
998
|
+
# Corresponds to the JSON property `estimatedNullPercentage`
|
999
|
+
# @return [String]
|
1000
|
+
attr_accessor :estimated_null_percentage
|
1001
|
+
|
1002
|
+
# Approximate uniqueness of the column.
|
1003
|
+
# Corresponds to the JSON property `estimatedUniquenessScore`
|
1004
|
+
# @return [String]
|
1005
|
+
attr_accessor :estimated_uniqueness_score
|
1006
|
+
|
1007
|
+
# The likelihood that this column contains free-form text. A value close to 1
|
1008
|
+
# may indicate the column is likely to contain free-form or natural language
|
1009
|
+
# text. Range in 0-1.
|
1010
|
+
# Corresponds to the JSON property `freeTextScore`
|
1011
|
+
# @return [Float]
|
1012
|
+
attr_accessor :free_text_score
|
1013
|
+
|
1014
|
+
# The name of the profile.
|
1015
|
+
# Corresponds to the JSON property `name`
|
1016
|
+
# @return [String]
|
1017
|
+
attr_accessor :name
|
1018
|
+
|
1019
|
+
# Other types found within this column. List will be un-ordered.
|
1020
|
+
# Corresponds to the JSON property `otherMatches`
|
1021
|
+
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2OtherInfoTypeSummary>]
|
1022
|
+
attr_accessor :other_matches
|
1023
|
+
|
1024
|
+
# Indicates if a policy tag has been applied to the column.
|
1025
|
+
# Corresponds to the JSON property `policyState`
|
1026
|
+
# @return [String]
|
1027
|
+
attr_accessor :policy_state
|
1028
|
+
|
1029
|
+
# The last time the profile was generated.
|
1030
|
+
# Corresponds to the JSON property `profileLastGenerated`
|
1031
|
+
# @return [String]
|
1032
|
+
attr_accessor :profile_last_generated
|
1033
|
+
|
1034
|
+
# Success or error status from the most recent profile generation attempt. May
|
1035
|
+
# be empty if the profile is still being generated.
|
1036
|
+
# Corresponds to the JSON property `profileStatus`
|
1037
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ProfileStatus]
|
1038
|
+
attr_accessor :profile_status
|
1039
|
+
|
1040
|
+
# Score is calculated from of all elements in the data profile. A higher level
|
1041
|
+
# means the data is more sensitive.
|
1042
|
+
# Corresponds to the JSON property `sensitivityScore`
|
1043
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore]
|
1044
|
+
attr_accessor :sensitivity_score
|
1045
|
+
|
1046
|
+
# State of a profile.
|
1047
|
+
# Corresponds to the JSON property `state`
|
1048
|
+
# @return [String]
|
1049
|
+
attr_accessor :state
|
1050
|
+
|
1051
|
+
# The resource name to the table data profile.
|
1052
|
+
# Corresponds to the JSON property `tableDataProfile`
|
1053
|
+
# @return [String]
|
1054
|
+
attr_accessor :table_data_profile
|
1055
|
+
|
1056
|
+
# The resource name of the table this column is within.
|
1057
|
+
# Corresponds to the JSON property `tableFullResource`
|
1058
|
+
# @return [String]
|
1059
|
+
attr_accessor :table_full_resource
|
1060
|
+
|
1061
|
+
# The BigQuery table ID.
|
1062
|
+
# Corresponds to the JSON property `tableId`
|
1063
|
+
# @return [String]
|
1064
|
+
attr_accessor :table_id
|
1065
|
+
|
1066
|
+
def initialize(**args)
|
1067
|
+
update!(**args)
|
1068
|
+
end
|
1069
|
+
|
1070
|
+
# Update properties of this object
|
1071
|
+
def update!(**args)
|
1072
|
+
@column = args[:column] if args.key?(:column)
|
1073
|
+
@column_info_type = args[:column_info_type] if args.key?(:column_info_type)
|
1074
|
+
@column_type = args[:column_type] if args.key?(:column_type)
|
1075
|
+
@data_risk_level = args[:data_risk_level] if args.key?(:data_risk_level)
|
1076
|
+
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
|
1077
|
+
@dataset_location = args[:dataset_location] if args.key?(:dataset_location)
|
1078
|
+
@dataset_project_id = args[:dataset_project_id] if args.key?(:dataset_project_id)
|
1079
|
+
@estimated_null_percentage = args[:estimated_null_percentage] if args.key?(:estimated_null_percentage)
|
1080
|
+
@estimated_uniqueness_score = args[:estimated_uniqueness_score] if args.key?(:estimated_uniqueness_score)
|
1081
|
+
@free_text_score = args[:free_text_score] if args.key?(:free_text_score)
|
1082
|
+
@name = args[:name] if args.key?(:name)
|
1083
|
+
@other_matches = args[:other_matches] if args.key?(:other_matches)
|
1084
|
+
@policy_state = args[:policy_state] if args.key?(:policy_state)
|
1085
|
+
@profile_last_generated = args[:profile_last_generated] if args.key?(:profile_last_generated)
|
1086
|
+
@profile_status = args[:profile_status] if args.key?(:profile_status)
|
1087
|
+
@sensitivity_score = args[:sensitivity_score] if args.key?(:sensitivity_score)
|
1088
|
+
@state = args[:state] if args.key?(:state)
|
1089
|
+
@table_data_profile = args[:table_data_profile] if args.key?(:table_data_profile)
|
1090
|
+
@table_full_resource = args[:table_full_resource] if args.key?(:table_full_resource)
|
1091
|
+
@table_id = args[:table_id] if args.key?(:table_id)
|
1092
|
+
end
|
1093
|
+
end
|
1094
|
+
|
951
1095
|
# The field type of `value` and `field` do not need to match to be considered
|
952
1096
|
# equal, but not all comparisons are possible. EQUAL_TO and NOT_EQUAL_TO attempt
|
953
1097
|
# to compare even with incompatible types, but all other comparisons are invalid
|
@@ -1658,6 +1802,32 @@ module Google
|
|
1658
1802
|
end
|
1659
1803
|
end
|
1660
1804
|
|
1805
|
+
# The schema of data to be saved to the BigQuery when the `DataProfileAction` is
|
1806
|
+
# enabled.
|
1807
|
+
class GooglePrivacyDlpV2DataProfileBigQueryRowSchema
|
1808
|
+
include Google::Apis::Core::Hashable
|
1809
|
+
|
1810
|
+
# The profile for a scanned column within a table.
|
1811
|
+
# Corresponds to the JSON property `columnProfile`
|
1812
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ColumnDataProfile]
|
1813
|
+
attr_accessor :column_profile
|
1814
|
+
|
1815
|
+
# The profile for a scanned table.
|
1816
|
+
# Corresponds to the JSON property `tableProfile`
|
1817
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile]
|
1818
|
+
attr_accessor :table_profile
|
1819
|
+
|
1820
|
+
def initialize(**args)
|
1821
|
+
update!(**args)
|
1822
|
+
end
|
1823
|
+
|
1824
|
+
# Update properties of this object
|
1825
|
+
def update!(**args)
|
1826
|
+
@column_profile = args[:column_profile] if args.key?(:column_profile)
|
1827
|
+
@table_profile = args[:table_profile] if args.key?(:table_profile)
|
1828
|
+
end
|
1829
|
+
end
|
1830
|
+
|
1661
1831
|
# Snapshot of the configurations used to generate the profile.
|
1662
1832
|
class GooglePrivacyDlpV2DataProfileConfigSnapshot
|
1663
1833
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DlpV2
|
18
18
|
# Version of the google-apis-dlp_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.47.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230625"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -178,6 +178,12 @@ module Google
|
|
178
178
|
include Google::Apis::Core::JsonObjectSupport
|
179
179
|
end
|
180
180
|
|
181
|
+
class GooglePrivacyDlpV2ColumnDataProfile
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
181
187
|
class GooglePrivacyDlpV2Condition
|
182
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
189
|
|
@@ -274,6 +280,12 @@ module Google
|
|
274
280
|
include Google::Apis::Core::JsonObjectSupport
|
275
281
|
end
|
276
282
|
|
283
|
+
class GooglePrivacyDlpV2DataProfileBigQueryRowSchema
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
|
+
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
287
|
+
end
|
288
|
+
|
277
289
|
class GooglePrivacyDlpV2DataProfileConfigSnapshot
|
278
290
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
291
|
|
@@ -1665,6 +1677,37 @@ module Google
|
|
1665
1677
|
end
|
1666
1678
|
end
|
1667
1679
|
|
1680
|
+
class GooglePrivacyDlpV2ColumnDataProfile
|
1681
|
+
# @private
|
1682
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1683
|
+
property :column, as: 'column'
|
1684
|
+
property :column_info_type, as: 'columnInfoType', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeSummary, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeSummary::Representation
|
1685
|
+
|
1686
|
+
property :column_type, as: 'columnType'
|
1687
|
+
property :data_risk_level, as: 'dataRiskLevel', class: Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel::Representation
|
1688
|
+
|
1689
|
+
property :dataset_id, as: 'datasetId'
|
1690
|
+
property :dataset_location, as: 'datasetLocation'
|
1691
|
+
property :dataset_project_id, as: 'datasetProjectId'
|
1692
|
+
property :estimated_null_percentage, as: 'estimatedNullPercentage'
|
1693
|
+
property :estimated_uniqueness_score, as: 'estimatedUniquenessScore'
|
1694
|
+
property :free_text_score, as: 'freeTextScore'
|
1695
|
+
property :name, as: 'name'
|
1696
|
+
collection :other_matches, as: 'otherMatches', class: Google::Apis::DlpV2::GooglePrivacyDlpV2OtherInfoTypeSummary, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2OtherInfoTypeSummary::Representation
|
1697
|
+
|
1698
|
+
property :policy_state, as: 'policyState'
|
1699
|
+
property :profile_last_generated, as: 'profileLastGenerated'
|
1700
|
+
property :profile_status, as: 'profileStatus', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ProfileStatus, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ProfileStatus::Representation
|
1701
|
+
|
1702
|
+
property :sensitivity_score, as: 'sensitivityScore', class: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore::Representation
|
1703
|
+
|
1704
|
+
property :state, as: 'state'
|
1705
|
+
property :table_data_profile, as: 'tableDataProfile'
|
1706
|
+
property :table_full_resource, as: 'tableFullResource'
|
1707
|
+
property :table_id, as: 'tableId'
|
1708
|
+
end
|
1709
|
+
end
|
1710
|
+
|
1668
1711
|
class GooglePrivacyDlpV2Condition
|
1669
1712
|
# @private
|
1670
1713
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1856,6 +1899,16 @@ module Google
|
|
1856
1899
|
end
|
1857
1900
|
end
|
1858
1901
|
|
1902
|
+
class GooglePrivacyDlpV2DataProfileBigQueryRowSchema
|
1903
|
+
# @private
|
1904
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1905
|
+
property :column_profile, as: 'columnProfile', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ColumnDataProfile, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ColumnDataProfile::Representation
|
1906
|
+
|
1907
|
+
property :table_profile, as: 'tableProfile', class: Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile::Representation
|
1908
|
+
|
1909
|
+
end
|
1910
|
+
end
|
1911
|
+
|
1859
1912
|
class GooglePrivacyDlpV2DataProfileConfigSnapshot
|
1860
1913
|
# @private
|
1861
1914
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-dlp_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.47.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dlp_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dlp_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dlp_v2/v0.47.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dlp_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|