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.
- checksums.yaml +4 -4
- data/lib/google/cloud/storage/control/v2/storage_control/client.rb +578 -29
- data/lib/google/cloud/storage/control/v2/storage_control/paths.rb +19 -0
- data/lib/google/cloud/storage/control/v2/storage_control/rest/client.rb +784 -17
- data/lib/google/cloud/storage/control/v2/storage_control/rest/operations.rb +929 -0
- data/lib/google/cloud/storage/control/v2/storage_control/rest/service_stub.rb +430 -0
- data/lib/google/cloud/storage/control/v2/storage_control/rest.rb +1 -0
- data/lib/google/cloud/storage/control/v2/version.rb +1 -1
- data/lib/google/storage/control/v2/storage_control_pb.rb +13 -1
- data/lib/google/storage/control/v2/storage_control_services_pb.rb +14 -3
- data/proto_docs/google/storage/control/v2/storage_control.rb +314 -44
- metadata +2 -1
|
@@ -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
|
#
|