clouddns - client quota failing, unable to handle list in response.#5085
clouddns - client quota failing, unable to handle list in response.#5085cycomike wants to merge 3 commits intogoogleapis:masterfrom
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
|
I signed it |
|
CLAs look good, thanks! |
|
@cycomike The API docs for In addition, if the API really has changed to returning lists, then we should likely reflect that as well, which would mean doing a type-sniff to figure out what to do with the |
|
@lukesneeringer @jonparrott Do we have a PoC for the back-end DNS team? |
|
Not that I know of, reaching out internally. |
|
@tseaver Here is the full response for the quota information which now has the whitelistedKeySpecs entity. Yes you are right that something probably should be done with it.
|
|
Looks like the whitelistedKeySpecs[] addition is documented as part of https://cloud.google.com/dns/api/v1beta2/projects. |
|
@seils Interesting that the field would be removed in the @theacodes Any status on a PoC? |
|
@cycomike I'm sorry we've let your patch languish so long. At this point, it seems likely to me that we won't be able to provide proper support for zones created with the |
|
Cloud dns api still throws error on accessing project quotas due to the whitelistedKeySpecs. The error thrown was :- How to handle this ? |
Hi The changes were never merged to fix this issue, the patch I created is still sitting in this pull request. NOTE: It does not do anything with the whitelistedkeys, so if you need that data additional changes would be required. |
|
Two points about this PR:
|
Hi
clouddns client started failing yesterday because API quota response now includes a list where a string is expected.
Added condition to skip value if it's a list.
Original Error:
Caused By:
Addition of the following in the API quota response:
(u'whitelistedKeySpecs', [{u'kind': u'dns#dnsKeySpec', u'algorithm': u'ecdsap256sha256'}, {u'kind': u'dns#dnsKeySpec', u'algorithm': u'ecdsap384sha384'}, {u'kind': u'dns#dnsKeySpec', u'keyLength': 2048, u'algorithm': u'rsasha256'}, {u'kind': u'dns#dnsKeySpec', u'keyLength': 1024, u'keyType': u'zoneSigning', u'algorithm': u'rsasha256'}, {u'kind': u'dns#dnsKeySpec', u'keyLength': 2048, u'algorithm': u'rsasha512'}, {u'kind': u'dns#dnsKeySpec', u'keyLength': 1024, u'keyType': u'zoneSigning', u'algorithm': u'rsasha512'}])Kind regards, Mike