From fc6a76e0d798eefab420aebad7d1500a8c5d6168 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 23 Jun 2022 13:31:26 -0700 Subject: [PATCH] feat: set longer polling timeouts for filestore DeleteInstance and DeleteSnapshot PiperOrigin-RevId: 456849206 --- google/cloud/filestore/v1beta1/file_gapic.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/google/cloud/filestore/v1beta1/file_gapic.yaml b/google/cloud/filestore/v1beta1/file_gapic.yaml index f41091237be3c..daa4dd78fcf15 100644 --- a/google/cloud/filestore/v1beta1/file_gapic.yaml +++ b/google/cloud/filestore/v1beta1/file_gapic.yaml @@ -5,10 +5,25 @@ interfaces: # The fully qualified name of the API interface. - name: google.cloud.filestore.v1beta1.CloudFilestoreManager methods: + # Both CreateInstance and DeleteSnapshot can take a long time to complete. + # The default client-side timeouts cause the client to give up on the request early, + # so the following configuration increases it: + # See go/client-self-service#configure-long-running-operation-polling-timeouts-optional - name: CreateInstance - # See go/client-self-service#configure-long-running-operation-polling-timeouts-optional long_running: initial_poll_delay_millis: 60000 # 1 minutes poll_delay_multiplier: 1.5 max_poll_delay_millis: 360000 # 6 minutes total_poll_timeout_millis: 7200000 # 120 minutes + - name: DeleteSnapshot + long_running: + initial_poll_delay_millis: 60000 # 1 minutes + poll_delay_multiplier: 1.5 + max_poll_delay_millis: 360000 # 6 minutes + total_poll_timeout_millis: 7200000 # 120 minutes + - name: DeleteInstance + long_running: + initial_poll_delay_millis: 60000 # 1 minutes + poll_delay_multiplier: 1.5 + max_poll_delay_millis: 360000 # 6 minutes + total_poll_timeout_millis: 900000 # 15 minutes