Sha256: 85183d1fc357e32ad053221dce5b73fc03d0889ba8be385b8a0e068b203174ae

Contents?: true

Size: 826 Bytes

Versions: 3

Compression:

Stored size: 826 Bytes

Contents

<%- assert_locals gem -%>
<%= render partial: "shared/header" -%>

<%- if gem.google_cloud_short_name -%>
gem "google-cloud-core"
require "google/cloud" unless defined? Google::Cloud.new
require "google/cloud/config"
require "googleauth"

# Set the default configuration
Google::Cloud.configure.add_config! :<%= gem.google_cloud_short_name %> do |config|
  config.add_field! :credentials,  nil, match: [String, Hash, Google::Auth::Credentials]
  config.add_field! :lib_name,     nil, match: String
  config.add_field! :lib_version,  nil, match: String
  config.add_field! :interceptors, nil, match: Array
  config.add_field! :timeout,      nil, match: Numeric
  config.add_field! :metadata,     nil, match: Hash
  config.add_field! :retry_policy, nil, match: [Hash, Proc]
end

<%- end -%>
require "<%= gem.version_require %>"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gapic-generator-cloud-0.2.3 templates/cloud/wrapper_gem/dashed.erb
gapic-generator-cloud-0.2.2 templates/cloud/wrapper_gem/dashed.erb
gapic-generator-cloud-0.2.0 templates/cloud/wrapper_gem/dashed.erb