@databricks/sdk-postgres 0.1.0-dev.4 → 0.1.0-dev.5
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/dist/v1/client.d.ts +43 -43
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +126 -126
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/model.d.ts +185 -159
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +238 -219
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +2 -1
- package/dist/v1/utils.js.map +1 -1
- package/package.json +4 -5
- package/src/v1/client.ts +0 -3277
- package/src/v1/index.ts +0 -140
- package/src/v1/model.ts +0 -3929
- package/src/v1/transport.ts +0 -73
- package/src/v1/utils.ts +0 -180
package/dist/v1/client.js
CHANGED
|
@@ -74,7 +74,7 @@ export class PostgresClient {
|
|
|
74
74
|
}
|
|
75
75
|
async createBranchOperation(req, options) {
|
|
76
76
|
const op = await this.createBranch(req, options);
|
|
77
|
-
return new CreateBranchOperation(this,
|
|
77
|
+
return new CreateBranchOperation(op, (req, options) => this.getOperation(req, options));
|
|
78
78
|
}
|
|
79
79
|
/** Register a Postgres database in the Unity Catalog. */
|
|
80
80
|
async createCatalog(req, options) {
|
|
@@ -109,7 +109,7 @@ export class PostgresClient {
|
|
|
109
109
|
}
|
|
110
110
|
async createCatalogOperation(req, options) {
|
|
111
111
|
const op = await this.createCatalog(req, options);
|
|
112
|
-
return new CreateCatalogOperation(this,
|
|
112
|
+
return new CreateCatalogOperation(op, (req, options) => this.getOperation(req, options));
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
115
|
* Create a Database.
|
|
@@ -148,7 +148,7 @@ export class PostgresClient {
|
|
|
148
148
|
}
|
|
149
149
|
async createDatabaseOperation(req, options) {
|
|
150
150
|
const op = await this.createDatabase(req, options);
|
|
151
|
-
return new CreateDatabaseOperation(this,
|
|
151
|
+
return new CreateDatabaseOperation(op, (req, options) => this.getOperation(req, options));
|
|
152
152
|
}
|
|
153
153
|
/** Creates a new compute endpoint in the branch. */
|
|
154
154
|
async createEndpoint(req, options) {
|
|
@@ -186,7 +186,7 @@ export class PostgresClient {
|
|
|
186
186
|
}
|
|
187
187
|
async createEndpointOperation(req, options) {
|
|
188
188
|
const op = await this.createEndpoint(req, options);
|
|
189
|
-
return new CreateEndpointOperation(this,
|
|
189
|
+
return new CreateEndpointOperation(op, (req, options) => this.getOperation(req, options));
|
|
190
190
|
}
|
|
191
191
|
/** Creates a new Lakebase Autoscaling Postgres database project, which contains branches and compute endpoints. */
|
|
192
192
|
async createProject(req, options) {
|
|
@@ -221,7 +221,7 @@ export class PostgresClient {
|
|
|
221
221
|
}
|
|
222
222
|
async createProjectOperation(req, options) {
|
|
223
223
|
const op = await this.createProject(req, options);
|
|
224
|
-
return new CreateProjectOperation(this,
|
|
224
|
+
return new CreateProjectOperation(op, (req, options) => this.getOperation(req, options));
|
|
225
225
|
}
|
|
226
226
|
/** Creates a new Postgres role in the branch. */
|
|
227
227
|
async createRole(req, options) {
|
|
@@ -256,7 +256,7 @@ export class PostgresClient {
|
|
|
256
256
|
}
|
|
257
257
|
async createRoleOperation(req, options) {
|
|
258
258
|
const op = await this.createRole(req, options);
|
|
259
|
-
return new CreateRoleOperation(this,
|
|
259
|
+
return new CreateRoleOperation(op, (req, options) => this.getOperation(req, options));
|
|
260
260
|
}
|
|
261
261
|
/** Create a Synced Table. */
|
|
262
262
|
async createSyncedTable(req, options) {
|
|
@@ -291,7 +291,7 @@ export class PostgresClient {
|
|
|
291
291
|
}
|
|
292
292
|
async createSyncedTableOperation(req, options) {
|
|
293
293
|
const op = await this.createSyncedTable(req, options);
|
|
294
|
-
return new CreateSyncedTableOperation(this,
|
|
294
|
+
return new CreateSyncedTableOperation(op, (req, options) => this.getOperation(req, options));
|
|
295
295
|
}
|
|
296
296
|
/** Deletes the specified database branch. */
|
|
297
297
|
async deleteBranch(req, options) {
|
|
@@ -325,7 +325,7 @@ export class PostgresClient {
|
|
|
325
325
|
}
|
|
326
326
|
async deleteBranchOperation(req, options) {
|
|
327
327
|
const op = await this.deleteBranch(req, options);
|
|
328
|
-
return new DeleteBranchOperation(this,
|
|
328
|
+
return new DeleteBranchOperation(op, (req, options) => this.getOperation(req, options));
|
|
329
329
|
}
|
|
330
330
|
/** Delete a Database Catalog. */
|
|
331
331
|
async deleteCatalog(req, options) {
|
|
@@ -353,7 +353,7 @@ export class PostgresClient {
|
|
|
353
353
|
}
|
|
354
354
|
async deleteCatalogOperation(req, options) {
|
|
355
355
|
const op = await this.deleteCatalog(req, options);
|
|
356
|
-
return new DeleteCatalogOperation(this,
|
|
356
|
+
return new DeleteCatalogOperation(op, (req, options) => this.getOperation(req, options));
|
|
357
357
|
}
|
|
358
358
|
/** Delete a Database. */
|
|
359
359
|
async deleteDatabase(req, options) {
|
|
@@ -381,7 +381,7 @@ export class PostgresClient {
|
|
|
381
381
|
}
|
|
382
382
|
async deleteDatabaseOperation(req, options) {
|
|
383
383
|
const op = await this.deleteDatabase(req, options);
|
|
384
|
-
return new DeleteDatabaseOperation(this,
|
|
384
|
+
return new DeleteDatabaseOperation(op, (req, options) => this.getOperation(req, options));
|
|
385
385
|
}
|
|
386
386
|
/** Deletes the specified compute endpoint. */
|
|
387
387
|
async deleteEndpoint(req, options) {
|
|
@@ -409,7 +409,7 @@ export class PostgresClient {
|
|
|
409
409
|
}
|
|
410
410
|
async deleteEndpointOperation(req, options) {
|
|
411
411
|
const op = await this.deleteEndpoint(req, options);
|
|
412
|
-
return new DeleteEndpointOperation(this,
|
|
412
|
+
return new DeleteEndpointOperation(op, (req, options) => this.getOperation(req, options));
|
|
413
413
|
}
|
|
414
414
|
/** Deletes the specified database project. */
|
|
415
415
|
async deleteProject(req, options) {
|
|
@@ -443,7 +443,7 @@ export class PostgresClient {
|
|
|
443
443
|
}
|
|
444
444
|
async deleteProjectOperation(req, options) {
|
|
445
445
|
const op = await this.deleteProject(req, options);
|
|
446
|
-
return new DeleteProjectOperation(this,
|
|
446
|
+
return new DeleteProjectOperation(op, (req, options) => this.getOperation(req, options));
|
|
447
447
|
}
|
|
448
448
|
/** Deletes the specified Postgres role. */
|
|
449
449
|
async deleteRole(req, options) {
|
|
@@ -477,7 +477,7 @@ export class PostgresClient {
|
|
|
477
477
|
}
|
|
478
478
|
async deleteRoleOperation(req, options) {
|
|
479
479
|
const op = await this.deleteRole(req, options);
|
|
480
|
-
return new DeleteRoleOperation(this,
|
|
480
|
+
return new DeleteRoleOperation(op, (req, options) => this.getOperation(req, options));
|
|
481
481
|
}
|
|
482
482
|
/** Delete a Synced Table. */
|
|
483
483
|
async deleteSyncedTable(req, options) {
|
|
@@ -505,7 +505,7 @@ export class PostgresClient {
|
|
|
505
505
|
}
|
|
506
506
|
async deleteSyncedTableOperation(req, options) {
|
|
507
507
|
const op = await this.deleteSyncedTable(req, options);
|
|
508
|
-
return new DeleteSyncedTableOperation(this,
|
|
508
|
+
return new DeleteSyncedTableOperation(op, (req, options) => this.getOperation(req, options));
|
|
509
509
|
}
|
|
510
510
|
/** Generate OAuth credentials for a Postgres database. */
|
|
511
511
|
async generateDatabaseCredential(req, options) {
|
|
@@ -987,7 +987,7 @@ export class PostgresClient {
|
|
|
987
987
|
}
|
|
988
988
|
async undeleteBranchOperation(req, options) {
|
|
989
989
|
const op = await this.undeleteBranch(req, options);
|
|
990
|
-
return new UndeleteBranchOperation(this,
|
|
990
|
+
return new UndeleteBranchOperation(op, (req, options) => this.getOperation(req, options));
|
|
991
991
|
}
|
|
992
992
|
/** Undeletes a soft-deleted project. */
|
|
993
993
|
async undeleteProject(req, options) {
|
|
@@ -1016,7 +1016,7 @@ export class PostgresClient {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
async undeleteProjectOperation(req, options) {
|
|
1018
1018
|
const op = await this.undeleteProject(req, options);
|
|
1019
|
-
return new UndeleteProjectOperation(this,
|
|
1019
|
+
return new UndeleteProjectOperation(op, (req, options) => this.getOperation(req, options));
|
|
1020
1020
|
}
|
|
1021
1021
|
/** Updates the specified database branch. You can set this branch as the project's default branch, or protect/unprotect it. */
|
|
1022
1022
|
async updateBranch(req, options) {
|
|
@@ -1051,7 +1051,7 @@ export class PostgresClient {
|
|
|
1051
1051
|
}
|
|
1052
1052
|
async updateBranchOperation(req, options) {
|
|
1053
1053
|
const op = await this.updateBranch(req, options);
|
|
1054
|
-
return new UpdateBranchOperation(this,
|
|
1054
|
+
return new UpdateBranchOperation(op, (req, options) => this.getOperation(req, options));
|
|
1055
1055
|
}
|
|
1056
1056
|
/** Update a Database. */
|
|
1057
1057
|
async updateDatabase(req, options) {
|
|
@@ -1086,7 +1086,7 @@ export class PostgresClient {
|
|
|
1086
1086
|
}
|
|
1087
1087
|
async updateDatabaseOperation(req, options) {
|
|
1088
1088
|
const op = await this.updateDatabase(req, options);
|
|
1089
|
-
return new UpdateDatabaseOperation(this,
|
|
1089
|
+
return new UpdateDatabaseOperation(op, (req, options) => this.getOperation(req, options));
|
|
1090
1090
|
}
|
|
1091
1091
|
/** Updates the specified compute endpoint. You can update autoscaling limits, suspend timeout, or enable/disable the compute endpoint. */
|
|
1092
1092
|
async updateEndpoint(req, options) {
|
|
@@ -1121,7 +1121,7 @@ export class PostgresClient {
|
|
|
1121
1121
|
}
|
|
1122
1122
|
async updateEndpointOperation(req, options) {
|
|
1123
1123
|
const op = await this.updateEndpoint(req, options);
|
|
1124
|
-
return new UpdateEndpointOperation(this,
|
|
1124
|
+
return new UpdateEndpointOperation(op, (req, options) => this.getOperation(req, options));
|
|
1125
1125
|
}
|
|
1126
1126
|
/** Updates the specified database project. */
|
|
1127
1127
|
async updateProject(req, options) {
|
|
@@ -1156,7 +1156,7 @@ export class PostgresClient {
|
|
|
1156
1156
|
}
|
|
1157
1157
|
async updateProjectOperation(req, options) {
|
|
1158
1158
|
const op = await this.updateProject(req, options);
|
|
1159
|
-
return new UpdateProjectOperation(this,
|
|
1159
|
+
return new UpdateProjectOperation(op, (req, options) => this.getOperation(req, options));
|
|
1160
1160
|
}
|
|
1161
1161
|
/** Update a role for a branch. */
|
|
1162
1162
|
async updateRole(req, options) {
|
|
@@ -1191,15 +1191,15 @@ export class PostgresClient {
|
|
|
1191
1191
|
}
|
|
1192
1192
|
async updateRoleOperation(req, options) {
|
|
1193
1193
|
const op = await this.updateRole(req, options);
|
|
1194
|
-
return new UpdateRoleOperation(this,
|
|
1194
|
+
return new UpdateRoleOperation(op, (req, options) => this.getOperation(req, options));
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
1197
|
export class CreateBranchOperation {
|
|
1198
|
-
client;
|
|
1199
1198
|
operation;
|
|
1200
|
-
|
|
1201
|
-
|
|
1199
|
+
getOperation;
|
|
1200
|
+
constructor(operation, getOperation) {
|
|
1202
1201
|
this.operation = operation;
|
|
1202
|
+
this.getOperation = getOperation;
|
|
1203
1203
|
}
|
|
1204
1204
|
/** Returns the server-assigned name of the long-running operation. */
|
|
1205
1205
|
name() {
|
|
@@ -1222,7 +1222,7 @@ export class CreateBranchOperation {
|
|
|
1222
1222
|
async wait(options) {
|
|
1223
1223
|
let result;
|
|
1224
1224
|
const call = async (callSignal) => {
|
|
1225
|
-
const op = await this.
|
|
1225
|
+
const op = await this.getOperation({
|
|
1226
1226
|
name: this.operation.name,
|
|
1227
1227
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
1228
1228
|
this.operation = op;
|
|
@@ -1255,17 +1255,17 @@ export class CreateBranchOperation {
|
|
|
1255
1255
|
}
|
|
1256
1256
|
/** Checks whether the operation has completed */
|
|
1257
1257
|
async done(options) {
|
|
1258
|
-
const op = await this.
|
|
1258
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
1259
1259
|
this.operation = op;
|
|
1260
1260
|
return op.done;
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
1263
1263
|
export class CreateCatalogOperation {
|
|
1264
|
-
client;
|
|
1265
1264
|
operation;
|
|
1266
|
-
|
|
1267
|
-
|
|
1265
|
+
getOperation;
|
|
1266
|
+
constructor(operation, getOperation) {
|
|
1268
1267
|
this.operation = operation;
|
|
1268
|
+
this.getOperation = getOperation;
|
|
1269
1269
|
}
|
|
1270
1270
|
/** Returns the server-assigned name of the long-running operation. */
|
|
1271
1271
|
name() {
|
|
@@ -1288,7 +1288,7 @@ export class CreateCatalogOperation {
|
|
|
1288
1288
|
async wait(options) {
|
|
1289
1289
|
let result;
|
|
1290
1290
|
const call = async (callSignal) => {
|
|
1291
|
-
const op = await this.
|
|
1291
|
+
const op = await this.getOperation({
|
|
1292
1292
|
name: this.operation.name,
|
|
1293
1293
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
1294
1294
|
this.operation = op;
|
|
@@ -1321,17 +1321,17 @@ export class CreateCatalogOperation {
|
|
|
1321
1321
|
}
|
|
1322
1322
|
/** Checks whether the operation has completed */
|
|
1323
1323
|
async done(options) {
|
|
1324
|
-
const op = await this.
|
|
1324
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
1325
1325
|
this.operation = op;
|
|
1326
1326
|
return op.done;
|
|
1327
1327
|
}
|
|
1328
1328
|
}
|
|
1329
1329
|
export class CreateDatabaseOperation {
|
|
1330
|
-
client;
|
|
1331
1330
|
operation;
|
|
1332
|
-
|
|
1333
|
-
|
|
1331
|
+
getOperation;
|
|
1332
|
+
constructor(operation, getOperation) {
|
|
1334
1333
|
this.operation = operation;
|
|
1334
|
+
this.getOperation = getOperation;
|
|
1335
1335
|
}
|
|
1336
1336
|
/** Returns the server-assigned name of the long-running operation. */
|
|
1337
1337
|
name() {
|
|
@@ -1354,7 +1354,7 @@ export class CreateDatabaseOperation {
|
|
|
1354
1354
|
async wait(options) {
|
|
1355
1355
|
let result;
|
|
1356
1356
|
const call = async (callSignal) => {
|
|
1357
|
-
const op = await this.
|
|
1357
|
+
const op = await this.getOperation({
|
|
1358
1358
|
name: this.operation.name,
|
|
1359
1359
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
1360
1360
|
this.operation = op;
|
|
@@ -1387,17 +1387,17 @@ export class CreateDatabaseOperation {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
/** Checks whether the operation has completed */
|
|
1389
1389
|
async done(options) {
|
|
1390
|
-
const op = await this.
|
|
1390
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
1391
1391
|
this.operation = op;
|
|
1392
1392
|
return op.done;
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
1395
|
export class CreateEndpointOperation {
|
|
1396
|
-
client;
|
|
1397
1396
|
operation;
|
|
1398
|
-
|
|
1399
|
-
|
|
1397
|
+
getOperation;
|
|
1398
|
+
constructor(operation, getOperation) {
|
|
1400
1399
|
this.operation = operation;
|
|
1400
|
+
this.getOperation = getOperation;
|
|
1401
1401
|
}
|
|
1402
1402
|
/** Returns the server-assigned name of the long-running operation. */
|
|
1403
1403
|
name() {
|
|
@@ -1420,7 +1420,7 @@ export class CreateEndpointOperation {
|
|
|
1420
1420
|
async wait(options) {
|
|
1421
1421
|
let result;
|
|
1422
1422
|
const call = async (callSignal) => {
|
|
1423
|
-
const op = await this.
|
|
1423
|
+
const op = await this.getOperation({
|
|
1424
1424
|
name: this.operation.name,
|
|
1425
1425
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
1426
1426
|
this.operation = op;
|
|
@@ -1453,17 +1453,17 @@ export class CreateEndpointOperation {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
/** Checks whether the operation has completed */
|
|
1455
1455
|
async done(options) {
|
|
1456
|
-
const op = await this.
|
|
1456
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
1457
1457
|
this.operation = op;
|
|
1458
1458
|
return op.done;
|
|
1459
1459
|
}
|
|
1460
1460
|
}
|
|
1461
1461
|
export class CreateProjectOperation {
|
|
1462
|
-
client;
|
|
1463
1462
|
operation;
|
|
1464
|
-
|
|
1465
|
-
|
|
1463
|
+
getOperation;
|
|
1464
|
+
constructor(operation, getOperation) {
|
|
1466
1465
|
this.operation = operation;
|
|
1466
|
+
this.getOperation = getOperation;
|
|
1467
1467
|
}
|
|
1468
1468
|
/** Returns the server-assigned name of the long-running operation. */
|
|
1469
1469
|
name() {
|
|
@@ -1486,7 +1486,7 @@ export class CreateProjectOperation {
|
|
|
1486
1486
|
async wait(options) {
|
|
1487
1487
|
let result;
|
|
1488
1488
|
const call = async (callSignal) => {
|
|
1489
|
-
const op = await this.
|
|
1489
|
+
const op = await this.getOperation({
|
|
1490
1490
|
name: this.operation.name,
|
|
1491
1491
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
1492
1492
|
this.operation = op;
|
|
@@ -1519,17 +1519,17 @@ export class CreateProjectOperation {
|
|
|
1519
1519
|
}
|
|
1520
1520
|
/** Checks whether the operation has completed */
|
|
1521
1521
|
async done(options) {
|
|
1522
|
-
const op = await this.
|
|
1522
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
1523
1523
|
this.operation = op;
|
|
1524
1524
|
return op.done;
|
|
1525
1525
|
}
|
|
1526
1526
|
}
|
|
1527
1527
|
export class CreateRoleOperation {
|
|
1528
|
-
client;
|
|
1529
1528
|
operation;
|
|
1530
|
-
|
|
1531
|
-
|
|
1529
|
+
getOperation;
|
|
1530
|
+
constructor(operation, getOperation) {
|
|
1532
1531
|
this.operation = operation;
|
|
1532
|
+
this.getOperation = getOperation;
|
|
1533
1533
|
}
|
|
1534
1534
|
/** Returns the server-assigned name of the long-running operation. */
|
|
1535
1535
|
name() {
|
|
@@ -1552,7 +1552,7 @@ export class CreateRoleOperation {
|
|
|
1552
1552
|
async wait(options) {
|
|
1553
1553
|
let result;
|
|
1554
1554
|
const call = async (callSignal) => {
|
|
1555
|
-
const op = await this.
|
|
1555
|
+
const op = await this.getOperation({
|
|
1556
1556
|
name: this.operation.name,
|
|
1557
1557
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
1558
1558
|
this.operation = op;
|
|
@@ -1585,17 +1585,17 @@ export class CreateRoleOperation {
|
|
|
1585
1585
|
}
|
|
1586
1586
|
/** Checks whether the operation has completed */
|
|
1587
1587
|
async done(options) {
|
|
1588
|
-
const op = await this.
|
|
1588
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
1589
1589
|
this.operation = op;
|
|
1590
1590
|
return op.done;
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
1593
1593
|
export class CreateSyncedTableOperation {
|
|
1594
|
-
client;
|
|
1595
1594
|
operation;
|
|
1596
|
-
|
|
1597
|
-
|
|
1595
|
+
getOperation;
|
|
1596
|
+
constructor(operation, getOperation) {
|
|
1598
1597
|
this.operation = operation;
|
|
1598
|
+
this.getOperation = getOperation;
|
|
1599
1599
|
}
|
|
1600
1600
|
/** Returns the server-assigned name of the long-running operation. */
|
|
1601
1601
|
name() {
|
|
@@ -1618,7 +1618,7 @@ export class CreateSyncedTableOperation {
|
|
|
1618
1618
|
async wait(options) {
|
|
1619
1619
|
let result;
|
|
1620
1620
|
const call = async (callSignal) => {
|
|
1621
|
-
const op = await this.
|
|
1621
|
+
const op = await this.getOperation({
|
|
1622
1622
|
name: this.operation.name,
|
|
1623
1623
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
1624
1624
|
this.operation = op;
|
|
@@ -1653,17 +1653,17 @@ export class CreateSyncedTableOperation {
|
|
|
1653
1653
|
}
|
|
1654
1654
|
/** Checks whether the operation has completed */
|
|
1655
1655
|
async done(options) {
|
|
1656
|
-
const op = await this.
|
|
1656
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
1657
1657
|
this.operation = op;
|
|
1658
1658
|
return op.done;
|
|
1659
1659
|
}
|
|
1660
1660
|
}
|
|
1661
1661
|
export class DeleteBranchOperation {
|
|
1662
|
-
client;
|
|
1663
1662
|
operation;
|
|
1664
|
-
|
|
1665
|
-
|
|
1663
|
+
getOperation;
|
|
1664
|
+
constructor(operation, getOperation) {
|
|
1666
1665
|
this.operation = operation;
|
|
1666
|
+
this.getOperation = getOperation;
|
|
1667
1667
|
}
|
|
1668
1668
|
/** Returns the server-assigned name of the long-running operation. */
|
|
1669
1669
|
name() {
|
|
@@ -1685,7 +1685,7 @@ export class DeleteBranchOperation {
|
|
|
1685
1685
|
*/
|
|
1686
1686
|
async wait(options) {
|
|
1687
1687
|
const call = async (callSignal) => {
|
|
1688
|
-
const op = await this.
|
|
1688
|
+
const op = await this.getOperation({
|
|
1689
1689
|
name: this.operation.name,
|
|
1690
1690
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
1691
1691
|
this.operation = op;
|
|
@@ -1710,17 +1710,17 @@ export class DeleteBranchOperation {
|
|
|
1710
1710
|
}
|
|
1711
1711
|
/** Checks whether the operation has completed */
|
|
1712
1712
|
async done(options) {
|
|
1713
|
-
const op = await this.
|
|
1713
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
1714
1714
|
this.operation = op;
|
|
1715
1715
|
return op.done;
|
|
1716
1716
|
}
|
|
1717
1717
|
}
|
|
1718
1718
|
export class DeleteCatalogOperation {
|
|
1719
|
-
client;
|
|
1720
1719
|
operation;
|
|
1721
|
-
|
|
1722
|
-
|
|
1720
|
+
getOperation;
|
|
1721
|
+
constructor(operation, getOperation) {
|
|
1723
1722
|
this.operation = operation;
|
|
1723
|
+
this.getOperation = getOperation;
|
|
1724
1724
|
}
|
|
1725
1725
|
/** Returns the server-assigned name of the long-running operation. */
|
|
1726
1726
|
name() {
|
|
@@ -1742,7 +1742,7 @@ export class DeleteCatalogOperation {
|
|
|
1742
1742
|
*/
|
|
1743
1743
|
async wait(options) {
|
|
1744
1744
|
const call = async (callSignal) => {
|
|
1745
|
-
const op = await this.
|
|
1745
|
+
const op = await this.getOperation({
|
|
1746
1746
|
name: this.operation.name,
|
|
1747
1747
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
1748
1748
|
this.operation = op;
|
|
@@ -1767,17 +1767,17 @@ export class DeleteCatalogOperation {
|
|
|
1767
1767
|
}
|
|
1768
1768
|
/** Checks whether the operation has completed */
|
|
1769
1769
|
async done(options) {
|
|
1770
|
-
const op = await this.
|
|
1770
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
1771
1771
|
this.operation = op;
|
|
1772
1772
|
return op.done;
|
|
1773
1773
|
}
|
|
1774
1774
|
}
|
|
1775
1775
|
export class DeleteDatabaseOperation {
|
|
1776
|
-
client;
|
|
1777
1776
|
operation;
|
|
1778
|
-
|
|
1779
|
-
|
|
1777
|
+
getOperation;
|
|
1778
|
+
constructor(operation, getOperation) {
|
|
1780
1779
|
this.operation = operation;
|
|
1780
|
+
this.getOperation = getOperation;
|
|
1781
1781
|
}
|
|
1782
1782
|
/** Returns the server-assigned name of the long-running operation. */
|
|
1783
1783
|
name() {
|
|
@@ -1799,7 +1799,7 @@ export class DeleteDatabaseOperation {
|
|
|
1799
1799
|
*/
|
|
1800
1800
|
async wait(options) {
|
|
1801
1801
|
const call = async (callSignal) => {
|
|
1802
|
-
const op = await this.
|
|
1802
|
+
const op = await this.getOperation({
|
|
1803
1803
|
name: this.operation.name,
|
|
1804
1804
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
1805
1805
|
this.operation = op;
|
|
@@ -1824,17 +1824,17 @@ export class DeleteDatabaseOperation {
|
|
|
1824
1824
|
}
|
|
1825
1825
|
/** Checks whether the operation has completed */
|
|
1826
1826
|
async done(options) {
|
|
1827
|
-
const op = await this.
|
|
1827
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
1828
1828
|
this.operation = op;
|
|
1829
1829
|
return op.done;
|
|
1830
1830
|
}
|
|
1831
1831
|
}
|
|
1832
1832
|
export class DeleteEndpointOperation {
|
|
1833
|
-
client;
|
|
1834
1833
|
operation;
|
|
1835
|
-
|
|
1836
|
-
|
|
1834
|
+
getOperation;
|
|
1835
|
+
constructor(operation, getOperation) {
|
|
1837
1836
|
this.operation = operation;
|
|
1837
|
+
this.getOperation = getOperation;
|
|
1838
1838
|
}
|
|
1839
1839
|
/** Returns the server-assigned name of the long-running operation. */
|
|
1840
1840
|
name() {
|
|
@@ -1856,7 +1856,7 @@ export class DeleteEndpointOperation {
|
|
|
1856
1856
|
*/
|
|
1857
1857
|
async wait(options) {
|
|
1858
1858
|
const call = async (callSignal) => {
|
|
1859
|
-
const op = await this.
|
|
1859
|
+
const op = await this.getOperation({
|
|
1860
1860
|
name: this.operation.name,
|
|
1861
1861
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
1862
1862
|
this.operation = op;
|
|
@@ -1881,17 +1881,17 @@ export class DeleteEndpointOperation {
|
|
|
1881
1881
|
}
|
|
1882
1882
|
/** Checks whether the operation has completed */
|
|
1883
1883
|
async done(options) {
|
|
1884
|
-
const op = await this.
|
|
1884
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
1885
1885
|
this.operation = op;
|
|
1886
1886
|
return op.done;
|
|
1887
1887
|
}
|
|
1888
1888
|
}
|
|
1889
1889
|
export class DeleteProjectOperation {
|
|
1890
|
-
client;
|
|
1891
1890
|
operation;
|
|
1892
|
-
|
|
1893
|
-
|
|
1891
|
+
getOperation;
|
|
1892
|
+
constructor(operation, getOperation) {
|
|
1894
1893
|
this.operation = operation;
|
|
1894
|
+
this.getOperation = getOperation;
|
|
1895
1895
|
}
|
|
1896
1896
|
/** Returns the server-assigned name of the long-running operation. */
|
|
1897
1897
|
name() {
|
|
@@ -1913,7 +1913,7 @@ export class DeleteProjectOperation {
|
|
|
1913
1913
|
*/
|
|
1914
1914
|
async wait(options) {
|
|
1915
1915
|
const call = async (callSignal) => {
|
|
1916
|
-
const op = await this.
|
|
1916
|
+
const op = await this.getOperation({
|
|
1917
1917
|
name: this.operation.name,
|
|
1918
1918
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
1919
1919
|
this.operation = op;
|
|
@@ -1938,17 +1938,17 @@ export class DeleteProjectOperation {
|
|
|
1938
1938
|
}
|
|
1939
1939
|
/** Checks whether the operation has completed */
|
|
1940
1940
|
async done(options) {
|
|
1941
|
-
const op = await this.
|
|
1941
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
1942
1942
|
this.operation = op;
|
|
1943
1943
|
return op.done;
|
|
1944
1944
|
}
|
|
1945
1945
|
}
|
|
1946
1946
|
export class DeleteRoleOperation {
|
|
1947
|
-
client;
|
|
1948
1947
|
operation;
|
|
1949
|
-
|
|
1950
|
-
|
|
1948
|
+
getOperation;
|
|
1949
|
+
constructor(operation, getOperation) {
|
|
1951
1950
|
this.operation = operation;
|
|
1951
|
+
this.getOperation = getOperation;
|
|
1952
1952
|
}
|
|
1953
1953
|
/** Returns the server-assigned name of the long-running operation. */
|
|
1954
1954
|
name() {
|
|
@@ -1970,7 +1970,7 @@ export class DeleteRoleOperation {
|
|
|
1970
1970
|
*/
|
|
1971
1971
|
async wait(options) {
|
|
1972
1972
|
const call = async (callSignal) => {
|
|
1973
|
-
const op = await this.
|
|
1973
|
+
const op = await this.getOperation({
|
|
1974
1974
|
name: this.operation.name,
|
|
1975
1975
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
1976
1976
|
this.operation = op;
|
|
@@ -1995,17 +1995,17 @@ export class DeleteRoleOperation {
|
|
|
1995
1995
|
}
|
|
1996
1996
|
/** Checks whether the operation has completed */
|
|
1997
1997
|
async done(options) {
|
|
1998
|
-
const op = await this.
|
|
1998
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
1999
1999
|
this.operation = op;
|
|
2000
2000
|
return op.done;
|
|
2001
2001
|
}
|
|
2002
2002
|
}
|
|
2003
2003
|
export class DeleteSyncedTableOperation {
|
|
2004
|
-
client;
|
|
2005
2004
|
operation;
|
|
2006
|
-
|
|
2007
|
-
|
|
2005
|
+
getOperation;
|
|
2006
|
+
constructor(operation, getOperation) {
|
|
2008
2007
|
this.operation = operation;
|
|
2008
|
+
this.getOperation = getOperation;
|
|
2009
2009
|
}
|
|
2010
2010
|
/** Returns the server-assigned name of the long-running operation. */
|
|
2011
2011
|
name() {
|
|
@@ -2027,7 +2027,7 @@ export class DeleteSyncedTableOperation {
|
|
|
2027
2027
|
*/
|
|
2028
2028
|
async wait(options) {
|
|
2029
2029
|
const call = async (callSignal) => {
|
|
2030
|
-
const op = await this.
|
|
2030
|
+
const op = await this.getOperation({
|
|
2031
2031
|
name: this.operation.name,
|
|
2032
2032
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
2033
2033
|
this.operation = op;
|
|
@@ -2052,17 +2052,17 @@ export class DeleteSyncedTableOperation {
|
|
|
2052
2052
|
}
|
|
2053
2053
|
/** Checks whether the operation has completed */
|
|
2054
2054
|
async done(options) {
|
|
2055
|
-
const op = await this.
|
|
2055
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
2056
2056
|
this.operation = op;
|
|
2057
2057
|
return op.done;
|
|
2058
2058
|
}
|
|
2059
2059
|
}
|
|
2060
2060
|
export class UndeleteBranchOperation {
|
|
2061
|
-
client;
|
|
2062
2061
|
operation;
|
|
2063
|
-
|
|
2064
|
-
|
|
2062
|
+
getOperation;
|
|
2063
|
+
constructor(operation, getOperation) {
|
|
2065
2064
|
this.operation = operation;
|
|
2065
|
+
this.getOperation = getOperation;
|
|
2066
2066
|
}
|
|
2067
2067
|
/** Returns the server-assigned name of the long-running operation. */
|
|
2068
2068
|
name() {
|
|
@@ -2084,7 +2084,7 @@ export class UndeleteBranchOperation {
|
|
|
2084
2084
|
*/
|
|
2085
2085
|
async wait(options) {
|
|
2086
2086
|
const call = async (callSignal) => {
|
|
2087
|
-
const op = await this.
|
|
2087
|
+
const op = await this.getOperation({
|
|
2088
2088
|
name: this.operation.name,
|
|
2089
2089
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
2090
2090
|
this.operation = op;
|
|
@@ -2109,17 +2109,17 @@ export class UndeleteBranchOperation {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
/** Checks whether the operation has completed */
|
|
2111
2111
|
async done(options) {
|
|
2112
|
-
const op = await this.
|
|
2112
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
2113
2113
|
this.operation = op;
|
|
2114
2114
|
return op.done;
|
|
2115
2115
|
}
|
|
2116
2116
|
}
|
|
2117
2117
|
export class UndeleteProjectOperation {
|
|
2118
|
-
client;
|
|
2119
2118
|
operation;
|
|
2120
|
-
|
|
2121
|
-
|
|
2119
|
+
getOperation;
|
|
2120
|
+
constructor(operation, getOperation) {
|
|
2122
2121
|
this.operation = operation;
|
|
2122
|
+
this.getOperation = getOperation;
|
|
2123
2123
|
}
|
|
2124
2124
|
/** Returns the server-assigned name of the long-running operation. */
|
|
2125
2125
|
name() {
|
|
@@ -2141,7 +2141,7 @@ export class UndeleteProjectOperation {
|
|
|
2141
2141
|
*/
|
|
2142
2142
|
async wait(options) {
|
|
2143
2143
|
const call = async (callSignal) => {
|
|
2144
|
-
const op = await this.
|
|
2144
|
+
const op = await this.getOperation({
|
|
2145
2145
|
name: this.operation.name,
|
|
2146
2146
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
2147
2147
|
this.operation = op;
|
|
@@ -2166,17 +2166,17 @@ export class UndeleteProjectOperation {
|
|
|
2166
2166
|
}
|
|
2167
2167
|
/** Checks whether the operation has completed */
|
|
2168
2168
|
async done(options) {
|
|
2169
|
-
const op = await this.
|
|
2169
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
2170
2170
|
this.operation = op;
|
|
2171
2171
|
return op.done;
|
|
2172
2172
|
}
|
|
2173
2173
|
}
|
|
2174
2174
|
export class UpdateBranchOperation {
|
|
2175
|
-
client;
|
|
2176
2175
|
operation;
|
|
2177
|
-
|
|
2178
|
-
|
|
2176
|
+
getOperation;
|
|
2177
|
+
constructor(operation, getOperation) {
|
|
2179
2178
|
this.operation = operation;
|
|
2179
|
+
this.getOperation = getOperation;
|
|
2180
2180
|
}
|
|
2181
2181
|
/** Returns the server-assigned name of the long-running operation. */
|
|
2182
2182
|
name() {
|
|
@@ -2199,7 +2199,7 @@ export class UpdateBranchOperation {
|
|
|
2199
2199
|
async wait(options) {
|
|
2200
2200
|
let result;
|
|
2201
2201
|
const call = async (callSignal) => {
|
|
2202
|
-
const op = await this.
|
|
2202
|
+
const op = await this.getOperation({
|
|
2203
2203
|
name: this.operation.name,
|
|
2204
2204
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
2205
2205
|
this.operation = op;
|
|
@@ -2232,17 +2232,17 @@ export class UpdateBranchOperation {
|
|
|
2232
2232
|
}
|
|
2233
2233
|
/** Checks whether the operation has completed */
|
|
2234
2234
|
async done(options) {
|
|
2235
|
-
const op = await this.
|
|
2235
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
2236
2236
|
this.operation = op;
|
|
2237
2237
|
return op.done;
|
|
2238
2238
|
}
|
|
2239
2239
|
}
|
|
2240
2240
|
export class UpdateDatabaseOperation {
|
|
2241
|
-
client;
|
|
2242
2241
|
operation;
|
|
2243
|
-
|
|
2244
|
-
|
|
2242
|
+
getOperation;
|
|
2243
|
+
constructor(operation, getOperation) {
|
|
2245
2244
|
this.operation = operation;
|
|
2245
|
+
this.getOperation = getOperation;
|
|
2246
2246
|
}
|
|
2247
2247
|
/** Returns the server-assigned name of the long-running operation. */
|
|
2248
2248
|
name() {
|
|
@@ -2265,7 +2265,7 @@ export class UpdateDatabaseOperation {
|
|
|
2265
2265
|
async wait(options) {
|
|
2266
2266
|
let result;
|
|
2267
2267
|
const call = async (callSignal) => {
|
|
2268
|
-
const op = await this.
|
|
2268
|
+
const op = await this.getOperation({
|
|
2269
2269
|
name: this.operation.name,
|
|
2270
2270
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
2271
2271
|
this.operation = op;
|
|
@@ -2298,17 +2298,17 @@ export class UpdateDatabaseOperation {
|
|
|
2298
2298
|
}
|
|
2299
2299
|
/** Checks whether the operation has completed */
|
|
2300
2300
|
async done(options) {
|
|
2301
|
-
const op = await this.
|
|
2301
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
2302
2302
|
this.operation = op;
|
|
2303
2303
|
return op.done;
|
|
2304
2304
|
}
|
|
2305
2305
|
}
|
|
2306
2306
|
export class UpdateEndpointOperation {
|
|
2307
|
-
client;
|
|
2308
2307
|
operation;
|
|
2309
|
-
|
|
2310
|
-
|
|
2308
|
+
getOperation;
|
|
2309
|
+
constructor(operation, getOperation) {
|
|
2311
2310
|
this.operation = operation;
|
|
2311
|
+
this.getOperation = getOperation;
|
|
2312
2312
|
}
|
|
2313
2313
|
/** Returns the server-assigned name of the long-running operation. */
|
|
2314
2314
|
name() {
|
|
@@ -2331,7 +2331,7 @@ export class UpdateEndpointOperation {
|
|
|
2331
2331
|
async wait(options) {
|
|
2332
2332
|
let result;
|
|
2333
2333
|
const call = async (callSignal) => {
|
|
2334
|
-
const op = await this.
|
|
2334
|
+
const op = await this.getOperation({
|
|
2335
2335
|
name: this.operation.name,
|
|
2336
2336
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
2337
2337
|
this.operation = op;
|
|
@@ -2364,17 +2364,17 @@ export class UpdateEndpointOperation {
|
|
|
2364
2364
|
}
|
|
2365
2365
|
/** Checks whether the operation has completed */
|
|
2366
2366
|
async done(options) {
|
|
2367
|
-
const op = await this.
|
|
2367
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
2368
2368
|
this.operation = op;
|
|
2369
2369
|
return op.done;
|
|
2370
2370
|
}
|
|
2371
2371
|
}
|
|
2372
2372
|
export class UpdateProjectOperation {
|
|
2373
|
-
client;
|
|
2374
2373
|
operation;
|
|
2375
|
-
|
|
2376
|
-
|
|
2374
|
+
getOperation;
|
|
2375
|
+
constructor(operation, getOperation) {
|
|
2377
2376
|
this.operation = operation;
|
|
2377
|
+
this.getOperation = getOperation;
|
|
2378
2378
|
}
|
|
2379
2379
|
/** Returns the server-assigned name of the long-running operation. */
|
|
2380
2380
|
name() {
|
|
@@ -2397,7 +2397,7 @@ export class UpdateProjectOperation {
|
|
|
2397
2397
|
async wait(options) {
|
|
2398
2398
|
let result;
|
|
2399
2399
|
const call = async (callSignal) => {
|
|
2400
|
-
const op = await this.
|
|
2400
|
+
const op = await this.getOperation({
|
|
2401
2401
|
name: this.operation.name,
|
|
2402
2402
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
2403
2403
|
this.operation = op;
|
|
@@ -2430,17 +2430,17 @@ export class UpdateProjectOperation {
|
|
|
2430
2430
|
}
|
|
2431
2431
|
/** Checks whether the operation has completed */
|
|
2432
2432
|
async done(options) {
|
|
2433
|
-
const op = await this.
|
|
2433
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
2434
2434
|
this.operation = op;
|
|
2435
2435
|
return op.done;
|
|
2436
2436
|
}
|
|
2437
2437
|
}
|
|
2438
2438
|
export class UpdateRoleOperation {
|
|
2439
|
-
client;
|
|
2440
2439
|
operation;
|
|
2441
|
-
|
|
2442
|
-
|
|
2440
|
+
getOperation;
|
|
2441
|
+
constructor(operation, getOperation) {
|
|
2443
2442
|
this.operation = operation;
|
|
2443
|
+
this.getOperation = getOperation;
|
|
2444
2444
|
}
|
|
2445
2445
|
/** Returns the server-assigned name of the long-running operation. */
|
|
2446
2446
|
name() {
|
|
@@ -2463,7 +2463,7 @@ export class UpdateRoleOperation {
|
|
|
2463
2463
|
async wait(options) {
|
|
2464
2464
|
let result;
|
|
2465
2465
|
const call = async (callSignal) => {
|
|
2466
|
-
const op = await this.
|
|
2466
|
+
const op = await this.getOperation({
|
|
2467
2467
|
name: this.operation.name,
|
|
2468
2468
|
}, callSignal !== undefined ? { signal: callSignal } : undefined);
|
|
2469
2469
|
this.operation = op;
|
|
@@ -2496,7 +2496,7 @@ export class UpdateRoleOperation {
|
|
|
2496
2496
|
}
|
|
2497
2497
|
/** Checks whether the operation has completed */
|
|
2498
2498
|
async done(options) {
|
|
2499
|
-
const op = await this.
|
|
2499
|
+
const op = await this.getOperation({ name: this.operation.name }, options);
|
|
2500
2500
|
this.operation = op;
|
|
2501
2501
|
return op.done;
|
|
2502
2502
|
}
|