Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ private void Initialize()
this.MhsmPrivateLinkResources = new MhsmPrivateLinkResourcesOperations(this);
this.MhsmRegions = new MhsmRegionsOperations(this);
this.BaseUri = new System.Uri("https://management.azure.com");
this.ApiVersion = "2024-11-01";
this.ApiVersion = "2025-05-01";
this.AcceptLanguage = "en-US";
this.LongRunningOperationRetryTimeout = 30;
this.GenerateClientRequestId = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,18 @@ public MhsmNetworkRuleSet()
/// <param name="ipRules">The list of IP address rules.
/// </param>

/// <param name="serviceTags">The list of service tags.
/// </param>

/// <param name="virtualNetworkRules">The list of virtual network rules.
/// </param>
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>))
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>))

{
this.Bypass = bypass;
this.DefaultAction = defaultAction;
this.IPRules = ipRules;
this.ServiceTags = serviceTags;
this.VirtualNetworkRules = virtualNetworkRules;
CustomInit();
}
Expand Down Expand Up @@ -75,6 +79,12 @@ public MhsmNetworkRuleSet()
[Newtonsoft.Json.JsonProperty(PropertyName = "ipRules")]
public System.Collections.Generic.IList<MhsmipRule> IPRules {get; set; }

/// <summary>
/// Gets or sets the list of service tags.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "serviceTags")]
public System.Collections.Generic.IList<MhsmServiceTagRule> ServiceTags {get; set; }

/// <summary>
/// Gets or sets the list of virtual network rules.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.KeyVault.Models
{
using System.Linq;

/// <summary>
/// A rule governing the accessibility of a managed hsm pool from a specific
/// service tags.
/// </summary>
public partial class MhsmServiceTagRule
{
/// <summary>
/// Initializes a new instance of the MhsmServiceTagRule class.
/// </summary>
public MhsmServiceTagRule()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the MhsmServiceTagRule class.
/// </summary>

/// <param name="tag">Name of the service tag.
/// </param>
public MhsmServiceTagRule(string tag)

{
this.Tag = tag;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();


/// <summary>
/// Gets or sets name of the service tag.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "tag")]
public string Tag {get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (this.Tag == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Tag");
}

}
}
}
8 changes: 4 additions & 4 deletions src/KeyVault/KeyVault.Management.Sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ use-extension:

###
``` yaml
commit: b92fe44fbb8e415302342ecd6c2c5bb764da7949
commit: 402675202904b97229b067bf3b03ac8519de5125
input-file:
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2024-11-01/common.json
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2024-11-01/keyvault.json
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2024-11-01/managedHsm.json
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2025-05-01/common.json
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2025-05-01/keyvault.json
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2025-05-01/managedHsm.json

### 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.
###
Expand Down
Loading