google-apis-dlp_v2 0.44.0 → 0.46.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9b149bf63ee15bdccfcb9626280567c7cccf37f16994b6ef4481f0b5e795ca9
4
- data.tar.gz: f7aa0d7db036a3384ec89e5d67b67322ff2977d9c81f704312fea6c12c2265ef
3
+ metadata.gz: 02c7eed47fc4c8d27c467a53be3aeb3f5b209b1b078c3eb14bbb22179eaa49d6
4
+ data.tar.gz: 8163df7201207b9349597af67c4d9e482c468751369bf58f53b2c91b74dec3e7
5
5
  SHA512:
6
- metadata.gz: b182d8c16117dc87582f15bb74c8f1e4b91c6b8a9ddc99ffeee839e603be182317038f93fad82881bb247bdb42c15a46f12fc62cc55396f35ea2ba6d08ae0953
7
- data.tar.gz: 308fb1451c6cb2d645868714cd7912238552f3e0a67a3030a6f314439b67f8e288f788b7027f7ed1d8d9688348a566235a1a7d0ff62c83ff8153369f7f8a9507
6
+ metadata.gz: c3b90a33d9c908299ecdb242446c06a4a903f7abc7eff11e79b21917bd05736f4c96db6fc47477ff0a7df1d166f6b8914e5ab78012e03ea70db6f5a58af4490e
7
+ data.tar.gz: b5969710d58503aea440b885787ee6519f00b41a38d31a81e80251422433f200e9ef8f21be7640d64b0ec30c70c126e4440dca0ea704f04db37117c5dfe13594
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-dlp_v2
2
2
 
3
+ ### v0.46.0 (2023-06-25)
4
+
5
+ * Regenerated from discovery document revision 20230618
6
+
7
+ ### v0.45.0 (2023-05-28)
8
+
9
+ * Regenerated from discovery document revision 20230521
10
+
3
11
  ### v0.44.0 (2023-05-21)
4
12
 
5
13
  * Regenerated from discovery document revision 20230514
data/OVERVIEW.md CHANGED
@@ -1,6 +1,6 @@
1
- # Simple REST client for version V2 of the Cloud Data Loss Prevention (DLP) API
1
+ # Simple REST client for version V2 of the Cloud Data Loss Prevention (DLP)
2
2
 
3
- This is a simple client library for version V2 of the Cloud Data Loss Prevention (DLP) API. It provides:
3
+ This is a simple client library for version V2 of the Cloud Data Loss Prevention (DLP). It provides:
4
4
 
5
5
  * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
6
  * Ruby objects for data structures related to the service.
@@ -65,7 +65,7 @@ More detailed descriptions of the Google simple REST clients are available in tw
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Dlp service in particular.)
67
67
 
68
- For reference information on specific calls in the Cloud Data Loss Prevention (DLP) API, see the {Google::Apis::DlpV2::DLPService class reference docs}.
68
+ For reference information on specific calls in the Cloud Data Loss Prevention (DLP), see the {Google::Apis::DlpV2::DLPService class reference docs}.
69
69
 
70
70
  ## Which client should I use?
71
71
 
@@ -948,6 +948,145 @@ module Google
948
948
  end
949
949
  end
950
950
 
951
+ # The profile for a scanned column within a table.
952
+ class GooglePrivacyDlpV2ColumnDataProfile
953
+ include Google::Apis::Core::Hashable
954
+
955
+ # The name of the column.
956
+ # Corresponds to the JSON property `column`
957
+ # @return [String]
958
+ attr_accessor :column
959
+
960
+ # The infoType details for this column.
961
+ # Corresponds to the JSON property `columnInfoType`
962
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeSummary]
963
+ attr_accessor :column_info_type
964
+
965
+ # The data type of a given column.
966
+ # Corresponds to the JSON property `columnType`
967
+ # @return [String]
968
+ attr_accessor :column_type
969
+
970
+ # Score is a summary of all elements in the data profile. A higher number means
971
+ # more risk.
972
+ # Corresponds to the JSON property `dataRiskLevel`
973
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel]
974
+ attr_accessor :data_risk_level
975
+
976
+ # The BigQuery dataset ID.
977
+ # Corresponds to the JSON property `datasetId`
978
+ # @return [String]
979
+ attr_accessor :dataset_id
980
+
981
+ # The BigQuery location where the dataset's data is stored. See https://cloud.
982
+ # google.com/bigquery/docs/locations for supported locations.
983
+ # Corresponds to the JSON property `datasetLocation`
984
+ # @return [String]
985
+ attr_accessor :dataset_location
986
+
987
+ # The Google Cloud project ID that owns the BigQuery dataset.
988
+ # Corresponds to the JSON property `datasetProjectId`
989
+ # @return [String]
990
+ attr_accessor :dataset_project_id
991
+
992
+ # Approximate percentage of entries being null in the column.
993
+ # Corresponds to the JSON property `estimatedNullPercentage`
994
+ # @return [String]
995
+ attr_accessor :estimated_null_percentage
996
+
997
+ # Approximate uniqueness of the column.
998
+ # Corresponds to the JSON property `estimatedUniquenessScore`
999
+ # @return [String]
1000
+ attr_accessor :estimated_uniqueness_score
1001
+
1002
+ # The likelihood that this column contains free-form text. A value close to 1
1003
+ # may indicate the column is likely to contain free-form or natural language
1004
+ # text. Range in 0-1.
1005
+ # Corresponds to the JSON property `freeTextScore`
1006
+ # @return [Float]
1007
+ attr_accessor :free_text_score
1008
+
1009
+ # The name of the profile.
1010
+ # Corresponds to the JSON property `name`
1011
+ # @return [String]
1012
+ attr_accessor :name
1013
+
1014
+ # Other types found within this column. List will be un-ordered.
1015
+ # Corresponds to the JSON property `otherMatches`
1016
+ # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2OtherInfoTypeSummary>]
1017
+ attr_accessor :other_matches
1018
+
1019
+ # Indicates if a policy tag has been applied to the column.
1020
+ # Corresponds to the JSON property `policyState`
1021
+ # @return [String]
1022
+ attr_accessor :policy_state
1023
+
1024
+ # The last time the profile was generated.
1025
+ # Corresponds to the JSON property `profileLastGenerated`
1026
+ # @return [String]
1027
+ attr_accessor :profile_last_generated
1028
+
1029
+ # Success or error status from the most recent profile generation attempt. May
1030
+ # be empty if the profile is still being generated.
1031
+ # Corresponds to the JSON property `profileStatus`
1032
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ProfileStatus]
1033
+ attr_accessor :profile_status
1034
+
1035
+ # Score is calculated from of all elements in the data profile. A higher level
1036
+ # means the data is more sensitive.
1037
+ # Corresponds to the JSON property `sensitivityScore`
1038
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore]
1039
+ attr_accessor :sensitivity_score
1040
+
1041
+ # State of a profile.
1042
+ # Corresponds to the JSON property `state`
1043
+ # @return [String]
1044
+ attr_accessor :state
1045
+
1046
+ # The resource name to the table data profile.
1047
+ # Corresponds to the JSON property `tableDataProfile`
1048
+ # @return [String]
1049
+ attr_accessor :table_data_profile
1050
+
1051
+ # The resource name of the table this column is within.
1052
+ # Corresponds to the JSON property `tableFullResource`
1053
+ # @return [String]
1054
+ attr_accessor :table_full_resource
1055
+
1056
+ # The BigQuery table ID.
1057
+ # Corresponds to the JSON property `tableId`
1058
+ # @return [String]
1059
+ attr_accessor :table_id
1060
+
1061
+ def initialize(**args)
1062
+ update!(**args)
1063
+ end
1064
+
1065
+ # Update properties of this object
1066
+ def update!(**args)
1067
+ @column = args[:column] if args.key?(:column)
1068
+ @column_info_type = args[:column_info_type] if args.key?(:column_info_type)
1069
+ @column_type = args[:column_type] if args.key?(:column_type)
1070
+ @data_risk_level = args[:data_risk_level] if args.key?(:data_risk_level)
1071
+ @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
1072
+ @dataset_location = args[:dataset_location] if args.key?(:dataset_location)
1073
+ @dataset_project_id = args[:dataset_project_id] if args.key?(:dataset_project_id)
1074
+ @estimated_null_percentage = args[:estimated_null_percentage] if args.key?(:estimated_null_percentage)
1075
+ @estimated_uniqueness_score = args[:estimated_uniqueness_score] if args.key?(:estimated_uniqueness_score)
1076
+ @free_text_score = args[:free_text_score] if args.key?(:free_text_score)
1077
+ @name = args[:name] if args.key?(:name)
1078
+ @other_matches = args[:other_matches] if args.key?(:other_matches)
1079
+ @policy_state = args[:policy_state] if args.key?(:policy_state)
1080
+ @profile_last_generated = args[:profile_last_generated] if args.key?(:profile_last_generated)
1081
+ @profile_status = args[:profile_status] if args.key?(:profile_status)
1082
+ @sensitivity_score = args[:sensitivity_score] if args.key?(:sensitivity_score)
1083
+ @state = args[:state] if args.key?(:state)
1084
+ @table_data_profile = args[:table_data_profile] if args.key?(:table_data_profile)
1085
+ @table_full_resource = args[:table_full_resource] if args.key?(:table_full_resource)
1086
+ @table_id = args[:table_id] if args.key?(:table_id)
1087
+ end
1088
+ end
1089
+
951
1090
  # The field type of `value` and `field` do not need to match to be considered
952
1091
  # equal, but not all comparisons are possible. EQUAL_TO and NOT_EQUAL_TO attempt
953
1092
  # to compare even with incompatible types, but all other comparisons are invalid
@@ -1658,6 +1797,32 @@ module Google
1658
1797
  end
1659
1798
  end
1660
1799
 
1800
+ # The schema of data to be saved to the BigQuery when the `DataProfileAction` is
1801
+ # enabled.
1802
+ class GooglePrivacyDlpV2DataProfileBigQueryRowSchema
1803
+ include Google::Apis::Core::Hashable
1804
+
1805
+ # The profile for a scanned column within a table.
1806
+ # Corresponds to the JSON property `columnProfile`
1807
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ColumnDataProfile]
1808
+ attr_accessor :column_profile
1809
+
1810
+ # The profile for a scanned table.
1811
+ # Corresponds to the JSON property `tableProfile`
1812
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile]
1813
+ attr_accessor :table_profile
1814
+
1815
+ def initialize(**args)
1816
+ update!(**args)
1817
+ end
1818
+
1819
+ # Update properties of this object
1820
+ def update!(**args)
1821
+ @column_profile = args[:column_profile] if args.key?(:column_profile)
1822
+ @table_profile = args[:table_profile] if args.key?(:table_profile)
1823
+ end
1824
+ end
1825
+
1661
1826
  # Snapshot of the configurations used to generate the profile.
1662
1827
  class GooglePrivacyDlpV2DataProfileConfigSnapshot
1663
1828
  include Google::Apis::Core::Hashable
@@ -5033,6 +5198,13 @@ module Google
5033
5198
  # @return [Fixnum]
5034
5199
  attr_accessor :estimated_prevalence
5035
5200
 
5201
+ # Whether this infoType was excluded from sensitivity and risk analysis due to
5202
+ # factors such as low prevalence (subject to change).
5203
+ # Corresponds to the JSON property `excludedFromAnalysis`
5204
+ # @return [Boolean]
5205
+ attr_accessor :excluded_from_analysis
5206
+ alias_method :excluded_from_analysis?, :excluded_from_analysis
5207
+
5036
5208
  # Type of information detected by the API.
5037
5209
  # Corresponds to the JSON property `infoType`
5038
5210
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType]
@@ -5045,6 +5217,7 @@ module Google
5045
5217
  # Update properties of this object
5046
5218
  def update!(**args)
5047
5219
  @estimated_prevalence = args[:estimated_prevalence] if args.key?(:estimated_prevalence)
5220
+ @excluded_from_analysis = args[:excluded_from_analysis] if args.key?(:excluded_from_analysis)
5048
5221
  @info_type = args[:info_type] if args.key?(:info_type)
5049
5222
  end
5050
5223
  end
@@ -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.44.0"
19
+ GEM_VERSION = "0.46.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 = "20230514"
25
+ REVISION = "20230618"
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
@@ -2879,6 +2932,7 @@ module Google
2879
2932
  # @private
2880
2933
  class Representation < Google::Apis::Core::JsonRepresentation
2881
2934
  property :estimated_prevalence, as: 'estimatedPrevalence'
2935
+ property :excluded_from_analysis, as: 'excludedFromAnalysis'
2882
2936
  property :info_type, as: 'infoType', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType::Representation
2883
2937
 
2884
2938
  end
@@ -20,7 +20,7 @@ require 'google/apis/errors'
20
20
  module Google
21
21
  module Apis
22
22
  module DlpV2
23
- # Cloud Data Loss Prevention (DLP) API
23
+ # Cloud Data Loss Prevention (DLP)
24
24
  #
25
25
  # Provides methods for detection, risk analysis, and de-identification of
26
26
  # privacy-sensitive fragments in text, images, and Google Cloud Platform storage
@@ -19,7 +19,7 @@ require 'google/apis/dlp_v2/gem_version.rb'
19
19
 
20
20
  module Google
21
21
  module Apis
22
- # Cloud Data Loss Prevention (DLP) API
22
+ # Cloud Data Loss Prevention (DLP)
23
23
  #
24
24
  # Provides methods for detection, risk analysis, and de-identification of
25
25
  # privacy-sensitive fragments in text, images, and Google Cloud Platform storage
@@ -27,7 +27,7 @@ module Google
27
27
  #
28
28
  # @see https://cloud.google.com/dlp/docs/
29
29
  module DlpV2
30
- # Version of the Cloud Data Loss Prevention (DLP) API this client connects to.
30
+ # Version of the Cloud Data Loss Prevention (DLP) this client connects to.
31
31
  # This is NOT the gem version.
32
32
  VERSION = 'V2'
33
33
 
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.44.0
4
+ version: 0.46.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-05-21 00:00:00.000000000 Z
11
+ date: 2023-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -30,13 +30,13 @@ dependencies:
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
33
- description: This is the simple REST client for Cloud Data Loss Prevention (DLP) API
34
- V2. Simple REST clients are Ruby client libraries that provide access to Google
35
- services via their HTTP REST API endpoints. These libraries are generated and updated
36
- automatically based on the discovery documents published by the service, and they
37
- handle most concerns such as authentication, pagination, retry, timeouts, and logging.
38
- You can use this client to access the Cloud Data Loss Prevention (DLP) API, but
39
- note that some services may provide a separate modern client that is easier to use.
33
+ description: This is the simple REST client for Cloud Data Loss Prevention (DLP) V2.
34
+ Simple REST clients are Ruby client libraries that provide access to Google services
35
+ via their HTTP REST API endpoints. These libraries are generated and updated automatically
36
+ based on the discovery documents published by the service, and they handle most
37
+ concerns such as authentication, pagination, retry, timeouts, and logging. You can
38
+ use this client to access the Cloud Data Loss Prevention (DLP), but note that some
39
+ services may provide a separate modern client that is easier to use.
40
40
  email: googleapis-packages@google.com
41
41
  executables: []
42
42
  extensions: []
@@ -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.44.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dlp_v2/v0.46.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: []
@@ -78,5 +78,5 @@ requirements: []
78
78
  rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
- summary: Simple REST client for Cloud Data Loss Prevention (DLP) API V2
81
+ summary: Simple REST client for Cloud Data Loss Prevention (DLP) V2
82
82
  test_files: []