google-cloud-dlp-v2 1.18.0 → 1.19.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/.yardopts +1 -1
- data/README.md +2 -6
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +546 -52
- data/lib/google/cloud/dlp/v2/dlp_service/credentials.rb +1 -1
- data/lib/google/cloud/dlp/v2/dlp_service/paths.rb +20 -1
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +511 -52
- data/lib/google/cloud/dlp/v2/dlp_service/rest/service_stub.rb +308 -1
- data/lib/google/cloud/dlp/v2/dlp_service/rest.rb +2 -2
- data/lib/google/cloud/dlp/v2/dlp_service.rb +2 -2
- data/lib/google/cloud/dlp/v2/rest.rb +1 -1
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/cloud/dlp/v2.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +20 -1
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +48 -38
- data/lib/google/privacy/dlp/v2/storage_pb.rb +5 -1
- data/lib/google-cloud-dlp-v2.rb +1 -1
- data/proto_docs/README.md +1 -1
- data/proto_docs/google/api/client.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +1 -1
- data/proto_docs/google/api/launch_stage.rb +1 -1
- data/proto_docs/google/api/resource.rb +1 -1
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +453 -141
- data/proto_docs/google/privacy/dlp/v2/storage.rb +76 -20
- data/proto_docs/google/protobuf/any.rb +1 -1
- data/proto_docs/google/protobuf/duration.rb +1 -1
- data/proto_docs/google/protobuf/empty.rb +1 -1
- data/proto_docs/google/protobuf/field_mask.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +8 -7
- data/proto_docs/google/rpc/status.rb +1 -1
- data/proto_docs/google/type/date.rb +1 -1
- data/proto_docs/google/type/dayofweek.rb +1 -1
- data/proto_docs/google/type/timeofday.rb +1 -1
- metadata +6 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -110,6 +110,25 @@ module Google
|
|
|
110
110
|
resource.call(**args)
|
|
111
111
|
end
|
|
112
112
|
|
|
113
|
+
##
|
|
114
|
+
# Create a fully-qualified ContentPolicy resource string.
|
|
115
|
+
#
|
|
116
|
+
# The resource will be in the following format:
|
|
117
|
+
#
|
|
118
|
+
# `projects/{project}/locations/{location}/contentPolicies/{content_policy}`
|
|
119
|
+
#
|
|
120
|
+
# @param project [String]
|
|
121
|
+
# @param location [String]
|
|
122
|
+
# @param content_policy [String]
|
|
123
|
+
#
|
|
124
|
+
# @return [::String]
|
|
125
|
+
def content_policy_path project:, location:, content_policy:
|
|
126
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
127
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
128
|
+
|
|
129
|
+
"projects/#{project}/locations/#{location}/contentPolicies/#{content_policy}"
|
|
130
|
+
end
|
|
131
|
+
|
|
113
132
|
##
|
|
114
133
|
# Create a fully-qualified DeidentifyTemplate resource string.
|
|
115
134
|
#
|