Skip to content

Commit e80f5e8

Browse files
chore: new owl bot post processor docker image (#360)
gcr.io/repo-automation-bots/owlbot-nodejs:latest@sha256:f93bb861d6f12574437bb9aee426b71eafd63b419669ff0ed029f4b7e7162e3f
1 parent 9d75ea7 commit e80f5e8

File tree

6 files changed

+159
-199
lines changed

6 files changed

+159
-199
lines changed

packages/google-cloud-scheduler/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-scheduler/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-scheduler/src/v1/cloud_scheduler_client.ts

+49-58
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,14 @@ export class CloudSchedulerClient {
246246
];
247247
for (const methodName of cloudSchedulerStubMethods) {
248248
const callPromise = this.cloudSchedulerStub.then(
249-
stub => (...args: Array<{}>) => {
250-
if (this._terminated) {
251-
return Promise.reject('The client has already been closed.');
252-
}
253-
const func = stub[methodName];
254-
return func.apply(stub, args);
255-
},
249+
stub =>
250+
(...args: Array<{}>) => {
251+
if (this._terminated) {
252+
return Promise.reject('The client has already been closed.');
253+
}
254+
const func = stub[methodName];
255+
return func.apply(stub, args);
256+
},
256257
(err: Error | null | undefined) => () => {
257258
throw err;
258259
}
@@ -401,11 +402,10 @@ export class CloudSchedulerClient {
401402
options = options || {};
402403
options.otherArgs = options.otherArgs || {};
403404
options.otherArgs.headers = options.otherArgs.headers || {};
404-
options.otherArgs.headers[
405-
'x-goog-request-params'
406-
] = gax.routingHeader.fromParams({
407-
name: request.name || '',
408-
});
405+
options.otherArgs.headers['x-goog-request-params'] =
406+
gax.routingHeader.fromParams({
407+
name: request.name || '',
408+
});
409409
this.initialize();
410410
return this.innerApiCalls.getJob(request, options, callback);
411411
}
@@ -492,11 +492,10 @@ export class CloudSchedulerClient {
492492
options = options || {};
493493
options.otherArgs = options.otherArgs || {};
494494
options.otherArgs.headers = options.otherArgs.headers || {};
495-
options.otherArgs.headers[
496-
'x-goog-request-params'
497-
] = gax.routingHeader.fromParams({
498-
parent: request.parent || '',
499-
});
495+
options.otherArgs.headers['x-goog-request-params'] =
496+
gax.routingHeader.fromParams({
497+
parent: request.parent || '',
498+
});
500499
this.initialize();
501500
return this.innerApiCalls.createJob(request, options, callback);
502501
}
@@ -589,11 +588,10 @@ export class CloudSchedulerClient {
589588
options = options || {};
590589
options.otherArgs = options.otherArgs || {};
591590
options.otherArgs.headers = options.otherArgs.headers || {};
592-
options.otherArgs.headers[
593-
'x-goog-request-params'
594-
] = gax.routingHeader.fromParams({
595-
'job.name': request.job!.name || '',
596-
});
591+
options.otherArgs.headers['x-goog-request-params'] =
592+
gax.routingHeader.fromParams({
593+
'job.name': request.job!.name || '',
594+
});
597595
this.initialize();
598596
return this.innerApiCalls.updateJob(request, options, callback);
599597
}
@@ -674,11 +672,10 @@ export class CloudSchedulerClient {
674672
options = options || {};
675673
options.otherArgs = options.otherArgs || {};
676674
options.otherArgs.headers = options.otherArgs.headers || {};
677-
options.otherArgs.headers[
678-
'x-goog-request-params'
679-
] = gax.routingHeader.fromParams({
680-
name: request.name || '',
681-
});
675+
options.otherArgs.headers['x-goog-request-params'] =
676+
gax.routingHeader.fromParams({
677+
name: request.name || '',
678+
});
682679
this.initialize();
683680
return this.innerApiCalls.deleteJob(request, options, callback);
684681
}
@@ -765,11 +762,10 @@ export class CloudSchedulerClient {
765762
options = options || {};
766763
options.otherArgs = options.otherArgs || {};
767764
options.otherArgs.headers = options.otherArgs.headers || {};
768-
options.otherArgs.headers[
769-
'x-goog-request-params'
770-
] = gax.routingHeader.fromParams({
771-
name: request.name || '',
772-
});
765+
options.otherArgs.headers['x-goog-request-params'] =
766+
gax.routingHeader.fromParams({
767+
name: request.name || '',
768+
});
773769
this.initialize();
774770
return this.innerApiCalls.pauseJob(request, options, callback);
775771
}
@@ -855,11 +851,10 @@ export class CloudSchedulerClient {
855851
options = options || {};
856852
options.otherArgs = options.otherArgs || {};
857853
options.otherArgs.headers = options.otherArgs.headers || {};
858-
options.otherArgs.headers[
859-
'x-goog-request-params'
860-
] = gax.routingHeader.fromParams({
861-
name: request.name || '',
862-
});
854+
options.otherArgs.headers['x-goog-request-params'] =
855+
gax.routingHeader.fromParams({
856+
name: request.name || '',
857+
});
863858
this.initialize();
864859
return this.innerApiCalls.resumeJob(request, options, callback);
865860
}
@@ -943,11 +938,10 @@ export class CloudSchedulerClient {
943938
options = options || {};
944939
options.otherArgs = options.otherArgs || {};
945940
options.otherArgs.headers = options.otherArgs.headers || {};
946-
options.otherArgs.headers[
947-
'x-goog-request-params'
948-
] = gax.routingHeader.fromParams({
949-
name: request.name || '',
950-
});
941+
options.otherArgs.headers['x-goog-request-params'] =
942+
gax.routingHeader.fromParams({
943+
name: request.name || '',
944+
});
951945
this.initialize();
952946
return this.innerApiCalls.runJob(request, options, callback);
953947
}
@@ -1047,11 +1041,10 @@ export class CloudSchedulerClient {
10471041
options = options || {};
10481042
options.otherArgs = options.otherArgs || {};
10491043
options.otherArgs.headers = options.otherArgs.headers || {};
1050-
options.otherArgs.headers[
1051-
'x-goog-request-params'
1052-
] = gax.routingHeader.fromParams({
1053-
parent: request.parent || '',
1054-
});
1044+
options.otherArgs.headers['x-goog-request-params'] =
1045+
gax.routingHeader.fromParams({
1046+
parent: request.parent || '',
1047+
});
10551048
this.initialize();
10561049
return this.innerApiCalls.listJobs(request, options, callback);
10571050
}
@@ -1098,11 +1091,10 @@ export class CloudSchedulerClient {
10981091
options = options || {};
10991092
options.otherArgs = options.otherArgs || {};
11001093
options.otherArgs.headers = options.otherArgs.headers || {};
1101-
options.otherArgs.headers[
1102-
'x-goog-request-params'
1103-
] = gax.routingHeader.fromParams({
1104-
parent: request.parent || '',
1105-
});
1094+
options.otherArgs.headers['x-goog-request-params'] =
1095+
gax.routingHeader.fromParams({
1096+
parent: request.parent || '',
1097+
});
11061098
const callSettings = new gax.CallSettings(options);
11071099
this.initialize();
11081100
return this.descriptors.page.listJobs.createStream(
@@ -1160,17 +1152,16 @@ export class CloudSchedulerClient {
11601152
options = options || {};
11611153
options.otherArgs = options.otherArgs || {};
11621154
options.otherArgs.headers = options.otherArgs.headers || {};
1163-
options.otherArgs.headers[
1164-
'x-goog-request-params'
1165-
] = gax.routingHeader.fromParams({
1166-
parent: request.parent || '',
1167-
});
1155+
options.otherArgs.headers['x-goog-request-params'] =
1156+
gax.routingHeader.fromParams({
1157+
parent: request.parent || '',
1158+
});
11681159
options = options || {};
11691160
const callSettings = new gax.CallSettings(options);
11701161
this.initialize();
11711162
return this.descriptors.page.listJobs.asyncIterate(
11721163
this.innerApiCalls['listJobs'] as GaxCall,
1173-
(request as unknown) as RequestType,
1164+
request as unknown as RequestType,
11741165
callSettings
11751166
) as AsyncIterable<protos.google.cloud.scheduler.v1.IJob>;
11761167
}

0 commit comments

Comments
 (0)