google-cloud-storage-control-v2 1.12.0 → 1.13.1
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/rest.rb +1 -1
- data/lib/google/cloud/storage/control/v2/storage_control/client.rb +595 -46
- data/lib/google/cloud/storage/control/v2/storage_control/credentials.rb +1 -1
- data/lib/google/cloud/storage/control/v2/storage_control/operations.rb +1 -1
- data/lib/google/cloud/storage/control/v2/storage_control/paths.rb +20 -1
- data/lib/google/cloud/storage/control/v2/storage_control/rest/client.rb +785 -18
- 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 +431 -1
- data/lib/google/cloud/storage/control/v2/storage_control/rest.rb +2 -1
- data/lib/google/cloud/storage/control/v2/storage_control.rb +1 -1
- data/lib/google/cloud/storage/control/v2/version.rb +1 -1
- data/lib/google/cloud/storage/control/v2.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 +15 -4
- data/lib/google-cloud-storage-control-v2.rb +1 -1
- data/proto_docs/google/api/client.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +1 -1
- data/proto_docs/google/api/field_info.rb +1 -1
- data/proto_docs/google/api/launch_stage.rb +1 -1
- data/proto_docs/google/api/resource.rb +1 -1
- data/proto_docs/google/api/routing.rb +1 -1
- data/proto_docs/google/iam/v1/iam_policy.rb +1 -1
- data/proto_docs/google/iam/v1/options.rb +1 -1
- data/proto_docs/google/iam/v1/policy.rb +1 -1
- data/proto_docs/google/longrunning/operations.rb +1 -1
- data/proto_docs/google/protobuf/any.rb +1 -1
- data/proto_docs/google/protobuf/duration.rb +1 -1
- data/proto_docs/google/protobuf/empty.rb +1 -1
- data/proto_docs/google/protobuf/field_mask.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +8 -7
- data/proto_docs/google/rpc/status.rb +1 -1
- data/proto_docs/google/storage/control/v2/storage_control.rb +315 -45
- data/proto_docs/google/type/expr.rb +1 -1
- metadata +2 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -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
|
#
|