Skip to content

Commit

Permalink
fix: make request optional in all cases (#507)
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 22, 2021
1 parent 3e93553 commit d871a83
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 44 deletions.
48 changes: 24 additions & 24 deletions packages/google-cloud-asset/src/v1/asset_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ export class AssetServiceClient {
// -- Service calls --
// -------------------
batchGetAssetsHistory(
request: protos.google.cloud.asset.v1.IBatchGetAssetsHistoryRequest,
request?: protos.google.cloud.asset.v1.IBatchGetAssetsHistoryRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -447,7 +447,7 @@ export class AssetServiceClient {
* const [response] = await client.batchGetAssetsHistory(request);
*/
batchGetAssetsHistory(
request: protos.google.cloud.asset.v1.IBatchGetAssetsHistoryRequest,
request?: protos.google.cloud.asset.v1.IBatchGetAssetsHistoryRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -490,7 +490,7 @@ export class AssetServiceClient {
return this.innerApiCalls.batchGetAssetsHistory(request, options, callback);
}
createFeed(
request: protos.google.cloud.asset.v1.ICreateFeedRequest,
request?: protos.google.cloud.asset.v1.ICreateFeedRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -548,7 +548,7 @@ export class AssetServiceClient {
* const [response] = await client.createFeed(request);
*/
createFeed(
request: protos.google.cloud.asset.v1.ICreateFeedRequest,
request?: protos.google.cloud.asset.v1.ICreateFeedRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -587,7 +587,7 @@ export class AssetServiceClient {
return this.innerApiCalls.createFeed(request, options, callback);
}
getFeed(
request: protos.google.cloud.asset.v1.IGetFeedRequest,
request?: protos.google.cloud.asset.v1.IGetFeedRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -634,7 +634,7 @@ export class AssetServiceClient {
* const [response] = await client.getFeed(request);
*/
getFeed(
request: protos.google.cloud.asset.v1.IGetFeedRequest,
request?: protos.google.cloud.asset.v1.IGetFeedRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -673,7 +673,7 @@ export class AssetServiceClient {
return this.innerApiCalls.getFeed(request, options, callback);
}
listFeeds(
request: protos.google.cloud.asset.v1.IListFeedsRequest,
request?: protos.google.cloud.asset.v1.IListFeedsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -719,7 +719,7 @@ export class AssetServiceClient {
* const [response] = await client.listFeeds(request);
*/
listFeeds(
request: protos.google.cloud.asset.v1.IListFeedsRequest,
request?: protos.google.cloud.asset.v1.IListFeedsRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -758,7 +758,7 @@ export class AssetServiceClient {
return this.innerApiCalls.listFeeds(request, options, callback);
}
updateFeed(
request: protos.google.cloud.asset.v1.IUpdateFeedRequest,
request?: protos.google.cloud.asset.v1.IUpdateFeedRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -810,7 +810,7 @@ export class AssetServiceClient {
* const [response] = await client.updateFeed(request);
*/
updateFeed(
request: protos.google.cloud.asset.v1.IUpdateFeedRequest,
request?: protos.google.cloud.asset.v1.IUpdateFeedRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -849,7 +849,7 @@ export class AssetServiceClient {
return this.innerApiCalls.updateFeed(request, options, callback);
}
deleteFeed(
request: protos.google.cloud.asset.v1.IDeleteFeedRequest,
request?: protos.google.cloud.asset.v1.IDeleteFeedRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -896,7 +896,7 @@ export class AssetServiceClient {
* const [response] = await client.deleteFeed(request);
*/
deleteFeed(
request: protos.google.cloud.asset.v1.IDeleteFeedRequest,
request?: protos.google.cloud.asset.v1.IDeleteFeedRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -935,7 +935,7 @@ export class AssetServiceClient {
return this.innerApiCalls.deleteFeed(request, options, callback);
}
analyzeIamPolicy(
request: protos.google.cloud.asset.v1.IAnalyzeIamPolicyRequest,
request?: protos.google.cloud.asset.v1.IAnalyzeIamPolicyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -991,7 +991,7 @@ export class AssetServiceClient {
* const [response] = await client.analyzeIamPolicy(request);
*/
analyzeIamPolicy(
request: protos.google.cloud.asset.v1.IAnalyzeIamPolicyRequest,
request?: protos.google.cloud.asset.v1.IAnalyzeIamPolicyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1033,7 +1033,7 @@ export class AssetServiceClient {
}

exportAssets(
request: protos.google.cloud.asset.v1.IExportAssetsRequest,
request?: protos.google.cloud.asset.v1.IExportAssetsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1131,7 +1131,7 @@ export class AssetServiceClient {
* const [response] = await operation.promise();
*/
exportAssets(
request: protos.google.cloud.asset.v1.IExportAssetsRequest,
request?: protos.google.cloud.asset.v1.IExportAssetsRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1216,7 +1216,7 @@ export class AssetServiceClient {
>;
}
analyzeIamPolicyLongrunning(
request: protos.google.cloud.asset.v1.IAnalyzeIamPolicyLongrunningRequest,
request?: protos.google.cloud.asset.v1.IAnalyzeIamPolicyLongrunningRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1282,7 +1282,7 @@ export class AssetServiceClient {
* const [response] = await operation.promise();
*/
analyzeIamPolicyLongrunning(
request: protos.google.cloud.asset.v1.IAnalyzeIamPolicyLongrunningRequest,
request?: protos.google.cloud.asset.v1.IAnalyzeIamPolicyLongrunningRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1371,7 +1371,7 @@ export class AssetServiceClient {
>;
}
listAssets(
request: protos.google.cloud.asset.v1.IListAssetsRequest,
request?: protos.google.cloud.asset.v1.IListAssetsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1457,7 +1457,7 @@ export class AssetServiceClient {
* for more details and examples.
*/
listAssets(
request: protos.google.cloud.asset.v1.IListAssetsRequest,
request?: protos.google.cloud.asset.v1.IListAssetsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down Expand Up @@ -1657,7 +1657,7 @@ export class AssetServiceClient {
) as AsyncIterable<protos.google.cloud.asset.v1.IAsset>;
}
searchAllResources(
request: protos.google.cloud.asset.v1.ISearchAllResourcesRequest,
request?: protos.google.cloud.asset.v1.ISearchAllResourcesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1808,7 +1808,7 @@ export class AssetServiceClient {
* for more details and examples.
*/
searchAllResources(
request: protos.google.cloud.asset.v1.ISearchAllResourcesRequest,
request?: protos.google.cloud.asset.v1.ISearchAllResourcesRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down Expand Up @@ -2130,7 +2130,7 @@ export class AssetServiceClient {
) as AsyncIterable<protos.google.cloud.asset.v1.IResourceSearchResult>;
}
searchAllIamPolicies(
request: protos.google.cloud.asset.v1.ISearchAllIamPoliciesRequest,
request?: protos.google.cloud.asset.v1.ISearchAllIamPoliciesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -2244,7 +2244,7 @@ export class AssetServiceClient {
* for more details and examples.
*/
searchAllIamPolicies(
request: protos.google.cloud.asset.v1.ISearchAllIamPoliciesRequest,
request?: protos.google.cloud.asset.v1.ISearchAllIamPoliciesRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export class AssetServiceClient {
// -------------------

searchAllResources(
request: protos.google.cloud.asset.v1p1beta1.ISearchAllResourcesRequest,
request?: protos.google.cloud.asset.v1p1beta1.ISearchAllResourcesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -377,7 +377,7 @@ export class AssetServiceClient {
* for more details and examples.
*/
searchAllResources(
request: protos.google.cloud.asset.v1p1beta1.ISearchAllResourcesRequest,
request?: protos.google.cloud.asset.v1p1beta1.ISearchAllResourcesRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down Expand Up @@ -555,7 +555,7 @@ export class AssetServiceClient {
) as AsyncIterable<protos.google.cloud.asset.v1p1beta1.IStandardResourceMetadata>;
}
searchAllIamPolicies(
request: protos.google.cloud.asset.v1p1beta1.ISearchAllIamPoliciesRequest,
request?: protos.google.cloud.asset.v1p1beta1.ISearchAllIamPoliciesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -631,7 +631,7 @@ export class AssetServiceClient {
* for more details and examples.
*/
searchAllIamPolicies(
request: protos.google.cloud.asset.v1p1beta1.ISearchAllIamPoliciesRequest,
request?: protos.google.cloud.asset.v1p1beta1.ISearchAllIamPoliciesRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
20 changes: 10 additions & 10 deletions packages/google-cloud-asset/src/v1p2beta1/asset_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export class AssetServiceClient {
// -- Service calls --
// -------------------
createFeed(
request: protos.google.cloud.asset.v1p2beta1.ICreateFeedRequest,
request?: protos.google.cloud.asset.v1p2beta1.ICreateFeedRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -347,7 +347,7 @@ export class AssetServiceClient {
* const [response] = await client.createFeed(request);
*/
createFeed(
request: protos.google.cloud.asset.v1p2beta1.ICreateFeedRequest,
request?: protos.google.cloud.asset.v1p2beta1.ICreateFeedRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -388,7 +388,7 @@ export class AssetServiceClient {
return this.innerApiCalls.createFeed(request, options, callback);
}
getFeed(
request: protos.google.cloud.asset.v1p2beta1.IGetFeedRequest,
request?: protos.google.cloud.asset.v1p2beta1.IGetFeedRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -435,7 +435,7 @@ export class AssetServiceClient {
* const [response] = await client.getFeed(request);
*/
getFeed(
request: protos.google.cloud.asset.v1p2beta1.IGetFeedRequest,
request?: protos.google.cloud.asset.v1p2beta1.IGetFeedRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -476,7 +476,7 @@ export class AssetServiceClient {
return this.innerApiCalls.getFeed(request, options, callback);
}
listFeeds(
request: protos.google.cloud.asset.v1p2beta1.IListFeedsRequest,
request?: protos.google.cloud.asset.v1p2beta1.IListFeedsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -522,7 +522,7 @@ export class AssetServiceClient {
* const [response] = await client.listFeeds(request);
*/
listFeeds(
request: protos.google.cloud.asset.v1p2beta1.IListFeedsRequest,
request?: protos.google.cloud.asset.v1p2beta1.IListFeedsRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -563,7 +563,7 @@ export class AssetServiceClient {
return this.innerApiCalls.listFeeds(request, options, callback);
}
updateFeed(
request: protos.google.cloud.asset.v1p2beta1.IUpdateFeedRequest,
request?: protos.google.cloud.asset.v1p2beta1.IUpdateFeedRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -615,7 +615,7 @@ export class AssetServiceClient {
* const [response] = await client.updateFeed(request);
*/
updateFeed(
request: protos.google.cloud.asset.v1p2beta1.IUpdateFeedRequest,
request?: protos.google.cloud.asset.v1p2beta1.IUpdateFeedRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -656,7 +656,7 @@ export class AssetServiceClient {
return this.innerApiCalls.updateFeed(request, options, callback);
}
deleteFeed(
request: protos.google.cloud.asset.v1p2beta1.IDeleteFeedRequest,
request?: protos.google.cloud.asset.v1p2beta1.IDeleteFeedRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -703,7 +703,7 @@ export class AssetServiceClient {
* const [response] = await client.deleteFeed(request);
*/
deleteFeed(
request: protos.google.cloud.asset.v1p2beta1.IDeleteFeedRequest,
request?: protos.google.cloud.asset.v1p2beta1.IDeleteFeedRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export class AssetServiceClient {
// -- Service calls --
// -------------------
analyzeIamPolicy(
request: protos.google.cloud.asset.v1p4beta1.IAnalyzeIamPolicyRequest,
request?: protos.google.cloud.asset.v1p4beta1.IAnalyzeIamPolicyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -359,7 +359,7 @@ export class AssetServiceClient {
* const [response] = await client.analyzeIamPolicy(request);
*/
analyzeIamPolicy(
request: protos.google.cloud.asset.v1p4beta1.IAnalyzeIamPolicyRequest,
request?: protos.google.cloud.asset.v1p4beta1.IAnalyzeIamPolicyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -403,7 +403,7 @@ export class AssetServiceClient {
}

exportIamPolicyAnalysis(
request: protos.google.cloud.asset.v1p4beta1.IExportIamPolicyAnalysisRequest,
request?: protos.google.cloud.asset.v1p4beta1.IExportIamPolicyAnalysisRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -466,7 +466,7 @@ export class AssetServiceClient {
* const [response] = await operation.promise();
*/
exportIamPolicyAnalysis(
request: protos.google.cloud.asset.v1p4beta1.IExportIamPolicyAnalysisRequest,
request?: protos.google.cloud.asset.v1p4beta1.IExportIamPolicyAnalysisRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export class AssetServiceClient {
// -------------------

listAssets(
request: protos.google.cloud.asset.v1p5beta1.IListAssetsRequest,
request?: protos.google.cloud.asset.v1p5beta1.IListAssetsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -365,7 +365,7 @@ export class AssetServiceClient {
* for more details and examples.
*/
listAssets(
request: protos.google.cloud.asset.v1p5beta1.IListAssetsRequest,
request?: protos.google.cloud.asset.v1p5beta1.IListAssetsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down

0 comments on commit d871a83

Please sign in to comment.