google-cloud-dlp-v2 0.18.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -93,6 +93,25 @@ module Google
93
93
  resource.call(**args)
94
94
  end
95
95
 
96
+ ##
97
+ # Create a fully-qualified DiscoveryConfig resource string.
98
+ #
99
+ # The resource will be in the following format:
100
+ #
101
+ # `projects/{project}/locations/{location}/discoveryConfigs/{discovery_config}`
102
+ #
103
+ # @param project [String]
104
+ # @param location [String]
105
+ # @param discovery_config [String]
106
+ #
107
+ # @return [::String]
108
+ def discovery_config_path project:, location:, discovery_config:
109
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
110
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
111
+
112
+ "projects/#{project}/locations/#{location}/discoveryConfigs/#{discovery_config}"
113
+ end
114
+
96
115
  ##
97
116
  # Create a fully-qualified DlpJob resource string.
98
117
  #