From d871a8377476d995809097f69ce07abad65df6e4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 22 Jun 2021 20:22:28 +0000 Subject: [PATCH] fix: make request optional in all cases (#507) ... chore: update gapic-generator-ruby to the latest commit chore: release gapic-generator-typescript 1.5.0 Committer: @miraleung PiperOrigin-RevId: 380641501 Source-Link: https://github.com/googleapis/googleapis/commit/076f7e9f0b258bdb54338895d7251b202e8f0de3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/27e4c88b4048e5f56508d4e1aa417d60a3380892 --- .../src/v1/asset_service_client.ts | 48 +++++++++---------- .../src/v1p1beta1/asset_service_client.ts | 8 ++-- .../src/v1p2beta1/asset_service_client.ts | 20 ++++---- .../src/v1p4beta1/asset_service_client.ts | 8 ++-- .../src/v1p5beta1/asset_service_client.ts | 4 +- 5 files changed, 44 insertions(+), 44 deletions(-) diff --git a/packages/google-cloud-asset/src/v1/asset_service_client.ts b/packages/google-cloud-asset/src/v1/asset_service_client.ts index 8db426c5c26..6b9f6c59226 100644 --- a/packages/google-cloud-asset/src/v1/asset_service_client.ts +++ b/packages/google-cloud-asset/src/v1/asset_service_client.ts @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -1657,7 +1657,7 @@ export class AssetServiceClient { ) as AsyncIterable; } searchAllResources( - request: protos.google.cloud.asset.v1.ISearchAllResourcesRequest, + request?: protos.google.cloud.asset.v1.ISearchAllResourcesRequest, options?: CallOptions ): Promise< [ @@ -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< @@ -2130,7 +2130,7 @@ export class AssetServiceClient { ) as AsyncIterable; } searchAllIamPolicies( - request: protos.google.cloud.asset.v1.ISearchAllIamPoliciesRequest, + request?: protos.google.cloud.asset.v1.ISearchAllIamPoliciesRequest, options?: CallOptions ): Promise< [ @@ -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< diff --git a/packages/google-cloud-asset/src/v1p1beta1/asset_service_client.ts b/packages/google-cloud-asset/src/v1p1beta1/asset_service_client.ts index 590f00888af..f59a2a7d72d 100644 --- a/packages/google-cloud-asset/src/v1p1beta1/asset_service_client.ts +++ b/packages/google-cloud-asset/src/v1p1beta1/asset_service_client.ts @@ -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< [ @@ -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< @@ -555,7 +555,7 @@ export class AssetServiceClient { ) as AsyncIterable; } searchAllIamPolicies( - request: protos.google.cloud.asset.v1p1beta1.ISearchAllIamPoliciesRequest, + request?: protos.google.cloud.asset.v1p1beta1.ISearchAllIamPoliciesRequest, options?: CallOptions ): Promise< [ @@ -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< diff --git a/packages/google-cloud-asset/src/v1p2beta1/asset_service_client.ts b/packages/google-cloud-asset/src/v1p2beta1/asset_service_client.ts index 7dcbeee62ba..8416b8a9231 100644 --- a/packages/google-cloud-asset/src/v1p2beta1/asset_service_client.ts +++ b/packages/google-cloud-asset/src/v1p2beta1/asset_service_client.ts @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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< diff --git a/packages/google-cloud-asset/src/v1p4beta1/asset_service_client.ts b/packages/google-cloud-asset/src/v1p4beta1/asset_service_client.ts index 0cc2b59fab6..6ee2ff6b735 100644 --- a/packages/google-cloud-asset/src/v1p4beta1/asset_service_client.ts +++ b/packages/google-cloud-asset/src/v1p4beta1/asset_service_client.ts @@ -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< [ @@ -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< @@ -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< [ @@ -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< diff --git a/packages/google-cloud-asset/src/v1p5beta1/asset_service_client.ts b/packages/google-cloud-asset/src/v1p5beta1/asset_service_client.ts index 2e317883c91..ada5ebb2f72 100644 --- a/packages/google-cloud-asset/src/v1p5beta1/asset_service_client.ts +++ b/packages/google-cloud-asset/src/v1p5beta1/asset_service_client.ts @@ -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< [ @@ -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<