4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
|
# File 'lib/svc.rb', line 4533
def create(
secret_store,
deadline: nil
)
req = V1::SecretStoreCreateRequest.new()
req.secret_store = Plumbing::convert_secret_store_to_plumbing(secret_store)
tries = 0
plumbing_response = nil
loop do
begin
plumbing_response = @stub.create(req, metadata: @parent.get_metadata("SecretStores.Create", 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 = SecretStoreCreateResponse.new()
resp.meta = Plumbing::convert_create_response_metadata_to_porcelain(plumbing_response.meta)
resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
resp.secret_store = Plumbing::convert_secret_store_to_porcelain(plumbing_response.secret_store)
resp
end
|