Sha256: 516acb4c41ce5efa99f8073ad8fe6c58ec06c6b781f737b0238e739c4ac3a0c3

Contents?: true

Size: 566 Bytes

Versions: 14

Compression:

Stored size: 566 Bytes

Contents

<%- assert_locals method -%>
@<%= method.service.stub_name %>.call_rpc :<%= method.name %>, request, options: options do |response, operation|
  <%- if method.lro? -%>
  wrap_lro_operation = ->(op_response) { Gapic::Operation.new op_response, <%= method.service.lro_client_ivar %> }
  <%- end -%>
  response = Gapic::PagedEnumerable.new @<%= method.service.stub_name %>, :<%= method.name %>, request, response, operation, options<%- if method.lro? -%>, format_resource: wrap_lro_operation<%- end -%>
  yield response, operation if block_given?
  return response
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
gapic-generator-0.4.0 templates/default/service/client/method/def/_response_paged.erb
gapic-generator-0.3.3 templates/default/service/client/method/def/_response_paged.erb
gapic-generator-0.3.1 templates/default/service/client/method/def/_response_paged.erb
gapic-generator-0.3.0 templates/default/service/client/method/def/_response_paged.erb
gapic-generator-0.2.3 templates/default/service/client/method/def/_response_paged.erb
gapic-generator-0.2.2 templates/default/service/client/method/def/_response_paged.erb
gapic-generator-0.2.0 templates/default/service/client/method/def/_response_paged.erb
gapic-generator-0.1.7 templates/default/service/client/method/def/_response_paged.erb
gapic-generator-0.1.5 templates/default/service/client/method/def/_response_paged.erb
gapic-generator-0.1.4 templates/default/service/client/method/def/_response_paged.erb
gapic-generator-0.1.3 templates/default/service/client/method/def/_response_paged.erb
gapic-generator-0.1.2 templates/default/service/client/method/def/_response_paged.erb
gapic-generator-0.1.1 templates/default/service/client/method/def/_response_paged.erb
gapic-generator-0.1.0 templates/default/service/client/method/def/_response_paged.erb