Skip to content

Commit 7df5a0b

Browse files
committed
Re-generated Management Sdk
1 parent ebb3857 commit 7df5a0b

File tree

4 files changed

+79
-6
lines changed

4 files changed

+79
-6
lines changed

src/KeyVault/KeyVault.Management.Sdk/Generated/KeyVaultManagementClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ private void Initialize()
331331
this.MhsmPrivateLinkResources = new MhsmPrivateLinkResourcesOperations(this);
332332
this.MhsmRegions = new MhsmRegionsOperations(this);
333333
this.BaseUri = new System.Uri("https://management.azure.com");
334-
this.ApiVersion = "2024-11-01";
334+
this.ApiVersion = "2025-05-01";
335335
this.AcceptLanguage = "en-US";
336336
this.LongRunningOperationRetryTimeout = 30;
337337
this.GenerateClientRequestId = true;

src/KeyVault/KeyVault.Management.Sdk/Generated/Models/MhsmNetworkRuleSet.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,18 @@ public MhsmNetworkRuleSet()
3535
/// <param name="ipRules">The list of IP address rules.
3636
/// </param>
3737

38+
/// <param name="serviceTags">The list of service tags.
39+
/// </param>
40+
3841
/// <param name="virtualNetworkRules">The list of virtual network rules.
3942
/// </param>
40-
public MhsmNetworkRuleSet(string bypass = default(string), string defaultAction = default(string), System.Collections.Generic.IList<MhsmipRule> ipRules = default(System.Collections.Generic.IList<MhsmipRule>), System.Collections.Generic.IList<MhsmVirtualNetworkRule> virtualNetworkRules = default(System.Collections.Generic.IList<MhsmVirtualNetworkRule>))
43+
public MhsmNetworkRuleSet(string bypass = default(string), string defaultAction = default(string), System.Collections.Generic.IList<MhsmipRule> ipRules = default(System.Collections.Generic.IList<MhsmipRule>), System.Collections.Generic.IList<MhsmServiceTagRule> serviceTags = default(System.Collections.Generic.IList<MhsmServiceTagRule>), System.Collections.Generic.IList<MhsmVirtualNetworkRule> virtualNetworkRules = default(System.Collections.Generic.IList<MhsmVirtualNetworkRule>))
4144

4245
{
4346
this.Bypass = bypass;
4447
this.DefaultAction = defaultAction;
4548
this.IPRules = ipRules;
49+
this.ServiceTags = serviceTags;
4650
this.VirtualNetworkRules = virtualNetworkRules;
4751
CustomInit();
4852
}
@@ -75,6 +79,12 @@ public MhsmNetworkRuleSet()
7579
[Newtonsoft.Json.JsonProperty(PropertyName = "ipRules")]
7680
public System.Collections.Generic.IList<MhsmipRule> IPRules {get; set; }
7781

82+
/// <summary>
83+
/// Gets or sets the list of service tags.
84+
/// </summary>
85+
[Newtonsoft.Json.JsonProperty(PropertyName = "serviceTags")]
86+
public System.Collections.Generic.IList<MhsmServiceTagRule> ServiceTags {get; set; }
87+
7888
/// <summary>
7989
/// Gets or sets the list of virtual network rules.
8090
/// </summary>
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See License.txt in the project root for license information.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
5+
6+
namespace Microsoft.Azure.Management.KeyVault.Models
7+
{
8+
using System.Linq;
9+
10+
/// <summary>
11+
/// A rule governing the accessibility of a managed hsm pool from a specific
12+
/// service tags.
13+
/// </summary>
14+
public partial class MhsmServiceTagRule
15+
{
16+
/// <summary>
17+
/// Initializes a new instance of the MhsmServiceTagRule class.
18+
/// </summary>
19+
public MhsmServiceTagRule()
20+
{
21+
CustomInit();
22+
}
23+
24+
/// <summary>
25+
/// Initializes a new instance of the MhsmServiceTagRule class.
26+
/// </summary>
27+
28+
/// <param name="tag">Name of the service tag.
29+
/// </param>
30+
public MhsmServiceTagRule(string tag)
31+
32+
{
33+
this.Tag = tag;
34+
CustomInit();
35+
}
36+
37+
/// <summary>
38+
/// An initialization method that performs custom operations like setting defaults
39+
/// </summary>
40+
partial void CustomInit();
41+
42+
43+
/// <summary>
44+
/// Gets or sets name of the service tag.
45+
/// </summary>
46+
[Newtonsoft.Json.JsonProperty(PropertyName = "tag")]
47+
public string Tag {get; set; }
48+
/// <summary>
49+
/// Validate the object.
50+
/// </summary>
51+
/// <exception cref="Microsoft.Rest.ValidationException">
52+
/// Thrown if validation fails
53+
/// </exception>
54+
public virtual void Validate()
55+
{
56+
if (this.Tag == null)
57+
{
58+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Tag");
59+
}
60+
61+
}
62+
}
63+
}

src/KeyVault/KeyVault.Management.Sdk/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ use-extension:
2323
2424
###
2525
``` yaml
26-
commit: b92fe44fbb8e415302342ecd6c2c5bb764da7949
26+
commit: 402675202904b97229b067bf3b03ac8519de5125
2727
input-file:
28-
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2024-11-01/common.json
29-
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2024-11-01/keyvault.json
30-
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2024-11-01/managedHsm.json
28+
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2025-05-01/common.json
29+
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2025-05-01/keyvault.json
30+
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2025-05-01/managedHsm.json
3131

3232
### there are 2 same "reason" property with same x-ms-enum.name="Reason" defined in both keyvault.json and managedHsm.json. Rename one of them to avoid autorest converting error.
3333
###

0 commit comments

Comments
 (0)