Skip to content

Commit

Permalink
fix: make request optional in all cases (googleapis#290)
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 b7a9ac1 commit e18a1d1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
28 changes: 14 additions & 14 deletions src/v1/recaptcha_enterprise_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export class RecaptchaEnterpriseServiceClient {
// -- Service calls --
// -------------------
createAssessment(
request: protos.google.cloud.recaptchaenterprise.v1.ICreateAssessmentRequest,
request?: protos.google.cloud.recaptchaenterprise.v1.ICreateAssessmentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -367,7 +367,7 @@ export class RecaptchaEnterpriseServiceClient {
* const [response] = await client.createAssessment(request);
*/
createAssessment(
request: protos.google.cloud.recaptchaenterprise.v1.ICreateAssessmentRequest,
request?: protos.google.cloud.recaptchaenterprise.v1.ICreateAssessmentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -413,7 +413,7 @@ export class RecaptchaEnterpriseServiceClient {
return this.innerApiCalls.createAssessment(request, options, callback);
}
annotateAssessment(
request: protos.google.cloud.recaptchaenterprise.v1.IAnnotateAssessmentRequest,
request?: protos.google.cloud.recaptchaenterprise.v1.IAnnotateAssessmentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -468,7 +468,7 @@ export class RecaptchaEnterpriseServiceClient {
* const [response] = await client.annotateAssessment(request);
*/
annotateAssessment(
request: protos.google.cloud.recaptchaenterprise.v1.IAnnotateAssessmentRequest,
request?: protos.google.cloud.recaptchaenterprise.v1.IAnnotateAssessmentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -514,7 +514,7 @@ export class RecaptchaEnterpriseServiceClient {
return this.innerApiCalls.annotateAssessment(request, options, callback);
}
createKey(
request: protos.google.cloud.recaptchaenterprise.v1.ICreateKeyRequest,
request?: protos.google.cloud.recaptchaenterprise.v1.ICreateKeyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -565,7 +565,7 @@ export class RecaptchaEnterpriseServiceClient {
* const [response] = await client.createKey(request);
*/
createKey(
request: protos.google.cloud.recaptchaenterprise.v1.ICreateKeyRequest,
request?: protos.google.cloud.recaptchaenterprise.v1.ICreateKeyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -608,7 +608,7 @@ export class RecaptchaEnterpriseServiceClient {
return this.innerApiCalls.createKey(request, options, callback);
}
getKey(
request: protos.google.cloud.recaptchaenterprise.v1.IGetKeyRequest,
request?: protos.google.cloud.recaptchaenterprise.v1.IGetKeyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -657,7 +657,7 @@ export class RecaptchaEnterpriseServiceClient {
* const [response] = await client.getKey(request);
*/
getKey(
request: protos.google.cloud.recaptchaenterprise.v1.IGetKeyRequest,
request?: protos.google.cloud.recaptchaenterprise.v1.IGetKeyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -700,7 +700,7 @@ export class RecaptchaEnterpriseServiceClient {
return this.innerApiCalls.getKey(request, options, callback);
}
updateKey(
request: protos.google.cloud.recaptchaenterprise.v1.IUpdateKeyRequest,
request?: protos.google.cloud.recaptchaenterprise.v1.IUpdateKeyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -751,7 +751,7 @@ export class RecaptchaEnterpriseServiceClient {
* const [response] = await client.updateKey(request);
*/
updateKey(
request: protos.google.cloud.recaptchaenterprise.v1.IUpdateKeyRequest,
request?: protos.google.cloud.recaptchaenterprise.v1.IUpdateKeyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -794,7 +794,7 @@ export class RecaptchaEnterpriseServiceClient {
return this.innerApiCalls.updateKey(request, options, callback);
}
deleteKey(
request: protos.google.cloud.recaptchaenterprise.v1.IDeleteKeyRequest,
request?: protos.google.cloud.recaptchaenterprise.v1.IDeleteKeyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -843,7 +843,7 @@ export class RecaptchaEnterpriseServiceClient {
* const [response] = await client.deleteKey(request);
*/
deleteKey(
request: protos.google.cloud.recaptchaenterprise.v1.IDeleteKeyRequest,
request?: protos.google.cloud.recaptchaenterprise.v1.IDeleteKeyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -887,7 +887,7 @@ export class RecaptchaEnterpriseServiceClient {
}

listKeys(
request: protos.google.cloud.recaptchaenterprise.v1.IListKeysRequest,
request?: protos.google.cloud.recaptchaenterprise.v1.IListKeysRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -945,7 +945,7 @@ export class RecaptchaEnterpriseServiceClient {
* for more details and examples.
*/
listKeys(
request: protos.google.cloud.recaptchaenterprise.v1.IListKeysRequest,
request?: protos.google.cloud.recaptchaenterprise.v1.IListKeysRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
28 changes: 14 additions & 14 deletions src/v1beta1/recaptcha_enterprise_service_v1_beta1_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
// -- Service calls --
// -------------------
createAssessment(
request: protos.google.cloud.recaptchaenterprise.v1beta1.ICreateAssessmentRequest,
request?: protos.google.cloud.recaptchaenterprise.v1beta1.ICreateAssessmentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -367,7 +367,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
* const [response] = await client.createAssessment(request);
*/
createAssessment(
request: protos.google.cloud.recaptchaenterprise.v1beta1.ICreateAssessmentRequest,
request?: protos.google.cloud.recaptchaenterprise.v1beta1.ICreateAssessmentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -413,7 +413,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
return this.innerApiCalls.createAssessment(request, options, callback);
}
annotateAssessment(
request: protos.google.cloud.recaptchaenterprise.v1beta1.IAnnotateAssessmentRequest,
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IAnnotateAssessmentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -468,7 +468,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
* const [response] = await client.annotateAssessment(request);
*/
annotateAssessment(
request: protos.google.cloud.recaptchaenterprise.v1beta1.IAnnotateAssessmentRequest,
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IAnnotateAssessmentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -514,7 +514,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
return this.innerApiCalls.annotateAssessment(request, options, callback);
}
createKey(
request: protos.google.cloud.recaptchaenterprise.v1beta1.ICreateKeyRequest,
request?: protos.google.cloud.recaptchaenterprise.v1beta1.ICreateKeyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -568,7 +568,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
* const [response] = await client.createKey(request);
*/
createKey(
request: protos.google.cloud.recaptchaenterprise.v1beta1.ICreateKeyRequest,
request?: protos.google.cloud.recaptchaenterprise.v1beta1.ICreateKeyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -614,7 +614,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
return this.innerApiCalls.createKey(request, options, callback);
}
getKey(
request: protos.google.cloud.recaptchaenterprise.v1beta1.IGetKeyRequest,
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IGetKeyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -666,7 +666,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
* const [response] = await client.getKey(request);
*/
getKey(
request: protos.google.cloud.recaptchaenterprise.v1beta1.IGetKeyRequest,
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IGetKeyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -712,7 +712,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
return this.innerApiCalls.getKey(request, options, callback);
}
updateKey(
request: protos.google.cloud.recaptchaenterprise.v1beta1.IUpdateKeyRequest,
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IUpdateKeyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -766,7 +766,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
* const [response] = await client.updateKey(request);
*/
updateKey(
request: protos.google.cloud.recaptchaenterprise.v1beta1.IUpdateKeyRequest,
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IUpdateKeyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -812,7 +812,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
return this.innerApiCalls.updateKey(request, options, callback);
}
deleteKey(
request: protos.google.cloud.recaptchaenterprise.v1beta1.IDeleteKeyRequest,
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IDeleteKeyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -864,7 +864,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
* const [response] = await client.deleteKey(request);
*/
deleteKey(
request: protos.google.cloud.recaptchaenterprise.v1beta1.IDeleteKeyRequest,
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IDeleteKeyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -911,7 +911,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
}

listKeys(
request: protos.google.cloud.recaptchaenterprise.v1beta1.IListKeysRequest,
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IListKeysRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -969,7 +969,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
* for more details and examples.
*/
listKeys(
request: protos.google.cloud.recaptchaenterprise.v1beta1.IListKeysRequest,
request?: protos.google.cloud.recaptchaenterprise.v1beta1.IListKeysRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down

0 comments on commit e18a1d1

Please sign in to comment.