@google-cloud/spanner-api 0.2.0 → 0.4.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,2DAA2D;AAC3D,gDAAgD;AAChD,qDAAqD;;;AAErD,2BAA2B;AAUnB,gBAAE;AARV,MAAM,mBAAmB,GAAG,EAAE,CAAC,mBAAmB,CAAC;AAQvC,kDAAmB;AAN/B,MAAM,mBAAmB,GAAG,EAAE,CAAC,mBAAmB,CAAC;AAMlB,kDAAmB;AAJpD,MAAM,aAAa,GAAG,EAAE,CAAC,aAAa,CAAC;AAIe,sCAAa;AAFnE,MAAM,0BAA0B,GAAG,EAAE,CAAC,0BAA0B,CAAC;AAEI,gEAA0B;AAC/F,kBAAe,EAAC,EAAE,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,aAAa,EAAE,0BAA0B,EAAC,CAAC;AACzG,2CAA2C;AACnC,wBAAM"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,2DAA2D;AAC3D,gDAAgD;AAChD,qDAAqD;;;AAErD,2BAA2B;AAWnB,gBAAE;AATV,MAAM,mBAAmB,GAAG,EAAE,CAAC,mBAAmB,CAAC;AASvC,kDAAmB;AAP/B,MAAM,mBAAmB,GAAG,EAAE,CAAC,mBAAmB,CAAC;AAOlB,kDAAmB;AALpD,MAAM,aAAa,GAAG,EAAE,CAAC,aAAa,CAAC;AAKe,sCAAa;AAHnE,MAAM,0BAA0B,GAAG,EAAE,CAAC,0BAA0B,CAAC;AAGI,gEAA0B;AAC/F,kBAAe,EAAC,EAAE,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,aAAa,EAAE,0BAA0B,EAAC,CAAC;AACzG,2CAA2C;AACnC,wBAAM"}
@@ -332,7 +332,7 @@ class DatabaseAdminClient {
332
332
  'internalUpdateGraphOperation',
333
333
  ];
334
334
  for (const methodName of databaseAdminStubMethods) {
335
- const callPromise = this.databaseAdminStub.then((stub) => (...args) => {
335
+ const callPromise = this.databaseAdminStub.then(stub => (...args) => {
336
336
  if (this._terminated) {
337
337
  return Promise.reject('The client has already been closed.');
338
338
  }
@@ -429,7 +429,7 @@ class DatabaseAdminClient {
429
429
  this._gaxModule.routingHeader.fromParams({
430
430
  name: request.name ?? '',
431
431
  });
432
- this.initialize().catch((err) => {
432
+ this.initialize().catch(err => {
433
433
  throw err;
434
434
  });
435
435
  this._log.info('getDatabase request %j', request);
@@ -472,7 +472,7 @@ class DatabaseAdminClient {
472
472
  this._gaxModule.routingHeader.fromParams({
473
473
  database: request.database ?? '',
474
474
  });
475
- this.initialize().catch((err) => {
475
+ this.initialize().catch(err => {
476
476
  throw err;
477
477
  });
478
478
  this._log.info('dropDatabase request %j', request);
@@ -515,7 +515,7 @@ class DatabaseAdminClient {
515
515
  this._gaxModule.routingHeader.fromParams({
516
516
  database: request.database ?? '',
517
517
  });
518
- this.initialize().catch((err) => {
518
+ this.initialize().catch(err => {
519
519
  throw err;
520
520
  });
521
521
  this._log.info('getDatabaseDdl request %j', request);
@@ -558,7 +558,7 @@ class DatabaseAdminClient {
558
558
  this._gaxModule.routingHeader.fromParams({
559
559
  resource: request.resource ?? '',
560
560
  });
561
- this.initialize().catch((err) => {
561
+ this.initialize().catch(err => {
562
562
  throw err;
563
563
  });
564
564
  this._log.info('setIamPolicy request %j', request);
@@ -601,7 +601,7 @@ class DatabaseAdminClient {
601
601
  this._gaxModule.routingHeader.fromParams({
602
602
  resource: request.resource ?? '',
603
603
  });
604
- this.initialize().catch((err) => {
604
+ this.initialize().catch(err => {
605
605
  throw err;
606
606
  });
607
607
  this._log.info('getIamPolicy request %j', request);
@@ -644,7 +644,7 @@ class DatabaseAdminClient {
644
644
  this._gaxModule.routingHeader.fromParams({
645
645
  resource: request.resource ?? '',
646
646
  });
647
- this.initialize().catch((err) => {
647
+ this.initialize().catch(err => {
648
648
  throw err;
649
649
  });
650
650
  this._log.info('testIamPermissions request %j', request);
@@ -687,7 +687,7 @@ class DatabaseAdminClient {
687
687
  this._gaxModule.routingHeader.fromParams({
688
688
  name: request.name ?? '',
689
689
  });
690
- this.initialize().catch((err) => {
690
+ this.initialize().catch(err => {
691
691
  throw err;
692
692
  });
693
693
  this._log.info('getBackup request %j', request);
@@ -730,7 +730,7 @@ class DatabaseAdminClient {
730
730
  this._gaxModule.routingHeader.fromParams({
731
731
  'backup.name': request.backup.name ?? '',
732
732
  });
733
- this.initialize().catch((err) => {
733
+ this.initialize().catch(err => {
734
734
  throw err;
735
735
  });
736
736
  this._log.info('updateBackup request %j', request);
@@ -773,7 +773,7 @@ class DatabaseAdminClient {
773
773
  this._gaxModule.routingHeader.fromParams({
774
774
  name: request.name ?? '',
775
775
  });
776
- this.initialize().catch((err) => {
776
+ this.initialize().catch(err => {
777
777
  throw err;
778
778
  });
779
779
  this._log.info('deleteBackup request %j', request);
@@ -816,7 +816,7 @@ class DatabaseAdminClient {
816
816
  this._gaxModule.routingHeader.fromParams({
817
817
  database: request.database ?? '',
818
818
  });
819
- this.initialize().catch((err) => {
819
+ this.initialize().catch(err => {
820
820
  throw err;
821
821
  });
822
822
  this._log.info('addSplitPoints request %j', request);
@@ -859,7 +859,7 @@ class DatabaseAdminClient {
859
859
  this._gaxModule.routingHeader.fromParams({
860
860
  parent: request.parent ?? '',
861
861
  });
862
- this.initialize().catch((err) => {
862
+ this.initialize().catch(err => {
863
863
  throw err;
864
864
  });
865
865
  this._log.info('createBackupSchedule request %j', request);
@@ -902,7 +902,7 @@ class DatabaseAdminClient {
902
902
  this._gaxModule.routingHeader.fromParams({
903
903
  name: request.name ?? '',
904
904
  });
905
- this.initialize().catch((err) => {
905
+ this.initialize().catch(err => {
906
906
  throw err;
907
907
  });
908
908
  this._log.info('getBackupSchedule request %j', request);
@@ -945,7 +945,7 @@ class DatabaseAdminClient {
945
945
  this._gaxModule.routingHeader.fromParams({
946
946
  'backup_schedule.name': request.backupSchedule.name ?? '',
947
947
  });
948
- this.initialize().catch((err) => {
948
+ this.initialize().catch(err => {
949
949
  throw err;
950
950
  });
951
951
  this._log.info('updateBackupSchedule request %j', request);
@@ -988,7 +988,7 @@ class DatabaseAdminClient {
988
988
  this._gaxModule.routingHeader.fromParams({
989
989
  name: request.name ?? '',
990
990
  });
991
- this.initialize().catch((err) => {
991
+ this.initialize().catch(err => {
992
992
  throw err;
993
993
  });
994
994
  this._log.info('deleteBackupSchedule request %j', request);
@@ -1027,7 +1027,7 @@ class DatabaseAdminClient {
1027
1027
  options = options || {};
1028
1028
  options.otherArgs = options.otherArgs || {};
1029
1029
  options.otherArgs.headers = options.otherArgs.headers || {};
1030
- this.initialize().catch((err) => {
1030
+ this.initialize().catch(err => {
1031
1031
  throw err;
1032
1032
  });
1033
1033
  this._log.info('internalUpdateGraphOperation request %j', request);
@@ -1070,7 +1070,7 @@ class DatabaseAdminClient {
1070
1070
  this._gaxModule.routingHeader.fromParams({
1071
1071
  parent: request.parent ?? '',
1072
1072
  });
1073
- this.initialize().catch((err) => {
1073
+ this.initialize().catch(err => {
1074
1074
  throw err;
1075
1075
  });
1076
1076
  const wrappedCallback = callback
@@ -1122,7 +1122,7 @@ class DatabaseAdminClient {
1122
1122
  this._gaxModule.routingHeader.fromParams({
1123
1123
  'database.name': request.database.name ?? '',
1124
1124
  });
1125
- this.initialize().catch((err) => {
1125
+ this.initialize().catch(err => {
1126
1126
  throw err;
1127
1127
  });
1128
1128
  const wrappedCallback = callback
@@ -1174,7 +1174,7 @@ class DatabaseAdminClient {
1174
1174
  this._gaxModule.routingHeader.fromParams({
1175
1175
  database: request.database ?? '',
1176
1176
  });
1177
- this.initialize().catch((err) => {
1177
+ this.initialize().catch(err => {
1178
1178
  throw err;
1179
1179
  });
1180
1180
  const wrappedCallback = callback
@@ -1226,7 +1226,7 @@ class DatabaseAdminClient {
1226
1226
  this._gaxModule.routingHeader.fromParams({
1227
1227
  parent: request.parent ?? '',
1228
1228
  });
1229
- this.initialize().catch((err) => {
1229
+ this.initialize().catch(err => {
1230
1230
  throw err;
1231
1231
  });
1232
1232
  const wrappedCallback = callback
@@ -1278,7 +1278,7 @@ class DatabaseAdminClient {
1278
1278
  this._gaxModule.routingHeader.fromParams({
1279
1279
  parent: request.parent ?? '',
1280
1280
  });
1281
- this.initialize().catch((err) => {
1281
+ this.initialize().catch(err => {
1282
1282
  throw err;
1283
1283
  });
1284
1284
  const wrappedCallback = callback
@@ -1330,7 +1330,7 @@ class DatabaseAdminClient {
1330
1330
  this._gaxModule.routingHeader.fromParams({
1331
1331
  parent: request.parent ?? '',
1332
1332
  });
1333
- this.initialize().catch((err) => {
1333
+ this.initialize().catch(err => {
1334
1334
  throw err;
1335
1335
  });
1336
1336
  const wrappedCallback = callback
@@ -1382,7 +1382,7 @@ class DatabaseAdminClient {
1382
1382
  this._gaxModule.routingHeader.fromParams({
1383
1383
  parent: request.parent ?? '',
1384
1384
  });
1385
- this.initialize().catch((err) => {
1385
+ this.initialize().catch(err => {
1386
1386
  throw err;
1387
1387
  });
1388
1388
  const wrappedCallback = callback
@@ -1436,7 +1436,7 @@ class DatabaseAdminClient {
1436
1436
  });
1437
1437
  const defaultCallSettings = this._defaults['listDatabases'];
1438
1438
  const callSettings = defaultCallSettings.merge(options);
1439
- this.initialize().catch((err) => {
1439
+ this.initialize().catch(err => {
1440
1440
  throw err;
1441
1441
  });
1442
1442
  this._log.info('listDatabases stream %j', request);
@@ -1482,7 +1482,7 @@ class DatabaseAdminClient {
1482
1482
  });
1483
1483
  const defaultCallSettings = this._defaults['listDatabases'];
1484
1484
  const callSettings = defaultCallSettings.merge(options);
1485
- this.initialize().catch((err) => {
1485
+ this.initialize().catch(err => {
1486
1486
  throw err;
1487
1487
  });
1488
1488
  this._log.info('listDatabases iterate %j', request);
@@ -1505,7 +1505,7 @@ class DatabaseAdminClient {
1505
1505
  this._gaxModule.routingHeader.fromParams({
1506
1506
  parent: request.parent ?? '',
1507
1507
  });
1508
- this.initialize().catch((err) => {
1508
+ this.initialize().catch(err => {
1509
1509
  throw err;
1510
1510
  });
1511
1511
  const wrappedCallback = callback
@@ -1601,7 +1601,7 @@ class DatabaseAdminClient {
1601
1601
  });
1602
1602
  const defaultCallSettings = this._defaults['listBackups'];
1603
1603
  const callSettings = defaultCallSettings.merge(options);
1604
- this.initialize().catch((err) => {
1604
+ this.initialize().catch(err => {
1605
1605
  throw err;
1606
1606
  });
1607
1607
  this._log.info('listBackups stream %j', request);
@@ -1689,7 +1689,7 @@ class DatabaseAdminClient {
1689
1689
  });
1690
1690
  const defaultCallSettings = this._defaults['listBackups'];
1691
1691
  const callSettings = defaultCallSettings.merge(options);
1692
- this.initialize().catch((err) => {
1692
+ this.initialize().catch(err => {
1693
1693
  throw err;
1694
1694
  });
1695
1695
  this._log.info('listBackups iterate %j', request);
@@ -1712,7 +1712,7 @@ class DatabaseAdminClient {
1712
1712
  this._gaxModule.routingHeader.fromParams({
1713
1713
  parent: request.parent ?? '',
1714
1714
  });
1715
- this.initialize().catch((err) => {
1715
+ this.initialize().catch(err => {
1716
1716
  throw err;
1717
1717
  });
1718
1718
  const wrappedCallback = callback
@@ -1813,7 +1813,7 @@ class DatabaseAdminClient {
1813
1813
  });
1814
1814
  const defaultCallSettings = this._defaults['listDatabaseOperations'];
1815
1815
  const callSettings = defaultCallSettings.merge(options);
1816
- this.initialize().catch((err) => {
1816
+ this.initialize().catch(err => {
1817
1817
  throw err;
1818
1818
  });
1819
1819
  this._log.info('listDatabaseOperations stream %j', request);
@@ -1906,7 +1906,7 @@ class DatabaseAdminClient {
1906
1906
  });
1907
1907
  const defaultCallSettings = this._defaults['listDatabaseOperations'];
1908
1908
  const callSettings = defaultCallSettings.merge(options);
1909
- this.initialize().catch((err) => {
1909
+ this.initialize().catch(err => {
1910
1910
  throw err;
1911
1911
  });
1912
1912
  this._log.info('listDatabaseOperations iterate %j', request);
@@ -1929,7 +1929,7 @@ class DatabaseAdminClient {
1929
1929
  this._gaxModule.routingHeader.fromParams({
1930
1930
  parent: request.parent ?? '',
1931
1931
  });
1932
- this.initialize().catch((err) => {
1932
+ this.initialize().catch(err => {
1933
1933
  throw err;
1934
1934
  });
1935
1935
  const wrappedCallback = callback
@@ -2055,7 +2055,7 @@ class DatabaseAdminClient {
2055
2055
  });
2056
2056
  const defaultCallSettings = this._defaults['listBackupOperations'];
2057
2057
  const callSettings = defaultCallSettings.merge(options);
2058
- this.initialize().catch((err) => {
2058
+ this.initialize().catch(err => {
2059
2059
  throw err;
2060
2060
  });
2061
2061
  this._log.info('listBackupOperations stream %j', request);
@@ -2173,7 +2173,7 @@ class DatabaseAdminClient {
2173
2173
  });
2174
2174
  const defaultCallSettings = this._defaults['listBackupOperations'];
2175
2175
  const callSettings = defaultCallSettings.merge(options);
2176
- this.initialize().catch((err) => {
2176
+ this.initialize().catch(err => {
2177
2177
  throw err;
2178
2178
  });
2179
2179
  this._log.info('listBackupOperations iterate %j', request);
@@ -2196,7 +2196,7 @@ class DatabaseAdminClient {
2196
2196
  this._gaxModule.routingHeader.fromParams({
2197
2197
  parent: request.parent ?? '',
2198
2198
  });
2199
- this.initialize().catch((err) => {
2199
+ this.initialize().catch(err => {
2200
2200
  throw err;
2201
2201
  });
2202
2202
  const wrappedCallback = callback
@@ -2251,7 +2251,7 @@ class DatabaseAdminClient {
2251
2251
  });
2252
2252
  const defaultCallSettings = this._defaults['listDatabaseRoles'];
2253
2253
  const callSettings = defaultCallSettings.merge(options);
2254
- this.initialize().catch((err) => {
2254
+ this.initialize().catch(err => {
2255
2255
  throw err;
2256
2256
  });
2257
2257
  this._log.info('listDatabaseRoles stream %j', request);
@@ -2298,7 +2298,7 @@ class DatabaseAdminClient {
2298
2298
  });
2299
2299
  const defaultCallSettings = this._defaults['listDatabaseRoles'];
2300
2300
  const callSettings = defaultCallSettings.merge(options);
2301
- this.initialize().catch((err) => {
2301
+ this.initialize().catch(err => {
2302
2302
  throw err;
2303
2303
  });
2304
2304
  this._log.info('listDatabaseRoles iterate %j', request);
@@ -2321,7 +2321,7 @@ class DatabaseAdminClient {
2321
2321
  this._gaxModule.routingHeader.fromParams({
2322
2322
  parent: request.parent ?? '',
2323
2323
  });
2324
- this.initialize().catch((err) => {
2324
+ this.initialize().catch(err => {
2325
2325
  throw err;
2326
2326
  });
2327
2327
  const wrappedCallback = callback
@@ -2377,7 +2377,7 @@ class DatabaseAdminClient {
2377
2377
  });
2378
2378
  const defaultCallSettings = this._defaults['listBackupSchedules'];
2379
2379
  const callSettings = defaultCallSettings.merge(options);
2380
- this.initialize().catch((err) => {
2380
+ this.initialize().catch(err => {
2381
2381
  throw err;
2382
2382
  });
2383
2383
  this._log.info('listBackupSchedules stream %j', request);
@@ -2425,7 +2425,7 @@ class DatabaseAdminClient {
2425
2425
  });
2426
2426
  const defaultCallSettings = this._defaults['listBackupSchedules'];
2427
2427
  const callSettings = defaultCallSettings.merge(options);
2428
- this.initialize().catch((err) => {
2428
+ this.initialize().catch(err => {
2429
2429
  throw err;
2430
2430
  });
2431
2431
  this._log.info('listBackupSchedules iterate %j', request);
@@ -2924,7 +2924,7 @@ class DatabaseAdminClient {
2924
2924
  */
2925
2925
  close() {
2926
2926
  if (this.databaseAdminStub && !this._terminated) {
2927
- return this.databaseAdminStub.then((stub) => {
2927
+ return this.databaseAdminStub.then(stub => {
2928
2928
  this._log.info('ending gRPC channel');
2929
2929
  this._terminated = true;
2930
2930
  stub.close();