Skip to content

Commit

Permalink
fix: make request optional in all cases (#54)
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 76d6264 commit ce762f9
Showing 1 changed file with 42 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -2346,7 +2346,7 @@ export class ArtifactRegistryClient {
) as AsyncIterable<protos.google.devtools.artifactregistry.v1beta2.IRepository>;
}
listPackages(
request: protos.google.devtools.artifactregistry.v1beta2.IListPackagesRequest,
request?: protos.google.devtools.artifactregistry.v1beta2.IListPackagesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -2540,7 +2540,7 @@ export class ArtifactRegistryClient {
) as AsyncIterable<protos.google.devtools.artifactregistry.v1beta2.IPackage>;
}
listVersions(
request: protos.google.devtools.artifactregistry.v1beta2.IListVersionsRequest,
request?: protos.google.devtools.artifactregistry.v1beta2.IListVersionsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -2740,7 +2740,7 @@ export class ArtifactRegistryClient {
) as AsyncIterable<protos.google.devtools.artifactregistry.v1beta2.IVersion>;
}
listFiles(
request: protos.google.devtools.artifactregistry.v1beta2.IListFilesRequest,
request?: protos.google.devtools.artifactregistry.v1beta2.IListFilesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -2970,7 +2970,7 @@ export class ArtifactRegistryClient {
) as AsyncIterable<protos.google.devtools.artifactregistry.v1beta2.IFile>;
}
listTags(
request: protos.google.devtools.artifactregistry.v1beta2.IListTagsRequest,
request?: protos.google.devtools.artifactregistry.v1beta2.IListTagsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -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<
Expand Down

0 comments on commit ce762f9

Please sign in to comment.