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.
@@ -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
  #