You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 26, 2018. It is now read-only.
The module structure of NodeJS Gapic-files has been changed quite significantly, and currently index.js file is manually written.
This file can be generated automatically, packman should be responsible to generate that one automatically.
Here is a sample (for logging API):
/*! * Copyright 2016 Google Inc. All Rights Reserved. * * 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. */'use strict';varconfigServiceV2Api=require('./config_service_v2_api');varloggingServiceV2Api=require('./logging_service_v2_api');varmetricsServiceV2Api=require('./metrics_service_v2_api');varextend=require('extend');vargax=require('google-gax');varlodash=require('lodash');functionv2(options){options=extend({scopes: v2.ALL_SCOPES},options);vargaxGrpc=gax.grpc(options);varresult={};extend(result,configServiceV2Api(gaxGrpc));extend(result,loggingServiceV2Api(gaxGrpc));extend(result,metricsServiceV2Api(gaxGrpc));returnresult;}v2.SERVICE_ADDRESS=loggingServiceV2Api.SERVICE_ADDRESS;v2.ALL_SCOPES=lodash.union(configServiceV2Api.ALL_SCOPES,loggingServiceV2Api.ALL_SCOPES,metricsServiceV2Api.ALL_SCOPES);module.exports=v2;