Skip to content

Commit 9c7cf9e

Browse files
authored
mgmt, update keyvault to 2023-02 (Azure#34491)
* codegen * session records * related session records * changelog.md
1 parent b0218ca commit 9c7cf9e

File tree

144 files changed

+2643
-1110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+2643
-1110
lines changed

sdk/resourcemanager/api-specs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"dir": "azure-resourcemanager-keyvault",
139139
"source": "specification/keyvault/resource-manager/readme.md",
140140
"package": "com.azure.resourcemanager.keyvault",
141-
"args": "--tag=package-2021-10",
141+
"args": "--tag=package-2023-02",
142142
"note": "use local azure-rest-api-specs and remove keys.json, secrets.json and keysManagedHsm.json in README.md tag"
143143
},
144144
"keyvault-hybrid": {

sdk/resourcemanager/azure-resourcemanager-compute/src/test/resources/session-records/DiskEncryptionSetTests.canCRUDDiskEncryptionSet.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"Exception" : null
2828
}, {
2929
"Method" : "PUT",
30-
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg44644/providers/Microsoft.KeyVault/vaults/kv01562d755?api-version=2021-10-01",
30+
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg44644/providers/Microsoft.KeyVault/vaults/kv01562d755?api-version=2023-02-01",
3131
"Headers" : {
3232
"User-Agent" : "azsdk-java-com.azure.resourcemanager.keyvault/2.23.0-beta.1 (17.0.3.1; Mac OS X; 11.7.2)",
3333
"x-ms-client-request-id" : "b12e36e9-d687-44ac-99fb-e23db6747d11",
@@ -57,7 +57,7 @@
5757
"Exception" : null
5858
}, {
5959
"Method" : "GET",
60-
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg44644/providers/Microsoft.KeyVault/vaults/kv01562d755?api-version=2021-10-01",
60+
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg44644/providers/Microsoft.KeyVault/vaults/kv01562d755?api-version=2023-02-01",
6161
"Headers" : {
6262
"User-Agent" : "azsdk-java-com.azure.resourcemanager.keyvault/2.23.0-beta.1 (17.0.3.1; Mac OS X; 11.7.2)",
6363
"x-ms-client-request-id" : "ea950847-48e2-48c8-ac71-a811f79da900"

sdk/resourcemanager/azure-resourcemanager-compute/src/test/resources/session-records/VirtualMachineEncryptionOperationsTests.canEncryptVirtualMachine.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
"Exception" : null
262262
}, {
263263
"Method" : "PUT",
264-
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vmencryptst099816/providers/Microsoft.KeyVault/vaults/vault55640b2bdc?api-version=2021-10-01",
264+
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vmencryptst099816/providers/Microsoft.KeyVault/vaults/vault55640b2bdc?api-version=2023-02-01",
265265
"Headers" : {
266266
"User-Agent" : "azsdk-java-com.azure.resourcemanager.keyvault/2.23.0-beta.1 (17.0.3.1; Mac OS X; 11.7.2)",
267267
"x-ms-client-request-id" : "dfda6483-d408-4809-aefc-d717acd80992",
@@ -291,7 +291,7 @@
291291
"Exception" : null
292292
}, {
293293
"Method" : "GET",
294-
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vmencryptst099816/providers/Microsoft.KeyVault/vaults/vault55640b2bdc?api-version=2021-10-01",
294+
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vmencryptst099816/providers/Microsoft.KeyVault/vaults/vault55640b2bdc?api-version=2023-02-01",
295295
"Headers" : {
296296
"User-Agent" : "azsdk-java-com.azure.resourcemanager.keyvault/2.23.0-beta.1 (17.0.3.1; Mac OS X; 11.7.2)",
297297
"x-ms-client-request-id" : "272bd100-ae8b-4cd0-8b38-569e17a2375e"

sdk/resourcemanager/azure-resourcemanager-keyvault/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
- Supported `ManagedHsm` for Azure Key Vault Managed HSM.
88

9+
### Other Changes
10+
11+
#### Dependency Updates
12+
13+
- Updated `api-version` to `2023-02-01`.
14+
915
## 2.25.0 (2023-03-24)
1016

1117
### Other Changes

sdk/resourcemanager/azure-resourcemanager-keyvault/src/main/java/com/azure/resourcemanager/keyvault/fluent/KeyVaultManagementClient.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ public interface KeyVaultManagementClient {
8787
*/
8888
MhsmPrivateLinkResourcesClient getMhsmPrivateLinkResources();
8989

90+
/**
91+
* Gets the MhsmRegionsClient object to access its operations.
92+
*
93+
* @return the MhsmRegionsClient object.
94+
*/
95+
MhsmRegionsClient getMhsmRegions();
96+
9097
/**
9198
* Gets the OperationsClient object to access its operations.
9299
*

sdk/resourcemanager/azure-resourcemanager-keyvault/src/main/java/com/azure/resourcemanager/keyvault/fluent/ManagedHsmsClient.java

Lines changed: 65 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
import com.azure.core.util.Context;
1414
import com.azure.core.util.polling.PollerFlux;
1515
import com.azure.core.util.polling.SyncPoller;
16+
import com.azure.resourcemanager.keyvault.fluent.models.CheckMhsmNameAvailabilityResultInner;
1617
import com.azure.resourcemanager.keyvault.fluent.models.DeletedManagedHsmInner;
1718
import com.azure.resourcemanager.keyvault.fluent.models.ManagedHsmInner;
19+
import com.azure.resourcemanager.keyvault.models.CheckMhsmNameAvailabilityParameters;
1820
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete;
1921
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet;
2022
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing;
@@ -357,27 +359,27 @@ SyncPoller<PollResult<ManagedHsmInner>, ManagedHsmInner> beginUpdate(
357359
*
358360
* @param resourceGroupName Name of the resource group that contains the managed HSM pool.
359361
* @param name The name of the managed HSM Pool.
362+
* @param context The context to associate with this operation.
360363
* @throws IllegalArgumentException thrown if parameters fail the validation.
361364
* @throws com.azure.resourcemanager.keyvault.models.ErrorException thrown if the request is rejected by server.
362365
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
363-
* @return the specified managed HSM Pool.
366+
* @return the specified managed HSM Pool along with {@link Response}.
364367
*/
365368
@ServiceMethod(returns = ReturnType.SINGLE)
366-
ManagedHsmInner getByResourceGroup(String resourceGroupName, String name);
369+
Response<ManagedHsmInner> getByResourceGroupWithResponse(String resourceGroupName, String name, Context context);
367370

368371
/**
369372
* Gets the specified managed HSM Pool.
370373
*
371374
* @param resourceGroupName Name of the resource group that contains the managed HSM pool.
372375
* @param name The name of the managed HSM Pool.
373-
* @param context The context to associate with this operation.
374376
* @throws IllegalArgumentException thrown if parameters fail the validation.
375377
* @throws com.azure.resourcemanager.keyvault.models.ErrorException thrown if the request is rejected by server.
376378
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
377-
* @return the specified managed HSM Pool along with {@link Response}.
379+
* @return the specified managed HSM Pool.
378380
*/
379381
@ServiceMethod(returns = ReturnType.SINGLE)
380-
Response<ManagedHsmInner> getByResourceGroupWithResponse(String resourceGroupName, String name, Context context);
382+
ManagedHsmInner getByResourceGroup(String resourceGroupName, String name);
381383

382384
/**
383385
* The List operation gets information about the managed HSM Pools associated with the subscription and within the
@@ -542,27 +544,27 @@ SyncPoller<PollResult<ManagedHsmInner>, ManagedHsmInner> beginUpdate(
542544
*
543545
* @param name The name of the deleted managed HSM.
544546
* @param location The location of the deleted managed HSM.
547+
* @param context The context to associate with this operation.
545548
* @throws IllegalArgumentException thrown if parameters fail the validation.
546549
* @throws com.azure.resourcemanager.keyvault.models.ErrorException thrown if the request is rejected by server.
547550
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
548-
* @return the specified deleted managed HSM.
551+
* @return the specified deleted managed HSM along with {@link Response}.
549552
*/
550553
@ServiceMethod(returns = ReturnType.SINGLE)
551-
DeletedManagedHsmInner getDeleted(String name, String location);
554+
Response<DeletedManagedHsmInner> getDeletedWithResponse(String name, String location, Context context);
552555

553556
/**
554557
* Gets the specified deleted managed HSM.
555558
*
556559
* @param name The name of the deleted managed HSM.
557560
* @param location The location of the deleted managed HSM.
558-
* @param context The context to associate with this operation.
559561
* @throws IllegalArgumentException thrown if parameters fail the validation.
560562
* @throws com.azure.resourcemanager.keyvault.models.ErrorException thrown if the request is rejected by server.
561563
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
562-
* @return the specified deleted managed HSM along with {@link Response}.
564+
* @return the specified deleted managed HSM.
563565
*/
564566
@ServiceMethod(returns = ReturnType.SINGLE)
565-
Response<DeletedManagedHsmInner> getDeletedWithResponse(String name, String location, Context context);
567+
DeletedManagedHsmInner getDeleted(String name, String location);
566568

567569
/**
568570
* Permanently deletes the specified managed HSM.
@@ -654,4 +656,57 @@ SyncPoller<PollResult<ManagedHsmInner>, ManagedHsmInner> beginUpdate(
654656
*/
655657
@ServiceMethod(returns = ReturnType.SINGLE)
656658
void purgeDeleted(String name, String location, Context context);
659+
660+
/**
661+
* Checks that the managed hsm name is valid and is not already in use.
662+
*
663+
* @param mhsmName The name of the managed hsm.
664+
* @throws IllegalArgumentException thrown if parameters fail the validation.
665+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
666+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
667+
* @return the CheckMhsmNameAvailability operation response along with {@link Response} on successful completion of
668+
* {@link Mono}.
669+
*/
670+
@ServiceMethod(returns = ReturnType.SINGLE)
671+
Mono<Response<CheckMhsmNameAvailabilityResultInner>> checkMhsmNameAvailabilityWithResponseAsync(
672+
CheckMhsmNameAvailabilityParameters mhsmName);
673+
674+
/**
675+
* Checks that the managed hsm name is valid and is not already in use.
676+
*
677+
* @param mhsmName The name of the managed hsm.
678+
* @throws IllegalArgumentException thrown if parameters fail the validation.
679+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
680+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
681+
* @return the CheckMhsmNameAvailability operation response on successful completion of {@link Mono}.
682+
*/
683+
@ServiceMethod(returns = ReturnType.SINGLE)
684+
Mono<CheckMhsmNameAvailabilityResultInner> checkMhsmNameAvailabilityAsync(
685+
CheckMhsmNameAvailabilityParameters mhsmName);
686+
687+
/**
688+
* Checks that the managed hsm name is valid and is not already in use.
689+
*
690+
* @param mhsmName The name of the managed hsm.
691+
* @param context The context to associate with this operation.
692+
* @throws IllegalArgumentException thrown if parameters fail the validation.
693+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
694+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
695+
* @return the CheckMhsmNameAvailability operation response along with {@link Response}.
696+
*/
697+
@ServiceMethod(returns = ReturnType.SINGLE)
698+
Response<CheckMhsmNameAvailabilityResultInner> checkMhsmNameAvailabilityWithResponse(
699+
CheckMhsmNameAvailabilityParameters mhsmName, Context context);
700+
701+
/**
702+
* Checks that the managed hsm name is valid and is not already in use.
703+
*
704+
* @param mhsmName The name of the managed hsm.
705+
* @throws IllegalArgumentException thrown if parameters fail the validation.
706+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
707+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
708+
* @return the CheckMhsmNameAvailability operation response.
709+
*/
710+
@ServiceMethod(returns = ReturnType.SINGLE)
711+
CheckMhsmNameAvailabilityResultInner checkMhsmNameAvailability(CheckMhsmNameAvailabilityParameters mhsmName);
657712
}

sdk/resourcemanager/azure-resourcemanager-keyvault/src/main/java/com/azure/resourcemanager/keyvault/fluent/MhsmPrivateEndpointConnectionsClient.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,16 @@ Mono<MhsmPrivateEndpointConnectionInner> getAsync(
106106
* @param name Name of the managed HSM Pool.
107107
* @param privateEndpointConnectionName Name of the private endpoint connection associated with the managed hsm
108108
* pool.
109+
* @param context The context to associate with this operation.
109110
* @throws IllegalArgumentException thrown if parameters fail the validation.
110111
* @throws com.azure.resourcemanager.keyvault.models.ErrorException thrown if the request is rejected by server.
111112
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
112-
* @return the specified private endpoint connection associated with the managed HSM Pool.
113+
* @return the specified private endpoint connection associated with the managed HSM Pool along with {@link
114+
* Response}.
113115
*/
114116
@ServiceMethod(returns = ReturnType.SINGLE)
115-
MhsmPrivateEndpointConnectionInner get(String resourceGroupName, String name, String privateEndpointConnectionName);
117+
Response<MhsmPrivateEndpointConnectionInner> getWithResponse(
118+
String resourceGroupName, String name, String privateEndpointConnectionName, Context context);
116119

117120
/**
118121
* Gets the specified private endpoint connection associated with the managed HSM Pool.
@@ -121,16 +124,13 @@ Mono<MhsmPrivateEndpointConnectionInner> getAsync(
121124
* @param name Name of the managed HSM Pool.
122125
* @param privateEndpointConnectionName Name of the private endpoint connection associated with the managed hsm
123126
* pool.
124-
* @param context The context to associate with this operation.
125127
* @throws IllegalArgumentException thrown if parameters fail the validation.
126128
* @throws com.azure.resourcemanager.keyvault.models.ErrorException thrown if the request is rejected by server.
127129
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
128-
* @return the specified private endpoint connection associated with the managed HSM Pool along with {@link
129-
* Response}.
130+
* @return the specified private endpoint connection associated with the managed HSM Pool.
130131
*/
131132
@ServiceMethod(returns = ReturnType.SINGLE)
132-
Response<MhsmPrivateEndpointConnectionInner> getWithResponse(
133-
String resourceGroupName, String name, String privateEndpointConnectionName, Context context);
133+
MhsmPrivateEndpointConnectionInner get(String resourceGroupName, String name, String privateEndpointConnectionName);
134134

135135
/**
136136
* Updates the specified private endpoint connection associated with the managed hsm pool.
@@ -180,17 +180,19 @@ Mono<MhsmPrivateEndpointConnectionInner> putAsync(
180180
* @param privateEndpointConnectionName Name of the private endpoint connection associated with the managed hsm
181181
* pool.
182182
* @param properties The intended state of private endpoint connection.
183+
* @param context The context to associate with this operation.
183184
* @throws IllegalArgumentException thrown if parameters fail the validation.
184185
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
185186
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
186187
* @return private endpoint connection resource.
187188
*/
188189
@ServiceMethod(returns = ReturnType.SINGLE)
189-
MhsmPrivateEndpointConnectionInner put(
190+
MhsmPrivateEndpointConnectionsPutResponse putWithResponse(
190191
String resourceGroupName,
191192
String name,
192193
String privateEndpointConnectionName,
193-
MhsmPrivateEndpointConnectionInner properties);
194+
MhsmPrivateEndpointConnectionInner properties,
195+
Context context);
194196

195197
/**
196198
* Updates the specified private endpoint connection associated with the managed hsm pool.
@@ -200,19 +202,17 @@ MhsmPrivateEndpointConnectionInner put(
200202
* @param privateEndpointConnectionName Name of the private endpoint connection associated with the managed hsm
201203
* pool.
202204
* @param properties The intended state of private endpoint connection.
203-
* @param context The context to associate with this operation.
204205
* @throws IllegalArgumentException thrown if parameters fail the validation.
205206
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
206207
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
207208
* @return private endpoint connection resource.
208209
*/
209210
@ServiceMethod(returns = ReturnType.SINGLE)
210-
MhsmPrivateEndpointConnectionsPutResponse putWithResponse(
211+
MhsmPrivateEndpointConnectionInner put(
211212
String resourceGroupName,
212213
String name,
213214
String privateEndpointConnectionName,
214-
MhsmPrivateEndpointConnectionInner properties,
215-
Context context);
215+
MhsmPrivateEndpointConnectionInner properties);
216216

217217
/**
218218
* Deletes the specified private endpoint connection associated with the managed hsm pool.

sdk/resourcemanager/azure-resourcemanager-keyvault/src/main/java/com/azure/resourcemanager/keyvault/fluent/MhsmPrivateLinkResourcesClient.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,26 @@ Mono<Response<MhsmPrivateLinkResourceListResultInner>> listByMhsmResourceWithRes
4646
*
4747
* @param resourceGroupName Name of the resource group that contains the managed HSM pool.
4848
* @param name Name of the managed HSM Pool.
49+
* @param context The context to associate with this operation.
4950
* @throws IllegalArgumentException thrown if parameters fail the validation.
5051
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
5152
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
52-
* @return the private link resources supported for the managed hsm pool.
53+
* @return the private link resources supported for the managed hsm pool along with {@link Response}.
5354
*/
5455
@ServiceMethod(returns = ReturnType.SINGLE)
55-
MhsmPrivateLinkResourceListResultInner listByMhsmResource(String resourceGroupName, String name);
56+
Response<MhsmPrivateLinkResourceListResultInner> listByMhsmResourceWithResponse(
57+
String resourceGroupName, String name, Context context);
5658

5759
/**
5860
* Gets the private link resources supported for the managed hsm pool.
5961
*
6062
* @param resourceGroupName Name of the resource group that contains the managed HSM pool.
6163
* @param name Name of the managed HSM Pool.
62-
* @param context The context to associate with this operation.
6364
* @throws IllegalArgumentException thrown if parameters fail the validation.
6465
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
6566
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
66-
* @return the private link resources supported for the managed hsm pool along with {@link Response}.
67+
* @return the private link resources supported for the managed hsm pool.
6768
*/
6869
@ServiceMethod(returns = ReturnType.SINGLE)
69-
Response<MhsmPrivateLinkResourceListResultInner> listByMhsmResourceWithResponse(
70-
String resourceGroupName, String name, Context context);
70+
MhsmPrivateLinkResourceListResultInner listByMhsmResource(String resourceGroupName, String name);
7171
}

0 commit comments

Comments
 (0)