41 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Cheetah
		
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Cheetah
		
	
	
	
| # Copyright 2015 Google Inc.
 | |
| #
 | |
| # 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'
 | |
| 
 | |
| 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 = '<%= api.version %>'
 | |
|       REVISION = '<%= api.revision %>'
 | |
| <% 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
 |