@google-cloud/logging-api 0.3.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.
- package/build/src/v2/config_service_v2_client.js +44 -44
- package/build/src/v2/config_service_v2_client.js.map +1 -1
- package/build/src/v2/index.js.map +1 -1
- package/build/src/v2/logging_service_v2_client.js +14 -14
- package/build/src/v2/logging_service_v2_client.js.map +1 -1
- package/build/src/v2/metrics_service_v2_client.js +9 -9
- package/build/src/v2/metrics_service_v2_client.js.map +1 -1
- package/package.json +1 -1
|
@@ -357,7 +357,7 @@ class ConfigServiceV2Client {
|
|
|
357
357
|
'copyLogEntries',
|
|
358
358
|
];
|
|
359
359
|
for (const methodName of configServiceV2StubMethods) {
|
|
360
|
-
const callPromise = this.configServiceV2Stub.then(
|
|
360
|
+
const callPromise = this.configServiceV2Stub.then(stub => (...args) => {
|
|
361
361
|
if (this._terminated) {
|
|
362
362
|
return Promise.reject('The client has already been closed.');
|
|
363
363
|
}
|
|
@@ -456,7 +456,7 @@ class ConfigServiceV2Client {
|
|
|
456
456
|
this._gaxModule.routingHeader.fromParams({
|
|
457
457
|
name: request.name ?? '',
|
|
458
458
|
});
|
|
459
|
-
this.initialize().catch(
|
|
459
|
+
this.initialize().catch(err => {
|
|
460
460
|
throw err;
|
|
461
461
|
});
|
|
462
462
|
this._log.info('getBucket request %j', request);
|
|
@@ -499,7 +499,7 @@ class ConfigServiceV2Client {
|
|
|
499
499
|
this._gaxModule.routingHeader.fromParams({
|
|
500
500
|
parent: request.parent ?? '',
|
|
501
501
|
});
|
|
502
|
-
this.initialize().catch(
|
|
502
|
+
this.initialize().catch(err => {
|
|
503
503
|
throw err;
|
|
504
504
|
});
|
|
505
505
|
this._log.info('createBucket request %j', request);
|
|
@@ -542,7 +542,7 @@ class ConfigServiceV2Client {
|
|
|
542
542
|
this._gaxModule.routingHeader.fromParams({
|
|
543
543
|
name: request.name ?? '',
|
|
544
544
|
});
|
|
545
|
-
this.initialize().catch(
|
|
545
|
+
this.initialize().catch(err => {
|
|
546
546
|
throw err;
|
|
547
547
|
});
|
|
548
548
|
this._log.info('updateBucket request %j', request);
|
|
@@ -585,7 +585,7 @@ class ConfigServiceV2Client {
|
|
|
585
585
|
this._gaxModule.routingHeader.fromParams({
|
|
586
586
|
name: request.name ?? '',
|
|
587
587
|
});
|
|
588
|
-
this.initialize().catch(
|
|
588
|
+
this.initialize().catch(err => {
|
|
589
589
|
throw err;
|
|
590
590
|
});
|
|
591
591
|
this._log.info('deleteBucket request %j', request);
|
|
@@ -628,7 +628,7 @@ class ConfigServiceV2Client {
|
|
|
628
628
|
this._gaxModule.routingHeader.fromParams({
|
|
629
629
|
name: request.name ?? '',
|
|
630
630
|
});
|
|
631
|
-
this.initialize().catch(
|
|
631
|
+
this.initialize().catch(err => {
|
|
632
632
|
throw err;
|
|
633
633
|
});
|
|
634
634
|
this._log.info('undeleteBucket request %j', request);
|
|
@@ -671,7 +671,7 @@ class ConfigServiceV2Client {
|
|
|
671
671
|
this._gaxModule.routingHeader.fromParams({
|
|
672
672
|
name: request.name ?? '',
|
|
673
673
|
});
|
|
674
|
-
this.initialize().catch(
|
|
674
|
+
this.initialize().catch(err => {
|
|
675
675
|
throw err;
|
|
676
676
|
});
|
|
677
677
|
this._log.info('getView request %j', request);
|
|
@@ -714,7 +714,7 @@ class ConfigServiceV2Client {
|
|
|
714
714
|
this._gaxModule.routingHeader.fromParams({
|
|
715
715
|
parent: request.parent ?? '',
|
|
716
716
|
});
|
|
717
|
-
this.initialize().catch(
|
|
717
|
+
this.initialize().catch(err => {
|
|
718
718
|
throw err;
|
|
719
719
|
});
|
|
720
720
|
this._log.info('createView request %j', request);
|
|
@@ -757,7 +757,7 @@ class ConfigServiceV2Client {
|
|
|
757
757
|
this._gaxModule.routingHeader.fromParams({
|
|
758
758
|
name: request.name ?? '',
|
|
759
759
|
});
|
|
760
|
-
this.initialize().catch(
|
|
760
|
+
this.initialize().catch(err => {
|
|
761
761
|
throw err;
|
|
762
762
|
});
|
|
763
763
|
this._log.info('updateView request %j', request);
|
|
@@ -800,7 +800,7 @@ class ConfigServiceV2Client {
|
|
|
800
800
|
this._gaxModule.routingHeader.fromParams({
|
|
801
801
|
name: request.name ?? '',
|
|
802
802
|
});
|
|
803
|
-
this.initialize().catch(
|
|
803
|
+
this.initialize().catch(err => {
|
|
804
804
|
throw err;
|
|
805
805
|
});
|
|
806
806
|
this._log.info('deleteView request %j', request);
|
|
@@ -843,7 +843,7 @@ class ConfigServiceV2Client {
|
|
|
843
843
|
this._gaxModule.routingHeader.fromParams({
|
|
844
844
|
sink_name: request.sinkName ?? '',
|
|
845
845
|
});
|
|
846
|
-
this.initialize().catch(
|
|
846
|
+
this.initialize().catch(err => {
|
|
847
847
|
throw err;
|
|
848
848
|
});
|
|
849
849
|
this._log.info('getSink request %j', request);
|
|
@@ -886,7 +886,7 @@ class ConfigServiceV2Client {
|
|
|
886
886
|
this._gaxModule.routingHeader.fromParams({
|
|
887
887
|
parent: request.parent ?? '',
|
|
888
888
|
});
|
|
889
|
-
this.initialize().catch(
|
|
889
|
+
this.initialize().catch(err => {
|
|
890
890
|
throw err;
|
|
891
891
|
});
|
|
892
892
|
this._log.info('createSink request %j', request);
|
|
@@ -929,7 +929,7 @@ class ConfigServiceV2Client {
|
|
|
929
929
|
this._gaxModule.routingHeader.fromParams({
|
|
930
930
|
sink_name: request.sinkName ?? '',
|
|
931
931
|
});
|
|
932
|
-
this.initialize().catch(
|
|
932
|
+
this.initialize().catch(err => {
|
|
933
933
|
throw err;
|
|
934
934
|
});
|
|
935
935
|
this._log.info('updateSink request %j', request);
|
|
@@ -972,7 +972,7 @@ class ConfigServiceV2Client {
|
|
|
972
972
|
this._gaxModule.routingHeader.fromParams({
|
|
973
973
|
sink_name: request.sinkName ?? '',
|
|
974
974
|
});
|
|
975
|
-
this.initialize().catch(
|
|
975
|
+
this.initialize().catch(err => {
|
|
976
976
|
throw err;
|
|
977
977
|
});
|
|
978
978
|
this._log.info('deleteSink request %j', request);
|
|
@@ -1015,7 +1015,7 @@ class ConfigServiceV2Client {
|
|
|
1015
1015
|
this._gaxModule.routingHeader.fromParams({
|
|
1016
1016
|
name: request.name ?? '',
|
|
1017
1017
|
});
|
|
1018
|
-
this.initialize().catch(
|
|
1018
|
+
this.initialize().catch(err => {
|
|
1019
1019
|
throw err;
|
|
1020
1020
|
});
|
|
1021
1021
|
this._log.info('getLink request %j', request);
|
|
@@ -1058,7 +1058,7 @@ class ConfigServiceV2Client {
|
|
|
1058
1058
|
this._gaxModule.routingHeader.fromParams({
|
|
1059
1059
|
name: request.name ?? '',
|
|
1060
1060
|
});
|
|
1061
|
-
this.initialize().catch(
|
|
1061
|
+
this.initialize().catch(err => {
|
|
1062
1062
|
throw err;
|
|
1063
1063
|
});
|
|
1064
1064
|
this._log.info('getExclusion request %j', request);
|
|
@@ -1101,7 +1101,7 @@ class ConfigServiceV2Client {
|
|
|
1101
1101
|
this._gaxModule.routingHeader.fromParams({
|
|
1102
1102
|
parent: request.parent ?? '',
|
|
1103
1103
|
});
|
|
1104
|
-
this.initialize().catch(
|
|
1104
|
+
this.initialize().catch(err => {
|
|
1105
1105
|
throw err;
|
|
1106
1106
|
});
|
|
1107
1107
|
this._log.info('createExclusion request %j', request);
|
|
@@ -1144,7 +1144,7 @@ class ConfigServiceV2Client {
|
|
|
1144
1144
|
this._gaxModule.routingHeader.fromParams({
|
|
1145
1145
|
name: request.name ?? '',
|
|
1146
1146
|
});
|
|
1147
|
-
this.initialize().catch(
|
|
1147
|
+
this.initialize().catch(err => {
|
|
1148
1148
|
throw err;
|
|
1149
1149
|
});
|
|
1150
1150
|
this._log.info('updateExclusion request %j', request);
|
|
@@ -1187,7 +1187,7 @@ class ConfigServiceV2Client {
|
|
|
1187
1187
|
this._gaxModule.routingHeader.fromParams({
|
|
1188
1188
|
name: request.name ?? '',
|
|
1189
1189
|
});
|
|
1190
|
-
this.initialize().catch(
|
|
1190
|
+
this.initialize().catch(err => {
|
|
1191
1191
|
throw err;
|
|
1192
1192
|
});
|
|
1193
1193
|
this._log.info('deleteExclusion request %j', request);
|
|
@@ -1230,7 +1230,7 @@ class ConfigServiceV2Client {
|
|
|
1230
1230
|
this._gaxModule.routingHeader.fromParams({
|
|
1231
1231
|
name: request.name ?? '',
|
|
1232
1232
|
});
|
|
1233
|
-
this.initialize().catch(
|
|
1233
|
+
this.initialize().catch(err => {
|
|
1234
1234
|
throw err;
|
|
1235
1235
|
});
|
|
1236
1236
|
this._log.info('getCmekSettings request %j', request);
|
|
@@ -1273,7 +1273,7 @@ class ConfigServiceV2Client {
|
|
|
1273
1273
|
this._gaxModule.routingHeader.fromParams({
|
|
1274
1274
|
name: request.name ?? '',
|
|
1275
1275
|
});
|
|
1276
|
-
this.initialize().catch(
|
|
1276
|
+
this.initialize().catch(err => {
|
|
1277
1277
|
throw err;
|
|
1278
1278
|
});
|
|
1279
1279
|
this._log.info('updateCmekSettings request %j', request);
|
|
@@ -1316,7 +1316,7 @@ class ConfigServiceV2Client {
|
|
|
1316
1316
|
this._gaxModule.routingHeader.fromParams({
|
|
1317
1317
|
name: request.name ?? '',
|
|
1318
1318
|
});
|
|
1319
|
-
this.initialize().catch(
|
|
1319
|
+
this.initialize().catch(err => {
|
|
1320
1320
|
throw err;
|
|
1321
1321
|
});
|
|
1322
1322
|
this._log.info('getSettings request %j', request);
|
|
@@ -1359,7 +1359,7 @@ class ConfigServiceV2Client {
|
|
|
1359
1359
|
this._gaxModule.routingHeader.fromParams({
|
|
1360
1360
|
name: request.name ?? '',
|
|
1361
1361
|
});
|
|
1362
|
-
this.initialize().catch(
|
|
1362
|
+
this.initialize().catch(err => {
|
|
1363
1363
|
throw err;
|
|
1364
1364
|
});
|
|
1365
1365
|
this._log.info('updateSettings request %j', request);
|
|
@@ -1402,7 +1402,7 @@ class ConfigServiceV2Client {
|
|
|
1402
1402
|
this._gaxModule.routingHeader.fromParams({
|
|
1403
1403
|
parent: request.parent ?? '',
|
|
1404
1404
|
});
|
|
1405
|
-
this.initialize().catch(
|
|
1405
|
+
this.initialize().catch(err => {
|
|
1406
1406
|
throw err;
|
|
1407
1407
|
});
|
|
1408
1408
|
const wrappedCallback = callback
|
|
@@ -1454,7 +1454,7 @@ class ConfigServiceV2Client {
|
|
|
1454
1454
|
this._gaxModule.routingHeader.fromParams({
|
|
1455
1455
|
name: request.name ?? '',
|
|
1456
1456
|
});
|
|
1457
|
-
this.initialize().catch(
|
|
1457
|
+
this.initialize().catch(err => {
|
|
1458
1458
|
throw err;
|
|
1459
1459
|
});
|
|
1460
1460
|
const wrappedCallback = callback
|
|
@@ -1506,7 +1506,7 @@ class ConfigServiceV2Client {
|
|
|
1506
1506
|
this._gaxModule.routingHeader.fromParams({
|
|
1507
1507
|
parent: request.parent ?? '',
|
|
1508
1508
|
});
|
|
1509
|
-
this.initialize().catch(
|
|
1509
|
+
this.initialize().catch(err => {
|
|
1510
1510
|
throw err;
|
|
1511
1511
|
});
|
|
1512
1512
|
const wrappedCallback = callback
|
|
@@ -1558,7 +1558,7 @@ class ConfigServiceV2Client {
|
|
|
1558
1558
|
this._gaxModule.routingHeader.fromParams({
|
|
1559
1559
|
name: request.name ?? '',
|
|
1560
1560
|
});
|
|
1561
|
-
this.initialize().catch(
|
|
1561
|
+
this.initialize().catch(err => {
|
|
1562
1562
|
throw err;
|
|
1563
1563
|
});
|
|
1564
1564
|
const wrappedCallback = callback
|
|
@@ -1606,7 +1606,7 @@ class ConfigServiceV2Client {
|
|
|
1606
1606
|
options = options || {};
|
|
1607
1607
|
options.otherArgs = options.otherArgs || {};
|
|
1608
1608
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1609
|
-
this.initialize().catch(
|
|
1609
|
+
this.initialize().catch(err => {
|
|
1610
1610
|
throw err;
|
|
1611
1611
|
});
|
|
1612
1612
|
const wrappedCallback = callback
|
|
@@ -1658,7 +1658,7 @@ class ConfigServiceV2Client {
|
|
|
1658
1658
|
this._gaxModule.routingHeader.fromParams({
|
|
1659
1659
|
parent: request.parent ?? '',
|
|
1660
1660
|
});
|
|
1661
|
-
this.initialize().catch(
|
|
1661
|
+
this.initialize().catch(err => {
|
|
1662
1662
|
throw err;
|
|
1663
1663
|
});
|
|
1664
1664
|
const wrappedCallback = callback
|
|
@@ -1721,7 +1721,7 @@ class ConfigServiceV2Client {
|
|
|
1721
1721
|
});
|
|
1722
1722
|
const defaultCallSettings = this._defaults['listBuckets'];
|
|
1723
1723
|
const callSettings = defaultCallSettings.merge(options);
|
|
1724
|
-
this.initialize().catch(
|
|
1724
|
+
this.initialize().catch(err => {
|
|
1725
1725
|
throw err;
|
|
1726
1726
|
});
|
|
1727
1727
|
this._log.info('listBuckets stream %j', request);
|
|
@@ -1776,7 +1776,7 @@ class ConfigServiceV2Client {
|
|
|
1776
1776
|
});
|
|
1777
1777
|
const defaultCallSettings = this._defaults['listBuckets'];
|
|
1778
1778
|
const callSettings = defaultCallSettings.merge(options);
|
|
1779
|
-
this.initialize().catch(
|
|
1779
|
+
this.initialize().catch(err => {
|
|
1780
1780
|
throw err;
|
|
1781
1781
|
});
|
|
1782
1782
|
this._log.info('listBuckets iterate %j', request);
|
|
@@ -1799,7 +1799,7 @@ class ConfigServiceV2Client {
|
|
|
1799
1799
|
this._gaxModule.routingHeader.fromParams({
|
|
1800
1800
|
parent: request.parent ?? '',
|
|
1801
1801
|
});
|
|
1802
|
-
this.initialize().catch(
|
|
1802
|
+
this.initialize().catch(err => {
|
|
1803
1803
|
throw err;
|
|
1804
1804
|
});
|
|
1805
1805
|
const wrappedCallback = callback
|
|
@@ -1856,7 +1856,7 @@ class ConfigServiceV2Client {
|
|
|
1856
1856
|
});
|
|
1857
1857
|
const defaultCallSettings = this._defaults['listViews'];
|
|
1858
1858
|
const callSettings = defaultCallSettings.merge(options);
|
|
1859
|
-
this.initialize().catch(
|
|
1859
|
+
this.initialize().catch(err => {
|
|
1860
1860
|
throw err;
|
|
1861
1861
|
});
|
|
1862
1862
|
this._log.info('listViews stream %j', request);
|
|
@@ -1905,7 +1905,7 @@ class ConfigServiceV2Client {
|
|
|
1905
1905
|
});
|
|
1906
1906
|
const defaultCallSettings = this._defaults['listViews'];
|
|
1907
1907
|
const callSettings = defaultCallSettings.merge(options);
|
|
1908
|
-
this.initialize().catch(
|
|
1908
|
+
this.initialize().catch(err => {
|
|
1909
1909
|
throw err;
|
|
1910
1910
|
});
|
|
1911
1911
|
this._log.info('listViews iterate %j', request);
|
|
@@ -1928,7 +1928,7 @@ class ConfigServiceV2Client {
|
|
|
1928
1928
|
this._gaxModule.routingHeader.fromParams({
|
|
1929
1929
|
parent: request.parent ?? '',
|
|
1930
1930
|
});
|
|
1931
|
-
this.initialize().catch(
|
|
1931
|
+
this.initialize().catch(err => {
|
|
1932
1932
|
throw err;
|
|
1933
1933
|
});
|
|
1934
1934
|
const wrappedCallback = callback
|
|
@@ -1987,7 +1987,7 @@ class ConfigServiceV2Client {
|
|
|
1987
1987
|
});
|
|
1988
1988
|
const defaultCallSettings = this._defaults['listSinks'];
|
|
1989
1989
|
const callSettings = defaultCallSettings.merge(options);
|
|
1990
|
-
this.initialize().catch(
|
|
1990
|
+
this.initialize().catch(err => {
|
|
1991
1991
|
throw err;
|
|
1992
1992
|
});
|
|
1993
1993
|
this._log.info('listSinks stream %j', request);
|
|
@@ -2038,7 +2038,7 @@ class ConfigServiceV2Client {
|
|
|
2038
2038
|
});
|
|
2039
2039
|
const defaultCallSettings = this._defaults['listSinks'];
|
|
2040
2040
|
const callSettings = defaultCallSettings.merge(options);
|
|
2041
|
-
this.initialize().catch(
|
|
2041
|
+
this.initialize().catch(err => {
|
|
2042
2042
|
throw err;
|
|
2043
2043
|
});
|
|
2044
2044
|
this._log.info('listSinks iterate %j', request);
|
|
@@ -2061,7 +2061,7 @@ class ConfigServiceV2Client {
|
|
|
2061
2061
|
this._gaxModule.routingHeader.fromParams({
|
|
2062
2062
|
parent: request.parent ?? '',
|
|
2063
2063
|
});
|
|
2064
|
-
this.initialize().catch(
|
|
2064
|
+
this.initialize().catch(err => {
|
|
2065
2065
|
throw err;
|
|
2066
2066
|
});
|
|
2067
2067
|
const wrappedCallback = callback
|
|
@@ -2117,7 +2117,7 @@ class ConfigServiceV2Client {
|
|
|
2117
2117
|
});
|
|
2118
2118
|
const defaultCallSettings = this._defaults['listLinks'];
|
|
2119
2119
|
const callSettings = defaultCallSettings.merge(options);
|
|
2120
|
-
this.initialize().catch(
|
|
2120
|
+
this.initialize().catch(err => {
|
|
2121
2121
|
throw err;
|
|
2122
2122
|
});
|
|
2123
2123
|
this._log.info('listLinks stream %j', request);
|
|
@@ -2165,7 +2165,7 @@ class ConfigServiceV2Client {
|
|
|
2165
2165
|
});
|
|
2166
2166
|
const defaultCallSettings = this._defaults['listLinks'];
|
|
2167
2167
|
const callSettings = defaultCallSettings.merge(options);
|
|
2168
|
-
this.initialize().catch(
|
|
2168
|
+
this.initialize().catch(err => {
|
|
2169
2169
|
throw err;
|
|
2170
2170
|
});
|
|
2171
2171
|
this._log.info('listLinks iterate %j', request);
|
|
@@ -2188,7 +2188,7 @@ class ConfigServiceV2Client {
|
|
|
2188
2188
|
this._gaxModule.routingHeader.fromParams({
|
|
2189
2189
|
parent: request.parent ?? '',
|
|
2190
2190
|
});
|
|
2191
|
-
this.initialize().catch(
|
|
2191
|
+
this.initialize().catch(err => {
|
|
2192
2192
|
throw err;
|
|
2193
2193
|
});
|
|
2194
2194
|
const wrappedCallback = callback
|
|
@@ -2247,7 +2247,7 @@ class ConfigServiceV2Client {
|
|
|
2247
2247
|
});
|
|
2248
2248
|
const defaultCallSettings = this._defaults['listExclusions'];
|
|
2249
2249
|
const callSettings = defaultCallSettings.merge(options);
|
|
2250
|
-
this.initialize().catch(
|
|
2250
|
+
this.initialize().catch(err => {
|
|
2251
2251
|
throw err;
|
|
2252
2252
|
});
|
|
2253
2253
|
this._log.info('listExclusions stream %j', request);
|
|
@@ -2298,7 +2298,7 @@ class ConfigServiceV2Client {
|
|
|
2298
2298
|
});
|
|
2299
2299
|
const defaultCallSettings = this._defaults['listExclusions'];
|
|
2300
2300
|
const callSettings = defaultCallSettings.merge(options);
|
|
2301
|
-
this.initialize().catch(
|
|
2301
|
+
this.initialize().catch(err => {
|
|
2302
2302
|
throw err;
|
|
2303
2303
|
});
|
|
2304
2304
|
this._log.info('listExclusions iterate %j', request);
|
|
@@ -3787,7 +3787,7 @@ class ConfigServiceV2Client {
|
|
|
3787
3787
|
*/
|
|
3788
3788
|
close() {
|
|
3789
3789
|
if (this.configServiceV2Stub && !this._terminated) {
|
|
3790
|
-
return this.configServiceV2Stub.then(
|
|
3790
|
+
return this.configServiceV2Stub.then(stub => {
|
|
3791
3791
|
this._log.info('ending gRPC channel');
|
|
3792
3792
|
this._terminated = true;
|
|
3793
3793
|
stub.close();
|