Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Sep 20, 2023
1 parent 133eb62 commit 5da8391
Show file tree
Hide file tree
Showing 9 changed files with 5,720 additions and 76 deletions.
1,493 changes: 1,493 additions & 0 deletions protos/protos.d.ts

Large diffs are not rendered by default.

3,853 changes: 3,853 additions & 0 deletions protos/protos.js

Large diffs are not rendered by default.

292 changes: 292 additions & 0 deletions protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@
* may be added or removed at any time, without warning.
*/
export class DebugMessage {
constructor(public message: string, public error?: Error) {}
constructor(
public message: string,
public error?: Error
) {}
}
13 changes: 8 additions & 5 deletions src/iam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface IamPermissionsMap {

export type TestIamPermissionsResponse = [
IamPermissionsMap,
IamProtos.google.iam.v1.ITestIamPermissionsResponse
IamProtos.google.iam.v1.ITestIamPermissionsResponse,
];
export type TestIamPermissionsCallback = ResourceCallback<
IamPermissionsMap,
Expand Down Expand Up @@ -387,10 +387,13 @@ export class IAM {
const availablePermissions = arrify(resp!.permissions!);
const permissionHash: IamPermissionsMap = (
permissions as string[]
).reduce((acc, permission) => {
acc[permission] = availablePermissions.indexOf(permission) > -1;
return acc;
}, {} as {[key: string]: boolean});
).reduce(
(acc, permission) => {
acc[permission] = availablePermissions.indexOf(permission) > -1;
return acc;
},
{} as {[key: string]: boolean}
);
callback!(null, permissionHash, resp!);
}
);
Expand Down
Loading

0 comments on commit 5da8391

Please sign in to comment.