-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support GoogleAuth parameter #2210
Conversation
/** | ||
* Auth client or API Key for the request | ||
*/ | ||
auth?: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, but still: the keys were sorted here, maybe auth
can go below alt
? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of those standard parameters are actually generated from the discovery file. This would be silly hard :/
Codecov Report
@@ Coverage Diff @@
## master #2210 +/- ##
==========================================
- Coverage 84.14% 84.08% -0.07%
==========================================
Files 9 9
Lines 1602 1602
Branches 114 112 -2
==========================================
- Hits 1348 1347 -1
- Misses 254 255 +1
Continue to review full report at Codecov.
|
This change requires googleapis/nodejs-googleapis-common#287 to land before going out. It does a few things:
GoogleAuth
parameter. Anything that has arequest
method with the right signature.auth
into theStandardParameters
interface instead of stamping it out every time in each individual generated interface.