-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build!: convert to typescript (#923)
- Loading branch information
1 parent
45d9880
commit 2fc68ba
Showing
63 changed files
with
37,311 additions
and
49,552 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "./node_modules/gts" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
**/*.log | ||
**/node_modules | ||
.coverage | ||
coverage | ||
.nyc_output | ||
docs/ | ||
out/ | ||
build/ | ||
system-test/secrets.js | ||
system-test/*key.json | ||
*.lock | ||
.vscode | ||
**/package-lock.json | ||
.DS_Store | ||
google-cloud-logging-winston-*.tgz | ||
google-cloud-logging-bunyan-*.tgz | ||
package-lock.json | ||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"enable-source-maps": true, | ||
"throw-deprecation": true, | ||
"timeout": 10000 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* 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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.