class SDM::Roles
def get(
def get( id, deadline: nil ) req = V1::RoleGetRequest.new() req.id = id tries = 0 plumbing_response = nil loop do begin plumbing_response = @stub.get(req, metadata: @parent.get_metadata("Roles.Get", req), deadline: deadline) rescue => exception if (@parent.shouldRetry(tries, exception)) tries + +@parent.jitterSleep(tries) next end raise Plumbing::error_to_porcelain(exception) end break end resp = RoleGetResponse.new() resp.meta = Plumbing::get_response_metadata_to_porcelain(plumbing_response.meta) resp.role = Plumbing::role_to_porcelain(plumbing_response.role) resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit) resp end