diff --git a/packages/google-cloud-scheduler/protos/protos.d.ts b/packages/google-cloud-scheduler/protos/protos.d.ts index 8c963261e7a..2b67e4f6511 100644 --- a/packages/google-cloud-scheduler/protos/protos.d.ts +++ b/packages/google-cloud-scheduler/protos/protos.d.ts @@ -4139,19 +4139,19 @@ export namespace google { public selector: string; /** HttpRule get. */ - public get: string; + public get?: (string|null); /** HttpRule put. */ - public put: string; + public put?: (string|null); /** HttpRule post. */ - public post: string; + public post?: (string|null); /** HttpRule delete. */ - public delete: string; + public delete?: (string|null); /** HttpRule patch. */ - public patch: string; + public patch?: (string|null); /** HttpRule custom. */ public custom?: (google.api.ICustomHttpPattern|null); diff --git a/packages/google-cloud-scheduler/protos/protos.js b/packages/google-cloud-scheduler/protos/protos.js index 7a1070b63e0..af83cd9d21a 100644 --- a/packages/google-cloud-scheduler/protos/protos.js +++ b/packages/google-cloud-scheduler/protos/protos.js @@ -9957,43 +9957,43 @@ /** * HttpRule get. - * @member {string} get + * @member {string|null|undefined} get * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype.get = ""; + HttpRule.prototype.get = null; /** * HttpRule put. - * @member {string} put + * @member {string|null|undefined} put * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype.put = ""; + HttpRule.prototype.put = null; /** * HttpRule post. - * @member {string} post + * @member {string|null|undefined} post * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype.post = ""; + HttpRule.prototype.post = null; /** * HttpRule delete. - * @member {string} delete + * @member {string|null|undefined} delete * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype["delete"] = ""; + HttpRule.prototype["delete"] = null; /** * HttpRule patch. - * @member {string} patch + * @member {string|null|undefined} patch * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype.patch = ""; + HttpRule.prototype.patch = null; /** * HttpRule custom. diff --git a/packages/google-cloud-scheduler/src/v1/cloud_scheduler_client.ts b/packages/google-cloud-scheduler/src/v1/cloud_scheduler_client.ts index 98cf194f3cd..05e7abd4fcd 100644 --- a/packages/google-cloud-scheduler/src/v1/cloud_scheduler_client.ts +++ b/packages/google-cloud-scheduler/src/v1/cloud_scheduler_client.ts @@ -246,13 +246,14 @@ export class CloudSchedulerClient { ]; for (const methodName of cloudSchedulerStubMethods) { const callPromise = this.cloudSchedulerStub.then( - stub => (...args: Array<{}>) => { - if (this._terminated) { - return Promise.reject('The client has already been closed.'); - } - const func = stub[methodName]; - return func.apply(stub, args); - }, + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, (err: Error | null | undefined) => () => { throw err; } @@ -401,11 +402,10 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.getJob(request, options, callback); } @@ -492,11 +492,10 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.createJob(request, options, callback); } @@ -589,11 +588,10 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - 'job.name': request.job!.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'job.name': request.job!.name || '', + }); this.initialize(); return this.innerApiCalls.updateJob(request, options, callback); } @@ -674,11 +672,10 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.deleteJob(request, options, callback); } @@ -765,11 +762,10 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.pauseJob(request, options, callback); } @@ -855,11 +851,10 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.resumeJob(request, options, callback); } @@ -943,11 +938,10 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.runJob(request, options, callback); } @@ -1047,11 +1041,10 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.listJobs(request, options, callback); } @@ -1098,11 +1091,10 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.listJobs.createStream( @@ -1160,17 +1152,16 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.listJobs.asyncIterate( this.innerApiCalls['listJobs'] as GaxCall, - (request as unknown) as RequestType, + request as unknown as RequestType, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-scheduler/src/v1beta1/cloud_scheduler_client.ts b/packages/google-cloud-scheduler/src/v1beta1/cloud_scheduler_client.ts index 2096ca86294..d80f9e52255 100644 --- a/packages/google-cloud-scheduler/src/v1beta1/cloud_scheduler_client.ts +++ b/packages/google-cloud-scheduler/src/v1beta1/cloud_scheduler_client.ts @@ -246,13 +246,14 @@ export class CloudSchedulerClient { ]; for (const methodName of cloudSchedulerStubMethods) { const callPromise = this.cloudSchedulerStub.then( - stub => (...args: Array<{}>) => { - if (this._terminated) { - return Promise.reject('The client has already been closed.'); - } - const func = stub[methodName]; - return func.apply(stub, args); - }, + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, (err: Error | null | undefined) => () => { throw err; } @@ -403,11 +404,10 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.getJob(request, options, callback); } @@ -502,11 +502,10 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.createJob(request, options, callback); } @@ -607,11 +606,10 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - 'job.name': request.job!.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'job.name': request.job!.name || '', + }); this.initialize(); return this.innerApiCalls.updateJob(request, options, callback); } @@ -700,11 +698,10 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.deleteJob(request, options, callback); } @@ -793,11 +790,10 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.pauseJob(request, options, callback); } @@ -891,11 +887,10 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.resumeJob(request, options, callback); } @@ -981,11 +976,10 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.runJob(request, options, callback); } @@ -1093,11 +1087,10 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.listJobs(request, options, callback); } @@ -1144,11 +1137,10 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.listJobs.createStream( @@ -1206,17 +1198,16 @@ export class CloudSchedulerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.listJobs.asyncIterate( this.innerApiCalls['listJobs'] as GaxCall, - (request as unknown) as RequestType, + request as unknown as RequestType, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-scheduler/test/gapic_cloud_scheduler_v1.ts b/packages/google-cloud-scheduler/test/gapic_cloud_scheduler_v1.ts index a35e0e6f920..8dd941faeea 100644 --- a/packages/google-cloud-scheduler/test/gapic_cloud_scheduler_v1.ts +++ b/packages/google-cloud-scheduler/test/gapic_cloud_scheduler_v1.ts @@ -28,10 +28,9 @@ import {PassThrough} from 'stream'; import {protobuf} from 'google-gax'; function generateSampleMessage(instance: T) { - const filledObject = (instance.constructor as typeof protobuf.Message).toObject( - instance as protobuf.Message, - {defaults: true} - ); + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); return (instance.constructor as typeof protobuf.Message).fromObject( filledObject ) as T; @@ -249,9 +248,8 @@ describe('v1.CloudSchedulerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.cloud.scheduler.v1.Job() ); - client.innerApiCalls.getJob = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.getJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.getJob( request, @@ -358,9 +356,8 @@ describe('v1.CloudSchedulerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.cloud.scheduler.v1.Job() ); - client.innerApiCalls.createJob = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.createJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.createJob( request, @@ -469,9 +466,8 @@ describe('v1.CloudSchedulerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.cloud.scheduler.v1.Job() ); - client.innerApiCalls.updateJob = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.updateJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.updateJob( request, @@ -579,9 +575,8 @@ describe('v1.CloudSchedulerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteJob = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.deleteJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.deleteJob( request, @@ -688,9 +683,8 @@ describe('v1.CloudSchedulerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.cloud.scheduler.v1.Job() ); - client.innerApiCalls.pauseJob = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.pauseJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.pauseJob( request, @@ -797,9 +791,8 @@ describe('v1.CloudSchedulerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.cloud.scheduler.v1.Job() ); - client.innerApiCalls.resumeJob = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.resumeJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.resumeJob( request, @@ -906,9 +899,8 @@ describe('v1.CloudSchedulerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.cloud.scheduler.v1.Job() ); - client.innerApiCalls.runJob = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.runJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.runJob( request, @@ -1019,9 +1011,8 @@ describe('v1.CloudSchedulerClient', () => { generateSampleMessage(new protos.google.cloud.scheduler.v1.Job()), generateSampleMessage(new protos.google.cloud.scheduler.v1.Job()), ]; - client.innerApiCalls.listJobs = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.listJobs = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.listJobs( request, @@ -1090,9 +1081,8 @@ describe('v1.CloudSchedulerClient', () => { generateSampleMessage(new protos.google.cloud.scheduler.v1.Job()), generateSampleMessage(new protos.google.cloud.scheduler.v1.Job()), ]; - client.descriptors.page.listJobs.createStream = stubPageStreamingCall( - expectedResponse - ); + client.descriptors.page.listJobs.createStream = + stubPageStreamingCall(expectedResponse); const stream = client.listJobsStream(request); const promise = new Promise((resolve, reject) => { const responses: protos.google.cloud.scheduler.v1.Job[] = []; @@ -1178,9 +1168,8 @@ describe('v1.CloudSchedulerClient', () => { generateSampleMessage(new protos.google.cloud.scheduler.v1.Job()), generateSampleMessage(new protos.google.cloud.scheduler.v1.Job()), ]; - client.descriptors.page.listJobs.asyncIterate = stubAsyncIterationCall( - expectedResponse - ); + client.descriptors.page.listJobs.asyncIterate = + stubAsyncIterationCall(expectedResponse); const responses: protos.google.cloud.scheduler.v1.IJob[] = []; const iterable = client.listJobsAsync(request); for await (const resource of iterable) { diff --git a/packages/google-cloud-scheduler/test/gapic_cloud_scheduler_v1beta1.ts b/packages/google-cloud-scheduler/test/gapic_cloud_scheduler_v1beta1.ts index 794c7a0959f..e4c86ec2bc9 100644 --- a/packages/google-cloud-scheduler/test/gapic_cloud_scheduler_v1beta1.ts +++ b/packages/google-cloud-scheduler/test/gapic_cloud_scheduler_v1beta1.ts @@ -28,10 +28,9 @@ import {PassThrough} from 'stream'; import {protobuf} from 'google-gax'; function generateSampleMessage(instance: T) { - const filledObject = (instance.constructor as typeof protobuf.Message).toObject( - instance as protobuf.Message, - {defaults: true} - ); + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); return (instance.constructor as typeof protobuf.Message).fromObject( filledObject ) as T; @@ -249,9 +248,8 @@ describe('v1beta1.CloudSchedulerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.cloud.scheduler.v1beta1.Job() ); - client.innerApiCalls.getJob = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.getJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.getJob( request, @@ -358,9 +356,8 @@ describe('v1beta1.CloudSchedulerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.cloud.scheduler.v1beta1.Job() ); - client.innerApiCalls.createJob = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.createJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.createJob( request, @@ -469,9 +466,8 @@ describe('v1beta1.CloudSchedulerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.cloud.scheduler.v1beta1.Job() ); - client.innerApiCalls.updateJob = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.updateJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.updateJob( request, @@ -579,9 +575,8 @@ describe('v1beta1.CloudSchedulerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteJob = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.deleteJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.deleteJob( request, @@ -688,9 +683,8 @@ describe('v1beta1.CloudSchedulerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.cloud.scheduler.v1beta1.Job() ); - client.innerApiCalls.pauseJob = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.pauseJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.pauseJob( request, @@ -797,9 +791,8 @@ describe('v1beta1.CloudSchedulerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.cloud.scheduler.v1beta1.Job() ); - client.innerApiCalls.resumeJob = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.resumeJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.resumeJob( request, @@ -906,9 +899,8 @@ describe('v1beta1.CloudSchedulerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.cloud.scheduler.v1beta1.Job() ); - client.innerApiCalls.runJob = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.runJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.runJob( request, @@ -1019,9 +1011,8 @@ describe('v1beta1.CloudSchedulerClient', () => { generateSampleMessage(new protos.google.cloud.scheduler.v1beta1.Job()), generateSampleMessage(new protos.google.cloud.scheduler.v1beta1.Job()), ]; - client.innerApiCalls.listJobs = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.listJobs = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.listJobs( request, @@ -1090,9 +1081,8 @@ describe('v1beta1.CloudSchedulerClient', () => { generateSampleMessage(new protos.google.cloud.scheduler.v1beta1.Job()), generateSampleMessage(new protos.google.cloud.scheduler.v1beta1.Job()), ]; - client.descriptors.page.listJobs.createStream = stubPageStreamingCall( - expectedResponse - ); + client.descriptors.page.listJobs.createStream = + stubPageStreamingCall(expectedResponse); const stream = client.listJobsStream(request); const promise = new Promise((resolve, reject) => { const responses: protos.google.cloud.scheduler.v1beta1.Job[] = []; @@ -1184,9 +1174,8 @@ describe('v1beta1.CloudSchedulerClient', () => { generateSampleMessage(new protos.google.cloud.scheduler.v1beta1.Job()), generateSampleMessage(new protos.google.cloud.scheduler.v1beta1.Job()), ]; - client.descriptors.page.listJobs.asyncIterate = stubAsyncIterationCall( - expectedResponse - ); + client.descriptors.page.listJobs.asyncIterate = + stubAsyncIterationCall(expectedResponse); const responses: protos.google.cloud.scheduler.v1beta1.IJob[] = []; const iterable = client.listJobsAsync(request); for await (const resource of iterable) {