From ac85eabb7bbd5f5ee44cb48d2838e38b5483cb03 Mon Sep 17 00:00:00 2001 From: Shubhangi Singh Date: Mon, 21 Apr 2025 13:05:56 +0000 Subject: [PATCH] feat(storage): Support for idempotency_token_header --- google-cloud-storage/lib/google/cloud/storage/service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/google-cloud-storage/lib/google/cloud/storage/service.rb b/google-cloud-storage/lib/google/cloud/storage/service.rb index 5175b08928c9..995e2b50a814 100644 --- a/google-cloud-storage/lib/google/cloud/storage/service.rb +++ b/google-cloud-storage/lib/google/cloud/storage/service.rb @@ -72,6 +72,7 @@ def initialize project, credentials, retries: nil, @service.request_options.multiplier = multiplier if multiplier @service.request_options.add_invocation_id_header = true @service.request_options.upload_chunk_size = upload_chunk_size if upload_chunk_size + @service.request_options.add_idempotency_token_header = true @service.authorization = @credentials.client if @credentials @service.root_url = host if host @service.universe_domain = universe_domain || Google::Cloud::Storage.configure.universe_domain