Skip to content

Commit

Permalink
fix: make request optional in all cases (#19)
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: googleapis/googleapis-gen@27e4c88
  • Loading branch information
gcf-owl-bot[bot] authored Jun 23, 2021
1 parent cdc68e3 commit 9dd7054
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 51 deletions.
2 changes: 1 addition & 1 deletion packages/google-api-serviceusage/.jsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = {
copyright: 'Copyright 2021 Google LLC',
includeDate: false,
sourceFiles: false,
systemName: '@google-cloud/serviceusage',
systemName: '@google-cloud/service-usage',
theme: 'lumen',
default: {
outputSourceFiles: false
Expand Down
24 changes: 12 additions & 12 deletions packages/google-api-serviceusage/src/v1/service_usage_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export class ServiceUsageClient {
// -- Service calls --
// -------------------
getService(
request: protos.google.api.serviceusage.v1.IGetServiceRequest,
request?: protos.google.api.serviceusage.v1.IGetServiceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -404,7 +404,7 @@ export class ServiceUsageClient {
* const [response] = await client.getService(request);
*/
getService(
request: protos.google.api.serviceusage.v1.IGetServiceRequest,
request?: protos.google.api.serviceusage.v1.IGetServiceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -445,7 +445,7 @@ export class ServiceUsageClient {
return this.innerApiCalls.getService(request, options, callback);
}
batchGetServices(
request: protos.google.api.serviceusage.v1.IBatchGetServicesRequest,
request?: protos.google.api.serviceusage.v1.IBatchGetServicesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -505,7 +505,7 @@ export class ServiceUsageClient {
* const [response] = await client.batchGetServices(request);
*/
batchGetServices(
request: protos.google.api.serviceusage.v1.IBatchGetServicesRequest,
request?: protos.google.api.serviceusage.v1.IBatchGetServicesRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -549,7 +549,7 @@ export class ServiceUsageClient {
}

enableService(
request: protos.google.api.serviceusage.v1.IEnableServiceRequest,
request?: protos.google.api.serviceusage.v1.IEnableServiceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -615,7 +615,7 @@ export class ServiceUsageClient {
* const [response] = await operation.promise();
*/
enableService(
request: protos.google.api.serviceusage.v1.IEnableServiceRequest,
request?: protos.google.api.serviceusage.v1.IEnableServiceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -700,7 +700,7 @@ export class ServiceUsageClient {
>;
}
disableService(
request: protos.google.api.serviceusage.v1.IDisableServiceRequest,
request?: protos.google.api.serviceusage.v1.IDisableServiceRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -776,7 +776,7 @@ export class ServiceUsageClient {
* const [response] = await operation.promise();
*/
disableService(
request: protos.google.api.serviceusage.v1.IDisableServiceRequest,
request?: protos.google.api.serviceusage.v1.IDisableServiceRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -861,7 +861,7 @@ export class ServiceUsageClient {
>;
}
batchEnableServices(
request: protos.google.api.serviceusage.v1.IBatchEnableServicesRequest,
request?: protos.google.api.serviceusage.v1.IBatchEnableServicesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -936,7 +936,7 @@ export class ServiceUsageClient {
* const [response] = await operation.promise();
*/
batchEnableServices(
request: protos.google.api.serviceusage.v1.IBatchEnableServicesRequest,
request?: protos.google.api.serviceusage.v1.IBatchEnableServicesRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1021,7 +1021,7 @@ export class ServiceUsageClient {
>;
}
listServices(
request: protos.google.api.serviceusage.v1.IListServicesRequest,
request?: protos.google.api.serviceusage.v1.IListServicesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1097,7 +1097,7 @@ export class ServiceUsageClient {
* for more details and examples.
*/
listServices(
request: protos.google.api.serviceusage.v1.IListServicesRequest,
request?: protos.google.api.serviceusage.v1.IListServicesRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
Loading

0 comments on commit 9dd7054

Please sign in to comment.