google-cloud-dlp-v2 0.22.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  #