-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Applied arch board feedback for Key Vault Administration (#17284)
* Removed exposure of implementation package and any usage of KeyVaultErrorException from public APIs. * Renamed KeyVaultRoleAssignmentScope to KeyVaultRoleScope. Changed the name type from UUID to String in role assignment APIs. * Renamed APIs for re-hydrating LROs. * Added ServiceVersion support in the clients and their builders. Internally this will not be used until some changes in the code generation tool are applied. * Annotated read-only classes with @immutable. Added the "allowed" prefix to some KeyVaultPermission properties. Change the type of `startTime` and `endTime` in KeyVaultLongRunningOperation from Long to OffsetDateTime. * Changed the KeyVaultRoleScope enum from using URI to URL and added an overload that takes a the string representation of a URL. * Added overloads that allow passing a custom polling interval to LROs. * Removed the use of KeyVaultRoleAssignmentProperties in clients' public APIs in favor of using the `roleDefinitionId` and `servicePrincipalId` values directly. * Fixed Javadoc and test issues. * Fixed checkstyle issues. * Applied arch board meeting and PR feedback: * Renamed parameters containing the 'Uri' suffix to 'Url'. * Changed the type of `startTime` and `endTime` in the constructor of KeyVaultLongRunningOperation and its subtypes from `Long` to `OffsetDateTime`. * Removed unnecessary versions from KeyVaultAdministrationServiceVersion. Additional changes: * Renamed `scope` in KeyVaultRoleAssignment to `roleScope` to align with the access client APIs. * Polished Javadoc * Removed APIs to refresh LROs based on PR feedback. * Removed unused import in KeyVaultBackupAsyncClientTest.
- Loading branch information
Showing
31 changed files
with
590 additions
and
1,208 deletions.
There are no files selected for viewing
275 changes: 134 additions & 141 deletions
275
...ain/java/com/azure/security/keyvault/administration/KeyVaultAccessControlAsyncClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
132 changes: 67 additions & 65 deletions
132
...src/main/java/com/azure/security/keyvault/administration/KeyVaultAccessControlClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...java/com/azure/security/keyvault/administration/KeyVaultAdministrationServiceVersion.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.security.keyvault.administration; | ||
|
||
import com.azure.core.util.ServiceVersion; | ||
|
||
/** | ||
* The versions of Azure Key Vault Administration service supported by this client library. | ||
*/ | ||
public enum KeyVaultAdministrationServiceVersion implements ServiceVersion { | ||
V7_2_PREVIEW("7.2-preview"); | ||
|
||
private final String version; | ||
|
||
KeyVaultAdministrationServiceVersion(String version) { | ||
this.version = version; | ||
} | ||
|
||
@Override | ||
public String getVersion() { | ||
return this.version; | ||
} | ||
|
||
/** | ||
* Gets the latest service version supported by this client library. | ||
* | ||
* @return The latest {@link KeyVaultAdministrationServiceVersion}. | ||
*/ | ||
public static KeyVaultAdministrationServiceVersion getLatest() { | ||
return V7_2_PREVIEW; | ||
} | ||
} |
210 changes: 94 additions & 116 deletions
210
...n/src/main/java/com/azure/security/keyvault/administration/KeyVaultBackupAsyncClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.