google-cloud-storage-control-v2 1.12.0 → 1.13.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.
@@ -208,6 +208,25 @@ module Google
208
208
  "projects/#{project}/buckets/#{bucket}/managedFolders/#{managed_folder}"
209
209
  end
210
210
 
211
+ ##
212
+ # Create a fully-qualified RapidCache resource string.
213
+ #
214
+ # The resource will be in the following format:
215
+ #
216
+ # `projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}`
217
+ #
218
+ # @param project [String]
219
+ # @param bucket [String]
220
+ # @param rapid_cache [String]
221
+ #
222
+ # @return [::String]
223
+ def rapid_cache_path project:, bucket:, rapid_cache:
224
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
225
+ raise ::ArgumentError, "bucket cannot contain /" if bucket.to_s.include? "/"
226
+
227
+ "projects/#{project}/buckets/#{bucket}/rapidCaches/#{rapid_cache}"
228
+ end
229
+
211
230
  ##
212
231
  # Create a fully-qualified StorageLayout resource string.
213
232
  #