diff --git a/README.md b/README.md index 97782baa..57f1f152 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +**_THIS REPOSITORY IS DEPRECATED. ALL OF ITS CONTENT AND HISTORY HAS BEEN MOVED TO [GOOGLE-CLOUD-NODE](https://github.com/googleapis/google-cloud-node/tree/main/packages/handwritten)_** + [//]: # "This README.md file is auto-generated, all changes to this file will be lost." [//]: # "To regenerate it, use `python -m synthtool`." Google Cloud Platform logo diff --git a/owlbot.py b/owlbot.py index 918849d1..49fce7a6 100644 --- a/owlbot.py +++ b/owlbot.py @@ -1,20 +1,17 @@ -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # -# Licensed under the Apache License, Version 2.0 (the "License"); +# 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 +# https://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. -"""This script is used to synthesize generated parts of this library.""" import synthtool.languages.node as node - -node.owlbot_main( - staging_excludes=['package.json', 'README.md', 'src/index.ts'], - templates_excludes=['src/index.ts','.OwlBot.yaml'] -) +node.owlbot_main(templates_excludes=[ +'README.md' +]) diff --git a/src/index.ts b/src/index.ts index 154ed4d9..fd4ad353 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,60 +12,50 @@ // See the License for the specific language governing permissions and // limitations under the License. // -// ** This file is automatically generated by gapic-generator-typescript. ** -// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** This file is automatically generated by synthtool. ** +// ** https://github.com/googleapis/synthtool ** // ** All changes to this file may be overwritten. ** +import * as adapt from './adapt'; +import * as managedwriter from './managedwriter'; +import * as protobuf from './protobuf'; +import * as reader from './reader'; +import * as util from './util'; import * as v1 from './v1'; -import * as v1beta1 from './v1beta1'; import * as v1alpha from './v1alpha'; import * as v1beta from './v1beta'; -import * as managedwriter from './managedwriter'; -import * as reader from './reader'; +import * as v1beta1 from './v1beta1'; + const BigQueryReadClient = v1.BigQueryReadClient; type BigQueryReadClient = v1.BigQueryReadClient; const BigQueryWriteClient = v1.BigQueryWriteClient; type BigQueryWriteClient = v1.BigQueryWriteClient; -const BigQueryStorageClient = v1beta1.BigQueryStorageClient; -type BigQueryStorageClient = v1beta1.BigQueryStorageClient; -const WriterClient = managedwriter.WriterClient; -type WriterClient = managedwriter.WriterClient; -const ReadClient = reader.ReadClient; -type ReadClient = reader.ReadClient; + export { + adapt, + managedwriter, + protobuf, + reader, + util, v1, - BigQueryReadClient, - v1beta1, v1alpha, v1beta, - BigQueryStorageClient, + v1beta1, + BigQueryReadClient, BigQueryWriteClient, - managedwriter, - WriterClient, - reader, - ReadClient, }; -// For compatibility with JavaScript libraries we need to provide this default export: -// tslint:disable-next-line no-default-export export default { + adapt, + managedwriter, + protobuf, + reader, + util, v1, + v1alpha, + v1beta, + v1beta1, BigQueryReadClient, BigQueryWriteClient, - managedwriter, - WriterClient, - reader, - ReadClient, }; import * as protos from '../protos/protos'; export {protos}; -import * as adapt from './adapt'; -export {adapt}; - -// Add extra protobufjs definitions. -// When importing protobufjs/ext/descriptor package, it monkey patches some methods -// that we use in this package. We need to manually declare some of those -// methods that we use to make the Typescript compiler happy. -// There are some open issues around that. After they are fixed, we can remove this: -// * https://github.com/protobufjs/protobuf.js/issues/1499 -// * https://github.com/protobufjs/protobuf.js/issues/1149 -import './protobuf';