Skip to content

Commit 6e54286

Browse files
committed
fix: restore missing method names in IAM mixin templates
1 parent 362844a commit 6e54286

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

  • core/generator/gapic-generator-typescript/templates

core/generator/gapic-generator-typescript/templates/cjs/typescript_gapic/_iam.njk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* The promise has a method named "cancel" which cancels the ongoing API call.
3232
*/
3333
{%- if service.iamPolicyMixinFlags.getIamPolicy == true %}
34-
/**
34+
getIamPolicy(
3535
request: IamProtos.google.iam.v1.GetIamPolicyRequest,
3636
options?:
3737
| gax.CallOptions
@@ -80,7 +80,7 @@
8080
* The promise has a method named "cancel" which cancels the ongoing API call.
8181
*/
8282
{%- if service.iamPolicyMixinFlags.setIamPolicy %}
83-
/**
83+
setIamPolicy(
8484
request: IamProtos.google.iam.v1.SetIamPolicyRequest,
8585
options?:
8686
| gax.CallOptions
@@ -130,7 +130,7 @@
130130
*
131131
*/
132132
{%- if service.iamPolicyMixinFlags.testIamPermissions %}
133-
/**
133+
testIamPermissions(
134134
request: IamProtos.google.iam.v1.TestIamPermissionsRequest,
135135
options?:
136136
| gax.CallOptions

core/generator/gapic-generator-typescript/templates/esm/typescript_gapic/_iam.njk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* The promise has a method named "cancel" which cancels the ongoing API call.
3232
*/
3333
{%- if service.iamPolicyMixinFlags.getIamPolicy %}
34-
/**
34+
getIamPolicy(
3535
request: IamProtos.google.iam.v1.GetIamPolicyRequest,
3636
options?:
3737
| gax.CallOptions
@@ -80,7 +80,7 @@
8080
* The promise has a method named "cancel" which cancels the ongoing API call.
8181
*/
8282
{%- if service.iamPolicyMixinFlags.setIamPolicy %}
83-
/**
83+
setIamPolicy(
8484
request: IamProtos.google.iam.v1.SetIamPolicyRequest,
8585
options?:
8686
| gax.CallOptions
@@ -112,7 +112,7 @@
112112
* The request object that will be sent.
113113
* @param {string} request.resource
114114
* REQUIRED: The resource for which the policy detail is being requested.
115-
* See the operation documentation for the appropriate value for this field.
115+
* See the operation documentation for the a ppropriate value for this field.
116116
* @param {string[]} request.permissions
117117
* The set of permissions to check for the `resource`. Permissions with
118118
* wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -130,7 +130,7 @@
130130
*
131131
*/
132132
{%- if service.iamPolicyMixinFlags.testIamPermissions %}
133-
/**
133+
testIamPermissions(
134134
request: IamProtos.google.iam.v1.TestIamPermissionsRequest,
135135
options?:
136136
| gax.CallOptions

0 commit comments

Comments
 (0)