From 5150cfbe6bd9b79bddf206728aadbd82282da44e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 23 Jun 2021 15:14:19 +0000 Subject: [PATCH] fix: make request optional in all cases (#54) ... 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/v1beta2/artifact_registry_client.ts | 84 +++++++++---------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/packages/google-devtools-artifactregistry/src/v1beta2/artifact_registry_client.ts b/packages/google-devtools-artifactregistry/src/v1beta2/artifact_registry_client.ts index ac05ebff53b..4927aaf33e7 100644 --- a/packages/google-devtools-artifactregistry/src/v1beta2/artifact_registry_client.ts +++ b/packages/google-devtools-artifactregistry/src/v1beta2/artifact_registry_client.ts @@ -423,7 +423,7 @@ export class ArtifactRegistryClient { // -- Service calls -- // ------------------- getRepository( - request: protos.google.devtools.artifactregistry.v1beta2.IGetRepositoryRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IGetRepositoryRequest, options?: CallOptions ): Promise< [ @@ -474,7 +474,7 @@ export class ArtifactRegistryClient { * const [response] = await client.getRepository(request); */ getRepository( - request: protos.google.devtools.artifactregistry.v1beta2.IGetRepositoryRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IGetRepositoryRequest, optionsOrCallback?: | CallOptions | Callback< @@ -520,7 +520,7 @@ export class ArtifactRegistryClient { return this.innerApiCalls.getRepository(request, options, callback); } updateRepository( - request: protos.google.devtools.artifactregistry.v1beta2.IUpdateRepositoryRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IUpdateRepositoryRequest, options?: CallOptions ): Promise< [ @@ -575,7 +575,7 @@ export class ArtifactRegistryClient { * const [response] = await client.updateRepository(request); */ updateRepository( - request: protos.google.devtools.artifactregistry.v1beta2.IUpdateRepositoryRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IUpdateRepositoryRequest, optionsOrCallback?: | CallOptions | Callback< @@ -621,7 +621,7 @@ export class ArtifactRegistryClient { return this.innerApiCalls.updateRepository(request, options, callback); } getPackage( - request: protos.google.devtools.artifactregistry.v1beta2.IGetPackageRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IGetPackageRequest, options?: CallOptions ): Promise< [ @@ -672,7 +672,7 @@ export class ArtifactRegistryClient { * const [response] = await client.getPackage(request); */ getPackage( - request: protos.google.devtools.artifactregistry.v1beta2.IGetPackageRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IGetPackageRequest, optionsOrCallback?: | CallOptions | Callback< @@ -718,7 +718,7 @@ export class ArtifactRegistryClient { return this.innerApiCalls.getPackage(request, options, callback); } getVersion( - request: protos.google.devtools.artifactregistry.v1beta2.IGetVersionRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IGetVersionRequest, options?: CallOptions ): Promise< [ @@ -771,7 +771,7 @@ export class ArtifactRegistryClient { * const [response] = await client.getVersion(request); */ getVersion( - request: protos.google.devtools.artifactregistry.v1beta2.IGetVersionRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IGetVersionRequest, optionsOrCallback?: | CallOptions | Callback< @@ -817,7 +817,7 @@ export class ArtifactRegistryClient { return this.innerApiCalls.getVersion(request, options, callback); } getFile( - request: protos.google.devtools.artifactregistry.v1beta2.IGetFileRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IGetFileRequest, options?: CallOptions ): Promise< [ @@ -868,7 +868,7 @@ export class ArtifactRegistryClient { * const [response] = await client.getFile(request); */ getFile( - request: protos.google.devtools.artifactregistry.v1beta2.IGetFileRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IGetFileRequest, optionsOrCallback?: | CallOptions | Callback< @@ -914,7 +914,7 @@ export class ArtifactRegistryClient { return this.innerApiCalls.getFile(request, options, callback); } getTag( - request: protos.google.devtools.artifactregistry.v1beta2.IGetTagRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IGetTagRequest, options?: CallOptions ): Promise< [ @@ -965,7 +965,7 @@ export class ArtifactRegistryClient { * const [response] = await client.getTag(request); */ getTag( - request: protos.google.devtools.artifactregistry.v1beta2.IGetTagRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IGetTagRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1011,7 +1011,7 @@ export class ArtifactRegistryClient { return this.innerApiCalls.getTag(request, options, callback); } createTag( - request: protos.google.devtools.artifactregistry.v1beta2.ICreateTagRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.ICreateTagRequest, options?: CallOptions ): Promise< [ @@ -1066,7 +1066,7 @@ export class ArtifactRegistryClient { * const [response] = await client.createTag(request); */ createTag( - request: protos.google.devtools.artifactregistry.v1beta2.ICreateTagRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.ICreateTagRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1112,7 +1112,7 @@ export class ArtifactRegistryClient { return this.innerApiCalls.createTag(request, options, callback); } updateTag( - request: protos.google.devtools.artifactregistry.v1beta2.IUpdateTagRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IUpdateTagRequest, options?: CallOptions ): Promise< [ @@ -1167,7 +1167,7 @@ export class ArtifactRegistryClient { * const [response] = await client.updateTag(request); */ updateTag( - request: protos.google.devtools.artifactregistry.v1beta2.IUpdateTagRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IUpdateTagRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1213,7 +1213,7 @@ export class ArtifactRegistryClient { return this.innerApiCalls.updateTag(request, options, callback); } deleteTag( - request: protos.google.devtools.artifactregistry.v1beta2.IDeleteTagRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IDeleteTagRequest, options?: CallOptions ): Promise< [ @@ -1264,7 +1264,7 @@ export class ArtifactRegistryClient { * const [response] = await client.deleteTag(request); */ deleteTag( - request: protos.google.devtools.artifactregistry.v1beta2.IDeleteTagRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IDeleteTagRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1310,7 +1310,7 @@ export class ArtifactRegistryClient { return this.innerApiCalls.deleteTag(request, options, callback); } setIamPolicy( - request: protos.google.iam.v1.ISetIamPolicyRequest, + request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions ): Promise< [ @@ -1360,7 +1360,7 @@ export class ArtifactRegistryClient { * const [response] = await client.setIamPolicy(request); */ setIamPolicy( - request: protos.google.iam.v1.ISetIamPolicyRequest, + request?: protos.google.iam.v1.ISetIamPolicyRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1399,7 +1399,7 @@ export class ArtifactRegistryClient { return this.innerApiCalls.setIamPolicy(request, options, callback); } getIamPolicy( - request: protos.google.iam.v1.IGetIamPolicyRequest, + request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions ): Promise< [ @@ -1447,7 +1447,7 @@ export class ArtifactRegistryClient { * const [response] = await client.getIamPolicy(request); */ getIamPolicy( - request: protos.google.iam.v1.IGetIamPolicyRequest, + request?: protos.google.iam.v1.IGetIamPolicyRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1486,7 +1486,7 @@ export class ArtifactRegistryClient { return this.innerApiCalls.getIamPolicy(request, options, callback); } testIamPermissions( - request: protos.google.iam.v1.ITestIamPermissionsRequest, + request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions ): Promise< [ @@ -1536,7 +1536,7 @@ export class ArtifactRegistryClient { * const [response] = await client.testIamPermissions(request); */ testIamPermissions( - request: protos.google.iam.v1.ITestIamPermissionsRequest, + request?: protos.google.iam.v1.ITestIamPermissionsRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1576,7 +1576,7 @@ export class ArtifactRegistryClient { } createRepository( - request: protos.google.devtools.artifactregistry.v1beta2.ICreateRepositoryRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.ICreateRepositoryRequest, options?: CallOptions ): Promise< [ @@ -1637,7 +1637,7 @@ export class ArtifactRegistryClient { * const [response] = await operation.promise(); */ createRepository( - request: protos.google.devtools.artifactregistry.v1beta2.ICreateRepositoryRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.ICreateRepositoryRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1722,7 +1722,7 @@ export class ArtifactRegistryClient { >; } deleteRepository( - request: protos.google.devtools.artifactregistry.v1beta2.IDeleteRepositoryRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IDeleteRepositoryRequest, options?: CallOptions ): Promise< [ @@ -1780,7 +1780,7 @@ export class ArtifactRegistryClient { * const [response] = await operation.promise(); */ deleteRepository( - request: protos.google.devtools.artifactregistry.v1beta2.IDeleteRepositoryRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IDeleteRepositoryRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1865,7 +1865,7 @@ export class ArtifactRegistryClient { >; } deletePackage( - request: protos.google.devtools.artifactregistry.v1beta2.IDeletePackageRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IDeletePackageRequest, options?: CallOptions ): Promise< [ @@ -1922,7 +1922,7 @@ export class ArtifactRegistryClient { * const [response] = await operation.promise(); */ deletePackage( - request: protos.google.devtools.artifactregistry.v1beta2.IDeletePackageRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IDeletePackageRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2007,7 +2007,7 @@ export class ArtifactRegistryClient { >; } deleteVersion( - request: protos.google.devtools.artifactregistry.v1beta2.IDeleteVersionRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IDeleteVersionRequest, options?: CallOptions ): Promise< [ @@ -2067,7 +2067,7 @@ export class ArtifactRegistryClient { * const [response] = await operation.promise(); */ deleteVersion( - request: protos.google.devtools.artifactregistry.v1beta2.IDeleteVersionRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IDeleteVersionRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2152,7 +2152,7 @@ export class ArtifactRegistryClient { >; } listRepositories( - request: protos.google.devtools.artifactregistry.v1beta2.IListRepositoriesRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IListRepositoriesRequest, options?: CallOptions ): Promise< [ @@ -2208,7 +2208,7 @@ export class ArtifactRegistryClient { * for more details and examples. */ listRepositories( - request: protos.google.devtools.artifactregistry.v1beta2.IListRepositoriesRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IListRepositoriesRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -2346,7 +2346,7 @@ export class ArtifactRegistryClient { ) as AsyncIterable; } listPackages( - request: protos.google.devtools.artifactregistry.v1beta2.IListPackagesRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IListPackagesRequest, options?: CallOptions ): Promise< [ @@ -2402,7 +2402,7 @@ export class ArtifactRegistryClient { * for more details and examples. */ listPackages( - request: protos.google.devtools.artifactregistry.v1beta2.IListPackagesRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IListPackagesRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -2540,7 +2540,7 @@ export class ArtifactRegistryClient { ) as AsyncIterable; } listVersions( - request: protos.google.devtools.artifactregistry.v1beta2.IListVersionsRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IListVersionsRequest, options?: CallOptions ): Promise< [ @@ -2598,7 +2598,7 @@ export class ArtifactRegistryClient { * for more details and examples. */ listVersions( - request: protos.google.devtools.artifactregistry.v1beta2.IListVersionsRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IListVersionsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -2740,7 +2740,7 @@ export class ArtifactRegistryClient { ) as AsyncIterable; } listFiles( - request: protos.google.devtools.artifactregistry.v1beta2.IListFilesRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IListFilesRequest, options?: CallOptions ): Promise< [ @@ -2808,7 +2808,7 @@ export class ArtifactRegistryClient { * for more details and examples. */ listFiles( - request: protos.google.devtools.artifactregistry.v1beta2.IListFilesRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IListFilesRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -2970,7 +2970,7 @@ export class ArtifactRegistryClient { ) as AsyncIterable; } listTags( - request: protos.google.devtools.artifactregistry.v1beta2.IListTagsRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IListTagsRequest, options?: CallOptions ): Promise< [ @@ -3036,7 +3036,7 @@ export class ArtifactRegistryClient { * for more details and examples. */ listTags( - request: protos.google.devtools.artifactregistry.v1beta2.IListTagsRequest, + request?: protos.google.devtools.artifactregistry.v1beta2.IListTagsRequest, optionsOrCallback?: | CallOptions | PaginationCallback<