Skip to content

Commit c41ff07

Browse files
feat: [Many APIs] await/catch promises, and update listOperationsAsync return type (#6182)
* feat: await/catch promises, and update listOperationsAsync return type PiperOrigin-RevId: 738212310 Source-Link: googleapis/googleapis@803b234 Source-Link: googleapis/googleapis-gen@4f44bd2 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFkcy1hZG1hbmFnZXIvLk93bEJvdC55YW1sIiwiaCI6IjRmNDRiZDJiYWE4ZGQ1YTcxY2EwY2ViZGIxNjRjM2MzNDM0MWVkODcifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFpLWdlbmVyYXRpdmVsYW5ndWFnZS8uT3dsQm90LnlhbWwiLCJoIjoiNGY0NGJkMmJhYThkZDVhNzFjYTBjZWJkYjE2NGMzYzM0MzQxZWQ4NyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFuYWx5dGljcy1hZG1pbi8uT3dsQm90LnlhbWwiLCJoIjoiNGY0NGJkMmJhYThkZDVhNzFjYTBjZWJkYjE2NGMzYzM0MzQxZWQ4NyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFuYWx5dGljcy1kYXRhLy5Pd2xCb3QueWFtbCIsImgiOiI0ZjQ0YmQyYmFhOGRkNWE3MWNhMGNlYmRiMTY0YzNjMzQzNDFlZDg3In0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFwaS1hcGlrZXlzLy5Pd2xCb3QueWFtbCIsImgiOiI0ZjQ0YmQyYmFhOGRkNWE3MWNhMGNlYmRiMTY0YzNjMzQzNDFlZDg3In0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFwaS1jbG91ZHF1b3Rhcy8uT3dsQm90LnlhbWwiLCJoIjoiNGY0NGJkMmJhYThkZDVhNzFjYTBjZWJkYjE2NGMzYzM0MzQxZWQ4NyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFwaS1zZXJ2aWNlY29udHJvbC8uT3dsQm90LnlhbWwiLCJoIjoiNGY0NGJkMmJhYThkZDVhNzFjYTBjZWJkYjE2NGMzYzM0MzQxZWQ4NyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFwaS1zZXJ2aWNlbWFuYWdlbWVudC8uT3dsQm90LnlhbWwiLCJoIjoiNGY0NGJkMmJhYThkZDVhNzFjYTBjZWJkYjE2NGMzYzM0MzQxZWQ4NyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFwaS1zZXJ2aWNldXNhZ2UvLk93bEJvdC55YW1sIiwiaCI6IjRmNDRiZDJiYWE4ZGQ1YTcxY2EwY2ViZGIxNjRjM2MzNDM0MWVkODcifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFwcGVuZ2luZS8uT3dsQm90LnlhbWwiLCJoIjoiNGY0NGJkMmJhYThkZDVhNzFjYTBjZWJkYjE2NGMzYzM0MzQxZWQ4NyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFwcHMtbWVldC8uT3dsQm90LnlhbWwiLCJoIjoiNGY0NGJkMmJhYThkZDVhNzFjYTBjZWJkYjE2NGMzYzM0MzQxZWQ4NyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFyZWExMjAtdGFibGVzLy5Pd2xCb3QueWFtbCIsImgiOiI0ZjQ0YmQyYmFhOGRkNWE3MWNhMGNlYmRiMTY0YzNjMzQzNDFlZDg3In0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNoYXQvLk93bEJvdC55YW1sIiwiaCI6IjRmNDRiZDJiYWE4ZGQ1YTcxY2EwY2ViZGIxNjRjM2MzNDM0MWVkODcifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFjY2Vzc2FwcHJvdmFsLy5Pd2xCb3QueWFtbCIsImgiOiI0ZjQ0YmQyYmFhOGRkNWE3MWNhMGNlYmRiMTY0YzNjMzQzNDFlZDg3In0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFkdmlzb3J5bm90aWZpY2F0aW9ucy8uT3dsQm90LnlhbWwiLCJoIjoiNGY0NGJkMmJhYThkZDVhNzFjYTBjZWJkYjE2NGMzYzM0MzQxZWQ4NyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFsbG95ZGIvLk93bEJvdC55YW1sIiwiaCI6IjRmNDRiZDJiYWE4ZGQ1YTcxY2EwY2ViZGIxNjRjM2MzNDM0MWVkODcifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFwaWdhdGV3YXkvLk93bEJvdC55YW1sIiwiaCI6IjRmNDRiZDJiYWE4ZGQ1YTcxY2EwY2ViZGIxNjRjM2MzNDM0MWVkODcifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFwaWdlZWNvbm5lY3QvLk93bEJvdC55YW1sIiwiaCI6IjRmNDRiZDJiYWE4ZGQ1YTcxY2EwY2ViZGIxNjRjM2MzNDM0MWVkODcifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFwaWdlZXJlZ2lzdHJ5Ly5Pd2xCb3QueWFtbCIsImgiOiI0ZjQ0YmQyYmFhOGRkNWE3MWNhMGNlYmRiMTY0YzNjMzQzNDFlZDg3In0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFwaWh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGY0NGJkMmJhYThkZDVhNzFjYTBjZWJkYjE2NGMzYzM0MzQxZWQ4NyJ9 * chore: run post processor * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: update gax * undo changes in aiplatform * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Sofia Leon <[email protected]> Co-authored-by: sofisl <[email protected]>
1 parent f79da88 commit c41ff07

277 files changed

Lines changed: 9377 additions & 6955 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/google-ads-admanager/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"prelint": "cd samples; npm link ../; npm i"
4646
},
4747
"dependencies": {
48-
"google-gax": "^5.0.0-rc.0"
48+
"google-gax": "^5.0.1-rc.0"
4949
},
5050
"devDependencies": {
5151
"@types/mocha": "^10.0.10",

packages/google-ads-admanager/samples/generated/v1/snippet_metadata_google.ads.admanager.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"clientLibrary": {
33
"name": "nodejs-admanager",
4-
"version": "0.1.1",
4+
"version": "0.2.0",
55
"language": "TYPESCRIPT",
66
"apis": [
77
{

packages/google-ads-admanager/src/v1/ad_unit_service_client.ts

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,9 @@ export class AdUnitServiceClient {
521521
this._gaxModule.routingHeader.fromParams({
522522
name: request.name ?? '',
523523
});
524-
this.initialize();
524+
this.initialize().catch(err => {
525+
throw err;
526+
});
525527
this._log.info('getAdUnit request %j', request);
526528
const wrappedCallback:
527529
| Callback<
@@ -655,7 +657,9 @@ export class AdUnitServiceClient {
655657
this._gaxModule.routingHeader.fromParams({
656658
parent: request.parent ?? '',
657659
});
658-
this.initialize();
660+
this.initialize().catch(err => {
661+
throw err;
662+
});
659663
const wrappedCallback:
660664
| PaginationCallback<
661665
protos.google.ads.admanager.v1.IListAdUnitsRequest,
@@ -738,7 +742,9 @@ export class AdUnitServiceClient {
738742
});
739743
const defaultCallSettings = this._defaults['listAdUnits'];
740744
const callSettings = defaultCallSettings.merge(options);
741-
this.initialize();
745+
this.initialize().catch(err => {
746+
throw err;
747+
});
742748
this._log.info('listAdUnits stream %j', request);
743749
return this.descriptors.page.listAdUnits.createStream(
744750
this.innerApiCalls.listAdUnits as GaxCall,
@@ -803,7 +809,9 @@ export class AdUnitServiceClient {
803809
});
804810
const defaultCallSettings = this._defaults['listAdUnits'];
805811
const callSettings = defaultCallSettings.merge(options);
806-
this.initialize();
812+
this.initialize().catch(err => {
813+
throw err;
814+
});
807815
this._log.info('listAdUnits iterate %j', request);
808816
return this.descriptors.page.listAdUnits.asyncIterate(
809817
this.innerApiCalls['listAdUnits'] as GaxCall,
@@ -923,7 +931,9 @@ export class AdUnitServiceClient {
923931
this._gaxModule.routingHeader.fromParams({
924932
parent: request.parent ?? '',
925933
});
926-
this.initialize();
934+
this.initialize().catch(err => {
935+
throw err;
936+
});
927937
const wrappedCallback:
928938
| PaginationCallback<
929939
protos.google.ads.admanager.v1.IListAdUnitSizesRequest,
@@ -1006,7 +1016,9 @@ export class AdUnitServiceClient {
10061016
});
10071017
const defaultCallSettings = this._defaults['listAdUnitSizes'];
10081018
const callSettings = defaultCallSettings.merge(options);
1009-
this.initialize();
1019+
this.initialize().catch(err => {
1020+
throw err;
1021+
});
10101022
this._log.info('listAdUnitSizes stream %j', request);
10111023
return this.descriptors.page.listAdUnitSizes.createStream(
10121024
this.innerApiCalls.listAdUnitSizes as GaxCall,
@@ -1071,7 +1083,9 @@ export class AdUnitServiceClient {
10711083
});
10721084
const defaultCallSettings = this._defaults['listAdUnitSizes'];
10731085
const callSettings = defaultCallSettings.merge(options);
1074-
this.initialize();
1086+
this.initialize().catch(err => {
1087+
throw err;
1088+
});
10751089
this._log.info('listAdUnitSizes iterate %j', request);
10761090
return this.descriptors.page.listAdUnitSizes.asyncIterate(
10771091
this.innerApiCalls['listAdUnitSizes'] as GaxCall,

packages/google-ads-admanager/src/v1/company_service_client.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,9 @@ export class CompanyServiceClient {
512512
this._gaxModule.routingHeader.fromParams({
513513
name: request.name ?? '',
514514
});
515-
this.initialize();
515+
this.initialize().catch(err => {
516+
throw err;
517+
});
516518
this._log.info('getCompany request %j', request);
517519
const wrappedCallback:
518520
| Callback<
@@ -646,7 +648,9 @@ export class CompanyServiceClient {
646648
this._gaxModule.routingHeader.fromParams({
647649
parent: request.parent ?? '',
648650
});
649-
this.initialize();
651+
this.initialize().catch(err => {
652+
throw err;
653+
});
650654
const wrappedCallback:
651655
| PaginationCallback<
652656
protos.google.ads.admanager.v1.IListCompaniesRequest,
@@ -729,7 +733,9 @@ export class CompanyServiceClient {
729733
});
730734
const defaultCallSettings = this._defaults['listCompanies'];
731735
const callSettings = defaultCallSettings.merge(options);
732-
this.initialize();
736+
this.initialize().catch(err => {
737+
throw err;
738+
});
733739
this._log.info('listCompanies stream %j', request);
734740
return this.descriptors.page.listCompanies.createStream(
735741
this.innerApiCalls.listCompanies as GaxCall,
@@ -794,7 +800,9 @@ export class CompanyServiceClient {
794800
});
795801
const defaultCallSettings = this._defaults['listCompanies'];
796802
const callSettings = defaultCallSettings.merge(options);
797-
this.initialize();
803+
this.initialize().catch(err => {
804+
throw err;
805+
});
798806
this._log.info('listCompanies iterate %j', request);
799807
return this.descriptors.page.listCompanies.asyncIterate(
800808
this.innerApiCalls['listCompanies'] as GaxCall,

packages/google-ads-admanager/src/v1/custom_field_service_client.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,9 @@ export class CustomFieldServiceClient {
517517
this._gaxModule.routingHeader.fromParams({
518518
name: request.name ?? '',
519519
});
520-
this.initialize();
520+
this.initialize().catch(err => {
521+
throw err;
522+
});
521523
this._log.info('getCustomField request %j', request);
522524
const wrappedCallback:
523525
| Callback<
@@ -659,7 +661,9 @@ export class CustomFieldServiceClient {
659661
this._gaxModule.routingHeader.fromParams({
660662
parent: request.parent ?? '',
661663
});
662-
this.initialize();
664+
this.initialize().catch(err => {
665+
throw err;
666+
});
663667
const wrappedCallback:
664668
| PaginationCallback<
665669
protos.google.ads.admanager.v1.IListCustomFieldsRequest,
@@ -742,7 +746,9 @@ export class CustomFieldServiceClient {
742746
});
743747
const defaultCallSettings = this._defaults['listCustomFields'];
744748
const callSettings = defaultCallSettings.merge(options);
745-
this.initialize();
749+
this.initialize().catch(err => {
750+
throw err;
751+
});
746752
this._log.info('listCustomFields stream %j', request);
747753
return this.descriptors.page.listCustomFields.createStream(
748754
this.innerApiCalls.listCustomFields as GaxCall,
@@ -807,7 +813,9 @@ export class CustomFieldServiceClient {
807813
});
808814
const defaultCallSettings = this._defaults['listCustomFields'];
809815
const callSettings = defaultCallSettings.merge(options);
810-
this.initialize();
816+
this.initialize().catch(err => {
817+
throw err;
818+
});
811819
this._log.info('listCustomFields iterate %j', request);
812820
return this.descriptors.page.listCustomFields.asyncIterate(
813821
this.innerApiCalls['listCustomFields'] as GaxCall,

packages/google-ads-admanager/src/v1/custom_targeting_key_service_client.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,9 @@ export class CustomTargetingKeyServiceClient {
526526
this._gaxModule.routingHeader.fromParams({
527527
name: request.name ?? '',
528528
});
529-
this.initialize();
529+
this.initialize().catch(err => {
530+
throw err;
531+
});
530532
this._log.info('getCustomTargetingKey request %j', request);
531533
const wrappedCallback:
532534
| Callback<
@@ -671,7 +673,9 @@ export class CustomTargetingKeyServiceClient {
671673
this._gaxModule.routingHeader.fromParams({
672674
parent: request.parent ?? '',
673675
});
674-
this.initialize();
676+
this.initialize().catch(err => {
677+
throw err;
678+
});
675679
const wrappedCallback:
676680
| PaginationCallback<
677681
protos.google.ads.admanager.v1.IListCustomTargetingKeysRequest,
@@ -754,7 +758,9 @@ export class CustomTargetingKeyServiceClient {
754758
});
755759
const defaultCallSettings = this._defaults['listCustomTargetingKeys'];
756760
const callSettings = defaultCallSettings.merge(options);
757-
this.initialize();
761+
this.initialize().catch(err => {
762+
throw err;
763+
});
758764
this._log.info('listCustomTargetingKeys stream %j', request);
759765
return this.descriptors.page.listCustomTargetingKeys.createStream(
760766
this.innerApiCalls.listCustomTargetingKeys as GaxCall,
@@ -819,7 +825,9 @@ export class CustomTargetingKeyServiceClient {
819825
});
820826
const defaultCallSettings = this._defaults['listCustomTargetingKeys'];
821827
const callSettings = defaultCallSettings.merge(options);
822-
this.initialize();
828+
this.initialize().catch(err => {
829+
throw err;
830+
});
823831
this._log.info('listCustomTargetingKeys iterate %j', request);
824832
return this.descriptors.page.listCustomTargetingKeys.asyncIterate(
825833
this.innerApiCalls['listCustomTargetingKeys'] as GaxCall,

packages/google-ads-admanager/src/v1/custom_targeting_value_service_client.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,9 @@ export class CustomTargetingValueServiceClient {
532532
this._gaxModule.routingHeader.fromParams({
533533
name: request.name ?? '',
534534
});
535-
this.initialize();
535+
this.initialize().catch(err => {
536+
throw err;
537+
});
536538
this._log.info('getCustomTargetingValue request %j', request);
537539
const wrappedCallback:
538540
| Callback<
@@ -680,7 +682,9 @@ export class CustomTargetingValueServiceClient {
680682
this._gaxModule.routingHeader.fromParams({
681683
parent: request.parent ?? '',
682684
});
683-
this.initialize();
685+
this.initialize().catch(err => {
686+
throw err;
687+
});
684688
const wrappedCallback:
685689
| PaginationCallback<
686690
protos.google.ads.admanager.v1.IListCustomTargetingValuesRequest,
@@ -766,7 +770,9 @@ export class CustomTargetingValueServiceClient {
766770
});
767771
const defaultCallSettings = this._defaults['listCustomTargetingValues'];
768772
const callSettings = defaultCallSettings.merge(options);
769-
this.initialize();
773+
this.initialize().catch(err => {
774+
throw err;
775+
});
770776
this._log.info('listCustomTargetingValues stream %j', request);
771777
return this.descriptors.page.listCustomTargetingValues.createStream(
772778
this.innerApiCalls.listCustomTargetingValues as GaxCall,
@@ -834,7 +840,9 @@ export class CustomTargetingValueServiceClient {
834840
});
835841
const defaultCallSettings = this._defaults['listCustomTargetingValues'];
836842
const callSettings = defaultCallSettings.merge(options);
837-
this.initialize();
843+
this.initialize().catch(err => {
844+
throw err;
845+
});
838846
this._log.info('listCustomTargetingValues iterate %j', request);
839847
return this.descriptors.page.listCustomTargetingValues.asyncIterate(
840848
this.innerApiCalls['listCustomTargetingValues'] as GaxCall,

packages/google-ads-admanager/src/v1/entity_signals_mapping_service_client.ts

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,9 @@ export class EntitySignalsMappingServiceClient {
536536
this._gaxModule.routingHeader.fromParams({
537537
name: request.name ?? '',
538538
});
539-
this.initialize();
539+
this.initialize().catch(err => {
540+
throw err;
541+
});
540542
this._log.info('getEntitySignalsMapping request %j', request);
541543
const wrappedCallback:
542544
| Callback<
@@ -664,7 +666,9 @@ export class EntitySignalsMappingServiceClient {
664666
this._gaxModule.routingHeader.fromParams({
665667
parent: request.parent ?? '',
666668
});
667-
this.initialize();
669+
this.initialize().catch(err => {
670+
throw err;
671+
});
668672
this._log.info('createEntitySignalsMapping request %j', request);
669673
const wrappedCallback:
670674
| Callback<
@@ -796,7 +800,9 @@ export class EntitySignalsMappingServiceClient {
796800
this._gaxModule.routingHeader.fromParams({
797801
'entity_signals_mapping.name': request.entitySignalsMapping!.name ?? '',
798802
});
799-
this.initialize();
803+
this.initialize().catch(err => {
804+
throw err;
805+
});
800806
this._log.info('updateEntitySignalsMapping request %j', request);
801807
const wrappedCallback:
802808
| Callback<
@@ -926,7 +932,9 @@ export class EntitySignalsMappingServiceClient {
926932
this._gaxModule.routingHeader.fromParams({
927933
parent: request.parent ?? '',
928934
});
929-
this.initialize();
935+
this.initialize().catch(err => {
936+
throw err;
937+
});
930938
this._log.info('batchCreateEntitySignalsMappings request %j', request);
931939
const wrappedCallback:
932940
| Callback<
@@ -1062,7 +1070,9 @@ export class EntitySignalsMappingServiceClient {
10621070
this._gaxModule.routingHeader.fromParams({
10631071
parent: request.parent ?? '',
10641072
});
1065-
this.initialize();
1073+
this.initialize().catch(err => {
1074+
throw err;
1075+
});
10661076
this._log.info('batchUpdateEntitySignalsMappings request %j', request);
10671077
const wrappedCallback:
10681078
| Callback<
@@ -1215,7 +1225,9 @@ export class EntitySignalsMappingServiceClient {
12151225
this._gaxModule.routingHeader.fromParams({
12161226
parent: request.parent ?? '',
12171227
});
1218-
this.initialize();
1228+
this.initialize().catch(err => {
1229+
throw err;
1230+
});
12191231
const wrappedCallback:
12201232
| PaginationCallback<
12211233
protos.google.ads.admanager.v1.IListEntitySignalsMappingsRequest,
@@ -1300,7 +1312,9 @@ export class EntitySignalsMappingServiceClient {
13001312
});
13011313
const defaultCallSettings = this._defaults['listEntitySignalsMappings'];
13021314
const callSettings = defaultCallSettings.merge(options);
1303-
this.initialize();
1315+
this.initialize().catch(err => {
1316+
throw err;
1317+
});
13041318
this._log.info('listEntitySignalsMappings stream %j', request);
13051319
return this.descriptors.page.listEntitySignalsMappings.createStream(
13061320
this.innerApiCalls.listEntitySignalsMappings as GaxCall,
@@ -1367,7 +1381,9 @@ export class EntitySignalsMappingServiceClient {
13671381
});
13681382
const defaultCallSettings = this._defaults['listEntitySignalsMappings'];
13691383
const callSettings = defaultCallSettings.merge(options);
1370-
this.initialize();
1384+
this.initialize().catch(err => {
1385+
throw err;
1386+
});
13711387
this._log.info('listEntitySignalsMappings iterate %j', request);
13721388
return this.descriptors.page.listEntitySignalsMappings.asyncIterate(
13731389
this.innerApiCalls['listEntitySignalsMappings'] as GaxCall,

packages/google-ads-admanager/src/v1/network_service_client.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,9 @@ export class NetworkServiceClient {
499499
this._gaxModule.routingHeader.fromParams({
500500
name: request.name ?? '',
501501
});
502-
this.initialize();
502+
this.initialize().catch(err => {
503+
throw err;
504+
});
503505
this._log.info('getNetwork request %j', request);
504506
const wrappedCallback:
505507
| Callback<
@@ -601,7 +603,9 @@ export class NetworkServiceClient {
601603
options = options || {};
602604
options.otherArgs = options.otherArgs || {};
603605
options.otherArgs.headers = options.otherArgs.headers || {};
604-
this.initialize();
606+
this.initialize().catch(err => {
607+
throw err;
608+
});
605609
this._log.info('listNetworks request %j', request);
606610
const wrappedCallback:
607611
| Callback<

0 commit comments

Comments
 (0)