Skip to content

Commit 1612b1e

Browse files
chore: new owl bot post processor docker image (#41)
gcr.io/repo-automation-bots/owlbot-nodejs:latest@sha256:f93bb861d6f12574437bb9aee426b71eafd63b419669ff0ed029f4b7e7162e3f Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 466e0c3 commit 1612b1e

File tree

4 files changed

+150
-165
lines changed

4 files changed

+150
-165
lines changed

packages/google-cloud-networkconnectivity/protos/protos.d.ts

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-networkconnectivity/protos/protos.js

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-networkconnectivity/src/v1alpha1/hub_service_client.ts

+66-79
Original file line numberDiff line numberDiff line change
@@ -353,13 +353,14 @@ export class HubServiceClient {
353353
];
354354
for (const methodName of hubServiceStubMethods) {
355355
const callPromise = this.hubServiceStub.then(
356-
stub => (...args: Array<{}>) => {
357-
if (this._terminated) {
358-
return Promise.reject('The client has already been closed.');
359-
}
360-
const func = stub[methodName];
361-
return func.apply(stub, args);
362-
},
356+
stub =>
357+
(...args: Array<{}>) => {
358+
if (this._terminated) {
359+
return Promise.reject('The client has already been closed.');
360+
}
361+
const func = stub[methodName];
362+
return func.apply(stub, args);
363+
},
363364
(err: Error | null | undefined) => () => {
364365
throw err;
365366
}
@@ -524,11 +525,10 @@ export class HubServiceClient {
524525
options = options || {};
525526
options.otherArgs = options.otherArgs || {};
526527
options.otherArgs.headers = options.otherArgs.headers || {};
527-
options.otherArgs.headers[
528-
'x-goog-request-params'
529-
] = gax.routingHeader.fromParams({
530-
name: request.name || '',
531-
});
528+
options.otherArgs.headers['x-goog-request-params'] =
529+
gax.routingHeader.fromParams({
530+
name: request.name || '',
531+
});
532532
this.initialize();
533533
return this.innerApiCalls.getHub(request, options, callback);
534534
}
@@ -622,11 +622,10 @@ export class HubServiceClient {
622622
options = options || {};
623623
options.otherArgs = options.otherArgs || {};
624624
options.otherArgs.headers = options.otherArgs.headers || {};
625-
options.otherArgs.headers[
626-
'x-goog-request-params'
627-
] = gax.routingHeader.fromParams({
628-
name: request.name || '',
629-
});
625+
options.otherArgs.headers['x-goog-request-params'] =
626+
gax.routingHeader.fromParams({
627+
name: request.name || '',
628+
});
630629
this.initialize();
631630
return this.innerApiCalls.getSpoke(request, options, callback);
632631
}
@@ -746,11 +745,10 @@ export class HubServiceClient {
746745
options = options || {};
747746
options.otherArgs = options.otherArgs || {};
748747
options.otherArgs.headers = options.otherArgs.headers || {};
749-
options.otherArgs.headers[
750-
'x-goog-request-params'
751-
] = gax.routingHeader.fromParams({
752-
parent: request.parent || '',
753-
});
748+
options.otherArgs.headers['x-goog-request-params'] =
749+
gax.routingHeader.fromParams({
750+
parent: request.parent || '',
751+
});
754752
this.initialize();
755753
return this.innerApiCalls.createHub(request, options, callback);
756754
}
@@ -908,11 +906,10 @@ export class HubServiceClient {
908906
options = options || {};
909907
options.otherArgs = options.otherArgs || {};
910908
options.otherArgs.headers = options.otherArgs.headers || {};
911-
options.otherArgs.headers[
912-
'x-goog-request-params'
913-
] = gax.routingHeader.fromParams({
914-
'hub.name': request.hub!.name || '',
915-
});
909+
options.otherArgs.headers['x-goog-request-params'] =
910+
gax.routingHeader.fromParams({
911+
'hub.name': request.hub!.name || '',
912+
});
916913
this.initialize();
917914
return this.innerApiCalls.updateHub(request, options, callback);
918915
}
@@ -1064,11 +1061,10 @@ export class HubServiceClient {
10641061
options = options || {};
10651062
options.otherArgs = options.otherArgs || {};
10661063
options.otherArgs.headers = options.otherArgs.headers || {};
1067-
options.otherArgs.headers[
1068-
'x-goog-request-params'
1069-
] = gax.routingHeader.fromParams({
1070-
name: request.name || '',
1071-
});
1064+
options.otherArgs.headers['x-goog-request-params'] =
1065+
gax.routingHeader.fromParams({
1066+
name: request.name || '',
1067+
});
10721068
this.initialize();
10731069
return this.innerApiCalls.deleteHub(request, options, callback);
10741070
}
@@ -1224,11 +1220,10 @@ export class HubServiceClient {
12241220
options = options || {};
12251221
options.otherArgs = options.otherArgs || {};
12261222
options.otherArgs.headers = options.otherArgs.headers || {};
1227-
options.otherArgs.headers[
1228-
'x-goog-request-params'
1229-
] = gax.routingHeader.fromParams({
1230-
parent: request.parent || '',
1231-
});
1223+
options.otherArgs.headers['x-goog-request-params'] =
1224+
gax.routingHeader.fromParams({
1225+
parent: request.parent || '',
1226+
});
12321227
this.initialize();
12331228
return this.innerApiCalls.createSpoke(request, options, callback);
12341229
}
@@ -1386,11 +1381,10 @@ export class HubServiceClient {
13861381
options = options || {};
13871382
options.otherArgs = options.otherArgs || {};
13881383
options.otherArgs.headers = options.otherArgs.headers || {};
1389-
options.otherArgs.headers[
1390-
'x-goog-request-params'
1391-
] = gax.routingHeader.fromParams({
1392-
'spoke.name': request.spoke!.name || '',
1393-
});
1384+
options.otherArgs.headers['x-goog-request-params'] =
1385+
gax.routingHeader.fromParams({
1386+
'spoke.name': request.spoke!.name || '',
1387+
});
13941388
this.initialize();
13951389
return this.innerApiCalls.updateSpoke(request, options, callback);
13961390
}
@@ -1542,11 +1536,10 @@ export class HubServiceClient {
15421536
options = options || {};
15431537
options.otherArgs = options.otherArgs || {};
15441538
options.otherArgs.headers = options.otherArgs.headers || {};
1545-
options.otherArgs.headers[
1546-
'x-goog-request-params'
1547-
] = gax.routingHeader.fromParams({
1548-
name: request.name || '',
1549-
});
1539+
options.otherArgs.headers['x-goog-request-params'] =
1540+
gax.routingHeader.fromParams({
1541+
name: request.name || '',
1542+
});
15501543
this.initialize();
15511544
return this.innerApiCalls.deleteSpoke(request, options, callback);
15521545
}
@@ -1682,11 +1675,10 @@ export class HubServiceClient {
16821675
options = options || {};
16831676
options.otherArgs = options.otherArgs || {};
16841677
options.otherArgs.headers = options.otherArgs.headers || {};
1685-
options.otherArgs.headers[
1686-
'x-goog-request-params'
1687-
] = gax.routingHeader.fromParams({
1688-
parent: request.parent || '',
1689-
});
1678+
options.otherArgs.headers['x-goog-request-params'] =
1679+
gax.routingHeader.fromParams({
1680+
parent: request.parent || '',
1681+
});
16901682
this.initialize();
16911683
return this.innerApiCalls.listHubs(request, options, callback);
16921684
}
@@ -1725,11 +1717,10 @@ export class HubServiceClient {
17251717
options = options || {};
17261718
options.otherArgs = options.otherArgs || {};
17271719
options.otherArgs.headers = options.otherArgs.headers || {};
1728-
options.otherArgs.headers[
1729-
'x-goog-request-params'
1730-
] = gax.routingHeader.fromParams({
1731-
parent: request.parent || '',
1732-
});
1720+
options.otherArgs.headers['x-goog-request-params'] =
1721+
gax.routingHeader.fromParams({
1722+
parent: request.parent || '',
1723+
});
17331724
const callSettings = new gax.CallSettings(options);
17341725
this.initialize();
17351726
return this.descriptors.page.listHubs.createStream(
@@ -1779,17 +1770,16 @@ export class HubServiceClient {
17791770
options = options || {};
17801771
options.otherArgs = options.otherArgs || {};
17811772
options.otherArgs.headers = options.otherArgs.headers || {};
1782-
options.otherArgs.headers[
1783-
'x-goog-request-params'
1784-
] = gax.routingHeader.fromParams({
1785-
parent: request.parent || '',
1786-
});
1773+
options.otherArgs.headers['x-goog-request-params'] =
1774+
gax.routingHeader.fromParams({
1775+
parent: request.parent || '',
1776+
});
17871777
options = options || {};
17881778
const callSettings = new gax.CallSettings(options);
17891779
this.initialize();
17901780
return this.descriptors.page.listHubs.asyncIterate(
17911781
this.innerApiCalls['listHubs'] as GaxCall,
1792-
(request as unknown) as RequestType,
1782+
request as unknown as RequestType,
17931783
callSettings
17941784
) as AsyncIterable<protos.google.cloud.networkconnectivity.v1alpha1.IHub>;
17951785
}
@@ -1888,11 +1878,10 @@ export class HubServiceClient {
18881878
options = options || {};
18891879
options.otherArgs = options.otherArgs || {};
18901880
options.otherArgs.headers = options.otherArgs.headers || {};
1891-
options.otherArgs.headers[
1892-
'x-goog-request-params'
1893-
] = gax.routingHeader.fromParams({
1894-
parent: request.parent || '',
1895-
});
1881+
options.otherArgs.headers['x-goog-request-params'] =
1882+
gax.routingHeader.fromParams({
1883+
parent: request.parent || '',
1884+
});
18961885
this.initialize();
18971886
return this.innerApiCalls.listSpokes(request, options, callback);
18981887
}
@@ -1931,11 +1920,10 @@ export class HubServiceClient {
19311920
options = options || {};
19321921
options.otherArgs = options.otherArgs || {};
19331922
options.otherArgs.headers = options.otherArgs.headers || {};
1934-
options.otherArgs.headers[
1935-
'x-goog-request-params'
1936-
] = gax.routingHeader.fromParams({
1937-
parent: request.parent || '',
1938-
});
1923+
options.otherArgs.headers['x-goog-request-params'] =
1924+
gax.routingHeader.fromParams({
1925+
parent: request.parent || '',
1926+
});
19391927
const callSettings = new gax.CallSettings(options);
19401928
this.initialize();
19411929
return this.descriptors.page.listSpokes.createStream(
@@ -1985,17 +1973,16 @@ export class HubServiceClient {
19851973
options = options || {};
19861974
options.otherArgs = options.otherArgs || {};
19871975
options.otherArgs.headers = options.otherArgs.headers || {};
1988-
options.otherArgs.headers[
1989-
'x-goog-request-params'
1990-
] = gax.routingHeader.fromParams({
1991-
parent: request.parent || '',
1992-
});
1976+
options.otherArgs.headers['x-goog-request-params'] =
1977+
gax.routingHeader.fromParams({
1978+
parent: request.parent || '',
1979+
});
19931980
options = options || {};
19941981
const callSettings = new gax.CallSettings(options);
19951982
this.initialize();
19961983
return this.descriptors.page.listSpokes.asyncIterate(
19971984
this.innerApiCalls['listSpokes'] as GaxCall,
1998-
(request as unknown) as RequestType,
1985+
request as unknown as RequestType,
19991986
callSettings
20001987
) as AsyncIterable<protos.google.cloud.networkconnectivity.v1alpha1.ISpoke>;
20011988
}

0 commit comments

Comments
 (0)