diff --git a/src/apis/abusiveexperiencereport/README.md b/src/apis/abusiveexperiencereport/README.md index 8cca8210794..f4fb75ac6f1 100644 --- a/src/apis/abusiveexperiencereport/README.md +++ b/src/apis/abusiveexperiencereport/README.md @@ -11,17 +11,37 @@ $ npm install @google/abusiveexperiencereport ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/abusiveexperiencereport +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/abusiveexperiencereport.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/abusiveexperiencereport/index.ts b/src/apis/abusiveexperiencereport/index.ts index 9a89f4e5fa9..c28f3891702 100644 --- a/src/apis/abusiveexperiencereport/index.ts +++ b/src/apis/abusiveexperiencereport/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {abusiveexperiencereport_v1} from './v1'; export const VERSIONS = { @@ -31,3 +31,6 @@ abusiveexperiencereport( versionOrOptions: 'v1'|abusiveexperiencereport_v1.Options) { return getAPI('abusiveexperiencereport', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/abusiveexperiencereport/package.json b/src/apis/abusiveexperiencereport/package.json index 5c3a8b058c8..4dbcd2a7f52 100644 --- a/src/apis/abusiveexperiencereport/package.json +++ b/src/apis/abusiveexperiencereport/package.json @@ -4,16 +4,18 @@ "description": "abusiveexperiencereport", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/abusiveexperiencereport/v1.ts b/src/apis/abusiveexperiencereport/v1.ts index 1c7fbcd097b..b213b70f6ce 100644 --- a/src/apis/abusiveexperiencereport/v1.ts +++ b/src/apis/abusiveexperiencereport/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/abusiveexperiencereport/webpack.config.js b/src/apis/abusiveexperiencereport/webpack.config.js new file mode 100644 index 00000000000..69b85d471b5 --- /dev/null +++ b/src/apis/abusiveexperiencereport/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Abusiveexperiencereport', + filename: 'abusiveexperiencereport.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/acceleratedmobilepageurl/README.md b/src/apis/acceleratedmobilepageurl/README.md index 6c66004c03c..d23e039bd5e 100644 --- a/src/apis/acceleratedmobilepageurl/README.md +++ b/src/apis/acceleratedmobilepageurl/README.md @@ -11,17 +11,37 @@ $ npm install @google/acceleratedmobilepageurl ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/acceleratedmobilepageurl +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/acceleratedmobilepageurl.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/acceleratedmobilepageurl/index.ts b/src/apis/acceleratedmobilepageurl/index.ts index e4800382819..f8ecaee20e0 100644 --- a/src/apis/acceleratedmobilepageurl/index.ts +++ b/src/apis/acceleratedmobilepageurl/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {acceleratedmobilepageurl_v1} from './v1'; export const VERSIONS = { @@ -32,3 +32,6 @@ export function acceleratedmobilepageurl< return getAPI( 'acceleratedmobilepageurl', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/acceleratedmobilepageurl/package.json b/src/apis/acceleratedmobilepageurl/package.json index 3ad7ad7a13c..dde62073cc8 100644 --- a/src/apis/acceleratedmobilepageurl/package.json +++ b/src/apis/acceleratedmobilepageurl/package.json @@ -4,16 +4,18 @@ "description": "acceleratedmobilepageurl", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/acceleratedmobilepageurl/v1.ts b/src/apis/acceleratedmobilepageurl/v1.ts index d7417b85586..3adf9aabf58 100644 --- a/src/apis/acceleratedmobilepageurl/v1.ts +++ b/src/apis/acceleratedmobilepageurl/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/acceleratedmobilepageurl/webpack.config.js b/src/apis/acceleratedmobilepageurl/webpack.config.js new file mode 100644 index 00000000000..109e3ee42d1 --- /dev/null +++ b/src/apis/acceleratedmobilepageurl/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Acceleratedmobilepageurl', + filename: 'acceleratedmobilepageurl.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/accesscontextmanager/README.md b/src/apis/accesscontextmanager/README.md index 2513c761353..b2f90ab981e 100644 --- a/src/apis/accesscontextmanager/README.md +++ b/src/apis/accesscontextmanager/README.md @@ -11,17 +11,37 @@ $ npm install @google/accesscontextmanager ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/accesscontextmanager +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/accesscontextmanager.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/accesscontextmanager/index.ts b/src/apis/accesscontextmanager/index.ts index e92d3b3fdd1..4c0222fccf9 100644 --- a/src/apis/accesscontextmanager/index.ts +++ b/src/apis/accesscontextmanager/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {accesscontextmanager_v1beta} from './v1beta'; export const VERSIONS = { @@ -31,3 +31,6 @@ accesscontextmanager( versionOrOptions: 'v1beta'|accesscontextmanager_v1beta.Options) { return getAPI('accesscontextmanager', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/accesscontextmanager/package.json b/src/apis/accesscontextmanager/package.json index 4f4b17ba38d..2fb87268d02 100644 --- a/src/apis/accesscontextmanager/package.json +++ b/src/apis/accesscontextmanager/package.json @@ -4,16 +4,18 @@ "description": "accesscontextmanager", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/accesscontextmanager/v1beta.ts b/src/apis/accesscontextmanager/v1beta.ts index 9a22bd90957..8809af58899 100644 --- a/src/apis/accesscontextmanager/v1beta.ts +++ b/src/apis/accesscontextmanager/v1beta.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/accesscontextmanager/webpack.config.js b/src/apis/accesscontextmanager/webpack.config.js new file mode 100644 index 00000000000..ab891bcfa05 --- /dev/null +++ b/src/apis/accesscontextmanager/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Accesscontextmanager', + filename: 'accesscontextmanager.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/adexchangebuyer/README.md b/src/apis/adexchangebuyer/README.md index afa0d18695c..705514c43b8 100644 --- a/src/apis/adexchangebuyer/README.md +++ b/src/apis/adexchangebuyer/README.md @@ -11,17 +11,37 @@ $ npm install @google/adexchangebuyer ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/adexchangebuyer +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/adexchangebuyer.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/adexchangebuyer/index.ts b/src/apis/adexchangebuyer/index.ts index 38e7e8fa7f5..48c862a6b4a 100644 --- a/src/apis/adexchangebuyer/index.ts +++ b/src/apis/adexchangebuyer/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {adexchangebuyer_v1_2} from './v1.2'; import {adexchangebuyer_v1_3} from './v1.3'; import {adexchangebuyer_v1_4} from './v1.4'; @@ -46,3 +46,6 @@ export function adexchangebuyer< adexchangebuyer_v1_3.Options|'v1_4'|adexchangebuyer_v1_4.Options) { return getAPI('adexchangebuyer', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/adexchangebuyer/package.json b/src/apis/adexchangebuyer/package.json index 091c21b369e..d0f47a39ba6 100644 --- a/src/apis/adexchangebuyer/package.json +++ b/src/apis/adexchangebuyer/package.json @@ -4,16 +4,18 @@ "description": "adexchangebuyer", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/adexchangebuyer/v1.2.ts b/src/apis/adexchangebuyer/v1.2.ts index 8a302688ea1..cc107185b2c 100644 --- a/src/apis/adexchangebuyer/v1.2.ts +++ b/src/apis/adexchangebuyer/v1.2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/adexchangebuyer/v1.3.ts b/src/apis/adexchangebuyer/v1.3.ts index 5839e8e0eae..79ef7ee5e00 100644 --- a/src/apis/adexchangebuyer/v1.3.ts +++ b/src/apis/adexchangebuyer/v1.3.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/adexchangebuyer/v1.4.ts b/src/apis/adexchangebuyer/v1.4.ts index d9b6aef33d6..7d5c4f234c2 100644 --- a/src/apis/adexchangebuyer/v1.4.ts +++ b/src/apis/adexchangebuyer/v1.4.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/adexchangebuyer/webpack.config.js b/src/apis/adexchangebuyer/webpack.config.js new file mode 100644 index 00000000000..e41f26851cb --- /dev/null +++ b/src/apis/adexchangebuyer/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Adexchangebuyer', + filename: 'adexchangebuyer.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/adexchangebuyer2/README.md b/src/apis/adexchangebuyer2/README.md index be5b6791b9b..587d547fa4e 100644 --- a/src/apis/adexchangebuyer2/README.md +++ b/src/apis/adexchangebuyer2/README.md @@ -11,17 +11,37 @@ $ npm install @google/adexchangebuyer2 ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/adexchangebuyer2 +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/adexchangebuyer2.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/adexchangebuyer2/index.ts b/src/apis/adexchangebuyer2/index.ts index 849d287570b..edce0495948 100644 --- a/src/apis/adexchangebuyer2/index.ts +++ b/src/apis/adexchangebuyer2/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {adexchangebuyer2_v2beta1} from './v2beta1'; export const VERSIONS = { @@ -29,3 +29,6 @@ export function adexchangebuyer2( versionOrOptions: 'v2beta1'|adexchangebuyer2_v2beta1.Options) { return getAPI('adexchangebuyer2', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/adexchangebuyer2/package.json b/src/apis/adexchangebuyer2/package.json index bac324897a8..465fcde019c 100644 --- a/src/apis/adexchangebuyer2/package.json +++ b/src/apis/adexchangebuyer2/package.json @@ -4,16 +4,18 @@ "description": "adexchangebuyer2", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/adexchangebuyer2/v2beta1.ts b/src/apis/adexchangebuyer2/v2beta1.ts index 75ee0d63f4e..a0b0d3c5706 100644 --- a/src/apis/adexchangebuyer2/v2beta1.ts +++ b/src/apis/adexchangebuyer2/v2beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/adexchangebuyer2/webpack.config.js b/src/apis/adexchangebuyer2/webpack.config.js new file mode 100644 index 00000000000..2f4514e1e91 --- /dev/null +++ b/src/apis/adexchangebuyer2/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Adexchangebuyer2', + filename: 'adexchangebuyer2.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/adexperiencereport/README.md b/src/apis/adexperiencereport/README.md index a0aa7db40d5..d074bd2346e 100644 --- a/src/apis/adexperiencereport/README.md +++ b/src/apis/adexperiencereport/README.md @@ -11,17 +11,37 @@ $ npm install @google/adexperiencereport ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/adexperiencereport +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/adexperiencereport.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/adexperiencereport/index.ts b/src/apis/adexperiencereport/index.ts index 402782a4606..56d0fad182d 100644 --- a/src/apis/adexperiencereport/index.ts +++ b/src/apis/adexperiencereport/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {adexperiencereport_v1} from './v1'; export const VERSIONS = { @@ -30,3 +30,6 @@ adexperiencereport( versionOrOptions: 'v1'|adexperiencereport_v1.Options) { return getAPI('adexperiencereport', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/adexperiencereport/package.json b/src/apis/adexperiencereport/package.json index e7fa560533f..12892bf2f7e 100644 --- a/src/apis/adexperiencereport/package.json +++ b/src/apis/adexperiencereport/package.json @@ -4,16 +4,18 @@ "description": "adexperiencereport", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/adexperiencereport/v1.ts b/src/apis/adexperiencereport/v1.ts index 69022e297c6..0decbca7dee 100644 --- a/src/apis/adexperiencereport/v1.ts +++ b/src/apis/adexperiencereport/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/adexperiencereport/webpack.config.js b/src/apis/adexperiencereport/webpack.config.js new file mode 100644 index 00000000000..e1601945c1e --- /dev/null +++ b/src/apis/adexperiencereport/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Adexperiencereport', + filename: 'adexperiencereport.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/admin/README.md b/src/apis/admin/README.md index eaa2bb1cd86..9605b995478 100644 --- a/src/apis/admin/README.md +++ b/src/apis/admin/README.md @@ -11,17 +11,37 @@ $ npm install @google/admin ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/admin +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/admin.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/admin/datatransfer_v1.ts b/src/apis/admin/datatransfer_v1.ts index 8c116a6d632..4d1df3f1be9 100644 --- a/src/apis/admin/datatransfer_v1.ts +++ b/src/apis/admin/datatransfer_v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/admin/directory_v1.ts b/src/apis/admin/directory_v1.ts index 29dc0e1d5ab..632f71c807c 100644 --- a/src/apis/admin/directory_v1.ts +++ b/src/apis/admin/directory_v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/admin/index.ts b/src/apis/admin/index.ts index e108ee2ef94..b1a44ecc400 100644 --- a/src/apis/admin/index.ts +++ b/src/apis/admin/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {admin_datatransfer_v1} from './datatransfer_v1'; import {admin_directory_v1} from './directory_v1'; import {admin_reports_v1} from './reports_v1'; @@ -42,3 +42,6 @@ export function admin< admin_directory_v1.Options|'reports_v1'|admin_reports_v1.Options) { return getAPI('admin', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/admin/package.json b/src/apis/admin/package.json index 6661a359f0c..51d061c29ec 100644 --- a/src/apis/admin/package.json +++ b/src/apis/admin/package.json @@ -4,16 +4,18 @@ "description": "admin", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/admin/reports_v1.ts b/src/apis/admin/reports_v1.ts index 59e7bc2f864..be3f74f1de6 100644 --- a/src/apis/admin/reports_v1.ts +++ b/src/apis/admin/reports_v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/admin/webpack.config.js b/src/apis/admin/webpack.config.js new file mode 100644 index 00000000000..d46c98da5cf --- /dev/null +++ b/src/apis/admin/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Admin', + filename: 'admin.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/adsense/README.md b/src/apis/adsense/README.md index 906a428bde4..bfcbb054c8a 100644 --- a/src/apis/adsense/README.md +++ b/src/apis/adsense/README.md @@ -11,17 +11,37 @@ $ npm install @google/adsense ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/adsense +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/adsense.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/adsense/index.ts b/src/apis/adsense/index.ts index 2ab820be0ef..c32d1c61c1e 100644 --- a/src/apis/adsense/index.ts +++ b/src/apis/adsense/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {adsense_v1_4} from './v1.4'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function adsense( this: GoogleConfigurable, versionOrOptions: 'v1_4'|adsense_v1_4.Options) { return getAPI('adsense', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/adsense/package.json b/src/apis/adsense/package.json index 4b3fccce5a3..2ea12a995a5 100644 --- a/src/apis/adsense/package.json +++ b/src/apis/adsense/package.json @@ -4,16 +4,18 @@ "description": "adsense", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/adsense/v1.4.ts b/src/apis/adsense/v1.4.ts index b2f65d625f3..546addb8077 100644 --- a/src/apis/adsense/v1.4.ts +++ b/src/apis/adsense/v1.4.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/adsense/webpack.config.js b/src/apis/adsense/webpack.config.js new file mode 100644 index 00000000000..05df66538cc --- /dev/null +++ b/src/apis/adsense/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Adsense', + filename: 'adsense.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/adsensehost/README.md b/src/apis/adsensehost/README.md index b167b5e470e..df6cb07147b 100644 --- a/src/apis/adsensehost/README.md +++ b/src/apis/adsensehost/README.md @@ -11,17 +11,37 @@ $ npm install @google/adsensehost ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/adsensehost +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/adsensehost.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/adsensehost/index.ts b/src/apis/adsensehost/index.ts index a5c4f671ce7..b095cc4ef58 100644 --- a/src/apis/adsensehost/index.ts +++ b/src/apis/adsensehost/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {adsensehost_v4_1} from './v4.1'; export const VERSIONS = { @@ -28,3 +28,6 @@ export function adsensehost( versionOrOptions: 'v4_1'|adsensehost_v4_1.Options) { return getAPI('adsensehost', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/adsensehost/package.json b/src/apis/adsensehost/package.json index f1048915630..b4263ebc92c 100644 --- a/src/apis/adsensehost/package.json +++ b/src/apis/adsensehost/package.json @@ -4,16 +4,18 @@ "description": "adsensehost", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/adsensehost/v4.1.ts b/src/apis/adsensehost/v4.1.ts index d9fed3632f9..5bdf426b084 100644 --- a/src/apis/adsensehost/v4.1.ts +++ b/src/apis/adsensehost/v4.1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/adsensehost/webpack.config.js b/src/apis/adsensehost/webpack.config.js new file mode 100644 index 00000000000..0ed8baf8f0d --- /dev/null +++ b/src/apis/adsensehost/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Adsensehost', + filename: 'adsensehost.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/alertcenter/README.md b/src/apis/alertcenter/README.md index 609f9855785..8ab7d9a89f6 100644 --- a/src/apis/alertcenter/README.md +++ b/src/apis/alertcenter/README.md @@ -11,17 +11,37 @@ $ npm install @google/alertcenter ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/alertcenter +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/alertcenter.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/alertcenter/index.ts b/src/apis/alertcenter/index.ts index a9ca82b1987..427f13bd985 100644 --- a/src/apis/alertcenter/index.ts +++ b/src/apis/alertcenter/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {alertcenter_v1beta1} from './v1beta1'; export const VERSIONS = { @@ -29,3 +29,6 @@ export function alertcenter( versionOrOptions: 'v1beta1'|alertcenter_v1beta1.Options) { return getAPI('alertcenter', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/alertcenter/package.json b/src/apis/alertcenter/package.json index 8480ea4042d..6e7113e3624 100644 --- a/src/apis/alertcenter/package.json +++ b/src/apis/alertcenter/package.json @@ -4,16 +4,18 @@ "description": "alertcenter", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/alertcenter/v1beta1.ts b/src/apis/alertcenter/v1beta1.ts index baa1be3943a..1a250a5a761 100644 --- a/src/apis/alertcenter/v1beta1.ts +++ b/src/apis/alertcenter/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -120,7 +120,8 @@ export namespace alertcenter_v1beta1 { /** * Optional. Details of the login action associated with the warning event. * This is only available for: * Suspicious login * Suspicious login (less - * secure app) * User suspended (suspicious activity) + * secure app) * Suspicious programmatic login * User suspended (suspicious + * activity) */ loginDetails?: Schema$LoginDetails; } diff --git a/src/apis/alertcenter/webpack.config.js b/src/apis/alertcenter/webpack.config.js new file mode 100644 index 00000000000..962cc526821 --- /dev/null +++ b/src/apis/alertcenter/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Alertcenter', + filename: 'alertcenter.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/analytics/README.md b/src/apis/analytics/README.md index 4884bf8f0e6..9c79515d28f 100644 --- a/src/apis/analytics/README.md +++ b/src/apis/analytics/README.md @@ -11,17 +11,37 @@ $ npm install @google/analytics ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/analytics +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/analytics.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/analytics/index.ts b/src/apis/analytics/index.ts index 14ba91cda77..67bdbb5eaca 100644 --- a/src/apis/analytics/index.ts +++ b/src/apis/analytics/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {analytics_v2_4} from './v2.4'; import {analytics_v3} from './v3'; @@ -34,3 +34,6 @@ analytics( versionOrOptions: 'v2_4'|analytics_v2_4.Options|'v3'|analytics_v3.Options) { return getAPI('analytics', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/analytics/package.json b/src/apis/analytics/package.json index 252f5bec217..e29114f424d 100644 --- a/src/apis/analytics/package.json +++ b/src/apis/analytics/package.json @@ -4,16 +4,18 @@ "description": "analytics", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/analytics/v2.4.ts b/src/apis/analytics/v2.4.ts index 506a1e9ef31..f42c9e3e3ec 100644 --- a/src/apis/analytics/v2.4.ts +++ b/src/apis/analytics/v2.4.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/analytics/v3.ts b/src/apis/analytics/v3.ts index 562b06720da..d34ddb27934 100644 --- a/src/apis/analytics/v3.ts +++ b/src/apis/analytics/v3.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -316,12 +316,6 @@ export namespace analytics_v3 { */ export interface Schema$AccountTreeRequest { accountName?: string; - accountSettings?: { - shareAnonymouslyWithOthers?: boolean; - shareWithGoogleProducts?: boolean; - shareWithSpecialists?: boolean; - shareWithSupport?: boolean; - }; /** * Resource type for account ticket. */ @@ -341,12 +335,6 @@ export namespace analytics_v3 { * The account created. */ account?: Schema$Account; - accountSettings?: { - shareAnonymouslyWithOthers?: boolean; - shareWithGoogleProducts?: boolean; - shareWithSpecialists?: boolean; - shareWithSupport?: boolean; - }; /** * Resource type for account ticket. */ @@ -361,20 +349,20 @@ export namespace analytics_v3 { webproperty?: Schema$Webproperty; } /** - * JSON template for an AdWords account. + * JSON template for an Google Ads account. */ export interface Schema$AdWordsAccount { /** - * True if auto-tagging is enabled on the AdWords account. Read-only after - * the insert operation. + * True if auto-tagging is enabled on the Google Ads account. Read-only + * after the insert operation. */ autoTaggingEnabled?: boolean; /** - * Customer ID. This field is required when creating an AdWords link. + * Customer ID. This field is required when creating a Google Ads link. */ customerId?: string; /** - * Resource type for AdWords account. + * Resource type for Google Ads account. */ kind?: string; } @@ -750,12 +738,12 @@ export namespace analytics_v3 { username?: string; } /** - * JSON template for Analytics Entity AdWords Link. + * JSON template for Analytics Entity Google Ads Link. */ export interface Schema$EntityAdWordsLink { /** - * A list of AdWords client accounts. These cannot be MCC accounts. This - * field is required when creating an AdWords link. It cannot be empty. + * A list of Google Ads client accounts. These cannot be MCC accounts. This + * field is required when creating a Google Ads link. It cannot be empty. */ adWordsAccounts?: Schema$AdWordsAccount[]; /** @@ -763,15 +751,15 @@ export namespace analytics_v3 { */ entity?: {webPropertyRef?: Schema$WebPropertyRef;}; /** - * Entity AdWords link ID + * Entity Google Ads link ID */ id?: string; /** - * Resource type for entity AdWords link. + * Resource type for entity Google Ads link. */ kind?: string; /** - * Name of the link. This field is required when creating an AdWords link. + * Name of the link. This field is required when creating a Google Ads link. */ name?: string; /** @@ -779,17 +767,17 @@ export namespace analytics_v3 { */ profileIds?: string[]; /** - * URL link for this Google Analytics - Google AdWords link. + * URL link for this Google Analytics - Google Ads link. */ selfLink?: string; } /** - * An entity AdWords link collection provides a list of GA-AdWords links Each - * resource in this collection corresponds to a single link. + * An entity Google Ads link collection provides a list of GA-Google Ads links + * Each resource in this collection corresponds to a single link. */ export interface Schema$EntityAdWordsLinks { /** - * A list of entity AdWords links. + * A list of entity Google Ads links. */ items?: Schema$EntityAdWordsLink[]; /** @@ -804,11 +792,11 @@ export namespace analytics_v3 { */ kind?: string; /** - * Next link for this AdWords link collection. + * Next link for this Google Ads link collection. */ nextLink?: string; /** - * Previous link for this AdWords link collection. + * Previous link for this Google Ads link collection. */ previousLink?: string; /** @@ -1654,8 +1642,8 @@ export namespace analytics_v3 { */ kind?: string; /** - * The foreign account ID. For example the an AdWords `linkedAccountId` has - * the following format XXX-XXX-XXXX. + * The foreign account ID. For example the an Google Ads `linkedAccountId` + * has the following format XXX-XXX-XXXX. */ linkedAccountId?: string; /** @@ -10093,14 +10081,14 @@ export namespace analytics_v3 { /** * analytics.management.webPropertyAdWordsLinks.delete - * @desc Deletes a web property-AdWords link. + * @desc Deletes a web property-Google Ads link. * @alias analytics.management.webPropertyAdWordsLinks.delete * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.accountId ID of the account which the given web property belongs to. - * @param {string} params.webPropertyAdWordsLinkId Web property AdWords link ID. - * @param {string} params.webPropertyId Web property ID to delete the AdWords link for. + * @param {string} params.webPropertyAdWordsLinkId Web property Google Ads link ID. + * @param {string} params.webPropertyId Web property ID to delete the Google Ads link for. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object @@ -10165,14 +10153,15 @@ export namespace analytics_v3 { /** * analytics.management.webPropertyAdWordsLinks.get - * @desc Returns a web property-AdWords link to which the user has access. + * @desc Returns a web property-Google Ads link to which the user has + * access. * @alias analytics.management.webPropertyAdWordsLinks.get * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.accountId ID of the account which the given web property belongs to. - * @param {string} params.webPropertyAdWordsLinkId Web property-AdWords link ID. - * @param {string} params.webPropertyId Web property ID to retrieve the AdWords link for. + * @param {string} params.webPropertyAdWordsLinkId Web property-Google Ads link ID. + * @param {string} params.webPropertyId Web property ID to retrieve the Google Ads link for. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object @@ -10234,7 +10223,7 @@ export namespace analytics_v3 { /** * analytics.management.webPropertyAdWordsLinks.insert - * @desc Creates a webProperty-AdWords link. + * @desc Creates a webProperty-Google Ads link. * @alias analytics.management.webPropertyAdWordsLinks.insert * @memberOf! () * @@ -10307,15 +10296,15 @@ export namespace analytics_v3 { /** * analytics.management.webPropertyAdWordsLinks.list - * @desc Lists webProperty-AdWords links for a given web property. + * @desc Lists webProperty-Google Ads links for a given web property. * @alias analytics.management.webPropertyAdWordsLinks.list * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.accountId ID of the account which the given web property belongs to. - * @param {integer=} params.max-results The maximum number of webProperty-AdWords links to include in this response. - * @param {integer=} params.start-index An index of the first webProperty-AdWords link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. - * @param {string} params.webPropertyId Web property ID to retrieve the AdWords links for. + * @param {integer=} params.max-results The maximum number of webProperty-Google Ads links to include in this response. + * @param {integer=} params.start-index An index of the first webProperty-Google Ads link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. + * @param {string} params.webPropertyId Web property ID to retrieve the Google Ads links for. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object @@ -10380,15 +10369,15 @@ export namespace analytics_v3 { /** * analytics.management.webPropertyAdWordsLinks.patch - * @desc Updates an existing webProperty-AdWords link. This method supports - * patch semantics. + * @desc Updates an existing webProperty-Google Ads link. This method + * supports patch semantics. * @alias analytics.management.webPropertyAdWordsLinks.patch * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.accountId ID of the account which the given web property belongs to. - * @param {string} params.webPropertyAdWordsLinkId Web property-AdWords link ID. - * @param {string} params.webPropertyId Web property ID to retrieve the AdWords link for. + * @param {string} params.webPropertyAdWordsLinkId Web property-Google Ads link ID. + * @param {string} params.webPropertyId Web property ID to retrieve the Google Ads link for. * @param {().EntityAdWordsLink} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -10455,14 +10444,14 @@ export namespace analytics_v3 { /** * analytics.management.webPropertyAdWordsLinks.update - * @desc Updates an existing webProperty-AdWords link. + * @desc Updates an existing webProperty-Google Ads link. * @alias analytics.management.webPropertyAdWordsLinks.update * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.accountId ID of the account which the given web property belongs to. - * @param {string} params.webPropertyAdWordsLinkId Web property-AdWords link ID. - * @param {string} params.webPropertyId Web property ID to retrieve the AdWords link for. + * @param {string} params.webPropertyAdWordsLinkId Web property-Google Ads link ID. + * @param {string} params.webPropertyId Web property ID to retrieve the Google Ads link for. * @param {().EntityAdWordsLink} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -10540,11 +10529,11 @@ export namespace analytics_v3 { */ accountId?: string; /** - * Web property AdWords link ID. + * Web property Google Ads link ID. */ webPropertyAdWordsLinkId?: string; /** - * Web property ID to delete the AdWords link for. + * Web property ID to delete the Google Ads link for. */ webPropertyId?: string; } @@ -10560,11 +10549,11 @@ export namespace analytics_v3 { */ accountId?: string; /** - * Web property-AdWords link ID. + * Web property-Google Ads link ID. */ webPropertyAdWordsLinkId?: string; /** - * Web property ID to retrieve the AdWords link for. + * Web property ID to retrieve the Google Ads link for. */ webPropertyId?: string; } @@ -10601,17 +10590,17 @@ export namespace analytics_v3 { */ accountId?: string; /** - * The maximum number of webProperty-AdWords links to include in this + * The maximum number of webProperty-Google Ads links to include in this * response. */ 'max-results'?: number; /** - * An index of the first webProperty-AdWords link to retrieve. Use this + * An index of the first webProperty-Google Ads link to retrieve. Use this * parameter as a pagination mechanism along with the max-results parameter. */ 'start-index'?: number; /** - * Web property ID to retrieve the AdWords links for. + * Web property ID to retrieve the Google Ads links for. */ webPropertyId?: string; } @@ -10627,11 +10616,11 @@ export namespace analytics_v3 { */ accountId?: string; /** - * Web property-AdWords link ID. + * Web property-Google Ads link ID. */ webPropertyAdWordsLinkId?: string; /** - * Web property ID to retrieve the AdWords link for. + * Web property ID to retrieve the Google Ads link for. */ webPropertyId?: string; @@ -10652,11 +10641,11 @@ export namespace analytics_v3 { */ accountId?: string; /** - * Web property-AdWords link ID. + * Web property-Google Ads link ID. */ webPropertyAdWordsLinkId?: string; /** - * Web property ID to retrieve the AdWords link for. + * Web property ID to retrieve the Google Ads link for. */ webPropertyId?: string; diff --git a/src/apis/analytics/webpack.config.js b/src/apis/analytics/webpack.config.js new file mode 100644 index 00000000000..300936d4502 --- /dev/null +++ b/src/apis/analytics/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Analytics', + filename: 'analytics.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/analyticsreporting/README.md b/src/apis/analyticsreporting/README.md index 9fe202bc939..a70a65bb4ce 100644 --- a/src/apis/analyticsreporting/README.md +++ b/src/apis/analyticsreporting/README.md @@ -11,17 +11,37 @@ $ npm install @google/analyticsreporting ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/analyticsreporting +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/analyticsreporting.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/analyticsreporting/index.ts b/src/apis/analyticsreporting/index.ts index 6fbd457eb44..aa640ce1542 100644 --- a/src/apis/analyticsreporting/index.ts +++ b/src/apis/analyticsreporting/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {analyticsreporting_v4} from './v4'; export const VERSIONS = { @@ -30,3 +30,6 @@ analyticsreporting( versionOrOptions: 'v4'|analyticsreporting_v4.Options) { return getAPI('analyticsreporting', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/analyticsreporting/package.json b/src/apis/analyticsreporting/package.json index 35911a20730..58ad53ae039 100644 --- a/src/apis/analyticsreporting/package.json +++ b/src/apis/analyticsreporting/package.json @@ -4,16 +4,18 @@ "description": "analyticsreporting", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/analyticsreporting/v4.ts b/src/apis/analyticsreporting/v4.ts index f5ae2b40380..83f23416d06 100644 --- a/src/apis/analyticsreporting/v4.ts +++ b/src/apis/analyticsreporting/v4.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/analyticsreporting/webpack.config.js b/src/apis/analyticsreporting/webpack.config.js new file mode 100644 index 00000000000..e226b361955 --- /dev/null +++ b/src/apis/analyticsreporting/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Analyticsreporting', + filename: 'analyticsreporting.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/androiddeviceprovisioning/README.md b/src/apis/androiddeviceprovisioning/README.md index c93fd0a425e..ba424dc206e 100644 --- a/src/apis/androiddeviceprovisioning/README.md +++ b/src/apis/androiddeviceprovisioning/README.md @@ -11,17 +11,37 @@ $ npm install @google/androiddeviceprovisioning ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/androiddeviceprovisioning +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/androiddeviceprovisioning.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/androiddeviceprovisioning/index.ts b/src/apis/androiddeviceprovisioning/index.ts index 3f1d1233dd2..9d6862c2de6 100644 --- a/src/apis/androiddeviceprovisioning/index.ts +++ b/src/apis/androiddeviceprovisioning/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {androiddeviceprovisioning_v1} from './v1'; export const VERSIONS = { @@ -32,3 +32,6 @@ export function androiddeviceprovisioning< return getAPI( 'androiddeviceprovisioning', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/androiddeviceprovisioning/package.json b/src/apis/androiddeviceprovisioning/package.json index 8d834652fe0..8371bbce66e 100644 --- a/src/apis/androiddeviceprovisioning/package.json +++ b/src/apis/androiddeviceprovisioning/package.json @@ -4,16 +4,18 @@ "description": "androiddeviceprovisioning", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/androiddeviceprovisioning/v1.ts b/src/apis/androiddeviceprovisioning/v1.ts index 242c3cc4beb..3db50a2ef48 100644 --- a/src/apis/androiddeviceprovisioning/v1.ts +++ b/src/apis/androiddeviceprovisioning/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/androiddeviceprovisioning/webpack.config.js b/src/apis/androiddeviceprovisioning/webpack.config.js new file mode 100644 index 00000000000..54999d406a1 --- /dev/null +++ b/src/apis/androiddeviceprovisioning/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Androiddeviceprovisioning', + filename: 'androiddeviceprovisioning.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/androidenterprise/README.md b/src/apis/androidenterprise/README.md index b92e6e62718..85c7b93c3ec 100644 --- a/src/apis/androidenterprise/README.md +++ b/src/apis/androidenterprise/README.md @@ -11,17 +11,37 @@ $ npm install @google/androidenterprise ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/androidenterprise +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/androidenterprise.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/androidenterprise/index.ts b/src/apis/androidenterprise/index.ts index 889b585b4d8..f7bf80a9f09 100644 --- a/src/apis/androidenterprise/index.ts +++ b/src/apis/androidenterprise/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {androidenterprise_v1} from './v1'; export const VERSIONS = { @@ -29,3 +29,6 @@ export function androidenterprise( versionOrOptions: 'v1'|androidenterprise_v1.Options) { return getAPI('androidenterprise', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/androidenterprise/package.json b/src/apis/androidenterprise/package.json index 95b498f42f2..45733102506 100644 --- a/src/apis/androidenterprise/package.json +++ b/src/apis/androidenterprise/package.json @@ -4,16 +4,18 @@ "description": "androidenterprise", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/androidenterprise/v1.ts b/src/apis/androidenterprise/v1.ts index e8b8010fe5d..54f2d1c660c 100644 --- a/src/apis/androidenterprise/v1.ts +++ b/src/apis/androidenterprise/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/androidenterprise/webpack.config.js b/src/apis/androidenterprise/webpack.config.js new file mode 100644 index 00000000000..047d52a45a4 --- /dev/null +++ b/src/apis/androidenterprise/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Androidenterprise', + filename: 'androidenterprise.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/androidmanagement/README.md b/src/apis/androidmanagement/README.md index 366f1b264e6..de80d0da023 100644 --- a/src/apis/androidmanagement/README.md +++ b/src/apis/androidmanagement/README.md @@ -11,17 +11,37 @@ $ npm install @google/androidmanagement ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/androidmanagement +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/androidmanagement.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/androidmanagement/index.ts b/src/apis/androidmanagement/index.ts index 47c3cd07732..af2eb2631d6 100644 --- a/src/apis/androidmanagement/index.ts +++ b/src/apis/androidmanagement/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {androidmanagement_v1} from './v1'; export const VERSIONS = { @@ -29,3 +29,6 @@ export function androidmanagement( versionOrOptions: 'v1'|androidmanagement_v1.Options) { return getAPI('androidmanagement', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/androidmanagement/package.json b/src/apis/androidmanagement/package.json index 765f85249a3..d344230b5de 100644 --- a/src/apis/androidmanagement/package.json +++ b/src/apis/androidmanagement/package.json @@ -4,16 +4,18 @@ "description": "androidmanagement", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/androidmanagement/v1.ts b/src/apis/androidmanagement/v1.ts index e914e2907de..39fbaa47645 100644 --- a/src/apis/androidmanagement/v1.ts +++ b/src/apis/androidmanagement/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/androidmanagement/webpack.config.js b/src/apis/androidmanagement/webpack.config.js new file mode 100644 index 00000000000..3b30800504c --- /dev/null +++ b/src/apis/androidmanagement/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Androidmanagement', + filename: 'androidmanagement.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/androidpublisher/README.md b/src/apis/androidpublisher/README.md index 2883aee3e7a..9c0d8fdb826 100644 --- a/src/apis/androidpublisher/README.md +++ b/src/apis/androidpublisher/README.md @@ -11,17 +11,37 @@ $ npm install @google/androidpublisher ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/androidpublisher +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/androidpublisher.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/androidpublisher/index.ts b/src/apis/androidpublisher/index.ts index 2e0e0e9eab3..71ad4e97fce 100644 --- a/src/apis/androidpublisher/index.ts +++ b/src/apis/androidpublisher/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {androidpublisher_v1} from './v1'; import {androidpublisher_v1_1} from './v1.1'; @@ -55,3 +55,6 @@ export function androidpublisher< androidpublisher_v2.Options|'v3'|androidpublisher_v3.Options) { return getAPI('androidpublisher', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/androidpublisher/package.json b/src/apis/androidpublisher/package.json index 2eb952a3b8c..90b4d0b7a92 100644 --- a/src/apis/androidpublisher/package.json +++ b/src/apis/androidpublisher/package.json @@ -4,16 +4,18 @@ "description": "androidpublisher", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/androidpublisher/v1.1.ts b/src/apis/androidpublisher/v1.1.ts index bceedddd326..b5ec31416a2 100644 --- a/src/apis/androidpublisher/v1.1.ts +++ b/src/apis/androidpublisher/v1.1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/androidpublisher/v1.ts b/src/apis/androidpublisher/v1.ts index 5ac2810db01..37ee1c6dd3c 100644 --- a/src/apis/androidpublisher/v1.ts +++ b/src/apis/androidpublisher/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/androidpublisher/v2.ts b/src/apis/androidpublisher/v2.ts index 351bbaac2cc..71da36b93dd 100644 --- a/src/apis/androidpublisher/v2.ts +++ b/src/apis/androidpublisher/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/androidpublisher/v3.ts b/src/apis/androidpublisher/v3.ts index 53b3e09bb12..d41d53c9578 100644 --- a/src/apis/androidpublisher/v3.ts +++ b/src/apis/androidpublisher/v3.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/androidpublisher/webpack.config.js b/src/apis/androidpublisher/webpack.config.js new file mode 100644 index 00000000000..20088b2d4f6 --- /dev/null +++ b/src/apis/androidpublisher/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Androidpublisher', + filename: 'androidpublisher.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/appengine/README.md b/src/apis/appengine/README.md index a579d1e1249..772e51235d6 100644 --- a/src/apis/appengine/README.md +++ b/src/apis/appengine/README.md @@ -11,17 +11,37 @@ $ npm install @google/appengine ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/appengine +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/appengine.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/appengine/index.ts b/src/apis/appengine/index.ts index bab30bc884a..ed8aa97b3fa 100644 --- a/src/apis/appengine/index.ts +++ b/src/apis/appengine/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {appengine_v1} from './v1'; import {appengine_v1alpha} from './v1alpha'; import {appengine_v1beta} from './v1beta'; @@ -54,3 +54,6 @@ export function appengine< appengine_v1beta4.Options|'v1beta5'|appengine_v1beta5.Options) { return getAPI('appengine', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/appengine/package.json b/src/apis/appengine/package.json index 5b7f6f509ea..44cc12c47fd 100644 --- a/src/apis/appengine/package.json +++ b/src/apis/appengine/package.json @@ -4,16 +4,18 @@ "description": "appengine", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/appengine/v1.ts b/src/apis/appengine/v1.ts index 19fe9f89b43..62ce4c47d6c 100644 --- a/src/apis/appengine/v1.ts +++ b/src/apis/appengine/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/appengine/v1alpha.ts b/src/apis/appengine/v1alpha.ts index 567e3162808..16de3f16437 100644 --- a/src/apis/appengine/v1alpha.ts +++ b/src/apis/appengine/v1alpha.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/appengine/v1beta.ts b/src/apis/appengine/v1beta.ts index b9dfc5419d4..d5e53bd7d89 100644 --- a/src/apis/appengine/v1beta.ts +++ b/src/apis/appengine/v1beta.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/appengine/v1beta4.ts b/src/apis/appengine/v1beta4.ts index eee2ac410d1..f11b6a282d9 100644 --- a/src/apis/appengine/v1beta4.ts +++ b/src/apis/appengine/v1beta4.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/appengine/v1beta5.ts b/src/apis/appengine/v1beta5.ts index 169dfa47334..2d03e3ca77a 100644 --- a/src/apis/appengine/v1beta5.ts +++ b/src/apis/appengine/v1beta5.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/appengine/webpack.config.js b/src/apis/appengine/webpack.config.js new file mode 100644 index 00000000000..f415acc732d --- /dev/null +++ b/src/apis/appengine/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Appengine', + filename: 'appengine.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/appsactivity/README.md b/src/apis/appsactivity/README.md index d4a355a39fb..ba1e381b5ed 100644 --- a/src/apis/appsactivity/README.md +++ b/src/apis/appsactivity/README.md @@ -11,17 +11,37 @@ $ npm install @google/appsactivity ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/appsactivity +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/appsactivity.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/appsactivity/index.ts b/src/apis/appsactivity/index.ts index a3cd3c7db76..d26e6f2f898 100644 --- a/src/apis/appsactivity/index.ts +++ b/src/apis/appsactivity/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {appsactivity_v1} from './v1'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function appsactivity( this: GoogleConfigurable, versionOrOptions: 'v1'|appsactivity_v1.Options) { return getAPI('appsactivity', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/appsactivity/package.json b/src/apis/appsactivity/package.json index b3bfab94cce..4177046f682 100644 --- a/src/apis/appsactivity/package.json +++ b/src/apis/appsactivity/package.json @@ -4,16 +4,18 @@ "description": "appsactivity", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/appsactivity/v1.ts b/src/apis/appsactivity/v1.ts index 7cf00f48c41..05a37e0972c 100644 --- a/src/apis/appsactivity/v1.ts +++ b/src/apis/appsactivity/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/appsactivity/webpack.config.js b/src/apis/appsactivity/webpack.config.js new file mode 100644 index 00000000000..bf4136d8af6 --- /dev/null +++ b/src/apis/appsactivity/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Appsactivity', + filename: 'appsactivity.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/appstate/README.md b/src/apis/appstate/README.md index d9afb9c9cdd..a7876da720d 100644 --- a/src/apis/appstate/README.md +++ b/src/apis/appstate/README.md @@ -11,17 +11,37 @@ $ npm install @google/appstate ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/appstate +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/appstate.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/appstate/index.ts b/src/apis/appstate/index.ts index 644c3fa4a60..b733032d6bc 100644 --- a/src/apis/appstate/index.ts +++ b/src/apis/appstate/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {appstate_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function appstate( this: GoogleConfigurable, versionOrOptions: 'v1'|appstate_v1.Options) { return getAPI('appstate', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/appstate/package.json b/src/apis/appstate/package.json index 76251242c86..6087608b8dd 100644 --- a/src/apis/appstate/package.json +++ b/src/apis/appstate/package.json @@ -4,16 +4,18 @@ "description": "appstate", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/appstate/v1.ts b/src/apis/appstate/v1.ts index a9a5845e8b4..2c785a4c78f 100644 --- a/src/apis/appstate/v1.ts +++ b/src/apis/appstate/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/appstate/webpack.config.js b/src/apis/appstate/webpack.config.js new file mode 100644 index 00000000000..edb4e562468 --- /dev/null +++ b/src/apis/appstate/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Appstate', + filename: 'appstate.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/bigquery/README.md b/src/apis/bigquery/README.md index e917df5fb25..c8a70c1120c 100644 --- a/src/apis/bigquery/README.md +++ b/src/apis/bigquery/README.md @@ -11,17 +11,37 @@ $ npm install @google/bigquery ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/bigquery +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/bigquery.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/bigquery/index.ts b/src/apis/bigquery/index.ts index 7030ab282b5..96034c5bc03 100644 --- a/src/apis/bigquery/index.ts +++ b/src/apis/bigquery/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {bigquery_v2} from './v2'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function bigquery( this: GoogleConfigurable, versionOrOptions: 'v2'|bigquery_v2.Options) { return getAPI('bigquery', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/bigquery/package.json b/src/apis/bigquery/package.json index 570b0193d42..0d54b5c7805 100644 --- a/src/apis/bigquery/package.json +++ b/src/apis/bigquery/package.json @@ -4,16 +4,18 @@ "description": "bigquery", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/bigquery/v2.ts b/src/apis/bigquery/v2.ts index 1be3a86fbe4..192e992939a 100644 --- a/src/apis/bigquery/v2.ts +++ b/src/apis/bigquery/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -622,6 +622,15 @@ export namespace bigquery_v2 { * [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS. */ googleSheetsOptions?: Schema$GoogleSheetsOptions; + /** + * [Optional, Experimental] If hive partitioning is enabled, which mode to + * use. Two modes are supported: - AUTO: automatically infer partition key + * name(s) and type(s). - STRINGS: automatic infer partition key name(s). + * All types are strings. Not all storage formats support hive partitioning + * -- requesting hive partitioning on an unsupported format will lead to an + * error. + */ + hivePartitioningMode?: string; /** * [Optional] Indicates if BigQuery should allow extra values that are not * represented in the table schema. If true, the extra values are ignored. @@ -998,6 +1007,15 @@ export namespace bigquery_v2 { * The default value is a comma (','). */ fieldDelimiter?: string; + /** + * [Optional, Experimental] If hive partitioning is enabled, which mode to + * use. Two modes are supported: - AUTO: automatically infer partition key + * name(s) and type(s). - STRINGS: automatic infer partition key name(s). + * All types are strings. Not all storage formats support hive partitioning + * -- requesting hive partitioning on an unsupported format will lead to an + * error. + */ + hivePartitioningMode?: string; /** * [Optional] Indicates if BigQuery should allow extra values that are not * represented in the table schema. If true, the extra values are ignored. diff --git a/src/apis/bigquery/webpack.config.js b/src/apis/bigquery/webpack.config.js new file mode 100644 index 00000000000..b44349ff122 --- /dev/null +++ b/src/apis/bigquery/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Bigquery', + filename: 'bigquery.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/bigquerydatatransfer/README.md b/src/apis/bigquerydatatransfer/README.md index 38d8eec790d..04060e62f3b 100644 --- a/src/apis/bigquerydatatransfer/README.md +++ b/src/apis/bigquerydatatransfer/README.md @@ -11,17 +11,37 @@ $ npm install @google/bigquerydatatransfer ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/bigquerydatatransfer +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/bigquerydatatransfer.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/bigquerydatatransfer/index.ts b/src/apis/bigquerydatatransfer/index.ts index ddf3a456176..83aaf38455e 100644 --- a/src/apis/bigquerydatatransfer/index.ts +++ b/src/apis/bigquerydatatransfer/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {bigquerydatatransfer_v1} from './v1'; export const VERSIONS = { @@ -30,3 +30,6 @@ bigquerydatatransfer( versionOrOptions: 'v1'|bigquerydatatransfer_v1.Options) { return getAPI('bigquerydatatransfer', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/bigquerydatatransfer/package.json b/src/apis/bigquerydatatransfer/package.json index 969d8d0f6b1..b46437974e1 100644 --- a/src/apis/bigquerydatatransfer/package.json +++ b/src/apis/bigquerydatatransfer/package.json @@ -4,16 +4,18 @@ "description": "bigquerydatatransfer", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/bigquerydatatransfer/v1.ts b/src/apis/bigquerydatatransfer/v1.ts index 83512263daa..14193e71a57 100644 --- a/src/apis/bigquerydatatransfer/v1.ts +++ b/src/apis/bigquerydatatransfer/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/bigquerydatatransfer/webpack.config.js b/src/apis/bigquerydatatransfer/webpack.config.js new file mode 100644 index 00000000000..f92e684db39 --- /dev/null +++ b/src/apis/bigquerydatatransfer/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Bigquerydatatransfer', + filename: 'bigquerydatatransfer.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/bigtableadmin/README.md b/src/apis/bigtableadmin/README.md index 7d9ae2ea6be..d5642803688 100644 --- a/src/apis/bigtableadmin/README.md +++ b/src/apis/bigtableadmin/README.md @@ -11,17 +11,37 @@ $ npm install @google/bigtableadmin ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/bigtableadmin +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/bigtableadmin.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/bigtableadmin/index.ts b/src/apis/bigtableadmin/index.ts index 1b21f10513b..74f5bff8ae7 100644 --- a/src/apis/bigtableadmin/index.ts +++ b/src/apis/bigtableadmin/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {bigtableadmin_v2} from './v2'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function bigtableadmin( this: GoogleConfigurable, versionOrOptions: 'v2'|bigtableadmin_v2.Options) { return getAPI('bigtableadmin', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/bigtableadmin/package.json b/src/apis/bigtableadmin/package.json index fb91a39c4b4..911ec3c2168 100644 --- a/src/apis/bigtableadmin/package.json +++ b/src/apis/bigtableadmin/package.json @@ -4,16 +4,18 @@ "description": "bigtableadmin", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/bigtableadmin/v2.ts b/src/apis/bigtableadmin/v2.ts index b3a8c58ace6..be84294ed62 100644 --- a/src/apis/bigtableadmin/v2.ts +++ b/src/apis/bigtableadmin/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/bigtableadmin/webpack.config.js b/src/apis/bigtableadmin/webpack.config.js new file mode 100644 index 00000000000..f0d62551d15 --- /dev/null +++ b/src/apis/bigtableadmin/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Bigtableadmin', + filename: 'bigtableadmin.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/binaryauthorization/README.md b/src/apis/binaryauthorization/README.md index 3731c66bf09..6564e49b002 100644 --- a/src/apis/binaryauthorization/README.md +++ b/src/apis/binaryauthorization/README.md @@ -11,17 +11,37 @@ $ npm install @google/binaryauthorization ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/binaryauthorization +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/binaryauthorization.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/binaryauthorization/index.ts b/src/apis/binaryauthorization/index.ts index de19a8eaf46..d51535e6dd2 100644 --- a/src/apis/binaryauthorization/index.ts +++ b/src/apis/binaryauthorization/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {binaryauthorization_v1beta1} from './v1beta1'; export const VERSIONS = { @@ -31,3 +31,6 @@ binaryauthorization( versionOrOptions: 'v1beta1'|binaryauthorization_v1beta1.Options) { return getAPI('binaryauthorization', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/binaryauthorization/package.json b/src/apis/binaryauthorization/package.json index 42aaa12832b..71c6bc87244 100644 --- a/src/apis/binaryauthorization/package.json +++ b/src/apis/binaryauthorization/package.json @@ -4,16 +4,18 @@ "description": "binaryauthorization", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/binaryauthorization/v1beta1.ts b/src/apis/binaryauthorization/v1beta1.ts index 88b88542ecc..ff09fe15a13 100644 --- a/src/apis/binaryauthorization/v1beta1.ts +++ b/src/apis/binaryauthorization/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/binaryauthorization/webpack.config.js b/src/apis/binaryauthorization/webpack.config.js new file mode 100644 index 00000000000..d93a16f4774 --- /dev/null +++ b/src/apis/binaryauthorization/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Binaryauthorization', + filename: 'binaryauthorization.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/blogger/README.md b/src/apis/blogger/README.md index 51498af7a27..871fa5b11c1 100644 --- a/src/apis/blogger/README.md +++ b/src/apis/blogger/README.md @@ -11,17 +11,37 @@ $ npm install @google/blogger ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/blogger +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/blogger.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/blogger/index.ts b/src/apis/blogger/index.ts index cd46abba476..e9b383f053b 100644 --- a/src/apis/blogger/index.ts +++ b/src/apis/blogger/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {blogger_v2} from './v2'; import {blogger_v3} from './v3'; @@ -31,3 +31,6 @@ export function blogger( versionOrOptions: 'v2'|blogger_v2.Options|'v3'|blogger_v3.Options) { return getAPI('blogger', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/blogger/package.json b/src/apis/blogger/package.json index 5a12b87cd3e..f22dccb663e 100644 --- a/src/apis/blogger/package.json +++ b/src/apis/blogger/package.json @@ -4,16 +4,18 @@ "description": "blogger", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/blogger/v2.ts b/src/apis/blogger/v2.ts index 809733dd713..61a0bf506b7 100644 --- a/src/apis/blogger/v2.ts +++ b/src/apis/blogger/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/blogger/v3.ts b/src/apis/blogger/v3.ts index eb2a336d04a..d4c9722344a 100644 --- a/src/apis/blogger/v3.ts +++ b/src/apis/blogger/v3.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/blogger/webpack.config.js b/src/apis/blogger/webpack.config.js new file mode 100644 index 00000000000..15e0267f4ac --- /dev/null +++ b/src/apis/blogger/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Blogger', + filename: 'blogger.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/books/README.md b/src/apis/books/README.md index 02624348624..63e3c6510b3 100644 --- a/src/apis/books/README.md +++ b/src/apis/books/README.md @@ -11,17 +11,37 @@ $ npm install @google/books ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/books +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/books.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/books/index.ts b/src/apis/books/index.ts index 596bfa9c6a8..54bd21422e1 100644 --- a/src/apis/books/index.ts +++ b/src/apis/books/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {books_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function books( this: GoogleConfigurable, versionOrOptions: 'v1'|books_v1.Options) { return getAPI('books', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/books/package.json b/src/apis/books/package.json index a464af00124..788ef61f3b5 100644 --- a/src/apis/books/package.json +++ b/src/apis/books/package.json @@ -4,16 +4,18 @@ "description": "books", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/books/v1.ts b/src/apis/books/v1.ts index b647bf3ffc5..0e567c6bae1 100644 --- a/src/apis/books/v1.ts +++ b/src/apis/books/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/books/webpack.config.js b/src/apis/books/webpack.config.js new file mode 100644 index 00000000000..faa38d48987 --- /dev/null +++ b/src/apis/books/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Books', + filename: 'books.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/calendar/README.md b/src/apis/calendar/README.md index fdb57291bd8..7c43ef7efaa 100644 --- a/src/apis/calendar/README.md +++ b/src/apis/calendar/README.md @@ -11,17 +11,37 @@ $ npm install @google/calendar ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/calendar +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/calendar.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/calendar/index.ts b/src/apis/calendar/index.ts index 27de8119e0a..c673f3b4954 100644 --- a/src/apis/calendar/index.ts +++ b/src/apis/calendar/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {calendar_v3} from './v3'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function calendar( this: GoogleConfigurable, versionOrOptions: 'v3'|calendar_v3.Options) { return getAPI('calendar', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/calendar/package.json b/src/apis/calendar/package.json index 5fa84a76f1c..229399daeff 100644 --- a/src/apis/calendar/package.json +++ b/src/apis/calendar/package.json @@ -4,16 +4,18 @@ "description": "calendar", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/calendar/v3.ts b/src/apis/calendar/v3.ts index 32ce3d06bdd..d08276c003e 100644 --- a/src/apis/calendar/v3.ts +++ b/src/apis/calendar/v3.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/calendar/webpack.config.js b/src/apis/calendar/webpack.config.js new file mode 100644 index 00000000000..fa32f84af92 --- /dev/null +++ b/src/apis/calendar/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Calendar', + filename: 'calendar.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/chat/README.md b/src/apis/chat/README.md index f1376f21bab..77301dd617b 100644 --- a/src/apis/chat/README.md +++ b/src/apis/chat/README.md @@ -11,17 +11,37 @@ $ npm install @google/chat ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/chat +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/chat.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/chat/index.ts b/src/apis/chat/index.ts index 050bee9a505..c950dd9fd59 100644 --- a/src/apis/chat/index.ts +++ b/src/apis/chat/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {chat_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function chat( this: GoogleConfigurable, versionOrOptions: 'v1'|chat_v1.Options) { return getAPI('chat', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/chat/package.json b/src/apis/chat/package.json index c009a7674cc..517bc26f7e4 100644 --- a/src/apis/chat/package.json +++ b/src/apis/chat/package.json @@ -4,16 +4,18 @@ "description": "chat", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/chat/v1.ts b/src/apis/chat/v1.ts index 1fd3b178df1..405e44de69b 100644 --- a/src/apis/chat/v1.ts +++ b/src/apis/chat/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/chat/webpack.config.js b/src/apis/chat/webpack.config.js new file mode 100644 index 00000000000..1111f5c3a07 --- /dev/null +++ b/src/apis/chat/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Chat', + filename: 'chat.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/civicinfo/README.md b/src/apis/civicinfo/README.md index b55ea4cb7e7..1d57af47016 100644 --- a/src/apis/civicinfo/README.md +++ b/src/apis/civicinfo/README.md @@ -11,17 +11,37 @@ $ npm install @google/civicinfo ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/civicinfo +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/civicinfo.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/civicinfo/index.ts b/src/apis/civicinfo/index.ts index da28ac341be..510496d547e 100644 --- a/src/apis/civicinfo/index.ts +++ b/src/apis/civicinfo/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {civicinfo_v2} from './v2'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function civicinfo( this: GoogleConfigurable, versionOrOptions: 'v2'|civicinfo_v2.Options) { return getAPI('civicinfo', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/civicinfo/package.json b/src/apis/civicinfo/package.json index 1df7106ebef..b7b8efa873b 100644 --- a/src/apis/civicinfo/package.json +++ b/src/apis/civicinfo/package.json @@ -4,16 +4,18 @@ "description": "civicinfo", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/civicinfo/v2.ts b/src/apis/civicinfo/v2.ts index 40358a9a291..5fb6e4699b0 100644 --- a/src/apis/civicinfo/v2.ts +++ b/src/apis/civicinfo/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/civicinfo/webpack.config.js b/src/apis/civicinfo/webpack.config.js new file mode 100644 index 00000000000..7de5072018f --- /dev/null +++ b/src/apis/civicinfo/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Civicinfo', + filename: 'civicinfo.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/classroom/README.md b/src/apis/classroom/README.md index e7de0251f16..7f8f3d4b300 100644 --- a/src/apis/classroom/README.md +++ b/src/apis/classroom/README.md @@ -11,17 +11,37 @@ $ npm install @google/classroom ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/classroom +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/classroom.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/classroom/index.ts b/src/apis/classroom/index.ts index 4777a438d73..b48d165bb29 100644 --- a/src/apis/classroom/index.ts +++ b/src/apis/classroom/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {classroom_v1} from './v1'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function classroom( this: GoogleConfigurable, versionOrOptions: 'v1'|classroom_v1.Options) { return getAPI('classroom', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/classroom/package.json b/src/apis/classroom/package.json index 62fcf47b826..4892e905147 100644 --- a/src/apis/classroom/package.json +++ b/src/apis/classroom/package.json @@ -4,16 +4,18 @@ "description": "classroom", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/classroom/v1.ts b/src/apis/classroom/v1.ts index 998807a4c2d..96a5f931ed2 100644 --- a/src/apis/classroom/v1.ts +++ b/src/apis/classroom/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/classroom/webpack.config.js b/src/apis/classroom/webpack.config.js new file mode 100644 index 00000000000..5d0edd68fd0 --- /dev/null +++ b/src/apis/classroom/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Classroom', + filename: 'classroom.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/cloudasset/README.md b/src/apis/cloudasset/README.md index f26e1cd47d0..5aacc133ddb 100644 --- a/src/apis/cloudasset/README.md +++ b/src/apis/cloudasset/README.md @@ -11,17 +11,37 @@ $ npm install @google/cloudasset ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/cloudasset +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/cloudasset.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/cloudasset/index.ts b/src/apis/cloudasset/index.ts index 0bdef307c7a..b19bbef16fc 100644 --- a/src/apis/cloudasset/index.ts +++ b/src/apis/cloudasset/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {cloudasset_v1beta1} from './v1beta1'; export const VERSIONS = { @@ -28,3 +28,6 @@ export function cloudasset( versionOrOptions: 'v1beta1'|cloudasset_v1beta1.Options) { return getAPI('cloudasset', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/cloudasset/package.json b/src/apis/cloudasset/package.json index 15f141d7428..7fec51f13ea 100644 --- a/src/apis/cloudasset/package.json +++ b/src/apis/cloudasset/package.json @@ -4,16 +4,18 @@ "description": "cloudasset", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/cloudasset/v1beta1.ts b/src/apis/cloudasset/v1beta1.ts index f8aad2937a3..c8db61595f3 100644 --- a/src/apis/cloudasset/v1beta1.ts +++ b/src/apis/cloudasset/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/cloudasset/webpack.config.js b/src/apis/cloudasset/webpack.config.js new file mode 100644 index 00000000000..559ce7d742d --- /dev/null +++ b/src/apis/cloudasset/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Cloudasset', + filename: 'cloudasset.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/cloudbilling/README.md b/src/apis/cloudbilling/README.md index bb54f03b9d3..8a3c717ee50 100644 --- a/src/apis/cloudbilling/README.md +++ b/src/apis/cloudbilling/README.md @@ -11,17 +11,37 @@ $ npm install @google/cloudbilling ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/cloudbilling +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/cloudbilling.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/cloudbilling/index.ts b/src/apis/cloudbilling/index.ts index cf717cb9eef..6c5f60aa3f3 100644 --- a/src/apis/cloudbilling/index.ts +++ b/src/apis/cloudbilling/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {cloudbilling_v1} from './v1'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function cloudbilling( this: GoogleConfigurable, versionOrOptions: 'v1'|cloudbilling_v1.Options) { return getAPI('cloudbilling', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/cloudbilling/package.json b/src/apis/cloudbilling/package.json index f6270ed0c02..3c852d0d8ad 100644 --- a/src/apis/cloudbilling/package.json +++ b/src/apis/cloudbilling/package.json @@ -4,16 +4,18 @@ "description": "cloudbilling", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/cloudbilling/v1.ts b/src/apis/cloudbilling/v1.ts index 3d95437596e..f754e3acaaa 100644 --- a/src/apis/cloudbilling/v1.ts +++ b/src/apis/cloudbilling/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -558,6 +558,11 @@ export namespace cloudbilling_v1 { * Encapsulates a single service in Google Cloud Platform. */ export interface Schema$Service { + /** + * The business under which the service is offered. Ex. + * "businessEntities/GCP", "businessEntities/Maps" + */ + businessEntityName?: string; /** * A human readable display name for this service. */ diff --git a/src/apis/cloudbilling/webpack.config.js b/src/apis/cloudbilling/webpack.config.js new file mode 100644 index 00000000000..1d9742ff852 --- /dev/null +++ b/src/apis/cloudbilling/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Cloudbilling', + filename: 'cloudbilling.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/cloudbuild/README.md b/src/apis/cloudbuild/README.md index b71e882c7a8..f03a7bde784 100644 --- a/src/apis/cloudbuild/README.md +++ b/src/apis/cloudbuild/README.md @@ -11,17 +11,37 @@ $ npm install @google/cloudbuild ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/cloudbuild +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/cloudbuild.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/cloudbuild/index.ts b/src/apis/cloudbuild/index.ts index 4e12b237052..f536ca33f3e 100644 --- a/src/apis/cloudbuild/index.ts +++ b/src/apis/cloudbuild/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {cloudbuild_v1} from './v1'; import {cloudbuild_v1alpha1} from './v1alpha1'; @@ -35,3 +35,6 @@ cloudbuild( cloudbuild_v1alpha1.Options) { return getAPI('cloudbuild', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/cloudbuild/package.json b/src/apis/cloudbuild/package.json index f4f51ebdda8..16173425808 100644 --- a/src/apis/cloudbuild/package.json +++ b/src/apis/cloudbuild/package.json @@ -4,16 +4,18 @@ "description": "cloudbuild", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/cloudbuild/v1.ts b/src/apis/cloudbuild/v1.ts index a5a1cd8fc4c..e770afd073c 100644 --- a/src/apis/cloudbuild/v1.ts +++ b/src/apis/cloudbuild/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -770,8 +770,8 @@ export namespace cloudbuild_v1 { export interface Schema$SourceProvenance { /** * Output only. Hash(es) of the build source, which can be used to verify - * that the originalsource integrity was maintained in the build. Note that - * `FileHashes` willonly be populated if `BuildOptions` has requested a + * that the original source integrity was maintained in the build. Note that + * `FileHashes` will only be populated if `BuildOptions` has requested a * `SourceProvenanceHash`. The keys to this map are file paths used as * build source and the values contain the hash values for those files. If * the build source came in a single package such as a gzipped tarfile diff --git a/src/apis/cloudbuild/v1alpha1.ts b/src/apis/cloudbuild/v1alpha1.ts index 4368f2db792..a4999c57c7f 100644 --- a/src/apis/cloudbuild/v1alpha1.ts +++ b/src/apis/cloudbuild/v1alpha1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -653,8 +653,8 @@ export namespace cloudbuild_v1alpha1 { export interface Schema$SourceProvenance { /** * Output only. Hash(es) of the build source, which can be used to verify - * that the originalsource integrity was maintained in the build. Note that - * `FileHashes` willonly be populated if `BuildOptions` has requested a + * that the original source integrity was maintained in the build. Note that + * `FileHashes` will only be populated if `BuildOptions` has requested a * `SourceProvenanceHash`. The keys to this map are file paths used as * build source and the values contain the hash values for those files. If * the build source came in a single package such as a gzipped tarfile diff --git a/src/apis/cloudbuild/webpack.config.js b/src/apis/cloudbuild/webpack.config.js new file mode 100644 index 00000000000..8c6b910835e --- /dev/null +++ b/src/apis/cloudbuild/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Cloudbuild', + filename: 'cloudbuild.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/clouddebugger/README.md b/src/apis/clouddebugger/README.md index 5da046d6527..a7855b89ee2 100644 --- a/src/apis/clouddebugger/README.md +++ b/src/apis/clouddebugger/README.md @@ -11,17 +11,37 @@ $ npm install @google/clouddebugger ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/clouddebugger +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/clouddebugger.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/clouddebugger/index.ts b/src/apis/clouddebugger/index.ts index 68b7d6e9379..811edfc6106 100644 --- a/src/apis/clouddebugger/index.ts +++ b/src/apis/clouddebugger/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {clouddebugger_v2} from './v2'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function clouddebugger( this: GoogleConfigurable, versionOrOptions: 'v2'|clouddebugger_v2.Options) { return getAPI('clouddebugger', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/clouddebugger/package.json b/src/apis/clouddebugger/package.json index 0a5f0be4977..1473a28aa96 100644 --- a/src/apis/clouddebugger/package.json +++ b/src/apis/clouddebugger/package.json @@ -4,16 +4,18 @@ "description": "clouddebugger", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/clouddebugger/v2.ts b/src/apis/clouddebugger/v2.ts index 1f3b37a720c..aaddcdc65d7 100644 --- a/src/apis/clouddebugger/v2.ts +++ b/src/apis/clouddebugger/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/clouddebugger/webpack.config.js b/src/apis/clouddebugger/webpack.config.js new file mode 100644 index 00000000000..a2c02db3eb2 --- /dev/null +++ b/src/apis/clouddebugger/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Clouddebugger', + filename: 'clouddebugger.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/clouderrorreporting/README.md b/src/apis/clouderrorreporting/README.md index 788e6be371f..155a72af598 100644 --- a/src/apis/clouderrorreporting/README.md +++ b/src/apis/clouderrorreporting/README.md @@ -11,17 +11,37 @@ $ npm install @google/clouderrorreporting ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/clouderrorreporting +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/clouderrorreporting.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/clouderrorreporting/index.ts b/src/apis/clouderrorreporting/index.ts index a7ce6e3cd2a..d1e39cbc357 100644 --- a/src/apis/clouderrorreporting/index.ts +++ b/src/apis/clouderrorreporting/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {clouderrorreporting_v1beta1} from './v1beta1'; export const VERSIONS = { @@ -31,3 +31,6 @@ clouderrorreporting( versionOrOptions: 'v1beta1'|clouderrorreporting_v1beta1.Options) { return getAPI('clouderrorreporting', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/clouderrorreporting/package.json b/src/apis/clouderrorreporting/package.json index d7e7ac4a8dd..c6981bb3c7f 100644 --- a/src/apis/clouderrorreporting/package.json +++ b/src/apis/clouderrorreporting/package.json @@ -4,16 +4,18 @@ "description": "clouderrorreporting", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/clouderrorreporting/v1beta1.ts b/src/apis/clouderrorreporting/v1beta1.ts index 3594f0c31e4..ce5ee712343 100644 --- a/src/apis/clouderrorreporting/v1beta1.ts +++ b/src/apis/clouderrorreporting/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/clouderrorreporting/webpack.config.js b/src/apis/clouderrorreporting/webpack.config.js new file mode 100644 index 00000000000..0ad4d23f9ff --- /dev/null +++ b/src/apis/clouderrorreporting/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Clouderrorreporting', + filename: 'clouderrorreporting.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/cloudfunctions/README.md b/src/apis/cloudfunctions/README.md index c7ec6222f25..03485bcea77 100644 --- a/src/apis/cloudfunctions/README.md +++ b/src/apis/cloudfunctions/README.md @@ -11,17 +11,37 @@ $ npm install @google/cloudfunctions ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/cloudfunctions +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/cloudfunctions.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/cloudfunctions/index.ts b/src/apis/cloudfunctions/index.ts index ca6366101ff..d25fdc62853 100644 --- a/src/apis/cloudfunctions/index.ts +++ b/src/apis/cloudfunctions/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {cloudfunctions_v1} from './v1'; import {cloudfunctions_v1beta2} from './v1beta2'; @@ -37,3 +37,6 @@ export function cloudfunctions< cloudfunctions_v1.Options|'v1beta2'|cloudfunctions_v1beta2.Options) { return getAPI('cloudfunctions', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/cloudfunctions/package.json b/src/apis/cloudfunctions/package.json index 5e986dbd02a..19383d1130a 100644 --- a/src/apis/cloudfunctions/package.json +++ b/src/apis/cloudfunctions/package.json @@ -4,16 +4,18 @@ "description": "cloudfunctions", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/cloudfunctions/v1.ts b/src/apis/cloudfunctions/v1.ts index 5e8a385ffcb..373d3604a0d 100644 --- a/src/apis/cloudfunctions/v1.ts +++ b/src/apis/cloudfunctions/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/cloudfunctions/v1beta2.ts b/src/apis/cloudfunctions/v1beta2.ts index 9e50f7fd7d3..9180473b79c 100644 --- a/src/apis/cloudfunctions/v1beta2.ts +++ b/src/apis/cloudfunctions/v1beta2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/cloudfunctions/webpack.config.js b/src/apis/cloudfunctions/webpack.config.js new file mode 100644 index 00000000000..398a5a95be5 --- /dev/null +++ b/src/apis/cloudfunctions/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Cloudfunctions', + filename: 'cloudfunctions.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/cloudidentity/README.md b/src/apis/cloudidentity/README.md index 732cabec56e..66b10565a8c 100644 --- a/src/apis/cloudidentity/README.md +++ b/src/apis/cloudidentity/README.md @@ -11,17 +11,37 @@ $ npm install @google/cloudidentity ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/cloudidentity +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/cloudidentity.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/cloudidentity/index.ts b/src/apis/cloudidentity/index.ts index 4e654374b54..9403d36f4a4 100644 --- a/src/apis/cloudidentity/index.ts +++ b/src/apis/cloudidentity/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {cloudidentity_v1} from './v1'; import {cloudidentity_v1beta1} from './v1beta1'; @@ -36,3 +36,6 @@ export function cloudidentity< cloudidentity_v1.Options|'v1beta1'|cloudidentity_v1beta1.Options) { return getAPI('cloudidentity', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/cloudidentity/package.json b/src/apis/cloudidentity/package.json index 6cf55fa6720..fccedb802a9 100644 --- a/src/apis/cloudidentity/package.json +++ b/src/apis/cloudidentity/package.json @@ -4,16 +4,18 @@ "description": "cloudidentity", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/cloudidentity/v1.ts b/src/apis/cloudidentity/v1.ts index 3147d5a05e2..b326e718d03 100644 --- a/src/apis/cloudidentity/v1.ts +++ b/src/apis/cloudidentity/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/cloudidentity/v1beta1.ts b/src/apis/cloudidentity/v1beta1.ts index c0a276f8af2..6dc693a501c 100644 --- a/src/apis/cloudidentity/v1beta1.ts +++ b/src/apis/cloudidentity/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/cloudidentity/webpack.config.js b/src/apis/cloudidentity/webpack.config.js new file mode 100644 index 00000000000..bc82f365506 --- /dev/null +++ b/src/apis/cloudidentity/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Cloudidentity', + filename: 'cloudidentity.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/cloudiot/README.md b/src/apis/cloudiot/README.md index b8e4876de70..dd62da3d8e6 100644 --- a/src/apis/cloudiot/README.md +++ b/src/apis/cloudiot/README.md @@ -11,17 +11,37 @@ $ npm install @google/cloudiot ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/cloudiot +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/cloudiot.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/cloudiot/index.ts b/src/apis/cloudiot/index.ts index d1858d92fd3..3a2717bbc86 100644 --- a/src/apis/cloudiot/index.ts +++ b/src/apis/cloudiot/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {cloudiot_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function cloudiot( this: GoogleConfigurable, versionOrOptions: 'v1'|cloudiot_v1.Options) { return getAPI('cloudiot', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/cloudiot/package.json b/src/apis/cloudiot/package.json index b1b36a669e4..8574872051a 100644 --- a/src/apis/cloudiot/package.json +++ b/src/apis/cloudiot/package.json @@ -4,16 +4,18 @@ "description": "cloudiot", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/cloudiot/v1.ts b/src/apis/cloudiot/v1.ts index 4a934a428a4..897ce669b48 100644 --- a/src/apis/cloudiot/v1.ts +++ b/src/apis/cloudiot/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/cloudiot/webpack.config.js b/src/apis/cloudiot/webpack.config.js new file mode 100644 index 00000000000..a9f38ef8509 --- /dev/null +++ b/src/apis/cloudiot/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Cloudiot', + filename: 'cloudiot.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/cloudkms/README.md b/src/apis/cloudkms/README.md index c97f9ae47b1..5680611fa90 100644 --- a/src/apis/cloudkms/README.md +++ b/src/apis/cloudkms/README.md @@ -11,17 +11,37 @@ $ npm install @google/cloudkms ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/cloudkms +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/cloudkms.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/cloudkms/index.ts b/src/apis/cloudkms/index.ts index 7e7114ec6c5..b24ec17ab43 100644 --- a/src/apis/cloudkms/index.ts +++ b/src/apis/cloudkms/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {cloudkms_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function cloudkms( this: GoogleConfigurable, versionOrOptions: 'v1'|cloudkms_v1.Options) { return getAPI('cloudkms', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/cloudkms/package.json b/src/apis/cloudkms/package.json index d1ef1dffa0e..5969b2e0ae6 100644 --- a/src/apis/cloudkms/package.json +++ b/src/apis/cloudkms/package.json @@ -4,16 +4,18 @@ "description": "cloudkms", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/cloudkms/v1.ts b/src/apis/cloudkms/v1.ts index 6abee71339f..37af737fa34 100644 --- a/src/apis/cloudkms/v1.ts +++ b/src/apis/cloudkms/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/cloudkms/webpack.config.js b/src/apis/cloudkms/webpack.config.js new file mode 100644 index 00000000000..255eb0ad6d5 --- /dev/null +++ b/src/apis/cloudkms/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Cloudkms', + filename: 'cloudkms.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/cloudprofiler/README.md b/src/apis/cloudprofiler/README.md index b22fb368e73..fc116405bbc 100644 --- a/src/apis/cloudprofiler/README.md +++ b/src/apis/cloudprofiler/README.md @@ -11,17 +11,37 @@ $ npm install @google/cloudprofiler ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/cloudprofiler +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/cloudprofiler.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/cloudprofiler/index.ts b/src/apis/cloudprofiler/index.ts index a8c9c95e4b3..0f169cbd88b 100644 --- a/src/apis/cloudprofiler/index.ts +++ b/src/apis/cloudprofiler/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {cloudprofiler_v2} from './v2'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function cloudprofiler( this: GoogleConfigurable, versionOrOptions: 'v2'|cloudprofiler_v2.Options) { return getAPI('cloudprofiler', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/cloudprofiler/package.json b/src/apis/cloudprofiler/package.json index 8d4a2b6c264..5e39f878ed1 100644 --- a/src/apis/cloudprofiler/package.json +++ b/src/apis/cloudprofiler/package.json @@ -4,16 +4,18 @@ "description": "cloudprofiler", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/cloudprofiler/v2.ts b/src/apis/cloudprofiler/v2.ts index ac1b1e4d993..287132b2502 100644 --- a/src/apis/cloudprofiler/v2.ts +++ b/src/apis/cloudprofiler/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/cloudprofiler/webpack.config.js b/src/apis/cloudprofiler/webpack.config.js new file mode 100644 index 00000000000..0cb7214da8a --- /dev/null +++ b/src/apis/cloudprofiler/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Cloudprofiler', + filename: 'cloudprofiler.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/cloudresourcemanager/README.md b/src/apis/cloudresourcemanager/README.md index e9ec877bce2..0002fd5017a 100644 --- a/src/apis/cloudresourcemanager/README.md +++ b/src/apis/cloudresourcemanager/README.md @@ -11,17 +11,37 @@ $ npm install @google/cloudresourcemanager ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/cloudresourcemanager +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/cloudresourcemanager.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/cloudresourcemanager/index.ts b/src/apis/cloudresourcemanager/index.ts index 4b5e646fab3..96b76447836 100644 --- a/src/apis/cloudresourcemanager/index.ts +++ b/src/apis/cloudresourcemanager/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {cloudresourcemanager_v1} from './v1'; import {cloudresourcemanager_v1beta1} from './v1beta1'; import {cloudresourcemanager_v2} from './v2'; @@ -57,3 +57,6 @@ export function cloudresourcemanager< cloudresourcemanager_v2beta1.Options) { return getAPI('cloudresourcemanager', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/cloudresourcemanager/package.json b/src/apis/cloudresourcemanager/package.json index f0b369823ba..99e17b1966e 100644 --- a/src/apis/cloudresourcemanager/package.json +++ b/src/apis/cloudresourcemanager/package.json @@ -4,16 +4,18 @@ "description": "cloudresourcemanager", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/cloudresourcemanager/v1.ts b/src/apis/cloudresourcemanager/v1.ts index 2a8dc7f8b6a..b2b7f357509 100644 --- a/src/apis/cloudresourcemanager/v1.ts +++ b/src/apis/cloudresourcemanager/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/cloudresourcemanager/v1beta1.ts b/src/apis/cloudresourcemanager/v1beta1.ts index d81196e05d5..4b70d084432 100644 --- a/src/apis/cloudresourcemanager/v1beta1.ts +++ b/src/apis/cloudresourcemanager/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/cloudresourcemanager/v2.ts b/src/apis/cloudresourcemanager/v2.ts index 0a6ee5c05ae..e24a591e16a 100644 --- a/src/apis/cloudresourcemanager/v2.ts +++ b/src/apis/cloudresourcemanager/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/cloudresourcemanager/v2beta1.ts b/src/apis/cloudresourcemanager/v2beta1.ts index dedeb9107f8..adf29ec1a95 100644 --- a/src/apis/cloudresourcemanager/v2beta1.ts +++ b/src/apis/cloudresourcemanager/v2beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/cloudresourcemanager/webpack.config.js b/src/apis/cloudresourcemanager/webpack.config.js new file mode 100644 index 00000000000..80cabf0121c --- /dev/null +++ b/src/apis/cloudresourcemanager/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Cloudresourcemanager', + filename: 'cloudresourcemanager.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/cloudscheduler/README.md b/src/apis/cloudscheduler/README.md index dd1ffd4493e..48cf3cd12c8 100644 --- a/src/apis/cloudscheduler/README.md +++ b/src/apis/cloudscheduler/README.md @@ -11,17 +11,37 @@ $ npm install @google/cloudscheduler ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/cloudscheduler +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/cloudscheduler.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/cloudscheduler/index.ts b/src/apis/cloudscheduler/index.ts index c81c3225193..f82720dd34b 100644 --- a/src/apis/cloudscheduler/index.ts +++ b/src/apis/cloudscheduler/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {cloudscheduler_v1beta1} from './v1beta1'; export const VERSIONS = { @@ -29,3 +29,6 @@ export function cloudscheduler( versionOrOptions: 'v1beta1'|cloudscheduler_v1beta1.Options) { return getAPI('cloudscheduler', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/cloudscheduler/package.json b/src/apis/cloudscheduler/package.json index e9b4e3582b4..455357a4d52 100644 --- a/src/apis/cloudscheduler/package.json +++ b/src/apis/cloudscheduler/package.json @@ -4,16 +4,18 @@ "description": "cloudscheduler", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/cloudscheduler/v1beta1.ts b/src/apis/cloudscheduler/v1beta1.ts index 35981fb32ec..ecf52eedab9 100644 --- a/src/apis/cloudscheduler/v1beta1.ts +++ b/src/apis/cloudscheduler/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/cloudscheduler/webpack.config.js b/src/apis/cloudscheduler/webpack.config.js new file mode 100644 index 00000000000..e2a9af5186e --- /dev/null +++ b/src/apis/cloudscheduler/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Cloudscheduler', + filename: 'cloudscheduler.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/cloudsearch/README.md b/src/apis/cloudsearch/README.md index d772f56df75..6a69da114b6 100644 --- a/src/apis/cloudsearch/README.md +++ b/src/apis/cloudsearch/README.md @@ -11,17 +11,37 @@ $ npm install @google/cloudsearch ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/cloudsearch +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/cloudsearch.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/cloudsearch/index.ts b/src/apis/cloudsearch/index.ts index 309f1a62a72..5bbdb686930 100644 --- a/src/apis/cloudsearch/index.ts +++ b/src/apis/cloudsearch/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {cloudsearch_v1} from './v1'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function cloudsearch( this: GoogleConfigurable, versionOrOptions: 'v1'|cloudsearch_v1.Options) { return getAPI('cloudsearch', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/cloudsearch/package.json b/src/apis/cloudsearch/package.json index b22543816c6..ff1da1e7041 100644 --- a/src/apis/cloudsearch/package.json +++ b/src/apis/cloudsearch/package.json @@ -4,16 +4,18 @@ "description": "cloudsearch", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/cloudsearch/v1.ts b/src/apis/cloudsearch/v1.ts index 36caf73e06c..12f5051f3ed 100644 --- a/src/apis/cloudsearch/v1.ts +++ b/src/apis/cloudsearch/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -341,9 +341,6 @@ export namespace cloudsearch_v1 { * List of date values. */ export interface Schema$DateValues { - /** - * The maximum number of elements is 100. - */ values?: Schema$Date[]; } /** @@ -412,9 +409,6 @@ export namespace cloudsearch_v1 { * List of double values. */ export interface Schema$DoubleValues { - /** - * The maximum number of elements is 100. - */ values?: number[]; } /** @@ -546,8 +540,7 @@ export namespace cloudsearch_v1 { */ export interface Schema$EnumValues { /** - * The maximum allowable length for string values is 32 characters. The - * maximum number of elements is 100. + * The maximum allowable length for string values is 32 characters. */ values?: string[]; } @@ -752,8 +745,7 @@ export namespace cloudsearch_v1 { */ export interface Schema$HtmlValues { /** - * The maximum allowable length for html values is 2048 characters. The - * maximum number of string elements is 100. + * The maximum allowable length for html values is 2048 characters. */ values?: string[]; } @@ -850,9 +842,6 @@ export namespace cloudsearch_v1 { * List of integer values. */ export interface Schema$IntegerValues { - /** - * The maximum number of elements is 100. - */ values?: string[]; } /** @@ -1334,9 +1323,6 @@ export namespace cloudsearch_v1 { * List of object values. */ export interface Schema$ObjectValues { - /** - * The maximum number of elements is 100. - */ values?: Schema$StructuredDataObject[]; } /** @@ -2413,8 +2399,7 @@ export namespace cloudsearch_v1 { */ export interface Schema$TextValues { /** - * The maximum allowable length for text values is 2048 characters. The - * maximum number of string elements is 100. + * The maximum allowable length for text values is 2048 characters. */ values?: string[]; } @@ -2471,9 +2456,6 @@ export namespace cloudsearch_v1 { * List of timestamp values. */ export interface Schema$TimestampValues { - /** - * The maximum number of elements is 100. - */ values?: string[]; } export interface Schema$UnmappedIdentity { diff --git a/src/apis/cloudsearch/webpack.config.js b/src/apis/cloudsearch/webpack.config.js new file mode 100644 index 00000000000..e74bf7b0f29 --- /dev/null +++ b/src/apis/cloudsearch/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Cloudsearch', + filename: 'cloudsearch.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/cloudshell/README.md b/src/apis/cloudshell/README.md index 0e7742382f8..57612019dbd 100644 --- a/src/apis/cloudshell/README.md +++ b/src/apis/cloudshell/README.md @@ -11,17 +11,37 @@ $ npm install @google/cloudshell ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/cloudshell +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/cloudshell.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/cloudshell/index.ts b/src/apis/cloudshell/index.ts index 3137a4aaa14..00ae87b44ac 100644 --- a/src/apis/cloudshell/index.ts +++ b/src/apis/cloudshell/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {cloudshell_v1} from './v1'; import {cloudshell_v1alpha1} from './v1alpha1'; @@ -35,3 +35,6 @@ cloudshell( cloudshell_v1alpha1.Options) { return getAPI('cloudshell', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/cloudshell/package.json b/src/apis/cloudshell/package.json index 7ac20ae7736..02b13a39e7a 100644 --- a/src/apis/cloudshell/package.json +++ b/src/apis/cloudshell/package.json @@ -4,16 +4,18 @@ "description": "cloudshell", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/cloudshell/v1.ts b/src/apis/cloudshell/v1.ts index ed400dc2296..6b11243ab01 100644 --- a/src/apis/cloudshell/v1.ts +++ b/src/apis/cloudshell/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/cloudshell/v1alpha1.ts b/src/apis/cloudshell/v1alpha1.ts index 75463a119c3..060fcc6b80d 100644 --- a/src/apis/cloudshell/v1alpha1.ts +++ b/src/apis/cloudshell/v1alpha1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/cloudshell/webpack.config.js b/src/apis/cloudshell/webpack.config.js new file mode 100644 index 00000000000..be8f8a63f4e --- /dev/null +++ b/src/apis/cloudshell/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Cloudshell', + filename: 'cloudshell.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/cloudtasks/README.md b/src/apis/cloudtasks/README.md index a2066f9a9bd..8dcf8e9a820 100644 --- a/src/apis/cloudtasks/README.md +++ b/src/apis/cloudtasks/README.md @@ -11,17 +11,37 @@ $ npm install @google/cloudtasks ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/cloudtasks +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/cloudtasks.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/cloudtasks/index.ts b/src/apis/cloudtasks/index.ts index 6cb600b3697..dc77426d14e 100644 --- a/src/apis/cloudtasks/index.ts +++ b/src/apis/cloudtasks/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {cloudtasks_v2beta2} from './v2beta2'; import {cloudtasks_v2beta3} from './v2beta3'; @@ -35,3 +35,6 @@ cloudtasks( cloudtasks_v2beta2.Options|'v2beta3'|cloudtasks_v2beta3.Options) { return getAPI('cloudtasks', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/cloudtasks/package.json b/src/apis/cloudtasks/package.json index df8f0f8fc21..35cad430a46 100644 --- a/src/apis/cloudtasks/package.json +++ b/src/apis/cloudtasks/package.json @@ -4,16 +4,18 @@ "description": "cloudtasks", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/cloudtasks/v2beta2.ts b/src/apis/cloudtasks/v2beta2.ts index 23361f03d0e..808f56c4a66 100644 --- a/src/apis/cloudtasks/v2beta2.ts +++ b/src/apis/cloudtasks/v2beta2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/cloudtasks/v2beta3.ts b/src/apis/cloudtasks/v2beta3.ts index 9fc2915e006..8dfa78e5440 100644 --- a/src/apis/cloudtasks/v2beta3.ts +++ b/src/apis/cloudtasks/v2beta3.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -287,7 +287,7 @@ export namespace cloudtasks_v2beta3 { */ dispatchTime?: string; /** - * Output only. The response from the target for this attempt. If + * Output only. The response from the worker for this attempt. If * `response_time` is unset, then the task has not been attempted or is * currently running and the `response_status` field is meaningless. */ @@ -548,8 +548,7 @@ export namespace cloudtasks_v2beta3 { */ export interface Schema$Queue { /** - * App Engine HTTP queue. An App Engine queue is a queue that has an - * AppEngineHttpQueue type. + * AppEngineHttpQueue settings apply only to AppEngine tasks in this queue. */ appEngineHttpQueue?: Schema$AppEngineHttpQueue; /** @@ -578,13 +577,18 @@ export namespace cloudtasks_v2beta3 { purgeTime?: string; /** * Rate limits for task dispatches. rate_limits and retry_config are - * related because they both control task attempts however they control how - * tasks are attempted in different ways: * rate_limits controls the total - * rate of dispatches from a queue (i.e. all traffic dispatched from the - * queue, regardless of whether the dispatch is from a first attempt or a - * retry). * retry_config controls what happens to particular a task after - * its first attempt fails. That is, retry_config controls task retries - * (the second attempt, third attempt, etc). + * related because they both control task attempts. However they control + * task attempts in different ways: * rate_limits controls the total rate + * of dispatches from a queue (i.e. all traffic dispatched from the queue, + * regardless of whether the dispatch is from a first attempt or a retry). + * * retry_config controls what happens to particular a task after its + * first attempt fails. That is, retry_config controls task retries (the + * second attempt, third attempt, etc). The queue's actual dispatch + * rate is the result of: * Number of tasks in the queue * User-specified + * throttling: rate limits retry configuration, and the queue's + * state. * System throttling due to `429` (Too Many Requests) or `503` + * (Service Unavailable) responses from the worker, high error rates, or + * to smooth sudden large traffic spikes. */ rateLimits?: Schema$RateLimits; /** @@ -808,9 +812,8 @@ export namespace cloudtasks_v2beta3 { */ export interface Schema$Task { /** - * App Engine HTTP request that is sent to the task's target. Can be set - * only if app_engine_http_queue is set on the queue. An App Engine task is - * a task that has AppEngineHttpRequest set. + * HTTP request that is sent to the App Engine app handler. An App Engine + * task is a task that has AppEngineHttpRequest set. */ appEngineHttpRequest?: Schema$AppEngineHttpRequest; /** diff --git a/src/apis/cloudtasks/webpack.config.js b/src/apis/cloudtasks/webpack.config.js new file mode 100644 index 00000000000..9fab69e9c11 --- /dev/null +++ b/src/apis/cloudtasks/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Cloudtasks', + filename: 'cloudtasks.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/cloudtrace/README.md b/src/apis/cloudtrace/README.md index 884709a2532..07412eaae40 100644 --- a/src/apis/cloudtrace/README.md +++ b/src/apis/cloudtrace/README.md @@ -11,17 +11,37 @@ $ npm install @google/cloudtrace ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/cloudtrace +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/cloudtrace.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/cloudtrace/index.ts b/src/apis/cloudtrace/index.ts index 348fda9ff48..61512303106 100644 --- a/src/apis/cloudtrace/index.ts +++ b/src/apis/cloudtrace/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {cloudtrace_v1} from './v1'; import {cloudtrace_v2} from './v2'; @@ -34,3 +34,6 @@ cloudtrace( versionOrOptions: 'v1'|cloudtrace_v1.Options|'v2'|cloudtrace_v2.Options) { return getAPI('cloudtrace', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/cloudtrace/package.json b/src/apis/cloudtrace/package.json index 0aa7b775f3f..1ed0488db80 100644 --- a/src/apis/cloudtrace/package.json +++ b/src/apis/cloudtrace/package.json @@ -4,16 +4,18 @@ "description": "cloudtrace", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/cloudtrace/v1.ts b/src/apis/cloudtrace/v1.ts index 7dd93875ef6..788d279dd55 100644 --- a/src/apis/cloudtrace/v1.ts +++ b/src/apis/cloudtrace/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/cloudtrace/v2.ts b/src/apis/cloudtrace/v2.ts index 74ea2fe170d..091ff856199 100644 --- a/src/apis/cloudtrace/v2.ts +++ b/src/apis/cloudtrace/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/cloudtrace/webpack.config.js b/src/apis/cloudtrace/webpack.config.js new file mode 100644 index 00000000000..2d18c508477 --- /dev/null +++ b/src/apis/cloudtrace/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Cloudtrace', + filename: 'cloudtrace.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/composer/README.md b/src/apis/composer/README.md index b0ad12c3b00..aeb0a8367d4 100644 --- a/src/apis/composer/README.md +++ b/src/apis/composer/README.md @@ -11,17 +11,37 @@ $ npm install @google/composer ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/composer +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/composer.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/composer/index.ts b/src/apis/composer/index.ts index dd24af5eaca..127934f0dc7 100644 --- a/src/apis/composer/index.ts +++ b/src/apis/composer/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {composer_v1} from './v1'; import {composer_v1beta1} from './v1beta1'; @@ -33,3 +33,6 @@ export function composer( composer_v1beta1.Options) { return getAPI('composer', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/composer/package.json b/src/apis/composer/package.json index 959d936879d..79523ba2dad 100644 --- a/src/apis/composer/package.json +++ b/src/apis/composer/package.json @@ -4,16 +4,18 @@ "description": "composer", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/composer/v1.ts b/src/apis/composer/v1.ts index b3ae205fb0c..bc7c4abe9d0 100644 --- a/src/apis/composer/v1.ts +++ b/src/apis/composer/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -192,6 +192,25 @@ export namespace composer_v1 { */ softwareConfig?: Schema$SoftwareConfig; } + /** + * ImageVersion information + */ + export interface Schema$ImageVersion { + /** + * The string identifier of the ImageVersion, in the form: + * "composer-x.y.z-airflow-a.b(.c)" + */ + imageVersionId?: string; + /** + * Whether this is the default ImageVersion used by Composer during + * environment creation if no input ImageVersion is specified. + */ + isDefault?: boolean; + /** + * supported python versions + */ + supportedPythonVersions?: string[]; + } /** * The environments in a project and location. */ @@ -205,6 +224,19 @@ export namespace composer_v1 { */ nextPageToken?: string; } + /** + * The ImageVersions in a project and location. + */ + export interface Schema$ListImageVersionsResponse { + /** + * The list of supported ImageVersions in a location. + */ + imageVersions?: Schema$ImageVersion[]; + /** + * The page token used to query for the next page if one exists. + */ + nextPageToken?: string; + } /** * The response message for Operations.ListOperations. */ @@ -501,9 +533,11 @@ export namespace composer_v1 { export class Resource$Projects$Locations { environments: Resource$Projects$Locations$Environments; + imageVersions: Resource$Projects$Locations$Imageversions; operations: Resource$Projects$Locations$Operations; constructor() { this.environments = new Resource$Projects$Locations$Environments(); + this.imageVersions = new Resource$Projects$Locations$Imageversions(); this.operations = new Resource$Projects$Locations$Operations(); } } @@ -1013,6 +1047,107 @@ export namespace composer_v1 { } + export class Resource$Projects$Locations$Imageversions { + constructor() {} + + + /** + * composer.projects.locations.imageVersions.list + * @desc List ImageVersions for provided location. + * @alias composer.projects.locations.imageVersions.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {integer=} params.pageSize The maximum number of image_versions to return. + * @param {string=} params.pageToken The next_page_token value returned from a previous List request, if any. + * @param {string} params.parent List ImageVersions in the given project and location, in the form: "projects/{projectId}/locations/{locationId}" + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: Params$Resource$Projects$Locations$Imageversions$List, + options?: MethodOptions): + GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Imageversions$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Imageversions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: + Params$Resource$Projects$Locations$Imageversions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Imageversions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Imageversions$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}/imageVersions') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Imageversions$List extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of image_versions to return. + */ + pageSize?: number; + /** + * The next_page_token value returned from a previous List request, if any. + */ + pageToken?: string; + /** + * List ImageVersions in the given project and location, in the form: + * "projects/{projectId}/locations/{locationId}" + */ + parent?: string; + } + + export class Resource$Projects$Locations$Operations { constructor() {} diff --git a/src/apis/composer/v1beta1.ts b/src/apis/composer/v1beta1.ts index a3e72e210b4..1c84475824a 100644 --- a/src/apis/composer/v1beta1.ts +++ b/src/apis/composer/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -192,6 +192,25 @@ export namespace composer_v1beta1 { */ softwareConfig?: Schema$SoftwareConfig; } + /** + * Image Version information + */ + export interface Schema$ImageVersion { + /** + * The string identifier of the ImageVersion, in the form: + * "composer-x.y.z-airflow-a.b(.c)" + */ + imageVersionId?: string; + /** + * Whether this is the default ImageVersion used by Composer during + * environment creation if no input ImageVersion is specified. + */ + isDefault?: boolean; + /** + * supported python versions + */ + supportedPythonVersions?: string[]; + } /** * The environments in a project and location. */ @@ -205,6 +224,19 @@ export namespace composer_v1beta1 { */ nextPageToken?: string; } + /** + * The ImageVersions in a project and location. + */ + export interface Schema$ListImageVersionsResponse { + /** + * The list of supported ImageVersions in a location. + */ + imageVersions?: Schema$ImageVersion[]; + /** + * The page token used to query for the next page if one exists. + */ + nextPageToken?: string; + } /** * The response message for Operations.ListOperations. */ @@ -516,9 +548,11 @@ export namespace composer_v1beta1 { export class Resource$Projects$Locations { environments: Resource$Projects$Locations$Environments; + imageVersions: Resource$Projects$Locations$Imageversions; operations: Resource$Projects$Locations$Operations; constructor() { this.environments = new Resource$Projects$Locations$Environments(); + this.imageVersions = new Resource$Projects$Locations$Imageversions(); this.operations = new Resource$Projects$Locations$Operations(); } } @@ -1037,6 +1071,107 @@ export namespace composer_v1beta1 { } + export class Resource$Projects$Locations$Imageversions { + constructor() {} + + + /** + * composer.projects.locations.imageVersions.list + * @desc List ImageVersions for provided location. + * @alias composer.projects.locations.imageVersions.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {integer=} params.pageSize The maximum number of image_versions to return. + * @param {string=} params.pageToken The next_page_token value returned from a previous List request, if any. + * @param {string} params.parent List ImageVersions in the given project and location, in the form: "projects/{projectId}/locations/{locationId}" + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: Params$Resource$Projects$Locations$Imageversions$List, + options?: MethodOptions): + GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Imageversions$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Imageversions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: + Params$Resource$Projects$Locations$Imageversions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Imageversions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Imageversions$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/imageVersions') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Imageversions$List extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of image_versions to return. + */ + pageSize?: number; + /** + * The next_page_token value returned from a previous List request, if any. + */ + pageToken?: string; + /** + * List ImageVersions in the given project and location, in the form: + * "projects/{projectId}/locations/{locationId}" + */ + parent?: string; + } + + export class Resource$Projects$Locations$Operations { constructor() {} diff --git a/src/apis/composer/webpack.config.js b/src/apis/composer/webpack.config.js new file mode 100644 index 00000000000..d6721fd7b5d --- /dev/null +++ b/src/apis/composer/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Composer', + filename: 'composer.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/compute/README.md b/src/apis/compute/README.md index fb5844f6d49..191389332ad 100644 --- a/src/apis/compute/README.md +++ b/src/apis/compute/README.md @@ -11,17 +11,37 @@ $ npm install @google/compute ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/compute +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/compute.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/compute/alpha.ts b/src/apis/compute/alpha.ts index 6e64b672fcf..2b0519f800d 100644 --- a/src/apis/compute/alpha.ts +++ b/src/apis/compute/alpha.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -4298,51 +4298,6 @@ export namespace compute_alpha { */ replace?: boolean; } - export interface Schema$HTTPHealthCheck { - /** - * The value of the host header in the HTTP health check request. If left - * empty (default value), the IP on behalf of which this health check is - * performed will be used. - */ - host?: string; - /** - * The TCP port number for the health check request. The default value - * is 80. Valid values are 1 through 65535. - */ - port?: number; - /** - * Port name as defined in InstanceGroup#NamedPort#name. If both port and - * port_name are defined, port takes precedence. - */ - portName?: string; - /** - * Specifies how port is selected for health checking, can be one of - * following values: USE_FIXED_PORT: The port number in port is used for - * health checking. USE_NAMED_PORT: The portName is used for health - * checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified - * for each network endpoint is used for health checking. For other - * backends, the port or named port specified in the Backend Service is used - * for health checking. If not specified, HTTP health check follows - * behavior specified in port and portName fields. - */ - portSpecification?: string; - /** - * Specifies the type of proxy header to append before sending data to the - * backend, either NONE or PROXY_V1. The default is NONE. - */ - proxyHeader?: string; - /** - * The request path of the HTTP health check request. The default value is - * /. - */ - requestPath?: string; - /** - * The string to match anywhere in the first 1024 bytes of the response - * body. If left empty (the default value), the status code determines - * health. The response data can only be ASCII. - */ - response?: string; - } /** * An HttpHealthCheck resource. This resource defines a template for how * individual instances should be checked for health, via HTTP. @@ -4419,6 +4374,51 @@ export namespace compute_alpha { */ unhealthyThreshold?: number; } + export interface Schema$HTTPHealthCheck { + /** + * The value of the host header in the HTTP health check request. If left + * empty (default value), the IP on behalf of which this health check is + * performed will be used. + */ + host?: string; + /** + * The TCP port number for the health check request. The default value + * is 80. Valid values are 1 through 65535. + */ + port?: number; + /** + * Port name as defined in InstanceGroup#NamedPort#name. If both port and + * port_name are defined, port takes precedence. + */ + portName?: string; + /** + * Specifies how port is selected for health checking, can be one of + * following values: USE_FIXED_PORT: The port number in port is used for + * health checking. USE_NAMED_PORT: The portName is used for health + * checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified + * for each network endpoint is used for health checking. For other + * backends, the port or named port specified in the Backend Service is used + * for health checking. If not specified, HTTP health check follows + * behavior specified in port and portName fields. + */ + portSpecification?: string; + /** + * Specifies the type of proxy header to append before sending data to the + * backend, either NONE or PROXY_V1. The default is NONE. + */ + proxyHeader?: string; + /** + * The request path of the HTTP health check request. The default value is + * /. + */ + requestPath?: string; + /** + * The string to match anywhere in the first 1024 bytes of the response + * body. If left empty (the default value), the status code determines + * health. The response data can only be ASCII. + */ + response?: string; + } /** * Contains a list of HttpHealthCheck resources. */ @@ -4710,51 +4710,6 @@ export namespace compute_alpha { */ regexMatch?: string; } - export interface Schema$HTTPSHealthCheck { - /** - * The value of the host header in the HTTPS health check request. If left - * empty (default value), the IP on behalf of which this health check is - * performed will be used. - */ - host?: string; - /** - * The TCP port number for the health check request. The default value is - * 443. Valid values are 1 through 65535. - */ - port?: number; - /** - * Port name as defined in InstanceGroup#NamedPort#name. If both port and - * port_name are defined, port takes precedence. - */ - portName?: string; - /** - * Specifies how port is selected for health checking, can be one of - * following values: USE_FIXED_PORT: The port number in port is used for - * health checking. USE_NAMED_PORT: The portName is used for health - * checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified - * for each network endpoint is used for health checking. For other - * backends, the port or named port specified in the Backend Service is used - * for health checking. If not specified, HTTPS health check follows - * behavior specified in port and portName fields. - */ - portSpecification?: string; - /** - * Specifies the type of proxy header to append before sending data to the - * backend, either NONE or PROXY_V1. The default is NONE. - */ - proxyHeader?: string; - /** - * The request path of the HTTPS health check request. The default value is - * /. - */ - requestPath?: string; - /** - * The string to match anywhere in the first 1024 bytes of the response - * body. If left empty (the default value), the status code determines - * health. The response data can only be ASCII. - */ - response?: string; - } /** * An HttpsHealthCheck resource. This resource defines a template for how * individual instances should be checked for health, via HTTPS. @@ -4830,6 +4785,51 @@ export namespace compute_alpha { */ unhealthyThreshold?: number; } + export interface Schema$HTTPSHealthCheck { + /** + * The value of the host header in the HTTPS health check request. If left + * empty (default value), the IP on behalf of which this health check is + * performed will be used. + */ + host?: string; + /** + * The TCP port number for the health check request. The default value is + * 443. Valid values are 1 through 65535. + */ + port?: number; + /** + * Port name as defined in InstanceGroup#NamedPort#name. If both port and + * port_name are defined, port takes precedence. + */ + portName?: string; + /** + * Specifies how port is selected for health checking, can be one of + * following values: USE_FIXED_PORT: The port number in port is used for + * health checking. USE_NAMED_PORT: The portName is used for health + * checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified + * for each network endpoint is used for health checking. For other + * backends, the port or named port specified in the Backend Service is used + * for health checking. If not specified, HTTPS health check follows + * behavior specified in port and portName fields. + */ + portSpecification?: string; + /** + * Specifies the type of proxy header to append before sending data to the + * backend, either NONE or PROXY_V1. The default is NONE. + */ + proxyHeader?: string; + /** + * The request path of the HTTPS health check request. The default value is + * /. + */ + requestPath?: string; + /** + * The string to match anywhere in the first 1024 bytes of the response + * body. If left empty (the default value), the status code determines + * health. The response data can only be ASCII. + */ + response?: string; + } /** * Contains a list of HttpsHealthCheck resources. */ diff --git a/src/apis/compute/beta.ts b/src/apis/compute/beta.ts index 05dff782669..6867208ba61 100644 --- a/src/apis/compute/beta.ts +++ b/src/apis/compute/beta.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -3684,51 +3684,6 @@ export namespace compute_beta { */ response?: string; } - export interface Schema$HTTPHealthCheck { - /** - * The value of the host header in the HTTP health check request. If left - * empty (default value), the IP on behalf of which this health check is - * performed will be used. - */ - host?: string; - /** - * The TCP port number for the health check request. The default value - * is 80. Valid values are 1 through 65535. - */ - port?: number; - /** - * Port name as defined in InstanceGroup#NamedPort#name. If both port and - * port_name are defined, port takes precedence. - */ - portName?: string; - /** - * Specifies how port is selected for health checking, can be one of - * following values: USE_FIXED_PORT: The port number in port is used for - * health checking. USE_NAMED_PORT: The portName is used for health - * checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified - * for each network endpoint is used for health checking. For other - * backends, the port or named port specified in the Backend Service is used - * for health checking. If not specified, HTTP health check follows - * behavior specified in port and portName fields. - */ - portSpecification?: string; - /** - * Specifies the type of proxy header to append before sending data to the - * backend, either NONE or PROXY_V1. The default is NONE. - */ - proxyHeader?: string; - /** - * The request path of the HTTP health check request. The default value is - * /. - */ - requestPath?: string; - /** - * The string to match anywhere in the first 1024 bytes of the response - * body. If left empty (the default value), the status code determines - * health. The response data can only be ASCII. - */ - response?: string; - } /** * An HttpHealthCheck resource. This resource defines a template for how * individual instances should be checked for health, via HTTP. @@ -3805,53 +3760,16 @@ export namespace compute_beta { */ unhealthyThreshold?: number; } - /** - * Contains a list of HttpHealthCheck resources. - */ - export interface Schema$HttpHealthCheckList { - /** - * [Output Only] Unique identifier for the resource; defined by the server. - */ - id?: string; - /** - * A list of HttpHealthCheck resources. - */ - items?: Schema$HttpHealthCheck[]; - /** - * Type of resource. - */ - kind?: string; - /** - * [Output Only] This token allows you to get the next page of results for - * list requests. If the number of results is larger than maxResults, use - * the nextPageToken as a value for the query parameter pageToken in the - * next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - */ - nextPageToken?: string; - /** - * [Output Only] Server-defined URL for this resource. - */ - selfLink?: string; - /** - * [Output Only] Informational warning message. - */ - warning?: { - code?: string; - data?: Array<{key?: string; value?: string;}>; - message?: string; - }; - } - export interface Schema$HTTPSHealthCheck { + export interface Schema$HTTPHealthCheck { /** - * The value of the host header in the HTTPS health check request. If left + * The value of the host header in the HTTP health check request. If left * empty (default value), the IP on behalf of which this health check is * performed will be used. */ host?: string; /** - * The TCP port number for the health check request. The default value is - * 443. Valid values are 1 through 65535. + * The TCP port number for the health check request. The default value + * is 80. Valid values are 1 through 65535. */ port?: number; /** @@ -3866,7 +3784,7 @@ export namespace compute_beta { * checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified * for each network endpoint is used for health checking. For other * backends, the port or named port specified in the Backend Service is used - * for health checking. If not specified, HTTPS health check follows + * for health checking. If not specified, HTTP health check follows * behavior specified in port and portName fields. */ portSpecification?: string; @@ -3876,7 +3794,7 @@ export namespace compute_beta { */ proxyHeader?: string; /** - * The request path of the HTTPS health check request. The default value is + * The request path of the HTTP health check request. The default value is * /. */ requestPath?: string; @@ -3887,6 +3805,43 @@ export namespace compute_beta { */ response?: string; } + /** + * Contains a list of HttpHealthCheck resources. + */ + export interface Schema$HttpHealthCheckList { + /** + * [Output Only] Unique identifier for the resource; defined by the server. + */ + id?: string; + /** + * A list of HttpHealthCheck resources. + */ + items?: Schema$HttpHealthCheck[]; + /** + * Type of resource. + */ + kind?: string; + /** + * [Output Only] This token allows you to get the next page of results for + * list requests. If the number of results is larger than maxResults, use + * the nextPageToken as a value for the query parameter pageToken in the + * next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + */ + nextPageToken?: string; + /** + * [Output Only] Server-defined URL for this resource. + */ + selfLink?: string; + /** + * [Output Only] Informational warning message. + */ + warning?: { + code?: string; + data?: Array<{key?: string; value?: string;}>; + message?: string; + }; + } /** * An HttpsHealthCheck resource. This resource defines a template for how * individual instances should be checked for health, via HTTPS. @@ -3962,6 +3917,51 @@ export namespace compute_beta { */ unhealthyThreshold?: number; } + export interface Schema$HTTPSHealthCheck { + /** + * The value of the host header in the HTTPS health check request. If left + * empty (default value), the IP on behalf of which this health check is + * performed will be used. + */ + host?: string; + /** + * The TCP port number for the health check request. The default value is + * 443. Valid values are 1 through 65535. + */ + port?: number; + /** + * Port name as defined in InstanceGroup#NamedPort#name. If both port and + * port_name are defined, port takes precedence. + */ + portName?: string; + /** + * Specifies how port is selected for health checking, can be one of + * following values: USE_FIXED_PORT: The port number in port is used for + * health checking. USE_NAMED_PORT: The portName is used for health + * checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified + * for each network endpoint is used for health checking. For other + * backends, the port or named port specified in the Backend Service is used + * for health checking. If not specified, HTTPS health check follows + * behavior specified in port and portName fields. + */ + portSpecification?: string; + /** + * Specifies the type of proxy header to append before sending data to the + * backend, either NONE or PROXY_V1. The default is NONE. + */ + proxyHeader?: string; + /** + * The request path of the HTTPS health check request. The default value is + * /. + */ + requestPath?: string; + /** + * The string to match anywhere in the first 1024 bytes of the response + * body. If left empty (the default value), the status code determines + * health. The response data can only be ASCII. + */ + response?: string; + } /** * Contains a list of HttpsHealthCheck resources. */ diff --git a/src/apis/compute/index.ts b/src/apis/compute/index.ts index 0117f5c749e..648bc76b409 100644 --- a/src/apis/compute/index.ts +++ b/src/apis/compute/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {compute_alpha} from './alpha'; import {compute_beta} from './beta'; import {compute_v1} from './v1'; @@ -37,3 +37,6 @@ compute( compute_beta.Options|'v1'|compute_v1.Options) { return getAPI('compute', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/compute/package.json b/src/apis/compute/package.json index 4e778a08ceb..25f6d96d05a 100644 --- a/src/apis/compute/package.json +++ b/src/apis/compute/package.json @@ -4,16 +4,18 @@ "description": "compute", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/compute/v1.ts b/src/apis/compute/v1.ts index 56197491f5e..6a2f821bf11 100644 --- a/src/apis/compute/v1.ts +++ b/src/apis/compute/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -3248,40 +3248,6 @@ export namespace compute_v1 { message?: string; }; } - export interface Schema$HTTPSHealthCheck { - /** - * The value of the host header in the HTTPS health check request. If left - * empty (default value), the IP on behalf of which this health check is - * performed will be used. - */ - host?: string; - /** - * The TCP port number for the health check request. The default value is - * 443. Valid values are 1 through 65535. - */ - port?: number; - /** - * Port name as defined in InstanceGroup#NamedPort#name. If both port and - * port_name are defined, port takes precedence. - */ - portName?: string; - /** - * Specifies the type of proxy header to append before sending data to the - * backend, either NONE or PROXY_V1. The default is NONE. - */ - proxyHeader?: string; - /** - * The request path of the HTTPS health check request. The default value is - * /. - */ - requestPath?: string; - /** - * The string to match anywhere in the first 1024 bytes of the response - * body. If left empty (the default value), the status code determines - * health. The response data can only be ASCII. - */ - response?: string; - } /** * An HttpsHealthCheck resource. This resource defines a template for how * individual instances should be checked for health, via HTTPS. @@ -3357,6 +3323,40 @@ export namespace compute_v1 { */ unhealthyThreshold?: number; } + export interface Schema$HTTPSHealthCheck { + /** + * The value of the host header in the HTTPS health check request. If left + * empty (default value), the IP on behalf of which this health check is + * performed will be used. + */ + host?: string; + /** + * The TCP port number for the health check request. The default value is + * 443. Valid values are 1 through 65535. + */ + port?: number; + /** + * Port name as defined in InstanceGroup#NamedPort#name. If both port and + * port_name are defined, port takes precedence. + */ + portName?: string; + /** + * Specifies the type of proxy header to append before sending data to the + * backend, either NONE or PROXY_V1. The default is NONE. + */ + proxyHeader?: string; + /** + * The request path of the HTTPS health check request. The default value is + * /. + */ + requestPath?: string; + /** + * The string to match anywhere in the first 1024 bytes of the response + * body. If left empty (the default value), the status code determines + * health. The response data can only be ASCII. + */ + response?: string; + } /** * Contains a list of HttpsHealthCheck resources. */ diff --git a/src/apis/compute/webpack.config.js b/src/apis/compute/webpack.config.js new file mode 100644 index 00000000000..233656d78bf --- /dev/null +++ b/src/apis/compute/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Compute', + filename: 'compute.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/container/README.md b/src/apis/container/README.md index 707992fb527..f910ba81b1b 100644 --- a/src/apis/container/README.md +++ b/src/apis/container/README.md @@ -11,17 +11,37 @@ $ npm install @google/container ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/container +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/container.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/container/index.ts b/src/apis/container/index.ts index e3cb99ed5b0..eabefda21b7 100644 --- a/src/apis/container/index.ts +++ b/src/apis/container/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {container_v1} from './v1'; import {container_v1beta1} from './v1beta1'; @@ -35,3 +35,6 @@ container( container_v1beta1.Options) { return getAPI('container', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/container/package.json b/src/apis/container/package.json index 7f8e88e0ed2..08760899eca 100644 --- a/src/apis/container/package.json +++ b/src/apis/container/package.json @@ -4,16 +4,18 @@ "description": "container", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/container/v1.ts b/src/apis/container/v1.ts index c5d6549f991..0b919241150 100644 --- a/src/apis/container/v1.ts +++ b/src/apis/container/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -640,6 +640,51 @@ export namespace container_v1 { * representation for `Empty` is empty JSON object `{}`. */ export interface Schema$Empty {} + /** + * GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc + * 7517 + */ + export interface Schema$GetJSONWebKeysResponse { + /** + * The public component of the keys used by the cluster to sign token + * requests. + */ + keys?: Schema$Jwk[]; + } + /** + * GetOpenIDConfigResponse is an OIDC discovery document for the cluster. See + * the OpenID Connect Discovery 1.0 specification for details. + */ + export interface Schema$GetOpenIDConfigResponse { + /** + * NOLINT + */ + claims_supported?: string[]; + /** + * NOLINT + */ + grant_types?: string[]; + /** + * NOLINT + */ + id_token_signing_alg_values_supported?: string[]; + /** + * NOLINT + */ + issuer?: string; + /** + * NOLINT + */ + jwks_uri?: string; + /** + * NOLINT + */ + response_types_supported?: string[]; + /** + * NOLINT + */ + subject_types_supported?: string[]; + } /** * Configuration options for the horizontal pod autoscaling feature, which * increases or decreases the number of replica pods a replication controller @@ -749,6 +794,47 @@ export namespace container_v1 { */ useIpAliases?: boolean; } + /** + * Jwk is a JSON Web Key as specified in RFC 7517 + */ + export interface Schema$Jwk { + /** + * NOLINT + */ + alg?: string; + /** + * NOLINT + */ + crv?: string; + /** + * NOLINT + */ + e?: string; + /** + * NOLINT + */ + kid?: string; + /** + * NOLINT + */ + kty?: string; + /** + * Fields for RSA keys. NOLINT + */ + n?: string; + /** + * NOLINT + */ + use?: string; + /** + * Fields for ECDSA keys. NOLINT + */ + x?: string; + /** + * NOLINT + */ + y?: string; + } /** * Configuration for the Kubernetes Dashboard. */ @@ -2033,8 +2119,10 @@ export namespace container_v1 { export class Resource$Projects$Locations$Clusters { nodePools: Resource$Projects$Locations$Clusters$Nodepools; + wellKnown: Resource$Projects$Locations$Clusters$WellKnown; constructor() { this.nodePools = new Resource$Projects$Locations$Clusters$Nodepools(); + this.wellKnown = new Resource$Projects$Locations$Clusters$WellKnown(); } @@ -2321,6 +2409,77 @@ export namespace container_v1 { } + /** + * container.projects.locations.clusters.getJwks + * @desc GetJSONWebKeys gets the public component of the cluster signing + * keys in JSON Web Key format. This API is not yet intended for general + * use, and is not available for all clusters. + * @alias container.projects.locations.clusters.getJwks + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent The cluster (project, location, cluster id) to get keys for. Specified in the format 'projects/x/locations/x/clusters/x'. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + getJwks( + params?: Params$Resource$Projects$Locations$Clusters$Getjwks, + options?: MethodOptions): GaxiosPromise; + getJwks( + params: Params$Resource$Projects$Locations$Clusters$Getjwks, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + getJwks( + params: Params$Resource$Projects$Locations$Clusters$Getjwks, + callback: BodyResponseCallback): void; + getJwks(callback: BodyResponseCallback): + void; + getJwks( + paramsOrCallback?: Params$Resource$Projects$Locations$Clusters$Getjwks| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Getjwks; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$Getjwks; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}/jwks') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** * container.projects.locations.clusters.list * @desc Lists all clusters owned by a project in either the specified zone @@ -3327,6 +3486,19 @@ export namespace container_v1 { */ zone?: string; } + export interface Params$Resource$Projects$Locations$Clusters$Getjwks extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The cluster (project, location, cluster id) to get keys for. Specified in + * the format 'projects/x/locations/x/clusters/x'. + */ + parent?: string; + } export interface Params$Resource$Projects$Locations$Clusters$List extends StandardParameters { /** @@ -4431,6 +4603,103 @@ export namespace container_v1 { } + export class Resource$Projects$Locations$Clusters$WellKnown { + constructor() {} + + + /** + * container.projects.locations.clusters.well-known.getOpenid-configuration + * @desc GetOpenIDConfig gets the OIDC discovery document for the cluster. + * See the OpenID Connect Discovery 1.0 specification for details. + * https://openid.net/specs/openid-connect-discovery-1_0.html This API is + * not yet intended for general use, and is not available for all clusters. + * @alias + * container.projects.locations.clusters.well-known.getOpenid-configuration + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent The cluster (project, location, cluster id) to get the discovery document for. Specified in the format 'projects/x/locations/x/clusters/x'. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + getOpenidConfiguration( + params?: + Params$Resource$Projects$Locations$Clusters$WellKnown$Getopenidconfiguration, + options?: MethodOptions): GaxiosPromise; + getOpenidConfiguration( + params: + Params$Resource$Projects$Locations$Clusters$WellKnown$Getopenidconfiguration, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + getOpenidConfiguration( + params: + Params$Resource$Projects$Locations$Clusters$WellKnown$Getopenidconfiguration, + callback: BodyResponseCallback): void; + getOpenidConfiguration( + callback: BodyResponseCallback): void; + getOpenidConfiguration( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$WellKnown$Getopenidconfiguration| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$WellKnown$Getopenidconfiguration; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$WellKnown$Getopenidconfiguration; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}/.well-known/openid-configuration') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Clusters$WellKnown$Getopenidconfiguration + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The cluster (project, location, cluster id) to get the discovery document + * for. Specified in the format 'projects/x/locations/x/clusters/x'. + */ + parent?: string; + } + + export class Resource$Projects$Locations$Operations { constructor() {} diff --git a/src/apis/container/v1beta1.ts b/src/apis/container/v1beta1.ts index 844e0af90e7..e3f061f2246 100644 --- a/src/apis/container/v1beta1.ts +++ b/src/apis/container/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -303,6 +303,10 @@ export namespace container_v1beta1 { * being upgraded, this reflects the minimum version of all nodes. */ currentNodeVersion?: string; + /** + * Configuration of etcd encryption. + */ + databaseEncryption?: Schema$DatabaseEncryption; /** * The default constraint on the maximum number of pods that can be run * simultaneously on a node in the node pool of this cluster. Only honored @@ -767,6 +771,20 @@ export namespace container_v1beta1 { */ startTime?: string; } + /** + * Configuration of etcd encryption. + */ + export interface Schema$DatabaseEncryption { + /** + * Name of CloudKMS key to use for the encryption of secrets in etcd. Ex. + * projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key + */ + keyName?: string; + /** + * Denotes the state of etcd encryption. + */ + state?: string; + } /** * A generic empty message that you can re-use to avoid defining duplicated * empty messages in your APIs. A typical example is to use it as the request @@ -775,6 +793,51 @@ export namespace container_v1beta1 { * representation for `Empty` is empty JSON object `{}`. */ export interface Schema$Empty {} + /** + * GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc + * 7517 + */ + export interface Schema$GetJSONWebKeysResponse { + /** + * The public component of the keys used by the cluster to sign token + * requests. + */ + keys?: Schema$Jwk[]; + } + /** + * GetOpenIDConfigResponse is an OIDC discovery document for the cluster. See + * the OpenID Connect Discovery 1.0 specification for details. + */ + export interface Schema$GetOpenIDConfigResponse { + /** + * NOLINT + */ + claims_supported?: string[]; + /** + * NOLINT + */ + grant_types?: string[]; + /** + * NOLINT + */ + id_token_signing_alg_values_supported?: string[]; + /** + * NOLINT + */ + issuer?: string; + /** + * NOLINT + */ + jwks_uri?: string; + /** + * NOLINT + */ + response_types_supported?: string[]; + /** + * NOLINT + */ + subject_types_supported?: string[]; + } /** * Configuration options for the horizontal pod autoscaling feature, which * increases or decreases the number of replica pods a replication controller @@ -922,6 +985,47 @@ export namespace container_v1beta1 { */ disabled?: boolean; } + /** + * Jwk is a JSON Web Key as specified in RFC 7517 + */ + export interface Schema$Jwk { + /** + * NOLINT + */ + alg?: string; + /** + * NOLINT + */ + crv?: string; + /** + * NOLINT + */ + e?: string; + /** + * NOLINT + */ + kid?: string; + /** + * NOLINT + */ + kty?: string; + /** + * Fields for RSA keys. NOLINT + */ + n?: string; + /** + * NOLINT + */ + use?: string; + /** + * Fields for ECDSA keys. NOLINT + */ + x?: string; + /** + * NOLINT + */ + y?: string; + } /** * Configuration for the Kubernetes Dashboard. */ @@ -2652,8 +2756,10 @@ export namespace container_v1beta1 { export class Resource$Projects$Locations$Clusters { nodePools: Resource$Projects$Locations$Clusters$Nodepools; + wellKnown: Resource$Projects$Locations$Clusters$WellKnown; constructor() { this.nodePools = new Resource$Projects$Locations$Clusters$Nodepools(); + this.wellKnown = new Resource$Projects$Locations$Clusters$WellKnown(); } @@ -2940,6 +3046,77 @@ export namespace container_v1beta1 { } + /** + * container.projects.locations.clusters.getJwks + * @desc GetJSONWebKeys gets the public component of the cluster signing + * keys in JSON Web Key format. This API is not yet intended for general + * use, and is not available for all clusters. + * @alias container.projects.locations.clusters.getJwks + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent The cluster (project, location, cluster id) to get keys for. Specified in the format 'projects/x/locations/x/clusters/x'. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + getJwks( + params?: Params$Resource$Projects$Locations$Clusters$Getjwks, + options?: MethodOptions): GaxiosPromise; + getJwks( + params: Params$Resource$Projects$Locations$Clusters$Getjwks, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + getJwks( + params: Params$Resource$Projects$Locations$Clusters$Getjwks, + callback: BodyResponseCallback): void; + getJwks(callback: BodyResponseCallback): + void; + getJwks( + paramsOrCallback?: Params$Resource$Projects$Locations$Clusters$Getjwks| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Getjwks; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$Getjwks; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/jwks') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** * container.projects.locations.clusters.list * @desc Lists all clusters owned by a project in either the specified zone @@ -3947,6 +4124,19 @@ export namespace container_v1beta1 { */ zone?: string; } + export interface Params$Resource$Projects$Locations$Clusters$Getjwks extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The cluster (project, location, cluster id) to get keys for. Specified in + * the format 'projects/x/locations/x/clusters/x'. + */ + parent?: string; + } export interface Params$Resource$Projects$Locations$Clusters$List extends StandardParameters { /** @@ -5051,6 +5241,104 @@ export namespace container_v1beta1 { } + export class Resource$Projects$Locations$Clusters$WellKnown { + constructor() {} + + + /** + * container.projects.locations.clusters.well-known.getOpenid-configuration + * @desc GetOpenIDConfig gets the OIDC discovery document for the cluster. + * See the OpenID Connect Discovery 1.0 specification for details. + * https://openid.net/specs/openid-connect-discovery-1_0.html This API is + * not yet intended for general use, and is not available for all clusters. + * @alias + * container.projects.locations.clusters.well-known.getOpenid-configuration + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent The cluster (project, location, cluster id) to get the discovery document for. Specified in the format 'projects/x/locations/x/clusters/x'. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + getOpenidConfiguration( + params?: + Params$Resource$Projects$Locations$Clusters$WellKnown$Getopenidconfiguration, + options?: MethodOptions): GaxiosPromise; + getOpenidConfiguration( + params: + Params$Resource$Projects$Locations$Clusters$WellKnown$Getopenidconfiguration, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + getOpenidConfiguration( + params: + Params$Resource$Projects$Locations$Clusters$WellKnown$Getopenidconfiguration, + callback: BodyResponseCallback): void; + getOpenidConfiguration( + callback: BodyResponseCallback): void; + getOpenidConfiguration( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$WellKnown$Getopenidconfiguration| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$WellKnown$Getopenidconfiguration; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$WellKnown$Getopenidconfiguration; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + + '/v1beta1/{+parent}/.well-known/openid-configuration') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Clusters$WellKnown$Getopenidconfiguration + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The cluster (project, location, cluster id) to get the discovery document + * for. Specified in the format 'projects/x/locations/x/clusters/x'. + */ + parent?: string; + } + + export class Resource$Projects$Locations$Operations { constructor() {} diff --git a/src/apis/container/webpack.config.js b/src/apis/container/webpack.config.js new file mode 100644 index 00000000000..49151c10281 --- /dev/null +++ b/src/apis/container/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Container', + filename: 'container.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/containeranalysis/README.md b/src/apis/containeranalysis/README.md index 3b9fdc8839b..f34dc16f96c 100644 --- a/src/apis/containeranalysis/README.md +++ b/src/apis/containeranalysis/README.md @@ -11,17 +11,37 @@ $ npm install @google/containeranalysis ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/containeranalysis +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/containeranalysis.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/containeranalysis/index.ts b/src/apis/containeranalysis/index.ts index 2dcfb612fd2..407de6e632b 100644 --- a/src/apis/containeranalysis/index.ts +++ b/src/apis/containeranalysis/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {containeranalysis_v1alpha1} from './v1alpha1'; import {containeranalysis_v1beta1} from './v1beta1'; @@ -39,3 +39,6 @@ export function containeranalysis< containeranalysis_v1beta1.Options) { return getAPI('containeranalysis', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/containeranalysis/package.json b/src/apis/containeranalysis/package.json index 5a805276ee6..5b7cac1a11a 100644 --- a/src/apis/containeranalysis/package.json +++ b/src/apis/containeranalysis/package.json @@ -4,16 +4,18 @@ "description": "containeranalysis", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/containeranalysis/v1alpha1.ts b/src/apis/containeranalysis/v1alpha1.ts index 2e0d9a67e3f..56c09b5f41e 100644 --- a/src/apis/containeranalysis/v1alpha1.ts +++ b/src/apis/containeranalysis/v1alpha1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/containeranalysis/v1beta1.ts b/src/apis/containeranalysis/v1beta1.ts index 6b83f9ee87f..955b1ed53f6 100644 --- a/src/apis/containeranalysis/v1beta1.ts +++ b/src/apis/containeranalysis/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/containeranalysis/webpack.config.js b/src/apis/containeranalysis/webpack.config.js new file mode 100644 index 00000000000..e70d4d8c90c --- /dev/null +++ b/src/apis/containeranalysis/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Containeranalysis', + filename: 'containeranalysis.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/content/README.md b/src/apis/content/README.md index d6dd59fe61e..0b6f92e4781 100644 --- a/src/apis/content/README.md +++ b/src/apis/content/README.md @@ -11,17 +11,37 @@ $ npm install @google/content ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/content +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/content.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/content/index.ts b/src/apis/content/index.ts index 122e51bc474..f511ac2c7f4 100644 --- a/src/apis/content/index.ts +++ b/src/apis/content/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {content_v2} from './v2'; import {content_v2_1} from './v2.1'; @@ -32,3 +32,6 @@ export function content( versionOrOptions: 'v2_1'|content_v2_1.Options|'v2'|content_v2.Options) { return getAPI('content', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/content/package.json b/src/apis/content/package.json index 7f9889b2135..132cbc14924 100644 --- a/src/apis/content/package.json +++ b/src/apis/content/package.json @@ -4,16 +4,18 @@ "description": "content", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/content/v2.1.ts b/src/apis/content/v2.1.ts index 02f41b8a23b..2a32a80818e 100644 --- a/src/apis/content/v2.1.ts +++ b/src/apis/content/v2.1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/content/v2.ts b/src/apis/content/v2.ts index 14e57f91751..8efc7802525 100644 --- a/src/apis/content/v2.ts +++ b/src/apis/content/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/content/webpack.config.js b/src/apis/content/webpack.config.js new file mode 100644 index 00000000000..5f406383f7d --- /dev/null +++ b/src/apis/content/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Content', + filename: 'content.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/customsearch/README.md b/src/apis/customsearch/README.md index 0b479386ee1..edf1e3b2442 100644 --- a/src/apis/customsearch/README.md +++ b/src/apis/customsearch/README.md @@ -11,17 +11,37 @@ $ npm install @google/customsearch ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/customsearch +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/customsearch.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/customsearch/index.ts b/src/apis/customsearch/index.ts index 81346137132..2d124978008 100644 --- a/src/apis/customsearch/index.ts +++ b/src/apis/customsearch/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {customsearch_v1} from './v1'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function customsearch( this: GoogleConfigurable, versionOrOptions: 'v1'|customsearch_v1.Options) { return getAPI('customsearch', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/customsearch/package.json b/src/apis/customsearch/package.json index 41d87ee4e6f..bbc72440a96 100644 --- a/src/apis/customsearch/package.json +++ b/src/apis/customsearch/package.json @@ -4,16 +4,18 @@ "description": "customsearch", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/customsearch/v1.ts b/src/apis/customsearch/v1.ts index 5f923bac76b..1ba6904cbff 100644 --- a/src/apis/customsearch/v1.ts +++ b/src/apis/customsearch/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/customsearch/webpack.config.js b/src/apis/customsearch/webpack.config.js new file mode 100644 index 00000000000..69a7d63b70b --- /dev/null +++ b/src/apis/customsearch/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Customsearch', + filename: 'customsearch.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/dataflow/README.md b/src/apis/dataflow/README.md index 4c89f8bbaa1..f4fc2f10f43 100644 --- a/src/apis/dataflow/README.md +++ b/src/apis/dataflow/README.md @@ -11,17 +11,37 @@ $ npm install @google/dataflow ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/dataflow +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/dataflow.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/dataflow/index.ts b/src/apis/dataflow/index.ts index 3a45bf6f919..31854b97e5b 100644 --- a/src/apis/dataflow/index.ts +++ b/src/apis/dataflow/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {dataflow_v1b3} from './v1b3'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function dataflow( this: GoogleConfigurable, versionOrOptions: 'v1b3'|dataflow_v1b3.Options) { return getAPI('dataflow', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/dataflow/package.json b/src/apis/dataflow/package.json index 29c9e752bd9..73531fb3a4c 100644 --- a/src/apis/dataflow/package.json +++ b/src/apis/dataflow/package.json @@ -4,16 +4,18 @@ "description": "dataflow", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/dataflow/v1b3.ts b/src/apis/dataflow/v1b3.ts index fb257cc560f..542629c2b01 100644 --- a/src/apis/dataflow/v1b3.ts +++ b/src/apis/dataflow/v1b3.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/dataflow/webpack.config.js b/src/apis/dataflow/webpack.config.js new file mode 100644 index 00000000000..9452ea593e4 --- /dev/null +++ b/src/apis/dataflow/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Dataflow', + filename: 'dataflow.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/dataproc/README.md b/src/apis/dataproc/README.md index 2d8fd8f693e..bc682a83316 100644 --- a/src/apis/dataproc/README.md +++ b/src/apis/dataproc/README.md @@ -11,17 +11,37 @@ $ npm install @google/dataproc ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/dataproc +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/dataproc.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/dataproc/index.ts b/src/apis/dataproc/index.ts index f6dcab7734b..e68eb02c274 100644 --- a/src/apis/dataproc/index.ts +++ b/src/apis/dataproc/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {dataproc_v1} from './v1'; import {dataproc_v1beta2} from './v1beta2'; @@ -33,3 +33,6 @@ export function dataproc( dataproc_v1beta2.Options) { return getAPI('dataproc', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/dataproc/package.json b/src/apis/dataproc/package.json index 749d9defc78..d4fc031e980 100644 --- a/src/apis/dataproc/package.json +++ b/src/apis/dataproc/package.json @@ -4,16 +4,18 @@ "description": "dataproc", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/dataproc/v1.ts b/src/apis/dataproc/v1.ts index 0b289b079e0..4fb14b98523 100644 --- a/src/apis/dataproc/v1.ts +++ b/src/apis/dataproc/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/dataproc/v1beta2.ts b/src/apis/dataproc/v1beta2.ts index 49aabd729d0..ded9742e3b1 100644 --- a/src/apis/dataproc/v1beta2.ts +++ b/src/apis/dataproc/v1beta2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/dataproc/webpack.config.js b/src/apis/dataproc/webpack.config.js new file mode 100644 index 00000000000..1410552a066 --- /dev/null +++ b/src/apis/dataproc/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Dataproc', + filename: 'dataproc.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/datastore/README.md b/src/apis/datastore/README.md index 3d9f71aa7d9..436949d58d9 100644 --- a/src/apis/datastore/README.md +++ b/src/apis/datastore/README.md @@ -11,17 +11,37 @@ $ npm install @google/datastore ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/datastore +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/datastore.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/datastore/index.ts b/src/apis/datastore/index.ts index b8685de04ad..e425eb0a11a 100644 --- a/src/apis/datastore/index.ts +++ b/src/apis/datastore/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {datastore_v1} from './v1'; import {datastore_v1beta1} from './v1beta1'; import {datastore_v1beta3} from './v1beta3'; @@ -41,3 +41,6 @@ export function datastore< datastore_v1beta1.Options|'v1beta3'|datastore_v1beta3.Options) { return getAPI('datastore', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/datastore/package.json b/src/apis/datastore/package.json index c2472c41b2a..dbdd65b86e2 100644 --- a/src/apis/datastore/package.json +++ b/src/apis/datastore/package.json @@ -4,16 +4,18 @@ "description": "datastore", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/datastore/v1.ts b/src/apis/datastore/v1.ts index 33c2c1d6726..e374a4bad34 100644 --- a/src/apis/datastore/v1.ts +++ b/src/apis/datastore/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/datastore/v1beta1.ts b/src/apis/datastore/v1beta1.ts index 3259d294a2a..d369714934f 100644 --- a/src/apis/datastore/v1beta1.ts +++ b/src/apis/datastore/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/datastore/v1beta3.ts b/src/apis/datastore/v1beta3.ts index 9f2c423d847..17b611d5a64 100644 --- a/src/apis/datastore/v1beta3.ts +++ b/src/apis/datastore/v1beta3.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/datastore/webpack.config.js b/src/apis/datastore/webpack.config.js new file mode 100644 index 00000000000..1bf545795be --- /dev/null +++ b/src/apis/datastore/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Datastore', + filename: 'datastore.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/deploymentmanager/README.md b/src/apis/deploymentmanager/README.md index febda80bd50..098497aaf62 100644 --- a/src/apis/deploymentmanager/README.md +++ b/src/apis/deploymentmanager/README.md @@ -11,17 +11,37 @@ $ npm install @google/deploymentmanager ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/deploymentmanager +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/deploymentmanager.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/deploymentmanager/alpha.ts b/src/apis/deploymentmanager/alpha.ts index a569e1ca56c..548eb7921c9 100644 --- a/src/apis/deploymentmanager/alpha.ts +++ b/src/apis/deploymentmanager/alpha.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/deploymentmanager/index.ts b/src/apis/deploymentmanager/index.ts index 2291eb7befc..8c60c60fca5 100644 --- a/src/apis/deploymentmanager/index.ts +++ b/src/apis/deploymentmanager/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {deploymentmanager_alpha} from './alpha'; import {deploymentmanager_v2} from './v2'; import {deploymentmanager_v2beta} from './v2beta'; @@ -46,3 +46,6 @@ export function deploymentmanager< deploymentmanager_v2.Options|'v2beta'|deploymentmanager_v2beta.Options) { return getAPI('deploymentmanager', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/deploymentmanager/package.json b/src/apis/deploymentmanager/package.json index 7790149850d..1c19ce21798 100644 --- a/src/apis/deploymentmanager/package.json +++ b/src/apis/deploymentmanager/package.json @@ -4,16 +4,18 @@ "description": "deploymentmanager", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/deploymentmanager/v2.ts b/src/apis/deploymentmanager/v2.ts index c77f19c6d92..e089bfe8f8f 100644 --- a/src/apis/deploymentmanager/v2.ts +++ b/src/apis/deploymentmanager/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/deploymentmanager/v2beta.ts b/src/apis/deploymentmanager/v2beta.ts index 50133e5f0a1..9f8b3be84d1 100644 --- a/src/apis/deploymentmanager/v2beta.ts +++ b/src/apis/deploymentmanager/v2beta.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/deploymentmanager/webpack.config.js b/src/apis/deploymentmanager/webpack.config.js new file mode 100644 index 00000000000..686993ddcea --- /dev/null +++ b/src/apis/deploymentmanager/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Deploymentmanager', + filename: 'deploymentmanager.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/dfareporting/README.md b/src/apis/dfareporting/README.md index b95118c6d49..fe10d13789a 100644 --- a/src/apis/dfareporting/README.md +++ b/src/apis/dfareporting/README.md @@ -11,17 +11,37 @@ $ npm install @google/dfareporting ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/dfareporting +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/dfareporting.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/dfareporting/index.ts b/src/apis/dfareporting/index.ts index 0f49230d217..179f2266382 100644 --- a/src/apis/dfareporting/index.ts +++ b/src/apis/dfareporting/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {dfareporting_v3_1} from './v3.1'; import {dfareporting_v3_2} from './v3.2'; @@ -35,3 +35,6 @@ export function dfareporting< dfareporting_v3_2.Options) { return getAPI('dfareporting', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/dfareporting/package.json b/src/apis/dfareporting/package.json index 147b0a19d0b..4722795d227 100644 --- a/src/apis/dfareporting/package.json +++ b/src/apis/dfareporting/package.json @@ -4,16 +4,18 @@ "description": "dfareporting", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/dfareporting/v3.1.ts b/src/apis/dfareporting/v3.1.ts index 7a28b21eaf8..d5165e0ba4b 100644 --- a/src/apis/dfareporting/v3.1.ts +++ b/src/apis/dfareporting/v3.1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/dfareporting/v3.2.ts b/src/apis/dfareporting/v3.2.ts index ffc16c272f8..631f9da0ace 100644 --- a/src/apis/dfareporting/v3.2.ts +++ b/src/apis/dfareporting/v3.2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/dfareporting/webpack.config.js b/src/apis/dfareporting/webpack.config.js new file mode 100644 index 00000000000..b03fe1137f2 --- /dev/null +++ b/src/apis/dfareporting/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Dfareporting', + filename: 'dfareporting.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/dialogflow/README.md b/src/apis/dialogflow/README.md index ddc5689ed53..7ae316c02e2 100644 --- a/src/apis/dialogflow/README.md +++ b/src/apis/dialogflow/README.md @@ -11,17 +11,37 @@ $ npm install @google/dialogflow ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/dialogflow +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/dialogflow.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/dialogflow/index.ts b/src/apis/dialogflow/index.ts index 4d2d634a77e..a67f4520387 100644 --- a/src/apis/dialogflow/index.ts +++ b/src/apis/dialogflow/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {dialogflow_v2} from './v2'; import {dialogflow_v2beta1} from './v2beta1'; @@ -35,3 +35,6 @@ dialogflow( dialogflow_v2beta1.Options) { return getAPI('dialogflow', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/dialogflow/package.json b/src/apis/dialogflow/package.json index 5606e6e4134..002b8bfcea0 100644 --- a/src/apis/dialogflow/package.json +++ b/src/apis/dialogflow/package.json @@ -4,16 +4,18 @@ "description": "dialogflow", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/dialogflow/v2.ts b/src/apis/dialogflow/v2.ts index e614c452d84..a6f9a8dc2ee 100644 --- a/src/apis/dialogflow/v2.ts +++ b/src/apis/dialogflow/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -392,9 +392,10 @@ export namespace dialogflow_v2 { */ kind?: string; /** - * Required for all methods except `create` (`create` populates the name - * automatically. The unique identifier of the entity type. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * The unique identifier of the entity type. Required for + * EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes + * methods. Format: `projects/<Project + * ID>/agent/entityTypes/<Entity Type ID>`. */ name?: string; } @@ -535,9 +536,9 @@ export namespace dialogflow_v2 { */ mlEnabled?: boolean; /** - * Required for all methods except `create` (`create` populates the name - * automatically. The unique identifier of this intent. Format: - * `projects/<Project ID>/agent/intents/<Intent ID>`. + * The unique identifier of this intent. Required for Intents.UpdateIntent + * and Intents.BatchUpdateIntents methods. Format: `projects/<Project + * ID>/agent/intents/<Intent ID>`. */ name?: string; /** @@ -580,8 +581,7 @@ export namespace dialogflow_v2 { */ rootFollowupIntentName?: string; /** - * Optional. The collection of examples/templates that the agent is trained - * on. + * Optional. The collection of examples that the agent is trained on. */ trainingPhrases?: Schema$GoogleCloudDialogflowV2beta1IntentTrainingPhrase[]; /** @@ -1036,7 +1036,7 @@ export namespace dialogflow_v2 { value?: string; } /** - * Represents an example or template that the agent is trained on. + * Represents an example that the agent is trained on. */ export interface Schema$GoogleCloudDialogflowV2beta1IntentTrainingPhrase { /** @@ -1050,9 +1050,9 @@ export namespace dialogflow_v2 { */ parts?: Schema$GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart[]; /** - * Optional. Indicates how many times this example or template was added to - * the intent. Each time a developer adds an existing sample by editing an - * intent or training, this counter is increased. + * Optional. Indicates how many times this example was added to the intent. + * Each time a developer adds an existing sample by editing an intent or + * training, this counter is increased. */ timesAddedCount?: number; /** @@ -1075,8 +1075,8 @@ export namespace dialogflow_v2 { */ entityType?: string; /** - * Required. The text corresponding to the example or template, if there are - * no annotations. For annotated examples, it is the text for one of the + * Required. The text corresponding to the example, if there are no + * annotations. For annotated examples, it is the text for one of the * example's parts. */ text?: string; @@ -1198,7 +1198,8 @@ export namespace dialogflow_v2 { */ fulfillmentMessages?: Schema$GoogleCloudDialogflowV2beta1IntentMessage[]; /** - * The text to be pronounced to the user or shown on the screen. + * The text to be pronounced to the user or shown on the screen. Note: This + * is a legacy field, `fulfillment_messages` should be preferred. */ fulfillmentText?: string; /** @@ -1471,9 +1472,10 @@ export namespace dialogflow_v2 { */ kind?: string; /** - * Required for all methods except `create` (`create` populates the name - * automatically. The unique identifier of the entity type. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * The unique identifier of the entity type. Required for + * EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes + * methods. Format: `projects/<Project + * ID>/agent/entityTypes/<Entity Type ID>`. */ name?: string; } @@ -1671,9 +1673,9 @@ export namespace dialogflow_v2 { */ mlDisabled?: boolean; /** - * Required for all methods except `create` (`create` populates the name - * automatically. The unique identifier of this intent. Format: - * `projects/<Project ID>/agent/intents/<Intent ID>`. + * The unique identifier of this intent. Required for Intents.UpdateIntent + * and Intents.BatchUpdateIntents methods. Format: `projects/<Project + * ID>/agent/intents/<Intent ID>`. */ name?: string; /** @@ -1716,8 +1718,7 @@ export namespace dialogflow_v2 { */ rootFollowupIntentName?: string; /** - * Optional. The collection of examples/templates that the agent is trained - * on. + * Optional. The collection of examples that the agent is trained on. */ trainingPhrases?: Schema$GoogleCloudDialogflowV2IntentTrainingPhrase[]; /** @@ -2117,7 +2118,7 @@ export namespace dialogflow_v2 { value?: string; } /** - * Represents an example or template that the agent is trained on. + * Represents an example that the agent is trained on. */ export interface Schema$GoogleCloudDialogflowV2IntentTrainingPhrase { /** @@ -2131,9 +2132,9 @@ export namespace dialogflow_v2 { */ parts?: Schema$GoogleCloudDialogflowV2IntentTrainingPhrasePart[]; /** - * Optional. Indicates how many times this example or template was added to - * the intent. Each time a developer adds an existing sample by editing an - * intent or training, this counter is increased. + * Optional. Indicates how many times this example was added to the intent. + * Each time a developer adds an existing sample by editing an intent or + * training, this counter is increased. */ timesAddedCount?: number; /** @@ -2156,8 +2157,8 @@ export namespace dialogflow_v2 { */ entityType?: string; /** - * Required. The text corresponding to the example or template, if there are - * no annotations. For annotated examples, it is the text for one of the + * Required. The text corresponding to the example, if there are no + * annotations. For annotated examples, it is the text for one of the * example's parts. */ text?: string; @@ -2338,7 +2339,8 @@ export namespace dialogflow_v2 { */ fulfillmentMessages?: Schema$GoogleCloudDialogflowV2IntentMessage[]; /** - * The text to be pronounced to the user or shown on the screen. + * The text to be pronounced to the user or shown on the screen. Note: This + * is a legacy field, `fulfillment_messages` should be preferred. */ fulfillmentText?: string; /** @@ -2787,7 +2789,7 @@ export namespace dialogflow_v2 { /** * dialogflow.projects.agent.export * @desc Exports the specified agent to a ZIP file. Operation + * ExportAgentResponse> * @alias dialogflow.projects.agent.export * @memberOf! () * @@ -2864,8 +2866,7 @@ export namespace dialogflow_v2 { * @desc Imports the specified agent from a ZIP file. Uploads new intents and * entity types without deleting the existing ones. Intents and entity types * with the same name are replaced with the new versions from - * ImportAgentRequest. Operation + * ImportAgentRequest. Operation * @alias dialogflow.projects.agent.import * @memberOf! () * @@ -2902,7 +2903,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall /** * dialogflow.projects.agent.restore - * @desc Restores the specified agent from a ZIP file. Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. Operation + * @desc Restores the specified agent from a ZIP file. Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. Operation * @alias dialogflow.projects.agent.restore * @memberOf! () * @@ -3056,7 +3057,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall /** * dialogflow.projects.agent.train * @desc Trains the specified agent. Operation + * google.protobuf.Empty> * @alias dialogflow.projects.agent.train * @memberOf! () * @@ -3233,7 +3234,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall /** * dialogflow.projects.agent.entityTypes.batchDelete * @desc Deletes entity types in the specified agent. Operation + * google.protobuf.Empty> * @alias dialogflow.projects.agent.entityTypes.batchDelete * @memberOf! () * @@ -3310,8 +3311,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall /** * dialogflow.projects.agent.entityTypes.batchUpdate * @desc Updates/Creates multiple entity types in the specified agent. - * Operation + * Operation * @alias dialogflow.projects.agent.entityTypes.batchUpdate * @memberOf! () * @@ -3692,7 +3692,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall * * @param {object} params Parameters for request * @param {string=} params.languageCode Optional. The language of entity synonyms defined in `entity_type`. If not specified, the agent's default language is used. [More than a dozen languages](https://dialogflow.com/docs/reference/language) are supported. Note: languages must be enabled in the agent, before they can be used. - * @param {string} params.name Required for all methods except `create` (`create` populates the name automatically. The unique identifier of the entity type. Format: `projects//agent/entityTypes/`. + * @param {string} params.name The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Format: `projects//agent/entityTypes/`. * @param {string=} params.updateMask Optional. The mask to control which fields get updated. * @param {().GoogleCloudDialogflowV2EntityType} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -3903,9 +3903,10 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall */ languageCode?: string; /** - * Required for all methods except `create` (`create` populates the name - * automatically. The unique identifier of the entity type. Format: - * `projects//agent/entityTypes/`. + * The unique identifier of the entity type. Required for + * EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes + * methods. Format: `projects//agent/entityTypes/`. */ name?: string; /** @@ -4005,8 +4006,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall /** * dialogflow.projects.agent.entityTypes.entities.batchDelete * @desc Deletes entities in the specified entity type. Operation - * + * * @alias dialogflow.projects.agent.entityTypes.entities.batchDelete * @memberOf! () * @@ -4087,7 +4087,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall * @desc Updates or creates multiple entities in the specified entity type. * This method does not affect entities in the entity type that aren't * explicitly specified in the request. Operation + * google.protobuf.Empty> * @alias dialogflow.projects.agent.entityTypes.entities.batchUpdate * @memberOf! () * @@ -4462,7 +4462,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Required. The name of the intent to delete. If this intent has direct or indirect followup intents, we also delete them. Format: `projects//agent/intents/`. + * @param {string} params.name Required. The name of the intent to delete. If this intent has direct or indirect followup intents, we also delete them. Format: `projects//agent/intents/`. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object @@ -4680,7 +4680,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall * @param {object} params Parameters for request * @param {string=} params.intentView Optional. The resource view to apply to the returned intent. * @param {string=} params.languageCode Optional. The language of training phrases, parameters and rich messages defined in `intent`. If not specified, the agent's default language is used. [More than a dozen languages](https://dialogflow.com/docs/reference/language) are supported. Note: languages must be enabled in the agent, before they can be used. - * @param {string} params.name Required for all methods except `create` (`create` populates the name automatically. The unique identifier of this intent. Format: `projects//agent/intents/`. + * @param {string} params.name The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`. * @param {string=} params.updateMask Optional. The mask to control which fields get updated. * @param {().GoogleCloudDialogflowV2Intent} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -4823,7 +4823,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall /** * Required. The name of the intent to delete. If this intent has direct or - * indirect followup intents, we also delete them. Format: + * indirect followup intents, we also delete them. Format: * `projects//agent/intents/`. */ name?: string; @@ -4908,9 +4908,9 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall */ languageCode?: string; /** - * Required for all methods except `create` (`create` populates the name - * automatically. The unique identifier of this intent. Format: - * `projects//agent/intents/`. + * The unique identifier of this intent. Required for Intents.UpdateIntent + * and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`. */ name?: string; /** diff --git a/src/apis/dialogflow/v2beta1.ts b/src/apis/dialogflow/v2beta1.ts index 0cc2f4441eb..b752c3db0a9 100644 --- a/src/apis/dialogflow/v2beta1.ts +++ b/src/apis/dialogflow/v2beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -413,7 +413,12 @@ export namespace dialogflow_v2beta1 { */ alternativeQueryResults?: Schema$GoogleCloudDialogflowV2beta1QueryResult[]; /** - * The audio data bytes encoded as specified in the request. + * The audio data bytes encoded as specified in the request. Note: The + * output audio is generated based on the values of default platform text + * responses found in the `query_result.fulfillment_messages` field. If + * multiple default text responses exist, they will be concatenated when + * generating audio. If no default platform text responses exist, the + * generated audio content will be empty. */ outputAudio?: string; /** @@ -508,9 +513,10 @@ export namespace dialogflow_v2beta1 { */ kind?: string; /** - * Required for all methods except `create` (`create` populates the name - * automatically. The unique identifier of the entity type. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * The unique identifier of the entity type. Required for + * EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes + * methods. Format: `projects/<Project + * ID>/agent/entityTypes/<Entity Type ID>`. */ name?: string; } @@ -738,9 +744,9 @@ export namespace dialogflow_v2beta1 { */ mlEnabled?: boolean; /** - * Required for all methods except `create` (`create` populates the name - * automatically. The unique identifier of this intent. Format: - * `projects/<Project ID>/agent/intents/<Intent ID>`. + * The unique identifier of this intent. Required for Intents.UpdateIntent + * and Intents.BatchUpdateIntents methods. Format: `projects/<Project + * ID>/agent/intents/<Intent ID>`. */ name?: string; /** @@ -783,8 +789,7 @@ export namespace dialogflow_v2beta1 { */ rootFollowupIntentName?: string; /** - * Optional. The collection of examples/templates that the agent is trained - * on. + * Optional. The collection of examples that the agent is trained on. */ trainingPhrases?: Schema$GoogleCloudDialogflowV2beta1IntentTrainingPhrase[]; /** @@ -1248,7 +1253,7 @@ export namespace dialogflow_v2beta1 { value?: string; } /** - * Represents an example or template that the agent is trained on. + * Represents an example that the agent is trained on. */ export interface Schema$GoogleCloudDialogflowV2beta1IntentTrainingPhrase { /** @@ -1262,9 +1267,9 @@ export namespace dialogflow_v2beta1 { */ parts?: Schema$GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart[]; /** - * Optional. Indicates how many times this example or template was added to - * the intent. Each time a developer adds an existing sample by editing an - * intent or training, this counter is increased. + * Optional. Indicates how many times this example was added to the intent. + * Each time a developer adds an existing sample by editing an intent or + * training, this counter is increased. */ timesAddedCount?: number; /** @@ -1287,8 +1292,8 @@ export namespace dialogflow_v2beta1 { */ entityType?: string; /** - * Required. The text corresponding to the example or template, if there are - * no annotations. For annotated examples, it is the text for one of the + * Required. The text corresponding to the example, if there are no + * annotations. For annotated examples, it is the text for one of the * example's parts. */ text?: string; @@ -1608,7 +1613,8 @@ export namespace dialogflow_v2beta1 { */ fulfillmentMessages?: Schema$GoogleCloudDialogflowV2beta1IntentMessage[]; /** - * The text to be pronounced to the user or shown on the screen. + * The text to be pronounced to the user or shown on the screen. Note: This + * is a legacy field, `fulfillment_messages` should be preferred. */ fulfillmentText?: string; /** @@ -2002,9 +2008,10 @@ export namespace dialogflow_v2beta1 { */ kind?: string; /** - * Required for all methods except `create` (`create` populates the name - * automatically. The unique identifier of the entity type. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * The unique identifier of the entity type. Required for + * EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes + * methods. Format: `projects/<Project + * ID>/agent/entityTypes/<Entity Type ID>`. */ name?: string; } @@ -2127,9 +2134,9 @@ export namespace dialogflow_v2beta1 { */ mlDisabled?: boolean; /** - * Required for all methods except `create` (`create` populates the name - * automatically. The unique identifier of this intent. Format: - * `projects/<Project ID>/agent/intents/<Intent ID>`. + * The unique identifier of this intent. Required for Intents.UpdateIntent + * and Intents.BatchUpdateIntents methods. Format: `projects/<Project + * ID>/agent/intents/<Intent ID>`. */ name?: string; /** @@ -2172,8 +2179,7 @@ export namespace dialogflow_v2beta1 { */ rootFollowupIntentName?: string; /** - * Optional. The collection of examples/templates that the agent is trained - * on. + * Optional. The collection of examples that the agent is trained on. */ trainingPhrases?: Schema$GoogleCloudDialogflowV2IntentTrainingPhrase[]; /** @@ -2564,7 +2570,7 @@ export namespace dialogflow_v2beta1 { value?: string; } /** - * Represents an example or template that the agent is trained on. + * Represents an example that the agent is trained on. */ export interface Schema$GoogleCloudDialogflowV2IntentTrainingPhrase { /** @@ -2578,9 +2584,9 @@ export namespace dialogflow_v2beta1 { */ parts?: Schema$GoogleCloudDialogflowV2IntentTrainingPhrasePart[]; /** - * Optional. Indicates how many times this example or template was added to - * the intent. Each time a developer adds an existing sample by editing an - * intent or training, this counter is increased. + * Optional. Indicates how many times this example was added to the intent. + * Each time a developer adds an existing sample by editing an intent or + * training, this counter is increased. */ timesAddedCount?: number; /** @@ -2603,8 +2609,8 @@ export namespace dialogflow_v2beta1 { */ entityType?: string; /** - * Required. The text corresponding to the example or template, if there are - * no annotations. For annotated examples, it is the text for one of the + * Required. The text corresponding to the example, if there are no + * annotations. For annotated examples, it is the text for one of the * example's parts. */ text?: string; @@ -2668,7 +2674,8 @@ export namespace dialogflow_v2beta1 { */ fulfillmentMessages?: Schema$GoogleCloudDialogflowV2IntentMessage[]; /** - * The text to be pronounced to the user or shown on the screen. + * The text to be pronounced to the user or shown on the screen. Note: This + * is a legacy field, `fulfillment_messages` should be preferred. */ fulfillmentText?: string; /** @@ -3043,7 +3050,7 @@ export namespace dialogflow_v2beta1 { /** * dialogflow.projects.agent.export * @desc Exports the specified agent to a ZIP file. Operation + * ExportAgentResponse> * @alias dialogflow.projects.agent.export * @memberOf! () * @@ -3120,8 +3127,7 @@ export namespace dialogflow_v2beta1 { * @desc Imports the specified agent from a ZIP file. Uploads new intents and * entity types without deleting the existing ones. Intents and entity types * with the same name are replaced with the new versions from - * ImportAgentRequest. Operation + * ImportAgentRequest. Operation * @alias dialogflow.projects.agent.import * @memberOf! () * @@ -3158,7 +3164,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall /** * dialogflow.projects.agent.restore - * @desc Restores the specified agent from a ZIP file. Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. Operation + * @desc Restores the specified agent from a ZIP file. Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. Operation * @alias dialogflow.projects.agent.restore * @memberOf! () * @@ -3314,7 +3320,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall /** * dialogflow.projects.agent.train * @desc Trains the specified agent. Operation + * google.protobuf.Empty> * @alias dialogflow.projects.agent.train * @memberOf! () * @@ -3491,7 +3497,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall /** * dialogflow.projects.agent.entityTypes.batchDelete * @desc Deletes entity types in the specified agent. Operation + * google.protobuf.Empty> * @alias dialogflow.projects.agent.entityTypes.batchDelete * @memberOf! () * @@ -3568,8 +3574,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall /** * dialogflow.projects.agent.entityTypes.batchUpdate * @desc Updates/Creates multiple entity types in the specified agent. - * Operation + * Operation * @alias dialogflow.projects.agent.entityTypes.batchUpdate * @memberOf! () * @@ -3948,7 +3953,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall * * @param {object} params Parameters for request * @param {string=} params.languageCode Optional. The language of entity synonyms defined in `entity_type`. If not specified, the agent's default language is used. [More than a dozen languages](https://dialogflow.com/docs/reference/language) are supported. Note: languages must be enabled in the agent, before they can be used. - * @param {string} params.name Required for all methods except `create` (`create` populates the name automatically. The unique identifier of the entity type. Format: `projects//agent/entityTypes/`. + * @param {string} params.name The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Format: `projects//agent/entityTypes/`. * @param {string=} params.updateMask Optional. The mask to control which fields get updated. * @param {().GoogleCloudDialogflowV2beta1EntityType} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -4158,9 +4163,10 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall */ languageCode?: string; /** - * Required for all methods except `create` (`create` populates the name - * automatically. The unique identifier of the entity type. Format: - * `projects//agent/entityTypes/`. + * The unique identifier of the entity type. Required for + * EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes + * methods. Format: `projects//agent/entityTypes/`. */ name?: string; /** @@ -4260,8 +4266,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall /** * dialogflow.projects.agent.entityTypes.entities.batchDelete * @desc Deletes entities in the specified entity type. Operation - * + * * @alias dialogflow.projects.agent.entityTypes.entities.batchDelete * @memberOf! () * @@ -4342,7 +4347,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall * @desc Updates or creates multiple entities in the specified entity type. * This method does not affect entities in the entity type that aren't * explicitly specified in the request. Operation + * google.protobuf.Empty> * @alias dialogflow.projects.agent.entityTypes.entities.batchUpdate * @memberOf! () * @@ -6227,7 +6232,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall * @param {object} params Parameters for request * @param {string=} params.intentView Optional. The resource view to apply to the returned intent. * @param {string=} params.languageCode Optional. The language of training phrases, parameters and rich messages defined in `intent`. If not specified, the agent's default language is used. [More than a dozen languages](https://dialogflow.com/docs/reference/language) are supported. Note: languages must be enabled in the agent, before they can be used. - * @param {string} params.name Required for all methods except `create` (`create` populates the name automatically. The unique identifier of this intent. Format: `projects//agent/intents/`. + * @param {string} params.name The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`. * @param {string=} params.updateMask Optional. The mask to control which fields get updated. * @param {().GoogleCloudDialogflowV2beta1Intent} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -6459,9 +6464,9 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall */ languageCode?: string; /** - * Required for all methods except `create` (`create` populates the name - * automatically. The unique identifier of this intent. Format: - * `projects//agent/intents/`. + * The unique identifier of this intent. Required for Intents.UpdateIntent + * and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`. */ name?: string; /** diff --git a/src/apis/dialogflow/webpack.config.js b/src/apis/dialogflow/webpack.config.js new file mode 100644 index 00000000000..44b6fe38877 --- /dev/null +++ b/src/apis/dialogflow/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Dialogflow', + filename: 'dialogflow.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/digitalassetlinks/README.md b/src/apis/digitalassetlinks/README.md index 707e9f34086..12c79c38c04 100644 --- a/src/apis/digitalassetlinks/README.md +++ b/src/apis/digitalassetlinks/README.md @@ -11,17 +11,37 @@ $ npm install @google/digitalassetlinks ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/digitalassetlinks +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/digitalassetlinks.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/digitalassetlinks/index.ts b/src/apis/digitalassetlinks/index.ts index 89152be7e0e..e107b893035 100644 --- a/src/apis/digitalassetlinks/index.ts +++ b/src/apis/digitalassetlinks/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {digitalassetlinks_v1} from './v1'; export const VERSIONS = { @@ -29,3 +29,6 @@ export function digitalassetlinks( versionOrOptions: 'v1'|digitalassetlinks_v1.Options) { return getAPI('digitalassetlinks', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/digitalassetlinks/package.json b/src/apis/digitalassetlinks/package.json index a7cbbceac6a..7748abb83f5 100644 --- a/src/apis/digitalassetlinks/package.json +++ b/src/apis/digitalassetlinks/package.json @@ -4,16 +4,18 @@ "description": "digitalassetlinks", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/digitalassetlinks/v1.ts b/src/apis/digitalassetlinks/v1.ts index 3b9b1127f37..dde8eb998d0 100644 --- a/src/apis/digitalassetlinks/v1.ts +++ b/src/apis/digitalassetlinks/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/digitalassetlinks/webpack.config.js b/src/apis/digitalassetlinks/webpack.config.js new file mode 100644 index 00000000000..f51014ac87a --- /dev/null +++ b/src/apis/digitalassetlinks/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Digitalassetlinks', + filename: 'digitalassetlinks.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/discovery/README.md b/src/apis/discovery/README.md index a7eaadbdfb2..6d47237f254 100644 --- a/src/apis/discovery/README.md +++ b/src/apis/discovery/README.md @@ -11,17 +11,37 @@ $ npm install @google/discovery ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/discovery +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/discovery.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/discovery/index.ts b/src/apis/discovery/index.ts index 842d5b60d6e..63194d1e0e8 100644 --- a/src/apis/discovery/index.ts +++ b/src/apis/discovery/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {discovery_v1} from './v1'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function discovery( this: GoogleConfigurable, versionOrOptions: 'v1'|discovery_v1.Options) { return getAPI('discovery', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/discovery/package.json b/src/apis/discovery/package.json index bf2295a0d71..9165e53cbf3 100644 --- a/src/apis/discovery/package.json +++ b/src/apis/discovery/package.json @@ -4,16 +4,18 @@ "description": "discovery", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/discovery/v1.ts b/src/apis/discovery/v1.ts index 4cc415a192d..d30fec6f555 100644 --- a/src/apis/discovery/v1.ts +++ b/src/apis/discovery/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/discovery/webpack.config.js b/src/apis/discovery/webpack.config.js new file mode 100644 index 00000000000..2065e5aee7e --- /dev/null +++ b/src/apis/discovery/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Discovery', + filename: 'discovery.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/dlp/README.md b/src/apis/dlp/README.md index 4167b6bc109..8206de0ffd8 100644 --- a/src/apis/dlp/README.md +++ b/src/apis/dlp/README.md @@ -11,17 +11,37 @@ $ npm install @google/dlp ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/dlp +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/dlp.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/dlp/index.ts b/src/apis/dlp/index.ts index ff96197b733..81a9c203916 100644 --- a/src/apis/dlp/index.ts +++ b/src/apis/dlp/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {dlp_v2} from './v2'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function dlp( this: GoogleConfigurable, versionOrOptions: 'v2'|dlp_v2.Options) { return getAPI('dlp', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/dlp/package.json b/src/apis/dlp/package.json index 6aa5eaeb4c0..a35831d4f87 100644 --- a/src/apis/dlp/package.json +++ b/src/apis/dlp/package.json @@ -4,16 +4,18 @@ "description": "dlp", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/dlp/v2.ts b/src/apis/dlp/v2.ts index 6b59e8c8e1a..8c750151274 100644 --- a/src/apis/dlp/v2.ts +++ b/src/apis/dlp/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/dlp/webpack.config.js b/src/apis/dlp/webpack.config.js new file mode 100644 index 00000000000..886a74843d0 --- /dev/null +++ b/src/apis/dlp/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Dlp', + filename: 'dlp.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/dns/README.md b/src/apis/dns/README.md index e96ec71eccb..6ff97ea734b 100644 --- a/src/apis/dns/README.md +++ b/src/apis/dns/README.md @@ -11,17 +11,37 @@ $ npm install @google/dns ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/dns +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/dns.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/dns/index.ts b/src/apis/dns/index.ts index 9d61735d833..4b6d6b948fe 100644 --- a/src/apis/dns/index.ts +++ b/src/apis/dns/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {dns_v1} from './v1'; import {dns_v1beta2} from './v1beta2'; import {dns_v2beta1} from './v2beta1'; @@ -36,3 +36,6 @@ export function dns( dns_v1beta2.Options|'v2beta1'|dns_v2beta1.Options) { return getAPI('dns', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/dns/package.json b/src/apis/dns/package.json index 14eebaa5aa5..47a9a315670 100644 --- a/src/apis/dns/package.json +++ b/src/apis/dns/package.json @@ -4,16 +4,18 @@ "description": "dns", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/dns/v1.ts b/src/apis/dns/v1.ts index fe143d08712..039a6e36548 100644 --- a/src/apis/dns/v1.ts +++ b/src/apis/dns/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/dns/v1beta2.ts b/src/apis/dns/v1beta2.ts index 4a6bd5646e3..44a1b1149d1 100644 --- a/src/apis/dns/v1beta2.ts +++ b/src/apis/dns/v1beta2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/dns/v2beta1.ts b/src/apis/dns/v2beta1.ts index 021cf758898..fe5cbc4a369 100644 --- a/src/apis/dns/v2beta1.ts +++ b/src/apis/dns/v2beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/dns/webpack.config.js b/src/apis/dns/webpack.config.js new file mode 100644 index 00000000000..3c41aae0a65 --- /dev/null +++ b/src/apis/dns/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Dns', + filename: 'dns.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/doubleclickbidmanager/README.md b/src/apis/doubleclickbidmanager/README.md index 8aedb790eb7..029fe52c493 100644 --- a/src/apis/doubleclickbidmanager/README.md +++ b/src/apis/doubleclickbidmanager/README.md @@ -11,17 +11,37 @@ $ npm install @google/doubleclickbidmanager ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/doubleclickbidmanager +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/doubleclickbidmanager.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/doubleclickbidmanager/index.ts b/src/apis/doubleclickbidmanager/index.ts index 017f37358b3..0c0997439c3 100644 --- a/src/apis/doubleclickbidmanager/index.ts +++ b/src/apis/doubleclickbidmanager/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {doubleclickbidmanager_v1} from './v1'; export const VERSIONS = { @@ -31,3 +31,6 @@ doubleclickbidmanager( versionOrOptions: 'v1'|doubleclickbidmanager_v1.Options) { return getAPI('doubleclickbidmanager', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/doubleclickbidmanager/package.json b/src/apis/doubleclickbidmanager/package.json index c805d34971f..ddd9f01b774 100644 --- a/src/apis/doubleclickbidmanager/package.json +++ b/src/apis/doubleclickbidmanager/package.json @@ -4,16 +4,18 @@ "description": "doubleclickbidmanager", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/doubleclickbidmanager/v1.ts b/src/apis/doubleclickbidmanager/v1.ts index 770ca568efa..52451cdda89 100644 --- a/src/apis/doubleclickbidmanager/v1.ts +++ b/src/apis/doubleclickbidmanager/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/doubleclickbidmanager/webpack.config.js b/src/apis/doubleclickbidmanager/webpack.config.js new file mode 100644 index 00000000000..bf5bb2a8290 --- /dev/null +++ b/src/apis/doubleclickbidmanager/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Doubleclickbidmanager', + filename: 'doubleclickbidmanager.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/doubleclicksearch/README.md b/src/apis/doubleclicksearch/README.md index 58cd360c3e5..68538d727a8 100644 --- a/src/apis/doubleclicksearch/README.md +++ b/src/apis/doubleclicksearch/README.md @@ -11,17 +11,37 @@ $ npm install @google/doubleclicksearch ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/doubleclicksearch +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/doubleclicksearch.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/doubleclicksearch/index.ts b/src/apis/doubleclicksearch/index.ts index 983539dd8ec..e38adec20e1 100644 --- a/src/apis/doubleclicksearch/index.ts +++ b/src/apis/doubleclicksearch/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {doubleclicksearch_v2} from './v2'; export const VERSIONS = { @@ -29,3 +29,6 @@ export function doubleclicksearch( versionOrOptions: 'v2'|doubleclicksearch_v2.Options) { return getAPI('doubleclicksearch', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/doubleclicksearch/package.json b/src/apis/doubleclicksearch/package.json index 05c0b67233b..a327defa9d1 100644 --- a/src/apis/doubleclicksearch/package.json +++ b/src/apis/doubleclicksearch/package.json @@ -4,16 +4,18 @@ "description": "doubleclicksearch", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/doubleclicksearch/v2.ts b/src/apis/doubleclicksearch/v2.ts index 23993aec727..3b620764ec1 100644 --- a/src/apis/doubleclicksearch/v2.ts +++ b/src/apis/doubleclicksearch/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/doubleclicksearch/webpack.config.js b/src/apis/doubleclicksearch/webpack.config.js new file mode 100644 index 00000000000..743c21bf244 --- /dev/null +++ b/src/apis/doubleclicksearch/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Doubleclicksearch', + filename: 'doubleclicksearch.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/drive/README.md b/src/apis/drive/README.md index dc1185f7a49..584f3bcaa1c 100644 --- a/src/apis/drive/README.md +++ b/src/apis/drive/README.md @@ -11,17 +11,37 @@ $ npm install @google/drive ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/drive +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/drive.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/drive/index.ts b/src/apis/drive/index.ts index 32a0a7cf9c0..3ef6f184b1c 100644 --- a/src/apis/drive/index.ts +++ b/src/apis/drive/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {drive_v2} from './v2'; import {drive_v3} from './v3'; @@ -31,3 +31,6 @@ export function drive( versionOrOptions: 'v2'|drive_v2.Options|'v3'|drive_v3.Options) { return getAPI('drive', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/drive/package.json b/src/apis/drive/package.json index 31c29fa800b..14828e7f599 100644 --- a/src/apis/drive/package.json +++ b/src/apis/drive/package.json @@ -4,16 +4,18 @@ "description": "drive", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/drive/v2.ts b/src/apis/drive/v2.ts index c868a403302..618920c2c07 100644 --- a/src/apis/drive/v2.ts +++ b/src/apis/drive/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/drive/v3.ts b/src/apis/drive/v3.ts index 868b13cca65..c6ed01def1d 100644 --- a/src/apis/drive/v3.ts +++ b/src/apis/drive/v3.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/drive/webpack.config.js b/src/apis/drive/webpack.config.js new file mode 100644 index 00000000000..ce87023b8bf --- /dev/null +++ b/src/apis/drive/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Drive', + filename: 'drive.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/driveactivity/README.md b/src/apis/driveactivity/README.md index ced17c480a8..d8d2880227b 100644 --- a/src/apis/driveactivity/README.md +++ b/src/apis/driveactivity/README.md @@ -11,17 +11,37 @@ $ npm install @google/driveactivity ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/driveactivity +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/driveactivity.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/driveactivity/index.ts b/src/apis/driveactivity/index.ts index 0fd12644c5c..9c370e880cf 100644 --- a/src/apis/driveactivity/index.ts +++ b/src/apis/driveactivity/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {driveactivity_v2} from './v2'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function driveactivity( this: GoogleConfigurable, versionOrOptions: 'v2'|driveactivity_v2.Options) { return getAPI('driveactivity', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/driveactivity/package.json b/src/apis/driveactivity/package.json index 2f4af0d1a48..8ea116ebd38 100644 --- a/src/apis/driveactivity/package.json +++ b/src/apis/driveactivity/package.json @@ -4,16 +4,18 @@ "description": "driveactivity", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/driveactivity/v2.ts b/src/apis/driveactivity/v2.ts index c625395a48b..8f2bbc2bbff 100644 --- a/src/apis/driveactivity/v2.ts +++ b/src/apis/driveactivity/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/driveactivity/webpack.config.js b/src/apis/driveactivity/webpack.config.js new file mode 100644 index 00000000000..d80f22faef7 --- /dev/null +++ b/src/apis/driveactivity/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Driveactivity', + filename: 'driveactivity.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/file/README.md b/src/apis/file/README.md index 83b245b36ae..3a8784ecc28 100644 --- a/src/apis/file/README.md +++ b/src/apis/file/README.md @@ -11,17 +11,37 @@ $ npm install @google/file ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/file +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/file.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/file/index.ts b/src/apis/file/index.ts index 2388c1a18af..7adc329cae9 100644 --- a/src/apis/file/index.ts +++ b/src/apis/file/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {file_v1beta1} from './v1beta1'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function file( versionOrOptions: 'v1beta1'|file_v1beta1.Options) { return getAPI('file', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/file/package.json b/src/apis/file/package.json index e7e0d43c787..6707ea7170d 100644 --- a/src/apis/file/package.json +++ b/src/apis/file/package.json @@ -4,16 +4,18 @@ "description": "file", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/file/v1beta1.ts b/src/apis/file/v1beta1.ts index a60c027664b..791c267e05b 100644 --- a/src/apis/file/v1beta1.ts +++ b/src/apis/file/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/file/webpack.config.js b/src/apis/file/webpack.config.js new file mode 100644 index 00000000000..41a233655ae --- /dev/null +++ b/src/apis/file/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'File', + filename: 'file.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/firebasedynamiclinks/README.md b/src/apis/firebasedynamiclinks/README.md index 9183f663f36..a1efc02d9cf 100644 --- a/src/apis/firebasedynamiclinks/README.md +++ b/src/apis/firebasedynamiclinks/README.md @@ -11,17 +11,37 @@ $ npm install @google/firebasedynamiclinks ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/firebasedynamiclinks +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/firebasedynamiclinks.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/firebasedynamiclinks/index.ts b/src/apis/firebasedynamiclinks/index.ts index 4eddb96dd47..ae3c7a9d28a 100644 --- a/src/apis/firebasedynamiclinks/index.ts +++ b/src/apis/firebasedynamiclinks/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {firebasedynamiclinks_v1} from './v1'; export const VERSIONS = { @@ -30,3 +30,6 @@ firebasedynamiclinks( versionOrOptions: 'v1'|firebasedynamiclinks_v1.Options) { return getAPI('firebasedynamiclinks', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/firebasedynamiclinks/package.json b/src/apis/firebasedynamiclinks/package.json index 52e2eae6c48..15c07d6adea 100644 --- a/src/apis/firebasedynamiclinks/package.json +++ b/src/apis/firebasedynamiclinks/package.json @@ -4,16 +4,18 @@ "description": "firebasedynamiclinks", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/firebasedynamiclinks/v1.ts b/src/apis/firebasedynamiclinks/v1.ts index f989b8b2122..95a6b5adfa4 100644 --- a/src/apis/firebasedynamiclinks/v1.ts +++ b/src/apis/firebasedynamiclinks/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/firebasedynamiclinks/webpack.config.js b/src/apis/firebasedynamiclinks/webpack.config.js new file mode 100644 index 00000000000..6e1692a0d8d --- /dev/null +++ b/src/apis/firebasedynamiclinks/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Firebasedynamiclinks', + filename: 'firebasedynamiclinks.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/firebasehosting/README.md b/src/apis/firebasehosting/README.md index c6c2fec6d75..806b6af81ef 100644 --- a/src/apis/firebasehosting/README.md +++ b/src/apis/firebasehosting/README.md @@ -11,17 +11,37 @@ $ npm install @google/firebasehosting ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/firebasehosting +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/firebasehosting.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/firebasehosting/index.ts b/src/apis/firebasehosting/index.ts index 8d92038451a..9c3c5e6c9e0 100644 --- a/src/apis/firebasehosting/index.ts +++ b/src/apis/firebasehosting/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {firebasehosting_v1beta1} from './v1beta1'; export const VERSIONS = { @@ -29,3 +29,6 @@ export function firebasehosting( versionOrOptions: 'v1beta1'|firebasehosting_v1beta1.Options) { return getAPI('firebasehosting', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/firebasehosting/package.json b/src/apis/firebasehosting/package.json index 8586c840f57..2d6f2e195ae 100644 --- a/src/apis/firebasehosting/package.json +++ b/src/apis/firebasehosting/package.json @@ -4,16 +4,18 @@ "description": "firebasehosting", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/firebasehosting/v1beta1.ts b/src/apis/firebasehosting/v1beta1.ts index 67d8e0d72c4..11a379194d0 100644 --- a/src/apis/firebasehosting/v1beta1.ts +++ b/src/apis/firebasehosting/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -85,8 +85,9 @@ export namespace firebasehosting_v1beta1 { /** * Firebase Hosting API * - * The Firebase Hosting REST API enables programmatic custom deployment for - * releasing versions of your Firebase hosted content and configuration files. + * The Firebase Hosting REST API enables programmatic and customizable + * deployments to your Firebase-hosted sites. Use this REST API to deploy new + * or updated hosting configurations and content files. * * @example * const {google} = require('googleapis'); diff --git a/src/apis/firebasehosting/webpack.config.js b/src/apis/firebasehosting/webpack.config.js new file mode 100644 index 00000000000..40edadbc853 --- /dev/null +++ b/src/apis/firebasehosting/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Firebasehosting', + filename: 'firebasehosting.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/firebaserules/README.md b/src/apis/firebaserules/README.md index 52c013e4995..e4cbfe96f93 100644 --- a/src/apis/firebaserules/README.md +++ b/src/apis/firebaserules/README.md @@ -11,17 +11,37 @@ $ npm install @google/firebaserules ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/firebaserules +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/firebaserules.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/firebaserules/index.ts b/src/apis/firebaserules/index.ts index 6de70101462..77fa800d1ce 100644 --- a/src/apis/firebaserules/index.ts +++ b/src/apis/firebaserules/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {firebaserules_v1} from './v1'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function firebaserules( this: GoogleConfigurable, versionOrOptions: 'v1'|firebaserules_v1.Options) { return getAPI('firebaserules', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/firebaserules/package.json b/src/apis/firebaserules/package.json index adb4e798cde..4d2c977d287 100644 --- a/src/apis/firebaserules/package.json +++ b/src/apis/firebaserules/package.json @@ -4,16 +4,18 @@ "description": "firebaserules", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/firebaserules/v1.ts b/src/apis/firebaserules/v1.ts index c414b52d6f7..98cef40ec3d 100644 --- a/src/apis/firebaserules/v1.ts +++ b/src/apis/firebaserules/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/firebaserules/webpack.config.js b/src/apis/firebaserules/webpack.config.js new file mode 100644 index 00000000000..fa516062b99 --- /dev/null +++ b/src/apis/firebaserules/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Firebaserules', + filename: 'firebaserules.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/firestore/README.md b/src/apis/firestore/README.md index fcb6c041580..ab05dedecd5 100644 --- a/src/apis/firestore/README.md +++ b/src/apis/firestore/README.md @@ -11,17 +11,37 @@ $ npm install @google/firestore ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/firestore +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/firestore.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/firestore/index.ts b/src/apis/firestore/index.ts index 690edac5ef0..5fd4b8265c6 100644 --- a/src/apis/firestore/index.ts +++ b/src/apis/firestore/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {firestore_v1} from './v1'; import {firestore_v1beta1} from './v1beta1'; import {firestore_v1beta2} from './v1beta2'; @@ -41,3 +41,6 @@ export function firestore< firestore_v1beta1.Options|'v1beta2'|firestore_v1beta2.Options) { return getAPI('firestore', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/firestore/package.json b/src/apis/firestore/package.json index ab8e6595d0a..8e42e344ca0 100644 --- a/src/apis/firestore/package.json +++ b/src/apis/firestore/package.json @@ -4,16 +4,18 @@ "description": "firestore", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/firestore/v1.ts b/src/apis/firestore/v1.ts index ac41e5a0d13..a3d057640a2 100644 --- a/src/apis/firestore/v1.ts +++ b/src/apis/firestore/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/firestore/v1beta1.ts b/src/apis/firestore/v1beta1.ts index f761ecb8df0..4d431db6abf 100644 --- a/src/apis/firestore/v1beta1.ts +++ b/src/apis/firestore/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/firestore/v1beta2.ts b/src/apis/firestore/v1beta2.ts index ec57d2ceb23..494144bffbf 100644 --- a/src/apis/firestore/v1beta2.ts +++ b/src/apis/firestore/v1beta2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/firestore/webpack.config.js b/src/apis/firestore/webpack.config.js new file mode 100644 index 00000000000..0e9e0017d9c --- /dev/null +++ b/src/apis/firestore/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Firestore', + filename: 'firestore.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/fitness/README.md b/src/apis/fitness/README.md index ccf2f84722b..1102dd07d2c 100644 --- a/src/apis/fitness/README.md +++ b/src/apis/fitness/README.md @@ -11,17 +11,37 @@ $ npm install @google/fitness ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/fitness +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/fitness.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/fitness/index.ts b/src/apis/fitness/index.ts index ec8fd1ddd3d..d5bc8bbc061 100644 --- a/src/apis/fitness/index.ts +++ b/src/apis/fitness/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {fitness_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function fitness( this: GoogleConfigurable, versionOrOptions: 'v1'|fitness_v1.Options) { return getAPI('fitness', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/fitness/package.json b/src/apis/fitness/package.json index 8c20d4597f7..ddd1f10691c 100644 --- a/src/apis/fitness/package.json +++ b/src/apis/fitness/package.json @@ -4,16 +4,18 @@ "description": "fitness", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/fitness/v1.ts b/src/apis/fitness/v1.ts index 777d4ae21f1..5fd70699f00 100644 --- a/src/apis/fitness/v1.ts +++ b/src/apis/fitness/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -183,9 +183,9 @@ export namespace fitness_v1 { */ endTimeMillis?: string; /** - * A list of acceptable data quality standards. Only data points which - * conform to at least one of the specified data quality standards will be - * returned. If the list is empty, all data points are returned. + * DO NOT POPULATE THIS FIELD. As data quality standards are deprecated, + * filling it in will result in no data sources being returned. It will be + * removed in a future version entirely. */ filteredDataQualityStandard?: string[]; /** @@ -330,7 +330,7 @@ export namespace fitness_v1 { /** * The largest end time of all data points in this possibly partial * representation of the dataset. Time is in nanoseconds from epoch. This - * should also match the first part of the dataset identifier. + * should also match the second part of the dataset identifier. */ maxEndTimeNs?: string; /** @@ -376,8 +376,9 @@ export namespace fitness_v1 { */ application?: Schema$Application; /** - * DO NOT USE THIS FIELD. It is never populated in responses from the - * platform, and is ignored in queries. + * DO NOT POPULATE THIS FIELD. It is never populated in responses from the + * platform, and is ignored in queries. It will be removed in a future + * version entirely. */ dataQualityStandard?: string[]; /** diff --git a/src/apis/fitness/webpack.config.js b/src/apis/fitness/webpack.config.js new file mode 100644 index 00000000000..51039488dce --- /dev/null +++ b/src/apis/fitness/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Fitness', + filename: 'fitness.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/fusiontables/README.md b/src/apis/fusiontables/README.md index 65152f60193..c2f47a0fc4d 100644 --- a/src/apis/fusiontables/README.md +++ b/src/apis/fusiontables/README.md @@ -11,17 +11,37 @@ $ npm install @google/fusiontables ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/fusiontables +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/fusiontables.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/fusiontables/index.ts b/src/apis/fusiontables/index.ts index 983f0416451..9880a3005b3 100644 --- a/src/apis/fusiontables/index.ts +++ b/src/apis/fusiontables/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {fusiontables_v1} from './v1'; import {fusiontables_v2} from './v2'; @@ -35,3 +35,6 @@ fusiontables( fusiontables_v2.Options) { return getAPI('fusiontables', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/fusiontables/package.json b/src/apis/fusiontables/package.json index 0faf108055c..b56daeb9f4b 100644 --- a/src/apis/fusiontables/package.json +++ b/src/apis/fusiontables/package.json @@ -4,16 +4,18 @@ "description": "fusiontables", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/fusiontables/v1.ts b/src/apis/fusiontables/v1.ts index 0a9bddae475..0918c19855f 100644 --- a/src/apis/fusiontables/v1.ts +++ b/src/apis/fusiontables/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/fusiontables/v2.ts b/src/apis/fusiontables/v2.ts index a5166f9b1ff..7ab698e152c 100644 --- a/src/apis/fusiontables/v2.ts +++ b/src/apis/fusiontables/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/fusiontables/webpack.config.js b/src/apis/fusiontables/webpack.config.js new file mode 100644 index 00000000000..346cf82fb97 --- /dev/null +++ b/src/apis/fusiontables/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Fusiontables', + filename: 'fusiontables.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/games/README.md b/src/apis/games/README.md index 392326c461b..e03ab6a78ac 100644 --- a/src/apis/games/README.md +++ b/src/apis/games/README.md @@ -11,17 +11,37 @@ $ npm install @google/games ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/games +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/games.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/games/index.ts b/src/apis/games/index.ts index f99bafe62da..02763c2bb84 100644 --- a/src/apis/games/index.ts +++ b/src/apis/games/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {games_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function games( this: GoogleConfigurable, versionOrOptions: 'v1'|games_v1.Options) { return getAPI('games', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/games/package.json b/src/apis/games/package.json index 577aa710a26..648b5c8e780 100644 --- a/src/apis/games/package.json +++ b/src/apis/games/package.json @@ -4,16 +4,18 @@ "description": "games", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/games/v1.ts b/src/apis/games/v1.ts index 17571a90be7..024810171a8 100644 --- a/src/apis/games/v1.ts +++ b/src/apis/games/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/games/webpack.config.js b/src/apis/games/webpack.config.js new file mode 100644 index 00000000000..0a860a38fb3 --- /dev/null +++ b/src/apis/games/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Games', + filename: 'games.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/gamesConfiguration/README.md b/src/apis/gamesConfiguration/README.md index ac28a849bf7..e225e6959d5 100644 --- a/src/apis/gamesConfiguration/README.md +++ b/src/apis/gamesConfiguration/README.md @@ -11,17 +11,37 @@ $ npm install @google/gamesConfiguration ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/gamesConfiguration +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/gamesConfiguration.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/gamesConfiguration/index.ts b/src/apis/gamesConfiguration/index.ts index 17cbcc5ea3c..0f6ff0658f1 100644 --- a/src/apis/gamesConfiguration/index.ts +++ b/src/apis/gamesConfiguration/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {gamesConfiguration_v1configuration} from './v1configuration'; export const VERSIONS = { @@ -32,3 +32,6 @@ gamesConfiguration( gamesConfiguration_v1configuration.Options) { return getAPI('gamesConfiguration', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/gamesConfiguration/package.json b/src/apis/gamesConfiguration/package.json index b4d22b4ee70..0e483e34c36 100644 --- a/src/apis/gamesConfiguration/package.json +++ b/src/apis/gamesConfiguration/package.json @@ -4,16 +4,18 @@ "description": "gamesConfiguration", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/gamesConfiguration/v1configuration.ts b/src/apis/gamesConfiguration/v1configuration.ts index 888fb2fae7c..8d8135814d3 100644 --- a/src/apis/gamesConfiguration/v1configuration.ts +++ b/src/apis/gamesConfiguration/v1configuration.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/gamesConfiguration/webpack.config.js b/src/apis/gamesConfiguration/webpack.config.js new file mode 100644 index 00000000000..f3fa91e7208 --- /dev/null +++ b/src/apis/gamesConfiguration/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Gamesconfiguration', + filename: 'gamesConfiguration.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/gamesManagement/README.md b/src/apis/gamesManagement/README.md index 2916edbaca8..19b0e1ee07b 100644 --- a/src/apis/gamesManagement/README.md +++ b/src/apis/gamesManagement/README.md @@ -11,17 +11,37 @@ $ npm install @google/gamesManagement ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/gamesManagement +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/gamesManagement.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/gamesManagement/index.ts b/src/apis/gamesManagement/index.ts index fe5e165644f..0b0223296d9 100644 --- a/src/apis/gamesManagement/index.ts +++ b/src/apis/gamesManagement/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {gamesManagement_v1management} from './v1management'; export const VERSIONS = { @@ -30,3 +30,6 @@ gamesManagement( versionOrOptions: 'v1management'|gamesManagement_v1management.Options) { return getAPI('gamesManagement', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/gamesManagement/package.json b/src/apis/gamesManagement/package.json index f1a1588f5f0..3b32326b0fd 100644 --- a/src/apis/gamesManagement/package.json +++ b/src/apis/gamesManagement/package.json @@ -4,16 +4,18 @@ "description": "gamesManagement", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/gamesManagement/v1management.ts b/src/apis/gamesManagement/v1management.ts index 44f8bde9951..10928d77e7d 100644 --- a/src/apis/gamesManagement/v1management.ts +++ b/src/apis/gamesManagement/v1management.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/gamesManagement/webpack.config.js b/src/apis/gamesManagement/webpack.config.js new file mode 100644 index 00000000000..514af405b32 --- /dev/null +++ b/src/apis/gamesManagement/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Gamesmanagement', + filename: 'gamesManagement.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/genomics/README.md b/src/apis/genomics/README.md index a771283a7fd..1ee2848a9a7 100644 --- a/src/apis/genomics/README.md +++ b/src/apis/genomics/README.md @@ -11,17 +11,37 @@ $ npm install @google/genomics ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/genomics +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/genomics.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/genomics/index.ts b/src/apis/genomics/index.ts index e7f1bb30fea..edf85622815 100644 --- a/src/apis/genomics/index.ts +++ b/src/apis/genomics/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {genomics_v1} from './v1'; import {genomics_v1alpha2} from './v1alpha2'; import {genomics_v2alpha1} from './v2alpha1'; @@ -40,3 +40,6 @@ export function genomics< genomics_v1alpha2.Options|'v2alpha1'|genomics_v2alpha1.Options) { return getAPI('genomics', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/genomics/package.json b/src/apis/genomics/package.json index e30bd8c59ad..c5a4b1809a8 100644 --- a/src/apis/genomics/package.json +++ b/src/apis/genomics/package.json @@ -4,16 +4,18 @@ "description": "genomics", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/genomics/v1.ts b/src/apis/genomics/v1.ts index 91a9966ef3a..1ef92b2779d 100644 --- a/src/apis/genomics/v1.ts +++ b/src/apis/genomics/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/genomics/v1alpha2.ts b/src/apis/genomics/v1alpha2.ts index 4407fa129ee..0b11c8bb1ea 100644 --- a/src/apis/genomics/v1alpha2.ts +++ b/src/apis/genomics/v1alpha2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/genomics/v2alpha1.ts b/src/apis/genomics/v2alpha1.ts index 14c74e3ebca..dc8da08fff4 100644 --- a/src/apis/genomics/v2alpha1.ts +++ b/src/apis/genomics/v2alpha1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/genomics/webpack.config.js b/src/apis/genomics/webpack.config.js new file mode 100644 index 00000000000..ed9b4960e3b --- /dev/null +++ b/src/apis/genomics/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Genomics', + filename: 'genomics.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/gmail/README.md b/src/apis/gmail/README.md index eeee4c31e4f..a771c7e7832 100644 --- a/src/apis/gmail/README.md +++ b/src/apis/gmail/README.md @@ -11,17 +11,37 @@ $ npm install @google/gmail ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/gmail +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/gmail.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/gmail/index.ts b/src/apis/gmail/index.ts index bf1f5231dd2..b871b15536e 100644 --- a/src/apis/gmail/index.ts +++ b/src/apis/gmail/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {gmail_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function gmail( this: GoogleConfigurable, versionOrOptions: 'v1'|gmail_v1.Options) { return getAPI('gmail', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/gmail/package.json b/src/apis/gmail/package.json index 414cb9a36cd..df813ed26cf 100644 --- a/src/apis/gmail/package.json +++ b/src/apis/gmail/package.json @@ -4,16 +4,18 @@ "description": "gmail", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/gmail/v1.ts b/src/apis/gmail/v1.ts index 8c68107b8ca..697aa7a4b57 100644 --- a/src/apis/gmail/v1.ts +++ b/src/apis/gmail/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/gmail/webpack.config.js b/src/apis/gmail/webpack.config.js new file mode 100644 index 00000000000..c686a7dd6f5 --- /dev/null +++ b/src/apis/gmail/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Gmail', + filename: 'gmail.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/groupsmigration/README.md b/src/apis/groupsmigration/README.md index 6a1853430f4..8ab96be0a8f 100644 --- a/src/apis/groupsmigration/README.md +++ b/src/apis/groupsmigration/README.md @@ -11,17 +11,37 @@ $ npm install @google/groupsmigration ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/groupsmigration +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/groupsmigration.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/groupsmigration/index.ts b/src/apis/groupsmigration/index.ts index ebaac40aad0..5da2f68dc5d 100644 --- a/src/apis/groupsmigration/index.ts +++ b/src/apis/groupsmigration/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {groupsmigration_v1} from './v1'; export const VERSIONS = { @@ -29,3 +29,6 @@ export function groupsmigration( versionOrOptions: 'v1'|groupsmigration_v1.Options) { return getAPI('groupsmigration', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/groupsmigration/package.json b/src/apis/groupsmigration/package.json index 3435919b758..25a133ebc48 100644 --- a/src/apis/groupsmigration/package.json +++ b/src/apis/groupsmigration/package.json @@ -4,16 +4,18 @@ "description": "groupsmigration", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/groupsmigration/v1.ts b/src/apis/groupsmigration/v1.ts index b011554bbf6..6a110bf4232 100644 --- a/src/apis/groupsmigration/v1.ts +++ b/src/apis/groupsmigration/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/groupsmigration/webpack.config.js b/src/apis/groupsmigration/webpack.config.js new file mode 100644 index 00000000000..14c893c9450 --- /dev/null +++ b/src/apis/groupsmigration/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Groupsmigration', + filename: 'groupsmigration.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/groupssettings/README.md b/src/apis/groupssettings/README.md index 7a8c0900083..dd298124a25 100644 --- a/src/apis/groupssettings/README.md +++ b/src/apis/groupssettings/README.md @@ -11,17 +11,37 @@ $ npm install @google/groupssettings ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/groupssettings +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/groupssettings.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/groupssettings/index.ts b/src/apis/groupssettings/index.ts index 5915d8bbc17..fd324bf96fa 100644 --- a/src/apis/groupssettings/index.ts +++ b/src/apis/groupssettings/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {groupssettings_v1} from './v1'; export const VERSIONS = { @@ -28,3 +28,6 @@ export function groupssettings( versionOrOptions: 'v1'|groupssettings_v1.Options) { return getAPI('groupssettings', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/groupssettings/package.json b/src/apis/groupssettings/package.json index 7125bd8c036..62e4904cb85 100644 --- a/src/apis/groupssettings/package.json +++ b/src/apis/groupssettings/package.json @@ -4,16 +4,18 @@ "description": "groupssettings", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/groupssettings/v1.ts b/src/apis/groupssettings/v1.ts index 1bc59a32847..26f696e9221 100644 --- a/src/apis/groupssettings/v1.ts +++ b/src/apis/groupssettings/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/groupssettings/webpack.config.js b/src/apis/groupssettings/webpack.config.js new file mode 100644 index 00000000000..e0dd2bbb195 --- /dev/null +++ b/src/apis/groupssettings/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Groupssettings', + filename: 'groupssettings.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/iam/README.md b/src/apis/iam/README.md index 1da089d2343..4bec826353c 100644 --- a/src/apis/iam/README.md +++ b/src/apis/iam/README.md @@ -11,17 +11,37 @@ $ npm install @google/iam ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/iam +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/iam.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/iam/index.ts b/src/apis/iam/index.ts index 2e8c8ebe4a2..15d3b940f90 100644 --- a/src/apis/iam/index.ts +++ b/src/apis/iam/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {iam_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function iam( this: GoogleConfigurable, versionOrOptions: 'v1'|iam_v1.Options) { return getAPI('iam', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/iam/package.json b/src/apis/iam/package.json index ca8235b7a0b..4104453672d 100644 --- a/src/apis/iam/package.json +++ b/src/apis/iam/package.json @@ -4,16 +4,18 @@ "description": "iam", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/iam/v1.ts b/src/apis/iam/v1.ts index c6cfcd850f0..0942fb2acf3 100644 --- a/src/apis/iam/v1.ts +++ b/src/apis/iam/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -473,6 +473,13 @@ export namespace iam_v1 { */ nextPageToken?: string; } + /** + * The patch service account request. + */ + export interface Schema$PatchServiceAccountRequest { + serviceAccount?: Schema$ServiceAccount; + updateMask?: string; + } /** * A permission which can be included by a role. */ @@ -2614,6 +2621,76 @@ export namespace iam_v1 { } + /** + * iam.projects.serviceAccounts.patch + * @desc Patches a ServiceAccount. Currently, only the following fields are + * updatable: `display_name` and `description`. Only fields specified in + * the request are garaunteed to be returned in the response. Other fields + * in the response may be empty. Note: The field mask is required. + * @alias iam.projects.serviceAccounts.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The resource name of the service account in the following format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Requests using `-` as a wildcard for the `PROJECT_ID` will infer the project from the `account` and the `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. In responses the resource name will always be in the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. + * @param {().PatchServiceAccountRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + patch( + params?: Params$Resource$Projects$Serviceaccounts$Patch, + options?: MethodOptions): GaxiosPromise; + patch( + params: Params$Resource$Projects$Serviceaccounts$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Serviceaccounts$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Serviceaccounts$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Serviceaccounts$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Serviceaccounts$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** * iam.projects.serviceAccounts.setIamPolicy * @desc Sets the IAM access control policy for a ServiceAccount. @@ -3054,6 +3131,28 @@ export namespace iam_v1 { */ pageToken?: string; } + export interface Params$Resource$Projects$Serviceaccounts$Patch extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the service account in the following format: + * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Requests using `-` as + * a wildcard for the `PROJECT_ID` will infer the project from the `account` + * and the `ACCOUNT` value can be the `email` address or the `unique_id` of + * the service account. In responses the resource name will always be in + * the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$PatchServiceAccountRequest; + } export interface Params$Resource$Projects$Serviceaccounts$Setiampolicy extends StandardParameters { /** diff --git a/src/apis/iam/webpack.config.js b/src/apis/iam/webpack.config.js new file mode 100644 index 00000000000..a8edb1eaa2a --- /dev/null +++ b/src/apis/iam/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Iam', + filename: 'iam.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/iamcredentials/README.md b/src/apis/iamcredentials/README.md index 16c09fe8b53..a4e678b6489 100644 --- a/src/apis/iamcredentials/README.md +++ b/src/apis/iamcredentials/README.md @@ -11,17 +11,37 @@ $ npm install @google/iamcredentials ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/iamcredentials +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/iamcredentials.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/iamcredentials/index.ts b/src/apis/iamcredentials/index.ts index f51eae21f62..b38564a225b 100644 --- a/src/apis/iamcredentials/index.ts +++ b/src/apis/iamcredentials/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {iamcredentials_v1} from './v1'; export const VERSIONS = { @@ -28,3 +28,6 @@ export function iamcredentials( versionOrOptions: 'v1'|iamcredentials_v1.Options) { return getAPI('iamcredentials', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/iamcredentials/package.json b/src/apis/iamcredentials/package.json index 1a65490ff72..3e628bf664a 100644 --- a/src/apis/iamcredentials/package.json +++ b/src/apis/iamcredentials/package.json @@ -4,16 +4,18 @@ "description": "iamcredentials", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/iamcredentials/v1.ts b/src/apis/iamcredentials/v1.ts index cbe60c94a1e..59782216884 100644 --- a/src/apis/iamcredentials/v1.ts +++ b/src/apis/iamcredentials/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/iamcredentials/webpack.config.js b/src/apis/iamcredentials/webpack.config.js new file mode 100644 index 00000000000..a975931466f --- /dev/null +++ b/src/apis/iamcredentials/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Iamcredentials', + filename: 'iamcredentials.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/iap/README.md b/src/apis/iap/README.md index 86a71c654ce..95ead68ab80 100644 --- a/src/apis/iap/README.md +++ b/src/apis/iap/README.md @@ -11,17 +11,37 @@ $ npm install @google/iap ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/iap +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/iap.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/iap/index.ts b/src/apis/iap/index.ts index d777435f8c6..1c12b631481 100644 --- a/src/apis/iap/index.ts +++ b/src/apis/iap/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {iap_v1} from './v1'; import {iap_v1beta1} from './v1beta1'; @@ -31,3 +31,6 @@ export function iap( versionOrOptions: 'v1'|iap_v1.Options|'v1beta1'|iap_v1beta1.Options) { return getAPI('iap', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/iap/package.json b/src/apis/iap/package.json index f168d53f606..82b093c2931 100644 --- a/src/apis/iap/package.json +++ b/src/apis/iap/package.json @@ -4,16 +4,18 @@ "description": "iap", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/iap/v1.ts b/src/apis/iap/v1.ts index de6708eb89d..e7775f9ee29 100644 --- a/src/apis/iap/v1.ts +++ b/src/apis/iap/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -98,12 +98,12 @@ export namespace iap_v1 { * @param {object=} options Options for Iap */ export class Iap { - projects: Resource$Projects; + v1: Resource$V1; constructor(options: GlobalOptions, google?: GoogleConfigurable) { context = {_options: options || {}, google}; - this.projects = new Resource$Projects(); + this.v1 = new Resource$V1(); } } @@ -252,1450 +252,17 @@ export namespace iap_v1 { } - export class Resource$Projects { - iap_tunnel: Resource$Projects$Iap_tunnel; - iap_web: Resource$Projects$Iap_web; - constructor() { - this.iap_tunnel = new Resource$Projects$Iap_tunnel(); - this.iap_web = new Resource$Projects$Iap_web(); - } - } - - - export class Resource$Projects$Iap_tunnel { - zones: Resource$Projects$Iap_tunnel$Zones; - constructor() { - this.zones = new Resource$Projects$Iap_tunnel$Zones(); - } - - - /** - * iap.projects.iap_tunnel.getIamPolicy - * @desc Gets the access control policy for an Identity-Aware Proxy - * protected resource. More information about managing access via IAP can be - * found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_tunnel.getIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - getIamPolicy( - params?: Params$Resource$Projects$Iap_tunnel$Getiampolicy, - options?: MethodOptions): GaxiosPromise; - getIamPolicy( - params: Params$Resource$Projects$Iap_tunnel$Getiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - getIamPolicy( - params: Params$Resource$Projects$Iap_tunnel$Getiampolicy, - callback: BodyResponseCallback): void; - getIamPolicy(callback: BodyResponseCallback): void; - getIamPolicy( - paramsOrCallback?: Params$Resource$Projects$Iap_tunnel$Getiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_tunnel$Getiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_tunnel$Getiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+resource}:getIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_tunnel.setIamPolicy - * @desc Sets the access control policy for an Identity-Aware Proxy - * protected resource. Replaces any existing policy. More information about - * managing access via IAP can be found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_tunnel.setIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - setIamPolicy( - params?: Params$Resource$Projects$Iap_tunnel$Setiampolicy, - options?: MethodOptions): GaxiosPromise; - setIamPolicy( - params: Params$Resource$Projects$Iap_tunnel$Setiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - setIamPolicy( - params: Params$Resource$Projects$Iap_tunnel$Setiampolicy, - callback: BodyResponseCallback): void; - setIamPolicy(callback: BodyResponseCallback): void; - setIamPolicy( - paramsOrCallback?: Params$Resource$Projects$Iap_tunnel$Setiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_tunnel$Setiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_tunnel$Setiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+resource}:setIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_tunnel.testIamPermissions - * @desc Returns permissions that a caller has on the Identity-Aware Proxy - * protected resource. More information about managing access via IAP can be - * found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_tunnel.testIamPermissions - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - testIamPermissions( - params?: Params$Resource$Projects$Iap_tunnel$Testiampermissions, - options?: MethodOptions): - GaxiosPromise; - testIamPermissions( - params: Params$Resource$Projects$Iap_tunnel$Testiampermissions, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback): - void; - testIamPermissions( - params: Params$Resource$Projects$Iap_tunnel$Testiampermissions, - callback: BodyResponseCallback): - void; - testIamPermissions( - callback: BodyResponseCallback): - void; - testIamPermissions( - paramsOrCallback?: - Params$Resource$Projects$Iap_tunnel$Testiampermissions| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_tunnel$Testiampermissions; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_tunnel$Testiampermissions; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+resource}:testIamPermissions') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Iap_tunnel$Getiampolicy extends - StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_tunnel$Setiampolicy extends - StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$SetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_tunnel$Testiampermissions - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$TestIamPermissionsRequest; - } - - export class Resource$Projects$Iap_tunnel$Zones { - instances: Resource$Projects$Iap_tunnel$Zones$Instances; - constructor() { - this.instances = new Resource$Projects$Iap_tunnel$Zones$Instances(); - } - - - /** - * iap.projects.iap_tunnel.zones.getIamPolicy - * @desc Gets the access control policy for an Identity-Aware Proxy - * protected resource. More information about managing access via IAP can be - * found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_tunnel.zones.getIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - getIamPolicy( - params?: Params$Resource$Projects$Iap_tunnel$Zones$Getiampolicy, - options?: MethodOptions): GaxiosPromise; - getIamPolicy( - params: Params$Resource$Projects$Iap_tunnel$Zones$Getiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - getIamPolicy( - params: Params$Resource$Projects$Iap_tunnel$Zones$Getiampolicy, - callback: BodyResponseCallback): void; - getIamPolicy(callback: BodyResponseCallback): void; - getIamPolicy( - paramsOrCallback?: - Params$Resource$Projects$Iap_tunnel$Zones$Getiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_tunnel$Zones$Getiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_tunnel$Zones$Getiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+resource}:getIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_tunnel.zones.setIamPolicy - * @desc Sets the access control policy for an Identity-Aware Proxy - * protected resource. Replaces any existing policy. More information about - * managing access via IAP can be found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_tunnel.zones.setIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - setIamPolicy( - params?: Params$Resource$Projects$Iap_tunnel$Zones$Setiampolicy, - options?: MethodOptions): GaxiosPromise; - setIamPolicy( - params: Params$Resource$Projects$Iap_tunnel$Zones$Setiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - setIamPolicy( - params: Params$Resource$Projects$Iap_tunnel$Zones$Setiampolicy, - callback: BodyResponseCallback): void; - setIamPolicy(callback: BodyResponseCallback): void; - setIamPolicy( - paramsOrCallback?: - Params$Resource$Projects$Iap_tunnel$Zones$Setiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_tunnel$Zones$Setiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_tunnel$Zones$Setiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+resource}:setIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_tunnel.zones.testIamPermissions - * @desc Returns permissions that a caller has on the Identity-Aware Proxy - * protected resource. More information about managing access via IAP can be - * found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_tunnel.zones.testIamPermissions - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - testIamPermissions( - params?: Params$Resource$Projects$Iap_tunnel$Zones$Testiampermissions, - options?: MethodOptions): - GaxiosPromise; - testIamPermissions( - params: Params$Resource$Projects$Iap_tunnel$Zones$Testiampermissions, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback): - void; - testIamPermissions( - params: Params$Resource$Projects$Iap_tunnel$Zones$Testiampermissions, - callback: BodyResponseCallback): - void; - testIamPermissions( - callback: BodyResponseCallback): - void; - testIamPermissions( - paramsOrCallback?: - Params$Resource$Projects$Iap_tunnel$Zones$Testiampermissions| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_tunnel$Zones$Testiampermissions; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Iap_tunnel$Zones$Testiampermissions; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+resource}:testIamPermissions') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Iap_tunnel$Zones$Getiampolicy - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_tunnel$Zones$Setiampolicy - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$SetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_tunnel$Zones$Testiampermissions - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$TestIamPermissionsRequest; - } - - export class Resource$Projects$Iap_tunnel$Zones$Instances { - constructor() {} - - - /** - * iap.projects.iap_tunnel.zones.instances.getIamPolicy - * @desc Gets the access control policy for an Identity-Aware Proxy - * protected resource. More information about managing access via IAP can be - * found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_tunnel.zones.instances.getIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - getIamPolicy( - params?: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Getiampolicy, - options?: MethodOptions): GaxiosPromise; - getIamPolicy( - params: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Getiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - getIamPolicy( - params: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Getiampolicy, - callback: BodyResponseCallback): void; - getIamPolicy(callback: BodyResponseCallback): void; - getIamPolicy( - paramsOrCallback?: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Getiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Getiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Getiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+resource}:getIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_tunnel.zones.instances.setIamPolicy - * @desc Sets the access control policy for an Identity-Aware Proxy - * protected resource. Replaces any existing policy. More information about - * managing access via IAP can be found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_tunnel.zones.instances.setIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - setIamPolicy( - params?: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Setiampolicy, - options?: MethodOptions): GaxiosPromise; - setIamPolicy( - params: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Setiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - setIamPolicy( - params: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Setiampolicy, - callback: BodyResponseCallback): void; - setIamPolicy(callback: BodyResponseCallback): void; - setIamPolicy( - paramsOrCallback?: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Setiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Setiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Setiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+resource}:setIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_tunnel.zones.instances.testIamPermissions - * @desc Returns permissions that a caller has on the Identity-Aware Proxy - * protected resource. More information about managing access via IAP can be - * found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_tunnel.zones.instances.testIamPermissions - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - testIamPermissions( - params?: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Testiampermissions, - options?: MethodOptions): - GaxiosPromise; - testIamPermissions( - params: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Testiampermissions, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback): - void; - testIamPermissions( - params: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Testiampermissions, - callback: BodyResponseCallback): - void; - testIamPermissions( - callback: BodyResponseCallback): - void; - testIamPermissions( - paramsOrCallback?: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Testiampermissions| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Testiampermissions; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Testiampermissions; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+resource}:testIamPermissions') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Iap_tunnel$Zones$Instances$Getiampolicy - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_tunnel$Zones$Instances$Setiampolicy - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$SetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_tunnel$Zones$Instances$Testiampermissions - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$TestIamPermissionsRequest; - } - - - - export class Resource$Projects$Iap_web { - services: Resource$Projects$Iap_web$Services; - constructor() { - this.services = new Resource$Projects$Iap_web$Services(); - } - - - /** - * iap.projects.iap_web.getIamPolicy - * @desc Gets the access control policy for an Identity-Aware Proxy - * protected resource. More information about managing access via IAP can be - * found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_web.getIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - getIamPolicy( - params?: Params$Resource$Projects$Iap_web$Getiampolicy, - options?: MethodOptions): GaxiosPromise; - getIamPolicy( - params: Params$Resource$Projects$Iap_web$Getiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - getIamPolicy( - params: Params$Resource$Projects$Iap_web$Getiampolicy, - callback: BodyResponseCallback): void; - getIamPolicy(callback: BodyResponseCallback): void; - getIamPolicy( - paramsOrCallback?: Params$Resource$Projects$Iap_web$Getiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_web$Getiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_web$Getiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+resource}:getIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_web.setIamPolicy - * @desc Sets the access control policy for an Identity-Aware Proxy - * protected resource. Replaces any existing policy. More information about - * managing access via IAP can be found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_web.setIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - setIamPolicy( - params?: Params$Resource$Projects$Iap_web$Setiampolicy, - options?: MethodOptions): GaxiosPromise; - setIamPolicy( - params: Params$Resource$Projects$Iap_web$Setiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - setIamPolicy( - params: Params$Resource$Projects$Iap_web$Setiampolicy, - callback: BodyResponseCallback): void; - setIamPolicy(callback: BodyResponseCallback): void; - setIamPolicy( - paramsOrCallback?: Params$Resource$Projects$Iap_web$Setiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_web$Setiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_web$Setiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+resource}:setIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_web.testIamPermissions - * @desc Returns permissions that a caller has on the Identity-Aware Proxy - * protected resource. More information about managing access via IAP can be - * found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_web.testIamPermissions - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - testIamPermissions( - params?: Params$Resource$Projects$Iap_web$Testiampermissions, - options?: MethodOptions): - GaxiosPromise; - testIamPermissions( - params: Params$Resource$Projects$Iap_web$Testiampermissions, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback): - void; - testIamPermissions( - params: Params$Resource$Projects$Iap_web$Testiampermissions, - callback: BodyResponseCallback): - void; - testIamPermissions( - callback: BodyResponseCallback): - void; - testIamPermissions( - paramsOrCallback?: Params$Resource$Projects$Iap_web$Testiampermissions| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_web$Testiampermissions; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_web$Testiampermissions; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+resource}:testIamPermissions') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Iap_web$Getiampolicy extends - StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_web$Setiampolicy extends - StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$SetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_web$Testiampermissions extends - StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$TestIamPermissionsRequest; - } - - export class Resource$Projects$Iap_web$Services { - versions: Resource$Projects$Iap_web$Services$Versions; - constructor() { - this.versions = new Resource$Projects$Iap_web$Services$Versions(); - } - - - /** - * iap.projects.iap_web.services.getIamPolicy - * @desc Gets the access control policy for an Identity-Aware Proxy - * protected resource. More information about managing access via IAP can be - * found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_web.services.getIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - getIamPolicy( - params?: Params$Resource$Projects$Iap_web$Services$Getiampolicy, - options?: MethodOptions): GaxiosPromise; - getIamPolicy( - params: Params$Resource$Projects$Iap_web$Services$Getiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - getIamPolicy( - params: Params$Resource$Projects$Iap_web$Services$Getiampolicy, - callback: BodyResponseCallback): void; - getIamPolicy(callback: BodyResponseCallback): void; - getIamPolicy( - paramsOrCallback?: - Params$Resource$Projects$Iap_web$Services$Getiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_web$Services$Getiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_web$Services$Getiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+resource}:getIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_web.services.setIamPolicy - * @desc Sets the access control policy for an Identity-Aware Proxy - * protected resource. Replaces any existing policy. More information about - * managing access via IAP can be found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_web.services.setIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - setIamPolicy( - params?: Params$Resource$Projects$Iap_web$Services$Setiampolicy, - options?: MethodOptions): GaxiosPromise; - setIamPolicy( - params: Params$Resource$Projects$Iap_web$Services$Setiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - setIamPolicy( - params: Params$Resource$Projects$Iap_web$Services$Setiampolicy, - callback: BodyResponseCallback): void; - setIamPolicy(callback: BodyResponseCallback): void; - setIamPolicy( - paramsOrCallback?: - Params$Resource$Projects$Iap_web$Services$Setiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_web$Services$Setiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_web$Services$Setiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+resource}:setIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_web.services.testIamPermissions - * @desc Returns permissions that a caller has on the Identity-Aware Proxy - * protected resource. More information about managing access via IAP can be - * found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_web.services.testIamPermissions - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - testIamPermissions( - params?: Params$Resource$Projects$Iap_web$Services$Testiampermissions, - options?: MethodOptions): - GaxiosPromise; - testIamPermissions( - params: Params$Resource$Projects$Iap_web$Services$Testiampermissions, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback): - void; - testIamPermissions( - params: Params$Resource$Projects$Iap_web$Services$Testiampermissions, - callback: BodyResponseCallback): - void; - testIamPermissions( - callback: BodyResponseCallback): - void; - testIamPermissions( - paramsOrCallback?: - Params$Resource$Projects$Iap_web$Services$Testiampermissions| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_web$Services$Testiampermissions; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Iap_web$Services$Testiampermissions; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+resource}:testIamPermissions') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Iap_web$Services$Getiampolicy - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_web$Services$Setiampolicy - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$SetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_web$Services$Testiampermissions - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$TestIamPermissionsRequest; - } - - export class Resource$Projects$Iap_web$Services$Versions { + export class Resource$V1 { constructor() {} /** - * iap.projects.iap_web.services.versions.getIamPolicy + * iap.getIamPolicy * @desc Gets the access control policy for an Identity-Aware Proxy * protected resource. More information about managing access via IAP can be * found at: * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_web.services.versions.getIamPolicy + * @alias iap.getIamPolicy * @memberOf! () * * @param {object} params Parameters for request @@ -1706,32 +273,28 @@ export namespace iap_v1 { * @return {object} Request object */ getIamPolicy( - params?: - Params$Resource$Projects$Iap_web$Services$Versions$Getiampolicy, + params?: Params$Resource$V1$Getiampolicy, options?: MethodOptions): GaxiosPromise; getIamPolicy( - params: Params$Resource$Projects$Iap_web$Services$Versions$Getiampolicy, + params: Params$Resource$V1$Getiampolicy, options: MethodOptions|BodyResponseCallback, callback: BodyResponseCallback): void; getIamPolicy( - params: Params$Resource$Projects$Iap_web$Services$Versions$Getiampolicy, + params: Params$Resource$V1$Getiampolicy, callback: BodyResponseCallback): void; getIamPolicy(callback: BodyResponseCallback): void; getIamPolicy( - paramsOrCallback?: - Params$Resource$Projects$Iap_web$Services$Versions$Getiampolicy| + paramsOrCallback?: Params$Resource$V1$Getiampolicy| BodyResponseCallback, optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_web$Services$Versions$Getiampolicy; + let params = (paramsOrCallback || {}) as Params$Resource$V1$Getiampolicy; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Iap_web$Services$Versions$Getiampolicy; + params = {} as Params$Resource$V1$Getiampolicy; options = {}; } @@ -1763,12 +326,12 @@ export namespace iap_v1 { /** - * iap.projects.iap_web.services.versions.setIamPolicy + * iap.setIamPolicy * @desc Sets the access control policy for an Identity-Aware Proxy * protected resource. Replaces any existing policy. More information about * managing access via IAP can be found at: * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_web.services.versions.setIamPolicy + * @alias iap.setIamPolicy * @memberOf! () * * @param {object} params Parameters for request @@ -1779,32 +342,28 @@ export namespace iap_v1 { * @return {object} Request object */ setIamPolicy( - params?: - Params$Resource$Projects$Iap_web$Services$Versions$Setiampolicy, + params?: Params$Resource$V1$Setiampolicy, options?: MethodOptions): GaxiosPromise; setIamPolicy( - params: Params$Resource$Projects$Iap_web$Services$Versions$Setiampolicy, + params: Params$Resource$V1$Setiampolicy, options: MethodOptions|BodyResponseCallback, callback: BodyResponseCallback): void; setIamPolicy( - params: Params$Resource$Projects$Iap_web$Services$Versions$Setiampolicy, + params: Params$Resource$V1$Setiampolicy, callback: BodyResponseCallback): void; setIamPolicy(callback: BodyResponseCallback): void; setIamPolicy( - paramsOrCallback?: - Params$Resource$Projects$Iap_web$Services$Versions$Setiampolicy| + paramsOrCallback?: Params$Resource$V1$Setiampolicy| BodyResponseCallback, optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_web$Services$Versions$Setiampolicy; + let params = (paramsOrCallback || {}) as Params$Resource$V1$Setiampolicy; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Iap_web$Services$Versions$Setiampolicy; + params = {} as Params$Resource$V1$Setiampolicy; options = {}; } @@ -1836,12 +395,12 @@ export namespace iap_v1 { /** - * iap.projects.iap_web.services.versions.testIamPermissions + * iap.testIamPermissions * @desc Returns permissions that a caller has on the Identity-Aware Proxy * protected resource. More information about managing access via IAP can be * found at: * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_web.services.versions.testIamPermissions + * @alias iap.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request @@ -1852,41 +411,36 @@ export namespace iap_v1 { * @return {object} Request object */ testIamPermissions( - params?: - Params$Resource$Projects$Iap_web$Services$Versions$Testiampermissions, + params?: Params$Resource$V1$Testiampermissions, options?: MethodOptions): GaxiosPromise; testIamPermissions( - params: - Params$Resource$Projects$Iap_web$Services$Versions$Testiampermissions, + params: Params$Resource$V1$Testiampermissions, options: MethodOptions| BodyResponseCallback, callback: BodyResponseCallback): void; testIamPermissions( - params: - Params$Resource$Projects$Iap_web$Services$Versions$Testiampermissions, + params: Params$Resource$V1$Testiampermissions, callback: BodyResponseCallback): void; testIamPermissions( callback: BodyResponseCallback): void; testIamPermissions( - paramsOrCallback?: - Params$Resource$Projects$Iap_web$Services$Versions$Testiampermissions| + paramsOrCallback?: Params$Resource$V1$Testiampermissions| BodyResponseCallback, optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_web$Services$Versions$Testiampermissions; + let params = + (paramsOrCallback || {}) as Params$Resource$V1$Testiampermissions; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Iap_web$Services$Versions$Testiampermissions; + params = {} as Params$Resource$V1$Testiampermissions; options = {}; } @@ -1918,8 +472,7 @@ export namespace iap_v1 { } } - export interface Params$Resource$Projects$Iap_web$Services$Versions$Getiampolicy - extends StandardParameters { + export interface Params$Resource$V1$Getiampolicy extends StandardParameters { /** * Auth client or API Key for the request */ @@ -1936,8 +489,7 @@ export namespace iap_v1 { */ requestBody?: Schema$GetIamPolicyRequest; } - export interface Params$Resource$Projects$Iap_web$Services$Versions$Setiampolicy - extends StandardParameters { + export interface Params$Resource$V1$Setiampolicy extends StandardParameters { /** * Auth client or API Key for the request */ @@ -1954,8 +506,8 @@ export namespace iap_v1 { */ requestBody?: Schema$SetIamPolicyRequest; } - export interface Params$Resource$Projects$Iap_web$Services$Versions$Testiampermissions - extends StandardParameters { + export interface Params$Resource$V1$Testiampermissions extends + StandardParameters { /** * Auth client or API Key for the request */ diff --git a/src/apis/iap/v1beta1.ts b/src/apis/iap/v1beta1.ts index fc0f3253576..bdf9266491a 100644 --- a/src/apis/iap/v1beta1.ts +++ b/src/apis/iap/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -98,12 +98,12 @@ export namespace iap_v1beta1 { * @param {object=} options Options for Iap */ export class Iap { - projects: Resource$Projects; + v1beta1: Resource$V1beta1; constructor(options: GlobalOptions, google?: GoogleConfigurable) { context = {_options: options || {}, google}; - this.projects = new Resource$Projects(); + this.v1beta1 = new Resource$V1beta1(); } } @@ -252,30 +252,17 @@ export namespace iap_v1beta1 { } - export class Resource$Projects { - iap_tunnel: Resource$Projects$Iap_tunnel; - iap_web: Resource$Projects$Iap_web; - constructor() { - this.iap_tunnel = new Resource$Projects$Iap_tunnel(); - this.iap_web = new Resource$Projects$Iap_web(); - } - } - - - export class Resource$Projects$Iap_tunnel { - zones: Resource$Projects$Iap_tunnel$Zones; - constructor() { - this.zones = new Resource$Projects$Iap_tunnel$Zones(); - } + export class Resource$V1beta1 { + constructor() {} /** - * iap.projects.iap_tunnel.getIamPolicy + * iap.getIamPolicy * @desc Gets the access control policy for an Identity-Aware Proxy * protected resource. More information about managing access via IAP can be * found at: * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_tunnel.getIamPolicy + * @alias iap.getIamPolicy * @memberOf! () * * @param {object} params Parameters for request @@ -286,29 +273,29 @@ export namespace iap_v1beta1 { * @return {object} Request object */ getIamPolicy( - params?: Params$Resource$Projects$Iap_tunnel$Getiampolicy, + params?: Params$Resource$V1beta1$Getiampolicy, options?: MethodOptions): GaxiosPromise; getIamPolicy( - params: Params$Resource$Projects$Iap_tunnel$Getiampolicy, + params: Params$Resource$V1beta1$Getiampolicy, options: MethodOptions|BodyResponseCallback, callback: BodyResponseCallback): void; getIamPolicy( - params: Params$Resource$Projects$Iap_tunnel$Getiampolicy, + params: Params$Resource$V1beta1$Getiampolicy, callback: BodyResponseCallback): void; getIamPolicy(callback: BodyResponseCallback): void; getIamPolicy( - paramsOrCallback?: Params$Resource$Projects$Iap_tunnel$Getiampolicy| + paramsOrCallback?: Params$Resource$V1beta1$Getiampolicy| BodyResponseCallback, optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_tunnel$Getiampolicy; + let params = + (paramsOrCallback || {}) as Params$Resource$V1beta1$Getiampolicy; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_tunnel$Getiampolicy; + params = {} as Params$Resource$V1beta1$Getiampolicy; options = {}; } @@ -340,12 +327,12 @@ export namespace iap_v1beta1 { /** - * iap.projects.iap_tunnel.setIamPolicy + * iap.setIamPolicy * @desc Sets the access control policy for an Identity-Aware Proxy * protected resource. Replaces any existing policy. More information about * managing access via IAP can be found at: * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_tunnel.setIamPolicy + * @alias iap.setIamPolicy * @memberOf! () * * @param {object} params Parameters for request @@ -356,29 +343,29 @@ export namespace iap_v1beta1 { * @return {object} Request object */ setIamPolicy( - params?: Params$Resource$Projects$Iap_tunnel$Setiampolicy, + params?: Params$Resource$V1beta1$Setiampolicy, options?: MethodOptions): GaxiosPromise; setIamPolicy( - params: Params$Resource$Projects$Iap_tunnel$Setiampolicy, + params: Params$Resource$V1beta1$Setiampolicy, options: MethodOptions|BodyResponseCallback, callback: BodyResponseCallback): void; setIamPolicy( - params: Params$Resource$Projects$Iap_tunnel$Setiampolicy, + params: Params$Resource$V1beta1$Setiampolicy, callback: BodyResponseCallback): void; setIamPolicy(callback: BodyResponseCallback): void; setIamPolicy( - paramsOrCallback?: Params$Resource$Projects$Iap_tunnel$Setiampolicy| + paramsOrCallback?: Params$Resource$V1beta1$Setiampolicy| BodyResponseCallback, optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_tunnel$Setiampolicy; + let params = + (paramsOrCallback || {}) as Params$Resource$V1beta1$Setiampolicy; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_tunnel$Setiampolicy; + params = {} as Params$Resource$V1beta1$Setiampolicy; options = {}; } @@ -410,14 +397,14 @@ export namespace iap_v1beta1 { /** - * iap.projects.iap_tunnel.testIamPermissions + * iap.testIamPermissions * @desc Returns permissions that a caller has on the Identity-Aware Proxy * protected resource. If the resource does not exist or the caller does not * have Identity-Aware Proxy permissions a * [google.rpc.Code.PERMISSION_DENIED] will be returned. More information * about managing access via IAP can be found at: * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_tunnel.testIamPermissions + * @alias iap.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request @@ -428,37 +415,36 @@ export namespace iap_v1beta1 { * @return {object} Request object */ testIamPermissions( - params?: Params$Resource$Projects$Iap_tunnel$Testiampermissions, + params?: Params$Resource$V1beta1$Testiampermissions, options?: MethodOptions): GaxiosPromise; testIamPermissions( - params: Params$Resource$Projects$Iap_tunnel$Testiampermissions, + params: Params$Resource$V1beta1$Testiampermissions, options: MethodOptions| BodyResponseCallback, callback: BodyResponseCallback): void; testIamPermissions( - params: Params$Resource$Projects$Iap_tunnel$Testiampermissions, + params: Params$Resource$V1beta1$Testiampermissions, callback: BodyResponseCallback): void; testIamPermissions( callback: BodyResponseCallback): void; testIamPermissions( - paramsOrCallback?: - Params$Resource$Projects$Iap_tunnel$Testiampermissions| + paramsOrCallback?: Params$Resource$V1beta1$Testiampermissions| BodyResponseCallback, optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|GaxiosPromise { let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_tunnel$Testiampermissions; + Params$Resource$V1beta1$Testiampermissions; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_tunnel$Testiampermissions; + params = {} as Params$Resource$V1beta1$Testiampermissions; options = {}; } @@ -490,7 +476,7 @@ export namespace iap_v1beta1 { } } - export interface Params$Resource$Projects$Iap_tunnel$Getiampolicy extends + export interface Params$Resource$V1beta1$Getiampolicy extends StandardParameters { /** * Auth client or API Key for the request @@ -508,7 +494,7 @@ export namespace iap_v1beta1 { */ requestBody?: Schema$GetIamPolicyRequest; } - export interface Params$Resource$Projects$Iap_tunnel$Setiampolicy extends + export interface Params$Resource$V1beta1$Setiampolicy extends StandardParameters { /** * Auth client or API Key for the request @@ -526,1448 +512,8 @@ export namespace iap_v1beta1 { */ requestBody?: Schema$SetIamPolicyRequest; } - export interface Params$Resource$Projects$Iap_tunnel$Testiampermissions - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$TestIamPermissionsRequest; - } - - export class Resource$Projects$Iap_tunnel$Zones { - instances: Resource$Projects$Iap_tunnel$Zones$Instances; - constructor() { - this.instances = new Resource$Projects$Iap_tunnel$Zones$Instances(); - } - - - /** - * iap.projects.iap_tunnel.zones.getIamPolicy - * @desc Gets the access control policy for an Identity-Aware Proxy - * protected resource. More information about managing access via IAP can be - * found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_tunnel.zones.getIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - getIamPolicy( - params?: Params$Resource$Projects$Iap_tunnel$Zones$Getiampolicy, - options?: MethodOptions): GaxiosPromise; - getIamPolicy( - params: Params$Resource$Projects$Iap_tunnel$Zones$Getiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - getIamPolicy( - params: Params$Resource$Projects$Iap_tunnel$Zones$Getiampolicy, - callback: BodyResponseCallback): void; - getIamPolicy(callback: BodyResponseCallback): void; - getIamPolicy( - paramsOrCallback?: - Params$Resource$Projects$Iap_tunnel$Zones$Getiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_tunnel$Zones$Getiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_tunnel$Zones$Getiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_tunnel.zones.setIamPolicy - * @desc Sets the access control policy for an Identity-Aware Proxy - * protected resource. Replaces any existing policy. More information about - * managing access via IAP can be found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_tunnel.zones.setIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - setIamPolicy( - params?: Params$Resource$Projects$Iap_tunnel$Zones$Setiampolicy, - options?: MethodOptions): GaxiosPromise; - setIamPolicy( - params: Params$Resource$Projects$Iap_tunnel$Zones$Setiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - setIamPolicy( - params: Params$Resource$Projects$Iap_tunnel$Zones$Setiampolicy, - callback: BodyResponseCallback): void; - setIamPolicy(callback: BodyResponseCallback): void; - setIamPolicy( - paramsOrCallback?: - Params$Resource$Projects$Iap_tunnel$Zones$Setiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_tunnel$Zones$Setiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_tunnel$Zones$Setiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_tunnel.zones.testIamPermissions - * @desc Returns permissions that a caller has on the Identity-Aware Proxy - * protected resource. If the resource does not exist or the caller does not - * have Identity-Aware Proxy permissions a - * [google.rpc.Code.PERMISSION_DENIED] will be returned. More information - * about managing access via IAP can be found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_tunnel.zones.testIamPermissions - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - testIamPermissions( - params?: Params$Resource$Projects$Iap_tunnel$Zones$Testiampermissions, - options?: MethodOptions): - GaxiosPromise; - testIamPermissions( - params: Params$Resource$Projects$Iap_tunnel$Zones$Testiampermissions, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback): - void; - testIamPermissions( - params: Params$Resource$Projects$Iap_tunnel$Zones$Testiampermissions, - callback: BodyResponseCallback): - void; - testIamPermissions( - callback: BodyResponseCallback): - void; - testIamPermissions( - paramsOrCallback?: - Params$Resource$Projects$Iap_tunnel$Zones$Testiampermissions| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_tunnel$Zones$Testiampermissions; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Iap_tunnel$Zones$Testiampermissions; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Iap_tunnel$Zones$Getiampolicy - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_tunnel$Zones$Setiampolicy - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$SetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_tunnel$Zones$Testiampermissions - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$TestIamPermissionsRequest; - } - - export class Resource$Projects$Iap_tunnel$Zones$Instances { - constructor() {} - - - /** - * iap.projects.iap_tunnel.zones.instances.getIamPolicy - * @desc Gets the access control policy for an Identity-Aware Proxy - * protected resource. More information about managing access via IAP can be - * found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_tunnel.zones.instances.getIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - getIamPolicy( - params?: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Getiampolicy, - options?: MethodOptions): GaxiosPromise; - getIamPolicy( - params: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Getiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - getIamPolicy( - params: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Getiampolicy, - callback: BodyResponseCallback): void; - getIamPolicy(callback: BodyResponseCallback): void; - getIamPolicy( - paramsOrCallback?: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Getiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Getiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Getiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_tunnel.zones.instances.setIamPolicy - * @desc Sets the access control policy for an Identity-Aware Proxy - * protected resource. Replaces any existing policy. More information about - * managing access via IAP can be found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_tunnel.zones.instances.setIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - setIamPolicy( - params?: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Setiampolicy, - options?: MethodOptions): GaxiosPromise; - setIamPolicy( - params: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Setiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - setIamPolicy( - params: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Setiampolicy, - callback: BodyResponseCallback): void; - setIamPolicy(callback: BodyResponseCallback): void; - setIamPolicy( - paramsOrCallback?: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Setiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Setiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Setiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_tunnel.zones.instances.testIamPermissions - * @desc Returns permissions that a caller has on the Identity-Aware Proxy - * protected resource. If the resource does not exist or the caller does not - * have Identity-Aware Proxy permissions a - * [google.rpc.Code.PERMISSION_DENIED] will be returned. More information - * about managing access via IAP can be found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_tunnel.zones.instances.testIamPermissions - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - testIamPermissions( - params?: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Testiampermissions, - options?: MethodOptions): - GaxiosPromise; - testIamPermissions( - params: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Testiampermissions, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback): - void; - testIamPermissions( - params: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Testiampermissions, - callback: BodyResponseCallback): - void; - testIamPermissions( - callback: BodyResponseCallback): - void; - testIamPermissions( - paramsOrCallback?: - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Testiampermissions| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Testiampermissions; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Iap_tunnel$Zones$Instances$Testiampermissions; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Iap_tunnel$Zones$Instances$Getiampolicy - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_tunnel$Zones$Instances$Setiampolicy - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$SetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_tunnel$Zones$Instances$Testiampermissions - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$TestIamPermissionsRequest; - } - - - - export class Resource$Projects$Iap_web { - services: Resource$Projects$Iap_web$Services; - constructor() { - this.services = new Resource$Projects$Iap_web$Services(); - } - - - /** - * iap.projects.iap_web.getIamPolicy - * @desc Gets the access control policy for an Identity-Aware Proxy - * protected resource. More information about managing access via IAP can be - * found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_web.getIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - getIamPolicy( - params?: Params$Resource$Projects$Iap_web$Getiampolicy, - options?: MethodOptions): GaxiosPromise; - getIamPolicy( - params: Params$Resource$Projects$Iap_web$Getiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - getIamPolicy( - params: Params$Resource$Projects$Iap_web$Getiampolicy, - callback: BodyResponseCallback): void; - getIamPolicy(callback: BodyResponseCallback): void; - getIamPolicy( - paramsOrCallback?: Params$Resource$Projects$Iap_web$Getiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_web$Getiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_web$Getiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_web.setIamPolicy - * @desc Sets the access control policy for an Identity-Aware Proxy - * protected resource. Replaces any existing policy. More information about - * managing access via IAP can be found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_web.setIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - setIamPolicy( - params?: Params$Resource$Projects$Iap_web$Setiampolicy, - options?: MethodOptions): GaxiosPromise; - setIamPolicy( - params: Params$Resource$Projects$Iap_web$Setiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - setIamPolicy( - params: Params$Resource$Projects$Iap_web$Setiampolicy, - callback: BodyResponseCallback): void; - setIamPolicy(callback: BodyResponseCallback): void; - setIamPolicy( - paramsOrCallback?: Params$Resource$Projects$Iap_web$Setiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_web$Setiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_web$Setiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_web.testIamPermissions - * @desc Returns permissions that a caller has on the Identity-Aware Proxy - * protected resource. If the resource does not exist or the caller does not - * have Identity-Aware Proxy permissions a - * [google.rpc.Code.PERMISSION_DENIED] will be returned. More information - * about managing access via IAP can be found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_web.testIamPermissions - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - testIamPermissions( - params?: Params$Resource$Projects$Iap_web$Testiampermissions, - options?: MethodOptions): - GaxiosPromise; - testIamPermissions( - params: Params$Resource$Projects$Iap_web$Testiampermissions, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback): - void; - testIamPermissions( - params: Params$Resource$Projects$Iap_web$Testiampermissions, - callback: BodyResponseCallback): - void; - testIamPermissions( - callback: BodyResponseCallback): - void; - testIamPermissions( - paramsOrCallback?: Params$Resource$Projects$Iap_web$Testiampermissions| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_web$Testiampermissions; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_web$Testiampermissions; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Iap_web$Getiampolicy extends - StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_web$Setiampolicy extends - StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$SetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_web$Testiampermissions extends - StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$TestIamPermissionsRequest; - } - - export class Resource$Projects$Iap_web$Services { - versions: Resource$Projects$Iap_web$Services$Versions; - constructor() { - this.versions = new Resource$Projects$Iap_web$Services$Versions(); - } - - - /** - * iap.projects.iap_web.services.getIamPolicy - * @desc Gets the access control policy for an Identity-Aware Proxy - * protected resource. More information about managing access via IAP can be - * found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_web.services.getIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - getIamPolicy( - params?: Params$Resource$Projects$Iap_web$Services$Getiampolicy, - options?: MethodOptions): GaxiosPromise; - getIamPolicy( - params: Params$Resource$Projects$Iap_web$Services$Getiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - getIamPolicy( - params: Params$Resource$Projects$Iap_web$Services$Getiampolicy, - callback: BodyResponseCallback): void; - getIamPolicy(callback: BodyResponseCallback): void; - getIamPolicy( - paramsOrCallback?: - Params$Resource$Projects$Iap_web$Services$Getiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_web$Services$Getiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_web$Services$Getiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_web.services.setIamPolicy - * @desc Sets the access control policy for an Identity-Aware Proxy - * protected resource. Replaces any existing policy. More information about - * managing access via IAP can be found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_web.services.setIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - setIamPolicy( - params?: Params$Resource$Projects$Iap_web$Services$Setiampolicy, - options?: MethodOptions): GaxiosPromise; - setIamPolicy( - params: Params$Resource$Projects$Iap_web$Services$Setiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - setIamPolicy( - params: Params$Resource$Projects$Iap_web$Services$Setiampolicy, - callback: BodyResponseCallback): void; - setIamPolicy(callback: BodyResponseCallback): void; - setIamPolicy( - paramsOrCallback?: - Params$Resource$Projects$Iap_web$Services$Setiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_web$Services$Setiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Iap_web$Services$Setiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_web.services.testIamPermissions - * @desc Returns permissions that a caller has on the Identity-Aware Proxy - * protected resource. If the resource does not exist or the caller does not - * have Identity-Aware Proxy permissions a - * [google.rpc.Code.PERMISSION_DENIED] will be returned. More information - * about managing access via IAP can be found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_web.services.testIamPermissions - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - testIamPermissions( - params?: Params$Resource$Projects$Iap_web$Services$Testiampermissions, - options?: MethodOptions): - GaxiosPromise; - testIamPermissions( - params: Params$Resource$Projects$Iap_web$Services$Testiampermissions, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback): - void; - testIamPermissions( - params: Params$Resource$Projects$Iap_web$Services$Testiampermissions, - callback: BodyResponseCallback): - void; - testIamPermissions( - callback: BodyResponseCallback): - void; - testIamPermissions( - paramsOrCallback?: - Params$Resource$Projects$Iap_web$Services$Testiampermissions| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_web$Services$Testiampermissions; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Iap_web$Services$Testiampermissions; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Iap_web$Services$Getiampolicy - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_web$Services$Setiampolicy - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$SetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_web$Services$Testiampermissions - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$TestIamPermissionsRequest; - } - - export class Resource$Projects$Iap_web$Services$Versions { - constructor() {} - - - /** - * iap.projects.iap_web.services.versions.getIamPolicy - * @desc Gets the access control policy for an Identity-Aware Proxy - * protected resource. More information about managing access via IAP can be - * found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_web.services.versions.getIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - getIamPolicy( - params?: - Params$Resource$Projects$Iap_web$Services$Versions$Getiampolicy, - options?: MethodOptions): GaxiosPromise; - getIamPolicy( - params: Params$Resource$Projects$Iap_web$Services$Versions$Getiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - getIamPolicy( - params: Params$Resource$Projects$Iap_web$Services$Versions$Getiampolicy, - callback: BodyResponseCallback): void; - getIamPolicy(callback: BodyResponseCallback): void; - getIamPolicy( - paramsOrCallback?: - Params$Resource$Projects$Iap_web$Services$Versions$Getiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_web$Services$Versions$Getiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Iap_web$Services$Versions$Getiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_web.services.versions.setIamPolicy - * @desc Sets the access control policy for an Identity-Aware Proxy - * protected resource. Replaces any existing policy. More information about - * managing access via IAP can be found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_web.services.versions.setIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - setIamPolicy( - params?: - Params$Resource$Projects$Iap_web$Services$Versions$Setiampolicy, - options?: MethodOptions): GaxiosPromise; - setIamPolicy( - params: Params$Resource$Projects$Iap_web$Services$Versions$Setiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - setIamPolicy( - params: Params$Resource$Projects$Iap_web$Services$Versions$Setiampolicy, - callback: BodyResponseCallback): void; - setIamPolicy(callback: BodyResponseCallback): void; - setIamPolicy( - paramsOrCallback?: - Params$Resource$Projects$Iap_web$Services$Versions$Setiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_web$Services$Versions$Setiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Iap_web$Services$Versions$Setiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * iap.projects.iap_web.services.versions.testIamPermissions - * @desc Returns permissions that a caller has on the Identity-Aware Proxy - * protected resource. If the resource does not exist or the caller does not - * have Identity-Aware Proxy permissions a - * [google.rpc.Code.PERMISSION_DENIED] will be returned. More information - * about managing access via IAP can be found at: - * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api - * @alias iap.projects.iap_web.services.versions.testIamPermissions - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - testIamPermissions( - params?: - Params$Resource$Projects$Iap_web$Services$Versions$Testiampermissions, - options?: MethodOptions): - GaxiosPromise; - testIamPermissions( - params: - Params$Resource$Projects$Iap_web$Services$Versions$Testiampermissions, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback): - void; - testIamPermissions( - params: - Params$Resource$Projects$Iap_web$Services$Versions$Testiampermissions, - callback: BodyResponseCallback): - void; - testIamPermissions( - callback: BodyResponseCallback): - void; - testIamPermissions( - paramsOrCallback?: - Params$Resource$Projects$Iap_web$Services$Versions$Testiampermissions| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Iap_web$Services$Versions$Testiampermissions; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Iap_web$Services$Versions$Testiampermissions; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Iap_web$Services$Versions$Getiampolicy - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_web$Services$Versions$Setiampolicy - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$SetIamPolicyRequest; - } - export interface Params$Resource$Projects$Iap_web$Services$Versions$Testiampermissions - extends StandardParameters { + export interface Params$Resource$V1beta1$Testiampermissions extends + StandardParameters { /** * Auth client or API Key for the request */ diff --git a/src/apis/iap/webpack.config.js b/src/apis/iap/webpack.config.js new file mode 100644 index 00000000000..d6281c03f1b --- /dev/null +++ b/src/apis/iap/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Iap', + filename: 'iap.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/identitytoolkit/README.md b/src/apis/identitytoolkit/README.md index 7ddbece1d50..acf40148f9f 100644 --- a/src/apis/identitytoolkit/README.md +++ b/src/apis/identitytoolkit/README.md @@ -11,17 +11,37 @@ $ npm install @google/identitytoolkit ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/identitytoolkit +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/identitytoolkit.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/identitytoolkit/index.ts b/src/apis/identitytoolkit/index.ts index 35475158773..6810e5ee0ce 100644 --- a/src/apis/identitytoolkit/index.ts +++ b/src/apis/identitytoolkit/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {identitytoolkit_v3} from './v3'; export const VERSIONS = { @@ -29,3 +29,6 @@ export function identitytoolkit( versionOrOptions: 'v3'|identitytoolkit_v3.Options) { return getAPI('identitytoolkit', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/identitytoolkit/package.json b/src/apis/identitytoolkit/package.json index b195faa919b..88671152138 100644 --- a/src/apis/identitytoolkit/package.json +++ b/src/apis/identitytoolkit/package.json @@ -4,16 +4,18 @@ "description": "identitytoolkit", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/identitytoolkit/v3.ts b/src/apis/identitytoolkit/v3.ts index 6ee4c33be15..b34cd7be7c4 100644 --- a/src/apis/identitytoolkit/v3.ts +++ b/src/apis/identitytoolkit/v3.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/identitytoolkit/webpack.config.js b/src/apis/identitytoolkit/webpack.config.js new file mode 100644 index 00000000000..2f26368011a --- /dev/null +++ b/src/apis/identitytoolkit/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Identitytoolkit', + filename: 'identitytoolkit.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/index.ts b/src/apis/index.ts index f6756eaa575..967b82ffd71 100644 --- a/src/apis/index.ts +++ b/src/apis/index.ts @@ -1,4 +1,4 @@ -// Copyright 2012-2016, Google, Inc. +// Copyright 2019 Google LLC // 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 diff --git a/src/apis/indexing/README.md b/src/apis/indexing/README.md index 3762911b7d3..f2f426fc281 100644 --- a/src/apis/indexing/README.md +++ b/src/apis/indexing/README.md @@ -11,17 +11,37 @@ $ npm install @google/indexing ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/indexing +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/indexing.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/indexing/index.ts b/src/apis/indexing/index.ts index 75711e10414..3e5dd853683 100644 --- a/src/apis/indexing/index.ts +++ b/src/apis/indexing/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {indexing_v3} from './v3'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function indexing( this: GoogleConfigurable, versionOrOptions: 'v3'|indexing_v3.Options) { return getAPI('indexing', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/indexing/package.json b/src/apis/indexing/package.json index 724bfb3a5d8..b708fb36a54 100644 --- a/src/apis/indexing/package.json +++ b/src/apis/indexing/package.json @@ -4,16 +4,18 @@ "description": "indexing", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/indexing/v3.ts b/src/apis/indexing/v3.ts index 9cecb5fc093..7d7c352ce60 100644 --- a/src/apis/indexing/v3.ts +++ b/src/apis/indexing/v3.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/indexing/webpack.config.js b/src/apis/indexing/webpack.config.js new file mode 100644 index 00000000000..41bfc285375 --- /dev/null +++ b/src/apis/indexing/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Indexing', + filename: 'indexing.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/jobs/README.md b/src/apis/jobs/README.md index 9f537bcfd6b..621f306363b 100644 --- a/src/apis/jobs/README.md +++ b/src/apis/jobs/README.md @@ -11,17 +11,37 @@ $ npm install @google/jobs ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/jobs +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/jobs.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/jobs/index.ts b/src/apis/jobs/index.ts index 6a228ba8105..6c2bdb9ee13 100644 --- a/src/apis/jobs/index.ts +++ b/src/apis/jobs/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {jobs_v2} from './v2'; import {jobs_v3} from './v3'; import {jobs_v3p1beta1} from './v3p1beta1'; @@ -36,3 +36,6 @@ export function jobs( jobs_v3.Options|'v3p1beta1'|jobs_v3p1beta1.Options) { return getAPI('jobs', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/jobs/package.json b/src/apis/jobs/package.json index 7f7c247f607..9954d9d2ca0 100644 --- a/src/apis/jobs/package.json +++ b/src/apis/jobs/package.json @@ -4,16 +4,18 @@ "description": "jobs", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/jobs/v2.ts b/src/apis/jobs/v2.ts index 39ef756584e..58191f37946 100644 --- a/src/apis/jobs/v2.ts +++ b/src/apis/jobs/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -569,7 +569,7 @@ export namespace jobs_v2 { * Optional but at least one of string_values or long_value must be * specified. This field is used to perform number range search. (`EQ`, * `GT`, `GE`, `LE`, `LT`) over filterable `long_value`. For `long_value`, a - * value between Long.MIN and Long.MIN is allowed. + * value between Long.MIN and Long.MAX is allowed. */ longValue?: string; /** diff --git a/src/apis/jobs/v3.ts b/src/apis/jobs/v3.ts index d6a9d3056b9..14c1ae24f16 100644 --- a/src/apis/jobs/v3.ts +++ b/src/apis/jobs/v3.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/jobs/v3p1beta1.ts b/src/apis/jobs/v3p1beta1.ts index 1bff8cacc48..5384d9d1356 100644 --- a/src/apis/jobs/v3p1beta1.ts +++ b/src/apis/jobs/v3p1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1434,6 +1434,45 @@ export namespace jobs_v3p1beta1 { */ minValue?: number; } + /** + * This resource represents a long-running operation that is the result of a + * network API call. + */ + export interface Schema$Operation { + /** + * If the value is `false`, it means the operation is still in progress. If + * `true`, the operation is completed, and either `error` or `response` is + * available. + */ + done?: boolean; + /** + * The error result of the operation in case of failure or cancellation. + */ + error?: Schema$Status; + /** + * Service-specific metadata associated with the operation. It typically + * contains progress information and common metadata such as create time. + * Some services might not provide such metadata. Any method that returns a + * long-running operation should document the metadata type, if any. + */ + metadata?: {[key: string]: any;}; + /** + * The server-assigned name, which is only unique within the same service + * that originally returns it. If you use the default HTTP mapping, the + * `name` should have the format of `operations/some/unique/name`. + */ + name?: string; + /** + * The normal response of the operation in case of success. If the original + * method returns no data on success, such as `Delete`, the response is + * `google.protobuf.Empty`. If the original method is standard + * `Get`/`Create`/`Update`, the response should be the resource. For other + * methods, the response should have the type `XxxResponse`, where `Xxx` is + * the original method name. For example, if the original method name is + * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + */ + response?: {[key: string]: any;}; + } /** * Represents a postal address, e.g. for postal delivery or payments * addresses. Given a postal address, a postal service can deliver items to a @@ -1716,7 +1755,17 @@ export namespace jobs_v3p1beta1 { * the relevance score adjusted to the * SearchJobsRequest.custom_ranking_info.ranking_expression with weight * factor assigned by SearchJobsRequest.custom_ranking_info.importance_level - * in descending order. + * in descending order. * "location`_`distance": By the distance + * between the location on jobs and locations specified in the + * SearchJobsRequest.job_query.location_filters. When this order is + * selected, the SearchJobsRequest.job_query.location_filters must not be + * empty. When a job has multiple locations, the location closest to one of + * the locations specified in the location filter will be used to calculate + * location distance. Distance is calculated by the distance between two + * lat/long coordinates, with a precision of 10e-4 degrees (11.3 meters). + * Jobs that don't have locations specified will be ranked below jobs + * having locations. Diversification strategy is still applied unless + * explicitly disabled in SearchJobsRequest.diversification_level. */ orderBy?: string; /** @@ -1826,6 +1875,59 @@ export namespace jobs_v3p1beta1 { */ correctedText?: string; } + /** + * The `Status` type defines a logical error model that is suitable for + * different programming environments, including REST APIs and RPC APIs. It is + * used by [gRPC](https://github.com/grpc). The error model is designed to be: + * - Simple to use and understand for most users - Flexible enough to meet + * unexpected needs # Overview The `Status` message contains three pieces of + * data: error code, error message, and error details. The error code should + * be an enum value of google.rpc.Code, but it may accept additional error + * codes if needed. The error message should be a developer-facing English + * message that helps developers *understand* and *resolve* the error. If a + * localized user-facing error message is needed, put the localized message in + * the error details or localize it in the client. The optional error details + * may contain arbitrary information about the error. There is a predefined + * set of error detail types in the package `google.rpc` that can be used for + * common error conditions. # Language mapping The `Status` message is the + * logical representation of the error model, but it is not necessarily the + * actual wire format. When the `Status` message is exposed in different + * client libraries and different wire protocols, it can be mapped + * differently. For example, it will likely be mapped to some exceptions in + * Java, but more likely mapped to some error codes in C. # Other uses The + * error model and the `Status` message can be used in a variety of + * environments, either with or without APIs, to provide a consistent + * developer experience across different environments. Example uses of this + * error model include: - Partial errors. If a service needs to return + * partial errors to the client, it may embed the `Status` in the normal + * response to indicate the partial errors. - Workflow errors. A typical + * workflow has multiple steps. Each step may have a `Status` message for + * error reporting. - Batch operations. If a client uses batch request and + * batch response, the `Status` message should be used directly inside + * batch response, one for each error sub-response. - Asynchronous + * operations. If an API call embeds asynchronous operation results in its + * response, the status of those operations should be represented directly + * using the `Status` message. - Logging. If some API errors are stored in + * logs, the message `Status` could be used directly after any stripping + * needed for security/privacy reasons. + */ + export interface Schema$Status { + /** + * The status code, which should be an enum value of google.rpc.Code. + */ + code?: number; + /** + * A list of messages that carry the error details. There is a common set + * of message types for APIs to use. + */ + details?: Array<{[key: string]: any;}>; + /** + * A developer-facing error message, which should be in English. Any + * user-facing error message should be localized and sent in the + * google.rpc.Status.details field, or localized by the client. + */ + message?: string; + } /** * Represents a time of day. The date and time zone are either not significant * or are specified elsewhere. An API may choose to allow leap seconds. @@ -1906,10 +2008,12 @@ export namespace jobs_v3p1beta1 { clientEvents: Resource$Projects$Clientevents; companies: Resource$Projects$Companies; jobs: Resource$Projects$Jobs; + operations: Resource$Projects$Operations; constructor() { this.clientEvents = new Resource$Projects$Clientevents(); this.companies = new Resource$Projects$Companies(); this.jobs = new Resource$Projects$Jobs(); + this.operations = new Resource$Projects$Operations(); } @@ -3302,4 +3406,87 @@ export namespace jobs_v3p1beta1 { */ requestBody?: Schema$SearchJobsRequest; } + + + export class Resource$Projects$Operations { + constructor() {} + + + /** + * jobs.projects.operations.get + * @desc Gets the latest state of a long-running operation. Clients can use + * this method to poll the operation result at intervals as recommended by + * the API service. + * @alias jobs.projects.operations.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the operation resource. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Projects$Operations$Get, + options?: MethodOptions): GaxiosPromise; + get(params: Params$Resource$Projects$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Operations$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3p1beta1/{+name}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Operations$Get extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } } diff --git a/src/apis/jobs/webpack.config.js b/src/apis/jobs/webpack.config.js new file mode 100644 index 00000000000..ed5d637669b --- /dev/null +++ b/src/apis/jobs/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Jobs', + filename: 'jobs.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/kgsearch/README.md b/src/apis/kgsearch/README.md index e5d37ee8d48..f67bd85036c 100644 --- a/src/apis/kgsearch/README.md +++ b/src/apis/kgsearch/README.md @@ -11,17 +11,37 @@ $ npm install @google/kgsearch ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/kgsearch +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/kgsearch.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/kgsearch/index.ts b/src/apis/kgsearch/index.ts index ec968533f80..13b3b0ee938 100644 --- a/src/apis/kgsearch/index.ts +++ b/src/apis/kgsearch/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {kgsearch_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function kgsearch( this: GoogleConfigurable, versionOrOptions: 'v1'|kgsearch_v1.Options) { return getAPI('kgsearch', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/kgsearch/package.json b/src/apis/kgsearch/package.json index fe067f5551e..5ac3e3f0a99 100644 --- a/src/apis/kgsearch/package.json +++ b/src/apis/kgsearch/package.json @@ -4,16 +4,18 @@ "description": "kgsearch", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/kgsearch/v1.ts b/src/apis/kgsearch/v1.ts index 455b31d7380..4b25cb05fa5 100644 --- a/src/apis/kgsearch/v1.ts +++ b/src/apis/kgsearch/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/kgsearch/webpack.config.js b/src/apis/kgsearch/webpack.config.js new file mode 100644 index 00000000000..26a999ef619 --- /dev/null +++ b/src/apis/kgsearch/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Kgsearch', + filename: 'kgsearch.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/language/README.md b/src/apis/language/README.md index 8b9bf8ea055..1d66a2ca7c2 100644 --- a/src/apis/language/README.md +++ b/src/apis/language/README.md @@ -11,17 +11,37 @@ $ npm install @google/language ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/language +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/language.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/language/index.ts b/src/apis/language/index.ts index 923237077b2..907110afdb0 100644 --- a/src/apis/language/index.ts +++ b/src/apis/language/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {language_v1} from './v1'; import {language_v1beta1} from './v1beta1'; import {language_v1beta2} from './v1beta2'; @@ -40,3 +40,6 @@ export function language< language_v1beta1.Options|'v1beta2'|language_v1beta2.Options) { return getAPI('language', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/language/package.json b/src/apis/language/package.json index e1ccd8d187e..58dcc6a5ed0 100644 --- a/src/apis/language/package.json +++ b/src/apis/language/package.json @@ -4,16 +4,18 @@ "description": "language", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/language/v1.ts b/src/apis/language/v1.ts index eacab9cabb2..2d6f72b4390 100644 --- a/src/apis/language/v1.ts +++ b/src/apis/language/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/language/v1beta1.ts b/src/apis/language/v1beta1.ts index d233ad67d8c..ce627fec61b 100644 --- a/src/apis/language/v1beta1.ts +++ b/src/apis/language/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/language/v1beta2.ts b/src/apis/language/v1beta2.ts index c0be9cf51be..a3132c9dacc 100644 --- a/src/apis/language/v1beta2.ts +++ b/src/apis/language/v1beta2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/language/webpack.config.js b/src/apis/language/webpack.config.js new file mode 100644 index 00000000000..91cc0cd8909 --- /dev/null +++ b/src/apis/language/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Language', + filename: 'language.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/libraryagent/README.md b/src/apis/libraryagent/README.md index d5a63878b7b..773e33520b7 100644 --- a/src/apis/libraryagent/README.md +++ b/src/apis/libraryagent/README.md @@ -11,17 +11,37 @@ $ npm install @google/libraryagent ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/libraryagent +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/libraryagent.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/libraryagent/index.ts b/src/apis/libraryagent/index.ts index d3967658d63..9867e1c676f 100644 --- a/src/apis/libraryagent/index.ts +++ b/src/apis/libraryagent/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {libraryagent_v1} from './v1'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function libraryagent( this: GoogleConfigurable, versionOrOptions: 'v1'|libraryagent_v1.Options) { return getAPI('libraryagent', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/libraryagent/package.json b/src/apis/libraryagent/package.json index 17c850bdcae..1a665975e93 100644 --- a/src/apis/libraryagent/package.json +++ b/src/apis/libraryagent/package.json @@ -4,16 +4,18 @@ "description": "libraryagent", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/libraryagent/v1.ts b/src/apis/libraryagent/v1.ts index 09b99610dbd..ed57363f3f0 100644 --- a/src/apis/libraryagent/v1.ts +++ b/src/apis/libraryagent/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/libraryagent/webpack.config.js b/src/apis/libraryagent/webpack.config.js new file mode 100644 index 00000000000..36cea16bd85 --- /dev/null +++ b/src/apis/libraryagent/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Libraryagent', + filename: 'libraryagent.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/licensing/README.md b/src/apis/licensing/README.md index b489903b83b..2f79d1921e2 100644 --- a/src/apis/licensing/README.md +++ b/src/apis/licensing/README.md @@ -11,17 +11,37 @@ $ npm install @google/licensing ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/licensing +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/licensing.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/licensing/index.ts b/src/apis/licensing/index.ts index f72b49ca0b8..f7f5c513acc 100644 --- a/src/apis/licensing/index.ts +++ b/src/apis/licensing/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {licensing_v1} from './v1'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function licensing( this: GoogleConfigurable, versionOrOptions: 'v1'|licensing_v1.Options) { return getAPI('licensing', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/licensing/package.json b/src/apis/licensing/package.json index 76efba73e41..e243f0b5b03 100644 --- a/src/apis/licensing/package.json +++ b/src/apis/licensing/package.json @@ -4,16 +4,18 @@ "description": "licensing", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/licensing/v1.ts b/src/apis/licensing/v1.ts index 5176dc127c1..b932fd169b8 100644 --- a/src/apis/licensing/v1.ts +++ b/src/apis/licensing/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/licensing/webpack.config.js b/src/apis/licensing/webpack.config.js new file mode 100644 index 00000000000..df20108cbff --- /dev/null +++ b/src/apis/licensing/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Licensing', + filename: 'licensing.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/logging/README.md b/src/apis/logging/README.md index ad31b6a8f0c..7b1029070f4 100644 --- a/src/apis/logging/README.md +++ b/src/apis/logging/README.md @@ -11,17 +11,37 @@ $ npm install @google/logging ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/logging +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/logging.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/logging/index.ts b/src/apis/logging/index.ts index 3f6ab504e09..d9964bb90a4 100644 --- a/src/apis/logging/index.ts +++ b/src/apis/logging/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {logging_v2} from './v2'; import {logging_v2beta1} from './v2beta1'; @@ -33,3 +33,6 @@ export function logging( logging_v2beta1.Options) { return getAPI('logging', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/logging/package.json b/src/apis/logging/package.json index e2e3df90063..93b4a2f424e 100644 --- a/src/apis/logging/package.json +++ b/src/apis/logging/package.json @@ -4,16 +4,18 @@ "description": "logging", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/logging/v2.ts b/src/apis/logging/v2.ts index 3e7e97788c7..e3468714f33 100644 --- a/src/apis/logging/v2.ts +++ b/src/apis/logging/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/logging/v2beta1.ts b/src/apis/logging/v2beta1.ts index 0244c7e7cd1..260f9763d42 100644 --- a/src/apis/logging/v2beta1.ts +++ b/src/apis/logging/v2beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/logging/webpack.config.js b/src/apis/logging/webpack.config.js new file mode 100644 index 00000000000..fb6e7b441b3 --- /dev/null +++ b/src/apis/logging/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Logging', + filename: 'logging.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/manufacturers/README.md b/src/apis/manufacturers/README.md index 0b738c3ecb4..adf144b688c 100644 --- a/src/apis/manufacturers/README.md +++ b/src/apis/manufacturers/README.md @@ -11,17 +11,37 @@ $ npm install @google/manufacturers ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/manufacturers +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/manufacturers.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/manufacturers/index.ts b/src/apis/manufacturers/index.ts index 6b5d832c93d..4ddbe8cf141 100644 --- a/src/apis/manufacturers/index.ts +++ b/src/apis/manufacturers/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {manufacturers_v1} from './v1'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function manufacturers( this: GoogleConfigurable, versionOrOptions: 'v1'|manufacturers_v1.Options) { return getAPI('manufacturers', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/manufacturers/package.json b/src/apis/manufacturers/package.json index 266a3da9c5e..a125529a5c9 100644 --- a/src/apis/manufacturers/package.json +++ b/src/apis/manufacturers/package.json @@ -4,16 +4,18 @@ "description": "manufacturers", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/manufacturers/v1.ts b/src/apis/manufacturers/v1.ts index 41e81fa0177..d8b51cac4d1 100644 --- a/src/apis/manufacturers/v1.ts +++ b/src/apis/manufacturers/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/manufacturers/webpack.config.js b/src/apis/manufacturers/webpack.config.js new file mode 100644 index 00000000000..2705af8f786 --- /dev/null +++ b/src/apis/manufacturers/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Manufacturers', + filename: 'manufacturers.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/mirror/README.md b/src/apis/mirror/README.md index 984bc37b185..8bbb3a2e62f 100644 --- a/src/apis/mirror/README.md +++ b/src/apis/mirror/README.md @@ -11,17 +11,37 @@ $ npm install @google/mirror ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/mirror +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/mirror.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/mirror/index.ts b/src/apis/mirror/index.ts index 97348fcb379..6ef2fa02715 100644 --- a/src/apis/mirror/index.ts +++ b/src/apis/mirror/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {mirror_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function mirror( this: GoogleConfigurable, versionOrOptions: 'v1'|mirror_v1.Options) { return getAPI('mirror', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/mirror/package.json b/src/apis/mirror/package.json index 64eccd4bb1d..070e6593355 100644 --- a/src/apis/mirror/package.json +++ b/src/apis/mirror/package.json @@ -4,16 +4,18 @@ "description": "mirror", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/mirror/v1.ts b/src/apis/mirror/v1.ts index 79135bc2bb8..f1053812fdd 100644 --- a/src/apis/mirror/v1.ts +++ b/src/apis/mirror/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/mirror/webpack.config.js b/src/apis/mirror/webpack.config.js new file mode 100644 index 00000000000..619aae6ef39 --- /dev/null +++ b/src/apis/mirror/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Mirror', + filename: 'mirror.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/ml/README.md b/src/apis/ml/README.md index 95ffeda42f7..b55a5110edb 100644 --- a/src/apis/ml/README.md +++ b/src/apis/ml/README.md @@ -11,17 +11,37 @@ $ npm install @google/ml ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/ml +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/ml.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/ml/index.ts b/src/apis/ml/index.ts index d444196d623..97b1399c649 100644 --- a/src/apis/ml/index.ts +++ b/src/apis/ml/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {ml_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function ml( this: GoogleConfigurable, versionOrOptions: 'v1'|ml_v1.Options) { return getAPI('ml', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/ml/package.json b/src/apis/ml/package.json index dd6ab62c557..368c60b3007 100644 --- a/src/apis/ml/package.json +++ b/src/apis/ml/package.json @@ -4,16 +4,18 @@ "description": "ml", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/ml/v1.ts b/src/apis/ml/v1.ts index c4bd53f7eb7..e27c2ac474c 100644 --- a/src/apis/ml/v1.ts +++ b/src/apis/ml/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -129,11 +129,12 @@ export namespace ml_v1 { */ export interface Schema$GoogleApi__HttpBody { /** - * The HTTP Content-Type string representing the content type of the body. + * The HTTP Content-Type header value specifying the content type of the + * body. */ contentType?: string; /** - * HTTP body binary data. + * The HTTP request/response body as raw binary. */ data?: string; /** @@ -593,7 +594,7 @@ export namespace ml_v1 { type?: string; } /** - * Represents input parameters for a prediction job. Next field: 20 + * Represents input parameters for a prediction job. */ export interface Schema$GoogleCloudMlV1__PredictionInput { /** @@ -769,20 +770,15 @@ export namespace ml_v1 { * equivalent to <i>complex_model_m</i> that also includes four * NVIDIA Tesla P100 GPUs. </dd> <dt>standard_v100</dt> * <dd> A machine equivalent to <i>standard</i> that - * also includes a single NVIDIA Tesla V100 GPU. The availability of these - * GPUs is in the <i>Beta</i> launch stage. </dd> + * also includes a single NVIDIA Tesla V100 GPU. </dd> * <dt>large_model_v100</dt> <dd> A machine equivalent * to <i>large_model</i> that also includes a single NVIDIA - * Tesla V100 GPU. The availability of these GPUs is in the - * <i>Beta</i> launch stage. </dd> - * <dt>complex_model_m_v100</dt> <dd> A machine - * equivalent to <i>complex_model_m</i> that also includes - * four NVIDIA Tesla V100 GPUs. The availability of these GPUs is in the - * <i>Beta</i> launch stage. </dd> + * Tesla V100 GPU. </dd> <dt>complex_model_m_v100</dt> + * <dd> A machine equivalent to <i>complex_model_m</i> + * that also includes four NVIDIA Tesla V100 GPUs. </dd> * <dt>complex_model_l_v100</dt> <dd> A machine * equivalent to <i>complex_model_l</i> that also includes - * eight NVIDIA Tesla V100 GPUs. The availability of these GPUs is in the - * <i>Beta</i> launch stage. </dd> + * eight NVIDIA Tesla V100 GPUs. </dd> * <dt>cloud_tpu</dt> <dd> A TPU VM including one * Cloud TPU. See more about <a * href="/ml-engine/docs/tensorflow/using-tpus">using TPUs to @@ -801,7 +797,7 @@ export namespace ml_v1 { * job. Each replica in the cluster will be of the type specified in * `parameter_server_type`. This value can only be used when `scale_tier` * is set to `CUSTOM`.If you set this value, you must also set - * `parameter_server_type`. + * `parameter_server_type`. The default value is zero. */ parameterServerCount?: string; /** @@ -851,7 +847,8 @@ export namespace ml_v1 { * Optional. The number of worker replicas to use for the training job. Each * replica in the cluster will be of the type specified in `worker_type`. * This value can only be used when `scale_tier` is set to `CUSTOM`. If you - * set this value, you must also set `worker_type`. + * set this value, you must also set `worker_type`. The default value is + * zero. */ workerCount?: string; /** diff --git a/src/apis/ml/webpack.config.js b/src/apis/ml/webpack.config.js new file mode 100644 index 00000000000..8b159b4debc --- /dev/null +++ b/src/apis/ml/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Ml', + filename: 'ml.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/monitoring/README.md b/src/apis/monitoring/README.md index 90873db989a..f093d74d838 100644 --- a/src/apis/monitoring/README.md +++ b/src/apis/monitoring/README.md @@ -11,17 +11,37 @@ $ npm install @google/monitoring ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/monitoring +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/monitoring.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/monitoring/index.ts b/src/apis/monitoring/index.ts index a323fef6959..ba148611dca 100644 --- a/src/apis/monitoring/index.ts +++ b/src/apis/monitoring/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {monitoring_v3} from './v3'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function monitoring( this: GoogleConfigurable, versionOrOptions: 'v3'|monitoring_v3.Options) { return getAPI('monitoring', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/monitoring/package.json b/src/apis/monitoring/package.json index 3577e2f8d18..e7cdc6b36e8 100644 --- a/src/apis/monitoring/package.json +++ b/src/apis/monitoring/package.json @@ -4,16 +4,18 @@ "description": "monitoring", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/monitoring/v3.ts b/src/apis/monitoring/v3.ts index b00d2ccb84b..4f67eac3899 100644 --- a/src/apis/monitoring/v3.ts +++ b/src/apis/monitoring/v3.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/monitoring/webpack.config.js b/src/apis/monitoring/webpack.config.js new file mode 100644 index 00000000000..3ddea9a1c09 --- /dev/null +++ b/src/apis/monitoring/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Monitoring', + filename: 'monitoring.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/oauth2/README.md b/src/apis/oauth2/README.md index 22495ebf1b1..0575b9cdc59 100644 --- a/src/apis/oauth2/README.md +++ b/src/apis/oauth2/README.md @@ -11,17 +11,37 @@ $ npm install @google/oauth2 ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/oauth2 +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/oauth2.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/oauth2/index.ts b/src/apis/oauth2/index.ts index b2fe6af130d..fb41a317888 100644 --- a/src/apis/oauth2/index.ts +++ b/src/apis/oauth2/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {oauth2_v1} from './v1'; import {oauth2_v2} from './v2'; @@ -31,3 +31,6 @@ export function oauth2( versionOrOptions: 'v1'|oauth2_v1.Options|'v2'|oauth2_v2.Options) { return getAPI('oauth2', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/oauth2/package.json b/src/apis/oauth2/package.json index df6a38225ef..ae9756de113 100644 --- a/src/apis/oauth2/package.json +++ b/src/apis/oauth2/package.json @@ -4,16 +4,18 @@ "description": "oauth2", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/oauth2/v1.ts b/src/apis/oauth2/v1.ts index c716f5468d9..085d31d27b5 100644 --- a/src/apis/oauth2/v1.ts +++ b/src/apis/oauth2/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/oauth2/v2.ts b/src/apis/oauth2/v2.ts index 17dd11b64b7..2d9d13f045e 100644 --- a/src/apis/oauth2/v2.ts +++ b/src/apis/oauth2/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/oauth2/webpack.config.js b/src/apis/oauth2/webpack.config.js new file mode 100644 index 00000000000..2ea59af974b --- /dev/null +++ b/src/apis/oauth2/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Oauth2', + filename: 'oauth2.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/oslogin/README.md b/src/apis/oslogin/README.md index 476e1af9731..c30b9e638d9 100644 --- a/src/apis/oslogin/README.md +++ b/src/apis/oslogin/README.md @@ -11,17 +11,37 @@ $ npm install @google/oslogin ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/oslogin +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/oslogin.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/oslogin/index.ts b/src/apis/oslogin/index.ts index 66c85148c4e..cb8ec8d868d 100644 --- a/src/apis/oslogin/index.ts +++ b/src/apis/oslogin/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {oslogin_v1} from './v1'; import {oslogin_v1alpha} from './v1alpha'; import {oslogin_v1beta} from './v1beta'; @@ -39,3 +39,6 @@ export function oslogin< oslogin_v1alpha.Options|'v1beta'|oslogin_v1beta.Options) { return getAPI('oslogin', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/oslogin/package.json b/src/apis/oslogin/package.json index e2011a485dd..c68ef258421 100644 --- a/src/apis/oslogin/package.json +++ b/src/apis/oslogin/package.json @@ -4,16 +4,18 @@ "description": "oslogin", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/oslogin/v1.ts b/src/apis/oslogin/v1.ts index c162348b012..dbc87a0f3b0 100644 --- a/src/apis/oslogin/v1.ts +++ b/src/apis/oslogin/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/oslogin/v1alpha.ts b/src/apis/oslogin/v1alpha.ts index 01a59f57401..25831ac6c80 100644 --- a/src/apis/oslogin/v1alpha.ts +++ b/src/apis/oslogin/v1alpha.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/oslogin/v1beta.ts b/src/apis/oslogin/v1beta.ts index a97cb814e5b..7590c6d4f4b 100644 --- a/src/apis/oslogin/v1beta.ts +++ b/src/apis/oslogin/v1beta.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/oslogin/webpack.config.js b/src/apis/oslogin/webpack.config.js new file mode 100644 index 00000000000..0f3b7f16817 --- /dev/null +++ b/src/apis/oslogin/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Oslogin', + filename: 'oslogin.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/pagespeedonline/README.md b/src/apis/pagespeedonline/README.md index 4e6a36659f7..61da0c7c2d9 100644 --- a/src/apis/pagespeedonline/README.md +++ b/src/apis/pagespeedonline/README.md @@ -11,17 +11,37 @@ $ npm install @google/pagespeedonline ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/pagespeedonline +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/pagespeedonline.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/pagespeedonline/index.ts b/src/apis/pagespeedonline/index.ts index de1d83d807d..7bc2c4f2502 100644 --- a/src/apis/pagespeedonline/index.ts +++ b/src/apis/pagespeedonline/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {pagespeedonline_v1} from './v1'; import {pagespeedonline_v2} from './v2'; import {pagespeedonline_v4} from './v4'; @@ -53,3 +53,6 @@ export function pagespeedonline< pagespeedonline_v4.Options|'v5'|pagespeedonline_v5.Options) { return getAPI('pagespeedonline', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/pagespeedonline/package.json b/src/apis/pagespeedonline/package.json index 4d9e1f4b52c..9534ad2e470 100644 --- a/src/apis/pagespeedonline/package.json +++ b/src/apis/pagespeedonline/package.json @@ -4,16 +4,18 @@ "description": "pagespeedonline", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/pagespeedonline/v1.ts b/src/apis/pagespeedonline/v1.ts index 20830a6d58a..8d555241f47 100644 --- a/src/apis/pagespeedonline/v1.ts +++ b/src/apis/pagespeedonline/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/pagespeedonline/v2.ts b/src/apis/pagespeedonline/v2.ts index c267bda6d8e..b1f5aff4d49 100644 --- a/src/apis/pagespeedonline/v2.ts +++ b/src/apis/pagespeedonline/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/pagespeedonline/v4.ts b/src/apis/pagespeedonline/v4.ts index 4bdfe9b0e45..ce793229059 100644 --- a/src/apis/pagespeedonline/v4.ts +++ b/src/apis/pagespeedonline/v4.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/pagespeedonline/v5.ts b/src/apis/pagespeedonline/v5.ts index 5956397543f..31058b67c7f 100644 --- a/src/apis/pagespeedonline/v5.ts +++ b/src/apis/pagespeedonline/v5.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/pagespeedonline/webpack.config.js b/src/apis/pagespeedonline/webpack.config.js new file mode 100644 index 00000000000..f6e9deba87e --- /dev/null +++ b/src/apis/pagespeedonline/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Pagespeedonline', + filename: 'pagespeedonline.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/people/README.md b/src/apis/people/README.md index 6cdd6ef49e8..2a06787e01d 100644 --- a/src/apis/people/README.md +++ b/src/apis/people/README.md @@ -11,17 +11,37 @@ $ npm install @google/people ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/people +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/people.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/people/index.ts b/src/apis/people/index.ts index e1ea1a56f35..ff84fd325dc 100644 --- a/src/apis/people/index.ts +++ b/src/apis/people/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {people_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function people( this: GoogleConfigurable, versionOrOptions: 'v1'|people_v1.Options) { return getAPI('people', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/people/package.json b/src/apis/people/package.json index c37d6277e77..093490cf6b4 100644 --- a/src/apis/people/package.json +++ b/src/apis/people/package.json @@ -4,16 +4,18 @@ "description": "people", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/people/v1.ts b/src/apis/people/v1.ts index 5cc3d241ecd..fe6a3a74622 100644 --- a/src/apis/people/v1.ts +++ b/src/apis/people/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/people/webpack.config.js b/src/apis/people/webpack.config.js new file mode 100644 index 00000000000..32ccea223d7 --- /dev/null +++ b/src/apis/people/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'People', + filename: 'people.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/playcustomapp/README.md b/src/apis/playcustomapp/README.md index f83ba4246cb..738dc8364e7 100644 --- a/src/apis/playcustomapp/README.md +++ b/src/apis/playcustomapp/README.md @@ -11,17 +11,37 @@ $ npm install @google/playcustomapp ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/playcustomapp +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/playcustomapp.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/playcustomapp/index.ts b/src/apis/playcustomapp/index.ts index 179d104600c..9a79d9b2b43 100644 --- a/src/apis/playcustomapp/index.ts +++ b/src/apis/playcustomapp/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {playcustomapp_v1} from './v1'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function playcustomapp( this: GoogleConfigurable, versionOrOptions: 'v1'|playcustomapp_v1.Options) { return getAPI('playcustomapp', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/playcustomapp/package.json b/src/apis/playcustomapp/package.json index d3d19e7028d..83645765062 100644 --- a/src/apis/playcustomapp/package.json +++ b/src/apis/playcustomapp/package.json @@ -4,16 +4,18 @@ "description": "playcustomapp", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/playcustomapp/v1.ts b/src/apis/playcustomapp/v1.ts index e497a164a55..4453d0a59cd 100644 --- a/src/apis/playcustomapp/v1.ts +++ b/src/apis/playcustomapp/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/playcustomapp/webpack.config.js b/src/apis/playcustomapp/webpack.config.js new file mode 100644 index 00000000000..b92bc198b7b --- /dev/null +++ b/src/apis/playcustomapp/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Playcustomapp', + filename: 'playcustomapp.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/plus/README.md b/src/apis/plus/README.md index 4c6e2325c1a..ad184d17dfa 100644 --- a/src/apis/plus/README.md +++ b/src/apis/plus/README.md @@ -11,17 +11,37 @@ $ npm install @google/plus ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/plus +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/plus.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/plus/index.ts b/src/apis/plus/index.ts index a18013b38ae..76faaca23d4 100644 --- a/src/apis/plus/index.ts +++ b/src/apis/plus/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {plus_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function plus( this: GoogleConfigurable, versionOrOptions: 'v1'|plus_v1.Options) { return getAPI('plus', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/plus/package.json b/src/apis/plus/package.json index 995cf5658d8..5d2e26204a4 100644 --- a/src/apis/plus/package.json +++ b/src/apis/plus/package.json @@ -4,16 +4,18 @@ "description": "plus", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/plus/v1.ts b/src/apis/plus/v1.ts index 4a8b2f4a035..0c8f3e6b4b2 100644 --- a/src/apis/plus/v1.ts +++ b/src/apis/plus/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/plus/webpack.config.js b/src/apis/plus/webpack.config.js new file mode 100644 index 00000000000..89a565ab8a7 --- /dev/null +++ b/src/apis/plus/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Plus', + filename: 'plus.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/plusDomains/README.md b/src/apis/plusDomains/README.md index a6f60d87085..cbd4c4e1b8e 100644 --- a/src/apis/plusDomains/README.md +++ b/src/apis/plusDomains/README.md @@ -11,17 +11,37 @@ $ npm install @google/plusDomains ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/plusDomains +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/plusDomains.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/plusDomains/index.ts b/src/apis/plusDomains/index.ts index e7c15a61a4f..c357de6bc87 100644 --- a/src/apis/plusDomains/index.ts +++ b/src/apis/plusDomains/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {plusDomains_v1} from './v1'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function plusDomains( this: GoogleConfigurable, versionOrOptions: 'v1'|plusDomains_v1.Options) { return getAPI('plusDomains', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/plusDomains/package.json b/src/apis/plusDomains/package.json index 9c842387a1b..ee4aa1201b9 100644 --- a/src/apis/plusDomains/package.json +++ b/src/apis/plusDomains/package.json @@ -4,16 +4,18 @@ "description": "plusDomains", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/plusDomains/v1.ts b/src/apis/plusDomains/v1.ts index 8c3db14d1b0..be46b73c410 100644 --- a/src/apis/plusDomains/v1.ts +++ b/src/apis/plusDomains/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/plusDomains/webpack.config.js b/src/apis/plusDomains/webpack.config.js new file mode 100644 index 00000000000..b9a15ce157b --- /dev/null +++ b/src/apis/plusDomains/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Plusdomains', + filename: 'plusDomains.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/poly/README.md b/src/apis/poly/README.md index 133c3ca4c5b..e9434fb2c08 100644 --- a/src/apis/poly/README.md +++ b/src/apis/poly/README.md @@ -11,17 +11,37 @@ $ npm install @google/poly ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/poly +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/poly.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/poly/index.ts b/src/apis/poly/index.ts index af0bf51c6dd..43a9f41b871 100644 --- a/src/apis/poly/index.ts +++ b/src/apis/poly/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {poly_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function poly( this: GoogleConfigurable, versionOrOptions: 'v1'|poly_v1.Options) { return getAPI('poly', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/poly/package.json b/src/apis/poly/package.json index 4c1d182d140..35b38058d01 100644 --- a/src/apis/poly/package.json +++ b/src/apis/poly/package.json @@ -4,16 +4,18 @@ "description": "poly", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/poly/v1.ts b/src/apis/poly/v1.ts index 1599b23fe9e..f5eb54d1859 100644 --- a/src/apis/poly/v1.ts +++ b/src/apis/poly/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/poly/webpack.config.js b/src/apis/poly/webpack.config.js new file mode 100644 index 00000000000..917e4e338c1 --- /dev/null +++ b/src/apis/poly/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Poly', + filename: 'poly.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/proximitybeacon/README.md b/src/apis/proximitybeacon/README.md index 0fe210e34b8..0183748fbdc 100644 --- a/src/apis/proximitybeacon/README.md +++ b/src/apis/proximitybeacon/README.md @@ -11,17 +11,37 @@ $ npm install @google/proximitybeacon ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/proximitybeacon +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/proximitybeacon.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/proximitybeacon/index.ts b/src/apis/proximitybeacon/index.ts index 3ce9263f62e..308d4e488d6 100644 --- a/src/apis/proximitybeacon/index.ts +++ b/src/apis/proximitybeacon/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {proximitybeacon_v1beta1} from './v1beta1'; export const VERSIONS = { @@ -29,3 +29,6 @@ export function proximitybeacon( versionOrOptions: 'v1beta1'|proximitybeacon_v1beta1.Options) { return getAPI('proximitybeacon', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/proximitybeacon/package.json b/src/apis/proximitybeacon/package.json index eb6986a87d9..bbb113ec1c8 100644 --- a/src/apis/proximitybeacon/package.json +++ b/src/apis/proximitybeacon/package.json @@ -4,16 +4,18 @@ "description": "proximitybeacon", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/proximitybeacon/v1beta1.ts b/src/apis/proximitybeacon/v1beta1.ts index 237ecd3d733..9292c73bd31 100644 --- a/src/apis/proximitybeacon/v1beta1.ts +++ b/src/apis/proximitybeacon/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/proximitybeacon/webpack.config.js b/src/apis/proximitybeacon/webpack.config.js new file mode 100644 index 00000000000..3c87cda4664 --- /dev/null +++ b/src/apis/proximitybeacon/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Proximitybeacon', + filename: 'proximitybeacon.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/pubsub/README.md b/src/apis/pubsub/README.md index 60103e88af7..fbda0903b9f 100644 --- a/src/apis/pubsub/README.md +++ b/src/apis/pubsub/README.md @@ -11,17 +11,37 @@ $ npm install @google/pubsub ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/pubsub +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/pubsub.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/pubsub/index.ts b/src/apis/pubsub/index.ts index f46b01fbd56..62443a09937 100644 --- a/src/apis/pubsub/index.ts +++ b/src/apis/pubsub/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {pubsub_v1} from './v1'; import {pubsub_v1beta1a} from './v1beta1a'; import {pubsub_v1beta2} from './v1beta2'; @@ -38,3 +38,6 @@ pubsub( pubsub_v1beta1a.Options|'v1beta2'|pubsub_v1beta2.Options) { return getAPI('pubsub', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/pubsub/package.json b/src/apis/pubsub/package.json index bb3b717dff0..0f498ae70ee 100644 --- a/src/apis/pubsub/package.json +++ b/src/apis/pubsub/package.json @@ -4,16 +4,18 @@ "description": "pubsub", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/pubsub/v1.ts b/src/apis/pubsub/v1.ts index ebc4379f115..c1328b6e491 100644 --- a/src/apis/pubsub/v1.ts +++ b/src/apis/pubsub/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/pubsub/v1beta1a.ts b/src/apis/pubsub/v1beta1a.ts index 93d06cc6c58..76718156ca0 100644 --- a/src/apis/pubsub/v1beta1a.ts +++ b/src/apis/pubsub/v1beta1a.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/pubsub/v1beta2.ts b/src/apis/pubsub/v1beta2.ts index 3fa8f5fc50e..f4b41eb64af 100644 --- a/src/apis/pubsub/v1beta2.ts +++ b/src/apis/pubsub/v1beta2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/pubsub/webpack.config.js b/src/apis/pubsub/webpack.config.js new file mode 100644 index 00000000000..c8dedc31227 --- /dev/null +++ b/src/apis/pubsub/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Pubsub', + filename: 'pubsub.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/redis/README.md b/src/apis/redis/README.md index 8fd0cfa8bdd..864a9030a2e 100644 --- a/src/apis/redis/README.md +++ b/src/apis/redis/README.md @@ -11,17 +11,37 @@ $ npm install @google/redis ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/redis +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/redis.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/redis/index.ts b/src/apis/redis/index.ts index 6825f537536..65bcc1cec09 100644 --- a/src/apis/redis/index.ts +++ b/src/apis/redis/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {redis_v1} from './v1'; import {redis_v1beta1} from './v1beta1'; @@ -31,3 +31,6 @@ export function redis( versionOrOptions: 'v1'|redis_v1.Options|'v1beta1'|redis_v1beta1.Options) { return getAPI('redis', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/redis/package.json b/src/apis/redis/package.json index a18fac78a59..e5334cff6fb 100644 --- a/src/apis/redis/package.json +++ b/src/apis/redis/package.json @@ -4,16 +4,18 @@ "description": "redis", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/redis/v1.ts b/src/apis/redis/v1.ts index 191aad67948..b49a2f5cf00 100644 --- a/src/apis/redis/v1.ts +++ b/src/apis/redis/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/redis/v1beta1.ts b/src/apis/redis/v1beta1.ts index 24c5665abec..a1b43e6a732 100644 --- a/src/apis/redis/v1beta1.ts +++ b/src/apis/redis/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/redis/webpack.config.js b/src/apis/redis/webpack.config.js new file mode 100644 index 00000000000..48f3d6af226 --- /dev/null +++ b/src/apis/redis/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Redis', + filename: 'redis.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/remotebuildexecution/README.md b/src/apis/remotebuildexecution/README.md index 3354950c701..6686e31425c 100644 --- a/src/apis/remotebuildexecution/README.md +++ b/src/apis/remotebuildexecution/README.md @@ -11,17 +11,37 @@ $ npm install @google/remotebuildexecution ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/remotebuildexecution +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/remotebuildexecution.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/remotebuildexecution/index.ts b/src/apis/remotebuildexecution/index.ts index 517bd4282ef..756c3de3004 100644 --- a/src/apis/remotebuildexecution/index.ts +++ b/src/apis/remotebuildexecution/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {remotebuildexecution_v1} from './v1'; import {remotebuildexecution_v1alpha} from './v1alpha'; import {remotebuildexecution_v2} from './v2'; @@ -47,3 +47,6 @@ export function remotebuildexecution< remotebuildexecution_v1alpha.Options|'v2'|remotebuildexecution_v2.Options) { return getAPI('remotebuildexecution', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/remotebuildexecution/package.json b/src/apis/remotebuildexecution/package.json index 32cd08f44be..7bbf98598e8 100644 --- a/src/apis/remotebuildexecution/package.json +++ b/src/apis/remotebuildexecution/package.json @@ -4,16 +4,18 @@ "description": "remotebuildexecution", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/remotebuildexecution/v1.ts b/src/apis/remotebuildexecution/v1.ts index 726e41c5dbd..9a401393d7b 100644 --- a/src/apis/remotebuildexecution/v1.ts +++ b/src/apis/remotebuildexecution/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -293,7 +293,7 @@ export namespace remotebuildexecution_v1 { * The environment variables to set when running the program. The worker may * provide its own default environment variables; these defaults can be * overridden using this field. Additional variables can also be specified. - * In order to ensure that equivalent `Command`s always hash to the same + * In order to ensure that equivalent Commands always hash to the same * value, the environment variables MUST be lexicographically sorted by * name. Sorting of strings is done by code point, equivalently, by the * UTF-8 bytes. @@ -302,38 +302,42 @@ export namespace remotebuildexecution_v1 { Schema$BuildBazelRemoteExecutionV2CommandEnvironmentVariable[]; /** * A list of the output directories that the client expects to retrieve from - * the action. Only the contents of the indicated directories (recursively - * including the contents of their subdirectories) will be returned, as well - * as files listed in `output_files`. Other files that may be created during - * command execution are discarded. The paths are relative to the working - * directory of the action execution. The paths are specified using a single - * forward slash (`/`) as a path separator, even if the execution platform - * natively uses a different separator. The path MUST NOT include a trailing - * slash, nor a leading slash, being a relative path. The special value of - * empty string is allowed, although not recommended, and can be used to - * capture the entire working directory tree, including inputs. In order to - * ensure consistent hashing of the same Action, the output paths MUST be - * sorted lexicographically by code point (or, equivalently, by UTF-8 - * bytes). An output directory cannot be duplicated, be a parent of another - * output directory, be a parent of a listed output file, or have the same - * path as any of the listed output files. + * the action. Only the listed directories will be returned (an entire + * directory structure will be returned as a Tree message digest, see + * OutputDirectory), as well as files listed in `output_files`. Other files + * or directories that may be created during command execution are + * discarded. The paths are relative to the working directory of the action + * execution. The paths are specified using a single forward slash (`/`) as + * a path separator, even if the execution platform natively uses a + * different separator. The path MUST NOT include a trailing slash, nor a + * leading slash, being a relative path. The special value of empty string + * is allowed, although not recommended, and can be used to capture the + * entire working directory tree, including inputs. In order to ensure + * consistent hashing of the same Action, the output paths MUST be sorted + * lexicographically by code point (or, equivalently, by UTF-8 bytes). An + * output directory cannot be duplicated or have the same path as any of the + * listed output files. Directories leading up to the output directories + * (but not the output directories themselves) are created by the worker + * prior to execution, even if they are not explicitly part of the input + * root. */ outputDirectories?: string[]; /** * A list of the output files that the client expects to retrieve from the * action. Only the listed files, as well as directories listed in * `output_directories`, will be returned to the client as output. Other - * files that may be created during command execution are discarded. The - * paths are relative to the working directory of the action execution. The - * paths are specified using a single forward slash (`/`) as a path - * separator, even if the execution platform natively uses a different - * separator. The path MUST NOT include a trailing slash, nor a leading - * slash, being a relative path. In order to ensure consistent hashing of - * the same Action, the output paths MUST be sorted lexicographically by - * code point (or, equivalently, by UTF-8 bytes). An output file cannot be - * duplicated, be a parent of another output file, be a child of a listed - * output directory, or have the same path as any of the listed output - * directories. + * files or directories that may be created during command execution are + * discarded. The paths are relative to the working directory of the action + * execution. The paths are specified using a single forward slash (`/`) as + * a path separator, even if the execution platform natively uses a + * different separator. The path MUST NOT include a trailing slash, nor a + * leading slash, being a relative path. In order to ensure consistent + * hashing of the same Action, the output paths MUST be sorted + * lexicographically by code point (or, equivalently, by UTF-8 bytes). An + * output file cannot be duplicated, be a parent of another output file, or + * have the same path as any of the listed output directories. Directories + * leading up to the output files are created by the worker prior to + * execution, even if they are not explicitly part of the input root. */ outputFiles?: string[]; /** @@ -384,8 +388,8 @@ export namespace remotebuildexecution_v1 { * the message in binary encoded form. To ensure consistent hashing, clients * and servers MUST ensure that they serialize messages according to the * following rules, even if there are alternate valid encodings for the same - * message. - Fields are serialized in tag order. - There are no unknown - * fields. - There are no duplicate fields. - Fields are serialized according + * message: * Fields are serialized in tag order. * There are no unknown + * fields. * There are no duplicate fields. * Fields are serialized according * to the default semantics for their type. Most protocol buffer * implementations will always follow these rules when serializing, but care * should be taken to avoid shortcuts. For instance, concatenating two @@ -409,11 +413,11 @@ export namespace remotebuildexecution_v1 { * (either a file blob or a `Directory` proto) or a symlink target, as well as * possibly some metadata about the file or directory. In order to ensure * that two equivalent directory trees hash to the same value, the following - * restrictions MUST be obeyed when constructing a a `Directory`: - Every - * child in the directory must have a path of exactly one segment. Multiple - * levels of directory hierarchy may not be collapsed. - Each child in the - * directory must have a unique path segment (file name). - The files, - * directories and symlinks in the directory must each be sorted in + * restrictions MUST be obeyed when constructing a a `Directory`: * Every + * child in the directory must have a path of exactly one segment. Multiple + * levels of directory hierarchy may not be collapsed. * Each child in the + * directory must have a unique path segment (file name). * The files, + * directories and symlinks in the directory must each be sorted in * lexicographical order by path. The path strings must be sorted by code * point, equivalently, by UTF-8 bytes. A `Directory` that obeys the * restrictions is said to be in canonical form. As an example, the following @@ -532,6 +536,12 @@ export namespace remotebuildexecution_v1 { * True if the result was served from cache, false if it was executed. */ cachedResult?: boolean; + /** + * Freeform informational message with details on the execution of the + * action that may be displayed to the user upon failure or when requested + * explicitly. + */ + message?: string; /** * The result of the action. */ @@ -697,9 +707,9 @@ export namespace remotebuildexecution_v1 { * An optional Metadata to attach to any RPC request to tell the server about * an external context of the request. The server may use this for logging or * other purposes. To use it, the client attaches the header to the call using - * the canonical proto serialization: name: - * build.bazel.remote.execution.v2.requestmetadata-bin contents: the base64 - * encoded binary RequestMetadata message. + * the canonical proto serialization: * name: + * `build.bazel.remote.execution.v2.requestmetadata-bin` * contents: the + * base64 encoded binary `RequestMetadata` message. */ export interface Schema$BuildBazelRemoteExecutionV2RequestMetadata { /** @@ -933,6 +943,10 @@ export namespace remotebuildexecution_v1 { * The location is a GCP region. Currently only `us-central1` is supported. */ location?: string; + /** + * Output only. Whether stack driver logging is enabled for the instance. + */ + loggingEnabled?: boolean; /** * Output only. Instance resource name formatted as: * `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name should not be @@ -1019,8 +1033,9 @@ export namespace remotebuildexecution_v1 { */ minCpuPlatform?: string; /** - * Output only. `reserved=true` means the worker is reserved and won't - * be preempted. + * Determines whether the worker is reserved (and therefore won't be + * preempted). See [Preemptible + * VMs](https://cloud.google.com/preemptible-vms/) for more details. */ reserved?: boolean; } @@ -1552,6 +1567,15 @@ export namespace remotebuildexecution_v1 { * unset). */ exitCode?: number; + /** + * Implementation-dependent metadata about the task. Both servers and bots + * may define messages which can be encoded here; bots are free to provide + * metadata in multiple formats, and servers are free to choose one or more + * of the values to process and ignore others. In particular, it is *not* + * considered an error for the bot to provide the server with a field that + * it doesn't know about. + */ + metadata?: Array<{[key: string]: any;}>; /** * The output files. The blob referenced by the digest should contain one of * the following (implementation-dependent): * A marshalled @@ -1564,15 +1588,6 @@ export namespace remotebuildexecution_v1 { * uploading/downloading files). */ overhead?: string; - /** - * Implementation-dependent statistics about the task. Both servers and bots - * may define messages which can be encoded here; bots are free to provide - * statistics in multiple formats, and servers are free to choose one or - * more of the values to process and ignore others. In particular, it is - * *not* considered an error for the bot to provide the server with a field - * that it doesn't know about. - */ - statistics?: Array<{[key: string]: any;}>; /** * An overall status for the command. For example, if the command timed out, * this might have a code of DEADLINE_EXCEEDED; if it was killed by the OS diff --git a/src/apis/remotebuildexecution/v1alpha.ts b/src/apis/remotebuildexecution/v1alpha.ts index 5d3a0f74574..ba24c70cb89 100644 --- a/src/apis/remotebuildexecution/v1alpha.ts +++ b/src/apis/remotebuildexecution/v1alpha.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -287,7 +287,7 @@ export namespace remotebuildexecution_v1alpha { * The environment variables to set when running the program. The worker may * provide its own default environment variables; these defaults can be * overridden using this field. Additional variables can also be specified. - * In order to ensure that equivalent `Command`s always hash to the same + * In order to ensure that equivalent Commands always hash to the same * value, the environment variables MUST be lexicographically sorted by * name. Sorting of strings is done by code point, equivalently, by the * UTF-8 bytes. @@ -296,38 +296,42 @@ export namespace remotebuildexecution_v1alpha { Schema$BuildBazelRemoteExecutionV2CommandEnvironmentVariable[]; /** * A list of the output directories that the client expects to retrieve from - * the action. Only the contents of the indicated directories (recursively - * including the contents of their subdirectories) will be returned, as well - * as files listed in `output_files`. Other files that may be created during - * command execution are discarded. The paths are relative to the working - * directory of the action execution. The paths are specified using a single - * forward slash (`/`) as a path separator, even if the execution platform - * natively uses a different separator. The path MUST NOT include a trailing - * slash, nor a leading slash, being a relative path. The special value of - * empty string is allowed, although not recommended, and can be used to - * capture the entire working directory tree, including inputs. In order to - * ensure consistent hashing of the same Action, the output paths MUST be - * sorted lexicographically by code point (or, equivalently, by UTF-8 - * bytes). An output directory cannot be duplicated, be a parent of another - * output directory, be a parent of a listed output file, or have the same - * path as any of the listed output files. + * the action. Only the listed directories will be returned (an entire + * directory structure will be returned as a Tree message digest, see + * OutputDirectory), as well as files listed in `output_files`. Other files + * or directories that may be created during command execution are + * discarded. The paths are relative to the working directory of the action + * execution. The paths are specified using a single forward slash (`/`) as + * a path separator, even if the execution platform natively uses a + * different separator. The path MUST NOT include a trailing slash, nor a + * leading slash, being a relative path. The special value of empty string + * is allowed, although not recommended, and can be used to capture the + * entire working directory tree, including inputs. In order to ensure + * consistent hashing of the same Action, the output paths MUST be sorted + * lexicographically by code point (or, equivalently, by UTF-8 bytes). An + * output directory cannot be duplicated or have the same path as any of the + * listed output files. Directories leading up to the output directories + * (but not the output directories themselves) are created by the worker + * prior to execution, even if they are not explicitly part of the input + * root. */ outputDirectories?: string[]; /** * A list of the output files that the client expects to retrieve from the * action. Only the listed files, as well as directories listed in * `output_directories`, will be returned to the client as output. Other - * files that may be created during command execution are discarded. The - * paths are relative to the working directory of the action execution. The - * paths are specified using a single forward slash (`/`) as a path - * separator, even if the execution platform natively uses a different - * separator. The path MUST NOT include a trailing slash, nor a leading - * slash, being a relative path. In order to ensure consistent hashing of - * the same Action, the output paths MUST be sorted lexicographically by - * code point (or, equivalently, by UTF-8 bytes). An output file cannot be - * duplicated, be a parent of another output file, be a child of a listed - * output directory, or have the same path as any of the listed output - * directories. + * files or directories that may be created during command execution are + * discarded. The paths are relative to the working directory of the action + * execution. The paths are specified using a single forward slash (`/`) as + * a path separator, even if the execution platform natively uses a + * different separator. The path MUST NOT include a trailing slash, nor a + * leading slash, being a relative path. In order to ensure consistent + * hashing of the same Action, the output paths MUST be sorted + * lexicographically by code point (or, equivalently, by UTF-8 bytes). An + * output file cannot be duplicated, be a parent of another output file, or + * have the same path as any of the listed output directories. Directories + * leading up to the output files are created by the worker prior to + * execution, even if they are not explicitly part of the input root. */ outputFiles?: string[]; /** @@ -378,8 +382,8 @@ export namespace remotebuildexecution_v1alpha { * the message in binary encoded form. To ensure consistent hashing, clients * and servers MUST ensure that they serialize messages according to the * following rules, even if there are alternate valid encodings for the same - * message. - Fields are serialized in tag order. - There are no unknown - * fields. - There are no duplicate fields. - Fields are serialized according + * message: * Fields are serialized in tag order. * There are no unknown + * fields. * There are no duplicate fields. * Fields are serialized according * to the default semantics for their type. Most protocol buffer * implementations will always follow these rules when serializing, but care * should be taken to avoid shortcuts. For instance, concatenating two @@ -403,11 +407,11 @@ export namespace remotebuildexecution_v1alpha { * (either a file blob or a `Directory` proto) or a symlink target, as well as * possibly some metadata about the file or directory. In order to ensure * that two equivalent directory trees hash to the same value, the following - * restrictions MUST be obeyed when constructing a a `Directory`: - Every - * child in the directory must have a path of exactly one segment. Multiple - * levels of directory hierarchy may not be collapsed. - Each child in the - * directory must have a unique path segment (file name). - The files, - * directories and symlinks in the directory must each be sorted in + * restrictions MUST be obeyed when constructing a a `Directory`: * Every + * child in the directory must have a path of exactly one segment. Multiple + * levels of directory hierarchy may not be collapsed. * Each child in the + * directory must have a unique path segment (file name). * The files, + * directories and symlinks in the directory must each be sorted in * lexicographical order by path. The path strings must be sorted by code * point, equivalently, by UTF-8 bytes. A `Directory` that obeys the * restrictions is said to be in canonical form. As an example, the following @@ -526,6 +530,12 @@ export namespace remotebuildexecution_v1alpha { * True if the result was served from cache, false if it was executed. */ cachedResult?: boolean; + /** + * Freeform informational message with details on the execution of the + * action that may be displayed to the user upon failure or when requested + * explicitly. + */ + message?: string; /** * The result of the action. */ @@ -691,9 +701,9 @@ export namespace remotebuildexecution_v1alpha { * An optional Metadata to attach to any RPC request to tell the server about * an external context of the request. The server may use this for logging or * other purposes. To use it, the client attaches the header to the call using - * the canonical proto serialization: name: - * build.bazel.remote.execution.v2.requestmetadata-bin contents: the base64 - * encoded binary RequestMetadata message. + * the canonical proto serialization: * name: + * `build.bazel.remote.execution.v2.requestmetadata-bin` * contents: the + * base64 encoded binary `RequestMetadata` message. */ export interface Schema$BuildBazelRemoteExecutionV2RequestMetadata { /** @@ -918,6 +928,10 @@ export namespace remotebuildexecution_v1alpha { * The location is a GCP region. Currently only `us-central1` is supported. */ location?: string; + /** + * Output only. Whether stack driver logging is enabled for the instance. + */ + loggingEnabled?: boolean; /** * Output only. Instance resource name formatted as: * `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name should not be @@ -1004,8 +1018,9 @@ export namespace remotebuildexecution_v1alpha { */ minCpuPlatform?: string; /** - * Output only. `reserved=true` means the worker is reserved and won't - * be preempted. + * Determines whether the worker is reserved (and therefore won't be + * preempted). See [Preemptible + * VMs](https://cloud.google.com/preemptible-vms/) for more details. */ reserved?: boolean; } @@ -1537,6 +1552,15 @@ export namespace remotebuildexecution_v1alpha { * unset). */ exitCode?: number; + /** + * Implementation-dependent metadata about the task. Both servers and bots + * may define messages which can be encoded here; bots are free to provide + * metadata in multiple formats, and servers are free to choose one or more + * of the values to process and ignore others. In particular, it is *not* + * considered an error for the bot to provide the server with a field that + * it doesn't know about. + */ + metadata?: Array<{[key: string]: any;}>; /** * The output files. The blob referenced by the digest should contain one of * the following (implementation-dependent): * A marshalled @@ -1549,15 +1573,6 @@ export namespace remotebuildexecution_v1alpha { * uploading/downloading files). */ overhead?: string; - /** - * Implementation-dependent statistics about the task. Both servers and bots - * may define messages which can be encoded here; bots are free to provide - * statistics in multiple formats, and servers are free to choose one or - * more of the values to process and ignore others. In particular, it is - * *not* considered an error for the bot to provide the server with a field - * that it doesn't know about. - */ - statistics?: Array<{[key: string]: any;}>; /** * An overall status for the command. For example, if the command timed out, * this might have a code of DEADLINE_EXCEEDED; if it was killed by the OS diff --git a/src/apis/remotebuildexecution/v2.ts b/src/apis/remotebuildexecution/v2.ts index dc212a440da..c2a6159e0aa 100644 --- a/src/apis/remotebuildexecution/v2.ts +++ b/src/apis/remotebuildexecution/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -414,7 +414,7 @@ export namespace remotebuildexecution_v2 { * The environment variables to set when running the program. The worker may * provide its own default environment variables; these defaults can be * overridden using this field. Additional variables can also be specified. - * In order to ensure that equivalent `Command`s always hash to the same + * In order to ensure that equivalent Commands always hash to the same * value, the environment variables MUST be lexicographically sorted by * name. Sorting of strings is done by code point, equivalently, by the * UTF-8 bytes. @@ -423,38 +423,42 @@ export namespace remotebuildexecution_v2 { Schema$BuildBazelRemoteExecutionV2CommandEnvironmentVariable[]; /** * A list of the output directories that the client expects to retrieve from - * the action. Only the contents of the indicated directories (recursively - * including the contents of their subdirectories) will be returned, as well - * as files listed in `output_files`. Other files that may be created during - * command execution are discarded. The paths are relative to the working - * directory of the action execution. The paths are specified using a single - * forward slash (`/`) as a path separator, even if the execution platform - * natively uses a different separator. The path MUST NOT include a trailing - * slash, nor a leading slash, being a relative path. The special value of - * empty string is allowed, although not recommended, and can be used to - * capture the entire working directory tree, including inputs. In order to - * ensure consistent hashing of the same Action, the output paths MUST be - * sorted lexicographically by code point (or, equivalently, by UTF-8 - * bytes). An output directory cannot be duplicated, be a parent of another - * output directory, be a parent of a listed output file, or have the same - * path as any of the listed output files. + * the action. Only the listed directories will be returned (an entire + * directory structure will be returned as a Tree message digest, see + * OutputDirectory), as well as files listed in `output_files`. Other files + * or directories that may be created during command execution are + * discarded. The paths are relative to the working directory of the action + * execution. The paths are specified using a single forward slash (`/`) as + * a path separator, even if the execution platform natively uses a + * different separator. The path MUST NOT include a trailing slash, nor a + * leading slash, being a relative path. The special value of empty string + * is allowed, although not recommended, and can be used to capture the + * entire working directory tree, including inputs. In order to ensure + * consistent hashing of the same Action, the output paths MUST be sorted + * lexicographically by code point (or, equivalently, by UTF-8 bytes). An + * output directory cannot be duplicated or have the same path as any of the + * listed output files. Directories leading up to the output directories + * (but not the output directories themselves) are created by the worker + * prior to execution, even if they are not explicitly part of the input + * root. */ outputDirectories?: string[]; /** * A list of the output files that the client expects to retrieve from the * action. Only the listed files, as well as directories listed in * `output_directories`, will be returned to the client as output. Other - * files that may be created during command execution are discarded. The - * paths are relative to the working directory of the action execution. The - * paths are specified using a single forward slash (`/`) as a path - * separator, even if the execution platform natively uses a different - * separator. The path MUST NOT include a trailing slash, nor a leading - * slash, being a relative path. In order to ensure consistent hashing of - * the same Action, the output paths MUST be sorted lexicographically by - * code point (or, equivalently, by UTF-8 bytes). An output file cannot be - * duplicated, be a parent of another output file, be a child of a listed - * output directory, or have the same path as any of the listed output - * directories. + * files or directories that may be created during command execution are + * discarded. The paths are relative to the working directory of the action + * execution. The paths are specified using a single forward slash (`/`) as + * a path separator, even if the execution platform natively uses a + * different separator. The path MUST NOT include a trailing slash, nor a + * leading slash, being a relative path. In order to ensure consistent + * hashing of the same Action, the output paths MUST be sorted + * lexicographically by code point (or, equivalently, by UTF-8 bytes). An + * output file cannot be duplicated, be a parent of another output file, or + * have the same path as any of the listed output directories. Directories + * leading up to the output files are created by the worker prior to + * execution, even if they are not explicitly part of the input root. */ outputFiles?: string[]; /** @@ -505,8 +509,8 @@ export namespace remotebuildexecution_v2 { * the message in binary encoded form. To ensure consistent hashing, clients * and servers MUST ensure that they serialize messages according to the * following rules, even if there are alternate valid encodings for the same - * message. - Fields are serialized in tag order. - There are no unknown - * fields. - There are no duplicate fields. - Fields are serialized according + * message: * Fields are serialized in tag order. * There are no unknown + * fields. * There are no duplicate fields. * Fields are serialized according * to the default semantics for their type. Most protocol buffer * implementations will always follow these rules when serializing, but care * should be taken to avoid shortcuts. For instance, concatenating two @@ -530,11 +534,11 @@ export namespace remotebuildexecution_v2 { * (either a file blob or a `Directory` proto) or a symlink target, as well as * possibly some metadata about the file or directory. In order to ensure * that two equivalent directory trees hash to the same value, the following - * restrictions MUST be obeyed when constructing a a `Directory`: - Every - * child in the directory must have a path of exactly one segment. Multiple - * levels of directory hierarchy may not be collapsed. - Each child in the - * directory must have a unique path segment (file name). - The files, - * directories and symlinks in the directory must each be sorted in + * restrictions MUST be obeyed when constructing a a `Directory`: * Every + * child in the directory must have a path of exactly one segment. Multiple + * levels of directory hierarchy may not be collapsed. * Each child in the + * directory must have a unique path segment (file name). * The files, + * directories and symlinks in the directory must each be sorted in * lexicographical order by path. The path strings must be sorted by code * point, equivalently, by UTF-8 bytes. A `Directory` that obeys the * restrictions is said to be in canonical form. As an example, the following @@ -679,6 +683,12 @@ export namespace remotebuildexecution_v2 { * True if the result was served from cache, false if it was executed. */ cachedResult?: boolean; + /** + * Freeform informational message with details on the execution of the + * action that may be displayed to the user upon failure or when requested + * explicitly. + */ + message?: string; /** * The result of the action. */ @@ -927,9 +937,9 @@ export namespace remotebuildexecution_v2 { * An optional Metadata to attach to any RPC request to tell the server about * an external context of the request. The server may use this for logging or * other purposes. To use it, the client attaches the header to the call using - * the canonical proto serialization: name: - * build.bazel.remote.execution.v2.requestmetadata-bin contents: the base64 - * encoded binary RequestMetadata message. + * the canonical proto serialization: * name: + * `build.bazel.remote.execution.v2.requestmetadata-bin` * contents: the + * base64 encoded binary `RequestMetadata` message. */ export interface Schema$BuildBazelRemoteExecutionV2RequestMetadata { /** @@ -1048,10 +1058,27 @@ export namespace remotebuildexecution_v2 { * A request message for WaitExecution. */ export interface Schema$BuildBazelRemoteExecutionV2WaitExecutionRequest {} + /** + * The full version of a given tool. + */ export interface Schema$BuildBazelSemverSemVer { + /** + * The major version, e.g 10 for 10.2.3. + */ major?: number; + /** + * The minor version, e.g. 2 for 10.2.3. + */ minor?: number; + /** + * The patch version, e.g 3 for 10.2.3. + */ patch?: number; + /** + * The pre-release version. Either this field or major/minor/patch fields + * must be filled. They are mutually exclusive. Pre-release versions are + * assumed to be earlier than any released versions. + */ prerelease?: string; } /** @@ -1206,6 +1233,10 @@ export namespace remotebuildexecution_v2 { * The location is a GCP region. Currently only `us-central1` is supported. */ location?: string; + /** + * Output only. Whether stack driver logging is enabled for the instance. + */ + loggingEnabled?: boolean; /** * Output only. Instance resource name formatted as: * `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name should not be @@ -1292,8 +1323,9 @@ export namespace remotebuildexecution_v2 { */ minCpuPlatform?: string; /** - * Output only. `reserved=true` means the worker is reserved and won't - * be preempted. + * Determines whether the worker is reserved (and therefore won't be + * preempted). See [Preemptible + * VMs](https://cloud.google.com/preemptible-vms/) for more details. */ reserved?: boolean; } @@ -1825,6 +1857,15 @@ export namespace remotebuildexecution_v2 { * unset). */ exitCode?: number; + /** + * Implementation-dependent metadata about the task. Both servers and bots + * may define messages which can be encoded here; bots are free to provide + * metadata in multiple formats, and servers are free to choose one or more + * of the values to process and ignore others. In particular, it is *not* + * considered an error for the bot to provide the server with a field that + * it doesn't know about. + */ + metadata?: Array<{[key: string]: any;}>; /** * The output files. The blob referenced by the digest should contain one of * the following (implementation-dependent): * A marshalled @@ -1837,15 +1878,6 @@ export namespace remotebuildexecution_v2 { * uploading/downloading files). */ overhead?: string; - /** - * Implementation-dependent statistics about the task. Both servers and bots - * may define messages which can be encoded here; bots are free to provide - * statistics in multiple formats, and servers are free to choose one or - * more of the values to process and ignore others. In particular, it is - * *not* considered an error for the bot to provide the server with a field - * that it doesn't know about. - */ - statistics?: Array<{[key: string]: any;}>; /** * An overall status for the command. For example, if the command timed out, * this might have a code of DEADLINE_EXCEEDED; if it was killed by the OS @@ -2163,7 +2195,7 @@ export namespace remotebuildexecution_v2 { /** * remotebuildexecution.actionResults.get - * @desc Retrieve a cached execution result. Errors: * `NOT_FOUND`: The + * @desc Retrieve a cached execution result. Errors: * `NOT_FOUND`: The * requested `ActionResult` is not in the cache. * @alias remotebuildexecution.actionResults.get * @memberOf! () @@ -2238,15 +2270,14 @@ export namespace remotebuildexecution_v2 { /** * remotebuildexecution.actionResults.update - * @desc Upload a new execution result. This method is intended for servers - * which implement the distributed cache independently of the Execution API. - * As a result, it is OPTIONAL for servers to implement. In order to allow - * the server to perform access control based on the type of action, and to - * assist with client debugging, the client MUST first upload the Action - * that produced the result, along with its Command, into the - * `ContentAddressableStorage`. Errors: * `UNIMPLEMENTED`: This method is - * not supported by the server. * `RESOURCE_EXHAUSTED`: There is - * insufficient storage space to add the entry to the cache. + * @desc Upload a new execution result. In order to allow the server to + * perform access control based on the type of action, and to assist with + * client debugging, the client MUST first upload the Action that produced + * the result, along with its Command, into the `ContentAddressableStorage`. + * Errors: * `INVALID_ARGUMENT`: One or more arguments are invalid. * + * `FAILED_PRECONDITION`: One or more errors occurred in updating the action + * result, such as a missing command or action. * `RESOURCE_EXHAUSTED`: + * There is insufficient storage space to add the entry to the cache. * @alias remotebuildexecution.actionResults.update * @memberOf! () * @@ -2421,7 +2452,7 @@ export namespace remotebuildexecution_v2 { * of the `Operation` will be reported as gRPC Status errors, while errors * that occurred while running the action will be reported in the `status` * field of the `ExecuteResponse`. The server MUST NOT set the `error` field - * of the `Operation` proto. The possible errors include: * + * of the `Operation` proto. The possible errors include: * * `INVALID_ARGUMENT`: One or more arguments are invalid. * * `FAILED_PRECONDITION`: One or more errors occurred in setting up the * action requested, such as a missing input or command or no worker being @@ -2431,12 +2462,14 @@ export namespace remotebuildexecution_v2 { * workers being occupied (and the server does not support a queue), the * action could not be started. The client should retry. * `INTERNAL`: An * internal error occurred in the execution engine or the worker. * - * `DEADLINE_EXCEEDED`: The execution timed out. In the case of a missing - * input or command, the server SHOULD additionally send a - * PreconditionFailure error detail where, for each requested blob not - * present in the CAS, there is a `Violation` with a `type` of `MISSING` and - * a `subject` of `"blobs/{hash}/{size}"` indicating the digest of the - * missing blob. + * `DEADLINE_EXCEEDED`: The execution timed out. * `CANCELLED`: The + * operation was cancelled by the client. This status is only possible if + * the server implements the Operations API CancelOperation method, and it + * was called for the current execution. In the case of a missing input or + * command, the server SHOULD additionally send a PreconditionFailure error + * detail where, for each requested blob not present in the CAS, there is a + * `Violation` with a `type` of `MISSING` and a `subject` of + * `"blobs/{hash}/{size}"` indicating the digest of the missing blob. * @alias remotebuildexecution.actions.execute * @memberOf! () * @@ -2540,7 +2573,7 @@ export namespace remotebuildexecution_v2 { * should either be split into smaller chunks or downloaded using the * ByteStream API, as appropriate. This request is equivalent to calling a * Bytestream `Read` request on each individual blob, in parallel. The - * requests may succeed or fail independently. Errors: * + * requests may succeed or fail independently. Errors: * * `INVALID_ARGUMENT`: The client attempted to read more than the server * supported limit. Every error on individual read will be returned in the * corresponding digest status. @@ -2627,11 +2660,11 @@ export namespace remotebuildexecution_v2 { * should either be split into smaller chunks or uploaded using the * ByteStream API, as appropriate. This request is equivalent to calling a * Bytestream `Write` request on each individual blob, in parallel. The - * requests may succeed or fail independently. Errors: * + * requests may succeed or fail independently. Errors: * * `INVALID_ARGUMENT`: The client attempted to upload more than the server * supported limit. Individual requests may return the following errors, - * additionally: * `RESOURCE_EXHAUSTED`: There is insufficient disk quota to - * store the blob. * `INVALID_ARGUMENT`: The Digest does not match the + * additionally: * `RESOURCE_EXHAUSTED`: There is insufficient disk quota + * to store the blob. * `INVALID_ARGUMENT`: The Digest does not match the * provided data. * @alias remotebuildexecution.blobs.batchUpdate * @memberOf! () diff --git a/src/apis/remotebuildexecution/webpack.config.js b/src/apis/remotebuildexecution/webpack.config.js new file mode 100644 index 00000000000..39b995d7e5a --- /dev/null +++ b/src/apis/remotebuildexecution/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Remotebuildexecution', + filename: 'remotebuildexecution.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/replicapool/README.md b/src/apis/replicapool/README.md index 502c524fb4f..918e5d203e3 100644 --- a/src/apis/replicapool/README.md +++ b/src/apis/replicapool/README.md @@ -11,17 +11,37 @@ $ npm install @google/replicapool ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/replicapool +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/replicapool.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/replicapool/index.ts b/src/apis/replicapool/index.ts index e65c234a1f7..6943a5ed3ee 100644 --- a/src/apis/replicapool/index.ts +++ b/src/apis/replicapool/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {replicapool_v1beta1} from './v1beta1'; export const VERSIONS = { @@ -29,3 +29,6 @@ export function replicapool( versionOrOptions: 'v1beta1'|replicapool_v1beta1.Options) { return getAPI('replicapool', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/replicapool/package.json b/src/apis/replicapool/package.json index d738ec4fba7..a79a2010fef 100644 --- a/src/apis/replicapool/package.json +++ b/src/apis/replicapool/package.json @@ -4,16 +4,18 @@ "description": "replicapool", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/replicapool/v1beta1.ts b/src/apis/replicapool/v1beta1.ts index 889ec3a1d75..caa86c6a74a 100644 --- a/src/apis/replicapool/v1beta1.ts +++ b/src/apis/replicapool/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/replicapool/webpack.config.js b/src/apis/replicapool/webpack.config.js new file mode 100644 index 00000000000..ded91c6471b --- /dev/null +++ b/src/apis/replicapool/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Replicapool', + filename: 'replicapool.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/reseller/README.md b/src/apis/reseller/README.md index c0ad9596e7f..5bd74cf38d9 100644 --- a/src/apis/reseller/README.md +++ b/src/apis/reseller/README.md @@ -11,17 +11,37 @@ $ npm install @google/reseller ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/reseller +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/reseller.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/reseller/index.ts b/src/apis/reseller/index.ts index 855c02ac037..9355bfc5b19 100644 --- a/src/apis/reseller/index.ts +++ b/src/apis/reseller/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {reseller_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function reseller( this: GoogleConfigurable, versionOrOptions: 'v1'|reseller_v1.Options) { return getAPI('reseller', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/reseller/package.json b/src/apis/reseller/package.json index 92b20213892..2c6ba95650e 100644 --- a/src/apis/reseller/package.json +++ b/src/apis/reseller/package.json @@ -4,16 +4,18 @@ "description": "reseller", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/reseller/v1.ts b/src/apis/reseller/v1.ts index 08c47d5d132..02b390e026c 100644 --- a/src/apis/reseller/v1.ts +++ b/src/apis/reseller/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/reseller/webpack.config.js b/src/apis/reseller/webpack.config.js new file mode 100644 index 00000000000..df45e3f8a29 --- /dev/null +++ b/src/apis/reseller/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Reseller', + filename: 'reseller.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/runtimeconfig/README.md b/src/apis/runtimeconfig/README.md index 7f69bb50569..a866accd7e3 100644 --- a/src/apis/runtimeconfig/README.md +++ b/src/apis/runtimeconfig/README.md @@ -11,17 +11,37 @@ $ npm install @google/runtimeconfig ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/runtimeconfig +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/runtimeconfig.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/runtimeconfig/index.ts b/src/apis/runtimeconfig/index.ts index 9376217163a..58f862f3250 100644 --- a/src/apis/runtimeconfig/index.ts +++ b/src/apis/runtimeconfig/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {runtimeconfig_v1} from './v1'; import {runtimeconfig_v1beta1} from './v1beta1'; @@ -36,3 +36,6 @@ export function runtimeconfig< runtimeconfig_v1.Options|'v1beta1'|runtimeconfig_v1beta1.Options) { return getAPI('runtimeconfig', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/runtimeconfig/package.json b/src/apis/runtimeconfig/package.json index cd3ec1337ec..ed3056decd0 100644 --- a/src/apis/runtimeconfig/package.json +++ b/src/apis/runtimeconfig/package.json @@ -4,16 +4,18 @@ "description": "runtimeconfig", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/runtimeconfig/v1.ts b/src/apis/runtimeconfig/v1.ts index df613f6a943..68eab000142 100644 --- a/src/apis/runtimeconfig/v1.ts +++ b/src/apis/runtimeconfig/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/runtimeconfig/v1beta1.ts b/src/apis/runtimeconfig/v1beta1.ts index 3245456f205..a3a519a4c94 100644 --- a/src/apis/runtimeconfig/v1beta1.ts +++ b/src/apis/runtimeconfig/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/runtimeconfig/webpack.config.js b/src/apis/runtimeconfig/webpack.config.js new file mode 100644 index 00000000000..c2f8ecb6d86 --- /dev/null +++ b/src/apis/runtimeconfig/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Runtimeconfig', + filename: 'runtimeconfig.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/safebrowsing/README.md b/src/apis/safebrowsing/README.md index 16f645c998f..b525439ab23 100644 --- a/src/apis/safebrowsing/README.md +++ b/src/apis/safebrowsing/README.md @@ -11,17 +11,37 @@ $ npm install @google/safebrowsing ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/safebrowsing +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/safebrowsing.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/safebrowsing/index.ts b/src/apis/safebrowsing/index.ts index 9ea284c9f4a..f65ef0a0355 100644 --- a/src/apis/safebrowsing/index.ts +++ b/src/apis/safebrowsing/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {safebrowsing_v4} from './v4'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function safebrowsing( this: GoogleConfigurable, versionOrOptions: 'v4'|safebrowsing_v4.Options) { return getAPI('safebrowsing', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/safebrowsing/package.json b/src/apis/safebrowsing/package.json index 1d095fd1fde..f49d6c8d6cf 100644 --- a/src/apis/safebrowsing/package.json +++ b/src/apis/safebrowsing/package.json @@ -4,16 +4,18 @@ "description": "safebrowsing", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/safebrowsing/v4.ts b/src/apis/safebrowsing/v4.ts index 2a524d92159..5f34f5eb620 100644 --- a/src/apis/safebrowsing/v4.ts +++ b/src/apis/safebrowsing/v4.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/safebrowsing/webpack.config.js b/src/apis/safebrowsing/webpack.config.js new file mode 100644 index 00000000000..7aa1a7dc40c --- /dev/null +++ b/src/apis/safebrowsing/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Safebrowsing', + filename: 'safebrowsing.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/script/README.md b/src/apis/script/README.md index c876a9f88c0..e880f9d3dfa 100644 --- a/src/apis/script/README.md +++ b/src/apis/script/README.md @@ -11,17 +11,37 @@ $ npm install @google/script ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/script +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/script.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/script/index.ts b/src/apis/script/index.ts index d41e960ce72..30be339652a 100644 --- a/src/apis/script/index.ts +++ b/src/apis/script/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {script_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function script( this: GoogleConfigurable, versionOrOptions: 'v1'|script_v1.Options) { return getAPI('script', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/script/package.json b/src/apis/script/package.json index 1c192b48696..8e9eba96c46 100644 --- a/src/apis/script/package.json +++ b/src/apis/script/package.json @@ -4,16 +4,18 @@ "description": "script", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/script/v1.ts b/src/apis/script/v1.ts index 0f9a45c1a96..a6d17c1b27c 100644 --- a/src/apis/script/v1.ts +++ b/src/apis/script/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -251,7 +251,8 @@ export namespace script_v1 { devMode?: boolean; /** * The name of the function to execute in the given script. The name does - * not include parentheses or parameters. + * not include parentheses or parameters. It can reference a function in an + * included library such as `Library.libFunction1`. */ function?: string; /** diff --git a/src/apis/script/webpack.config.js b/src/apis/script/webpack.config.js new file mode 100644 index 00000000000..2c6286673eb --- /dev/null +++ b/src/apis/script/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Script', + filename: 'script.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/searchconsole/README.md b/src/apis/searchconsole/README.md index 0357cc3c71f..c1854ade45e 100644 --- a/src/apis/searchconsole/README.md +++ b/src/apis/searchconsole/README.md @@ -11,17 +11,37 @@ $ npm install @google/searchconsole ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/searchconsole +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/searchconsole.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/searchconsole/index.ts b/src/apis/searchconsole/index.ts index d1f9fda5c9a..7b5ee6a3c19 100644 --- a/src/apis/searchconsole/index.ts +++ b/src/apis/searchconsole/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {searchconsole_v1} from './v1'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function searchconsole( this: GoogleConfigurable, versionOrOptions: 'v1'|searchconsole_v1.Options) { return getAPI('searchconsole', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/searchconsole/package.json b/src/apis/searchconsole/package.json index f5c07690850..f9a3b5b7814 100644 --- a/src/apis/searchconsole/package.json +++ b/src/apis/searchconsole/package.json @@ -4,16 +4,18 @@ "description": "searchconsole", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/searchconsole/v1.ts b/src/apis/searchconsole/v1.ts index c2455e909d2..9230700c3e9 100644 --- a/src/apis/searchconsole/v1.ts +++ b/src/apis/searchconsole/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/searchconsole/webpack.config.js b/src/apis/searchconsole/webpack.config.js new file mode 100644 index 00000000000..f7b63586bab --- /dev/null +++ b/src/apis/searchconsole/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Searchconsole', + filename: 'searchconsole.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/servicebroker/README.md b/src/apis/servicebroker/README.md index afff00cc81c..cecdd457653 100644 --- a/src/apis/servicebroker/README.md +++ b/src/apis/servicebroker/README.md @@ -11,17 +11,37 @@ $ npm install @google/servicebroker ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/servicebroker +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/servicebroker.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/servicebroker/index.ts b/src/apis/servicebroker/index.ts index e78c214011b..40794973df4 100644 --- a/src/apis/servicebroker/index.ts +++ b/src/apis/servicebroker/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {servicebroker_v1} from './v1'; import {servicebroker_v1alpha1} from './v1alpha1'; import {servicebroker_v1beta1} from './v1beta1'; @@ -44,3 +44,6 @@ export function servicebroker< servicebroker_v1alpha1.Options|'v1beta1'|servicebroker_v1beta1.Options) { return getAPI('servicebroker', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/servicebroker/package.json b/src/apis/servicebroker/package.json index 9f828f33a02..a848605cb23 100644 --- a/src/apis/servicebroker/package.json +++ b/src/apis/servicebroker/package.json @@ -4,16 +4,18 @@ "description": "servicebroker", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/servicebroker/v1.ts b/src/apis/servicebroker/v1.ts index 8e35b94151b..2fa0ea94ba4 100644 --- a/src/apis/servicebroker/v1.ts +++ b/src/apis/servicebroker/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/servicebroker/v1alpha1.ts b/src/apis/servicebroker/v1alpha1.ts index fb943ebcd7e..f17ce1c0105 100644 --- a/src/apis/servicebroker/v1alpha1.ts +++ b/src/apis/servicebroker/v1alpha1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/servicebroker/v1beta1.ts b/src/apis/servicebroker/v1beta1.ts index e5b674fee38..a396d6bb662 100644 --- a/src/apis/servicebroker/v1beta1.ts +++ b/src/apis/servicebroker/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/servicebroker/webpack.config.js b/src/apis/servicebroker/webpack.config.js new file mode 100644 index 00000000000..0bdfe6638d5 --- /dev/null +++ b/src/apis/servicebroker/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Servicebroker', + filename: 'servicebroker.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/serviceconsumermanagement/README.md b/src/apis/serviceconsumermanagement/README.md index edd7cb846a5..985477a8776 100644 --- a/src/apis/serviceconsumermanagement/README.md +++ b/src/apis/serviceconsumermanagement/README.md @@ -11,17 +11,37 @@ $ npm install @google/serviceconsumermanagement ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/serviceconsumermanagement +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/serviceconsumermanagement.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/serviceconsumermanagement/index.ts b/src/apis/serviceconsumermanagement/index.ts index 8f784e84ace..2b9f9d980e4 100644 --- a/src/apis/serviceconsumermanagement/index.ts +++ b/src/apis/serviceconsumermanagement/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {serviceconsumermanagement_v1} from './v1'; export const VERSIONS = { @@ -32,3 +32,6 @@ export function serviceconsumermanagement< return getAPI( 'serviceconsumermanagement', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/serviceconsumermanagement/package.json b/src/apis/serviceconsumermanagement/package.json index 9a7f0d349f4..21383f9f29e 100644 --- a/src/apis/serviceconsumermanagement/package.json +++ b/src/apis/serviceconsumermanagement/package.json @@ -4,16 +4,18 @@ "description": "serviceconsumermanagement", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/serviceconsumermanagement/v1.ts b/src/apis/serviceconsumermanagement/v1.ts index acf681a8441..250e6a7c1e3 100644 --- a/src/apis/serviceconsumermanagement/v1.ts +++ b/src/apis/serviceconsumermanagement/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/serviceconsumermanagement/webpack.config.js b/src/apis/serviceconsumermanagement/webpack.config.js new file mode 100644 index 00000000000..8d0de8a65dd --- /dev/null +++ b/src/apis/serviceconsumermanagement/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Serviceconsumermanagement', + filename: 'serviceconsumermanagement.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/servicecontrol/README.md b/src/apis/servicecontrol/README.md index 3f1ad26065e..72bda3373d0 100644 --- a/src/apis/servicecontrol/README.md +++ b/src/apis/servicecontrol/README.md @@ -11,17 +11,37 @@ $ npm install @google/servicecontrol ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/servicecontrol +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/servicecontrol.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/servicecontrol/index.ts b/src/apis/servicecontrol/index.ts index 2a1ecd20920..fa2a55ec4f3 100644 --- a/src/apis/servicecontrol/index.ts +++ b/src/apis/servicecontrol/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {servicecontrol_v1} from './v1'; export const VERSIONS = { @@ -28,3 +28,6 @@ export function servicecontrol( versionOrOptions: 'v1'|servicecontrol_v1.Options) { return getAPI('servicecontrol', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/servicecontrol/package.json b/src/apis/servicecontrol/package.json index a5ddfd957bb..49b51ebcda1 100644 --- a/src/apis/servicecontrol/package.json +++ b/src/apis/servicecontrol/package.json @@ -4,16 +4,18 @@ "description": "servicecontrol", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/servicecontrol/v1.ts b/src/apis/servicecontrol/v1.ts index fd796e9ab22..1e6fd82300e 100644 --- a/src/apis/servicecontrol/v1.ts +++ b/src/apis/servicecontrol/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -422,6 +422,8 @@ export namespace servicecontrol_v1 { /** * Indicates if service activation check should be skipped for this request. * Default behavior is to perform the check and apply relevant quota. + * WARNING: Setting this flag to "true" will disable quota + * enforcement. */ skipActivationCheck?: boolean; } diff --git a/src/apis/servicecontrol/webpack.config.js b/src/apis/servicecontrol/webpack.config.js new file mode 100644 index 00000000000..d7932baa7ef --- /dev/null +++ b/src/apis/servicecontrol/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Servicecontrol', + filename: 'servicecontrol.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/servicemanagement/README.md b/src/apis/servicemanagement/README.md index 3ad4de969b8..8d72ecc9f4d 100644 --- a/src/apis/servicemanagement/README.md +++ b/src/apis/servicemanagement/README.md @@ -11,17 +11,37 @@ $ npm install @google/servicemanagement ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/servicemanagement +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/servicemanagement.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/servicemanagement/index.ts b/src/apis/servicemanagement/index.ts index 760e05e54bd..8276a1282fd 100644 --- a/src/apis/servicemanagement/index.ts +++ b/src/apis/servicemanagement/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {servicemanagement_v1} from './v1'; export const VERSIONS = { @@ -29,3 +29,6 @@ export function servicemanagement( versionOrOptions: 'v1'|servicemanagement_v1.Options) { return getAPI('servicemanagement', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/servicemanagement/package.json b/src/apis/servicemanagement/package.json index 1bc4e981e7e..fa5e5ffc196 100644 --- a/src/apis/servicemanagement/package.json +++ b/src/apis/servicemanagement/package.json @@ -4,16 +4,18 @@ "description": "servicemanagement", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/servicemanagement/v1.ts b/src/apis/servicemanagement/v1.ts index 359177d8cb6..34600f06608 100644 --- a/src/apis/servicemanagement/v1.ts +++ b/src/apis/servicemanagement/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -393,6 +393,10 @@ export namespace servicemanagement_v1 { * seconds. */ deadline?: number; + /** + * The JWT audience is used when generating a JWT id token for the backend. + */ + jwtAudience?: string; /** * Minimum deadline in seconds needed for this method. Calls having deadline * value lower than this will be rejected. @@ -403,6 +407,7 @@ export namespace servicemanagement_v1 { * operation. The default is no deadline. */ operationDeadline?: number; + pathTranslation?: string; /** * Selects the methods to which this rule applies. Refer to selector for * syntax details. diff --git a/src/apis/servicemanagement/webpack.config.js b/src/apis/servicemanagement/webpack.config.js new file mode 100644 index 00000000000..e998bff3f7d --- /dev/null +++ b/src/apis/servicemanagement/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Servicemanagement', + filename: 'servicemanagement.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/servicenetworking/README.md b/src/apis/servicenetworking/README.md index d2be6c17d09..dec991759a8 100644 --- a/src/apis/servicenetworking/README.md +++ b/src/apis/servicenetworking/README.md @@ -11,17 +11,37 @@ $ npm install @google/servicenetworking ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/servicenetworking +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/servicenetworking.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/servicenetworking/index.ts b/src/apis/servicenetworking/index.ts index e939a09a3c3..f6ff55b21bf 100644 --- a/src/apis/servicenetworking/index.ts +++ b/src/apis/servicenetworking/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {servicenetworking_v1beta} from './v1beta'; export const VERSIONS = { @@ -30,3 +30,6 @@ servicenetworking( versionOrOptions: 'v1beta'|servicenetworking_v1beta.Options) { return getAPI('servicenetworking', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/servicenetworking/package.json b/src/apis/servicenetworking/package.json index cd0805e5cb7..2ffbb6f23a8 100644 --- a/src/apis/servicenetworking/package.json +++ b/src/apis/servicenetworking/package.json @@ -4,16 +4,18 @@ "description": "servicenetworking", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/servicenetworking/v1beta.ts b/src/apis/servicenetworking/v1beta.ts index af3cf9d0418..121686c5a22 100644 --- a/src/apis/servicenetworking/v1beta.ts +++ b/src/apis/servicenetworking/v1beta.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -827,6 +827,31 @@ export namespace servicenetworking_v1beta { */ typeUrl?: string; } + /** + * Represents a subnet that was created or discovered by a private access + * management service. + */ + export interface Schema$GoogleCloudServicenetworkingV1betaSubnetwork { + /** + * Subnetwork CIDR range in `10.x.x.x/y` format. + */ + ipCidrRange?: string; + /** + * Subnetwork name. See https://cloud.google.com/compute/docs/vpc/ + */ + name?: string; + /** + * In the Shared VPC host project, the VPC network that's peered with + * the consumer network. For example: + * `projects/1234321/global/networks/host-network` + */ + network?: string; + /** + * This is a discovered subnet that is not within the current consumer + * allocated ranges. + */ + outsideAllocation?: boolean; + } /** * Defines the HTTP configuration for an API service. It contains a list of * HttpRule, each specifying the mapping of an RPC method to one or more HTTP @@ -1707,6 +1732,22 @@ export namespace servicenetworking_v1beta { */ values?: {[key: string]: string;}; } + /** + * Represents a found unused range. + */ + export interface Schema$Range { + /** + * CIDR range in "10.x.x.x/y" format that is within the allocated + * ranges and currently unused. + */ + ipCidrRange?: string; + /** + * In the Shared VPC host project, the VPC network that's peered with + * the consumer network. For example: + * `projects/1234321/global/networks/host-network` + */ + network?: string; + } /** * Request to search for an unused range within allocated ranges. */ diff --git a/src/apis/servicenetworking/webpack.config.js b/src/apis/servicenetworking/webpack.config.js new file mode 100644 index 00000000000..cdf60ba4493 --- /dev/null +++ b/src/apis/servicenetworking/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Servicenetworking', + filename: 'servicenetworking.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/serviceusage/README.md b/src/apis/serviceusage/README.md index 17f21345bbb..0dad04e1c44 100644 --- a/src/apis/serviceusage/README.md +++ b/src/apis/serviceusage/README.md @@ -11,17 +11,37 @@ $ npm install @google/serviceusage ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/serviceusage +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/serviceusage.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/serviceusage/index.ts b/src/apis/serviceusage/index.ts index 96f9127c3c0..531a30d939d 100644 --- a/src/apis/serviceusage/index.ts +++ b/src/apis/serviceusage/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {serviceusage_v1} from './v1'; import {serviceusage_v1beta1} from './v1beta1'; @@ -36,3 +36,6 @@ export function serviceusage< serviceusage_v1.Options|'v1beta1'|serviceusage_v1beta1.Options) { return getAPI('serviceusage', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/serviceusage/package.json b/src/apis/serviceusage/package.json index dbf1b9fed74..bab4054019a 100644 --- a/src/apis/serviceusage/package.json +++ b/src/apis/serviceusage/package.json @@ -4,16 +4,18 @@ "description": "serviceusage", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/serviceusage/v1.ts b/src/apis/serviceusage/v1.ts index ab22ba959d8..8de6ddc0d32 100644 --- a/src/apis/serviceusage/v1.ts +++ b/src/apis/serviceusage/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/serviceusage/v1beta1.ts b/src/apis/serviceusage/v1beta1.ts index 37b24e63266..1bea2ef4285 100644 --- a/src/apis/serviceusage/v1beta1.ts +++ b/src/apis/serviceusage/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/serviceusage/webpack.config.js b/src/apis/serviceusage/webpack.config.js new file mode 100644 index 00000000000..0079ba5694f --- /dev/null +++ b/src/apis/serviceusage/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Serviceusage', + filename: 'serviceusage.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/sheets/README.md b/src/apis/sheets/README.md index 7dd6e52b4da..80e25cfaf72 100644 --- a/src/apis/sheets/README.md +++ b/src/apis/sheets/README.md @@ -11,17 +11,37 @@ $ npm install @google/sheets ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/sheets +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/sheets.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/sheets/index.ts b/src/apis/sheets/index.ts index 2c6afab1d0f..73b013de244 100644 --- a/src/apis/sheets/index.ts +++ b/src/apis/sheets/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {sheets_v4} from './v4'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function sheets( this: GoogleConfigurable, versionOrOptions: 'v4'|sheets_v4.Options) { return getAPI('sheets', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/sheets/package.json b/src/apis/sheets/package.json index 352eaf449d7..4e18ed7daed 100644 --- a/src/apis/sheets/package.json +++ b/src/apis/sheets/package.json @@ -4,16 +4,18 @@ "description": "sheets", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/sheets/v4.ts b/src/apis/sheets/v4.ts index 1a9c7a71d9c..1505e1fca8a 100644 --- a/src/apis/sheets/v4.ts +++ b/src/apis/sheets/v4.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/sheets/webpack.config.js b/src/apis/sheets/webpack.config.js new file mode 100644 index 00000000000..fd6e6e26306 --- /dev/null +++ b/src/apis/sheets/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Sheets', + filename: 'sheets.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/siteVerification/README.md b/src/apis/siteVerification/README.md index 435666f0c70..a2646aeda9b 100644 --- a/src/apis/siteVerification/README.md +++ b/src/apis/siteVerification/README.md @@ -11,17 +11,37 @@ $ npm install @google/siteVerification ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/siteVerification +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/siteVerification.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/siteVerification/index.ts b/src/apis/siteVerification/index.ts index 2c848b3de85..f1774a7199b 100644 --- a/src/apis/siteVerification/index.ts +++ b/src/apis/siteVerification/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {siteVerification_v1} from './v1'; export const VERSIONS = { @@ -29,3 +29,6 @@ export function siteVerification( versionOrOptions: 'v1'|siteVerification_v1.Options) { return getAPI('siteVerification', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/siteVerification/package.json b/src/apis/siteVerification/package.json index 153d030261e..afd2682f60c 100644 --- a/src/apis/siteVerification/package.json +++ b/src/apis/siteVerification/package.json @@ -4,16 +4,18 @@ "description": "siteVerification", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/siteVerification/v1.ts b/src/apis/siteVerification/v1.ts index ba74a733224..640534cf493 100644 --- a/src/apis/siteVerification/v1.ts +++ b/src/apis/siteVerification/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/siteVerification/webpack.config.js b/src/apis/siteVerification/webpack.config.js new file mode 100644 index 00000000000..1713b55b501 --- /dev/null +++ b/src/apis/siteVerification/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Siteverification', + filename: 'siteVerification.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/slides/README.md b/src/apis/slides/README.md index a2ac49f2bf8..ad738267eb1 100644 --- a/src/apis/slides/README.md +++ b/src/apis/slides/README.md @@ -11,17 +11,37 @@ $ npm install @google/slides ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/slides +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/slides.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/slides/index.ts b/src/apis/slides/index.ts index ebfdf42bcb9..2aa52077130 100644 --- a/src/apis/slides/index.ts +++ b/src/apis/slides/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {slides_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function slides( this: GoogleConfigurable, versionOrOptions: 'v1'|slides_v1.Options) { return getAPI('slides', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/slides/package.json b/src/apis/slides/package.json index 333aa60f1ac..99893e3a4ea 100644 --- a/src/apis/slides/package.json +++ b/src/apis/slides/package.json @@ -4,16 +4,18 @@ "description": "slides", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/slides/v1.ts b/src/apis/slides/v1.ts index dcec1b9a2f2..341987397d8 100644 --- a/src/apis/slides/v1.ts +++ b/src/apis/slides/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/slides/webpack.config.js b/src/apis/slides/webpack.config.js new file mode 100644 index 00000000000..0ffefb7c0c8 --- /dev/null +++ b/src/apis/slides/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Slides', + filename: 'slides.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/sourcerepo/README.md b/src/apis/sourcerepo/README.md index 7b28f0cb722..8cbae876cca 100644 --- a/src/apis/sourcerepo/README.md +++ b/src/apis/sourcerepo/README.md @@ -11,17 +11,37 @@ $ npm install @google/sourcerepo ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/sourcerepo +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/sourcerepo.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/sourcerepo/index.ts b/src/apis/sourcerepo/index.ts index 8d43c7c1b76..5278613a664 100644 --- a/src/apis/sourcerepo/index.ts +++ b/src/apis/sourcerepo/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {sourcerepo_v1} from './v1'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function sourcerepo( this: GoogleConfigurable, versionOrOptions: 'v1'|sourcerepo_v1.Options) { return getAPI('sourcerepo', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/sourcerepo/package.json b/src/apis/sourcerepo/package.json index 395613b2953..64ee4e983f0 100644 --- a/src/apis/sourcerepo/package.json +++ b/src/apis/sourcerepo/package.json @@ -4,16 +4,18 @@ "description": "sourcerepo", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/sourcerepo/v1.ts b/src/apis/sourcerepo/v1.ts index 748c16e9a38..3d57701a749 100644 --- a/src/apis/sourcerepo/v1.ts +++ b/src/apis/sourcerepo/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/sourcerepo/webpack.config.js b/src/apis/sourcerepo/webpack.config.js new file mode 100644 index 00000000000..4f2452f7ce2 --- /dev/null +++ b/src/apis/sourcerepo/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Sourcerepo', + filename: 'sourcerepo.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/spanner/README.md b/src/apis/spanner/README.md index e85a40247a0..42d349c9730 100644 --- a/src/apis/spanner/README.md +++ b/src/apis/spanner/README.md @@ -11,17 +11,37 @@ $ npm install @google/spanner ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/spanner +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/spanner.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/spanner/index.ts b/src/apis/spanner/index.ts index 26c661f1046..84e26ecff38 100644 --- a/src/apis/spanner/index.ts +++ b/src/apis/spanner/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {spanner_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function spanner( this: GoogleConfigurable, versionOrOptions: 'v1'|spanner_v1.Options) { return getAPI('spanner', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/spanner/package.json b/src/apis/spanner/package.json index 03536fe8557..2384bcffe0f 100644 --- a/src/apis/spanner/package.json +++ b/src/apis/spanner/package.json @@ -4,16 +4,18 @@ "description": "spanner", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/spanner/v1.ts b/src/apis/spanner/v1.ts index 502a8cb870e..da511c1c461 100644 --- a/src/apis/spanner/v1.ts +++ b/src/apis/spanner/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/spanner/webpack.config.js b/src/apis/spanner/webpack.config.js new file mode 100644 index 00000000000..7943259a61c --- /dev/null +++ b/src/apis/spanner/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Spanner', + filename: 'spanner.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/speech/README.md b/src/apis/speech/README.md index 87f896ffabc..b1da2b25719 100644 --- a/src/apis/speech/README.md +++ b/src/apis/speech/README.md @@ -11,17 +11,37 @@ $ npm install @google/speech ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/speech +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/speech.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/speech/index.ts b/src/apis/speech/index.ts index a098ac47bf1..dcbdab8d03f 100644 --- a/src/apis/speech/index.ts +++ b/src/apis/speech/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {speech_v1} from './v1'; import {speech_v1p1beta1} from './v1p1beta1'; @@ -33,3 +33,6 @@ export function speech( speech_v1p1beta1.Options) { return getAPI('speech', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/speech/package.json b/src/apis/speech/package.json index de0c0cc98f0..995ed708071 100644 --- a/src/apis/speech/package.json +++ b/src/apis/speech/package.json @@ -4,16 +4,18 @@ "description": "speech", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/speech/v1.ts b/src/apis/speech/v1.ts index d4f8aa486db..830a8a2a583 100644 --- a/src/apis/speech/v1.ts +++ b/src/apis/speech/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -99,12 +99,14 @@ export namespace speech_v1 { */ export class Speech { operations: Resource$Operations; + projects: Resource$Projects; speech: Resource$Speech; constructor(options: GlobalOptions, google?: GoogleConfigurable) { context = {_options: options || {}, google}; this.operations = new Resource$Operations(); + this.projects = new Resource$Projects(); this.speech = new Resource$Speech(); } } @@ -249,6 +251,15 @@ export namespace speech_v1 { * premium feature. */ enableAutomaticPunctuation?: boolean; + /** + * This needs to be set to `true` explicitly and `audio_channel_count` > + * 1 to get each channel recognized separately. The recognition result will + * contain a `channel_tag` field to state which channel that result belongs + * to. If this is not true, we will only recognize the first channel. The + * request is billed cumulatively for all channels recognized: + * `audio_channel_count` multiplied by the length of the audio. + */ + enableSeparateRecognitionPerChannel?: boolean; /** * *Optional* If `true`, the top result includes a list of words and the * start and end time offsets (timestamps) for those words. If `false`, no @@ -419,6 +430,13 @@ export namespace speech_v1 { * probable, as ranked by the recognizer. */ alternatives?: Schema$SpeechRecognitionAlternative[]; + /** + * For multi-channel audio, this is the channel number corresponding to the + * recognized result for the audio from that channel. For + * audio_channel_count = N, its output values can range from '1' to + * 'N'. + */ + channelTag?: number; } /** * The `Status` type defines a logical error model that is suitable for @@ -678,6 +696,304 @@ export namespace speech_v1 { } + export class Resource$Projects { + locations: Resource$Projects$Locations; + operations: Resource$Projects$Operations; + constructor() { + this.locations = new Resource$Projects$Locations(); + this.operations = new Resource$Projects$Operations(); + } + } + + + export class Resource$Projects$Locations { + operations: Resource$Projects$Locations$Operations; + constructor() { + this.operations = new Resource$Projects$Locations$Operations(); + } + } + + + export class Resource$Projects$Locations$Operations { + constructor() {} + + + /** + * speech.projects.locations.operations.get + * @desc Gets the latest state of a long-running operation. Clients can use + * this method to poll the operation result at intervals as recommended by + * the API service. + * @alias speech.projects.locations.operations.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the operation resource. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Projects$Locations$Operations$Get, + options?: MethodOptions): GaxiosPromise; + get(params: Params$Resource$Projects$Locations$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * speech.projects.locations.operations.list + * @desc Lists operations that match the specified filter in the request. If + * the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: + * the `name` binding allows API services to override the binding to use + * different resource name schemes, such as `users/x/operations`. To + * override the binding, API services can add a binding such as + * `"/v1/{name=users/x}/operations"` to their service configuration. For + * backwards compatibility, the default name includes the operations + * collection id, however overriding users must ensure the name binding is + * the parent resource, without the operations collection id. + * @alias speech.projects.locations.operations.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.filter The standard list filter. + * @param {string} params.name The name of the operation's parent resource. + * @param {integer=} params.pageSize The standard list page size. + * @param {string=} params.pageToken The standard list page token. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: Params$Resource$Projects$Locations$Operations$List, + options?: MethodOptions): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Operations$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}/operations') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Operations$Get extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Operations$List extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + + + export class Resource$Projects$Operations { + manualRecognitionTasks: Resource$Projects$Operations$Manualrecognitiontasks; + constructor() { + this.manualRecognitionTasks = + new Resource$Projects$Operations$Manualrecognitiontasks(); + } + } + + + export class Resource$Projects$Operations$Manualrecognitiontasks { + constructor() {} + + + /** + * speech.projects.operations.manualRecognitionTasks.get + * @desc Gets the latest state of a long-running operation. Clients can use + * this method to poll the operation result at intervals as recommended by + * the API service. + * @alias speech.projects.operations.manualRecognitionTasks.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the operation resource. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Projects$Operations$Manualrecognitiontasks$Get, + options?: MethodOptions): GaxiosPromise; + get(params: Params$Resource$Projects$Operations$Manualrecognitiontasks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Operations$Manualrecognitiontasks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Operations$Manualrecognitiontasks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Operations$Manualrecognitiontasks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Operations$Manualrecognitiontasks$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Operations$Manualrecognitiontasks$Get + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + + + export class Resource$Speech { constructor() {} diff --git a/src/apis/speech/v1p1beta1.ts b/src/apis/speech/v1p1beta1.ts index 6f6d4fc0656..62534230601 100644 --- a/src/apis/speech/v1p1beta1.ts +++ b/src/apis/speech/v1p1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -99,12 +99,14 @@ export namespace speech_v1p1beta1 { */ export class Speech { operations: Resource$Operations; + projects: Resource$Projects; speech: Resource$Speech; constructor(options: GlobalOptions, google?: GoogleConfigurable) { context = {_options: options || {}, google}; this.operations = new Resource$Operations(); + this.projects = new Resource$Projects(); this.speech = new Resource$Speech(); } } @@ -292,7 +294,7 @@ export namespace speech_v1p1beta1 { */ enableAutomaticPunctuation?: boolean; /** - * This needs to be set to ‘true’ explicitly and `audio_channel_count` > + * This needs to be set to `true` explicitly and `audio_channel_count` > * 1 to get each channel recognized separately. The recognition result will * contain a `channel_tag` field to state which channel that result belongs * to. If this is not true, we will only recognize the first channel. The @@ -852,6 +854,306 @@ export namespace speech_v1p1beta1 { } + export class Resource$Projects { + locations: Resource$Projects$Locations; + operations: Resource$Projects$Operations; + constructor() { + this.locations = new Resource$Projects$Locations(); + this.operations = new Resource$Projects$Operations(); + } + } + + + export class Resource$Projects$Locations { + operations: Resource$Projects$Locations$Operations; + constructor() { + this.operations = new Resource$Projects$Locations$Operations(); + } + } + + + export class Resource$Projects$Locations$Operations { + constructor() {} + + + /** + * speech.projects.locations.operations.get + * @desc Gets the latest state of a long-running operation. Clients can use + * this method to poll the operation result at intervals as recommended by + * the API service. + * @alias speech.projects.locations.operations.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the operation resource. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Projects$Locations$Operations$Get, + options?: MethodOptions): GaxiosPromise; + get(params: Params$Resource$Projects$Locations$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1p1beta1/{+name}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * speech.projects.locations.operations.list + * @desc Lists operations that match the specified filter in the request. If + * the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: + * the `name` binding allows API services to override the binding to use + * different resource name schemes, such as `users/x/operations`. To + * override the binding, API services can add a binding such as + * `"/v1/{name=users/x}/operations"` to their service configuration. For + * backwards compatibility, the default name includes the operations + * collection id, however overriding users must ensure the name binding is + * the parent resource, without the operations collection id. + * @alias speech.projects.locations.operations.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.filter The standard list filter. + * @param {string} params.name The name of the operation's parent resource. + * @param {integer=} params.pageSize The standard list page size. + * @param {string=} params.pageToken The standard list page token. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: Params$Resource$Projects$Locations$Operations$List, + options?: MethodOptions): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Operations$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1p1beta1/{+name}/operations') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Operations$Get extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Operations$List extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + + + export class Resource$Projects$Operations { + manualRecognitionTasks: Resource$Projects$Operations$Manualrecognitiontasks; + constructor() { + this.manualRecognitionTasks = + new Resource$Projects$Operations$Manualrecognitiontasks(); + } + } + + + export class Resource$Projects$Operations$Manualrecognitiontasks { + constructor() {} + + + /** + * speech.projects.operations.manualRecognitionTasks.get + * @desc Gets the latest state of a long-running operation. Clients can use + * this method to poll the operation result at intervals as recommended by + * the API service. + * @alias speech.projects.operations.manualRecognitionTasks.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the operation resource. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Projects$Operations$Manualrecognitiontasks$Get, + options?: MethodOptions): GaxiosPromise; + get(params: Params$Resource$Projects$Operations$Manualrecognitiontasks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Operations$Manualrecognitiontasks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Operations$Manualrecognitiontasks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Operations$Manualrecognitiontasks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Operations$Manualrecognitiontasks$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1p1beta1/{+name}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Operations$Manualrecognitiontasks$Get + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + + + export class Resource$Speech { constructor() {} diff --git a/src/apis/speech/webpack.config.js b/src/apis/speech/webpack.config.js new file mode 100644 index 00000000000..a1a77a492e8 --- /dev/null +++ b/src/apis/speech/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Speech', + filename: 'speech.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/sqladmin/README.md b/src/apis/sqladmin/README.md index fbeb2b529cf..11ccaaf3c31 100644 --- a/src/apis/sqladmin/README.md +++ b/src/apis/sqladmin/README.md @@ -11,17 +11,37 @@ $ npm install @google/sqladmin ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/sqladmin +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/sqladmin.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/sqladmin/index.ts b/src/apis/sqladmin/index.ts index 236c498a906..21bfb5599e0 100644 --- a/src/apis/sqladmin/index.ts +++ b/src/apis/sqladmin/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {sqladmin_v1beta4} from './v1beta4'; export const VERSIONS = { @@ -28,3 +28,6 @@ export function sqladmin( versionOrOptions: 'v1beta4'|sqladmin_v1beta4.Options) { return getAPI('sqladmin', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/sqladmin/package.json b/src/apis/sqladmin/package.json index 6e3e610a3b1..18886b1f295 100644 --- a/src/apis/sqladmin/package.json +++ b/src/apis/sqladmin/package.json @@ -4,16 +4,18 @@ "description": "sqladmin", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/sqladmin/v1beta4.ts b/src/apis/sqladmin/v1beta4.ts index 6c51215ff59..e0b029118e8 100644 --- a/src/apis/sqladmin/v1beta4.ts +++ b/src/apis/sqladmin/v1beta4.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/sqladmin/webpack.config.js b/src/apis/sqladmin/webpack.config.js new file mode 100644 index 00000000000..40b69174ce9 --- /dev/null +++ b/src/apis/sqladmin/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Sqladmin', + filename: 'sqladmin.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/storage/README.md b/src/apis/storage/README.md index cfe6c1e303b..92486b1df2b 100644 --- a/src/apis/storage/README.md +++ b/src/apis/storage/README.md @@ -11,17 +11,37 @@ $ npm install @google/storage ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/storage +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/storage.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/storage/index.ts b/src/apis/storage/index.ts index 15910f1fe77..75822506c09 100644 --- a/src/apis/storage/index.ts +++ b/src/apis/storage/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {storage_v1} from './v1'; import {storage_v1beta1} from './v1beta1'; import {storage_v1beta2} from './v1beta2'; @@ -39,3 +39,6 @@ export function storage< storage_v1beta1.Options|'v1beta2'|storage_v1beta2.Options) { return getAPI('storage', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/storage/package.json b/src/apis/storage/package.json index 104a2475237..376a5551e79 100644 --- a/src/apis/storage/package.json +++ b/src/apis/storage/package.json @@ -4,16 +4,18 @@ "description": "storage", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/storage/v1.ts b/src/apis/storage/v1.ts index a68513c9d63..f1b3b36ce30 100644 --- a/src/apis/storage/v1.ts +++ b/src/apis/storage/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/storage/v1beta1.ts b/src/apis/storage/v1beta1.ts index 782d467f81d..3c41b4a8375 100644 --- a/src/apis/storage/v1beta1.ts +++ b/src/apis/storage/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/storage/v1beta2.ts b/src/apis/storage/v1beta2.ts index f5914722210..a12f9341c17 100644 --- a/src/apis/storage/v1beta2.ts +++ b/src/apis/storage/v1beta2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/storage/webpack.config.js b/src/apis/storage/webpack.config.js new file mode 100644 index 00000000000..e50cafb8455 --- /dev/null +++ b/src/apis/storage/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Storage', + filename: 'storage.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/storagetransfer/README.md b/src/apis/storagetransfer/README.md index f57ee1aaa00..57a8b51da1f 100644 --- a/src/apis/storagetransfer/README.md +++ b/src/apis/storagetransfer/README.md @@ -11,17 +11,37 @@ $ npm install @google/storagetransfer ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/storagetransfer +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/storagetransfer.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/storagetransfer/index.ts b/src/apis/storagetransfer/index.ts index 03bb9b7b0e1..675159be6e0 100644 --- a/src/apis/storagetransfer/index.ts +++ b/src/apis/storagetransfer/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {storagetransfer_v1} from './v1'; export const VERSIONS = { @@ -29,3 +29,6 @@ export function storagetransfer( versionOrOptions: 'v1'|storagetransfer_v1.Options) { return getAPI('storagetransfer', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/storagetransfer/package.json b/src/apis/storagetransfer/package.json index 6ed7d24030f..4b1f6bccc49 100644 --- a/src/apis/storagetransfer/package.json +++ b/src/apis/storagetransfer/package.json @@ -4,16 +4,18 @@ "description": "storagetransfer", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/storagetransfer/v1.ts b/src/apis/storagetransfer/v1.ts index 1188da829e9..6247ad49541 100644 --- a/src/apis/storagetransfer/v1.ts +++ b/src/apis/storagetransfer/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/storagetransfer/webpack.config.js b/src/apis/storagetransfer/webpack.config.js new file mode 100644 index 00000000000..2b8cd640aea --- /dev/null +++ b/src/apis/storagetransfer/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Storagetransfer', + filename: 'storagetransfer.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/streetviewpublish/README.md b/src/apis/streetviewpublish/README.md index e3ac6d7c9cf..7e2ebb15999 100644 --- a/src/apis/streetviewpublish/README.md +++ b/src/apis/streetviewpublish/README.md @@ -11,17 +11,37 @@ $ npm install @google/streetviewpublish ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/streetviewpublish +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/streetviewpublish.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/streetviewpublish/index.ts b/src/apis/streetviewpublish/index.ts index 14f2f5ccff3..44f6d1ceedd 100644 --- a/src/apis/streetviewpublish/index.ts +++ b/src/apis/streetviewpublish/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {streetviewpublish_v1} from './v1'; export const VERSIONS = { @@ -29,3 +29,6 @@ export function streetviewpublish( versionOrOptions: 'v1'|streetviewpublish_v1.Options) { return getAPI('streetviewpublish', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/streetviewpublish/package.json b/src/apis/streetviewpublish/package.json index 71e0cdfa648..40f5befe627 100644 --- a/src/apis/streetviewpublish/package.json +++ b/src/apis/streetviewpublish/package.json @@ -4,16 +4,18 @@ "description": "streetviewpublish", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/streetviewpublish/v1.ts b/src/apis/streetviewpublish/v1.ts index 91274ef2560..6517973ea1a 100644 --- a/src/apis/streetviewpublish/v1.ts +++ b/src/apis/streetviewpublish/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/streetviewpublish/webpack.config.js b/src/apis/streetviewpublish/webpack.config.js new file mode 100644 index 00000000000..ce376bbea46 --- /dev/null +++ b/src/apis/streetviewpublish/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Streetviewpublish', + filename: 'streetviewpublish.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/surveys/README.md b/src/apis/surveys/README.md index 121ecf563ce..e1d2359b081 100644 --- a/src/apis/surveys/README.md +++ b/src/apis/surveys/README.md @@ -11,17 +11,37 @@ $ npm install @google/surveys ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/surveys +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/surveys.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/surveys/index.ts b/src/apis/surveys/index.ts index 50c730baf9e..d29ecd61db1 100644 --- a/src/apis/surveys/index.ts +++ b/src/apis/surveys/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {surveys_v2} from './v2'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function surveys( this: GoogleConfigurable, versionOrOptions: 'v2'|surveys_v2.Options) { return getAPI('surveys', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/surveys/package.json b/src/apis/surveys/package.json index e45099a32f3..15c5d143227 100644 --- a/src/apis/surveys/package.json +++ b/src/apis/surveys/package.json @@ -4,16 +4,18 @@ "description": "surveys", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/surveys/v2.ts b/src/apis/surveys/v2.ts index f79d0400410..50d22e29d98 100644 --- a/src/apis/surveys/v2.ts +++ b/src/apis/surveys/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/surveys/webpack.config.js b/src/apis/surveys/webpack.config.js new file mode 100644 index 00000000000..a45c9ffdda5 --- /dev/null +++ b/src/apis/surveys/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Surveys', + filename: 'surveys.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/tagmanager/README.md b/src/apis/tagmanager/README.md index 7dbc032cec0..040c999654d 100644 --- a/src/apis/tagmanager/README.md +++ b/src/apis/tagmanager/README.md @@ -11,17 +11,37 @@ $ npm install @google/tagmanager ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/tagmanager +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/tagmanager.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/tagmanager/index.ts b/src/apis/tagmanager/index.ts index 686d3067988..e82f2bf6d64 100644 --- a/src/apis/tagmanager/index.ts +++ b/src/apis/tagmanager/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {tagmanager_v1} from './v1'; import {tagmanager_v2} from './v2'; @@ -34,3 +34,6 @@ tagmanager( versionOrOptions: 'v1'|tagmanager_v1.Options|'v2'|tagmanager_v2.Options) { return getAPI('tagmanager', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/tagmanager/package.json b/src/apis/tagmanager/package.json index a31989b04bf..bdc874e14a5 100644 --- a/src/apis/tagmanager/package.json +++ b/src/apis/tagmanager/package.json @@ -4,16 +4,18 @@ "description": "tagmanager", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/tagmanager/v1.ts b/src/apis/tagmanager/v1.ts index b10070bb1fb..c0758cf91b1 100644 --- a/src/apis/tagmanager/v1.ts +++ b/src/apis/tagmanager/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/tagmanager/v2.ts b/src/apis/tagmanager/v2.ts index 5c1f06c9949..f0d67991569 100644 --- a/src/apis/tagmanager/v2.ts +++ b/src/apis/tagmanager/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/tagmanager/webpack.config.js b/src/apis/tagmanager/webpack.config.js new file mode 100644 index 00000000000..159caf322e5 --- /dev/null +++ b/src/apis/tagmanager/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Tagmanager', + filename: 'tagmanager.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/tasks/README.md b/src/apis/tasks/README.md index cc2ea71a631..86607681ac6 100644 --- a/src/apis/tasks/README.md +++ b/src/apis/tasks/README.md @@ -11,17 +11,37 @@ $ npm install @google/tasks ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/tasks +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/tasks.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/tasks/index.ts b/src/apis/tasks/index.ts index ef9b3d81a03..d8d4b466fb5 100644 --- a/src/apis/tasks/index.ts +++ b/src/apis/tasks/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {tasks_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function tasks( this: GoogleConfigurable, versionOrOptions: 'v1'|tasks_v1.Options) { return getAPI('tasks', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/tasks/package.json b/src/apis/tasks/package.json index 9249b5e389f..2278defe629 100644 --- a/src/apis/tasks/package.json +++ b/src/apis/tasks/package.json @@ -4,16 +4,18 @@ "description": "tasks", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/tasks/v1.ts b/src/apis/tasks/v1.ts index bbb30f3bfef..52baa7b482f 100644 --- a/src/apis/tasks/v1.ts +++ b/src/apis/tasks/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/tasks/webpack.config.js b/src/apis/tasks/webpack.config.js new file mode 100644 index 00000000000..e295d4fdfa5 --- /dev/null +++ b/src/apis/tasks/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Tasks', + filename: 'tasks.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/testing/README.md b/src/apis/testing/README.md index 2fb27b1a720..df20904ac7b 100644 --- a/src/apis/testing/README.md +++ b/src/apis/testing/README.md @@ -11,17 +11,37 @@ $ npm install @google/testing ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/testing +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/testing.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/testing/index.ts b/src/apis/testing/index.ts index 131d8f39d45..9b2d921f33f 100644 --- a/src/apis/testing/index.ts +++ b/src/apis/testing/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {testing_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function testing( this: GoogleConfigurable, versionOrOptions: 'v1'|testing_v1.Options) { return getAPI('testing', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/testing/package.json b/src/apis/testing/package.json index 97746345915..d63078de897 100644 --- a/src/apis/testing/package.json +++ b/src/apis/testing/package.json @@ -4,16 +4,18 @@ "description": "testing", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/testing/v1.ts b/src/apis/testing/v1.ts index 755fb9b20ce..db5e71c56c6 100644 --- a/src/apis/testing/v1.ts +++ b/src/apis/testing/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/testing/webpack.config.js b/src/apis/testing/webpack.config.js new file mode 100644 index 00000000000..bd9bfed00e7 --- /dev/null +++ b/src/apis/testing/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Testing', + filename: 'testing.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/texttospeech/README.md b/src/apis/texttospeech/README.md index ba0f36b27b9..1549bbcf66e 100644 --- a/src/apis/texttospeech/README.md +++ b/src/apis/texttospeech/README.md @@ -11,17 +11,37 @@ $ npm install @google/texttospeech ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/texttospeech +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/texttospeech.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/texttospeech/index.ts b/src/apis/texttospeech/index.ts index 6ece6d4e049..2c909537603 100644 --- a/src/apis/texttospeech/index.ts +++ b/src/apis/texttospeech/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {texttospeech_v1} from './v1'; import {texttospeech_v1beta1} from './v1beta1'; @@ -36,3 +36,6 @@ export function texttospeech< texttospeech_v1.Options|'v1beta1'|texttospeech_v1beta1.Options) { return getAPI('texttospeech', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/texttospeech/package.json b/src/apis/texttospeech/package.json index 3e024b543ca..1375abed3cd 100644 --- a/src/apis/texttospeech/package.json +++ b/src/apis/texttospeech/package.json @@ -4,16 +4,18 @@ "description": "texttospeech", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/texttospeech/v1.ts b/src/apis/texttospeech/v1.ts index a0a3256d513..e227d53d793 100644 --- a/src/apis/texttospeech/v1.ts +++ b/src/apis/texttospeech/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/texttospeech/v1beta1.ts b/src/apis/texttospeech/v1beta1.ts index 11528fdb0b1..7dc44f104f7 100644 --- a/src/apis/texttospeech/v1beta1.ts +++ b/src/apis/texttospeech/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/texttospeech/webpack.config.js b/src/apis/texttospeech/webpack.config.js new file mode 100644 index 00000000000..a527857355c --- /dev/null +++ b/src/apis/texttospeech/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Texttospeech', + filename: 'texttospeech.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/toolresults/README.md b/src/apis/toolresults/README.md index 05ae15447c7..edb31c7e1fc 100644 --- a/src/apis/toolresults/README.md +++ b/src/apis/toolresults/README.md @@ -11,17 +11,37 @@ $ npm install @google/toolresults ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/toolresults +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/toolresults.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/toolresults/index.ts b/src/apis/toolresults/index.ts index 28974b1598a..00c819ce612 100644 --- a/src/apis/toolresults/index.ts +++ b/src/apis/toolresults/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {toolresults_v1beta3} from './v1beta3'; export const VERSIONS = { @@ -29,3 +29,6 @@ export function toolresults( versionOrOptions: 'v1beta3'|toolresults_v1beta3.Options) { return getAPI('toolresults', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/toolresults/package.json b/src/apis/toolresults/package.json index 796c4b2fa51..bda381c9f29 100644 --- a/src/apis/toolresults/package.json +++ b/src/apis/toolresults/package.json @@ -4,16 +4,18 @@ "description": "toolresults", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/toolresults/v1beta3.ts b/src/apis/toolresults/v1beta3.ts index 5a96e3c2cc1..4f3b8d888cd 100644 --- a/src/apis/toolresults/v1beta3.ts +++ b/src/apis/toolresults/v1beta3.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/toolresults/webpack.config.js b/src/apis/toolresults/webpack.config.js new file mode 100644 index 00000000000..f8f887030ce --- /dev/null +++ b/src/apis/toolresults/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Toolresults', + filename: 'toolresults.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/tpu/README.md b/src/apis/tpu/README.md index 70b57b3134c..01cd6f5714e 100644 --- a/src/apis/tpu/README.md +++ b/src/apis/tpu/README.md @@ -11,17 +11,37 @@ $ npm install @google/tpu ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/tpu +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/tpu.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/tpu/index.ts b/src/apis/tpu/index.ts index 89df134169b..355a053300c 100644 --- a/src/apis/tpu/index.ts +++ b/src/apis/tpu/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {tpu_v1} from './v1'; import {tpu_v1alpha1} from './v1alpha1'; @@ -31,3 +31,6 @@ export function tpu( versionOrOptions: 'v1'|tpu_v1.Options|'v1alpha1'|tpu_v1alpha1.Options) { return getAPI('tpu', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/tpu/package.json b/src/apis/tpu/package.json index 9ad0466f49d..1a81b04afa3 100644 --- a/src/apis/tpu/package.json +++ b/src/apis/tpu/package.json @@ -4,16 +4,18 @@ "description": "tpu", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/tpu/v1.ts b/src/apis/tpu/v1.ts index 8865ea88701..6960877077e 100644 --- a/src/apis/tpu/v1.ts +++ b/src/apis/tpu/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/tpu/v1alpha1.ts b/src/apis/tpu/v1alpha1.ts index 3a38e33e838..d572ad15ec5 100644 --- a/src/apis/tpu/v1alpha1.ts +++ b/src/apis/tpu/v1alpha1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/tpu/webpack.config.js b/src/apis/tpu/webpack.config.js new file mode 100644 index 00000000000..3e9a517bc8d --- /dev/null +++ b/src/apis/tpu/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Tpu', + filename: 'tpu.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/translate/README.md b/src/apis/translate/README.md index 94c4abcfb51..959a38552a4 100644 --- a/src/apis/translate/README.md +++ b/src/apis/translate/README.md @@ -11,17 +11,37 @@ $ npm install @google/translate ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/translate +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/translate.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/translate/index.ts b/src/apis/translate/index.ts index 5192e63096d..c918a64d56e 100644 --- a/src/apis/translate/index.ts +++ b/src/apis/translate/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {translate_v2} from './v2'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function translate( this: GoogleConfigurable, versionOrOptions: 'v2'|translate_v2.Options) { return getAPI('translate', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/translate/package.json b/src/apis/translate/package.json index 0969e207f6b..fd937ca19dc 100644 --- a/src/apis/translate/package.json +++ b/src/apis/translate/package.json @@ -4,16 +4,18 @@ "description": "translate", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/translate/v2.ts b/src/apis/translate/v2.ts index 31ac3c6da63..860a3cb319d 100644 --- a/src/apis/translate/v2.ts +++ b/src/apis/translate/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/translate/webpack.config.js b/src/apis/translate/webpack.config.js new file mode 100644 index 00000000000..b2f3d94cec2 --- /dev/null +++ b/src/apis/translate/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Translate', + filename: 'translate.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/urlshortener/README.md b/src/apis/urlshortener/README.md index 0896cd44b0e..ef18e29b3ac 100644 --- a/src/apis/urlshortener/README.md +++ b/src/apis/urlshortener/README.md @@ -11,17 +11,37 @@ $ npm install @google/urlshortener ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/urlshortener +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/urlshortener.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/urlshortener/index.ts b/src/apis/urlshortener/index.ts index 8beb8f83e37..a9e089c483b 100644 --- a/src/apis/urlshortener/index.ts +++ b/src/apis/urlshortener/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {urlshortener_v1} from './v1'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function urlshortener( this: GoogleConfigurable, versionOrOptions: 'v1'|urlshortener_v1.Options) { return getAPI('urlshortener', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/urlshortener/package.json b/src/apis/urlshortener/package.json index 68711ecda2b..24c5267787e 100644 --- a/src/apis/urlshortener/package.json +++ b/src/apis/urlshortener/package.json @@ -4,16 +4,18 @@ "description": "urlshortener", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/urlshortener/v1.ts b/src/apis/urlshortener/v1.ts index 9c65d850d51..1261f6b33e3 100644 --- a/src/apis/urlshortener/v1.ts +++ b/src/apis/urlshortener/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/urlshortener/webpack.config.js b/src/apis/urlshortener/webpack.config.js new file mode 100644 index 00000000000..b1985bf5fd2 --- /dev/null +++ b/src/apis/urlshortener/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Urlshortener', + filename: 'urlshortener.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/vault/README.md b/src/apis/vault/README.md index d02462768e5..3a7e3d2b222 100644 --- a/src/apis/vault/README.md +++ b/src/apis/vault/README.md @@ -11,17 +11,37 @@ $ npm install @google/vault ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/vault +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/vault.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/vault/index.ts b/src/apis/vault/index.ts index e8326c97fad..80f3417963b 100644 --- a/src/apis/vault/index.ts +++ b/src/apis/vault/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {vault_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function vault( this: GoogleConfigurable, versionOrOptions: 'v1'|vault_v1.Options) { return getAPI('vault', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/vault/package.json b/src/apis/vault/package.json index d54c42a95bc..2d28e7438bf 100644 --- a/src/apis/vault/package.json +++ b/src/apis/vault/package.json @@ -4,16 +4,18 @@ "description": "vault", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/vault/v1.ts b/src/apis/vault/v1.ts index 01f79ea20e8..b38e4af71a9 100644 --- a/src/apis/vault/v1.ts +++ b/src/apis/vault/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/vault/webpack.config.js b/src/apis/vault/webpack.config.js new file mode 100644 index 00000000000..7db1a3a2145 --- /dev/null +++ b/src/apis/vault/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Vault', + filename: 'vault.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/videointelligence/README.md b/src/apis/videointelligence/README.md index 2547a04a1ab..ebc8ee0fb90 100644 --- a/src/apis/videointelligence/README.md +++ b/src/apis/videointelligence/README.md @@ -11,17 +11,37 @@ $ npm install @google/videointelligence ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/videointelligence +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/videointelligence.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/videointelligence/index.ts b/src/apis/videointelligence/index.ts index 30675b39440..1d1e71303d0 100644 --- a/src/apis/videointelligence/index.ts +++ b/src/apis/videointelligence/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {videointelligence_v1} from './v1'; import {videointelligence_v1beta2} from './v1beta2'; import {videointelligence_v1p1beta1} from './v1p1beta1'; @@ -47,3 +47,6 @@ export function videointelligence< videointelligence_v1p1beta1.Options) { return getAPI('videointelligence', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/videointelligence/package.json b/src/apis/videointelligence/package.json index edaf07e4e5b..5c07a0092e0 100644 --- a/src/apis/videointelligence/package.json +++ b/src/apis/videointelligence/package.json @@ -4,16 +4,18 @@ "description": "videointelligence", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/videointelligence/v1.ts b/src/apis/videointelligence/v1.ts index 55130585792..a5cf79cd18f 100644 --- a/src/apis/videointelligence/v1.ts +++ b/src/apis/videointelligence/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -866,12 +866,24 @@ export namespace videointelligence_v1 { entity?: Schema$GoogleCloudVideointelligenceV1p2beta1_Entity; /** * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. Streaming mode: it can only be one + * ObjectTrackingFrame message in frames. */ frames?: Schema$GoogleCloudVideointelligenceV1p2beta1_ObjectTrackingFrame[]; /** - * Each object track corresponds to one video segment where it appears. + * Non-streaming batch mode ONLY. Each object track corresponds to one video + * segment where it appears. */ segment?: Schema$GoogleCloudVideointelligenceV1p2beta1_VideoSegment; + /** + * Streaming mode ONLY. In streaming mode, we do not know the end time of a + * tracked object before it is completed. Hence, there is no VideoSegment + * info returned. Instead, we provide a unique identifiable integer track_id + * so that the customers can correlate the results of the ongoing + * ObjectTrackAnnotation of the same track_id over time. + */ + trackId?: string; } /** * Video frame level annotations for object detection and tracking. This field diff --git a/src/apis/videointelligence/v1beta2.ts b/src/apis/videointelligence/v1beta2.ts index 7be19254d7f..8aaef8b1fbc 100644 --- a/src/apis/videointelligence/v1beta2.ts +++ b/src/apis/videointelligence/v1beta2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1072,12 +1072,24 @@ export namespace videointelligence_v1beta2 { entity?: Schema$GoogleCloudVideointelligenceV1p2beta1_Entity; /** * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. Streaming mode: it can only be one + * ObjectTrackingFrame message in frames. */ frames?: Schema$GoogleCloudVideointelligenceV1p2beta1_ObjectTrackingFrame[]; /** - * Each object track corresponds to one video segment where it appears. + * Non-streaming batch mode ONLY. Each object track corresponds to one video + * segment where it appears. */ segment?: Schema$GoogleCloudVideointelligenceV1p2beta1_VideoSegment; + /** + * Streaming mode ONLY. In streaming mode, we do not know the end time of a + * tracked object before it is completed. Hence, there is no VideoSegment + * info returned. Instead, we provide a unique identifiable integer track_id + * so that the customers can correlate the results of the ongoing + * ObjectTrackAnnotation of the same track_id over time. + */ + trackId?: string; } /** * Video frame level annotations for object detection and tracking. This field diff --git a/src/apis/videointelligence/v1p1beta1.ts b/src/apis/videointelligence/v1p1beta1.ts index 2c6e72dac25..71a99e1df10 100644 --- a/src/apis/videointelligence/v1p1beta1.ts +++ b/src/apis/videointelligence/v1p1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1073,12 +1073,24 @@ export namespace videointelligence_v1p1beta1 { entity?: Schema$GoogleCloudVideointelligenceV1p2beta1_Entity; /** * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. Streaming mode: it can only be one + * ObjectTrackingFrame message in frames. */ frames?: Schema$GoogleCloudVideointelligenceV1p2beta1_ObjectTrackingFrame[]; /** - * Each object track corresponds to one video segment where it appears. + * Non-streaming batch mode ONLY. Each object track corresponds to one video + * segment where it appears. */ segment?: Schema$GoogleCloudVideointelligenceV1p2beta1_VideoSegment; + /** + * Streaming mode ONLY. In streaming mode, we do not know the end time of a + * tracked object before it is completed. Hence, there is no VideoSegment + * info returned. Instead, we provide a unique identifiable integer track_id + * so that the customers can correlate the results of the ongoing + * ObjectTrackAnnotation of the same track_id over time. + */ + trackId?: string; } /** * Video frame level annotations for object detection and tracking. This field diff --git a/src/apis/videointelligence/webpack.config.js b/src/apis/videointelligence/webpack.config.js new file mode 100644 index 00000000000..b3be8815c7c --- /dev/null +++ b/src/apis/videointelligence/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Videointelligence', + filename: 'videointelligence.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/vision/README.md b/src/apis/vision/README.md index 2b59490b2c0..e1a2ff02a4e 100644 --- a/src/apis/vision/README.md +++ b/src/apis/vision/README.md @@ -11,17 +11,37 @@ $ npm install @google/vision ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/vision +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/vision.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/vision/index.ts b/src/apis/vision/index.ts index 8fcd67015da..d77533183bf 100644 --- a/src/apis/vision/index.ts +++ b/src/apis/vision/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {vision_v1} from './v1'; import {vision_v1p1beta1} from './v1p1beta1'; import {vision_v1p2beta1} from './v1p2beta1'; @@ -39,3 +39,6 @@ export function vision< vision_v1p1beta1.Options|'v1p2beta1'|vision_v1p2beta1.Options) { return getAPI('vision', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/vision/package.json b/src/apis/vision/package.json index ef88031ddf7..3c48c2769a6 100644 --- a/src/apis/vision/package.json +++ b/src/apis/vision/package.json @@ -4,16 +4,18 @@ "description": "vision", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/vision/v1.ts b/src/apis/vision/v1.ts index 59dfac66171..d013cf4a392 100644 --- a/src/apis/vision/v1.ts +++ b/src/apis/vision/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -468,7 +468,7 @@ export namespace vision_v1 { export interface Schema$CropHint { /** * The bounding polygon for the crop region. The coordinates of the bounding - * box are in the original image's scale, as returned in `ImageParams`. + * box are in the original image's scale. */ boundingPoly?: Schema$BoundingPoly; /** @@ -620,12 +620,12 @@ export namespace vision_v1 { blurredLikelihood?: string; /** * The bounding polygon around the face. The coordinates of the bounding box - * are in the original image's scale, as returned in `ImageParams`. The - * bounding box is computed to "frame" the face in accordance with - * human expectations. It is based on the landmarker results. Note that one - * or more x and/or y coordinates may not be generated in the `BoundingPoly` - * (the polygon will be unbounded) if only a partial face appears in the - * image to be annotated. + * are in the original image's scale. The bounding box is computed to + * "frame" the face in accordance with human expectations. It is + * based on the landmarker results. Note that one or more x and/or y + * coordinates may not be generated in the `BoundingPoly` (the polygon will + * be unbounded) if only a partial face appears in the image to be + * annotated. */ boundingPoly?: Schema$BoundingPoly; /** @@ -911,7 +911,7 @@ export namespace vision_v1 { export interface Schema$GoogleCloudVisionV1p1beta1CropHint { /** * The bounding polygon for the crop region. The coordinates of the bounding - * box are in the original image's scale, as returned in `ImageParams`. + * box are in the original image's scale. */ boundingPoly?: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; /** @@ -1013,12 +1013,12 @@ export namespace vision_v1 { blurredLikelihood?: string; /** * The bounding polygon around the face. The coordinates of the bounding box - * are in the original image's scale, as returned in `ImageParams`. The - * bounding box is computed to "frame" the face in accordance with - * human expectations. It is based on the landmarker results. Note that one - * or more x and/or y coordinates may not be generated in the `BoundingPoly` - * (the polygon will be unbounded) if only a partial face appears in the - * image to be annotated. + * are in the original image's scale. The bounding box is computed to + * "frame" the face in accordance with human expectations. It is + * based on the landmarker results. Note that one or more x and/or y + * coordinates may not be generated in the `BoundingPoly` (the polygon will + * be unbounded) if only a partial face appears in the image to be + * annotated. */ boundingPoly?: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; /** @@ -1896,7 +1896,7 @@ export namespace vision_v1 { export interface Schema$GoogleCloudVisionV1p2beta1CropHint { /** * The bounding polygon for the crop region. The coordinates of the bounding - * box are in the original image's scale, as returned in `ImageParams`. + * box are in the original image's scale. */ boundingPoly?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** @@ -1998,12 +1998,12 @@ export namespace vision_v1 { blurredLikelihood?: string; /** * The bounding polygon around the face. The coordinates of the bounding box - * are in the original image's scale, as returned in `ImageParams`. The - * bounding box is computed to "frame" the face in accordance with - * human expectations. It is based on the landmarker results. Note that one - * or more x and/or y coordinates may not be generated in the `BoundingPoly` - * (the polygon will be unbounded) if only a partial face appears in the - * image to be annotated. + * are in the original image's scale. The bounding box is computed to + * "frame" the face in accordance with human expectations. It is + * based on the landmarker results. Note that one or more x and/or y + * coordinates may not be generated in the `BoundingPoly` (the polygon will + * be unbounded) if only a partial face appears in the image to be + * annotated. */ boundingPoly?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** @@ -2901,7 +2901,7 @@ export namespace vision_v1 { export interface Schema$GoogleCloudVisionV1p3beta1CropHint { /** * The bounding polygon for the crop region. The coordinates of the bounding - * box are in the original image's scale, as returned in `ImageParams`. + * box are in the original image's scale. */ boundingPoly?: Schema$GoogleCloudVisionV1p3beta1BoundingPoly; /** @@ -3003,12 +3003,12 @@ export namespace vision_v1 { blurredLikelihood?: string; /** * The bounding polygon around the face. The coordinates of the bounding box - * are in the original image's scale, as returned in `ImageParams`. The - * bounding box is computed to "frame" the face in accordance with - * human expectations. It is based on the landmarker results. Note that one - * or more x and/or y coordinates may not be generated in the `BoundingPoly` - * (the polygon will be unbounded) if only a partial face appears in the - * image to be annotated. + * are in the original image's scale. The bounding box is computed to + * "frame" the face in accordance with human expectations. It is + * based on the landmarker results. Note that one or more x and/or y + * coordinates may not be generated in the `BoundingPoly` (the polygon will + * be unbounded) if only a partial face appears in the image to be + * annotated. */ boundingPoly?: Schema$GoogleCloudVisionV1p3beta1BoundingPoly; /** @@ -4402,8 +4402,9 @@ export namespace vision_v1 { /** * Output only. The time at which this ProductSet was last indexed. Query * results will reflect all updates before this time. If this ProductSet has - * never been indexed, this field is 0. This field is ignored when creating - * a ProductSet. + * never been indexed, this timestamp is the default value + * "1970-01-01T00:00:00Z". This field is ignored when creating a + * ProductSet. */ indexTime?: string; /** diff --git a/src/apis/vision/v1p1beta1.ts b/src/apis/vision/v1p1beta1.ts index f20fcb5af94..4a0cf90f28c 100644 --- a/src/apis/vision/v1p1beta1.ts +++ b/src/apis/vision/v1p1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -381,7 +381,7 @@ export namespace vision_v1p1beta1 { export interface Schema$CropHint { /** * The bounding polygon for the crop region. The coordinates of the bounding - * box are in the original image's scale, as returned in `ImageParams`. + * box are in the original image's scale. */ boundingPoly?: Schema$BoundingPoly; /** @@ -511,12 +511,12 @@ export namespace vision_v1p1beta1 { blurredLikelihood?: string; /** * The bounding polygon around the face. The coordinates of the bounding box - * are in the original image's scale, as returned in `ImageParams`. The - * bounding box is computed to "frame" the face in accordance with - * human expectations. It is based on the landmarker results. Note that one - * or more x and/or y coordinates may not be generated in the `BoundingPoly` - * (the polygon will be unbounded) if only a partial face appears in the - * image to be annotated. + * are in the original image's scale. The bounding box is computed to + * "frame" the face in accordance with human expectations. It is + * based on the landmarker results. Note that one or more x and/or y + * coordinates may not be generated in the `BoundingPoly` (the polygon will + * be unbounded) if only a partial face appears in the image to be + * annotated. */ boundingPoly?: Schema$BoundingPoly; /** @@ -847,7 +847,7 @@ export namespace vision_v1p1beta1 { export interface Schema$GoogleCloudVisionV1p1beta1CropHint { /** * The bounding polygon for the crop region. The coordinates of the bounding - * box are in the original image's scale, as returned in `ImageParams`. + * box are in the original image's scale. */ boundingPoly?: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; /** @@ -963,12 +963,12 @@ export namespace vision_v1p1beta1 { blurredLikelihood?: string; /** * The bounding polygon around the face. The coordinates of the bounding box - * are in the original image's scale, as returned in `ImageParams`. The - * bounding box is computed to "frame" the face in accordance with - * human expectations. It is based on the landmarker results. Note that one - * or more x and/or y coordinates may not be generated in the `BoundingPoly` - * (the polygon will be unbounded) if only a partial face appears in the - * image to be annotated. + * are in the original image's scale. The bounding box is computed to + * "frame" the face in accordance with human expectations. It is + * based on the landmarker results. Note that one or more x and/or y + * coordinates may not be generated in the `BoundingPoly` (the polygon will + * be unbounded) if only a partial face appears in the image to be + * annotated. */ boundingPoly?: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; /** @@ -1998,7 +1998,7 @@ export namespace vision_v1p1beta1 { export interface Schema$GoogleCloudVisionV1p2beta1CropHint { /** * The bounding polygon for the crop region. The coordinates of the bounding - * box are in the original image's scale, as returned in `ImageParams`. + * box are in the original image's scale. */ boundingPoly?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** @@ -2100,12 +2100,12 @@ export namespace vision_v1p1beta1 { blurredLikelihood?: string; /** * The bounding polygon around the face. The coordinates of the bounding box - * are in the original image's scale, as returned in `ImageParams`. The - * bounding box is computed to "frame" the face in accordance with - * human expectations. It is based on the landmarker results. Note that one - * or more x and/or y coordinates may not be generated in the `BoundingPoly` - * (the polygon will be unbounded) if only a partial face appears in the - * image to be annotated. + * are in the original image's scale. The bounding box is computed to + * "frame" the face in accordance with human expectations. It is + * based on the landmarker results. Note that one or more x and/or y + * coordinates may not be generated in the `BoundingPoly` (the polygon will + * be unbounded) if only a partial face appears in the image to be + * annotated. */ boundingPoly?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** @@ -3003,7 +3003,7 @@ export namespace vision_v1p1beta1 { export interface Schema$GoogleCloudVisionV1p3beta1CropHint { /** * The bounding polygon for the crop region. The coordinates of the bounding - * box are in the original image's scale, as returned in `ImageParams`. + * box are in the original image's scale. */ boundingPoly?: Schema$GoogleCloudVisionV1p3beta1BoundingPoly; /** @@ -3105,12 +3105,12 @@ export namespace vision_v1p1beta1 { blurredLikelihood?: string; /** * The bounding polygon around the face. The coordinates of the bounding box - * are in the original image's scale, as returned in `ImageParams`. The - * bounding box is computed to "frame" the face in accordance with - * human expectations. It is based on the landmarker results. Note that one - * or more x and/or y coordinates may not be generated in the `BoundingPoly` - * (the polygon will be unbounded) if only a partial face appears in the - * image to be annotated. + * are in the original image's scale. The bounding box is computed to + * "frame" the face in accordance with human expectations. It is + * based on the landmarker results. Note that one or more x and/or y + * coordinates may not be generated in the `BoundingPoly` (the polygon will + * be unbounded) if only a partial face appears in the image to be + * annotated. */ boundingPoly?: Schema$GoogleCloudVisionV1p3beta1BoundingPoly; /** diff --git a/src/apis/vision/v1p2beta1.ts b/src/apis/vision/v1p2beta1.ts index fb1ff18ffd6..f348c589ddb 100644 --- a/src/apis/vision/v1p2beta1.ts +++ b/src/apis/vision/v1p2beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -381,7 +381,7 @@ export namespace vision_v1p2beta1 { export interface Schema$CropHint { /** * The bounding polygon for the crop region. The coordinates of the bounding - * box are in the original image's scale, as returned in `ImageParams`. + * box are in the original image's scale. */ boundingPoly?: Schema$BoundingPoly; /** @@ -511,12 +511,12 @@ export namespace vision_v1p2beta1 { blurredLikelihood?: string; /** * The bounding polygon around the face. The coordinates of the bounding box - * are in the original image's scale, as returned in `ImageParams`. The - * bounding box is computed to "frame" the face in accordance with - * human expectations. It is based on the landmarker results. Note that one - * or more x and/or y coordinates may not be generated in the `BoundingPoly` - * (the polygon will be unbounded) if only a partial face appears in the - * image to be annotated. + * are in the original image's scale. The bounding box is computed to + * "frame" the face in accordance with human expectations. It is + * based on the landmarker results. Note that one or more x and/or y + * coordinates may not be generated in the `BoundingPoly` (the polygon will + * be unbounded) if only a partial face appears in the image to be + * annotated. */ boundingPoly?: Schema$BoundingPoly; /** @@ -780,7 +780,7 @@ export namespace vision_v1p2beta1 { export interface Schema$GoogleCloudVisionV1p1beta1CropHint { /** * The bounding polygon for the crop region. The coordinates of the bounding - * box are in the original image's scale, as returned in `ImageParams`. + * box are in the original image's scale. */ boundingPoly?: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; /** @@ -882,12 +882,12 @@ export namespace vision_v1p2beta1 { blurredLikelihood?: string; /** * The bounding polygon around the face. The coordinates of the bounding box - * are in the original image's scale, as returned in `ImageParams`. The - * bounding box is computed to "frame" the face in accordance with - * human expectations. It is based on the landmarker results. Note that one - * or more x and/or y coordinates may not be generated in the `BoundingPoly` - * (the polygon will be unbounded) if only a partial face appears in the - * image to be annotated. + * are in the original image's scale. The bounding box is computed to + * "frame" the face in accordance with human expectations. It is + * based on the landmarker results. Note that one or more x and/or y + * coordinates may not be generated in the `BoundingPoly` (the polygon will + * be unbounded) if only a partial face appears in the image to be + * annotated. */ boundingPoly?: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; /** @@ -1832,7 +1832,7 @@ export namespace vision_v1p2beta1 { export interface Schema$GoogleCloudVisionV1p2beta1CropHint { /** * The bounding polygon for the crop region. The coordinates of the bounding - * box are in the original image's scale, as returned in `ImageParams`. + * box are in the original image's scale. */ boundingPoly?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** @@ -1948,12 +1948,12 @@ export namespace vision_v1p2beta1 { blurredLikelihood?: string; /** * The bounding polygon around the face. The coordinates of the bounding box - * are in the original image's scale, as returned in `ImageParams`. The - * bounding box is computed to "frame" the face in accordance with - * human expectations. It is based on the landmarker results. Note that one - * or more x and/or y coordinates may not be generated in the `BoundingPoly` - * (the polygon will be unbounded) if only a partial face appears in the - * image to be annotated. + * are in the original image's scale. The bounding box is computed to + * "frame" the face in accordance with human expectations. It is + * based on the landmarker results. Note that one or more x and/or y + * coordinates may not be generated in the `BoundingPoly` (the polygon will + * be unbounded) if only a partial face appears in the image to be + * annotated. */ boundingPoly?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** @@ -3003,7 +3003,7 @@ export namespace vision_v1p2beta1 { export interface Schema$GoogleCloudVisionV1p3beta1CropHint { /** * The bounding polygon for the crop region. The coordinates of the bounding - * box are in the original image's scale, as returned in `ImageParams`. + * box are in the original image's scale. */ boundingPoly?: Schema$GoogleCloudVisionV1p3beta1BoundingPoly; /** @@ -3105,12 +3105,12 @@ export namespace vision_v1p2beta1 { blurredLikelihood?: string; /** * The bounding polygon around the face. The coordinates of the bounding box - * are in the original image's scale, as returned in `ImageParams`. The - * bounding box is computed to "frame" the face in accordance with - * human expectations. It is based on the landmarker results. Note that one - * or more x and/or y coordinates may not be generated in the `BoundingPoly` - * (the polygon will be unbounded) if only a partial face appears in the - * image to be annotated. + * are in the original image's scale. The bounding box is computed to + * "frame" the face in accordance with human expectations. It is + * based on the landmarker results. Note that one or more x and/or y + * coordinates may not be generated in the `BoundingPoly` (the polygon will + * be unbounded) if only a partial face appears in the image to be + * annotated. */ boundingPoly?: Schema$GoogleCloudVisionV1p3beta1BoundingPoly; /** diff --git a/src/apis/vision/webpack.config.js b/src/apis/vision/webpack.config.js new file mode 100644 index 00000000000..4cafde9656f --- /dev/null +++ b/src/apis/vision/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Vision', + filename: 'vision.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/webfonts/README.md b/src/apis/webfonts/README.md index ad10bbef296..74b14070a7c 100644 --- a/src/apis/webfonts/README.md +++ b/src/apis/webfonts/README.md @@ -11,17 +11,37 @@ $ npm install @google/webfonts ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/webfonts +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/webfonts.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/webfonts/index.ts b/src/apis/webfonts/index.ts index 0fb13155a02..956b5552b41 100644 --- a/src/apis/webfonts/index.ts +++ b/src/apis/webfonts/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {webfonts_v1} from './v1'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function webfonts( this: GoogleConfigurable, versionOrOptions: 'v1'|webfonts_v1.Options) { return getAPI('webfonts', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/webfonts/package.json b/src/apis/webfonts/package.json index 62682a40822..4075bc8eb9f 100644 --- a/src/apis/webfonts/package.json +++ b/src/apis/webfonts/package.json @@ -4,16 +4,18 @@ "description": "webfonts", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/webfonts/v1.ts b/src/apis/webfonts/v1.ts index 95e2b61be64..ad8621b8f8d 100644 --- a/src/apis/webfonts/v1.ts +++ b/src/apis/webfonts/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/webfonts/webpack.config.js b/src/apis/webfonts/webpack.config.js new file mode 100644 index 00000000000..80a158dfd86 --- /dev/null +++ b/src/apis/webfonts/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Webfonts', + filename: 'webfonts.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/webmasters/README.md b/src/apis/webmasters/README.md index 174b6345a62..66fdf31f3b1 100644 --- a/src/apis/webmasters/README.md +++ b/src/apis/webmasters/README.md @@ -11,17 +11,37 @@ $ npm install @google/webmasters ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/webmasters +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/webmasters.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/webmasters/index.ts b/src/apis/webmasters/index.ts index c4dab838900..bc8f2a15cae 100644 --- a/src/apis/webmasters/index.ts +++ b/src/apis/webmasters/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {webmasters_v3} from './v3'; export const VERSIONS = { @@ -27,3 +27,6 @@ export function webmasters( this: GoogleConfigurable, versionOrOptions: 'v3'|webmasters_v3.Options) { return getAPI('webmasters', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/webmasters/package.json b/src/apis/webmasters/package.json index b39d7f008fb..c9dd655b8d8 100644 --- a/src/apis/webmasters/package.json +++ b/src/apis/webmasters/package.json @@ -4,16 +4,18 @@ "description": "webmasters", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/webmasters/v3.ts b/src/apis/webmasters/v3.ts index 3a6856718f9..57f04b37bb3 100644 --- a/src/apis/webmasters/v3.ts +++ b/src/apis/webmasters/v3.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/webmasters/webpack.config.js b/src/apis/webmasters/webpack.config.js new file mode 100644 index 00000000000..9f33e387bfc --- /dev/null +++ b/src/apis/webmasters/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Webmasters', + filename: 'webmasters.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/websecurityscanner/README.md b/src/apis/websecurityscanner/README.md index bd6dcb9a1fe..bd7a6dd5b60 100644 --- a/src/apis/websecurityscanner/README.md +++ b/src/apis/websecurityscanner/README.md @@ -11,17 +11,37 @@ $ npm install @google/websecurityscanner ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/websecurityscanner +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/websecurityscanner.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/websecurityscanner/index.ts b/src/apis/websecurityscanner/index.ts index 3dffcecd302..57d0fda60b2 100644 --- a/src/apis/websecurityscanner/index.ts +++ b/src/apis/websecurityscanner/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {websecurityscanner_v1alpha} from './v1alpha'; export const VERSIONS = { @@ -30,3 +30,6 @@ websecurityscanner( versionOrOptions: 'v1alpha'|websecurityscanner_v1alpha.Options) { return getAPI('websecurityscanner', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/websecurityscanner/package.json b/src/apis/websecurityscanner/package.json index ad4823e0ca2..ac0d60e3898 100644 --- a/src/apis/websecurityscanner/package.json +++ b/src/apis/websecurityscanner/package.json @@ -4,16 +4,18 @@ "description": "websecurityscanner", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/websecurityscanner/v1alpha.ts b/src/apis/websecurityscanner/v1alpha.ts index ba9a444fcad..4eb70c5a244 100644 --- a/src/apis/websecurityscanner/v1alpha.ts +++ b/src/apis/websecurityscanner/v1alpha.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -371,7 +371,8 @@ export namespace websecurityscanner_v1alpha { version?: string; } /** - * A ScanConfig resource contains the configurations to launch a scan. + * A ScanConfig resource contains the configurations to launch a scan. next + * id: 12 */ export interface Schema$ScanConfig { /** @@ -388,6 +389,10 @@ export namespace websecurityscanner_v1alpha { * Required. The user provided display name of the ScanConfig. */ displayName?: string; + /** + * Latest ScanRun if available. + */ + latestRun?: Schema$ScanRun; /** * The maximum QPS during scanning. A valid value ranges from 5 to 20 * inclusively. If the field is unspecified or its value is set 0, server diff --git a/src/apis/websecurityscanner/webpack.config.js b/src/apis/websecurityscanner/webpack.config.js new file mode 100644 index 00000000000..2f843699dc6 --- /dev/null +++ b/src/apis/websecurityscanner/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Websecurityscanner', + filename: 'websecurityscanner.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/youtube/README.md b/src/apis/youtube/README.md index 5e6256c2012..f8f9329fd6e 100644 --- a/src/apis/youtube/README.md +++ b/src/apis/youtube/README.md @@ -11,17 +11,37 @@ $ npm install @google/youtube ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/youtube +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/youtube.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/youtube/index.ts b/src/apis/youtube/index.ts index 2bb17cf3712..ab061bb60a7 100644 --- a/src/apis/youtube/index.ts +++ b/src/apis/youtube/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {youtube_v3} from './v3'; export const VERSIONS = { @@ -26,3 +26,6 @@ export function youtube( this: GoogleConfigurable, versionOrOptions: 'v3'|youtube_v3.Options) { return getAPI('youtube', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/youtube/package.json b/src/apis/youtube/package.json index a7353830d4e..127109c15be 100644 --- a/src/apis/youtube/package.json +++ b/src/apis/youtube/package.json @@ -4,16 +4,18 @@ "description": "youtube", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/youtube/v3.ts b/src/apis/youtube/v3.ts index b43320b6794..6b91c038b67 100644 --- a/src/apis/youtube/v3.ts +++ b/src/apis/youtube/v3.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/youtube/webpack.config.js b/src/apis/youtube/webpack.config.js new file mode 100644 index 00000000000..7727170bbb7 --- /dev/null +++ b/src/apis/youtube/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Youtube', + filename: 'youtube.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/youtubeAnalytics/README.md b/src/apis/youtubeAnalytics/README.md index 5dfa3909f8f..65076ff5060 100644 --- a/src/apis/youtubeAnalytics/README.md +++ b/src/apis/youtubeAnalytics/README.md @@ -11,17 +11,37 @@ $ npm install @google/youtubeAnalytics ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/youtubeAnalytics +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/youtubeAnalytics.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/youtubeAnalytics/index.ts b/src/apis/youtubeAnalytics/index.ts index 0f3e50582a1..bbbda1a3483 100644 --- a/src/apis/youtubeAnalytics/index.ts +++ b/src/apis/youtubeAnalytics/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {youtubeAnalytics_v1} from './v1'; import {youtubeAnalytics_v1beta1} from './v1beta1'; import {youtubeAnalytics_v2} from './v2'; @@ -46,3 +46,6 @@ export function youtubeAnalytics< youtubeAnalytics_v1beta1.Options|'v2'|youtubeAnalytics_v2.Options) { return getAPI('youtubeAnalytics', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/youtubeAnalytics/package.json b/src/apis/youtubeAnalytics/package.json index b3f2f3b016a..dcaa07d1f67 100644 --- a/src/apis/youtubeAnalytics/package.json +++ b/src/apis/youtubeAnalytics/package.json @@ -4,16 +4,18 @@ "description": "youtubeAnalytics", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/youtubeAnalytics/v1.ts b/src/apis/youtubeAnalytics/v1.ts index da876a39d94..710293d649d 100644 --- a/src/apis/youtubeAnalytics/v1.ts +++ b/src/apis/youtubeAnalytics/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/youtubeAnalytics/v1beta1.ts b/src/apis/youtubeAnalytics/v1beta1.ts index c502b5b8ffa..1ed1fdba2e6 100644 --- a/src/apis/youtubeAnalytics/v1beta1.ts +++ b/src/apis/youtubeAnalytics/v1beta1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/youtubeAnalytics/v2.ts b/src/apis/youtubeAnalytics/v2.ts index 7955898863a..56751ca370b 100644 --- a/src/apis/youtubeAnalytics/v2.ts +++ b/src/apis/youtubeAnalytics/v2.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/youtubeAnalytics/webpack.config.js b/src/apis/youtubeAnalytics/webpack.config.js new file mode 100644 index 00000000000..1f37e07eaf1 --- /dev/null +++ b/src/apis/youtubeAnalytics/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Youtubeanalytics', + filename: 'youtubeAnalytics.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/youtubereporting/README.md b/src/apis/youtubereporting/README.md index 62b2d231e33..0e21dbcd2c5 100644 --- a/src/apis/youtubereporting/README.md +++ b/src/apis/youtubereporting/README.md @@ -11,17 +11,37 @@ $ npm install @google/youtubereporting ``` ## Usage -All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client). +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). + +## Building a browser bundle + +This library can be used in a browser. To prepare a single file bundle, clone the +[repository](https://github.com/googleapis/google-api-nodejs-client) and run + +```sh +$ cd src/apis/youtubereporting +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/youtubereporting.min.js`. Use it from your HTML file: + +```html + + +``` ## License -This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/google/google-api-nodejs-client/blob/master/LICENSE). +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). ## Contributing We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). ## Questions/problems? * Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). -* If you've found an bug/issue, please [file it on GitHub](https://github.com/google/google-api-nodejs-client/issues). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). *Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/youtubereporting/index.ts b/src/apis/youtubereporting/index.ts index 6b2bda6011f..85dc8c24686 100644 --- a/src/apis/youtubereporting/index.ts +++ b/src/apis/youtubereporting/index.ts @@ -1,4 +1,4 @@ -// Copyright 2018, Google, LLC. +// Copyright 2019 Google LLC // 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 @@ -13,7 +13,7 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, GoogleConfigurable} from 'googleapis-common'; +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {youtubereporting_v1} from './v1'; export const VERSIONS = { @@ -29,3 +29,6 @@ export function youtubereporting( versionOrOptions: 'v1'|youtubereporting_v1.Options) { return getAPI('youtubereporting', versionOrOptions, VERSIONS, this); } + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/youtubereporting/package.json b/src/apis/youtubereporting/package.json index cfc529c99f4..f458ca74b22 100644 --- a/src/apis/youtubereporting/package.json +++ b/src/apis/youtubereporting/package.json @@ -4,16 +4,18 @@ "description": "youtubereporting", "main": "build/index.js", "types": "build/index.d.ts", - "keywords": ["google"], + "keywords": [ + "google" + ], "author": "Google LLC", "license": "Apache-2.0", - "homepage": "https://github.com/google/google-api-nodejs-client", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", "bugs": { - "url" : "https://github.com/google/google-api-nodejs-client/issues" + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" }, "repository": { "type": "git", - "url" : "https://github.com/google/google-api-nodejs-client.git" + "url": "https://github.com/googleapis/google-api-nodejs-client.git" }, "engines": { "node": ">=6.0.0" @@ -23,14 +25,19 @@ "lint": "gts check", "compile": "tsc -p .", "prepare": "npm run compile", - "docs": "typedoc --out docs/" + "docs": "typedoc --out docs/", + "webpack": "webpack" }, "dependencies": { "googleapis-common": "^0.6.0" }, "devDependencies": { "gts": "^0.9.0", + "null-loader": "^0.1.1", + "ts-loader": "^5.3.3", + "typedoc": "^0.14.0", "typescript": "~3.2.0", - "typedoc": "^0.14.0" + "webpack": "^4.28.4", + "webpack-cli": "^3.2.1" } } diff --git a/src/apis/youtubereporting/v1.ts b/src/apis/youtubereporting/v1.ts index 447e1ac628e..83b292ced36 100644 --- a/src/apis/youtubereporting/v1.ts +++ b/src/apis/youtubereporting/v1.ts @@ -1,5 +1,5 @@ /** - * Copyright 2015 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/apis/youtubereporting/webpack.config.js b/src/apis/youtubereporting/webpack.config.js new file mode 100644 index 00000000000..8da0b2d69db --- /dev/null +++ b/src/apis/youtubereporting/webpack.config.js @@ -0,0 +1,71 @@ +/** + * Copyright 2019 Google LLC + * + * 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 `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Youtubereporting', + filename: 'youtubereporting.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/, + use: 'null-loader', + }, + { + test: /node_modules\/https-proxy-agent\//, + use: 'null-loader', + }, + { + test: /node_modules\/gcp-metadata\//, + use: 'null-loader', + }, + { + test: /node_modules\/gtoken\//, + use: 'null-loader', + }, + { + test: /node_modules\/pkginfo\//, + use: 'null-loader', + }, + { + test: /node_modules\/semver\//, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/index.ts b/src/index.ts index 735c4445369..a07ed036eda 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,5 @@ /** - * Copyright 2017 Google Inc. All Rights Reserved. + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.