[KeyVault] Exposing the parser of the KeyVault Identifier#9642
[KeyVault] Exposing the parser of the KeyVault Identifier#9642sadasant merged 13 commits intoAzure:masterfrom
Conversation
heaths
left a comment
There was a problem hiding this comment.
Be sure to refer to the product as "Key Vault", but apart from a few comments, LGTM.
xirzec
left a comment
There was a problem hiding this comment.
Extracting things make sense, but I'm not sure why we used a class constructor to do this logic
Co-authored-by: Jeff Fisher <xirzec@xirzec.com>
|
A few design questions keeping the changes to the certificates package in mind. The same applies to keys & secrets as they share the same design. I am guessing we used the .Net implementation as a reference here and since this is a preview, none of these questions block the release, but we should discuss these nevertheless so that we can make the right call for GA
|
Sure, I can do that.
Not sure, let's ask @heaths . Perhaps I got something wrong.
Not sure, let's ask @heaths . Perhaps I got something wrong.
Sure! I had forgotten that this file was hand-written. A year has passed 😮 |
|
Re: I agree that this doesn't really need to be public. Internally, .NET already has types that do this (in fact, I'll likely just "forward" most of the functionality to them) and we only use Re: The value I see is associating an instance of the |
@sadasant, I would recommend that we remove the collection from the parsed output and remove any validations for it in the new exposed parser function if no one from the feature crew has any further concerns.
In that case, I would recommend changing the name in the output for this id to make it clear that it was the input id. Otherwise, when I look at a type called This name should be consistent across the languages, so am ok keeping it as id for now, but please log an issue so that we can resolve the naming concern before GA |
|
While I think "ID" (regardless of casing) is important and consistent across usage within a language as well as across languages and even libraries, perhaps "OriginalId" would make more sense here? |
Original ID feels weird, since we didn't change it... I would prefer just |
|
inputId, unparsedId, fullId, completeId: the world is full of choices |
I'll add "SourceId" into the mix as well 😄 |
|
I like sourceId! |
|
We could also use "identifier", how does that sound? |
|
identifier would be no different than id in this case |
|
We're currently arguing if we should continue to follow this approach or depart from it to some extent. Once we reach an agreement internally, I will update this PR. |
|
Welp, I ended up merging this without all of the changes. My bad. A new PR with an update is coming. |
IMPORTANT:
I ended up merging this PR without all of the feedback applied, here's a PR with the rest of the feedback: #10736
(Originally from #7384 . I made a new PR to make it easier with the conflicts)
In this PR I'm adding functions that parse the Key Vault identifier depending on the collections relevant for Keys, Secrets and Certificates.
Fixes #7139
Fixes #7443