@google-cloud/apikeys 2.0.0 → 2.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.1.0](https://github.com/googleapis/google-cloud-node/compare/apikeys-v2.0.0...apikeys-v2.1.0) (2025-03-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* [Many APIs] await/catch promises, and update listOperationsAsync return type ([#6182](https://github.com/googleapis/google-cloud-node/issues/6182)) ([c41ff07](https://github.com/googleapis/google-cloud-node/commit/c41ff0729b65a1207978b4029d6369cc0552e0bf))
|
|
9
|
+
|
|
3
10
|
## [2.0.0](https://github.com/googleapis/google-cloud-node/compare/apikeys-v1.3.1...apikeys-v2.0.0) (2025-03-18)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -536,7 +536,7 @@ export declare class ApiKeysClient {
|
|
|
536
536
|
* // doThingsWith(response)
|
|
537
537
|
* ```
|
|
538
538
|
*/
|
|
539
|
-
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.
|
|
539
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
|
540
540
|
/**
|
|
541
541
|
* Starts asynchronous cancellation on a long-running operation. The server
|
|
542
542
|
* makes a best effort to cancel the operation, but success is not
|
|
@@ -352,7 +352,9 @@ class ApiKeysClient {
|
|
|
352
352
|
this._gaxModule.routingHeader.fromParams({
|
|
353
353
|
name: request.name ?? '',
|
|
354
354
|
});
|
|
355
|
-
this.initialize()
|
|
355
|
+
this.initialize().catch(err => {
|
|
356
|
+
throw err;
|
|
357
|
+
});
|
|
356
358
|
this._log.info('getKey request %j', request);
|
|
357
359
|
const wrappedCallback = callback
|
|
358
360
|
? (error, response, options, rawResponse) => {
|
|
@@ -384,7 +386,9 @@ class ApiKeysClient {
|
|
|
384
386
|
this._gaxModule.routingHeader.fromParams({
|
|
385
387
|
name: request.name ?? '',
|
|
386
388
|
});
|
|
387
|
-
this.initialize()
|
|
389
|
+
this.initialize().catch(err => {
|
|
390
|
+
throw err;
|
|
391
|
+
});
|
|
388
392
|
this._log.info('getKeyString request %j', request);
|
|
389
393
|
const wrappedCallback = callback
|
|
390
394
|
? (error, response, options, rawResponse) => {
|
|
@@ -412,7 +416,9 @@ class ApiKeysClient {
|
|
|
412
416
|
options = options || {};
|
|
413
417
|
options.otherArgs = options.otherArgs || {};
|
|
414
418
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
415
|
-
this.initialize()
|
|
419
|
+
this.initialize().catch(err => {
|
|
420
|
+
throw err;
|
|
421
|
+
});
|
|
416
422
|
this._log.info('lookupKey request %j', request);
|
|
417
423
|
const wrappedCallback = callback
|
|
418
424
|
? (error, response, options, rawResponse) => {
|
|
@@ -444,7 +450,9 @@ class ApiKeysClient {
|
|
|
444
450
|
this._gaxModule.routingHeader.fromParams({
|
|
445
451
|
parent: request.parent ?? '',
|
|
446
452
|
});
|
|
447
|
-
this.initialize()
|
|
453
|
+
this.initialize().catch(err => {
|
|
454
|
+
throw err;
|
|
455
|
+
});
|
|
448
456
|
const wrappedCallback = callback
|
|
449
457
|
? (error, response, rawResponse, _) => {
|
|
450
458
|
this._log.info('createKey response %j', rawResponse);
|
|
@@ -494,7 +502,9 @@ class ApiKeysClient {
|
|
|
494
502
|
this._gaxModule.routingHeader.fromParams({
|
|
495
503
|
'key.name': request.key.name ?? '',
|
|
496
504
|
});
|
|
497
|
-
this.initialize()
|
|
505
|
+
this.initialize().catch(err => {
|
|
506
|
+
throw err;
|
|
507
|
+
});
|
|
498
508
|
const wrappedCallback = callback
|
|
499
509
|
? (error, response, rawResponse, _) => {
|
|
500
510
|
this._log.info('updateKey response %j', rawResponse);
|
|
@@ -544,7 +554,9 @@ class ApiKeysClient {
|
|
|
544
554
|
this._gaxModule.routingHeader.fromParams({
|
|
545
555
|
name: request.name ?? '',
|
|
546
556
|
});
|
|
547
|
-
this.initialize()
|
|
557
|
+
this.initialize().catch(err => {
|
|
558
|
+
throw err;
|
|
559
|
+
});
|
|
548
560
|
const wrappedCallback = callback
|
|
549
561
|
? (error, response, rawResponse, _) => {
|
|
550
562
|
this._log.info('deleteKey response %j', rawResponse);
|
|
@@ -594,7 +606,9 @@ class ApiKeysClient {
|
|
|
594
606
|
this._gaxModule.routingHeader.fromParams({
|
|
595
607
|
name: request.name ?? '',
|
|
596
608
|
});
|
|
597
|
-
this.initialize()
|
|
609
|
+
this.initialize().catch(err => {
|
|
610
|
+
throw err;
|
|
611
|
+
});
|
|
598
612
|
const wrappedCallback = callback
|
|
599
613
|
? (error, response, rawResponse, _) => {
|
|
600
614
|
this._log.info('undeleteKey response %j', rawResponse);
|
|
@@ -644,7 +658,9 @@ class ApiKeysClient {
|
|
|
644
658
|
this._gaxModule.routingHeader.fromParams({
|
|
645
659
|
parent: request.parent ?? '',
|
|
646
660
|
});
|
|
647
|
-
this.initialize()
|
|
661
|
+
this.initialize().catch(err => {
|
|
662
|
+
throw err;
|
|
663
|
+
});
|
|
648
664
|
const wrappedCallback = callback
|
|
649
665
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
650
666
|
this._log.info('listKeys values %j', values);
|
|
@@ -694,7 +710,9 @@ class ApiKeysClient {
|
|
|
694
710
|
});
|
|
695
711
|
const defaultCallSettings = this._defaults['listKeys'];
|
|
696
712
|
const callSettings = defaultCallSettings.merge(options);
|
|
697
|
-
this.initialize()
|
|
713
|
+
this.initialize().catch(err => {
|
|
714
|
+
throw err;
|
|
715
|
+
});
|
|
698
716
|
this._log.info('listKeys stream %j', request);
|
|
699
717
|
return this.descriptors.page.listKeys.createStream(this.innerApiCalls.listKeys, request, callSettings);
|
|
700
718
|
}
|
|
@@ -736,7 +754,9 @@ class ApiKeysClient {
|
|
|
736
754
|
});
|
|
737
755
|
const defaultCallSettings = this._defaults['listKeys'];
|
|
738
756
|
const callSettings = defaultCallSettings.merge(options);
|
|
739
|
-
this.initialize()
|
|
757
|
+
this.initialize().catch(err => {
|
|
758
|
+
throw err;
|
|
759
|
+
});
|
|
740
760
|
this._log.info('listKeys iterate %j', request);
|
|
741
761
|
return this.descriptors.page.listKeys.asyncIterate(this.innerApiCalls['listKeys'], request, callSettings);
|
|
742
762
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@google-cloud/apikeys",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "API Keys API client for Node.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"test": "c8 mocha build/test"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"google-gax": "^5.0.
|
|
49
|
+
"google-gax": "^5.0.1-rc.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/mocha": "^10.0.10",
|