google-cloud-storage_insights-v1 1.0.1 → 1.2.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.
@@ -24,6 +24,25 @@ module Google
24
24
  module StorageInsights
25
25
  # Path helper methods for the StorageInsights API.
26
26
  module Paths
27
+ ##
28
+ # Create a fully-qualified DatasetConfig resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/datasetConfigs/{dataset_config}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param dataset_config [String]
37
+ #
38
+ # @return [::String]
39
+ def dataset_config_path project:, location:, dataset_config:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/datasetConfigs/#{dataset_config}"
44
+ end
45
+
27
46
  ##
28
47
  # Create a fully-qualified Location resource string.
29
48
  #