Skip to content
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

Merged
merged 2 commits into from
Jun 3, 2020
Merged

feat: support GoogleAuth parameter #2210

merged 2 commits into from
Jun 3, 2020

Conversation

JustinBeckwith
Copy link
Contributor

@JustinBeckwith JustinBeckwith commented Jun 3, 2020

This change requires googleapis/nodejs-googleapis-common#287 to land before going out. It does a few things:

  • This lets folks pass a GoogleAuth parameter. Anything that has a request method with the right signature.
  • Moves auth into the StandardParameters interface instead of stamping it out every time in each individual generated interface.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 3, 2020
/**
* Auth client or API Key for the request
*/
auth?:
Copy link
Contributor

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? :)

Copy link
Contributor Author

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 :/

@JustinBeckwith JustinBeckwith added the automerge Merge the pull request once unit tests and other checks pass. label Jun 3, 2020
@codecov
Copy link

codecov bot commented Jun 3, 2020

Codecov Report

Merging #2210 into master will decrease coverage by 0.06%.
The diff coverage is n/a.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
src/generator/synth.ts 80.28% <0.00%> (-0.49%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 78ff014...eac2385. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge the pull request once unit tests and other checks pass. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants