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
+