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

Commit

Permalink
fix: make request optional in all cases (#318)
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 b08c26c commit 35e8196
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 50 deletions.
16 changes: 8 additions & 8 deletions src/v1/container_analysis_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export class ContainerAnalysisClient {
// -- Service calls --
// -------------------
setIamPolicy(
request: protos.google.iam.v1.ISetIamPolicyRequest,
request?: protos.google.iam.v1.ISetIamPolicyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -359,7 +359,7 @@ export class ContainerAnalysisClient {
* const [response] = await client.setIamPolicy(request);
*/
setIamPolicy(
request: protos.google.iam.v1.ISetIamPolicyRequest,
request?: protos.google.iam.v1.ISetIamPolicyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -398,7 +398,7 @@ export class ContainerAnalysisClient {
return this.innerApiCalls.setIamPolicy(request, options, callback);
}
getIamPolicy(
request: protos.google.iam.v1.IGetIamPolicyRequest,
request?: protos.google.iam.v1.IGetIamPolicyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -453,7 +453,7 @@ export class ContainerAnalysisClient {
* const [response] = await client.getIamPolicy(request);
*/
getIamPolicy(
request: protos.google.iam.v1.IGetIamPolicyRequest,
request?: protos.google.iam.v1.IGetIamPolicyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -492,7 +492,7 @@ export class ContainerAnalysisClient {
return this.innerApiCalls.getIamPolicy(request, options, callback);
}
testIamPermissions(
request: protos.google.iam.v1.ITestIamPermissionsRequest,
request?: protos.google.iam.v1.ITestIamPermissionsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -548,7 +548,7 @@ export class ContainerAnalysisClient {
* const [response] = await client.testIamPermissions(request);
*/
testIamPermissions(
request: protos.google.iam.v1.ITestIamPermissionsRequest,
request?: protos.google.iam.v1.ITestIamPermissionsRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -587,7 +587,7 @@ export class ContainerAnalysisClient {
return this.innerApiCalls.testIamPermissions(request, options, callback);
}
getVulnerabilityOccurrencesSummary(
request: protos.google.devtools.containeranalysis.v1.IGetVulnerabilityOccurrencesSummaryRequest,
request?: protos.google.devtools.containeranalysis.v1.IGetVulnerabilityOccurrencesSummaryRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -641,7 +641,7 @@ export class ContainerAnalysisClient {
* const [response] = await client.getVulnerabilityOccurrencesSummary(request);
*/
getVulnerabilityOccurrencesSummary(
request: protos.google.devtools.containeranalysis.v1.IGetVulnerabilityOccurrencesSummaryRequest,
request?: protos.google.devtools.containeranalysis.v1.IGetVulnerabilityOccurrencesSummaryRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down
24 changes: 12 additions & 12 deletions src/v1beta1/container_analysis_v1_beta1_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export class ContainerAnalysisV1Beta1Client {
// -- Service calls --
// -------------------
setIamPolicy(
request: protos.google.iam.v1.ISetIamPolicyRequest,
request?: protos.google.iam.v1.ISetIamPolicyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -378,7 +378,7 @@ export class ContainerAnalysisV1Beta1Client {
* const [response] = await client.setIamPolicy(request);
*/
setIamPolicy(
request: protos.google.iam.v1.ISetIamPolicyRequest,
request?: protos.google.iam.v1.ISetIamPolicyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -417,7 +417,7 @@ export class ContainerAnalysisV1Beta1Client {
return this.innerApiCalls.setIamPolicy(request, options, callback);
}
getIamPolicy(
request: protos.google.iam.v1.IGetIamPolicyRequest,
request?: protos.google.iam.v1.IGetIamPolicyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -472,7 +472,7 @@ export class ContainerAnalysisV1Beta1Client {
* const [response] = await client.getIamPolicy(request);
*/
getIamPolicy(
request: protos.google.iam.v1.IGetIamPolicyRequest,
request?: protos.google.iam.v1.IGetIamPolicyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -511,7 +511,7 @@ export class ContainerAnalysisV1Beta1Client {
return this.innerApiCalls.getIamPolicy(request, options, callback);
}
testIamPermissions(
request: protos.google.iam.v1.ITestIamPermissionsRequest,
request?: protos.google.iam.v1.ITestIamPermissionsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -567,7 +567,7 @@ export class ContainerAnalysisV1Beta1Client {
* const [response] = await client.testIamPermissions(request);
*/
testIamPermissions(
request: protos.google.iam.v1.ITestIamPermissionsRequest,
request?: protos.google.iam.v1.ITestIamPermissionsRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -606,7 +606,7 @@ export class ContainerAnalysisV1Beta1Client {
return this.innerApiCalls.testIamPermissions(request, options, callback);
}
getScanConfig(
request: protos.google.devtools.containeranalysis.v1beta1.IGetScanConfigRequest,
request?: protos.google.devtools.containeranalysis.v1beta1.IGetScanConfigRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -658,7 +658,7 @@ export class ContainerAnalysisV1Beta1Client {
* const [response] = await client.getScanConfig(request);
*/
getScanConfig(
request: protos.google.devtools.containeranalysis.v1beta1.IGetScanConfigRequest,
request?: protos.google.devtools.containeranalysis.v1beta1.IGetScanConfigRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -704,7 +704,7 @@ export class ContainerAnalysisV1Beta1Client {
return this.innerApiCalls.getScanConfig(request, options, callback);
}
updateScanConfig(
request: protos.google.devtools.containeranalysis.v1beta1.IUpdateScanConfigRequest,
request?: protos.google.devtools.containeranalysis.v1beta1.IUpdateScanConfigRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -758,7 +758,7 @@ export class ContainerAnalysisV1Beta1Client {
* const [response] = await client.updateScanConfig(request);
*/
updateScanConfig(
request: protos.google.devtools.containeranalysis.v1beta1.IUpdateScanConfigRequest,
request?: protos.google.devtools.containeranalysis.v1beta1.IUpdateScanConfigRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -805,7 +805,7 @@ export class ContainerAnalysisV1Beta1Client {
}

listScanConfigs(
request: protos.google.devtools.containeranalysis.v1beta1.IListScanConfigsRequest,
request?: protos.google.devtools.containeranalysis.v1beta1.IListScanConfigsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -863,7 +863,7 @@ export class ContainerAnalysisV1Beta1Client {
* for more details and examples.
*/
listScanConfigs(
request: protos.google.devtools.containeranalysis.v1beta1.IListScanConfigsRequest,
request?: protos.google.devtools.containeranalysis.v1beta1.IListScanConfigsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
Loading

0 comments on commit 35e8196

Please sign in to comment.