Skip to content

Commit

Permalink
Reset changes to the patch version.
Browse files Browse the repository at this point in the history
  • Loading branch information
vcolin7 committed Aug 22, 2023
1 parent ee81424 commit a5730dd
Show file tree
Hide file tree
Showing 128 changed files with 18,297 additions and 2,627 deletions.
13 changes: 2 additions & 11 deletions sdk/keyvault/azure-security-keyvault-keys/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
# Release History

## 4.7.0-beta.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes
- Migrate test recordings to assets repo.

## 4.6.4 (2023-07-25)

### Other Changes
Expand All @@ -30,6 +19,7 @@
- Upgraded `azure-core` from `1.39.0` to version `1.40.0`.
- Upgraded `azure-core-http-netty` from `1.13.3` to version `1.13.4`.


## 4.6.2 (2023-05-23)

### Other Changes
Expand All @@ -39,6 +29,7 @@
- Upgraded `azure-core-http-netty` from `1.13.2` to version `1.13.3`.
- Upgraded `azure-core` from `1.38.0` to version `1.39.0`.


## 4.6.1 (2023-04-20)

### Other Changes
Expand Down
6 changes: 0 additions & 6 deletions sdk/keyvault/azure-security-keyvault-keys/assets.json

This file was deleted.

12 changes: 6 additions & 6 deletions sdk/keyvault/azure-security-keyvault-keys/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<groupId>com.azure</groupId>
<artifactId>azure-security-keyvault-keys</artifactId>
<version>4.7.0-beta.1</version> <!-- {x-version-update;com.azure:azure-security-keyvault-keys;current} -->
<version>4.6.4</version> <!-- {x-version-update;com.azure:azure-security-keyvault-keys;current} -->

<name>Microsoft Azure client library for KeyVault Keys</name>
<description>This module contains client library for Microsoft Azure KeyVault Keys.</description>
Expand Down Expand Up @@ -63,13 +63,13 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core</artifactId>
<version>1.42.0</version> <!-- {x-version-update;com.azure:azure-core;dependency} -->
<version>1.41.0</version> <!-- {x-version-update;com.azure:azure-core;dependency} -->
</dependency>

<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-http-netty</artifactId>
<version>1.13.6</version> <!-- {x-version-update;com.azure:azure-core-http-netty;dependency} -->
<version>1.13.5</version> <!-- {x-version-update;com.azure:azure-core-http-netty;dependency} -->
</dependency>

<!-- Test dependencies -->
Expand Down Expand Up @@ -106,19 +106,19 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-test</artifactId>
<version>1.19.0</version> <!-- {x-version-update;com.azure:azure-core-test;dependency} -->
<version>1.18.1</version> <!-- {x-version-update;com.azure:azure-core-test;dependency} -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-http-okhttp</artifactId>
<version>1.11.12</version> <!-- {x-version-update;com.azure:azure-core-http-okhttp;dependency} -->
<version>1.11.11</version> <!-- {x-version-update;com.azure:azure-core-http-okhttp;dependency} -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<version>1.10.0</version> <!-- {x-version-update;com.azure:azure-identity;dependency} -->
<version>1.9.2</version> <!-- {x-version-update;com.azure:azure-identity;dependency} -->
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ public Mono<Response<KeyVaultKey>> restoreKeyBackupWithResponse(byte[] backup) {
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux<KeyProperties> listPropertiesOfKeys() {
return implClient.listPropertiesOfKeysAsync();
return implClient.listPropertiesOfKeys();
}

/**
Expand All @@ -1346,7 +1346,7 @@ public PagedFlux<KeyProperties> listPropertiesOfKeys() {
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux<DeletedKey> listDeletedKeys() {
return implClient.listDeletedKeysAsync();
return implClient.listDeletedKeys();
}

/**
Expand Down Expand Up @@ -1381,7 +1381,7 @@ public PagedFlux<DeletedKey> listDeletedKeys() {
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux<KeyProperties> listPropertiesOfKeyVersions(String name) {
return implClient.listPropertiesOfKeyVersionsAsync(name);
return implClient.listPropertiesOfKeyVersions(name);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ public Response<KeyVaultKey> createEcKeyWithResponse(CreateEcKeyOptions createEc
* <p><strong>Code Samples</strong></p>
* <p>Creates a new {@link KeyVaultKey symmetric key}. The {@link KeyVaultKey key} activates in one day and expires
* in one year. Prints out the details of the newly {@link KeyVaultKey created key}.</p>
* <!-- src_embed com.azure.security.keyvault.keys.KeyClient.createOctKey#CreateOctKeyOptions -->
* <!-- src_embed com.azure.security.keyvault.keys.async.KeyClient.createOctKey#CreateOctKeyOptions -->
* <pre>
* CreateOctKeyOptions createOctKeyOptions = new CreateOctKeyOptions&#40;&quot;keyName&quot;&#41;
* .setNotBefore&#40;OffsetDateTime.now&#40;&#41;.plusDays&#40;1&#41;&#41;
Expand All @@ -447,7 +447,7 @@ public Response<KeyVaultKey> createEcKeyWithResponse(CreateEcKeyOptions createEc
*
* System.out.printf&#40;&quot;Created key with name: %s and id: %s%n&quot;, octKey.getName&#40;&#41;, octKey.getId&#40;&#41;&#41;;
* </pre>
* <!-- end com.azure.security.keyvault.keys.KeyClient.createOctKey#CreateOctKeyOptions -->
* <!-- end com.azure.security.keyvault.keys.async.KeyClient.createOctKey#CreateOctKeyOptions -->
*
* @param createOctKeyOptions The {@link CreateOctKeyOptions options object} containing information about the
* {@link KeyVaultKey symmetric key} being created.
Expand Down Expand Up @@ -479,7 +479,7 @@ public KeyVaultKey createOctKey(CreateOctKeyOptions createOctKeyOptions) {
* <p><strong>Code Samples</strong></p>
* <p>Creates a new {@link KeyVaultKey symmetric key}. The {@link KeyVaultKey key} activates in one day and expires
* in one year. Prints out the details of the newly {@link KeyVaultKey created key}.</p>
* <!-- src_embed com.azure.security.keyvault.keys.KeyClient.createOctKey#CreateOctKeyOptions-Context -->
* <!-- src_embed com.azure.security.keyvault.keys.async.KeyClient.createOctKey#CreateOctKeyOptions-Context -->
* <pre>
* CreateOctKeyOptions createOctKeyOptions = new CreateOctKeyOptions&#40;&quot;keyName&quot;&#41;
* .setNotBefore&#40;OffsetDateTime.now&#40;&#41;.plusDays&#40;1&#41;&#41;
Expand All @@ -490,7 +490,7 @@ public KeyVaultKey createOctKey(CreateOctKeyOptions createOctKeyOptions) {
* System.out.printf&#40;&quot;Created key with name: %s and: id %s%n&quot;, createOctKeyResponse.getValue&#40;&#41;.getName&#40;&#41;,
* createOctKeyResponse.getValue&#40;&#41;.getId&#40;&#41;&#41;;
* </pre>
* <!-- end com.azure.security.keyvault.keys.KeyClient.createOctKey#CreateOctKeyOptions-Context -->
* <!-- end com.azure.security.keyvault.keys.async.KeyClient.createOctKey#CreateOctKeyOptions-Context -->
*
* @param createOctKeyOptions The {@link CreateOctKeyOptions options object} containing information about the
* {@link KeyVaultKey symmetric key} being created.
Expand Down Expand Up @@ -849,7 +849,7 @@ public Response<KeyVaultKey> updateKeyPropertiesWithResponse(KeyProperties keyPr
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<DeletedKey, Void> beginDeleteKey(String name) {
return implClient.beginDeleteKey(name, Context.NONE);
return implClient.beginDeleteKeyAsync(name).getSyncPoller();
}

/**
Expand Down Expand Up @@ -995,7 +995,7 @@ public Response<Void> purgeDeletedKeyWithResponse(String name, Context context)
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<KeyVaultKey, Void> beginRecoverDeletedKey(String name) {
return implClient.beginRecoverDeletedKey(name, Context.NONE);
return implClient.beginRecoverDeletedKeyAsync(name).getSyncPoller();
}

/**
Expand Down Expand Up @@ -1243,7 +1243,7 @@ public PagedIterable<KeyProperties> listPropertiesOfKeys() {
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable<KeyProperties> listPropertiesOfKeys(Context context) {
return implClient.listPropertiesOfKeys(context);
return new PagedIterable<>(implClient.listPropertiesOfKeys(context));
}

/**
Expand Down Expand Up @@ -1322,7 +1322,7 @@ public PagedIterable<DeletedKey> listDeletedKeys() {
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable<DeletedKey> listDeletedKeys(Context context) {
return implClient.listDeletedKeys(context);
return new PagedIterable<>(implClient.listDeletedKeys(context));
}

/**
Expand Down Expand Up @@ -1421,7 +1421,7 @@ public PagedIterable<KeyProperties> listPropertiesOfKeyVersions(String name) {
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable<KeyProperties> listPropertiesOfKeyVersions(String name, Context context) {
return implClient.listPropertiesOfKeyVersions(name, context);
return new PagedIterable<>(implClient.listPropertiesOfKeyVersions(name, context));
}

/**
Expand Down Expand Up @@ -1529,7 +1529,7 @@ public ReleaseKeyResult releaseKey(String name, String targetAttestationToken) {
*
* @param name The name of the {@link KeyVaultKey key} to release.
* @param version The version of the key to release. If this is empty or {@code null}, this call is equivalent to
* calling {@link KeyClient#releaseKey(String, String)}, with the latest key version being released.
* calling {@link KeyAsyncClient#releaseKey(String, String)}, with the latest key version being released.
* @param targetAttestationToken The attestation assertion for the target of the {@link KeyVaultKey key} release.
*
* @return The key release result containing the {@link KeyVaultKey released key}.
Expand Down Expand Up @@ -1571,7 +1571,7 @@ public ReleaseKeyResult releaseKey(String name, String version, String targetAtt
*
* @param name The name of the {@link KeyVaultKey key} to release.
* @param version The version of the {@link KeyVaultKey key} to release. If this is empty or {@code null}, this call
* is equivalent to calling {@link KeyClient#releaseKey(String, String)}, with the latest key version being
* is equivalent to calling {@link KeyAsyncClient#releaseKey(String, String)}, with the latest key version being
* released.
* @param targetAttestationToken The attestation assertion for the target of the key release.
* @param releaseKeyOptions Additional {@link ReleaseKeyOptions options} for releasing a {@link KeyVaultKey key}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ private KeyClientImpl buildInnerClient() {
String buildEndpoint = getBuildEndpoint(buildConfiguration);

if (buildEndpoint == null) {
throw LOGGER.logExceptionAsError(
new IllegalStateException(KeyVaultErrorCodeStrings.VAULT_END_POINT_REQUIRED));
throw LOGGER
.logExceptionAsError(new IllegalStateException(KeyVaultErrorCodeStrings
.getErrorString(KeyVaultErrorCodeStrings.VAULT_END_POINT_REQUIRED)));
}

KeyServiceVersion serviceVersion = version != null ? version : KeyServiceVersion.getLatest();
Expand All @@ -190,7 +191,9 @@ private KeyClientImpl buildInnerClient() {
}

if (credential == null) {
throw LOGGER.logExceptionAsError(new IllegalStateException(KeyVaultErrorCodeStrings.CREDENTIALS_REQUIRED));
throw LOGGER.logExceptionAsError(
new IllegalStateException(KeyVaultErrorCodeStrings
.getErrorString(KeyVaultErrorCodeStrings.CREDENTIAL_REQUIRED)));
}

// Closest to API goes first, closest to wire goes last.
Expand Down
Loading

0 comments on commit a5730dd

Please sign in to comment.