Sha256: ad289f33152ec1d6ad416878b07b424357f1bde91df819cbe03dd45f1421ed69

Contents?: true

Size: 1.38 KB

Versions: 18

Compression:

Stored size: 1.38 KB

Contents

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require '<%= to_path(api.qualified_name) %>/service.rb'
require '<%= to_path(api.qualified_name) %>/classes.rb'
require '<%= to_path(api.qualified_name) %>/representations.rb'
require '<%= to_path(api.qualified_name) %>/gem_version.rb'

module Google
  module Apis
    # <%= api.title %>
    #
    # <%= block_comment(api.description, 4, 1) %>
    #
<% if api.documentation_link -%>
    # @see <%= api.documentation_link %>
<% end -%>
    module <%= api.module_name %>
      # Version of the <%= api.title %> this client connects to.
      # This is NOT the gem version.
      VERSION = '<%= api.version %>'
<% if api.auth && api.auth.oauth2 -%>
<%   for scope_string, scope in api.auth.oauth2.scopes -%>

      # <%= scope.description %>
      <%= scope.constant %> = '<%= scope_string %>'
<%   end -%>
<% end -%>
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
google-apis-generator-0.15.1 lib/google/apis/generator/templates/module.rb.tmpl
google-apis-generator-0.14.0 lib/google/apis/generator/templates/module.rb.tmpl
google-apis-generator-0.13.1 lib/google/apis/generator/templates/module.rb.tmpl
google-apis-generator-0.13.0 lib/google/apis/generator/templates/module.rb.tmpl
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/google-apis-generator-0.12.0/lib/google/apis/generator/templates/module.rb.tmpl
google-apis-generator-0.12.0 lib/google/apis/generator/templates/module.rb.tmpl
google-apis-generator-0.11.1 lib/google/apis/generator/templates/module.rb.tmpl
google-apis-generator-0.11.0 lib/google/apis/generator/templates/module.rb.tmpl
google-apis-generator-0.10.0 lib/google/apis/generator/templates/module.rb.tmpl
google-apis-generator-0.9.0 lib/google/apis/generator/templates/module.rb.tmpl
google-apis-generator-0.8.0 lib/google/apis/generator/templates/module.rb.tmpl
google-apis-generator-0.7.0 lib/google/apis/generator/templates/module.rb.tmpl
google-apis-generator-0.6.0 lib/google/apis/generator/templates/module.rb.tmpl
google-apis-generator-0.5.0 lib/google/apis/generator/templates/module.rb.tmpl
google-apis-generator-0.4.1 lib/google/apis/generator/templates/module.rb.tmpl
google-apis-generator-0.4.0 lib/google/apis/generator/templates/module.rb.tmpl
google-apis-generator-0.3.0 lib/google/apis/generator/templates/module.rb.tmpl
google-apis-generator-0.2.0 lib/google/apis/generator/templates/module.rb.tmpl