Certificates api changes#6309
Conversation
| * Expiry date in UTC. | ||
| */ | ||
| private OffsetDateTime expires; | ||
| private OffsetDateTime expiresOn; |
There was a problem hiding this comment.
can you confirm that we landed on "On" and not "At"
There was a problem hiding this comment.
KV is using "On" suffix across all languages.
Storage and Identity too use "On" suffix, I believe.
heaths
left a comment
There was a problem hiding this comment.
A few comments, both otherwise LGTM.
samvaity
left a comment
There was a problem hiding this comment.
Would there be a review again in the API review tool after this is merged?
| } catch (RuntimeException ex) { | ||
| return monoError(logger, ex); | ||
| } | ||
| public PollerFlux<DeletedCertificate, Void> beginDeleteCertificate(String name) { |
There was a problem hiding this comment.
same here, can return an NPE if status is null or if any of the three other than the mentioned ones and passed to the PollResponse<>
There was a problem hiding this comment.
for delete case, non-null status is returned in all cases.
There was a problem hiding this comment.
Service will always return a non-null status. But here we initialize the status variable to null and only update it if the service returned status is either inProgress, completed or failed. But if it is not any of those we keep the status value as null and that is further passed to PollResponse which expects a non-null status.
There was a problem hiding this comment.
updated the default case in switch statement to parse a response other than those three, but that state should not hit ideally, as service should not emit any other status than those three.
Fixes #6285 , #6408