google-cloud-dlp-v2 0.22.0 → 0.23.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/lib/google/cloud/dlp/v2/dlp_service/client.rb +789 -51
- data/lib/google/cloud/dlp/v2/dlp_service/paths.rb +19 -0
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +740 -51
- data/lib/google/cloud/dlp/v2/dlp_service/rest/service_stub.rb +429 -0
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +29 -1
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +18 -3
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +495 -13
- data/proto_docs/google/privacy/dlp/v2/storage.rb +11 -0
- metadata +2 -2
@@ -67,6 +67,25 @@ module Google
|
|
67
67
|
resource.call(**args)
|
68
68
|
end
|
69
69
|
|
70
|
+
##
|
71
|
+
# Create a fully-qualified Connection resource string.
|
72
|
+
#
|
73
|
+
# The resource will be in the following format:
|
74
|
+
#
|
75
|
+
# `projects/{project}/locations/{location}/connections/{connection}`
|
76
|
+
#
|
77
|
+
# @param project [String]
|
78
|
+
# @param location [String]
|
79
|
+
# @param connection [String]
|
80
|
+
#
|
81
|
+
# @return [::String]
|
82
|
+
def connection_path project:, location:, connection:
|
83
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
84
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
85
|
+
|
86
|
+
"projects/#{project}/locations/#{location}/connections/#{connection}"
|
87
|
+
end
|
88
|
+
|
70
89
|
##
|
71
90
|
# Create a fully-qualified DeidentifyTemplate resource string.
|
72
91
|
#
|