Sha256: 5830715e33735b9b1c9ec164edc9c2e9a04af3b7a5dd8a77de58e3cf72d17982
Contents?: true
Size: 896 Bytes
Versions: 44
Compression:
Stored size: 896 Bytes
Contents
<%- assert_locals method, sample -%> <%- if method.server_streaming? || method.paged? -%> responses = client.<%= method.name %> <%= sample.kwargs %> responses.each do |response| <%- if method.lro? -%> # Wait until the long running operation is done response.wait_until_done! <%- end -%> <%- sample.response_raw.each do |resp_hash| -%> <%= indent render(partial: "service/client/method/docs/sample_response/#{resp_hash.keys.first}", locals: { values: resp_hash.values.first }), " " %> <%- end -%> end <%- else -%> response = client.<%= method.name %> <%= sample.kwargs %> <%- if method.lro? -%> # Wait until the long running operation is done response.wait_until_done! <%- end -%> <%- sample.response_raw.each do |resp_hash| -%> <%= render partial: "service/client/method/docs/sample_response/#{resp_hash.keys.first}", locals: { values: resp_hash.values.first } -%> <%- end -%> <%- end -%>
Version data entries
44 entries across 44 versions & 1 rubygems