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

Commit fcdb1a5

Browse files
fix: make request optional in all cases (#19)
... 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
1 parent 85760ac commit fcdb1a5

4 files changed

Lines changed: 100 additions & 51 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
- run: rm -rf node_modules
2525
- run: npm install
2626
- run: npm test
27+
env:
28+
MOCHA_THROW_DEPRECATION: false
2729
windows:
2830
runs-on: windows-latest
2931
steps:
@@ -33,6 +35,8 @@ jobs:
3335
node-version: 14
3436
- run: npm install
3537
- run: npm test
38+
env:
39+
MOCHA_THROW_DEPRECATION: false
3640
lint:
3741
runs-on: ubuntu-latest
3842
steps:

.jsdoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = {
4343
copyright: 'Copyright 2021 Google LLC',
4444
includeDate: false,
4545
sourceFiles: false,
46-
systemName: '@google-cloud/serviceusage',
46+
systemName: '@google-cloud/service-usage',
4747
theme: 'lumen',
4848
default: {
4949
outputSourceFiles: false

src/v1/service_usage_client.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ export class ServiceUsageClient {
356356
// -- Service calls --
357357
// -------------------
358358
getService(
359-
request: protos.google.api.serviceusage.v1.IGetServiceRequest,
359+
request?: protos.google.api.serviceusage.v1.IGetServiceRequest,
360360
options?: CallOptions
361361
): Promise<
362362
[
@@ -404,7 +404,7 @@ export class ServiceUsageClient {
404404
* const [response] = await client.getService(request);
405405
*/
406406
getService(
407-
request: protos.google.api.serviceusage.v1.IGetServiceRequest,
407+
request?: protos.google.api.serviceusage.v1.IGetServiceRequest,
408408
optionsOrCallback?:
409409
| CallOptions
410410
| Callback<
@@ -445,7 +445,7 @@ export class ServiceUsageClient {
445445
return this.innerApiCalls.getService(request, options, callback);
446446
}
447447
batchGetServices(
448-
request: protos.google.api.serviceusage.v1.IBatchGetServicesRequest,
448+
request?: protos.google.api.serviceusage.v1.IBatchGetServicesRequest,
449449
options?: CallOptions
450450
): Promise<
451451
[
@@ -505,7 +505,7 @@ export class ServiceUsageClient {
505505
* const [response] = await client.batchGetServices(request);
506506
*/
507507
batchGetServices(
508-
request: protos.google.api.serviceusage.v1.IBatchGetServicesRequest,
508+
request?: protos.google.api.serviceusage.v1.IBatchGetServicesRequest,
509509
optionsOrCallback?:
510510
| CallOptions
511511
| Callback<
@@ -549,7 +549,7 @@ export class ServiceUsageClient {
549549
}
550550

551551
enableService(
552-
request: protos.google.api.serviceusage.v1.IEnableServiceRequest,
552+
request?: protos.google.api.serviceusage.v1.IEnableServiceRequest,
553553
options?: CallOptions
554554
): Promise<
555555
[
@@ -615,7 +615,7 @@ export class ServiceUsageClient {
615615
* const [response] = await operation.promise();
616616
*/
617617
enableService(
618-
request: protos.google.api.serviceusage.v1.IEnableServiceRequest,
618+
request?: protos.google.api.serviceusage.v1.IEnableServiceRequest,
619619
optionsOrCallback?:
620620
| CallOptions
621621
| Callback<
@@ -700,7 +700,7 @@ export class ServiceUsageClient {
700700
>;
701701
}
702702
disableService(
703-
request: protos.google.api.serviceusage.v1.IDisableServiceRequest,
703+
request?: protos.google.api.serviceusage.v1.IDisableServiceRequest,
704704
options?: CallOptions
705705
): Promise<
706706
[
@@ -776,7 +776,7 @@ export class ServiceUsageClient {
776776
* const [response] = await operation.promise();
777777
*/
778778
disableService(
779-
request: protos.google.api.serviceusage.v1.IDisableServiceRequest,
779+
request?: protos.google.api.serviceusage.v1.IDisableServiceRequest,
780780
optionsOrCallback?:
781781
| CallOptions
782782
| Callback<
@@ -861,7 +861,7 @@ export class ServiceUsageClient {
861861
>;
862862
}
863863
batchEnableServices(
864-
request: protos.google.api.serviceusage.v1.IBatchEnableServicesRequest,
864+
request?: protos.google.api.serviceusage.v1.IBatchEnableServicesRequest,
865865
options?: CallOptions
866866
): Promise<
867867
[
@@ -936,7 +936,7 @@ export class ServiceUsageClient {
936936
* const [response] = await operation.promise();
937937
*/
938938
batchEnableServices(
939-
request: protos.google.api.serviceusage.v1.IBatchEnableServicesRequest,
939+
request?: protos.google.api.serviceusage.v1.IBatchEnableServicesRequest,
940940
optionsOrCallback?:
941941
| CallOptions
942942
| Callback<
@@ -1021,7 +1021,7 @@ export class ServiceUsageClient {
10211021
>;
10221022
}
10231023
listServices(
1024-
request: protos.google.api.serviceusage.v1.IListServicesRequest,
1024+
request?: protos.google.api.serviceusage.v1.IListServicesRequest,
10251025
options?: CallOptions
10261026
): Promise<
10271027
[
@@ -1097,7 +1097,7 @@ export class ServiceUsageClient {
10971097
* for more details and examples.
10981098
*/
10991099
listServices(
1100-
request: protos.google.api.serviceusage.v1.IListServicesRequest,
1100+
request?: protos.google.api.serviceusage.v1.IListServicesRequest,
11011101
optionsOrCallback?:
11021102
| CallOptions
11031103
| PaginationCallback<

0 commit comments

Comments
 (0)