google-apis-dlp_v2 0.84.0 → 0.85.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/dlp_v2/classes.rb +61 -0
- data/lib/google/apis/dlp_v2/gem_version.rb +2 -2
- data/lib/google/apis/dlp_v2/representations.rb +20 -0
- data/lib/google/apis/dlp_v2/service.rb +88 -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: 02304f6c078d4f0b8045306f01627630fe83608b86d86cd4847a479b2b7b2266
|
4
|
+
data.tar.gz: 9822e5dea55316a8909c14eb303c86ab694b090c301074b56dcecc5842cf7444
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e86f9ec7e71c608def87c3367621207d74fcf6314b35e446cd3cc3973c5f5ea94c53cb370a79210eb81d7d9a902a351259c9ce456c280b2e94edd10ad807b37
|
7
|
+
data.tar.gz: e3f9e6c46e0502bff1d9a66aa8414bc26fcf59d4436ce634c11b6d22678f1762ee9e4e2e58046747533c9e2b0d641b4b65bd9625a1ca1afa37f8a8335d91cc14
|
data/CHANGELOG.md
CHANGED
@@ -5134,6 +5134,12 @@ module Google
|
|
5134
5134
|
# @return [String]
|
5135
5135
|
attr_accessor :state
|
5136
5136
|
|
5137
|
+
# The tags attached to the resource, including any tags attached during
|
5138
|
+
# profiling.
|
5139
|
+
# Corresponds to the JSON property `tags`
|
5140
|
+
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2Tag>]
|
5141
|
+
attr_accessor :tags
|
5142
|
+
|
5137
5143
|
def initialize(**args)
|
5138
5144
|
update!(**args)
|
5139
5145
|
end
|
@@ -5165,6 +5171,7 @@ module Google
|
|
5165
5171
|
@sample_findings_table = args[:sample_findings_table] if args.key?(:sample_findings_table)
|
5166
5172
|
@sensitivity_score = args[:sensitivity_score] if args.key?(:sensitivity_score)
|
5167
5173
|
@state = args[:state] if args.key?(:state)
|
5174
|
+
@tags = args[:tags] if args.key?(:tags)
|
5168
5175
|
end
|
5169
5176
|
end
|
5170
5177
|
|
@@ -5944,6 +5951,15 @@ module Google
|
|
5944
5951
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore]
|
5945
5952
|
attr_accessor :sensitivity_score
|
5946
5953
|
|
5954
|
+
# If this field is set, this infoType is a general infoType and these specific
|
5955
|
+
# infoTypes are contained within it. General infoTypes are infoTypes that
|
5956
|
+
# encompass multiple specific infoTypes. For example, the "GEOGRAPHIC_DATA"
|
5957
|
+
# general infoType would have set for this field "LOCATION", "
|
5958
|
+
# LOCATION_COORDINATES", and "STREET_ADDRESS".
|
5959
|
+
# Corresponds to the JSON property `specificInfoTypes`
|
5960
|
+
# @return [Array<String>]
|
5961
|
+
attr_accessor :specific_info_types
|
5962
|
+
|
5947
5963
|
# Which parts of the API supports this InfoType.
|
5948
5964
|
# Corresponds to the JSON property `supportedBy`
|
5949
5965
|
# @return [Array<String>]
|
@@ -5966,6 +5982,7 @@ module Google
|
|
5966
5982
|
@example = args[:example] if args.key?(:example)
|
5967
5983
|
@name = args[:name] if args.key?(:name)
|
5968
5984
|
@sensitivity_score = args[:sensitivity_score] if args.key?(:sensitivity_score)
|
5985
|
+
@specific_info_types = args[:specific_info_types] if args.key?(:specific_info_types)
|
5969
5986
|
@supported_by = args[:supported_by] if args.key?(:supported_by)
|
5970
5987
|
@versions = args[:versions] if args.key?(:versions)
|
5971
5988
|
end
|
@@ -9977,6 +9994,13 @@ module Google
|
|
9977
9994
|
# @return [Fixnum]
|
9978
9995
|
attr_accessor :table_size_bytes
|
9979
9996
|
|
9997
|
+
# The tags attached to the table, including any tags attached during profiling.
|
9998
|
+
# Because tags are attached to Cloud SQL instances rather than Cloud SQL tables,
|
9999
|
+
# this field is empty for Cloud SQL table profiles.
|
10000
|
+
# Corresponds to the JSON property `tags`
|
10001
|
+
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2Tag>]
|
10002
|
+
attr_accessor :tags
|
10003
|
+
|
9980
10004
|
def initialize(**args)
|
9981
10005
|
update!(**args)
|
9982
10006
|
end
|
@@ -10011,6 +10035,7 @@ module Google
|
|
10011
10035
|
@state = args[:state] if args.key?(:state)
|
10012
10036
|
@table_id = args[:table_id] if args.key?(:table_id)
|
10013
10037
|
@table_size_bytes = args[:table_size_bytes] if args.key?(:table_size_bytes)
|
10038
|
+
@tags = args[:tags] if args.key?(:tags)
|
10014
10039
|
end
|
10015
10040
|
end
|
10016
10041
|
|
@@ -10085,6 +10110,42 @@ module Google
|
|
10085
10110
|
end
|
10086
10111
|
end
|
10087
10112
|
|
10113
|
+
# A tag associated with a resource.
|
10114
|
+
class GooglePrivacyDlpV2Tag
|
10115
|
+
include Google::Apis::Core::Hashable
|
10116
|
+
|
10117
|
+
# The key of a tag key-value pair. For Google Cloud resources, this is the
|
10118
|
+
# resource name of the key, for example, "tagKeys/123456".
|
10119
|
+
# Corresponds to the JSON property `key`
|
10120
|
+
# @return [String]
|
10121
|
+
attr_accessor :key
|
10122
|
+
|
10123
|
+
# The namespaced name for the tag value to attach to Google Cloud resources.
|
10124
|
+
# Must be in the format ``parent_id`/`tag_key_short_name`/`short_name``, for
|
10125
|
+
# example, "123456/environment/prod". This is only set for Google Cloud
|
10126
|
+
# resources.
|
10127
|
+
# Corresponds to the JSON property `namespacedTagValue`
|
10128
|
+
# @return [String]
|
10129
|
+
attr_accessor :namespaced_tag_value
|
10130
|
+
|
10131
|
+
# The value of a tag key-value pair. For Google Cloud resources, this is the
|
10132
|
+
# resource name of the value, for example, "tagValues/123456".
|
10133
|
+
# Corresponds to the JSON property `value`
|
10134
|
+
# @return [String]
|
10135
|
+
attr_accessor :value
|
10136
|
+
|
10137
|
+
def initialize(**args)
|
10138
|
+
update!(**args)
|
10139
|
+
end
|
10140
|
+
|
10141
|
+
# Update properties of this object
|
10142
|
+
def update!(**args)
|
10143
|
+
@key = args[:key] if args.key?(:key)
|
10144
|
+
@namespaced_tag_value = args[:namespaced_tag_value] if args.key?(:namespaced_tag_value)
|
10145
|
+
@value = args[:value] if args.key?(:value)
|
10146
|
+
end
|
10147
|
+
end
|
10148
|
+
|
10088
10149
|
# The tag to attach to profiles matching the condition. At most one `
|
10089
10150
|
# TagCondition` can be specified per sensitivity level.
|
10090
10151
|
class GooglePrivacyDlpV2TagCondition
|
@@ -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.85.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250309"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1780,6 +1780,12 @@ module Google
|
|
1780
1780
|
include Google::Apis::Core::JsonObjectSupport
|
1781
1781
|
end
|
1782
1782
|
|
1783
|
+
class GooglePrivacyDlpV2Tag
|
1784
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1785
|
+
|
1786
|
+
include Google::Apis::Core::JsonObjectSupport
|
1787
|
+
end
|
1788
|
+
|
1783
1789
|
class GooglePrivacyDlpV2TagCondition
|
1784
1790
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1785
1791
|
|
@@ -3500,6 +3506,8 @@ module Google
|
|
3500
3506
|
property :sensitivity_score, as: 'sensitivityScore', class: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore::Representation
|
3501
3507
|
|
3502
3508
|
property :state, as: 'state'
|
3509
|
+
collection :tags, as: 'tags', class: Google::Apis::DlpV2::GooglePrivacyDlpV2Tag, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2Tag::Representation
|
3510
|
+
|
3503
3511
|
end
|
3504
3512
|
end
|
3505
3513
|
|
@@ -3740,6 +3748,7 @@ module Google
|
|
3740
3748
|
property :name, as: 'name'
|
3741
3749
|
property :sensitivity_score, as: 'sensitivityScore', class: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore::Representation
|
3742
3750
|
|
3751
|
+
collection :specific_info_types, as: 'specificInfoTypes'
|
3743
3752
|
collection :supported_by, as: 'supportedBy'
|
3744
3753
|
collection :versions, as: 'versions', class: Google::Apis::DlpV2::GooglePrivacyDlpV2VersionDescription, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2VersionDescription::Representation
|
3745
3754
|
|
@@ -5012,6 +5021,8 @@ module Google
|
|
5012
5021
|
property :state, as: 'state'
|
5013
5022
|
property :table_id, as: 'tableId'
|
5014
5023
|
property :table_size_bytes, :numeric_string => true, as: 'tableSizeBytes'
|
5024
|
+
collection :tags, as: 'tags', class: Google::Apis::DlpV2::GooglePrivacyDlpV2Tag, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2Tag::Representation
|
5025
|
+
|
5015
5026
|
end
|
5016
5027
|
end
|
5017
5028
|
|
@@ -5038,6 +5049,15 @@ module Google
|
|
5038
5049
|
end
|
5039
5050
|
end
|
5040
5051
|
|
5052
|
+
class GooglePrivacyDlpV2Tag
|
5053
|
+
# @private
|
5054
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5055
|
+
property :key, as: 'key'
|
5056
|
+
property :namespaced_tag_value, as: 'namespacedTagValue'
|
5057
|
+
property :value, as: 'value'
|
5058
|
+
end
|
5059
|
+
end
|
5060
|
+
|
5041
5061
|
class GooglePrivacyDlpV2TagCondition
|
5042
5062
|
# @private
|
5043
5063
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1482,6 +1482,50 @@ module Google
|
|
1482
1482
|
execute_or_queue_command(command, &block)
|
1483
1483
|
end
|
1484
1484
|
|
1485
|
+
# Returns a list of the sensitive information types that the DLP API supports.
|
1486
|
+
# See https://cloud.google.com/sensitive-data-protection/docs/infotypes-
|
1487
|
+
# reference to learn more.
|
1488
|
+
# @param [String] parent
|
1489
|
+
# The parent resource name. The format of this value is as follows: `locations/`
|
1490
|
+
# location_id``
|
1491
|
+
# @param [String] filter
|
1492
|
+
# filter to only return infoTypes supported by certain parts of the API.
|
1493
|
+
# Defaults to supported_by=INSPECT.
|
1494
|
+
# @param [String] language_code
|
1495
|
+
# BCP-47 language code for localized infoType friendly names. If omitted, or if
|
1496
|
+
# localized strings are not available, en-US strings will be returned.
|
1497
|
+
# @param [String] location_id
|
1498
|
+
# Deprecated. This field has no effect.
|
1499
|
+
# @param [String] fields
|
1500
|
+
# Selector specifying which fields to include in a partial response.
|
1501
|
+
# @param [String] quota_user
|
1502
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1503
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1504
|
+
# @param [Google::Apis::RequestOptions] options
|
1505
|
+
# Request-specific options
|
1506
|
+
#
|
1507
|
+
# @yield [result, err] Result & error if block supplied
|
1508
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse] parsed result object
|
1509
|
+
# @yieldparam err [StandardError] error object if request failed
|
1510
|
+
#
|
1511
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse]
|
1512
|
+
#
|
1513
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1514
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1515
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1516
|
+
def list_organization_location_info_types(parent, filter: nil, language_code: nil, location_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1517
|
+
command = make_simple_command(:get, 'v2/{+parent}/infoTypes', options)
|
1518
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse::Representation
|
1519
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse
|
1520
|
+
command.params['parent'] = parent unless parent.nil?
|
1521
|
+
command.query['filter'] = filter unless filter.nil?
|
1522
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
1523
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
1524
|
+
command.query['fields'] = fields unless fields.nil?
|
1525
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1526
|
+
execute_or_queue_command(command, &block)
|
1527
|
+
end
|
1528
|
+
|
1485
1529
|
# Creates an InspectTemplate for reusing frequently used configuration for
|
1486
1530
|
# inspecting content, images, and storage. See https://cloud.google.com/
|
1487
1531
|
# sensitive-data-protection/docs/creating-templates to learn more.
|
@@ -4949,6 +4993,50 @@ module Google
|
|
4949
4993
|
execute_or_queue_command(command, &block)
|
4950
4994
|
end
|
4951
4995
|
|
4996
|
+
# Returns a list of the sensitive information types that the DLP API supports.
|
4997
|
+
# See https://cloud.google.com/sensitive-data-protection/docs/infotypes-
|
4998
|
+
# reference to learn more.
|
4999
|
+
# @param [String] parent
|
5000
|
+
# The parent resource name. The format of this value is as follows: `locations/`
|
5001
|
+
# location_id``
|
5002
|
+
# @param [String] filter
|
5003
|
+
# filter to only return infoTypes supported by certain parts of the API.
|
5004
|
+
# Defaults to supported_by=INSPECT.
|
5005
|
+
# @param [String] language_code
|
5006
|
+
# BCP-47 language code for localized infoType friendly names. If omitted, or if
|
5007
|
+
# localized strings are not available, en-US strings will be returned.
|
5008
|
+
# @param [String] location_id
|
5009
|
+
# Deprecated. This field has no effect.
|
5010
|
+
# @param [String] fields
|
5011
|
+
# Selector specifying which fields to include in a partial response.
|
5012
|
+
# @param [String] quota_user
|
5013
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5014
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5015
|
+
# @param [Google::Apis::RequestOptions] options
|
5016
|
+
# Request-specific options
|
5017
|
+
#
|
5018
|
+
# @yield [result, err] Result & error if block supplied
|
5019
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse] parsed result object
|
5020
|
+
# @yieldparam err [StandardError] error object if request failed
|
5021
|
+
#
|
5022
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse]
|
5023
|
+
#
|
5024
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5025
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5026
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5027
|
+
def list_project_location_info_types(parent, filter: nil, language_code: nil, location_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5028
|
+
command = make_simple_command(:get, 'v2/{+parent}/infoTypes', options)
|
5029
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse::Representation
|
5030
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse
|
5031
|
+
command.params['parent'] = parent unless parent.nil?
|
5032
|
+
command.query['filter'] = filter unless filter.nil?
|
5033
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
5034
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
5035
|
+
command.query['fields'] = fields unless fields.nil?
|
5036
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5037
|
+
execute_or_queue_command(command, &block)
|
5038
|
+
end
|
5039
|
+
|
4952
5040
|
# Creates an InspectTemplate for reusing frequently used configuration for
|
4953
5041
|
# inspecting content, images, and storage. See https://cloud.google.com/
|
4954
5042
|
# sensitive-data-protection/docs/creating-templates to learn more.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
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.85.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-16 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dlp_v2/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dlp_v2/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dlp_v2/v0.85.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dlp_v2
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|