Method: SDM::Accounts#update

Defined in:
lib/svc.rb

#update(account, deadline: nil) ⇒ Object

Update patches a Account by ID.



393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
# File 'lib/svc.rb', line 393

def update(
  ,
  deadline: nil
)
  req = V1::AccountUpdateRequest.new()

  req. = Plumbing::()
  tries = 0
  plumbing_response = nil
  loop do
    begin
      plumbing_response = @stub.update(req, metadata: @parent.("Accounts.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 = AccountUpdateResponse.new()
  resp.meta = Plumbing::(plumbing_response.meta)
  resp. = Plumbing::(plumbing_response.)
  resp.rate_limit = Plumbing::(plumbing_response.rate_limit)
  resp
end