Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
fix: make request optional in all cases (#377)
Browse files Browse the repository at this point in the history
... chore: update gapic-generator-ruby to the latest commit chore: release gapic-generator-typescript 1.5.0

Committer: @miraleung
PiperOrigin-RevId: 380641501

Source-Link: googleapis/googleapis@076f7e9

Source-Link: https://github.com/googleapis/googleapis-gen/commit/27e4c88b4048e5f56508d4e1aa417d60a3380892
  • Loading branch information
gcf-owl-bot[bot] authored Jun 22, 2021
1 parent 86c084f commit 4e09949
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
32 changes: 16 additions & 16 deletions src/v1/cloud_scheduler_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export class CloudSchedulerClient {
// -- Service calls --
// -------------------
getJob(
request: protos.google.cloud.scheduler.v1.IGetJobRequest,
request?: protos.google.cloud.scheduler.v1.IGetJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -358,7 +358,7 @@ export class CloudSchedulerClient {
* const [response] = await client.getJob(request);
*/
getJob(
request: protos.google.cloud.scheduler.v1.IGetJobRequest,
request?: protos.google.cloud.scheduler.v1.IGetJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -397,7 +397,7 @@ export class CloudSchedulerClient {
return this.innerApiCalls.getJob(request, options, callback);
}
createJob(
request: protos.google.cloud.scheduler.v1.ICreateJobRequest,
request?: protos.google.cloud.scheduler.v1.ICreateJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -448,7 +448,7 @@ export class CloudSchedulerClient {
* const [response] = await client.createJob(request);
*/
createJob(
request: protos.google.cloud.scheduler.v1.ICreateJobRequest,
request?: protos.google.cloud.scheduler.v1.ICreateJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -487,7 +487,7 @@ export class CloudSchedulerClient {
return this.innerApiCalls.createJob(request, options, callback);
}
updateJob(
request: protos.google.cloud.scheduler.v1.IUpdateJobRequest,
request?: protos.google.cloud.scheduler.v1.IUpdateJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -544,7 +544,7 @@ export class CloudSchedulerClient {
* const [response] = await client.updateJob(request);
*/
updateJob(
request: protos.google.cloud.scheduler.v1.IUpdateJobRequest,
request?: protos.google.cloud.scheduler.v1.IUpdateJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -583,7 +583,7 @@ export class CloudSchedulerClient {
return this.innerApiCalls.updateJob(request, options, callback);
}
deleteJob(
request: protos.google.cloud.scheduler.v1.IDeleteJobRequest,
request?: protos.google.cloud.scheduler.v1.IDeleteJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -628,7 +628,7 @@ export class CloudSchedulerClient {
* const [response] = await client.deleteJob(request);
*/
deleteJob(
request: protos.google.cloud.scheduler.v1.IDeleteJobRequest,
request?: protos.google.cloud.scheduler.v1.IDeleteJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -667,7 +667,7 @@ export class CloudSchedulerClient {
return this.innerApiCalls.deleteJob(request, options, callback);
}
pauseJob(
request: protos.google.cloud.scheduler.v1.IPauseJobRequest,
request?: protos.google.cloud.scheduler.v1.IPauseJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -718,7 +718,7 @@ export class CloudSchedulerClient {
* const [response] = await client.pauseJob(request);
*/
pauseJob(
request: protos.google.cloud.scheduler.v1.IPauseJobRequest,
request?: protos.google.cloud.scheduler.v1.IPauseJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -757,7 +757,7 @@ export class CloudSchedulerClient {
return this.innerApiCalls.pauseJob(request, options, callback);
}
resumeJob(
request: protos.google.cloud.scheduler.v1.IResumeJobRequest,
request?: protos.google.cloud.scheduler.v1.IResumeJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -807,7 +807,7 @@ export class CloudSchedulerClient {
* const [response] = await client.resumeJob(request);
*/
resumeJob(
request: protos.google.cloud.scheduler.v1.IResumeJobRequest,
request?: protos.google.cloud.scheduler.v1.IResumeJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -846,7 +846,7 @@ export class CloudSchedulerClient {
return this.innerApiCalls.resumeJob(request, options, callback);
}
runJob(
request: protos.google.cloud.scheduler.v1.IRunJobRequest,
request?: protos.google.cloud.scheduler.v1.IRunJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -894,7 +894,7 @@ export class CloudSchedulerClient {
* const [response] = await client.runJob(request);
*/
runJob(
request: protos.google.cloud.scheduler.v1.IRunJobRequest,
request?: protos.google.cloud.scheduler.v1.IRunJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -934,7 +934,7 @@ export class CloudSchedulerClient {
}

listJobs(
request: protos.google.cloud.scheduler.v1.IListJobsRequest,
request?: protos.google.cloud.scheduler.v1.IListJobsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -997,7 +997,7 @@ export class CloudSchedulerClient {
* for more details and examples.
*/
listJobs(
request: protos.google.cloud.scheduler.v1.IListJobsRequest,
request?: protos.google.cloud.scheduler.v1.IListJobsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
32 changes: 16 additions & 16 deletions src/v1beta1/cloud_scheduler_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export class CloudSchedulerClient {
// -- Service calls --
// -------------------
getJob(
request: protos.google.cloud.scheduler.v1beta1.IGetJobRequest,
request?: protos.google.cloud.scheduler.v1beta1.IGetJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -358,7 +358,7 @@ export class CloudSchedulerClient {
* const [response] = await client.getJob(request);
*/
getJob(
request: protos.google.cloud.scheduler.v1beta1.IGetJobRequest,
request?: protos.google.cloud.scheduler.v1beta1.IGetJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -399,7 +399,7 @@ export class CloudSchedulerClient {
return this.innerApiCalls.getJob(request, options, callback);
}
createJob(
request: protos.google.cloud.scheduler.v1beta1.ICreateJobRequest,
request?: protos.google.cloud.scheduler.v1beta1.ICreateJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -454,7 +454,7 @@ export class CloudSchedulerClient {
* const [response] = await client.createJob(request);
*/
createJob(
request: protos.google.cloud.scheduler.v1beta1.ICreateJobRequest,
request?: protos.google.cloud.scheduler.v1beta1.ICreateJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -497,7 +497,7 @@ export class CloudSchedulerClient {
return this.innerApiCalls.createJob(request, options, callback);
}
updateJob(
request: protos.google.cloud.scheduler.v1beta1.IUpdateJobRequest,
request?: protos.google.cloud.scheduler.v1beta1.IUpdateJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -558,7 +558,7 @@ export class CloudSchedulerClient {
* const [response] = await client.updateJob(request);
*/
updateJob(
request: protos.google.cloud.scheduler.v1beta1.IUpdateJobRequest,
request?: protos.google.cloud.scheduler.v1beta1.IUpdateJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -601,7 +601,7 @@ export class CloudSchedulerClient {
return this.innerApiCalls.updateJob(request, options, callback);
}
deleteJob(
request: protos.google.cloud.scheduler.v1beta1.IDeleteJobRequest,
request?: protos.google.cloud.scheduler.v1beta1.IDeleteJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -650,7 +650,7 @@ export class CloudSchedulerClient {
* const [response] = await client.deleteJob(request);
*/
deleteJob(
request: protos.google.cloud.scheduler.v1beta1.IDeleteJobRequest,
request?: protos.google.cloud.scheduler.v1beta1.IDeleteJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -693,7 +693,7 @@ export class CloudSchedulerClient {
return this.innerApiCalls.deleteJob(request, options, callback);
}
pauseJob(
request: protos.google.cloud.scheduler.v1beta1.IPauseJobRequest,
request?: protos.google.cloud.scheduler.v1beta1.IPauseJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -744,7 +744,7 @@ export class CloudSchedulerClient {
* const [response] = await client.pauseJob(request);
*/
pauseJob(
request: protos.google.cloud.scheduler.v1beta1.IPauseJobRequest,
request?: protos.google.cloud.scheduler.v1beta1.IPauseJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -785,7 +785,7 @@ export class CloudSchedulerClient {
return this.innerApiCalls.pauseJob(request, options, callback);
}
resumeJob(
request: protos.google.cloud.scheduler.v1beta1.IResumeJobRequest,
request?: protos.google.cloud.scheduler.v1beta1.IResumeJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -839,7 +839,7 @@ export class CloudSchedulerClient {
* const [response] = await client.resumeJob(request);
*/
resumeJob(
request: protos.google.cloud.scheduler.v1beta1.IResumeJobRequest,
request?: protos.google.cloud.scheduler.v1beta1.IResumeJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -882,7 +882,7 @@ export class CloudSchedulerClient {
return this.innerApiCalls.resumeJob(request, options, callback);
}
runJob(
request: protos.google.cloud.scheduler.v1beta1.IRunJobRequest,
request?: protos.google.cloud.scheduler.v1beta1.IRunJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -930,7 +930,7 @@ export class CloudSchedulerClient {
* const [response] = await client.runJob(request);
*/
runJob(
request: protos.google.cloud.scheduler.v1beta1.IRunJobRequest,
request?: protos.google.cloud.scheduler.v1beta1.IRunJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -972,7 +972,7 @@ export class CloudSchedulerClient {
}

listJobs(
request: protos.google.cloud.scheduler.v1beta1.IListJobsRequest,
request?: protos.google.cloud.scheduler.v1beta1.IListJobsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1039,7 +1039,7 @@ export class CloudSchedulerClient {
* for more details and examples.
*/
listJobs(
request: protos.google.cloud.scheduler.v1beta1.IListJobsRequest,
request?: protos.google.cloud.scheduler.v1beta1.IListJobsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down

0 comments on commit 4e09949

Please sign in to comment.