google-apis-dlp_v2 0.56.0 → 0.58.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: 0fe67d72492ec0e4748a1a26da5177fe27a78fbbdc25aa5e058fe965c1ff4ffc
4
- data.tar.gz: b8adb99367262b5a8c781f0f0fe670bad4d53a5bdef496397509ebaa6649e174
3
+ metadata.gz: db3ccfb6a39405e16cb36f9892f7140b1328e44e28e08465bcac53bf1a06098f
4
+ data.tar.gz: 1b3fbbd5edcf3a7f906cb919bd07012a5045ce0de17a267d240f2b1e4bcc8a6e
5
5
  SHA512:
6
- metadata.gz: b580e891ddf8903d51132a0fbb86e9059cde3df373d1aeaae569fad0f3b289e5f4880a4e390c9728282ef35ff244ac6f6e8c80aacdc6bf60a97cec2f6f3164b3
7
- data.tar.gz: 9bc5cee02df6939aa170e0d584c9caf83a0ebf8f6dfea828a7553571038f1be84dd436fe1a61aa7c09cec155dda752ea7322d9d5172c2545731c216ae791d925
6
+ metadata.gz: c67d3faa61990d4ab4637d8f1e7bbccda20ad4fa0eb7d98256731e3e8da2bc066c38cc8519a9e457185e6078781574c80d146ec22431a32247f06c0604d7afed
7
+ data.tar.gz: f1a3b9aacd9bba9f4d435b24ba7136c390a59febee02d634479694b95704db1d7ff94e1e6d7c887ae2d2a40a1de8c2f01a41f830cd02744bf56752875df96d40
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release history for google-apis-dlp_v2
2
2
 
3
+ ### v0.58.0 (2024-02-11)
4
+
5
+ * Regenerated from discovery document revision 20240204
6
+ * Regenerated using generator version 0.13.1
7
+
8
+ ### v0.57.0 (2024-01-22)
9
+
10
+ * Regenerated from discovery document revision 20240113
11
+ * Regenerated using generator version 0.13.0
12
+
3
13
  ### v0.56.0 (2023-12-17)
4
14
 
5
15
  * Regenerated from discovery document revision 20231210
data/OVERVIEW.md CHANGED
@@ -1,6 +1,6 @@
1
- # Simple REST client for version V2 of the Cloud Data Loss Prevention (DLP)
1
+ # Simple REST client for version V2 of the Sensitive Data Protection (DLP)
2
2
 
3
- This is a simple client library for version V2 of the Cloud Data Loss Prevention (DLP). It provides:
3
+ This is a simple client library for version V2 of the Sensitive Data Protection (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), see the {Google::Apis::DlpV2::DLPService class reference docs}.
68
+ For reference information on specific calls in the Sensitive Data Protection (DLP), see the {Google::Apis::DlpV2::DLPService class reference docs}.
69
69
 
70
70
  ## Which client should I use?
71
71
 
@@ -446,7 +446,7 @@ module Google
446
446
  # @return [Fixnum]
447
447
  attr_accessor :rows_limit_percent
448
448
 
449
- #
449
+ # How to sample the data.
450
450
  # Corresponds to the JSON property `sampleMethod`
451
451
  # @return [String]
452
452
  attr_accessor :sample_method
@@ -982,7 +982,7 @@ module Google
982
982
  # @return [Fixnum]
983
983
  attr_accessor :files_limit_percent
984
984
 
985
- #
985
+ # How to sample the data.
986
986
  # Corresponds to the JSON property `sampleMethod`
987
987
  # @return [String]
988
988
  attr_accessor :sample_method
@@ -1190,8 +1190,7 @@ module Google
1190
1190
  # @return [String]
1191
1191
  attr_accessor :profile_last_generated
1192
1192
 
1193
- # Success or error status from the most recent profile generation attempt. May
1194
- # be empty if the profile is still being generated.
1193
+ # Success or errors for the profile generation.
1195
1194
  # Corresponds to the JSON property `profileStatus`
1196
1195
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ProfileStatus]
1197
1196
  attr_accessor :profile_status
@@ -1382,7 +1381,7 @@ module Google
1382
1381
  end
1383
1382
  end
1384
1383
 
1385
- #
1384
+ # Type of content to inspect.
1386
1385
  class GooglePrivacyDlpV2ContentItem
1387
1386
  include Google::Apis::Core::Hashable
1388
1387
 
@@ -2198,6 +2197,26 @@ module Google
2198
2197
  end
2199
2198
  end
2200
2199
 
2200
+ # Message used to identify the type of resource being profiled.
2201
+ class GooglePrivacyDlpV2DataSourceType
2202
+ include Google::Apis::Core::Hashable
2203
+
2204
+ # Output only. An identifying string to the type of resource being profiled.
2205
+ # Current values: google/bigquery/table, google/project
2206
+ # Corresponds to the JSON property `dataSource`
2207
+ # @return [String]
2208
+ attr_accessor :data_source
2209
+
2210
+ def initialize(**args)
2211
+ update!(**args)
2212
+ end
2213
+
2214
+ # Update properties of this object
2215
+ def update!(**args)
2216
+ @data_source = args[:data_source] if args.key?(:data_source)
2217
+ end
2218
+ end
2219
+
2201
2220
  # Record key for a finding in Cloud Datastore.
2202
2221
  class GooglePrivacyDlpV2DatastoreKey
2203
2222
  include Google::Apis::Core::Hashable
@@ -2470,8 +2489,7 @@ module Google
2470
2489
  # @return [String]
2471
2490
  attr_accessor :inspect_template_name
2472
2491
 
2473
- # The item to de-identify. Will be treated as text. This value must be of type
2474
- # Table if your deidentify_config is a RecordTransformations object.
2492
+ # Type of content to inspect.
2475
2493
  # Corresponds to the JSON property `item`
2476
2494
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem]
2477
2495
  attr_accessor :item
@@ -2500,7 +2518,7 @@ module Google
2500
2518
  class GooglePrivacyDlpV2DeidentifyContentResponse
2501
2519
  include Google::Apis::Core::Hashable
2502
2520
 
2503
- # The de-identified item.
2521
+ # Type of content to inspect.
2504
2522
  # Corresponds to the JSON property `item`
2505
2523
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem]
2506
2524
  attr_accessor :item
@@ -3832,7 +3850,7 @@ module Google
3832
3850
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2HybridFindingDetails]
3833
3851
  attr_accessor :finding_details
3834
3852
 
3835
- # The item to inspect.
3853
+ # Type of content to inspect.
3836
3854
  # Corresponds to the JSON property `item`
3837
3855
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem]
3838
3856
  attr_accessor :item
@@ -4132,7 +4150,7 @@ module Google
4132
4150
  class GooglePrivacyDlpV2ImageTransformations
4133
4151
  include Google::Apis::Core::Hashable
4134
4152
 
4135
- #
4153
+ # List of transforms to make.
4136
4154
  # Corresponds to the JSON property `transforms`
4137
4155
  # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2ImageTransformation>]
4138
4156
  attr_accessor :transforms
@@ -4539,7 +4557,7 @@ module Google
4539
4557
  # @return [String]
4540
4558
  attr_accessor :inspect_template_name
4541
4559
 
4542
- # The item to inspect.
4560
+ # Type of content to inspect.
4543
4561
  # Corresponds to the JSON property `item`
4544
4562
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem]
4545
4563
  attr_accessor :item
@@ -6145,7 +6163,7 @@ module Google
6145
6163
  end
6146
6164
  end
6147
6165
 
6148
- #
6166
+ # Success or errors for the profile generation.
6149
6167
  class GooglePrivacyDlpV2ProfileStatus
6150
6168
  include Google::Apis::Core::Hashable
6151
6169
 
@@ -6626,7 +6644,7 @@ module Google
6626
6644
  end
6627
6645
  end
6628
6646
 
6629
- #
6647
+ # The field in a record to transform.
6630
6648
  class GooglePrivacyDlpV2RecordTransformation
6631
6649
  include Google::Apis::Core::Hashable
6632
6650
 
@@ -6823,7 +6841,7 @@ module Google
6823
6841
  # @return [String]
6824
6842
  attr_accessor :inspect_template_name
6825
6843
 
6826
- # The item to re-identify. Will be treated as text.
6844
+ # Type of content to inspect.
6827
6845
  # Corresponds to the JSON property `item`
6828
6846
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem]
6829
6847
  attr_accessor :item
@@ -6867,7 +6885,7 @@ module Google
6867
6885
  class GooglePrivacyDlpV2ReidentifyContentResponse
6868
6886
  include Google::Apis::Core::Hashable
6869
6887
 
6870
- # The re-identified item.
6888
+ # Type of content to inspect.
6871
6889
  # Corresponds to the JSON property `item`
6872
6890
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem]
6873
6891
  attr_accessor :item
@@ -7288,7 +7306,7 @@ module Google
7288
7306
  class GooglePrivacyDlpV2StorageMetadataLabel
7289
7307
  include Google::Apis::Core::Hashable
7290
7308
 
7291
- #
7309
+ # Label name.
7292
7310
  # Corresponds to the JSON property `key`
7293
7311
  # @return [String]
7294
7312
  attr_accessor :key
@@ -7605,6 +7623,11 @@ module Google
7605
7623
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel]
7606
7624
  attr_accessor :data_risk_level
7607
7625
 
7626
+ # Message used to identify the type of resource being profiled.
7627
+ # Corresponds to the JSON property `dataSourceType`
7628
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DataSourceType]
7629
+ attr_accessor :data_source_type
7630
+
7608
7631
  # The BigQuery dataset ID.
7609
7632
  # Corresponds to the JSON property `datasetId`
7610
7633
  # @return [String]
@@ -7667,8 +7690,7 @@ module Google
7667
7690
  # @return [String]
7668
7691
  attr_accessor :profile_last_generated
7669
7692
 
7670
- # Success or error status from the most recent profile generation attempt. May
7671
- # be empty if the profile is still being generated.
7693
+ # Success or errors for the profile generation.
7672
7694
  # Corresponds to the JSON property `profileStatus`
7673
7695
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ProfileStatus]
7674
7696
  attr_accessor :profile_status
@@ -7729,6 +7751,7 @@ module Google
7729
7751
  @config_snapshot = args[:config_snapshot] if args.key?(:config_snapshot)
7730
7752
  @create_time = args[:create_time] if args.key?(:create_time)
7731
7753
  @data_risk_level = args[:data_risk_level] if args.key?(:data_risk_level)
7754
+ @data_source_type = args[:data_source_type] if args.key?(:data_source_type)
7732
7755
  @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
7733
7756
  @dataset_location = args[:dataset_location] if args.key?(:dataset_location)
7734
7757
  @dataset_project_id = args[:dataset_project_id] if args.key?(:dataset_project_id)
@@ -8045,9 +8068,7 @@ module Google
8045
8068
  # @return [String]
8046
8069
  attr_accessor :resource_name
8047
8070
 
8048
- # Status of the transformation, if transformation was not successful, this will
8049
- # specify what caused it to fail, otherwise it will show that the transformation
8050
- # was successful.
8071
+ # The outcome of a transformation.
8051
8072
  # Corresponds to the JSON property `statusDetails`
8052
8073
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2TransformationResultStatus]
8053
8074
  attr_accessor :status_details
@@ -8161,7 +8182,7 @@ module Google
8161
8182
  # @return [String]
8162
8183
  attr_accessor :finding_id
8163
8184
 
8164
- # For record transformations, provide a field and container information.
8185
+ # The field in a record to transform.
8165
8186
  # Corresponds to the JSON property `recordTransformation`
8166
8187
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2RecordTransformation]
8167
8188
  attr_accessor :record_transformation
@@ -8203,7 +8224,7 @@ module Google
8203
8224
  end
8204
8225
  end
8205
8226
 
8206
- #
8227
+ # The outcome of a transformation.
8207
8228
  class GooglePrivacyDlpV2TransformationResultStatus
8208
8229
  include Google::Apis::Core::Hashable
8209
8230
 
@@ -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.56.0"
19
+ GEM_VERSION = "0.58.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231210"
25
+ REVISION = "20240204"
26
26
  end
27
27
  end
28
28
  end
@@ -364,6 +364,12 @@ module Google
364
364
  include Google::Apis::Core::JsonObjectSupport
365
365
  end
366
366
 
367
+ class GooglePrivacyDlpV2DataSourceType
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
367
373
  class GooglePrivacyDlpV2DatastoreKey
368
374
  class Representation < Google::Apis::Core::JsonRepresentation; end
369
375
 
@@ -2152,6 +2158,13 @@ module Google
2152
2158
  end
2153
2159
  end
2154
2160
 
2161
+ class GooglePrivacyDlpV2DataSourceType
2162
+ # @private
2163
+ class Representation < Google::Apis::Core::JsonRepresentation
2164
+ property :data_source, as: 'dataSource'
2165
+ end
2166
+ end
2167
+
2155
2168
  class GooglePrivacyDlpV2DatastoreKey
2156
2169
  # @private
2157
2170
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3806,6 +3819,8 @@ module Google
3806
3819
  property :create_time, as: 'createTime'
3807
3820
  property :data_risk_level, as: 'dataRiskLevel', class: Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel::Representation
3808
3821
 
3822
+ property :data_source_type, as: 'dataSourceType', class: Google::Apis::DlpV2::GooglePrivacyDlpV2DataSourceType, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2DataSourceType::Representation
3823
+
3809
3824
  property :dataset_id, as: 'datasetId'
3810
3825
  property :dataset_location, as: 'datasetLocation'
3811
3826
  property :dataset_project_id, as: 'datasetProjectId'
@@ -20,11 +20,10 @@ require 'google/apis/errors'
20
20
  module Google
21
21
  module Apis
22
22
  module DlpV2
23
- # Cloud Data Loss Prevention (DLP)
23
+ # Sensitive Data Protection (DLP)
24
24
  #
25
- # Provides methods for detection, risk analysis, and de-identification of
26
- # privacy-sensitive fragments in text, images, and Google Cloud Platform storage
27
- # repositories.
25
+ # Discover and protect your sensitive data. A fully managed service designed to
26
+ # help you discover, classify, and protect your valuable data assets with ease.
28
27
  #
29
28
  # @example
30
29
  # require 'google/apis/dlp_v2'
@@ -34,6 +33,8 @@ module Google
34
33
  #
35
34
  # @see https://cloud.google.com/dlp/docs/
36
35
  class DLPService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://dlp.$UNIVERSE_DOMAIN$/"
37
+
37
38
  # @return [String]
38
39
  # API key. Your API key identifies your project and provides you with API access,
39
40
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -45,7 +46,7 @@ module Google
45
46
  attr_accessor :quota_user
46
47
 
47
48
  def initialize
48
- super('https://dlp.googleapis.com/', '',
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
49
50
  client_name: 'google-apis-dlp_v2',
50
51
  client_version: Google::Apis::DlpV2::GEM_VERSION)
51
52
  @batch_path = 'batch'
@@ -3570,7 +3571,7 @@ module Google
3570
3571
  # Finish a running hybrid DlpJob. Triggers the finalization steps and running of
3571
3572
  # any enabled actions that have not yet run.
3572
3573
  # @param [String] name
3573
- # Required. The name of the DlpJob resource to be cancelled.
3574
+ # Required. The name of the DlpJob resource to be finished.
3574
3575
  # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2FinishDlpJobRequest] google_privacy_dlp_v2_finish_dlp_job_request_object
3575
3576
  # @param [String] fields
3576
3577
  # Selector specifying which fields to include in a partial response.
@@ -19,15 +19,14 @@ require 'google/apis/dlp_v2/gem_version.rb'
19
19
 
20
20
  module Google
21
21
  module Apis
22
- # Cloud Data Loss Prevention (DLP)
22
+ # Sensitive Data Protection (DLP)
23
23
  #
24
- # Provides methods for detection, risk analysis, and de-identification of
25
- # privacy-sensitive fragments in text, images, and Google Cloud Platform storage
26
- # repositories.
24
+ # Discover and protect your sensitive data. A fully managed service designed to
25
+ # help you discover, classify, and protect your valuable data assets with ease.
27
26
  #
28
27
  # @see https://cloud.google.com/dlp/docs/
29
28
  module DlpV2
30
- # Version of the Cloud Data Loss Prevention (DLP) this client connects to.
29
+ # Version of the Sensitive Data Protection (DLP) this client connects to.
31
30
  # This is NOT the gem version.
32
31
  VERSION = 'V2'
33
32
 
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.56.0
4
+ version: 0.58.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-12-17 00:00:00.000000000 Z
11
+ date: 2024-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,16 +26,16 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
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) V2.
33
+ description: This is the simple REST client for Sensitive Data Protection (DLP) V2.
34
34
  Simple REST clients are Ruby client libraries that provide access to Google services
35
35
  via their HTTP REST API endpoints. These libraries are generated and updated automatically
36
36
  based on the discovery documents published by the service, and they handle most
37
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
38
+ use this client to access the Sensitive Data Protection (DLP), but note that some
39
39
  services may provide a separate modern client that is easier to use.
40
40
  email: googleapis-packages@google.com
41
41
  executables: []
@@ -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.56.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dlp_v2/v0.58.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: []
@@ -75,8 +75,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
- summary: Simple REST client for Cloud Data Loss Prevention (DLP) V2
81
+ summary: Simple REST client for Sensitive Data Protection (DLP) V2
82
82
  test_files: []