@google-cloud/dms 5.0.0 → 5.1.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.
@@ -433,7 +433,7 @@ class DataMigrationServiceClient {
433
433
  'fetchStaticIps',
434
434
  ];
435
435
  for (const methodName of dataMigrationServiceStubMethods) {
436
- const callPromise = this.dataMigrationServiceStub.then((stub) => (...args) => {
436
+ const callPromise = this.dataMigrationServiceStub.then(stub => (...args) => {
437
437
  if (this._terminated) {
438
438
  return Promise.reject('The client has already been closed.');
439
439
  }
@@ -527,7 +527,7 @@ class DataMigrationServiceClient {
527
527
  this._gaxModule.routingHeader.fromParams({
528
528
  name: request.name ?? '',
529
529
  });
530
- this.initialize().catch((err) => {
530
+ this.initialize().catch(err => {
531
531
  throw err;
532
532
  });
533
533
  this._log.info('getMigrationJob request %j', request);
@@ -570,7 +570,7 @@ class DataMigrationServiceClient {
570
570
  this._gaxModule.routingHeader.fromParams({
571
571
  migration_job: request.migrationJob ?? '',
572
572
  });
573
- this.initialize().catch((err) => {
573
+ this.initialize().catch(err => {
574
574
  throw err;
575
575
  });
576
576
  this._log.info('generateSshScript request %j', request);
@@ -613,7 +613,7 @@ class DataMigrationServiceClient {
613
613
  this._gaxModule.routingHeader.fromParams({
614
614
  migration_job: request.migrationJob ?? '',
615
615
  });
616
- this.initialize().catch((err) => {
616
+ this.initialize().catch(err => {
617
617
  throw err;
618
618
  });
619
619
  this._log.info('generateTcpProxyScript request %j', request);
@@ -656,7 +656,7 @@ class DataMigrationServiceClient {
656
656
  this._gaxModule.routingHeader.fromParams({
657
657
  name: request.name ?? '',
658
658
  });
659
- this.initialize().catch((err) => {
659
+ this.initialize().catch(err => {
660
660
  throw err;
661
661
  });
662
662
  this._log.info('getConnectionProfile request %j', request);
@@ -699,7 +699,7 @@ class DataMigrationServiceClient {
699
699
  this._gaxModule.routingHeader.fromParams({
700
700
  name: request.name ?? '',
701
701
  });
702
- this.initialize().catch((err) => {
702
+ this.initialize().catch(err => {
703
703
  throw err;
704
704
  });
705
705
  this._log.info('getPrivateConnection request %j', request);
@@ -742,7 +742,7 @@ class DataMigrationServiceClient {
742
742
  this._gaxModule.routingHeader.fromParams({
743
743
  name: request.name ?? '',
744
744
  });
745
- this.initialize().catch((err) => {
745
+ this.initialize().catch(err => {
746
746
  throw err;
747
747
  });
748
748
  this._log.info('getConversionWorkspace request %j', request);
@@ -785,7 +785,7 @@ class DataMigrationServiceClient {
785
785
  this._gaxModule.routingHeader.fromParams({
786
786
  parent: request.parent ?? '',
787
787
  });
788
- this.initialize().catch((err) => {
788
+ this.initialize().catch(err => {
789
789
  throw err;
790
790
  });
791
791
  this._log.info('createMappingRule request %j', request);
@@ -828,7 +828,7 @@ class DataMigrationServiceClient {
828
828
  this._gaxModule.routingHeader.fromParams({
829
829
  name: request.name ?? '',
830
830
  });
831
- this.initialize().catch((err) => {
831
+ this.initialize().catch(err => {
832
832
  throw err;
833
833
  });
834
834
  this._log.info('deleteMappingRule request %j', request);
@@ -871,7 +871,7 @@ class DataMigrationServiceClient {
871
871
  this._gaxModule.routingHeader.fromParams({
872
872
  name: request.name ?? '',
873
873
  });
874
- this.initialize().catch((err) => {
874
+ this.initialize().catch(err => {
875
875
  throw err;
876
876
  });
877
877
  this._log.info('getMappingRule request %j', request);
@@ -914,7 +914,7 @@ class DataMigrationServiceClient {
914
914
  this._gaxModule.routingHeader.fromParams({
915
915
  conversion_workspace: request.conversionWorkspace ?? '',
916
916
  });
917
- this.initialize().catch((err) => {
917
+ this.initialize().catch(err => {
918
918
  throw err;
919
919
  });
920
920
  this._log.info('searchBackgroundJobs request %j', request);
@@ -957,7 +957,7 @@ class DataMigrationServiceClient {
957
957
  this._gaxModule.routingHeader.fromParams({
958
958
  conversion_workspace: request.conversionWorkspace ?? '',
959
959
  });
960
- this.initialize().catch((err) => {
960
+ this.initialize().catch(err => {
961
961
  throw err;
962
962
  });
963
963
  this._log.info('describeConversionWorkspaceRevisions request %j', request);
@@ -1000,7 +1000,7 @@ class DataMigrationServiceClient {
1000
1000
  this._gaxModule.routingHeader.fromParams({
1001
1001
  parent: request.parent ?? '',
1002
1002
  });
1003
- this.initialize().catch((err) => {
1003
+ this.initialize().catch(err => {
1004
1004
  throw err;
1005
1005
  });
1006
1006
  const wrappedCallback = callback
@@ -1052,7 +1052,7 @@ class DataMigrationServiceClient {
1052
1052
  this._gaxModule.routingHeader.fromParams({
1053
1053
  'migration_job.name': request.migrationJob.name ?? '',
1054
1054
  });
1055
- this.initialize().catch((err) => {
1055
+ this.initialize().catch(err => {
1056
1056
  throw err;
1057
1057
  });
1058
1058
  const wrappedCallback = callback
@@ -1104,7 +1104,7 @@ class DataMigrationServiceClient {
1104
1104
  this._gaxModule.routingHeader.fromParams({
1105
1105
  name: request.name ?? '',
1106
1106
  });
1107
- this.initialize().catch((err) => {
1107
+ this.initialize().catch(err => {
1108
1108
  throw err;
1109
1109
  });
1110
1110
  const wrappedCallback = callback
@@ -1156,7 +1156,7 @@ class DataMigrationServiceClient {
1156
1156
  this._gaxModule.routingHeader.fromParams({
1157
1157
  name: request.name ?? '',
1158
1158
  });
1159
- this.initialize().catch((err) => {
1159
+ this.initialize().catch(err => {
1160
1160
  throw err;
1161
1161
  });
1162
1162
  const wrappedCallback = callback
@@ -1208,7 +1208,7 @@ class DataMigrationServiceClient {
1208
1208
  this._gaxModule.routingHeader.fromParams({
1209
1209
  name: request.name ?? '',
1210
1210
  });
1211
- this.initialize().catch((err) => {
1211
+ this.initialize().catch(err => {
1212
1212
  throw err;
1213
1213
  });
1214
1214
  const wrappedCallback = callback
@@ -1260,7 +1260,7 @@ class DataMigrationServiceClient {
1260
1260
  this._gaxModule.routingHeader.fromParams({
1261
1261
  name: request.name ?? '',
1262
1262
  });
1263
- this.initialize().catch((err) => {
1263
+ this.initialize().catch(err => {
1264
1264
  throw err;
1265
1265
  });
1266
1266
  const wrappedCallback = callback
@@ -1312,7 +1312,7 @@ class DataMigrationServiceClient {
1312
1312
  this._gaxModule.routingHeader.fromParams({
1313
1313
  name: request.name ?? '',
1314
1314
  });
1315
- this.initialize().catch((err) => {
1315
+ this.initialize().catch(err => {
1316
1316
  throw err;
1317
1317
  });
1318
1318
  const wrappedCallback = callback
@@ -1364,7 +1364,7 @@ class DataMigrationServiceClient {
1364
1364
  this._gaxModule.routingHeader.fromParams({
1365
1365
  name: request.name ?? '',
1366
1366
  });
1367
- this.initialize().catch((err) => {
1367
+ this.initialize().catch(err => {
1368
1368
  throw err;
1369
1369
  });
1370
1370
  const wrappedCallback = callback
@@ -1416,7 +1416,7 @@ class DataMigrationServiceClient {
1416
1416
  this._gaxModule.routingHeader.fromParams({
1417
1417
  name: request.name ?? '',
1418
1418
  });
1419
- this.initialize().catch((err) => {
1419
+ this.initialize().catch(err => {
1420
1420
  throw err;
1421
1421
  });
1422
1422
  const wrappedCallback = callback
@@ -1468,7 +1468,7 @@ class DataMigrationServiceClient {
1468
1468
  this._gaxModule.routingHeader.fromParams({
1469
1469
  parent: request.parent ?? '',
1470
1470
  });
1471
- this.initialize().catch((err) => {
1471
+ this.initialize().catch(err => {
1472
1472
  throw err;
1473
1473
  });
1474
1474
  const wrappedCallback = callback
@@ -1520,7 +1520,7 @@ class DataMigrationServiceClient {
1520
1520
  this._gaxModule.routingHeader.fromParams({
1521
1521
  'connection_profile.name': request.connectionProfile.name ?? '',
1522
1522
  });
1523
- this.initialize().catch((err) => {
1523
+ this.initialize().catch(err => {
1524
1524
  throw err;
1525
1525
  });
1526
1526
  const wrappedCallback = callback
@@ -1572,7 +1572,7 @@ class DataMigrationServiceClient {
1572
1572
  this._gaxModule.routingHeader.fromParams({
1573
1573
  name: request.name ?? '',
1574
1574
  });
1575
- this.initialize().catch((err) => {
1575
+ this.initialize().catch(err => {
1576
1576
  throw err;
1577
1577
  });
1578
1578
  const wrappedCallback = callback
@@ -1624,7 +1624,7 @@ class DataMigrationServiceClient {
1624
1624
  this._gaxModule.routingHeader.fromParams({
1625
1625
  parent: request.parent ?? '',
1626
1626
  });
1627
- this.initialize().catch((err) => {
1627
+ this.initialize().catch(err => {
1628
1628
  throw err;
1629
1629
  });
1630
1630
  const wrappedCallback = callback
@@ -1676,7 +1676,7 @@ class DataMigrationServiceClient {
1676
1676
  this._gaxModule.routingHeader.fromParams({
1677
1677
  name: request.name ?? '',
1678
1678
  });
1679
- this.initialize().catch((err) => {
1679
+ this.initialize().catch(err => {
1680
1680
  throw err;
1681
1681
  });
1682
1682
  const wrappedCallback = callback
@@ -1728,7 +1728,7 @@ class DataMigrationServiceClient {
1728
1728
  this._gaxModule.routingHeader.fromParams({
1729
1729
  parent: request.parent ?? '',
1730
1730
  });
1731
- this.initialize().catch((err) => {
1731
+ this.initialize().catch(err => {
1732
1732
  throw err;
1733
1733
  });
1734
1734
  const wrappedCallback = callback
@@ -1780,7 +1780,7 @@ class DataMigrationServiceClient {
1780
1780
  this._gaxModule.routingHeader.fromParams({
1781
1781
  'conversion_workspace.name': request.conversionWorkspace.name ?? '',
1782
1782
  });
1783
- this.initialize().catch((err) => {
1783
+ this.initialize().catch(err => {
1784
1784
  throw err;
1785
1785
  });
1786
1786
  const wrappedCallback = callback
@@ -1832,7 +1832,7 @@ class DataMigrationServiceClient {
1832
1832
  this._gaxModule.routingHeader.fromParams({
1833
1833
  name: request.name ?? '',
1834
1834
  });
1835
- this.initialize().catch((err) => {
1835
+ this.initialize().catch(err => {
1836
1836
  throw err;
1837
1837
  });
1838
1838
  const wrappedCallback = callback
@@ -1884,7 +1884,7 @@ class DataMigrationServiceClient {
1884
1884
  this._gaxModule.routingHeader.fromParams({
1885
1885
  name: request.name ?? '',
1886
1886
  });
1887
- this.initialize().catch((err) => {
1887
+ this.initialize().catch(err => {
1888
1888
  throw err;
1889
1889
  });
1890
1890
  const wrappedCallback = callback
@@ -1936,7 +1936,7 @@ class DataMigrationServiceClient {
1936
1936
  this._gaxModule.routingHeader.fromParams({
1937
1937
  parent: request.parent ?? '',
1938
1938
  });
1939
- this.initialize().catch((err) => {
1939
+ this.initialize().catch(err => {
1940
1940
  throw err;
1941
1941
  });
1942
1942
  const wrappedCallback = callback
@@ -1988,7 +1988,7 @@ class DataMigrationServiceClient {
1988
1988
  this._gaxModule.routingHeader.fromParams({
1989
1989
  name: request.name ?? '',
1990
1990
  });
1991
- this.initialize().catch((err) => {
1991
+ this.initialize().catch(err => {
1992
1992
  throw err;
1993
1993
  });
1994
1994
  const wrappedCallback = callback
@@ -2040,7 +2040,7 @@ class DataMigrationServiceClient {
2040
2040
  this._gaxModule.routingHeader.fromParams({
2041
2041
  name: request.name ?? '',
2042
2042
  });
2043
- this.initialize().catch((err) => {
2043
+ this.initialize().catch(err => {
2044
2044
  throw err;
2045
2045
  });
2046
2046
  const wrappedCallback = callback
@@ -2092,7 +2092,7 @@ class DataMigrationServiceClient {
2092
2092
  this._gaxModule.routingHeader.fromParams({
2093
2093
  name: request.name ?? '',
2094
2094
  });
2095
- this.initialize().catch((err) => {
2095
+ this.initialize().catch(err => {
2096
2096
  throw err;
2097
2097
  });
2098
2098
  const wrappedCallback = callback
@@ -2144,7 +2144,7 @@ class DataMigrationServiceClient {
2144
2144
  this._gaxModule.routingHeader.fromParams({
2145
2145
  name: request.name ?? '',
2146
2146
  });
2147
- this.initialize().catch((err) => {
2147
+ this.initialize().catch(err => {
2148
2148
  throw err;
2149
2149
  });
2150
2150
  const wrappedCallback = callback
@@ -2196,7 +2196,7 @@ class DataMigrationServiceClient {
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
@@ -2265,7 +2265,7 @@ class DataMigrationServiceClient {
2265
2265
  });
2266
2266
  const defaultCallSettings = this._defaults['listMigrationJobs'];
2267
2267
  const callSettings = defaultCallSettings.merge(options);
2268
- this.initialize().catch((err) => {
2268
+ this.initialize().catch(err => {
2269
2269
  throw err;
2270
2270
  });
2271
2271
  this._log.info('listMigrationJobs stream %j', request);
@@ -2326,7 +2326,7 @@ class DataMigrationServiceClient {
2326
2326
  });
2327
2327
  const defaultCallSettings = this._defaults['listMigrationJobs'];
2328
2328
  const callSettings = defaultCallSettings.merge(options);
2329
- this.initialize().catch((err) => {
2329
+ this.initialize().catch(err => {
2330
2330
  throw err;
2331
2331
  });
2332
2332
  this._log.info('listMigrationJobs iterate %j', request);
@@ -2349,7 +2349,7 @@ class DataMigrationServiceClient {
2349
2349
  this._gaxModule.routingHeader.fromParams({
2350
2350
  parent: request.parent ?? '',
2351
2351
  });
2352
- this.initialize().catch((err) => {
2352
+ this.initialize().catch(err => {
2353
2353
  throw err;
2354
2354
  });
2355
2355
  const wrappedCallback = callback
@@ -2417,7 +2417,7 @@ class DataMigrationServiceClient {
2417
2417
  });
2418
2418
  const defaultCallSettings = this._defaults['listConnectionProfiles'];
2419
2419
  const callSettings = defaultCallSettings.merge(options);
2420
- this.initialize().catch((err) => {
2420
+ this.initialize().catch(err => {
2421
2421
  throw err;
2422
2422
  });
2423
2423
  this._log.info('listConnectionProfiles stream %j', request);
@@ -2477,7 +2477,7 @@ class DataMigrationServiceClient {
2477
2477
  });
2478
2478
  const defaultCallSettings = this._defaults['listConnectionProfiles'];
2479
2479
  const callSettings = defaultCallSettings.merge(options);
2480
- this.initialize().catch((err) => {
2480
+ this.initialize().catch(err => {
2481
2481
  throw err;
2482
2482
  });
2483
2483
  this._log.info('listConnectionProfiles iterate %j', request);
@@ -2500,7 +2500,7 @@ class DataMigrationServiceClient {
2500
2500
  this._gaxModule.routingHeader.fromParams({
2501
2501
  parent: request.parent ?? '',
2502
2502
  });
2503
- this.initialize().catch((err) => {
2503
+ this.initialize().catch(err => {
2504
2504
  throw err;
2505
2505
  });
2506
2506
  const wrappedCallback = callback
@@ -2565,7 +2565,7 @@ class DataMigrationServiceClient {
2565
2565
  });
2566
2566
  const defaultCallSettings = this._defaults['listPrivateConnections'];
2567
2567
  const callSettings = defaultCallSettings.merge(options);
2568
- this.initialize().catch((err) => {
2568
+ this.initialize().catch(err => {
2569
2569
  throw err;
2570
2570
  });
2571
2571
  this._log.info('listPrivateConnections stream %j', request);
@@ -2622,7 +2622,7 @@ class DataMigrationServiceClient {
2622
2622
  });
2623
2623
  const defaultCallSettings = this._defaults['listPrivateConnections'];
2624
2624
  const callSettings = defaultCallSettings.merge(options);
2625
- this.initialize().catch((err) => {
2625
+ this.initialize().catch(err => {
2626
2626
  throw err;
2627
2627
  });
2628
2628
  this._log.info('listPrivateConnections iterate %j', request);
@@ -2645,7 +2645,7 @@ class DataMigrationServiceClient {
2645
2645
  this._gaxModule.routingHeader.fromParams({
2646
2646
  parent: request.parent ?? '',
2647
2647
  });
2648
- this.initialize().catch((err) => {
2648
+ this.initialize().catch(err => {
2649
2649
  throw err;
2650
2650
  });
2651
2651
  const wrappedCallback = callback
@@ -2709,7 +2709,7 @@ class DataMigrationServiceClient {
2709
2709
  });
2710
2710
  const defaultCallSettings = this._defaults['listConversionWorkspaces'];
2711
2711
  const callSettings = defaultCallSettings.merge(options);
2712
- this.initialize().catch((err) => {
2712
+ this.initialize().catch(err => {
2713
2713
  throw err;
2714
2714
  });
2715
2715
  this._log.info('listConversionWorkspaces stream %j', request);
@@ -2765,7 +2765,7 @@ class DataMigrationServiceClient {
2765
2765
  });
2766
2766
  const defaultCallSettings = this._defaults['listConversionWorkspaces'];
2767
2767
  const callSettings = defaultCallSettings.merge(options);
2768
- this.initialize().catch((err) => {
2768
+ this.initialize().catch(err => {
2769
2769
  throw err;
2770
2770
  });
2771
2771
  this._log.info('listConversionWorkspaces iterate %j', request);
@@ -2788,7 +2788,7 @@ class DataMigrationServiceClient {
2788
2788
  this._gaxModule.routingHeader.fromParams({
2789
2789
  parent: request.parent ?? '',
2790
2790
  });
2791
- this.initialize().catch((err) => {
2791
+ this.initialize().catch(err => {
2792
2792
  throw err;
2793
2793
  });
2794
2794
  const wrappedCallback = callback
@@ -2844,7 +2844,7 @@ class DataMigrationServiceClient {
2844
2844
  });
2845
2845
  const defaultCallSettings = this._defaults['listMappingRules'];
2846
2846
  const callSettings = defaultCallSettings.merge(options);
2847
- this.initialize().catch((err) => {
2847
+ this.initialize().catch(err => {
2848
2848
  throw err;
2849
2849
  });
2850
2850
  this._log.info('listMappingRules stream %j', request);
@@ -2892,7 +2892,7 @@ class DataMigrationServiceClient {
2892
2892
  });
2893
2893
  const defaultCallSettings = this._defaults['listMappingRules'];
2894
2894
  const callSettings = defaultCallSettings.merge(options);
2895
- this.initialize().catch((err) => {
2895
+ this.initialize().catch(err => {
2896
2896
  throw err;
2897
2897
  });
2898
2898
  this._log.info('listMappingRules iterate %j', request);
@@ -2915,7 +2915,7 @@ class DataMigrationServiceClient {
2915
2915
  this._gaxModule.routingHeader.fromParams({
2916
2916
  conversion_workspace: request.conversionWorkspace ?? '',
2917
2917
  });
2918
- this.initialize().catch((err) => {
2918
+ this.initialize().catch(err => {
2919
2919
  throw err;
2920
2920
  });
2921
2921
  const wrappedCallback = callback
@@ -2985,7 +2985,7 @@ class DataMigrationServiceClient {
2985
2985
  });
2986
2986
  const defaultCallSettings = this._defaults['describeDatabaseEntities'];
2987
2987
  const callSettings = defaultCallSettings.merge(options);
2988
- this.initialize().catch((err) => {
2988
+ this.initialize().catch(err => {
2989
2989
  throw err;
2990
2990
  });
2991
2991
  this._log.info('describeDatabaseEntities stream %j', request);
@@ -3047,7 +3047,7 @@ class DataMigrationServiceClient {
3047
3047
  });
3048
3048
  const defaultCallSettings = this._defaults['describeDatabaseEntities'];
3049
3049
  const callSettings = defaultCallSettings.merge(options);
3050
- this.initialize().catch((err) => {
3050
+ this.initialize().catch(err => {
3051
3051
  throw err;
3052
3052
  });
3053
3053
  this._log.info('describeDatabaseEntities iterate %j', request);
@@ -3070,7 +3070,7 @@ class DataMigrationServiceClient {
3070
3070
  this._gaxModule.routingHeader.fromParams({
3071
3071
  name: request.name ?? '',
3072
3072
  });
3073
- this.initialize().catch((err) => {
3073
+ this.initialize().catch(err => {
3074
3074
  throw err;
3075
3075
  });
3076
3076
  const wrappedCallback = callback
@@ -3120,7 +3120,7 @@ class DataMigrationServiceClient {
3120
3120
  });
3121
3121
  const defaultCallSettings = this._defaults['fetchStaticIps'];
3122
3122
  const callSettings = defaultCallSettings.merge(options);
3123
- this.initialize().catch((err) => {
3123
+ this.initialize().catch(err => {
3124
3124
  throw err;
3125
3125
  });
3126
3126
  this._log.info('fetchStaticIps stream %j', request);
@@ -3162,7 +3162,7 @@ class DataMigrationServiceClient {
3162
3162
  });
3163
3163
  const defaultCallSettings = this._defaults['fetchStaticIps'];
3164
3164
  const callSettings = defaultCallSettings.merge(options);
3165
- this.initialize().catch((err) => {
3165
+ this.initialize().catch(err => {
3166
3166
  throw err;
3167
3167
  });
3168
3168
  this._log.info('fetchStaticIps iterate %j', request);
@@ -3805,14 +3805,14 @@ class DataMigrationServiceClient {
3805
3805
  */
3806
3806
  close() {
3807
3807
  if (this.dataMigrationServiceStub && !this._terminated) {
3808
- return this.dataMigrationServiceStub.then((stub) => {
3808
+ return this.dataMigrationServiceStub.then(stub => {
3809
3809
  this._log.info('ending gRPC channel');
3810
3810
  this._terminated = true;
3811
3811
  stub.close();
3812
- this.iamClient.close().catch((err) => {
3812
+ this.iamClient.close().catch(err => {
3813
3813
  throw err;
3814
3814
  });
3815
- this.locationsClient.close().catch((err) => {
3815
+ this.locationsClient.close().catch(err => {
3816
3816
  throw err;
3817
3817
  });
3818
3818
  void this.operationsClient.close();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@google-cloud/dms",
3
3
  "description": "Cloud Database Migration API client for Node.js",
4
- "version": "5.0.0",
4
+ "version": "5.1.0",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Google LLC",
7
7
  "engines": {