-
Notifications
You must be signed in to change notification settings - Fork 4.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
Update Administration backup LROs to conform to guidelines #17440
Update Administration backup LROs to conform to guidelines #17440
Conversation
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.
Really dumb question - Keyvault is a shipped service, right?
How is changing public properties names:
public System.Collections.Generic.IList<string> AllowedActions { get { throw null; } }
public System.Collections.Generic.IList<string> AllowedDataActions { get { throw null; } }
public System.Collections.Generic.IList<string> DeniedActions { get { throw null; } }
public System.Collections.Generic.IList<string> DeniedDataActions { get { throw null; } }
not an API break?
@chamons , the service shipped, but the SDK with these members hasn't GA'd. We don't always use the same names for a better UX, and that is the case here. |
sdk/keyvault/Azure.Security.KeyVault.Administration/src/BackupOperation.cs
Outdated
Show resolved
Hide resolved
} | ||
if (_value != null && _value.EndTime.HasValue && _value.Error != null) | ||
{ | ||
_requestFailedException = new RequestFailedException($"{_value.Error.Message}\nInnerError: {_value.Error.InnerError}\nCode: {_value.Error.Code}"); |
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.
Do we not already have a utility method in Core, perhaps, that would do this consistently?
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.
Which part were you thinking should be consistent? The error payload in this case is specific to the service.
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.
The formatting itself.
sdk/keyvault/Azure.Security.KeyVault.Administration/src/KeyVaultBackupClient.cs
Outdated
Show resolved
Hide resolved
sdk/keyvault/Azure.Security.KeyVault.Administration/src/RestoreOperationInternal.cs
Outdated
Show resolved
Hide resolved
@@ -37,6 +37,7 @@ public async Task ResumeBackupRestore() | |||
|
|||
// Construct a BackupOperation using a KeyVaultBackupClient and the Id from a previously started operation. | |||
BackupOperation backupOperation = new BackupOperation(client, backupOperationId); | |||
/*@@*/backupOperation._retryAfterSeconds = (int)PollingInterval.TotalSeconds; |
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.
👍
* fixup LROs to conform to guidelines, add tests
[Go] Rename stuttering (Azure#17440) * [Go] rename stuttering * fix
closes #17381