google-cloud-storage-control-v2 1.11.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/README.md +1 -1
- data/lib/google/cloud/storage/control/v2/storage_control/client.rb +580 -29
- data/lib/google/cloud/storage/control/v2/storage_control/operations.rb +2 -0
- 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 +786 -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 +4 -3
|
@@ -704,6 +704,7 @@ module Google
|
|
|
704
704
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
705
705
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
706
706
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
707
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
707
708
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
708
709
|
# trigger a retry.
|
|
709
710
|
# @return [::Hash]
|
|
@@ -787,6 +788,7 @@ module Google
|
|
|
787
788
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
788
789
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
789
790
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
791
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
790
792
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
791
793
|
# trigger a retry.
|
|
792
794
|
#
|
|
@@ -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
|
#
|