2020-12-31 22:55:59 +00:00
|
|
|
# Copyright 2020 Google LLC
|
2015-04-17 00:28:38 +00:00
|
|
|
#
|
|
|
|
# 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'
|
2020-12-31 22:55:59 +00:00
|
|
|
require '<%= to_path(api.qualified_name) %>/gem_version.rb'
|
2015-04-17 00:28:38 +00:00
|
|
|
|
|
|
|
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 %>
|
2020-12-31 22:55:59 +00:00
|
|
|
# Version of the <%= api.title %> this client connects to.
|
|
|
|
# This is NOT the gem version.
|
2015-04-17 00:28:38 +00:00
|
|
|
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
|