Sha256: 9470c91392983d2086d06c879855e0fe7a933dc4598c69fcb2928c6edd41dc4c
Contents?: true
Size: 1.58 KB
Versions: 7
Compression:
Stored size: 1.58 KB
Contents
<%- assert_locals service -%> <%- if service.generate_rest_clients? -%> <% @requires = capture do %> require "gapic/config" require "gapic/config/method" require "<%= service.gem.version_require %>" <%- unless service.generic_endpoint? -%> require "<%= service.credentials_require %>" <%- end -%> <%- if service.paths? -%> require "<%= service.paths_require %>" <%- end -%> require "<%= service.rest.service_rest_require %>" <% end %> <%- else -%> <% @requires = capture do %> require "gapic/common" require "gapic/config" require "gapic/config/method" require "<%= service.gem.version_require %>" <%- unless service.generic_endpoint? -%> require "<%= service.credentials_require %>" <%- end -%> <%- if service.paths? -%> require "<%= service.paths_require %>" <%- end -%> <%- if service.lro? -%> require "<%= service.operations_require %>" <%- end -%> require "<%= service.client_require %>" <% end %> ## <%- if service.doc_description -%> <%= indent service.doc_description, "# " %> # <%- end -%> <%- end -%> <%- if service.generate_grpc_clients? -%> # To load this service and instantiate a <%= service.grpc_client_designation %>: # # require "<%= service.service_require %>" # client = <%= service.create_client_call %> # <%- end -%> <%- if service.generate_rest_clients? -%> # To load this service and instantiate a REST client: # # require "<%= service.service_require %>" # client = <%= service.rest.create_client_call %> # <%- end -%> module <%= service.module_name %> end <% @footer = capture do %> <%= render partial: "service/helpers", locals: { service: service} -%> <% end %>
Version data entries
7 entries across 7 versions & 1 rubygems