google-cloud-dlp-v2 0.22.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +787 -51
- data/lib/google/cloud/dlp/v2/dlp_service/paths.rb +19 -0
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +738 -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 +30 -1
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +18 -3
- data/lib/google/privacy/dlp/v2/storage_pb.rb +2 -1
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +527 -14
- data/proto_docs/google/privacy/dlp/v2/storage.rb +24 -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
|
#
|