diff --git a/packages/google-cloud-kms/helperMethods.ts.tmpl b/packages/google-cloud-kms/helperMethods.ts.tmpl deleted file mode 100644 index 773675cf9f4..00000000000 --- a/packages/google-cloud-kms/helperMethods.ts.tmpl +++ /dev/null @@ -1,33 +0,0 @@ - /** - * This part will be added into src/v1/key_management_service_client.ts by synth.py. - * KMS service requires IAM client for [setIamPolicy, getIamPolicy, testIamPerssion] methods. - * But we don't support it now in micro-generators for rerouting one service to another and mix them in. - * New feature request link: [https://github.com/googleapis/gapic-generator-typescript/issues/315] - * - * So this is manually written for providing methods to the KMS client. - * IamClient is created for KMS client in the constructor using src/helper.ts. - * [setIamPolicy, getIamPolicy, testIamPerssion] methods are created which is calling the corresponding methods from IamClient in `helper.ts`. - */ - - getIamPolicy( - request: protos.google.iam.v1.GetIamPolicyRequest, - options: gax.CallOptions, - callback: protos.google.iam.v1.IAMPolicy.GetIamPolicyCallback - ) { - return this._iamClient.getIamPolicy(request, options, callback); - } - setIamPolicy( - request: protos.google.iam.v1.SetIamPolicyRequest, - options: gax.CallOptions, - callback: protos.google.iam.v1.IAMPolicy.SetIamPolicyCallback - ) { - return this._iamClient.setIamPolicy(request, options, callback); - } - testIamPermissions( - request: protos.google.iam.v1.TestIamPermissionsRequest, - options: gax.CallOptions, - callback?: protos.google.iam.v1.IAMPolicy.TestIamPermissionsCallback - ) { - return this._iamClient.testIamPermissions(request, options, callback); - } -}