@maxim_mazurok/gapi.client.sqladmin-v1 0.0.20230119 → 0.0.20230226
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +22 -3
- package/package.json +2 -2
- package/readme.md +3 -3
- package/tests.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Type definitions for non-npm package
|
|
1
|
+
/* Type definitions for non-npm package sqladmin API (prod) v1 0.0 */
|
|
2
2
|
// Project: https://developers.google.com/cloud-sql/
|
|
3
3
|
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
4
|
// Nick Amoscato <https://github.com/namoscato>
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://sqladmin.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230226
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
16
16
|
declare namespace gapi.client {
|
|
17
|
-
/** Load
|
|
17
|
+
/** Load sqladmin API (prod) v1 */
|
|
18
18
|
function load(urlOrObject: "https://sqladmin.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
|
|
19
19
|
/** @deprecated Please load APIs with discovery documents. */
|
|
20
20
|
function load(name: "sqladmin", version: "v1"): Promise<void>;
|
|
@@ -761,6 +761,25 @@ declare namespace gapi.client {
|
|
|
761
761
|
/** This is always `sql#operationErrors`. */
|
|
762
762
|
kind?: string;
|
|
763
763
|
}
|
|
764
|
+
interface OperationMetadata {
|
|
765
|
+
/** Output only. API version used to start the operation. */
|
|
766
|
+
apiVersion?: string;
|
|
767
|
+
/**
|
|
768
|
+
* Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a
|
|
769
|
+
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
|
|
770
|
+
*/
|
|
771
|
+
cancelRequested?: boolean;
|
|
772
|
+
/** Output only. The time the operation was created. */
|
|
773
|
+
createTime?: string;
|
|
774
|
+
/** Output only. The time the operation finished running. */
|
|
775
|
+
endTime?: string;
|
|
776
|
+
/** Output only. Human-readable status of the operation, if any. */
|
|
777
|
+
statusDetail?: string;
|
|
778
|
+
/** Output only. Server-defined resource path for the target of the operation. */
|
|
779
|
+
target?: string;
|
|
780
|
+
/** Output only. Name of the verb executed by the operation. */
|
|
781
|
+
verb?: string;
|
|
782
|
+
}
|
|
764
783
|
interface OperationsListResponse {
|
|
765
784
|
/** List of operation resources. */
|
|
766
785
|
items?: Operation[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxim_mazurok/gapi.client.sqladmin-v1",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "TypeScript typings for
|
|
3
|
+
"version": "0.0.20230226",
|
|
4
|
+
"description": "TypeScript typings for sqladmin API (prod) v1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "maxim@mazurok.com",
|
package/readme.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# TypeScript typings for
|
|
1
|
+
# TypeScript typings for sqladmin API (prod) v1
|
|
2
2
|
|
|
3
3
|
API for Cloud SQL database instance management
|
|
4
4
|
For detailed description please check [documentation](https://developers.google.com/cloud-sql/).
|
|
5
5
|
|
|
6
6
|
## Installing
|
|
7
7
|
|
|
8
|
-
Install typings for
|
|
8
|
+
Install typings for sqladmin API (prod):
|
|
9
9
|
|
|
10
10
|
```
|
|
11
11
|
npm install @types/gapi.client.sqladmin-v1 --save-dev
|
|
@@ -65,7 +65,7 @@ gapi.auth.authorize(
|
|
|
65
65
|
});
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
-
After that you can use
|
|
68
|
+
After that you can use sqladmin API (prod) resources: <!-- TODO: make this work for multiple namespaces -->
|
|
69
69
|
|
|
70
70
|
```typescript
|
|
71
71
|
|
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230226
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|