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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/README.md +2 -6
  4. data/lib/google/cloud/dlp/v2/dlp_service/client.rb +546 -52
  5. data/lib/google/cloud/dlp/v2/dlp_service/credentials.rb +1 -1
  6. data/lib/google/cloud/dlp/v2/dlp_service/paths.rb +20 -1
  7. data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +511 -52
  8. data/lib/google/cloud/dlp/v2/dlp_service/rest/service_stub.rb +308 -1
  9. data/lib/google/cloud/dlp/v2/dlp_service/rest.rb +2 -2
  10. data/lib/google/cloud/dlp/v2/dlp_service.rb +2 -2
  11. data/lib/google/cloud/dlp/v2/rest.rb +1 -1
  12. data/lib/google/cloud/dlp/v2/version.rb +1 -1
  13. data/lib/google/cloud/dlp/v2.rb +1 -1
  14. data/lib/google/privacy/dlp/v2/dlp_pb.rb +20 -1
  15. data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +48 -38
  16. data/lib/google/privacy/dlp/v2/storage_pb.rb +5 -1
  17. data/lib/google-cloud-dlp-v2.rb +1 -1
  18. data/proto_docs/README.md +1 -1
  19. data/proto_docs/google/api/client.rb +1 -1
  20. data/proto_docs/google/api/field_behavior.rb +1 -1
  21. data/proto_docs/google/api/launch_stage.rb +1 -1
  22. data/proto_docs/google/api/resource.rb +1 -1
  23. data/proto_docs/google/privacy/dlp/v2/dlp.rb +453 -141
  24. data/proto_docs/google/privacy/dlp/v2/storage.rb +76 -20
  25. data/proto_docs/google/protobuf/any.rb +1 -1
  26. data/proto_docs/google/protobuf/duration.rb +1 -1
  27. data/proto_docs/google/protobuf/empty.rb +1 -1
  28. data/proto_docs/google/protobuf/field_mask.rb +1 -1
  29. data/proto_docs/google/protobuf/timestamp.rb +8 -7
  30. data/proto_docs/google/rpc/status.rb +1 -1
  31. data/proto_docs/google/type/date.rb +1 -1
  32. data/proto_docs/google/type/dayofweek.rb +1 -1
  33. data/proto_docs/google/type/timeofday.rb +1 -1
  34. metadata +6 -5
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
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.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
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
  #