Skip to content

Commit a605ccd

Browse files
fix: make request optional in all cases (#290)
... 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
1 parent 63a6060 commit a605ccd

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

packages/google-cloud-recaptchaenterprise/src/v1/recaptcha_enterprise_service_client.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ export class RecaptchaEnterpriseServiceClient {
313313
// -- Service calls --
314314
// -------------------
315315
createAssessment(
316-
request: protos.google.cloud.recaptchaenterprise.v1.ICreateAssessmentRequest,
316+
request?: protos.google.cloud.recaptchaenterprise.v1.ICreateAssessmentRequest,
317317
options?: CallOptions
318318
): Promise<
319319
[
@@ -367,7 +367,7 @@ export class RecaptchaEnterpriseServiceClient {
367367
* const [response] = await client.createAssessment(request);
368368
*/
369369
createAssessment(
370-
request: protos.google.cloud.recaptchaenterprise.v1.ICreateAssessmentRequest,
370+
request?: protos.google.cloud.recaptchaenterprise.v1.ICreateAssessmentRequest,
371371
optionsOrCallback?:
372372
| CallOptions
373373
| Callback<
@@ -413,7 +413,7 @@ export class RecaptchaEnterpriseServiceClient {
413413
return this.innerApiCalls.createAssessment(request, options, callback);
414414
}
415415
annotateAssessment(
416-
request: protos.google.cloud.recaptchaenterprise.v1.IAnnotateAssessmentRequest,
416+
request?: protos.google.cloud.recaptchaenterprise.v1.IAnnotateAssessmentRequest,
417417
options?: CallOptions
418418
): Promise<
419419
[
@@ -468,7 +468,7 @@ export class RecaptchaEnterpriseServiceClient {
468468
* const [response] = await client.annotateAssessment(request);
469469
*/
470470
annotateAssessment(
471-
request: protos.google.cloud.recaptchaenterprise.v1.IAnnotateAssessmentRequest,
471+
request?: protos.google.cloud.recaptchaenterprise.v1.IAnnotateAssessmentRequest,
472472
optionsOrCallback?:
473473
| CallOptions
474474
| Callback<
@@ -514,7 +514,7 @@ export class RecaptchaEnterpriseServiceClient {
514514
return this.innerApiCalls.annotateAssessment(request, options, callback);
515515
}
516516
createKey(
517-
request: protos.google.cloud.recaptchaenterprise.v1.ICreateKeyRequest,
517+
request?: protos.google.cloud.recaptchaenterprise.v1.ICreateKeyRequest,
518518
options?: CallOptions
519519
): Promise<
520520
[
@@ -565,7 +565,7 @@ export class RecaptchaEnterpriseServiceClient {
565565
* const [response] = await client.createKey(request);
566566
*/
567567
createKey(
568-
request: protos.google.cloud.recaptchaenterprise.v1.ICreateKeyRequest,
568+
request?: protos.google.cloud.recaptchaenterprise.v1.ICreateKeyRequest,
569569
optionsOrCallback?:
570570
| CallOptions
571571
| Callback<
@@ -608,7 +608,7 @@ export class RecaptchaEnterpriseServiceClient {
608608
return this.innerApiCalls.createKey(request, options, callback);
609609
}
610610
getKey(
611-
request: protos.google.cloud.recaptchaenterprise.v1.IGetKeyRequest,
611+
request?: protos.google.cloud.recaptchaenterprise.v1.IGetKeyRequest,
612612
options?: CallOptions
613613
): Promise<
614614
[
@@ -657,7 +657,7 @@ export class RecaptchaEnterpriseServiceClient {
657657
* const [response] = await client.getKey(request);
658658
*/
659659
getKey(
660-
request: protos.google.cloud.recaptchaenterprise.v1.IGetKeyRequest,
660+
request?: protos.google.cloud.recaptchaenterprise.v1.IGetKeyRequest,
661661
optionsOrCallback?:
662662
| CallOptions
663663
| Callback<
@@ -700,7 +700,7 @@ export class RecaptchaEnterpriseServiceClient {
700700
return this.innerApiCalls.getKey(request, options, callback);
701701
}
702702
updateKey(
703-
request: protos.google.cloud.recaptchaenterprise.v1.IUpdateKeyRequest,
703+
request?: protos.google.cloud.recaptchaenterprise.v1.IUpdateKeyRequest,
704704
options?: CallOptions
705705
): Promise<
706706
[
@@ -751,7 +751,7 @@ export class RecaptchaEnterpriseServiceClient {
751751
* const [response] = await client.updateKey(request);
752752
*/
753753
updateKey(
754-
request: protos.google.cloud.recaptchaenterprise.v1.IUpdateKeyRequest,
754+
request?: protos.google.cloud.recaptchaenterprise.v1.IUpdateKeyRequest,
755755
optionsOrCallback?:
756756
| CallOptions
757757
| Callback<
@@ -794,7 +794,7 @@ export class RecaptchaEnterpriseServiceClient {
794794
return this.innerApiCalls.updateKey(request, options, callback);
795795
}
796796
deleteKey(
797-
request: protos.google.cloud.recaptchaenterprise.v1.IDeleteKeyRequest,
797+
request?: protos.google.cloud.recaptchaenterprise.v1.IDeleteKeyRequest,
798798
options?: CallOptions
799799
): Promise<
800800
[
@@ -843,7 +843,7 @@ export class RecaptchaEnterpriseServiceClient {
843843
* const [response] = await client.deleteKey(request);
844844
*/
845845
deleteKey(
846-
request: protos.google.cloud.recaptchaenterprise.v1.IDeleteKeyRequest,
846+
request?: protos.google.cloud.recaptchaenterprise.v1.IDeleteKeyRequest,
847847
optionsOrCallback?:
848848
| CallOptions
849849
| Callback<
@@ -887,7 +887,7 @@ export class RecaptchaEnterpriseServiceClient {
887887
}
888888

889889
listKeys(
890-
request: protos.google.cloud.recaptchaenterprise.v1.IListKeysRequest,
890+
request?: protos.google.cloud.recaptchaenterprise.v1.IListKeysRequest,
891891
options?: CallOptions
892892
): Promise<
893893
[
@@ -945,7 +945,7 @@ export class RecaptchaEnterpriseServiceClient {
945945
* for more details and examples.
946946
*/
947947
listKeys(
948-
request: protos.google.cloud.recaptchaenterprise.v1.IListKeysRequest,
948+
request?: protos.google.cloud.recaptchaenterprise.v1.IListKeysRequest,
949949
optionsOrCallback?:
950950
| CallOptions
951951
| PaginationCallback<

packages/google-cloud-recaptchaenterprise/src/v1beta1/recaptcha_enterprise_service_v1_beta1_client.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
313313
// -- Service calls --
314314
// -------------------
315315
createAssessment(
316-
request: protos.google.cloud.recaptchaenterprise.v1beta1.ICreateAssessmentRequest,
316+
request?: protos.google.cloud.recaptchaenterprise.v1beta1.ICreateAssessmentRequest,
317317
options?: CallOptions
318318
): Promise<
319319
[
@@ -367,7 +367,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
367367
* const [response] = await client.createAssessment(request);
368368
*/
369369
createAssessment(
370-
request: protos.google.cloud.recaptchaenterprise.v1beta1.ICreateAssessmentRequest,
370+
request?: protos.google.cloud.recaptchaenterprise.v1beta1.ICreateAssessmentRequest,
371371
optionsOrCallback?:
372372
| CallOptions
373373
| Callback<
@@ -413,7 +413,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
413413
return this.innerApiCalls.createAssessment(request, options, callback);
414414
}
415415
annotateAssessment(
416-
request: protos.google.cloud.recaptchaenterprise.v1beta1.IAnnotateAssessmentRequest,
416+
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IAnnotateAssessmentRequest,
417417
options?: CallOptions
418418
): Promise<
419419
[
@@ -468,7 +468,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
468468
* const [response] = await client.annotateAssessment(request);
469469
*/
470470
annotateAssessment(
471-
request: protos.google.cloud.recaptchaenterprise.v1beta1.IAnnotateAssessmentRequest,
471+
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IAnnotateAssessmentRequest,
472472
optionsOrCallback?:
473473
| CallOptions
474474
| Callback<
@@ -514,7 +514,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
514514
return this.innerApiCalls.annotateAssessment(request, options, callback);
515515
}
516516
createKey(
517-
request: protos.google.cloud.recaptchaenterprise.v1beta1.ICreateKeyRequest,
517+
request?: protos.google.cloud.recaptchaenterprise.v1beta1.ICreateKeyRequest,
518518
options?: CallOptions
519519
): Promise<
520520
[
@@ -568,7 +568,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
568568
* const [response] = await client.createKey(request);
569569
*/
570570
createKey(
571-
request: protos.google.cloud.recaptchaenterprise.v1beta1.ICreateKeyRequest,
571+
request?: protos.google.cloud.recaptchaenterprise.v1beta1.ICreateKeyRequest,
572572
optionsOrCallback?:
573573
| CallOptions
574574
| Callback<
@@ -614,7 +614,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
614614
return this.innerApiCalls.createKey(request, options, callback);
615615
}
616616
getKey(
617-
request: protos.google.cloud.recaptchaenterprise.v1beta1.IGetKeyRequest,
617+
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IGetKeyRequest,
618618
options?: CallOptions
619619
): Promise<
620620
[
@@ -666,7 +666,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
666666
* const [response] = await client.getKey(request);
667667
*/
668668
getKey(
669-
request: protos.google.cloud.recaptchaenterprise.v1beta1.IGetKeyRequest,
669+
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IGetKeyRequest,
670670
optionsOrCallback?:
671671
| CallOptions
672672
| Callback<
@@ -712,7 +712,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
712712
return this.innerApiCalls.getKey(request, options, callback);
713713
}
714714
updateKey(
715-
request: protos.google.cloud.recaptchaenterprise.v1beta1.IUpdateKeyRequest,
715+
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IUpdateKeyRequest,
716716
options?: CallOptions
717717
): Promise<
718718
[
@@ -766,7 +766,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
766766
* const [response] = await client.updateKey(request);
767767
*/
768768
updateKey(
769-
request: protos.google.cloud.recaptchaenterprise.v1beta1.IUpdateKeyRequest,
769+
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IUpdateKeyRequest,
770770
optionsOrCallback?:
771771
| CallOptions
772772
| Callback<
@@ -812,7 +812,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
812812
return this.innerApiCalls.updateKey(request, options, callback);
813813
}
814814
deleteKey(
815-
request: protos.google.cloud.recaptchaenterprise.v1beta1.IDeleteKeyRequest,
815+
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IDeleteKeyRequest,
816816
options?: CallOptions
817817
): Promise<
818818
[
@@ -864,7 +864,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
864864
* const [response] = await client.deleteKey(request);
865865
*/
866866
deleteKey(
867-
request: protos.google.cloud.recaptchaenterprise.v1beta1.IDeleteKeyRequest,
867+
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IDeleteKeyRequest,
868868
optionsOrCallback?:
869869
| CallOptions
870870
| Callback<
@@ -911,7 +911,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
911911
}
912912

913913
listKeys(
914-
request: protos.google.cloud.recaptchaenterprise.v1beta1.IListKeysRequest,
914+
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IListKeysRequest,
915915
options?: CallOptions
916916
): Promise<
917917
[
@@ -969,7 +969,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
969969
* for more details and examples.
970970
*/
971971
listKeys(
972-
request: protos.google.cloud.recaptchaenterprise.v1beta1.IListKeysRequest,
972+
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IListKeysRequest,
973973
optionsOrCallback?:
974974
| CallOptions
975975
| PaginationCallback<

0 commit comments

Comments
 (0)