This repository was archived by the owner on Nov 14, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // Copyright 2019 Google LLC
1+ // Copyright 2020 Google LLC
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414//
15- // ** This file is automatically generated by gapic-generator-typescript . **
16- // ** https://github.com/googleapis/gapic-generator-typescript **
15+ // ** This file is automatically generated by synthtool . **
16+ // ** https://github.com/googleapis/synthtool **
1717// ** All changes to this file may be overwritten. **
1818
1919import * as v1 from './v1' ;
2020import * as v1beta1 from './v1beta1' ;
21+
2122const AutoMlClient = v1 . AutoMlClient ;
2223const PredictionServiceClient = v1 . PredictionServiceClient ;
24+
2325export { v1 , v1beta1 , AutoMlClient , PredictionServiceClient } ;
24- // For compatibility with JavaScript libraries we need to provide this default export:
25- // tslint:disable-next-line no-default-export
2626export default { v1, v1beta1, AutoMlClient, PredictionServiceClient} ;
2727import * as protos from '../protos/protos' ;
2828export { protos } ;
Original file line number Diff line number Diff line change 2020 "client": {
2121 "source": "googleapis",
2222 "apiName": "automl",
23- "apiVersion": "v1beta1 ",
23+ "apiVersion": "v1 ",
2424 "language": "typescript",
2525 "generator": "gapic-generator-typescript"
2626 }
2929 "client": {
3030 "source": "googleapis",
3131 "apiName": "automl",
32- "apiVersion": "v1 ",
32+ "apiVersion": "v1beta1 ",
3333 "language": "typescript",
3434 "generator": "gapic-generator-typescript"
3535 }
Original file line number Diff line number Diff line change 2323
2424
2525gapic = gcp .GAPICMicrogenerator ()
26- versions = ['v1beta1 ' , 'v1 ' ]
26+ versions = ['v1 ' , 'v1beta1 ' ]
2727for version in versions :
2828 library = gapic .typescript_library (
2929 'automl' , version ,
3030 generator_args = {
3131 "grpc-service-config" : f"google/cloud/automl/{ version } /automl_grpc_service_config.json" ,
3232 "package-name" : "@google-cloud/automl" ,
3333 "main-service" : "automl"
34- },
34+ },
3535 proto_path = f'/google/cloud/automl/{ version } ' ,
3636 extra_proto_files = ['google/cloud/common_resources.proto' ],
3737 )
38- s .copy (library , excludes = ['src/index.ts' , ' README.md' , 'package.json' ])
38+ s .copy (library , excludes = ['README.md' , 'package.json' ])
3939
4040common_templates = gcp .CommonTemplates ()
41- templates = common_templates .node_library (source_location = 'build/src' )
41+ templates = common_templates .node_library (
42+ source_location = 'build/src' , versions = versions , default_version = 'v1' )
4243s .copy (templates )
4344
4445node .postprocess_gapic_library ()
You can’t perform that action at this time.
0 commit comments