Skip to content

Commit 6147b06

Browse files
yoshi-automationsofisl
authored andcommittedSep 26, 2023
fix(alloydb): update the API
1 parent d4bb1d4 commit 6147b06

11 files changed

+26323
-0
lines changed
 

‎discovery/alloydb-v1.json

+3,405
Large diffs are not rendered by default.

‎discovery/alloydb-v1alpha.json

+3,592
Large diffs are not rendered by default.

‎discovery/alloydb-v1beta.json

+3,571
Large diffs are not rendered by default.

‎src/apis/alloydb/README.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<img src="https://avatars0.githubusercontent.com/u/1342004?v=3&s=96" alt="Google Inc. logo" title="Google" align="right" height="96" width="96"/>
2+
3+
# alloydb
4+
5+
> AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial-grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized for the most demanding use cases, allowing you to build new applications that require high transaction throughput, large database sizes, or multiple read resources; scale existing PostgreSQL workloads with no application changes; and modernize legacy proprietary databases.
6+
7+
## Support status
8+
**Note**: Google provides multiple libraries for this service. This library is in
9+
maintenance mode, and will continue to be made available for users who have
10+
existing applications. If you're building a new application, or modernizing a
11+
legacy application, please use [@google-cloud/alloydb](https://www.npmjs.com/package/@google-cloud/alloydb) instead.
12+
The [@google-cloud/alloydb](https://www.npmjs.com/package/@google-cloud/alloydb) library is faster, easier to use, and better maintained.
13+
14+
To learn more, see [Client Libraries Explained](https://cloud.google.com/apis/docs/client-libraries-explained).
15+
16+
## Installation
17+
18+
```sh
19+
$ npm install @googleapis/alloydb
20+
```
21+
22+
## Usage
23+
All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client).
24+
Information on classes can be found in [Googleapis Documentation](https://googleapis.dev/nodejs/googleapis/latest/alloydb/classes/Alloydb.html).
25+
26+
## License
27+
This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/main/LICENSE).
28+
29+
## Contributing
30+
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/main/.github/CONTRIBUTING.md).
31+
32+
## Questions/problems?
33+
* Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client).
34+
* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues).
35+
36+
37+
*Crafted with ❤️ by the Google Node.js team*

‎src/apis/alloydb/index.ts

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
// Copyright 2020 Google LLC
2+
// Licensed under the Apache License, Version 2.0 (the "License");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
//
6+
// http://www.apache.org/licenses/LICENSE-2.0
7+
//
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
14+
/*! THIS FILE IS AUTO-GENERATED */
15+
16+
import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common';
17+
import {alloydb_v1} from './v1';
18+
import {alloydb_v1alpha} from './v1alpha';
19+
import {alloydb_v1beta} from './v1beta';
20+
21+
export const VERSIONS = {
22+
v1: alloydb_v1.Alloydb,
23+
v1alpha: alloydb_v1alpha.Alloydb,
24+
v1beta: alloydb_v1beta.Alloydb,
25+
};
26+
27+
export function alloydb(version: 'v1'): alloydb_v1.Alloydb;
28+
export function alloydb(options: alloydb_v1.Options): alloydb_v1.Alloydb;
29+
export function alloydb(version: 'v1alpha'): alloydb_v1alpha.Alloydb;
30+
export function alloydb(
31+
options: alloydb_v1alpha.Options
32+
): alloydb_v1alpha.Alloydb;
33+
export function alloydb(version: 'v1beta'): alloydb_v1beta.Alloydb;
34+
export function alloydb(
35+
options: alloydb_v1beta.Options
36+
): alloydb_v1beta.Alloydb;
37+
export function alloydb<
38+
T = alloydb_v1.Alloydb | alloydb_v1alpha.Alloydb | alloydb_v1beta.Alloydb,
39+
>(
40+
this: GoogleConfigurable,
41+
versionOrOptions:
42+
| 'v1'
43+
| alloydb_v1.Options
44+
| 'v1alpha'
45+
| alloydb_v1alpha.Options
46+
| 'v1beta'
47+
| alloydb_v1beta.Options
48+
) {
49+
return getAPI<T>('alloydb', versionOrOptions, VERSIONS, this);
50+
}
51+
52+
const auth = new AuthPlus();
53+
export {auth};
54+
export {alloydb_v1};
55+
export {alloydb_v1alpha};
56+
export {alloydb_v1beta};
57+
export {
58+
AuthPlus,
59+
GlobalOptions,
60+
APIRequestContext,
61+
GoogleConfigurable,
62+
StreamMethodOptions,
63+
GaxiosPromise,
64+
MethodOptions,
65+
BodyResponseCallback,
66+
} from 'googleapis-common';

‎src/apis/alloydb/package.json

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "@googleapis/alloydb",
3+
"version": "0.1.0",
4+
"description": "alloydb",
5+
"main": "build/index.js",
6+
"types": "build/index.d.ts",
7+
"keywords": [
8+
"google"
9+
],
10+
"author": "Google LLC",
11+
"license": "Apache-2.0",
12+
"homepage": "https://github.com/googleapis/google-api-nodejs-client",
13+
"bugs": {
14+
"url": "https://github.com/googleapis/google-api-nodejs-client/issues"
15+
},
16+
"repository": {
17+
"type": "git",
18+
"url": "https://github.com/googleapis/google-api-nodejs-client.git"
19+
},
20+
"engines": {
21+
"node": ">=12.0.0"
22+
},
23+
"scripts": {
24+
"fix": "gts fix",
25+
"lint": "gts check",
26+
"compile": "tsc -p .",
27+
"prepare": "npm run compile",
28+
"webpack": "webpack"
29+
},
30+
"dependencies": {
31+
"googleapis-common": "^7.0.0"
32+
},
33+
"devDependencies": {
34+
"@microsoft/api-documenter": "^7.8.10",
35+
"@microsoft/api-extractor": "^7.8.10",
36+
"gts": "^5.0.0",
37+
"null-loader": "^4.0.0",
38+
"ts-loader": "^9.0.0",
39+
"typescript": "~4.8.4",
40+
"webpack": "^5.0.0",
41+
"webpack-cli": "^5.0.0"
42+
}
43+
}

‎src/apis/alloydb/tsconfig.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "./node_modules/gts/tsconfig-google.json",
3+
"compilerOptions": {
4+
"rootDir": ".",
5+
"outDir": "build"
6+
},
7+
"include": [
8+
"*.ts",
9+
]
10+
}

‎src/apis/alloydb/v1.ts

+4,982
Large diffs are not rendered by default.

‎src/apis/alloydb/v1alpha.ts

+5,279
Large diffs are not rendered by default.

‎src/apis/alloydb/v1beta.ts

+5,259
Large diffs are not rendered by default.

‎src/apis/alloydb/webpack.config.js

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
// Copyright 2019 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Use `npm run webpack` to produce Webpack bundle for this library.
16+
17+
const path = require('path');
18+
19+
module.exports = {
20+
entry: './index.ts',
21+
resolve: {
22+
extensions: ['.ts', '.js', '.json'],
23+
fallback: {
24+
crypto: false,
25+
child_process: false,
26+
fs: false,
27+
http2: false,
28+
buffer: 'browserify',
29+
process: false,
30+
os: false,
31+
querystring: false,
32+
path: false,
33+
stream: 'stream-browserify',
34+
url: false,
35+
util: false,
36+
zlib: false,
37+
},
38+
},
39+
output: {
40+
library: 'Alloydb',
41+
filename: 'alloydb.min.js',
42+
path: path.resolve(__dirname, 'dist'),
43+
},
44+
module: {
45+
rules: [
46+
{
47+
test: /node_modules[\\/]google-auth-library[\\/]src[\\/]crypto[\\/]node[\\/]crypto/,
48+
use: 'null-loader',
49+
},
50+
{
51+
test: /node_modules[\\/]https-proxy-agent[\\/]/,
52+
use: 'null-loader',
53+
},
54+
{
55+
test: /node_modules[\\/]gcp-metadata[\\/]/,
56+
use: 'null-loader',
57+
},
58+
{
59+
test: /node_modules[\\/]gtoken[\\/]/,
60+
use: 'null-loader',
61+
},
62+
{
63+
test: /node_modules[\\/]pkginfo[\\/]/,
64+
use: 'null-loader',
65+
},
66+
{
67+
test: /node_modules[\\/]semver[\\/]/,
68+
use: 'null-loader',
69+
},
70+
{
71+
test: /\.ts$/,
72+
use: 'ts-loader',
73+
exclude: /node_modules/,
74+
},
75+
],
76+
},
77+
mode: 'production',
78+
plugins: [],
79+
};

0 commit comments

Comments
 (0)
Please sign in to comment.