Method: SDM::ManagedSecrets#update
- Defined in:
- lib/svc.rb
#update(managed_secret, deadline: nil) ⇒ Object
Update updates a Managed Secret
2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 |
# File 'lib/svc.rb', line 2828 def update( managed_secret, deadline: nil ) req = V1::ManagedSecretUpdateRequest.new() req.managed_secret = Plumbing::convert_managed_secret_to_plumbing(managed_secret) tries = 0 plumbing_response = nil loop do begin plumbing_response = @stub.update(req, metadata: @parent.("ManagedSecrets.Update", req), deadline: deadline) rescue => exception if (@parent.shouldRetry(tries, exception)) tries + +@parent.jitterSleep(tries) next end raise Plumbing::convert_error_to_porcelain(exception) end break end resp = ManagedSecretUpdateResponse.new() resp.managed_secret = Plumbing::convert_managed_secret_to_porcelain(plumbing_response.managed_secret) resp. = Plumbing::(plumbing_response.) resp.rate_limit = Plumbing::(plumbing_response.rate_limit) resp end |