Skip to content

Commit 64612d6

Browse files
[Keyvault] - Update rest api specs to 2024-11-01 release (#28280)
1 parent 37610fc commit 64612d6

File tree

69 files changed

+50506
-31992
lines changed

Some content is hidden

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

69 files changed

+50506
-31992
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - KeyVault")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("6.3.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("6.3.1")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/KeyVault/KeyVault.Autorest/README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ For information on how to develop for `Az.KeyVault`, see [how-to.md](how-to.md).
2828
2929
``` yaml
3030
# Please specify the commit id that includes your features to make sure generated codes stable.
31-
commit: 8fa9b5051129dd4808c9be1f5b753af226b044db
31+
commit: b92fe44fbb8e415302342ecd6c2c5bb764da7949
3232
require:
3333
# readme.azure.noprofile.md is the common configuration file
3434
- $(this-folder)/../../readme.azure.noprofile.md
3535

3636
input-file:
3737
# You need to specify your swagger files here.
38-
- $(repo)/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/keyvault.json
39-
- $(repo)/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/managedHsm.json
38+
- $(repo)/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2024-11-01/keyvault.json
39+
- $(repo)/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2024-11-01/managedHsm.json
4040
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
4141
# - (this-folder)/relative-path-to-your-swagger
4242

@@ -50,6 +50,11 @@ subject-prefix: $(service-name)
5050
# uncomment following line to support viaIdentity for these post APIs
5151
# identity-correction-for-post: true
5252

53+
# because autorest.powershell is unable to transform IdentityType as the best practice design if it uses managed identity
54+
# we hide the original cmdlet and custom it under /custom folder
55+
disable-transform-identity-type-for-operation:
56+
- ManagedHsms_Update
57+
5358
directive:
5459
# Following is two common directive which are normally required in all the RPs
5560
# 1. Remove the unexpanded parameter set

src/KeyVault/KeyVault.Autorest/docs/Az.KeyVault.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.KeyVault
3-
Module Guid: e0f28b9c-6a6b-4b66-833e-c01780a5577b
3+
Module Guid: f682d34a-6f17-4cd7-967e-aa2e28f8b021
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.keyvault
55
Help Version: 1.0.0.0
66
Locale: en-US
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "f0bba858-be38-4a6b-bbce-c2ea3d3dedf7"
2+
"generate_Id": "8dcffdcd-b09b-497b-8714-aec7c794f536"
33
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Resources
2+
This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder.
3+
4+
## Info
5+
- Modifiable: yes
6+
- Generated: no
7+
- Committed: yes
8+
- Packaged: no
9+
10+
## Purpose
11+
Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact.

src/KeyVault/KeyVault.Autorest/test/Add-AzKeyVaultManagedHsmRegion.Recording.json

Lines changed: 770 additions & 2476 deletions
Large diffs are not rendered by default.

src/KeyVault/KeyVault.Autorest/test/Get-AzKeyVaultManagedHsmRegion.Recording.json

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"Get-AzKeyVaultManagedHsmRegion+[NoContext]+List+$GET+https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/bez-rg/providers/Microsoft.KeyVault/managedHSMs/bezmhsm/regions?api-version=2023-02-01+1": {
2+
"Get-AzKeyVaultManagedHsmRegion+[NoContext]+List+$GET+https://management.azure.com/subscriptions/0e745469-49f8-48c9-873b-24ca87143db1/resourceGroups/daniel-rg/providers/Microsoft.KeyVault/managedHSMs/daniel-hsm/regions?api-version=2024-11-01+1": {
33
"Request": {
44
"Method": "GET",
5-
"RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/bez-rg/providers/Microsoft.KeyVault/managedHSMs/bezmhsm/regions?api-version=2023-02-01",
5+
"RequestUri": "https://management.azure.com/subscriptions/0e745469-49f8-48c9-873b-24ca87143db1/resourceGroups/daniel-rg/providers/Microsoft.KeyVault/managedHSMs/daniel-hsm/regions?api-version=2024-11-01",
66
"Content": null,
77
"isContentBase64": false,
88
"Headers": {
9-
"x-ms-unique-id": [ "1" ],
10-
"x-ms-client-request-id": [ "6f05aad9-7a35-41b5-b620-ffdcdff80745" ],
9+
"x-ms-unique-id": [ "49" ],
10+
"x-ms-client-request-id": [ "f7790fba-fd1d-4352-9d0c-12615f856734" ],
1111
"CommandName": [ "Get-AzKeyVaultManagedHsmRegion" ],
1212
"FullCommandName": [ "Get-AzKeyVaultManagedHsmRegion_List" ],
1313
"ParameterSetName": [ "__AllParameterSets" ],
14-
"User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.13", "Az.KeyVault/0.1.0" ],
14+
"User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.5.2", "Az.KeyVault/0.1.0" ],
1515
"Authorization": [ "[Filtered]" ]
1616
},
1717
"ContentHeaders": {
@@ -22,24 +22,27 @@
2222
"Headers": {
2323
"Cache-Control": [ "no-cache" ],
2424
"Pragma": [ "no-cache" ],
25-
"x-ms-client-request-id": [ "6f05aad9-7a35-41b5-b620-ffdcdff80745" ],
26-
"x-ms-keyvault-service-version": [ "1.5.885.0" ],
27-
"x-ms-request-id": [ "d30b99af-ee54-413c-b709-848b7e41da98" ],
25+
"x-ms-client-request-id": [ "f7790fba-fd1d-4352-9d0c-12615f856734" ],
26+
"x-ms-keyvault-service-version": [ "2.2.243.0" ],
27+
"x-ms-request-id": [ "31066744-0ff8-4f4a-80ae-aef993423fb5" ],
2828
"X-Content-Type-Options": [ "nosniff" ],
2929
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
30-
"Server": [ "Microsoft-IIS/10.0" ],
3130
"X-AspNet-Version": [ "4.0.30319" ],
32-
"x-ms-ratelimit-remaining-subscription-reads": [ "11999" ],
33-
"x-ms-correlation-request-id": [ "50a6fca5-5850-4e6a-b4de-6125032d920f" ],
34-
"x-ms-routing-request-id": [ "SOUTHEASTASIA:20230818T074143Z:50a6fca5-5850-4e6a-b4de-6125032d920f" ],
35-
"Date": [ "Fri, 18 Aug 2023 07:41:42 GMT" ]
31+
"x-ms-operation-identifier": [ "tenantId=213e87ed-8e08-4eb4-a63c-c073058f7b00,objectId=a217809c-9dd2-41d4-b32a-7b16e0b588bf/australiaeast/71576620-0908-41cb-a36d-91709e5bfdf6" ],
32+
"x-ms-ratelimit-remaining-subscription-reads": [ "249" ],
33+
"x-ms-ratelimit-remaining-subscription-global-reads": [ "3749" ],
34+
"x-ms-correlation-request-id": [ "0749e52e-cf26-4eae-b931-0cef36e2317d" ],
35+
"x-ms-routing-request-id": [ "AUSTRALIAEAST:20250811T232643Z:0749e52e-cf26-4eae-b931-0cef36e2317d" ],
36+
"X-Cache": [ "CONFIG_NOCACHE" ],
37+
"X-MSEdge-Ref": [ "Ref A: 88E1B6E55A8644A1B7DB70CE0B4E91D7 Ref B: SYD03EDGE2018 Ref C: 2025-08-11T23:26:42Z" ],
38+
"Date": [ "Mon, 11 Aug 2025 23:26:43 GMT" ]
3639
},
3740
"ContentHeaders": {
38-
"Content-Length": [ "224" ],
41+
"Content-Length": [ "147" ],
3942
"Content-Type": [ "application/json; charset=utf-8" ],
4043
"Expires": [ "-1" ]
4144
},
42-
"Content": "{\"value\":[{\"name\":\"eastus\",\"provisioningState\":\"Succeeded\",\"isPrimary\":true},{\"name\":\"westus\",\"provisioningState\":\"Provisioning\",\"isPrimary\":false},{\"name\":\"eastus2\",\"provisioningState\":\"PreProvisioning\",\"isPrimary\":false}]}",
45+
"Content": "{\"value\":[{\"name\":\"westus\",\"provisioningState\":\"Succeeded\",\"isPrimary\":true},{\"name\":\"uksouth\",\"provisioningState\":\"Succeeded\",\"isPrimary\":false}]}",
4346
"isContentBase64": false
4447
}
4548
}

0 commit comments

Comments
 (0)