@maxim_mazurok/gapi.client.sqladmin-v1beta4 0.0.20231029 → 0.0.20231128
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 +3743 -5485
- package/package.json +6 -6
- package/readme.md +195 -66
- package/tests.ts +0 -1337
- package/tsconfig.json +0 -18
- package/tslint.json +0 -6
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxim_mazurok/gapi.client.sqladmin-v1beta4",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20231128",
|
|
4
4
|
"description": "TypeScript typings for Cloud SQL Admin API v1beta4",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
|
|
8
|
+
},
|
|
5
9
|
"license": "MIT",
|
|
6
10
|
"author": {
|
|
7
|
-
"email": "maxim@mazurok.com",
|
|
8
11
|
"name": "Maxim Mazurok",
|
|
12
|
+
"email": "maxim@mazurok.com",
|
|
9
13
|
"url": "https://maxim.mazurok.com"
|
|
10
14
|
},
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
|
|
14
|
-
},
|
|
15
15
|
"types": "index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@types/gapi.client": "*",
|
package/readme.md
CHANGED
|
@@ -25,10 +25,13 @@ gapi.load('client', () => {
|
|
|
25
25
|
Then load api client wrapper:
|
|
26
26
|
|
|
27
27
|
```typescript
|
|
28
|
-
gapi.client.load(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
gapi.client.load(
|
|
29
|
+
'https://sqladmin.googleapis.com/$discovery/rest?version=v1beta4',
|
|
30
|
+
() => {
|
|
31
|
+
// now we can use:
|
|
32
|
+
// gapi.client.sql
|
|
33
|
+
}
|
|
34
|
+
);
|
|
32
35
|
```
|
|
33
36
|
|
|
34
37
|
```typescript
|
|
@@ -45,282 +48,408 @@ Don't forget to authenticate your client before sending any request to resources
|
|
|
45
48
|
// declare client_id registered in Google Developers Console
|
|
46
49
|
var client_id = '',
|
|
47
50
|
scope = [
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
// See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
|
52
|
+
'https://www.googleapis.com/auth/cloud-platform',
|
|
50
53
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
// Manage your Google SQL Service instances
|
|
55
|
+
'https://www.googleapis.com/auth/sqlservice.admin',
|
|
56
|
+
],
|
|
57
|
+
immediate = true;
|
|
55
58
|
// ...
|
|
56
59
|
|
|
57
60
|
gapi.auth.authorize(
|
|
58
|
-
{
|
|
61
|
+
{client_id: client_id, scope: scope, immediate: immediate},
|
|
59
62
|
authResult => {
|
|
60
63
|
if (authResult && !authResult.error) {
|
|
61
|
-
|
|
64
|
+
/* handle successful authorization */
|
|
62
65
|
} else {
|
|
63
|
-
|
|
66
|
+
/* handle authorization error */
|
|
64
67
|
}
|
|
65
|
-
}
|
|
68
|
+
}
|
|
69
|
+
);
|
|
66
70
|
```
|
|
67
71
|
|
|
68
72
|
After that you can use Cloud SQL Admin API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
69
73
|
|
|
70
74
|
```typescript
|
|
71
|
-
|
|
72
75
|
/*
|
|
73
76
|
Deletes the backup taken by a backup run.
|
|
74
77
|
*/
|
|
75
|
-
await gapi.client.sql.backupRuns.delete({
|
|
78
|
+
await gapi.client.sql.backupRuns.delete({
|
|
79
|
+
id: 'id',
|
|
80
|
+
instance: 'instance',
|
|
81
|
+
project: 'project',
|
|
82
|
+
});
|
|
76
83
|
|
|
77
84
|
/*
|
|
78
85
|
Retrieves a resource containing information about a backup run.
|
|
79
86
|
*/
|
|
80
|
-
await gapi.client.sql.backupRuns.get({
|
|
87
|
+
await gapi.client.sql.backupRuns.get({
|
|
88
|
+
id: 'id',
|
|
89
|
+
instance: 'instance',
|
|
90
|
+
project: 'project',
|
|
91
|
+
});
|
|
81
92
|
|
|
82
93
|
/*
|
|
83
94
|
Creates a new backup run on demand.
|
|
84
95
|
*/
|
|
85
|
-
await gapi.client.sql.backupRuns.insert({
|
|
96
|
+
await gapi.client.sql.backupRuns.insert({
|
|
97
|
+
instance: 'instance',
|
|
98
|
+
project: 'project',
|
|
99
|
+
});
|
|
86
100
|
|
|
87
101
|
/*
|
|
88
102
|
Lists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time.
|
|
89
103
|
*/
|
|
90
|
-
await gapi.client.sql.backupRuns.list({
|
|
104
|
+
await gapi.client.sql.backupRuns.list({
|
|
105
|
+
instance: 'instance',
|
|
106
|
+
project: 'project',
|
|
107
|
+
});
|
|
91
108
|
|
|
92
109
|
/*
|
|
93
110
|
Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.
|
|
94
111
|
*/
|
|
95
|
-
await gapi.client.sql.connect.generateEphemeral({
|
|
112
|
+
await gapi.client.sql.connect.generateEphemeral({
|
|
113
|
+
instance: 'instance',
|
|
114
|
+
project: 'project',
|
|
115
|
+
});
|
|
96
116
|
|
|
97
117
|
/*
|
|
98
118
|
Retrieves connect settings about a Cloud SQL instance.
|
|
99
119
|
*/
|
|
100
|
-
await gapi.client.sql.connect.get({
|
|
120
|
+
await gapi.client.sql.connect.get({instance: 'instance', project: 'project'});
|
|
101
121
|
|
|
102
122
|
/*
|
|
103
123
|
Deletes a database from a Cloud SQL instance.
|
|
104
124
|
*/
|
|
105
|
-
await gapi.client.sql.databases.delete({
|
|
125
|
+
await gapi.client.sql.databases.delete({
|
|
126
|
+
database: 'database',
|
|
127
|
+
instance: 'instance',
|
|
128
|
+
project: 'project',
|
|
129
|
+
});
|
|
106
130
|
|
|
107
131
|
/*
|
|
108
132
|
Retrieves a resource containing information about a database inside a Cloud SQL instance.
|
|
109
133
|
*/
|
|
110
|
-
await gapi.client.sql.databases.get({
|
|
134
|
+
await gapi.client.sql.databases.get({
|
|
135
|
+
database: 'database',
|
|
136
|
+
instance: 'instance',
|
|
137
|
+
project: 'project',
|
|
138
|
+
});
|
|
111
139
|
|
|
112
140
|
/*
|
|
113
141
|
Inserts a resource containing information about a database inside a Cloud SQL instance. **Note:** You can't modify the default character set and collation.
|
|
114
142
|
*/
|
|
115
|
-
await gapi.client.sql.databases.insert({
|
|
143
|
+
await gapi.client.sql.databases.insert({
|
|
144
|
+
instance: 'instance',
|
|
145
|
+
project: 'project',
|
|
146
|
+
});
|
|
116
147
|
|
|
117
148
|
/*
|
|
118
149
|
Lists databases in the specified Cloud SQL instance.
|
|
119
150
|
*/
|
|
120
|
-
await gapi.client.sql.databases.list({
|
|
151
|
+
await gapi.client.sql.databases.list({
|
|
152
|
+
instance: 'instance',
|
|
153
|
+
project: 'project',
|
|
154
|
+
});
|
|
121
155
|
|
|
122
156
|
/*
|
|
123
157
|
Partially updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics.
|
|
124
158
|
*/
|
|
125
|
-
await gapi.client.sql.databases.patch({
|
|
159
|
+
await gapi.client.sql.databases.patch({
|
|
160
|
+
database: 'database',
|
|
161
|
+
instance: 'instance',
|
|
162
|
+
project: 'project',
|
|
163
|
+
});
|
|
126
164
|
|
|
127
165
|
/*
|
|
128
166
|
Updates a resource containing information about a database inside a Cloud SQL instance.
|
|
129
167
|
*/
|
|
130
|
-
await gapi.client.sql.databases.update({
|
|
168
|
+
await gapi.client.sql.databases.update({
|
|
169
|
+
database: 'database',
|
|
170
|
+
instance: 'instance',
|
|
171
|
+
project: 'project',
|
|
172
|
+
});
|
|
131
173
|
|
|
132
174
|
/*
|
|
133
175
|
Lists all available database flags for Cloud SQL instances.
|
|
134
176
|
*/
|
|
135
|
-
await gapi.client.sql.flags.list({
|
|
177
|
+
await gapi.client.sql.flags.list({});
|
|
136
178
|
|
|
137
179
|
/*
|
|
138
180
|
Add a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in.
|
|
139
181
|
*/
|
|
140
|
-
await gapi.client.sql.instances.addServerCa({
|
|
182
|
+
await gapi.client.sql.instances.addServerCa({
|
|
183
|
+
instance: 'instance',
|
|
184
|
+
project: 'project',
|
|
185
|
+
});
|
|
141
186
|
|
|
142
187
|
/*
|
|
143
188
|
Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart.
|
|
144
189
|
*/
|
|
145
|
-
await gapi.client.sql.instances.clone({
|
|
190
|
+
await gapi.client.sql.instances.clone({
|
|
191
|
+
instance: 'instance',
|
|
192
|
+
project: 'project',
|
|
193
|
+
});
|
|
146
194
|
|
|
147
195
|
/*
|
|
148
196
|
Deletes a Cloud SQL instance.
|
|
149
197
|
*/
|
|
150
|
-
await gapi.client.sql.instances.delete({
|
|
198
|
+
await gapi.client.sql.instances.delete({
|
|
199
|
+
instance: 'instance',
|
|
200
|
+
project: 'project',
|
|
201
|
+
});
|
|
151
202
|
|
|
152
203
|
/*
|
|
153
204
|
Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server.
|
|
154
205
|
*/
|
|
155
|
-
await gapi.client.sql.instances.demote({
|
|
206
|
+
await gapi.client.sql.instances.demote({
|
|
207
|
+
instance: 'instance',
|
|
208
|
+
project: 'project',
|
|
209
|
+
});
|
|
156
210
|
|
|
157
211
|
/*
|
|
158
212
|
Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
|
|
159
213
|
*/
|
|
160
|
-
await gapi.client.sql.instances.demoteMaster({
|
|
214
|
+
await gapi.client.sql.instances.demoteMaster({
|
|
215
|
+
instance: 'instance',
|
|
216
|
+
project: 'project',
|
|
217
|
+
});
|
|
161
218
|
|
|
162
219
|
/*
|
|
163
220
|
Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
|
|
164
221
|
*/
|
|
165
|
-
await gapi.client.sql.instances.export({
|
|
222
|
+
await gapi.client.sql.instances.export({
|
|
223
|
+
instance: 'instance',
|
|
224
|
+
project: 'project',
|
|
225
|
+
});
|
|
166
226
|
|
|
167
227
|
/*
|
|
168
228
|
Initiates a manual failover of a high availability (HA) primary instance to a standby instance, which becomes the primary instance. Users are then rerouted to the new primary. For more information, see the [Overview of high availability](https://cloud.google.com/sql/docs/mysql/high-availability) page in the Cloud SQL documentation. If using Legacy HA (MySQL only), this causes the instance to failover to its failover replica instance.
|
|
169
229
|
*/
|
|
170
|
-
await gapi.client.sql.instances.failover({
|
|
230
|
+
await gapi.client.sql.instances.failover({
|
|
231
|
+
instance: 'instance',
|
|
232
|
+
project: 'project',
|
|
233
|
+
});
|
|
171
234
|
|
|
172
235
|
/*
|
|
173
236
|
Retrieves a resource containing information about a Cloud SQL instance.
|
|
174
237
|
*/
|
|
175
|
-
await gapi.client.sql.instances.get({
|
|
238
|
+
await gapi.client.sql.instances.get({instance: 'instance', project: 'project'});
|
|
176
239
|
|
|
177
240
|
/*
|
|
178
241
|
Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage.
|
|
179
242
|
*/
|
|
180
|
-
await gapi.client.sql.instances.import({
|
|
243
|
+
await gapi.client.sql.instances.import({
|
|
244
|
+
instance: 'instance',
|
|
245
|
+
project: 'project',
|
|
246
|
+
});
|
|
181
247
|
|
|
182
248
|
/*
|
|
183
249
|
Creates a new Cloud SQL instance.
|
|
184
250
|
*/
|
|
185
|
-
await gapi.client.sql.instances.insert({
|
|
251
|
+
await gapi.client.sql.instances.insert({project: 'project'});
|
|
186
252
|
|
|
187
253
|
/*
|
|
188
254
|
Lists instances under a given project.
|
|
189
255
|
*/
|
|
190
|
-
await gapi.client.sql.instances.list({
|
|
256
|
+
await gapi.client.sql.instances.list({project: 'project'});
|
|
191
257
|
|
|
192
258
|
/*
|
|
193
259
|
Lists all of the trusted Certificate Authorities (CAs) for the specified instance. There can be up to three CAs listed: the CA that was used to sign the certificate that is currently in use, a CA that has been added but not yet used to sign a certificate, and a CA used to sign a certificate that has previously rotated out.
|
|
194
260
|
*/
|
|
195
|
-
await gapi.client.sql.instances.listServerCas({
|
|
261
|
+
await gapi.client.sql.instances.listServerCas({
|
|
262
|
+
instance: 'instance',
|
|
263
|
+
project: 'project',
|
|
264
|
+
});
|
|
196
265
|
|
|
197
266
|
/*
|
|
198
267
|
Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.
|
|
199
268
|
*/
|
|
200
|
-
await gapi.client.sql.instances.patch({
|
|
269
|
+
await gapi.client.sql.instances.patch({
|
|
270
|
+
instance: 'instance',
|
|
271
|
+
project: 'project',
|
|
272
|
+
});
|
|
201
273
|
|
|
202
274
|
/*
|
|
203
275
|
Promotes the read replica instance to be a stand-alone Cloud SQL instance. Using this operation might cause your instance to restart.
|
|
204
276
|
*/
|
|
205
|
-
await gapi.client.sql.instances.promoteReplica({
|
|
277
|
+
await gapi.client.sql.instances.promoteReplica({
|
|
278
|
+
instance: 'instance',
|
|
279
|
+
project: 'project',
|
|
280
|
+
});
|
|
206
281
|
|
|
207
282
|
/*
|
|
208
283
|
Reencrypt CMEK instance with latest key version.
|
|
209
284
|
*/
|
|
210
|
-
await gapi.client.sql.instances.reencrypt({
|
|
285
|
+
await gapi.client.sql.instances.reencrypt({
|
|
286
|
+
instance: 'instance',
|
|
287
|
+
project: 'project',
|
|
288
|
+
});
|
|
211
289
|
|
|
212
290
|
/*
|
|
213
291
|
Deletes all client certificates and generates a new server SSL certificate for the instance.
|
|
214
292
|
*/
|
|
215
|
-
await gapi.client.sql.instances.resetSslConfig({
|
|
293
|
+
await gapi.client.sql.instances.resetSslConfig({
|
|
294
|
+
instance: 'instance',
|
|
295
|
+
project: 'project',
|
|
296
|
+
});
|
|
216
297
|
|
|
217
298
|
/*
|
|
218
299
|
Restarts a Cloud SQL instance.
|
|
219
300
|
*/
|
|
220
|
-
await gapi.client.sql.instances.restart({
|
|
301
|
+
await gapi.client.sql.instances.restart({
|
|
302
|
+
instance: 'instance',
|
|
303
|
+
project: 'project',
|
|
304
|
+
});
|
|
221
305
|
|
|
222
306
|
/*
|
|
223
307
|
Restores a backup of a Cloud SQL instance. Using this operation might cause your instance to restart.
|
|
224
308
|
*/
|
|
225
|
-
await gapi.client.sql.instances.restoreBackup({
|
|
309
|
+
await gapi.client.sql.instances.restoreBackup({
|
|
310
|
+
instance: 'instance',
|
|
311
|
+
project: 'project',
|
|
312
|
+
});
|
|
226
313
|
|
|
227
314
|
/*
|
|
228
315
|
Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method.
|
|
229
316
|
*/
|
|
230
|
-
await gapi.client.sql.instances.rotateServerCa({
|
|
317
|
+
await gapi.client.sql.instances.rotateServerCa({
|
|
318
|
+
instance: 'instance',
|
|
319
|
+
project: 'project',
|
|
320
|
+
});
|
|
231
321
|
|
|
232
322
|
/*
|
|
233
323
|
Starts the replication in the read replica instance.
|
|
234
324
|
*/
|
|
235
|
-
await gapi.client.sql.instances.startReplica({
|
|
325
|
+
await gapi.client.sql.instances.startReplica({
|
|
326
|
+
instance: 'instance',
|
|
327
|
+
project: 'project',
|
|
328
|
+
});
|
|
236
329
|
|
|
237
330
|
/*
|
|
238
331
|
Stops the replication in the read replica instance.
|
|
239
332
|
*/
|
|
240
|
-
await gapi.client.sql.instances.stopReplica({
|
|
333
|
+
await gapi.client.sql.instances.stopReplica({
|
|
334
|
+
instance: 'instance',
|
|
335
|
+
project: 'project',
|
|
336
|
+
});
|
|
241
337
|
|
|
242
338
|
/*
|
|
243
339
|
Switches over from the primary instance to a replica instance.
|
|
244
340
|
*/
|
|
245
|
-
await gapi.client.sql.instances.switchover({
|
|
341
|
+
await gapi.client.sql.instances.switchover({
|
|
342
|
+
instance: 'instance',
|
|
343
|
+
project: 'project',
|
|
344
|
+
});
|
|
246
345
|
|
|
247
346
|
/*
|
|
248
347
|
Truncate MySQL general and slow query log tables MySQL only.
|
|
249
348
|
*/
|
|
250
|
-
await gapi.client.sql.instances.truncateLog({
|
|
349
|
+
await gapi.client.sql.instances.truncateLog({
|
|
350
|
+
instance: 'instance',
|
|
351
|
+
project: 'project',
|
|
352
|
+
});
|
|
251
353
|
|
|
252
354
|
/*
|
|
253
355
|
Updates settings of a Cloud SQL instance. Using this operation might cause your instance to restart.
|
|
254
356
|
*/
|
|
255
|
-
await gapi.client.sql.instances.update({
|
|
357
|
+
await gapi.client.sql.instances.update({
|
|
358
|
+
instance: 'instance',
|
|
359
|
+
project: 'project',
|
|
360
|
+
});
|
|
256
361
|
|
|
257
362
|
/*
|
|
258
363
|
Cancels an instance operation that has been performed on an instance.
|
|
259
364
|
*/
|
|
260
|
-
await gapi.client.sql.operations.cancel({
|
|
365
|
+
await gapi.client.sql.operations.cancel({
|
|
366
|
+
operation: 'operation',
|
|
367
|
+
project: 'project',
|
|
368
|
+
});
|
|
261
369
|
|
|
262
370
|
/*
|
|
263
371
|
Retrieves an instance operation that has been performed on an instance.
|
|
264
372
|
*/
|
|
265
|
-
await gapi.client.sql.operations.get({
|
|
373
|
+
await gapi.client.sql.operations.get({
|
|
374
|
+
operation: 'operation',
|
|
375
|
+
project: 'project',
|
|
376
|
+
});
|
|
266
377
|
|
|
267
378
|
/*
|
|
268
379
|
Lists all instance operations that have been performed on the given Cloud SQL instance in the reverse chronological order of the start time.
|
|
269
380
|
*/
|
|
270
|
-
await gapi.client.sql.operations.list({
|
|
381
|
+
await gapi.client.sql.operations.list({project: 'project'});
|
|
271
382
|
|
|
272
383
|
/*
|
|
273
384
|
Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.
|
|
274
385
|
*/
|
|
275
|
-
await gapi.client.sql.sslCerts.createEphemeral({
|
|
386
|
+
await gapi.client.sql.sslCerts.createEphemeral({
|
|
387
|
+
instance: 'instance',
|
|
388
|
+
project: 'project',
|
|
389
|
+
});
|
|
276
390
|
|
|
277
391
|
/*
|
|
278
392
|
Deletes the SSL certificate. For First Generation instances, the certificate remains valid until the instance is restarted.
|
|
279
393
|
*/
|
|
280
|
-
await gapi.client.sql.sslCerts.delete({
|
|
394
|
+
await gapi.client.sql.sslCerts.delete({
|
|
395
|
+
instance: 'instance',
|
|
396
|
+
project: 'project',
|
|
397
|
+
sha1Fingerprint: 'sha1Fingerprint',
|
|
398
|
+
});
|
|
281
399
|
|
|
282
400
|
/*
|
|
283
401
|
Retrieves a particular SSL certificate. Does not include the private key (required for usage). The private key must be saved from the response to initial creation.
|
|
284
402
|
*/
|
|
285
|
-
await gapi.client.sql.sslCerts.get({
|
|
403
|
+
await gapi.client.sql.sslCerts.get({
|
|
404
|
+
instance: 'instance',
|
|
405
|
+
project: 'project',
|
|
406
|
+
sha1Fingerprint: 'sha1Fingerprint',
|
|
407
|
+
});
|
|
286
408
|
|
|
287
409
|
/*
|
|
288
410
|
Creates an SSL certificate and returns it along with the private key and server certificate authority. The new certificate will not be usable until the instance is restarted.
|
|
289
411
|
*/
|
|
290
|
-
await gapi.client.sql.sslCerts.insert({
|
|
412
|
+
await gapi.client.sql.sslCerts.insert({
|
|
413
|
+
instance: 'instance',
|
|
414
|
+
project: 'project',
|
|
415
|
+
});
|
|
291
416
|
|
|
292
417
|
/*
|
|
293
418
|
Lists all of the current SSL certificates for the instance.
|
|
294
419
|
*/
|
|
295
|
-
await gapi.client.sql.sslCerts.list({
|
|
420
|
+
await gapi.client.sql.sslCerts.list({instance: 'instance', project: 'project'});
|
|
296
421
|
|
|
297
422
|
/*
|
|
298
423
|
Lists all available machine types (tiers) for Cloud SQL, for example, `db-custom-1-3840`. For related information, see [Pricing](/sql/pricing).
|
|
299
424
|
*/
|
|
300
|
-
await gapi.client.sql.tiers.list({
|
|
425
|
+
await gapi.client.sql.tiers.list({project: 'project'});
|
|
301
426
|
|
|
302
427
|
/*
|
|
303
428
|
Deletes a user from a Cloud SQL instance.
|
|
304
429
|
*/
|
|
305
|
-
await gapi.client.sql.users.delete({
|
|
430
|
+
await gapi.client.sql.users.delete({instance: 'instance', project: 'project'});
|
|
306
431
|
|
|
307
432
|
/*
|
|
308
433
|
Retrieves a resource containing information about a user.
|
|
309
434
|
*/
|
|
310
|
-
await gapi.client.sql.users.get({
|
|
435
|
+
await gapi.client.sql.users.get({
|
|
436
|
+
instance: 'instance',
|
|
437
|
+
name: 'name',
|
|
438
|
+
project: 'project',
|
|
439
|
+
});
|
|
311
440
|
|
|
312
441
|
/*
|
|
313
442
|
Creates a new user in a Cloud SQL instance.
|
|
314
443
|
*/
|
|
315
|
-
await gapi.client.sql.users.insert({
|
|
444
|
+
await gapi.client.sql.users.insert({instance: 'instance', project: 'project'});
|
|
316
445
|
|
|
317
446
|
/*
|
|
318
447
|
Lists users in the specified Cloud SQL instance.
|
|
319
448
|
*/
|
|
320
|
-
await gapi.client.sql.users.list({
|
|
449
|
+
await gapi.client.sql.users.list({instance: 'instance', project: 'project'});
|
|
321
450
|
|
|
322
451
|
/*
|
|
323
452
|
Updates an existing user in a Cloud SQL instance.
|
|
324
453
|
*/
|
|
325
|
-
await gapi.client.sql.users.update({
|
|
454
|
+
await gapi.client.sql.users.update({instance: 'instance', project: 'project'});
|
|
326
455
|
```
|