diff --git a/sdk/network/Azure.ResourceManager.Network/api/Azure.ResourceManager.Network.netstandard2.0.cs b/sdk/network/Azure.ResourceManager.Network/api/Azure.ResourceManager.Network.netstandard2.0.cs index 69e4d2484380..1c73fa7b21da 100644 --- a/sdk/network/Azure.ResourceManager.Network/api/Azure.ResourceManager.Network.netstandard2.0.cs +++ b/sdk/network/Azure.ResourceManager.Network/api/Azure.ResourceManager.Network.netstandard2.0.cs @@ -3064,6 +3064,7 @@ public static partial class NetworkExtensions public static Azure.Response GetNetworkManager(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string networkManagerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetNetworkManagerAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string networkManagerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Network.NetworkManagerResource GetNetworkManagerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Network.NetworkManagerRoutingConfigurationResource GetNetworkManagerRoutingConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Network.NetworkManagerCollection GetNetworkManagers(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } public static Azure.Pageable GetNetworkManagers(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetNetworkManagersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -3149,6 +3150,8 @@ public static partial class NetworkExtensions public static Azure.Pageable GetRouteTables(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetRouteTablesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Network.RoutingIntentResource GetRoutingIntentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Network.RoutingRuleCollectionResource GetRoutingRuleCollectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Network.RoutingRuleResource GetRoutingRuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Network.ScopeConnectionResource GetScopeConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Network.SecurityAdminConfigurationResource GetSecurityAdminConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Response GetSecurityPartnerProvider(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string securityPartnerProviderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -3158,6 +3161,9 @@ public static partial class NetworkExtensions public static Azure.Pageable GetSecurityPartnerProviders(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetSecurityPartnerProvidersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Network.SecurityRuleResource GetSecurityRuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Network.SecurityUserConfigurationResource GetSecurityUserConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Network.SecurityUserRuleCollectionResource GetSecurityUserRuleCollectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Network.SecurityUserRuleResource GetSecurityUserRuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Network.ServiceEndpointPolicyCollection GetServiceEndpointPolicies(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } public static Azure.Pageable GetServiceEndpointPoliciesByServiceEndpointPolicy(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetServiceEndpointPoliciesByServiceEndpointPolicyAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -3273,6 +3279,7 @@ public partial class NetworkGroupData : Azure.ResourceManager.Models.ResourceDat public NetworkGroupData() { } public string Description { get { throw null; } set { } } public Azure.ETag? ETag { get { throw null; } } + public Azure.ResourceManager.Network.Models.GroupMemberType? MemberType { get { throw null; } set { } } public Azure.ResourceManager.Network.Models.NetworkProvisioningState? ProvisioningState { get { throw null; } } public System.Guid? ResourceGuid { get { throw null; } } Azure.ResourceManager.Network.NetworkGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -3613,12 +3620,18 @@ protected NetworkManagerResource() { } public virtual Azure.ResourceManager.Network.NetworkGroupCollection GetNetworkGroups() { throw null; } public virtual Azure.Pageable GetNetworkManagerDeploymentStatus(Azure.ResourceManager.Network.Models.NetworkManagerDeploymentStatusContent content, int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetNetworkManagerDeploymentStatusAsync(Azure.ResourceManager.Network.Models.NetworkManagerDeploymentStatusContent content, int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetNetworkManagerRoutingConfiguration(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetNetworkManagerRoutingConfigurationAsync(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Network.NetworkManagerRoutingConfigurationCollection GetNetworkManagerRoutingConfigurations() { throw null; } public virtual Azure.Response GetScopeConnection(string scopeConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetScopeConnectionAsync(string scopeConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Network.ScopeConnectionCollection GetScopeConnections() { throw null; } public virtual Azure.Response GetSecurityAdminConfiguration(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetSecurityAdminConfigurationAsync(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Network.SecurityAdminConfigurationCollection GetSecurityAdminConfigurations() { throw null; } + public virtual Azure.Response GetSecurityUserConfiguration(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetSecurityUserConfigurationAsync(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Network.SecurityUserConfigurationCollection GetSecurityUserConfigurations() { throw null; } public virtual Azure.ResourceManager.ArmOperation PostNetworkManagerCommit(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.NetworkManagerCommit networkManagerCommit, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> PostNetworkManagerCommitAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.NetworkManagerCommit networkManagerCommit, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -3633,6 +3646,58 @@ protected NetworkManagerResource() { } public virtual Azure.Response Update(Azure.ResourceManager.Network.Models.NetworkManagerPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Network.Models.NetworkManagerPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + public partial class NetworkManagerRoutingConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected NetworkManagerRoutingConfigurationCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string configurationName, Azure.ResourceManager.Network.NetworkManagerRoutingConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string configurationName, Azure.ResourceManager.Network.NetworkManagerRoutingConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class NetworkManagerRoutingConfigurationData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public NetworkManagerRoutingConfigurationData() { } + public string Description { get { throw null; } set { } } + public Azure.ETag? ETag { get { throw null; } } + public Azure.ResourceManager.Network.Models.NetworkProvisioningState? ProvisioningState { get { throw null; } } + public System.Guid? ResourceGuid { get { throw null; } } + Azure.ResourceManager.Network.NetworkManagerRoutingConfigurationData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Network.NetworkManagerRoutingConfigurationData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class NetworkManagerRoutingConfigurationResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected NetworkManagerRoutingConfigurationResource() { } + public virtual Azure.ResourceManager.Network.NetworkManagerRoutingConfigurationData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetRoutingRuleCollection(string ruleCollectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRoutingRuleCollectionAsync(string ruleCollectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Network.RoutingRuleCollectionCollection GetRoutingRuleCollections() { throw null; } + Azure.ResourceManager.Network.NetworkManagerRoutingConfigurationData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Network.NetworkManagerRoutingConfigurationData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.NetworkManagerRoutingConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.NetworkManagerRoutingConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class NetworkPrivateEndpointConnectionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected NetworkPrivateEndpointConnectionCollection() { } @@ -3930,8 +3995,8 @@ protected NetworkVirtualApplianceResource() { } public virtual Azure.ResourceManager.Network.VirtualApplianceSiteCollection GetVirtualApplianceSites() { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Restart(Azure.ResourceManager.Network.Models.NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task RestartAsync(Azure.ResourceManager.Network.Models.NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Restart(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RestartAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.Network.NetworkVirtualApplianceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -5030,6 +5095,111 @@ protected RoutingIntentResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.RoutingIntentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.RoutingIntentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + public partial class RoutingRuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected RoutingRuleCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string ruleName, Azure.ResourceManager.Network.RoutingRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string ruleName, Azure.ResourceManager.Network.RoutingRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class RoutingRuleCollectionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected RoutingRuleCollectionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string ruleCollectionName, Azure.ResourceManager.Network.RoutingRuleCollectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string ruleCollectionName, Azure.ResourceManager.Network.RoutingRuleCollectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string ruleCollectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string ruleCollectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string ruleCollectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string ruleCollectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string ruleCollectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string ruleCollectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class RoutingRuleCollectionData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RoutingRuleCollectionData() { } + public System.Collections.Generic.IList AppliesTo { get { throw null; } } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.Network.Models.DisableBgpRoutePropagation? DisableBgpRoutePropagation { get { throw null; } set { } } + public Azure.ETag? ETag { get { throw null; } } + public Azure.ResourceManager.Network.Models.NetworkProvisioningState? ProvisioningState { get { throw null; } } + public System.Guid? ResourceGuid { get { throw null; } } + Azure.ResourceManager.Network.RoutingRuleCollectionData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Network.RoutingRuleCollectionData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class RoutingRuleCollectionResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected RoutingRuleCollectionResource() { } + public virtual Azure.ResourceManager.Network.RoutingRuleCollectionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetRoutingRule(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRoutingRuleAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Network.RoutingRuleCollection GetRoutingRules() { throw null; } + Azure.ResourceManager.Network.RoutingRuleCollectionData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Network.RoutingRuleCollectionData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.RoutingRuleCollectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.RoutingRuleCollectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class RoutingRuleData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RoutingRuleData() { } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.Network.Models.RoutingRuleRouteDestination Destination { get { throw null; } set { } } + public Azure.ETag? ETag { get { throw null; } } + public Azure.ResourceManager.Network.Models.RoutingRuleNextHop NextHop { get { throw null; } set { } } + public Azure.ResourceManager.Network.Models.NetworkProvisioningState? ProvisioningState { get { throw null; } } + public System.Guid? ResourceGuid { get { throw null; } } + Azure.ResourceManager.Network.RoutingRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Network.RoutingRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class RoutingRuleResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected RoutingRuleResource() { } + public virtual Azure.ResourceManager.Network.RoutingRuleData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.Network.RoutingRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Network.RoutingRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.RoutingRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.RoutingRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class ScopeConnectionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected ScopeConnectionCollection() { } @@ -5251,6 +5421,166 @@ protected SecurityRuleResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.SecurityRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.SecurityRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + public partial class SecurityUserConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected SecurityUserConfigurationCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string configurationName, Azure.ResourceManager.Network.SecurityUserConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string configurationName, Azure.ResourceManager.Network.SecurityUserConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class SecurityUserConfigurationData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SecurityUserConfigurationData() { } + public string Description { get { throw null; } set { } } + public Azure.ETag? ETag { get { throw null; } } + public Azure.ResourceManager.Network.Models.NetworkProvisioningState? ProvisioningState { get { throw null; } } + public System.Guid? ResourceGuid { get { throw null; } } + Azure.ResourceManager.Network.SecurityUserConfigurationData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Network.SecurityUserConfigurationData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class SecurityUserConfigurationResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected SecurityUserConfigurationResource() { } + public virtual Azure.ResourceManager.Network.SecurityUserConfigurationData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetSecurityUserRuleCollection(string ruleCollectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetSecurityUserRuleCollectionAsync(string ruleCollectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Network.SecurityUserRuleCollectionCollection GetSecurityUserRuleCollections() { throw null; } + Azure.ResourceManager.Network.SecurityUserConfigurationData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Network.SecurityUserConfigurationData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.SecurityUserConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.SecurityUserConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class SecurityUserRuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected SecurityUserRuleCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string ruleName, Azure.ResourceManager.Network.SecurityUserRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string ruleName, Azure.ResourceManager.Network.SecurityUserRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class SecurityUserRuleCollectionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected SecurityUserRuleCollectionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string ruleCollectionName, Azure.ResourceManager.Network.SecurityUserRuleCollectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string ruleCollectionName, Azure.ResourceManager.Network.SecurityUserRuleCollectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string ruleCollectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string ruleCollectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string ruleCollectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string ruleCollectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string ruleCollectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string ruleCollectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class SecurityUserRuleCollectionData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SecurityUserRuleCollectionData() { } + public System.Collections.Generic.IList AppliesToGroups { get { throw null; } } + public string Description { get { throw null; } set { } } + public Azure.ETag? ETag { get { throw null; } } + public Azure.ResourceManager.Network.Models.NetworkProvisioningState? ProvisioningState { get { throw null; } } + public System.Guid? ResourceGuid { get { throw null; } } + Azure.ResourceManager.Network.SecurityUserRuleCollectionData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Network.SecurityUserRuleCollectionData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class SecurityUserRuleCollectionResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected SecurityUserRuleCollectionResource() { } + public virtual Azure.ResourceManager.Network.SecurityUserRuleCollectionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetSecurityUserRule(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetSecurityUserRuleAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Network.SecurityUserRuleCollection GetSecurityUserRules() { throw null; } + Azure.ResourceManager.Network.SecurityUserRuleCollectionData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Network.SecurityUserRuleCollectionData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.SecurityUserRuleCollectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.SecurityUserRuleCollectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class SecurityUserRuleData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SecurityUserRuleData() { } + public string Description { get { throw null; } set { } } + public System.Collections.Generic.IList DestinationPortRanges { get { throw null; } } + public System.Collections.Generic.IList Destinations { get { throw null; } } + public Azure.ResourceManager.Network.Models.SecurityConfigurationRuleDirection? Direction { get { throw null; } set { } } + public Azure.ETag? ETag { get { throw null; } } + public Azure.ResourceManager.Network.Models.SecurityConfigurationRuleProtocol? Protocol { get { throw null; } set { } } + public Azure.ResourceManager.Network.Models.NetworkProvisioningState? ProvisioningState { get { throw null; } } + public System.Guid? ResourceGuid { get { throw null; } } + public System.Collections.Generic.IList SourcePortRanges { get { throw null; } } + public System.Collections.Generic.IList Sources { get { throw null; } } + Azure.ResourceManager.Network.SecurityUserRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Network.SecurityUserRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class SecurityUserRuleResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected SecurityUserRuleResource() { } + public virtual Azure.ResourceManager.Network.SecurityUserRuleData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.Network.SecurityUserRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Network.SecurityUserRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.SecurityUserRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.SecurityUserRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class ServiceEndpointPolicyCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected ServiceEndpointPolicyCollection() { } @@ -7020,6 +7350,7 @@ protected MockableNetworkArmClient() { } public virtual Azure.ResourceManager.Network.NetworkInterfaceResource GetNetworkInterfaceResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Network.NetworkInterfaceTapConfigurationResource GetNetworkInterfaceTapConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Network.NetworkManagerResource GetNetworkManagerResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Network.NetworkManagerRoutingConfigurationResource GetNetworkManagerRoutingConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Network.NetworkPrivateEndpointConnectionResource GetNetworkPrivateEndpointConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Network.NetworkProfileResource GetNetworkProfileResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Network.NetworkSecurityGroupResource GetNetworkSecurityGroupResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -7044,10 +7375,15 @@ protected MockableNetworkArmClient() { } public virtual Azure.ResourceManager.Network.RouteResource GetRouteResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Network.RouteTableResource GetRouteTableResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Network.RoutingIntentResource GetRoutingIntentResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Network.RoutingRuleCollectionResource GetRoutingRuleCollectionResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Network.RoutingRuleResource GetRoutingRuleResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Network.ScopeConnectionResource GetScopeConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Network.SecurityAdminConfigurationResource GetSecurityAdminConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Network.SecurityPartnerProviderResource GetSecurityPartnerProviderResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Network.SecurityRuleResource GetSecurityRuleResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Network.SecurityUserConfigurationResource GetSecurityUserConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Network.SecurityUserRuleCollectionResource GetSecurityUserRuleCollectionResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Network.SecurityUserRuleResource GetSecurityUserRuleResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Network.ServiceEndpointPolicyDefinitionResource GetServiceEndpointPolicyDefinitionResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Network.ServiceEndpointPolicyResource GetServiceEndpointPolicyResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Network.SubnetResource GetSubnetResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -8936,9 +9272,13 @@ public static partial class ArmNetworkModelFactory public static Azure.ResourceManager.Network.Models.NetworkConfigurationDiagnosticContent NetworkConfigurationDiagnosticContent(Azure.Core.ResourceIdentifier targetResourceId = null, Azure.ResourceManager.Network.Models.VerbosityLevel? verbosityLevel = default(Azure.ResourceManager.Network.Models.VerbosityLevel?), System.Collections.Generic.IEnumerable profiles = null) { throw null; } public static Azure.ResourceManager.Network.Models.NetworkConfigurationDiagnosticResponse NetworkConfigurationDiagnosticResponse(System.Collections.Generic.IEnumerable results = null) { throw null; } public static Azure.ResourceManager.Network.Models.NetworkConfigurationDiagnosticResult NetworkConfigurationDiagnosticResult(Azure.ResourceManager.Network.Models.NetworkConfigurationDiagnosticProfile profile = null, Azure.ResourceManager.Network.Models.NetworkSecurityGroupResult networkSecurityGroupResult = null) { throw null; } - public static Azure.ResourceManager.Network.Models.NetworkConfigurationGroup NetworkConfigurationGroup(string id = null, string description = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), System.Guid? resourceGuid = default(System.Guid?)) { throw null; } + public static Azure.ResourceManager.Network.Models.NetworkConfigurationGroup NetworkConfigurationGroup(string id = null, string description = null, Azure.ResourceManager.Network.Models.GroupMemberType? memberType = default(Azure.ResourceManager.Network.Models.GroupMemberType?), Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), System.Guid? resourceGuid = default(System.Guid?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Network.Models.NetworkConfigurationGroup NetworkConfigurationGroup(string id, string description, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState, System.Guid? resourceGuid) { throw null; } public static Azure.ResourceManager.Network.Models.NetworkDefaultAdminRule NetworkDefaultAdminRule(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? etag = default(Azure.ETag?), string description = null, string flag = null, Azure.ResourceManager.Network.Models.SecurityConfigurationRuleProtocol? protocol = default(Azure.ResourceManager.Network.Models.SecurityConfigurationRuleProtocol?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable destinations = null, System.Collections.Generic.IEnumerable sourcePortRanges = null, System.Collections.Generic.IEnumerable destinationPortRanges = null, Azure.ResourceManager.Network.Models.SecurityConfigurationRuleAccess? access = default(Azure.ResourceManager.Network.Models.SecurityConfigurationRuleAccess?), int? priority = default(int?), Azure.ResourceManager.Network.Models.SecurityConfigurationRuleDirection? direction = default(Azure.ResourceManager.Network.Models.SecurityConfigurationRuleDirection?), Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), System.Guid? resourceGuid = default(System.Guid?)) { throw null; } - public static Azure.ResourceManager.Network.NetworkGroupData NetworkGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), System.Guid? resourceGuid = default(System.Guid?), Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.Network.NetworkGroupData NetworkGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.Network.Models.GroupMemberType? memberType = default(Azure.ResourceManager.Network.Models.GroupMemberType?), Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), System.Guid? resourceGuid = default(System.Guid?), Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Network.NetworkGroupData NetworkGroupData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string description, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState, System.Guid? resourceGuid, Azure.ETag? etag) { throw null; } public static Azure.ResourceManager.Network.NetworkGroupStaticMemberData NetworkGroupStaticMemberData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier resourceId = null, string region = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), Azure.ETag? etag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.Network.Models.NetworkIntentPolicy NetworkIntentPolicy(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ETag? etag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.Network.Models.NetworkInterfaceAssociation NetworkInterfaceAssociation(Azure.Core.ResourceIdentifier id = null, System.Collections.Generic.IEnumerable securityRules = null) { throw null; } @@ -8957,6 +9297,7 @@ public static partial class ArmNetworkModelFactory public static Azure.ResourceManager.Network.NetworkManagerData NetworkManagerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.Network.Models.NetworkManagerPropertiesNetworkManagerScopes networkManagerScopes = null, System.Collections.Generic.IEnumerable networkManagerScopeAccesses = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), System.Guid? resourceGuid = default(System.Guid?)) { throw null; } public static Azure.ResourceManager.Network.Models.NetworkManagerDeploymentStatus NetworkManagerDeploymentStatus(System.DateTimeOffset? commitOn = default(System.DateTimeOffset?), string region = null, Azure.ResourceManager.Network.Models.NetworkManagerDeploymentState? deploymentState = default(Azure.ResourceManager.Network.Models.NetworkManagerDeploymentState?), System.Collections.Generic.IEnumerable configurationIds = null, Azure.ResourceManager.Network.Models.NetworkConfigurationDeploymentType? deploymentType = default(Azure.ResourceManager.Network.Models.NetworkConfigurationDeploymentType?), string errorMessage = null) { throw null; } public static Azure.ResourceManager.Network.Models.NetworkManagerPropertiesNetworkManagerScopes NetworkManagerPropertiesNetworkManagerScopes(System.Collections.Generic.IEnumerable managementGroups = null, System.Collections.Generic.IEnumerable subscriptions = null, System.Collections.Generic.IEnumerable crossTenantScopes = null) { throw null; } + public static Azure.ResourceManager.Network.NetworkManagerRoutingConfigurationData NetworkManagerRoutingConfigurationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), System.Guid? resourceGuid = default(System.Guid?), Azure.ETag? etag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.Network.NetworkPrivateEndpointConnectionData NetworkPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.Network.PrivateEndpointData privateEndpoint = null, Azure.ResourceManager.Network.Models.NetworkPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), string linkIdentifier = null, string privateEndpointLocation = null) { throw null; } public static Azure.ResourceManager.Network.Models.NetworkPrivateLinkServiceConnection NetworkPrivateLinkServiceConnection(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), Azure.Core.ResourceIdentifier privateLinkServiceId = null, System.Collections.Generic.IEnumerable groupIds = null, string requestMessage = null, Azure.ResourceManager.Network.Models.NetworkPrivateLinkServiceConnectionState connectionState = null) { throw null; } public static Azure.ResourceManager.Network.NetworkProfileData NetworkProfileData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ETag? etag = default(Azure.ETag?), System.Collections.Generic.IEnumerable containerNetworkInterfaces = null, System.Collections.Generic.IEnumerable containerNetworkInterfaceConfigurations = null, System.Guid? resourceGuid = default(System.Guid?), Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?)) { throw null; } @@ -9012,6 +9353,8 @@ public static partial class ArmNetworkModelFactory public static Azure.ResourceManager.Network.RouteMapData RouteMapData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? etag = default(Azure.ETag?), System.Collections.Generic.IEnumerable associatedInboundConnections = null, System.Collections.Generic.IEnumerable associatedOutboundConnections = null, System.Collections.Generic.IEnumerable rules = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?)) { throw null; } public static Azure.ResourceManager.Network.RouteTableData RouteTableData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ETag? etag = default(Azure.ETag?), System.Collections.Generic.IEnumerable routes = null, System.Collections.Generic.IEnumerable subnets = null, bool? disableBgpRoutePropagation = default(bool?), Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), System.Guid? resourceGuid = default(System.Guid?)) { throw null; } public static Azure.ResourceManager.Network.RoutingIntentData RoutingIntentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ETag? etag = default(Azure.ETag?), System.Collections.Generic.IEnumerable routingPolicies = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?)) { throw null; } + public static Azure.ResourceManager.Network.RoutingRuleCollectionData RoutingRuleCollectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), System.Guid? resourceGuid = default(System.Guid?), System.Collections.Generic.IEnumerable appliesTo = null, Azure.ResourceManager.Network.Models.DisableBgpRoutePropagation? disableBgpRoutePropagation = default(Azure.ResourceManager.Network.Models.DisableBgpRoutePropagation?), Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.Network.RoutingRuleData RoutingRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), System.Guid? resourceGuid = default(System.Guid?), Azure.ResourceManager.Network.Models.RoutingRuleRouteDestination destination = null, Azure.ResourceManager.Network.Models.RoutingRuleNextHop nextHop = null, Azure.ETag? etag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.Network.ScopeConnectionData ScopeConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? tenantId = default(System.Guid?), Azure.Core.ResourceIdentifier resourceId = null, Azure.ResourceManager.Network.Models.ScopeConnectionState? connectionState = default(Azure.ResourceManager.Network.Models.ScopeConnectionState?), string description = null, Azure.ETag? etag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.Network.SecurityAdminConfigurationData SecurityAdminConfigurationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, System.Collections.Generic.IEnumerable applyOnNetworkIntentPolicyBasedServices = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), System.Guid? resourceGuid = default(System.Guid?), Azure.ETag? etag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.Network.Models.SecurityGroupNetworkInterface SecurityGroupNetworkInterface(string id = null, Azure.ResourceManager.Network.Models.SecurityRuleAssociations securityRuleAssociations = null) { throw null; } @@ -9019,6 +9362,9 @@ public static partial class ArmNetworkModelFactory public static Azure.ResourceManager.Network.SecurityPartnerProviderData SecurityPartnerProviderData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), Azure.ResourceManager.Network.Models.SecurityProviderName? securityProviderName = default(Azure.ResourceManager.Network.Models.SecurityProviderName?), Azure.ResourceManager.Network.Models.SecurityPartnerProviderConnectionStatus? connectionStatus = default(Azure.ResourceManager.Network.Models.SecurityPartnerProviderConnectionStatus?), Azure.Core.ResourceIdentifier virtualHubId = null) { throw null; } public static Azure.ResourceManager.Network.Models.SecurityRuleAssociations SecurityRuleAssociations(Azure.ResourceManager.Network.Models.NetworkInterfaceAssociation networkInterfaceAssociation = null, Azure.ResourceManager.Network.Models.SubnetAssociation subnetAssociation = null, System.Collections.Generic.IEnumerable defaultSecurityRules = null, System.Collections.Generic.IEnumerable effectiveSecurityRules = null) { throw null; } public static Azure.ResourceManager.Network.SecurityRuleData SecurityRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ETag? etag = default(Azure.ETag?), string description = null, Azure.ResourceManager.Network.Models.SecurityRuleProtocol? protocol = default(Azure.ResourceManager.Network.Models.SecurityRuleProtocol?), string sourcePortRange = null, string destinationPortRange = null, string sourceAddressPrefix = null, System.Collections.Generic.IEnumerable sourceAddressPrefixes = null, System.Collections.Generic.IEnumerable sourceApplicationSecurityGroups = null, string destinationAddressPrefix = null, System.Collections.Generic.IEnumerable destinationAddressPrefixes = null, System.Collections.Generic.IEnumerable destinationApplicationSecurityGroups = null, System.Collections.Generic.IEnumerable sourcePortRanges = null, System.Collections.Generic.IEnumerable destinationPortRanges = null, Azure.ResourceManager.Network.Models.SecurityRuleAccess? access = default(Azure.ResourceManager.Network.Models.SecurityRuleAccess?), int? priority = default(int?), Azure.ResourceManager.Network.Models.SecurityRuleDirection? direction = default(Azure.ResourceManager.Network.Models.SecurityRuleDirection?), Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?)) { throw null; } + public static Azure.ResourceManager.Network.SecurityUserConfigurationData SecurityUserConfigurationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), System.Guid? resourceGuid = default(System.Guid?), Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.Network.SecurityUserRuleCollectionData SecurityUserRuleCollectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, System.Collections.Generic.IEnumerable appliesToGroups = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), System.Guid? resourceGuid = default(System.Guid?), Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.Network.SecurityUserRuleData SecurityUserRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.Network.Models.SecurityConfigurationRuleProtocol? protocol = default(Azure.ResourceManager.Network.Models.SecurityConfigurationRuleProtocol?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable destinations = null, System.Collections.Generic.IEnumerable sourcePortRanges = null, System.Collections.Generic.IEnumerable destinationPortRanges = null, Azure.ResourceManager.Network.Models.SecurityConfigurationRuleDirection? direction = default(Azure.ResourceManager.Network.Models.SecurityConfigurationRuleDirection?), Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), System.Guid? resourceGuid = default(System.Guid?), Azure.ETag? etag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.Network.Models.ServiceAssociationLink ServiceAssociationLink(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ETag? etag = default(Azure.ETag?), Azure.Core.ResourceType? linkedResourceType = default(Azure.Core.ResourceType?), Azure.Core.ResourceIdentifier link = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), bool? allowDelete = default(bool?), System.Collections.Generic.IEnumerable locations = null) { throw null; } public static Azure.ResourceManager.Network.Models.ServiceDelegation ServiceDelegation(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ETag? etag = default(Azure.ETag?), string serviceName = null, System.Collections.Generic.IEnumerable actions = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?)) { throw null; } public static Azure.ResourceManager.Network.ServiceEndpointPolicyData ServiceEndpointPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ETag? etag = default(Azure.ETag?), string kind = null, System.Collections.Generic.IEnumerable serviceEndpointPolicyDefinitions = null, System.Collections.Generic.IEnumerable subnets = null, System.Guid? resourceGuid = default(System.Guid?), Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), string serviceAlias = null, System.Collections.Generic.IEnumerable contextualServiceEndpointPolicies = null) { throw null; } @@ -10687,6 +11033,24 @@ public DeviceProperties() { } public static bool operator !=(Azure.ResourceManager.Network.Models.DHGroup left, Azure.ResourceManager.Network.Models.DHGroup right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct DisableBgpRoutePropagation : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public DisableBgpRoutePropagation(string value) { throw null; } + public static Azure.ResourceManager.Network.Models.DisableBgpRoutePropagation False { get { throw null; } } + public static Azure.ResourceManager.Network.Models.DisableBgpRoutePropagation True { get { throw null; } } + public bool Equals(Azure.ResourceManager.Network.Models.DisableBgpRoutePropagation other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Network.Models.DisableBgpRoutePropagation left, Azure.ResourceManager.Network.Models.DisableBgpRoutePropagation right) { throw null; } + public static implicit operator Azure.ResourceManager.Network.Models.DisableBgpRoutePropagation (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Network.Models.DisableBgpRoutePropagation left, Azure.ResourceManager.Network.Models.DisableBgpRoutePropagation right) { throw null; } + public override string ToString() { throw null; } + } public partial class DnsNameAvailabilityResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal DnsNameAvailabilityResult() { } @@ -12155,6 +12519,24 @@ public GroupByVariable(Azure.ResourceManager.Network.Models.ApplicationGatewayFi public static bool operator !=(Azure.ResourceManager.Network.Models.GroupConnectivity left, Azure.ResourceManager.Network.Models.GroupConnectivity right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct GroupMemberType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GroupMemberType(string value) { throw null; } + public static Azure.ResourceManager.Network.Models.GroupMemberType Subnet { get { throw null; } } + public static Azure.ResourceManager.Network.Models.GroupMemberType VirtualNetwork { get { throw null; } } + public bool Equals(Azure.ResourceManager.Network.Models.GroupMemberType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Network.Models.GroupMemberType left, Azure.ResourceManager.Network.Models.GroupMemberType right) { throw null; } + public static implicit operator Azure.ResourceManager.Network.Models.GroupMemberType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Network.Models.GroupMemberType left, Azure.ResourceManager.Network.Models.GroupMemberType right) { throw null; } + public override string ToString() { throw null; } + } public partial class HeaderValueMatcher : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HeaderValueMatcher() { } @@ -13074,7 +13456,9 @@ public NetworkAdminRule() { } private readonly int _dummyPrimitive; public NetworkConfigurationDeploymentType(string value) { throw null; } public static Azure.ResourceManager.Network.Models.NetworkConfigurationDeploymentType Connectivity { get { throw null; } } + public static Azure.ResourceManager.Network.Models.NetworkConfigurationDeploymentType Routing { get { throw null; } } public static Azure.ResourceManager.Network.Models.NetworkConfigurationDeploymentType SecurityAdmin { get { throw null; } } + public static Azure.ResourceManager.Network.Models.NetworkConfigurationDeploymentType SecurityUser { get { throw null; } } public bool Equals(Azure.ResourceManager.Network.Models.NetworkConfigurationDeploymentType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } @@ -13137,6 +13521,7 @@ public partial class NetworkConfigurationGroup : System.ClientModel.Primitives.I internal NetworkConfigurationGroup() { } public string Description { get { throw null; } } public string Id { get { throw null; } } + public Azure.ResourceManager.Network.Models.GroupMemberType? MemberType { get { throw null; } } public Azure.ResourceManager.Network.Models.NetworkProvisioningState? ProvisioningState { get { throw null; } } public System.Guid? ResourceGuid { get { throw null; } } Azure.ResourceManager.Network.Models.NetworkConfigurationGroup System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -13578,6 +13963,16 @@ public NetworkManagerPropertiesNetworkManagerScopes() { } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class NetworkManagerRoutingGroupItem : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public NetworkManagerRoutingGroupItem(string networkGroupId) { } + public string NetworkGroupId { get { throw null; } set { } } + Azure.ResourceManager.Network.Models.NetworkManagerRoutingGroupItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Network.Models.NetworkManagerRoutingGroupItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class NetworkManagerSecurityGroupItem : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public NetworkManagerSecurityGroupItem(Azure.Core.ResourceIdentifier networkGroupId) { } @@ -14990,6 +15385,67 @@ public RoutingPolicy(string name, System.Collections.Generic.IEnumerable System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct RoutingRuleDestinationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RoutingRuleDestinationType(string value) { throw null; } + public static Azure.ResourceManager.Network.Models.RoutingRuleDestinationType AddressPrefix { get { throw null; } } + public static Azure.ResourceManager.Network.Models.RoutingRuleDestinationType ServiceTag { get { throw null; } } + public bool Equals(Azure.ResourceManager.Network.Models.RoutingRuleDestinationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Network.Models.RoutingRuleDestinationType left, Azure.ResourceManager.Network.Models.RoutingRuleDestinationType right) { throw null; } + public static implicit operator Azure.ResourceManager.Network.Models.RoutingRuleDestinationType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Network.Models.RoutingRuleDestinationType left, Azure.ResourceManager.Network.Models.RoutingRuleDestinationType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class RoutingRuleNextHop : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RoutingRuleNextHop(Azure.ResourceManager.Network.Models.RoutingRuleNextHopType nextHopType) { } + public string NextHopAddress { get { throw null; } set { } } + public Azure.ResourceManager.Network.Models.RoutingRuleNextHopType NextHopType { get { throw null; } set { } } + Azure.ResourceManager.Network.Models.RoutingRuleNextHop System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Network.Models.RoutingRuleNextHop System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct RoutingRuleNextHopType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RoutingRuleNextHopType(string value) { throw null; } + public static Azure.ResourceManager.Network.Models.RoutingRuleNextHopType Internet { get { throw null; } } + public static Azure.ResourceManager.Network.Models.RoutingRuleNextHopType NoNextHop { get { throw null; } } + public static Azure.ResourceManager.Network.Models.RoutingRuleNextHopType VirtualAppliance { get { throw null; } } + public static Azure.ResourceManager.Network.Models.RoutingRuleNextHopType VirtualNetworkGateway { get { throw null; } } + public static Azure.ResourceManager.Network.Models.RoutingRuleNextHopType VnetLocal { get { throw null; } } + public bool Equals(Azure.ResourceManager.Network.Models.RoutingRuleNextHopType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Network.Models.RoutingRuleNextHopType left, Azure.ResourceManager.Network.Models.RoutingRuleNextHopType right) { throw null; } + public static implicit operator Azure.ResourceManager.Network.Models.RoutingRuleNextHopType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Network.Models.RoutingRuleNextHopType left, Azure.ResourceManager.Network.Models.RoutingRuleNextHopType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class RoutingRuleRouteDestination : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RoutingRuleRouteDestination(Azure.ResourceManager.Network.Models.RoutingRuleDestinationType destinationType, string destinationAddress) { } + public string DestinationAddress { get { throw null; } set { } } + public Azure.ResourceManager.Network.Models.RoutingRuleDestinationType DestinationType { get { throw null; } set { } } + Azure.ResourceManager.Network.Models.RoutingRuleRouteDestination System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Network.Models.RoutingRuleRouteDestination System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct RoutingState : System.IEquatable { private readonly object _dummy; @@ -15309,6 +15765,16 @@ internal SecurityRuleAssociations() { } public static bool operator !=(Azure.ResourceManager.Network.Models.SecurityRuleProtocol left, Azure.ResourceManager.Network.Models.SecurityRuleProtocol right) { throw null; } public override string ToString() { throw null; } } + public partial class SecurityUserGroupItem : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SecurityUserGroupItem(string networkGroupId) { } + public string NetworkGroupId { get { throw null; } set { } } + Azure.ResourceManager.Network.Models.SecurityUserGroupItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Network.Models.SecurityUserGroupItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class ServiceAssociationLink : Azure.ResourceManager.Network.Models.NetworkResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ServiceAssociationLink() { } diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupCollection.cs index 34264d1b28e8..a783f285eb04 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AdminRuleGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSecurityAdminRuleCollections() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleCollectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleCollectionList.json // this example is just showing the usage of "AdminRuleCollections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_ListSecurityAdminRuleCollections() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsSecurityAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleCollectionGet.json // this example is just showing the usage of "AdminRuleCollections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_GetsSecurityAdminRuleCollection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsSecurityAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleCollectionGet.json // this example is just showing the usage of "AdminRuleCollections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetsSecurityAdminRuleCollection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetsSecurityAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleCollectionGet.json // this example is just showing the usage of "AdminRuleCollections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -170,7 +170,7 @@ public async Task GetIfExists_GetsSecurityAdminRuleCollection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateAnAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleCollectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleCollectionPut.json // this example is just showing the usage of "AdminRuleCollections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupResource.cs index 1271e000fba1..488403fd0fb2 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AdminRuleGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsSecurityAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleCollectionGet.json // this example is just showing the usage of "AdminRuleCollections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetsSecurityAdminRuleCollection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateAnAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleCollectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleCollectionPut.json // this example is just showing the usage of "AdminRuleCollections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Update_CreateOrUpdateAnAdminRuleCollection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletesAnAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleCollectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleCollectionDelete.json // this example is just showing the usage of "AdminRuleCollections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayCollection.cs index b035f4099e94..611ae9675261 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ApplicationGatewayCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayGet.json // this example is just showing the usage of "ApplicationGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetApplicationGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayGet.json // this example is just showing the usage of "ApplicationGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_GetApplicationGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayGet.json // this example is just showing the usage of "ApplicationGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_GetApplicationGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayCreate.json // this example is just showing the usage of "ApplicationGateways_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -396,7 +396,7 @@ public async Task CreateOrUpdate_CreateApplicationGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListsAllApplicationGatewaysInAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayList.json // this example is just showing the usage of "ApplicationGateways_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionCollection.cs index 5d82d3fb2d0c..5714e76a959a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ApplicationGatewayPrivateEndpointConnectionCollectio [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_UpdateApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayPrivateEndpointConnectionUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayPrivateEndpointConnectionUpdate.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -65,7 +65,7 @@ public async Task CreateOrUpdate_UpdateApplicationGatewayPrivateEndpointConnecti [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -100,7 +100,7 @@ public async Task Get_GetApplicationGatewayPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task Exists_GetApplicationGatewayPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -174,7 +174,7 @@ public async Task GetIfExists_GetApplicationGatewayPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListsAllPrivateEndpointConnectionsOnApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayPrivateEndpointConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayPrivateEndpointConnectionList.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionResource.cs index f1266b95f048..83e138c3f792 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ApplicationGatewayPrivateEndpointConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayPrivateEndpointConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayPrivateEndpointConnectionDelete.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteApplicationGatewayPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayPrivateEndpointConnectionUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayPrivateEndpointConnectionUpdate.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Update_UpdateApplicationGatewayPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayResource.cs index 3665226f618e..5a647270c3bf 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ApplicationGatewayResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayDelete.json // this example is just showing the usage of "ApplicationGateways_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteApplicationGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayGet.json // this example is just showing the usage of "ApplicationGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetApplicationGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateApplicationGatewayTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayUpdateTags.json // this example is just showing the usage of "ApplicationGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_UpdateApplicationGatewayTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetApplicationGateways_ListsAllApplicationGatewaysInASubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayListAll.json // this example is just showing the usage of "ApplicationGateways_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -150,7 +150,7 @@ public async Task GetApplicationGateways_ListsAllApplicationGatewaysInASubscript [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Start_StartApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayStart.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayStart.json // this example is just showing the usage of "ApplicationGateways_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -177,7 +177,7 @@ public async Task Start_StartApplicationGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Stop_StopApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayStop.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayStop.json // this example is just showing the usage of "ApplicationGateways_Stop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -204,7 +204,7 @@ public async Task Stop_StopApplicationGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task BackendHealth_GetBackendHealth() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayBackendHealthGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayBackendHealthGet.json // this example is just showing the usage of "ApplicationGateways_BackendHealth" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -232,7 +232,7 @@ public async Task BackendHealth_GetBackendHealth() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task BackendHealthOnDemand_TestBackendHealth() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayBackendHealthTest.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayBackendHealthTest.json // this example is just showing the usage of "ApplicationGateways_BackendHealthOnDemand" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -269,7 +269,7 @@ public async Task BackendHealthOnDemand_TestBackendHealth() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableServerVariablesApplicationGateways_GetAvailableServerVariables() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayAvailableServerVariablesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayAvailableServerVariablesGet.json // this example is just showing the usage of "ApplicationGateways_ListAvailableServerVariables" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -297,7 +297,7 @@ public async Task GetAvailableServerVariablesApplicationGateways_GetAvailableSer [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableRequestHeadersApplicationGateways_GetAvailableRequestHeaders() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayAvailableRequestHeadersGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayAvailableRequestHeadersGet.json // this example is just showing the usage of "ApplicationGateways_ListAvailableRequestHeaders" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -325,7 +325,7 @@ public async Task GetAvailableRequestHeadersApplicationGateways_GetAvailableRequ [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableResponseHeadersApplicationGateways_GetAvailableResponseHeaders() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayAvailableResponseHeadersGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayAvailableResponseHeadersGet.json // this example is just showing the usage of "ApplicationGateways_ListAvailableResponseHeaders" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -353,7 +353,7 @@ public async Task GetAvailableResponseHeadersApplicationGateways_GetAvailableRes [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAppGatewayAvailableWafRuleSets_GetAvailableWafRuleSets() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayAvailableWafRuleSetsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayAvailableWafRuleSetsGet.json // this example is just showing the usage of "ApplicationGateways_ListAvailableWafRuleSets" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -381,7 +381,7 @@ public async Task GetAppGatewayAvailableWafRuleSets_GetAvailableWafRuleSets() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetApplicationGatewayAvailableSslOptions_GetAvailableSslOptions() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayAvailableSslOptionsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayAvailableSslOptionsGet.json // this example is just showing the usage of "ApplicationGateways_ListAvailableSslOptions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -406,7 +406,7 @@ public async Task GetApplicationGatewayAvailableSslOptions_GetAvailableSslOption [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetApplicationGatewayAvailableSslPredefinedPolicies_GetAvailableSslPredefinedPolicies() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json // this example is just showing the usage of "ApplicationGateways_ListAvailableSslPredefinedPolicies" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -434,7 +434,7 @@ public async Task GetApplicationGatewayAvailableSslPredefinedPolicies_GetAvailab [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetApplicationGatewaySslPredefinedPolicy_GetAvailableSslPredefinedPolicyByName() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json // this example is just showing the usage of "ApplicationGateways_GetSslPredefinedPolicy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -460,7 +460,7 @@ public async Task GetApplicationGatewaySslPredefinedPolicy_GetAvailableSslPredef [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetApplicationGatewayPrivateLinkResources_ListsAllPrivateLinkResourcesOnApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayPrivateLinkResourceList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayPrivateLinkResourceList.json // this example is just showing the usage of "ApplicationGatewayPrivateLinkResources_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestCollection.cs index 14b8cd9cee1e..dc9f85716de5 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ApplicationGatewayWafDynamicManifestCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsWAFDefaultManifest() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json // this example is just showing the usage of "ApplicationGatewayWafDynamicManifestsDefault_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetsWAFDefaultManifest() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsWAFDefaultManifest() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json // this example is just showing the usage of "ApplicationGatewayWafDynamicManifestsDefault_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Exists_GetsWAFDefaultManifest() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetsWAFDefaultManifest() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json // this example is just showing the usage of "ApplicationGatewayWafDynamicManifestsDefault_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task GetIfExists_GetsWAFDefaultManifest() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetsWAFManifests() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/GetApplicationGatewayWafDynamicManifests.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GetApplicationGatewayWafDynamicManifests.json // this example is just showing the usage of "ApplicationGatewayWafDynamicManifests_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestResource.cs index d3c4d0d58690..45df109af87f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ApplicationGatewayWafDynamicManifestResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsWAFDefaultManifest() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json // this example is just showing the usage of "ApplicationGatewayWafDynamicManifestsDefault_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupCollection.cs index 641ad1ca739b..ee818b0fa999 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ApplicationSecurityGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetApplicationSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationSecurityGroupGet.json // this example is just showing the usage of "ApplicationSecurityGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetApplicationSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetApplicationSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationSecurityGroupGet.json // this example is just showing the usage of "ApplicationSecurityGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Exists_GetApplicationSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetApplicationSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationSecurityGroupGet.json // this example is just showing the usage of "ApplicationSecurityGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetApplicationSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateApplicationSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationSecurityGroupCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationSecurityGroupCreate.json // this example is just showing the usage of "ApplicationSecurityGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -165,7 +165,7 @@ public async Task CreateOrUpdate_CreateApplicationSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListLoadBalancersInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationSecurityGroupList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationSecurityGroupList.json // this example is just showing the usage of "ApplicationSecurityGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupResource.cs index 3c2879d18052..fe2e5c5116b9 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ApplicationSecurityGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteApplicationSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationSecurityGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationSecurityGroupDelete.json // this example is just showing the usage of "ApplicationSecurityGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteApplicationSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetApplicationSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationSecurityGroupGet.json // this example is just showing the usage of "ApplicationSecurityGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetApplicationSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateApplicationSecurityGroupTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationSecurityGroupUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationSecurityGroupUpdateTags.json // this example is just showing the usage of "ApplicationSecurityGroups_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_UpdateApplicationSecurityGroupTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetApplicationSecurityGroups_ListAllApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationSecurityGroupListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationSecurityGroupListAll.json // this example is just showing the usage of "ApplicationSecurityGroups_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallCollection.cs index 9ddbed7091e8..b2bae8c01eea 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_AzureFirewallCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewall() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGet.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetAzureFirewall() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAzureFirewall() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGet.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetAzureFirewall() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAzureFirewall() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGet.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_GetAzureFirewall() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewallWithAdditionalProperties() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithAdditionalProperties.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithAdditionalProperties.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task Get_GetAzureFirewallWithAdditionalProperties() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAzureFirewallWithAdditionalProperties() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithAdditionalProperties.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithAdditionalProperties.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -191,7 +191,7 @@ public async Task Exists_GetAzureFirewallWithAdditionalProperties() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAzureFirewallWithAdditionalProperties() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithAdditionalProperties.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithAdditionalProperties.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -233,7 +233,7 @@ public async Task GetIfExists_GetAzureFirewallWithAdditionalProperties() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewallWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithIpGroups.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithIpGroups.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -267,7 +267,7 @@ public async Task Get_GetAzureFirewallWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAzureFirewallWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithIpGroups.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithIpGroups.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -297,7 +297,7 @@ public async Task Exists_GetAzureFirewallWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAzureFirewallWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithIpGroups.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithIpGroups.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -339,7 +339,7 @@ public async Task GetIfExists_GetAzureFirewallWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewallWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithZones.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -373,7 +373,7 @@ public async Task Get_GetAzureFirewallWithZones() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAzureFirewallWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithZones.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -403,7 +403,7 @@ public async Task Exists_GetAzureFirewallWithZones() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAzureFirewallWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithZones.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -445,7 +445,7 @@ public async Task GetIfExists_GetAzureFirewallWithZones() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewallWithManagementSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithMgmtSubnet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithMgmtSubnet.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -479,7 +479,7 @@ public async Task Get_GetAzureFirewallWithManagementSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAzureFirewallWithManagementSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithMgmtSubnet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithMgmtSubnet.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -509,7 +509,7 @@ public async Task Exists_GetAzureFirewallWithManagementSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAzureFirewallWithManagementSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithMgmtSubnet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithMgmtSubnet.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -551,7 +551,7 @@ public async Task GetIfExists_GetAzureFirewallWithManagementSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAzureFirewall() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallPut.json // this example is just showing the usage of "AzureFirewalls_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -755,7 +755,7 @@ public async Task CreateOrUpdate_CreateAzureFirewall() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAzureFirewallWithAdditionalProperties() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallPutWithAdditionalProperties.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallPutWithAdditionalProperties.json // this example is just showing the usage of "AzureFirewalls_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -964,7 +964,7 @@ public async Task CreateOrUpdate_CreateAzureFirewallWithAdditionalProperties() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAzureFirewallWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallPutWithIpGroups.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallPutWithIpGroups.json // this example is just showing the usage of "AzureFirewalls_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1168,7 +1168,7 @@ public async Task CreateOrUpdate_CreateAzureFirewallWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAzureFirewallWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallPutWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallPutWithZones.json // this example is just showing the usage of "AzureFirewalls_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1373,7 +1373,7 @@ public async Task CreateOrUpdate_CreateAzureFirewallWithZones() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAzureFirewallWithManagementSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallPutWithMgmtSubnet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallPutWithMgmtSubnet.json // this example is just showing the usage of "AzureFirewalls_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1583,7 +1583,7 @@ public async Task CreateOrUpdate_CreateAzureFirewallWithManagementSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAzureFirewallInVirtualHub() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallPutInHub.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallPutInHub.json // this example is just showing the usage of "AzureFirewalls_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1647,7 +1647,7 @@ public async Task CreateOrUpdate_CreateAzureFirewallInVirtualHub() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllAzureFirewallsForAGivenResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallListByResourceGroup.json // this example is just showing the usage of "AzureFirewalls_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallResource.cs index b6f73bda2da1..2ca9a9a5f715 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallResource.cs @@ -21,7 +21,7 @@ public partial class Sample_AzureFirewallResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAzureFirewall() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallDelete.json // this example is just showing the usage of "AzureFirewalls_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteAzureFirewall() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewall() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGet.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetAzureFirewall() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewallWithAdditionalProperties() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithAdditionalProperties.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithAdditionalProperties.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -110,7 +110,7 @@ public async Task Get_GetAzureFirewallWithAdditionalProperties() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewallWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithIpGroups.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithIpGroups.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -141,7 +141,7 @@ public async Task Get_GetAzureFirewallWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewallWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithZones.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -172,7 +172,7 @@ public async Task Get_GetAzureFirewallWithZones() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewallWithManagementSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithMgmtSubnet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithMgmtSubnet.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -203,7 +203,7 @@ public async Task Get_GetAzureFirewallWithManagementSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateAzureFirewallTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallUpdateTags.json // this example is just showing the usage of "AzureFirewalls_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -243,7 +243,7 @@ public async Task Update_UpdateAzureFirewallTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAzureFirewalls_ListAllAzureFirewallsForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallListBySubscription.json // this example is just showing the usage of "AzureFirewalls_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -275,7 +275,7 @@ public async Task GetAzureFirewalls_ListAllAzureFirewallsForAGivenSubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetLearnedPrefixes_AzureFirewallListLearnedPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallListLearnedIPPrefixes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallListLearnedIPPrefixes.json // this example is just showing the usage of "AzureFirewalls_ListLearnedPrefixes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -303,7 +303,7 @@ public async Task GetLearnedPrefixes_AzureFirewallListLearnedPrefixes() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task PacketCapture_AzureFirewallPacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallPacketCapture.json // this example is just showing the usage of "AzureFirewalls_PacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryCollection.cs index 35147813d7f2..04a762974612 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AzureWebCategoryCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureWebCategoryByName() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureWebCategoryGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureWebCategoryGet.json // this example is just showing the usage of "WebCategories_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetAzureWebCategoryByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAzureWebCategoryByName() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureWebCategoryGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureWebCategoryGet.json // this example is just showing the usage of "WebCategories_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Exists_GetAzureWebCategoryByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAzureWebCategoryByName() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureWebCategoryGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureWebCategoryGet.json // this example is just showing the usage of "WebCategories_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task GetIfExists_GetAzureWebCategoryByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllAzureWebCategoriesForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureWebCategoriesListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureWebCategoriesListBySubscription.json // this example is just showing the usage of "WebCategories_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryResource.cs index 7cc6f77a00fe..71ed788137e5 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryResource.cs @@ -19,7 +19,7 @@ public partial class Sample_AzureWebCategoryResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureWebCategoryByName() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureWebCategoryGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureWebCategoryGet.json // this example is just showing the usage of "WebCategories_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolCollection.cs index a4cebed9f323..bf01d3dc6de6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_BackendAddressPoolCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_LoadBalancerWithBackendAddressPoolContainingBackendAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LBBackendAddressPoolListWithBackendAddressesPoolType.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LBBackendAddressPoolListWithBackendAddressesPoolType.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_LoadBalancerWithBackendAddressPoolContainingBackendAddr [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_LoadBalancerBackendAddressPoolList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerBackendAddressPoolList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerBackendAddressPoolList.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task GetAll_LoadBalancerBackendAddressPoolList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerWithBackendAddressPoolWithBackendAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task Get_LoadBalancerWithBackendAddressPoolWithBackendAddresses() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_LoadBalancerWithBackendAddressPoolWithBackendAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -160,7 +160,7 @@ public async Task Exists_LoadBalancerWithBackendAddressPoolWithBackendAddresses( [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_LoadBalancerWithBackendAddressPoolWithBackendAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -203,7 +203,7 @@ public async Task GetIfExists_LoadBalancerWithBackendAddressPoolWithBackendAddre [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerBackendAddressPoolGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerBackendAddressPoolGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerBackendAddressPoolGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -238,7 +238,7 @@ public async Task Get_LoadBalancerBackendAddressPoolGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_LoadBalancerBackendAddressPoolGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerBackendAddressPoolGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerBackendAddressPoolGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -269,7 +269,7 @@ public async Task Exists_LoadBalancerBackendAddressPoolGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_LoadBalancerBackendAddressPoolGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerBackendAddressPoolGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerBackendAddressPoolGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -312,7 +312,7 @@ public async Task GetIfExists_LoadBalancerBackendAddressPoolGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_UpdateLoadBalancerBackendPoolWithBackendAddressesContainingVirtualNetworkAndIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LBBackendAddressPoolWithBackendAddressesPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LBBackendAddressPoolWithBackendAddressesPut.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolResource.cs index 08dd8644b076..b2b04fe1a64f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolResource.cs @@ -20,7 +20,7 @@ public partial class Sample_BackendAddressPoolResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetInboundNatRulePortMappingsLoadBalancer_QueryInboundNATRulePortMapping() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/QueryInboundNatRulePortMapping.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/QueryInboundNatRulePortMapping.json // this example is just showing the usage of "LoadBalancers_ListInboundNatRulePortMappings" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task GetInboundNatRulePortMappingsLoadBalancer_QueryInboundNATRuleP [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerWithBackendAddressPoolWithBackendAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Get_LoadBalancerWithBackendAddressPoolWithBackendAddresses() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerBackendAddressPoolGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerBackendAddressPoolGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerBackendAddressPoolGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -117,7 +117,7 @@ public async Task Get_LoadBalancerBackendAddressPoolGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateLoadBalancerBackendPoolWithBackendAddressesContainingVirtualNetworkAndIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LBBackendAddressPoolWithBackendAddressesPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LBBackendAddressPoolWithBackendAddressesPut.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -167,7 +167,7 @@ public async Task Update_UpdateLoadBalancerBackendPoolWithBackendAddressesContai [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_BackendAddressPoolDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerBackendAddressPoolDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerBackendAddressPoolDelete.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleCollection.cs index 637cbbb90e75..acd4dec9eaf0 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_BaseAdminRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSecurityAdminRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleList.json // this example is just showing the usage of "AdminRules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task GetAll_ListSecurityAdminRules() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsSecurityAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleGet.json // this example is just showing the usage of "AdminRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Get_GetsSecurityAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsSecurityAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleGet.json // this example is just showing the usage of "AdminRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task Exists_GetsSecurityAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetsSecurityAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleGet.json // this example is just showing the usage of "AdminRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -174,7 +174,7 @@ public async Task GetIfExists_GetsSecurityAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsSecurityDefaultAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerDefaultAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerDefaultAdminRuleGet.json // this example is just showing the usage of "AdminRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -211,7 +211,7 @@ public async Task Get_GetsSecurityDefaultAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsSecurityDefaultAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerDefaultAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerDefaultAdminRuleGet.json // this example is just showing the usage of "AdminRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -244,7 +244,7 @@ public async Task Exists_GetsSecurityDefaultAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetsSecurityDefaultAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerDefaultAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerDefaultAdminRuleGet.json // this example is just showing the usage of "AdminRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -289,7 +289,7 @@ public async Task GetIfExists_GetsSecurityDefaultAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateADefaultAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerDefaultAdminRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerDefaultAdminRulePut.json // this example is just showing the usage of "AdminRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -331,7 +331,7 @@ public async Task CreateOrUpdate_CreateADefaultAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAnAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRulePut.json // this example is just showing the usage of "AdminRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleResource.cs index 8aa56380a5ef..b9171223a03d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_BaseAdminRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsSecurityAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleGet.json // this example is just showing the usage of "AdminRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetsSecurityAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsSecurityDefaultAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerDefaultAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerDefaultAdminRuleGet.json // this example is just showing the usage of "AdminRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Get_GetsSecurityDefaultAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateADefaultAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerDefaultAdminRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerDefaultAdminRulePut.json // this example is just showing the usage of "AdminRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task Update_CreateADefaultAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateAnAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRulePut.json // this example is just showing the usage of "AdminRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -194,7 +194,7 @@ public async Task Update_CreateAnAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletesAnAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleDelete.json // this example is just showing the usage of "AdminRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostCollection.cs index df60db0bf06b..13fd6a841640 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_BastionHostCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostGet.json // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostGet.json // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostGet.json // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_GetBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetBastionHostWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostGetWithZones.json // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task Get_GetBastionHostWithZones() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetBastionHostWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostGetWithZones.json // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -191,7 +191,7 @@ public async Task Exists_GetBastionHostWithZones() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetBastionHostWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostGetWithZones.json // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -233,7 +233,7 @@ public async Task GetIfExists_GetBastionHostWithZones() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDeveloperBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostDeveloperGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostDeveloperGet.json // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -267,7 +267,7 @@ public async Task Get_GetDeveloperBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetDeveloperBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostDeveloperGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostDeveloperGet.json // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -297,7 +297,7 @@ public async Task Exists_GetDeveloperBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetDeveloperBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostDeveloperGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostDeveloperGet.json // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -339,7 +339,7 @@ public async Task GetIfExists_GetDeveloperBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostPut.json // this example is just showing the usage of "BastionHosts_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -386,7 +386,7 @@ public async Task CreateOrUpdate_CreateBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateBastionHostWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostPutWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostPutWithZones.json // this example is just showing the usage of "BastionHosts_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -433,7 +433,7 @@ public async Task CreateOrUpdate_CreateBastionHostWithZones() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateDeveloperBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostDeveloperPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostDeveloperPut.json // this example is just showing the usage of "BastionHosts_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -482,7 +482,7 @@ public async Task CreateOrUpdate_CreateDeveloperBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllBastionHostsForAGivenResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostListByResourceGroup.json // this example is just showing the usage of "BastionHosts_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostResource.cs index a89cefbf8836..427ec42b652e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostResource.cs @@ -21,7 +21,7 @@ public partial class Sample_BastionHostResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostDelete.json // this example is just showing the usage of "BastionHosts_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteDeveloperBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostDeveloperDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostDeveloperDelete.json // this example is just showing the usage of "BastionHosts_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -75,7 +75,7 @@ public async Task Delete_DeleteDeveloperBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostGet.json // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -106,7 +106,7 @@ public async Task Get_GetBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetBastionHostWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostGetWithZones.json // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -137,7 +137,7 @@ public async Task Get_GetBastionHostWithZones() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDeveloperBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostDeveloperGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostDeveloperGet.json // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -168,7 +168,7 @@ public async Task Get_GetDeveloperBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostPatch.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostPatch.json // this example is just showing the usage of "BastionHosts_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -208,7 +208,7 @@ public async Task Update_PatchBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetBastionHosts_ListAllBastionHostsForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostListBySubscription.json // this example is just showing the usage of "BastionHosts_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -240,7 +240,7 @@ public async Task GetBastionHosts_ListAllBastionHostsForAGivenSubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task DeleteBastionShareableLinkByToken_DeleteBastionShareableLinksForTheRequestVMs() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionShareableLinkDeleteByToken.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionShareableLinkDeleteByToken.json // this example is just showing the usage of "DeleteBastionShareableLinkByToken" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionCollection.cs index 9209ee701c6e..24f836b4259a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_BgpConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubBgpConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubBgpConnectionGet.json // this example is just showing the usage of "VirtualHubBgpConnection_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubBgpConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubBgpConnectionGet.json // this example is just showing the usage of "VirtualHubBgpConnection_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubBgpConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubBgpConnectionGet.json // this example is just showing the usage of "VirtualHubBgpConnection_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VirtualHubRouteTableV2Put() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubBgpConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubBgpConnectionPut.json // this example is just showing the usage of "VirtualHubBgpConnection_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -170,7 +170,7 @@ public async Task CreateOrUpdate_VirtualHubRouteTableV2Put() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualHubRouteTableV2List() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubBgpConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubBgpConnectionList.json // this example is just showing the usage of "VirtualHubBgpConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionResource.cs index d9c8d847bf21..02b38f505170 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionResource.cs @@ -21,7 +21,7 @@ public partial class Sample_BgpConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubBgpConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubBgpConnectionGet.json // this example is just showing the usage of "VirtualHubBgpConnection_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VirtualHubRouteTableV2Put() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubBgpConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubBgpConnectionPut.json // this example is just showing the usage of "VirtualHubBgpConnection_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Update_VirtualHubRouteTableV2Put() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VirtualHubRouteTableV2Delete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubBgpConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubBgpConnectionDelete.json // this example is just showing the usage of "VirtualHubBgpConnection_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task Delete_VirtualHubRouteTableV2Delete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualHubBgpConnectionLearnedRoutes_VirtualRouterPeerListLearnedRoutes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPeerListLearnedRoute.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeerListLearnedRoute.json // this example is just showing the usage of "VirtualHubBgpConnections_ListLearnedRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -149,7 +149,7 @@ public async Task GetVirtualHubBgpConnectionLearnedRoutes_VirtualRouterPeerListL [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualHubBgpConnectionAdvertisedRoutes_VirtualRouterPeerListAdvertisedRoutes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPeerListAdvertisedRoute.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeerListAdvertisedRoute.json // this example is just showing the usage of "VirtualHubBgpConnections_ListAdvertisedRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapCollection.cs index 44ce1063fe9f..b48b2d086901 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_CloudServiceSwapCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSwapResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CloudServiceSwapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CloudServiceSwapGet.json // this example is just showing the usage of "VipSwap_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetSwapResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetSwapResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CloudServiceSwapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CloudServiceSwapGet.json // this example is just showing the usage of "VipSwap_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetSwapResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetSwapResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CloudServiceSwapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CloudServiceSwapGet.json // this example is just showing the usage of "VipSwap_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_GetSwapResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_PutVipSwapOperation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CloudServiceSwapPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CloudServiceSwapPut.json // this example is just showing the usage of "VipSwap_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task CreateOrUpdate_PutVipSwapOperation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetSwapResourceList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CloudServiceSwapList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CloudServiceSwapList.json // this example is just showing the usage of "VipSwap_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapResource.cs index a4a48a2aeefc..6f4b0804b60b 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapResource.cs @@ -20,7 +20,7 @@ public partial class Sample_CloudServiceSwapResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSwapResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CloudServiceSwapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CloudServiceSwapGet.json // this example is just showing the usage of "VipSwap_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetSwapResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PutVipSwapOperation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CloudServiceSwapPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CloudServiceSwapPut.json // this example is just showing the usage of "VipSwap_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorCollection.cs index b81b8b72f62f..7e7ba8a435c8 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ConnectionMonitorCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateConnectionMonitorV1() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorCreate.json // this example is just showing the usage of "ConnectionMonitors_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task CreateOrUpdate_CreateConnectionMonitorV1() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateConnectionMonitorV2() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorV2Create.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorV2Create.json // this example is just showing the usage of "ConnectionMonitors_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -192,7 +192,7 @@ public async Task CreateOrUpdate_CreateConnectionMonitorV2() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateConnectionMonitorWithArcNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorCreateWithArcNetwork.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorCreateWithArcNetwork.json // this example is just showing the usage of "ConnectionMonitors_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -293,7 +293,7 @@ public async Task CreateOrUpdate_CreateConnectionMonitorWithArcNetwork() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorGet.json // this example is just showing the usage of "ConnectionMonitors_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -328,7 +328,7 @@ public async Task Get_GetConnectionMonitor() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorGet.json // this example is just showing the usage of "ConnectionMonitors_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -359,7 +359,7 @@ public async Task Exists_GetConnectionMonitor() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorGet.json // this example is just showing the usage of "ConnectionMonitors_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -402,7 +402,7 @@ public async Task GetIfExists_GetConnectionMonitor() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListConnectionMonitors() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorList.json // this example is just showing the usage of "ConnectionMonitors_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorResource.cs index 29f1cfee5671..5570e3d4f738 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ConnectionMonitorResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorGet.json // this example is just showing the usage of "ConnectionMonitors_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetConnectionMonitor() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorDelete.json // this example is just showing the usage of "ConnectionMonitors_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Delete_DeleteConnectionMonitor() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateConnectionMonitorTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json // this example is just showing the usage of "ConnectionMonitors_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task Update_UpdateConnectionMonitorTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Stop_StopConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorStop.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorStop.json // this example is just showing the usage of "ConnectionMonitors_Stop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -148,7 +148,7 @@ public async Task Stop_StopConnectionMonitor() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Start_StartConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorStart.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorStart.json // this example is just showing the usage of "ConnectionMonitors_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -176,7 +176,7 @@ public async Task Start_StartConnectionMonitor() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Query_QueryConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorQuery.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorQuery.json // this example is just showing the usage of "ConnectionMonitors_Query" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationCollection.cs index 59d164f403ca..07c12e70c981 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ConnectivityConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ConnectivityConfigurationsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectivityConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectivityConfigurationGet.json // this example is just showing the usage of "ConnectivityConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_ConnectivityConfigurationsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ConnectivityConfigurationsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectivityConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectivityConfigurationGet.json // this example is just showing the usage of "ConnectivityConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_ConnectivityConfigurationsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ConnectivityConfigurationsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectivityConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectivityConfigurationGet.json // this example is just showing the usage of "ConnectivityConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_ConnectivityConfigurationsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ConnectivityConfigurationsPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectivityConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectivityConfigurationPut.json // this example is just showing the usage of "ConnectivityConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -188,7 +188,7 @@ public async Task CreateOrUpdate_ConnectivityConfigurationsPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ConnectivityConfigurationsList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectivityConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectivityConfigurationList.json // this example is just showing the usage of "ConnectivityConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationResource.cs index 513f37305d74..d57ba613cdab 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ConnectivityConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ConnectivityConfigurationsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectivityConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectivityConfigurationGet.json // this example is just showing the usage of "ConnectivityConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_ConnectivityConfigurationsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ConnectivityConfigurationsPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectivityConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectivityConfigurationPut.json // this example is just showing the usage of "ConnectivityConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -108,7 +108,7 @@ public async Task Update_ConnectivityConfigurationsPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ConnectivityConfigurationsDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectivityConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectivityConfigurationDelete.json // this example is just showing the usage of "ConnectivityConfigurations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixCollection.cs index 9a9ed5b432c3..f5f0f84449f6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_CustomIPPrefixCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCustomIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CustomIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CustomIpPrefixGet.json // this example is just showing the usage of "CustomIPPrefixes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetCustomIPPrefix() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetCustomIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CustomIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CustomIpPrefixGet.json // this example is just showing the usage of "CustomIPPrefixes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Exists_GetCustomIPPrefix() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetCustomIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CustomIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CustomIpPrefixGet.json // this example is just showing the usage of "CustomIPPrefixes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetCustomIPPrefix() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateCustomIPPrefixAllocationMethod() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CustomIpPrefixCreateCustomizedValues.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CustomIpPrefixCreateCustomizedValues.json // this example is just showing the usage of "CustomIPPrefixes_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task CreateOrUpdate_CreateCustomIPPrefixAllocationMethod() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListResourceGroupCustomIPPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CustomIpPrefixList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CustomIpPrefixList.json // this example is just showing the usage of "CustomIPPrefixes_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixResource.cs index da24e60588c5..90a456637ba5 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixResource.cs @@ -21,7 +21,7 @@ public partial class Sample_CustomIPPrefixResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteCustomIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CustomIpPrefixDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CustomIpPrefixDelete.json // this example is just showing the usage of "CustomIPPrefixes_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteCustomIPPrefix() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCustomIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CustomIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CustomIpPrefixGet.json // this example is just showing the usage of "CustomIPPrefixes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetCustomIPPrefix() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdatePublicIPAddressTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CustomIpPrefixUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CustomIpPrefixUpdateTags.json // this example is just showing the usage of "CustomIPPrefixes_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_UpdatePublicIPAddressTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetCustomIPPrefixes_ListAllCustomIPPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CustomIpPrefixListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CustomIpPrefixListAll.json // this example is just showing the usage of "CustomIPPrefixes_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyCollection.cs index 77d1981a3899..0cee15cf992a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_DdosCustomPolicyCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDDoSCustomPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosCustomPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosCustomPolicyGet.json // this example is just showing the usage of "DdosCustomPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetDDoSCustomPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetDDoSCustomPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosCustomPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosCustomPolicyGet.json // this example is just showing the usage of "DdosCustomPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Exists_GetDDoSCustomPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetDDoSCustomPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosCustomPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosCustomPolicyGet.json // this example is just showing the usage of "DdosCustomPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetDDoSCustomPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateDDoSCustomPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosCustomPolicyCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosCustomPolicyCreate.json // this example is just showing the usage of "DdosCustomPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyResource.cs index 1d6f6e15c62a..dba9147607fe 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyResource.cs @@ -20,7 +20,7 @@ public partial class Sample_DdosCustomPolicyResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteDDoSCustomPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosCustomPolicyDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosCustomPolicyDelete.json // this example is just showing the usage of "DdosCustomPolicies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -47,7 +47,7 @@ public async Task Delete_DeleteDDoSCustomPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDDoSCustomPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosCustomPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosCustomPolicyGet.json // this example is just showing the usage of "DdosCustomPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Get_GetDDoSCustomPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_DDoSCustomPolicyUpdateTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosCustomPolicyUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosCustomPolicyUpdateTags.json // this example is just showing the usage of "DdosCustomPolicies_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanCollection.cs index d06e67441e69..060854859034 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_DdosProtectionPlanCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDDoSProtectionPlan() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosProtectionPlanGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosProtectionPlanGet.json // this example is just showing the usage of "DdosProtectionPlans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetDDoSProtectionPlan() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetDDoSProtectionPlan() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosProtectionPlanGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosProtectionPlanGet.json // this example is just showing the usage of "DdosProtectionPlans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Exists_GetDDoSProtectionPlan() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetDDoSProtectionPlan() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosProtectionPlanGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosProtectionPlanGet.json // this example is just showing the usage of "DdosProtectionPlans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetDDoSProtectionPlan() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateDDoSProtectionPlan() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosProtectionPlanCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosProtectionPlanCreate.json // this example is just showing the usage of "DdosProtectionPlans_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -162,7 +162,7 @@ public async Task CreateOrUpdate_CreateDDoSProtectionPlan() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListDDoSProtectionPlansInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosProtectionPlanList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosProtectionPlanList.json // this example is just showing the usage of "DdosProtectionPlans_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanResource.cs index 99ea3833ecda..9987ddb37677 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanResource.cs @@ -21,7 +21,7 @@ public partial class Sample_DdosProtectionPlanResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteDDoSProtectionPlan() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosProtectionPlanDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosProtectionPlanDelete.json // this example is just showing the usage of "DdosProtectionPlans_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteDDoSProtectionPlan() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDDoSProtectionPlan() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosProtectionPlanGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosProtectionPlanGet.json // this example is just showing the usage of "DdosProtectionPlans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetDDoSProtectionPlan() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_DDoSProtectionPlanUpdateTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosProtectionPlanUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosProtectionPlanUpdateTags.json // this example is just showing the usage of "DdosProtectionPlans_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_DDoSProtectionPlanUpdateTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetDdosProtectionPlans_ListAllDDoSProtectionPlans() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosProtectionPlanListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosProtectionPlanListAll.json // this example is just showing the usage of "DdosProtectionPlans_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleCollection.cs index 8325198e1933..9da17a74099b 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_DefaultSecurityRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_DefaultSecurityRuleList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DefaultSecurityRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DefaultSecurityRuleList.json // this example is just showing the usage of "DefaultSecurityRules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_DefaultSecurityRuleList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_DefaultSecurityRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DefaultSecurityRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DefaultSecurityRuleGet.json // this example is just showing the usage of "DefaultSecurityRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_DefaultSecurityRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_DefaultSecurityRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DefaultSecurityRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DefaultSecurityRuleGet.json // this example is just showing the usage of "DefaultSecurityRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_DefaultSecurityRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_DefaultSecurityRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DefaultSecurityRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DefaultSecurityRuleGet.json // this example is just showing the usage of "DefaultSecurityRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleResource.cs index 4f529f4fc164..efc17790a657 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleResource.cs @@ -19,7 +19,7 @@ public partial class Sample_DefaultSecurityRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_DefaultSecurityRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DefaultSecurityRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DefaultSecurityRuleGet.json // this example is just showing the usage of "DefaultSecurityRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationCollection.cs index 704e1df96f3c..7d02f1401f79 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_DscpConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateDSCPConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DscpConfigurationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DscpConfigurationCreate.json // this example is just showing the usage of "DscpConfiguration_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -146,7 +146,7 @@ public async Task CreateOrUpdate_CreateDSCPConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDscpConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DscpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DscpConfigurationGet.json // this example is just showing the usage of "DscpConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -180,7 +180,7 @@ public async Task Get_GetDscpConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetDscpConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DscpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DscpConfigurationGet.json // this example is just showing the usage of "DscpConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -210,7 +210,7 @@ public async Task Exists_GetDscpConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetDscpConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DscpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DscpConfigurationGet.json // this example is just showing the usage of "DscpConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -252,7 +252,7 @@ public async Task GetIfExists_GetDscpConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetDscpConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DscpConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DscpConfigurationList.json // this example is just showing the usage of "DscpConfiguration_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationResource.cs index 06aa3557d7b7..9cbdac244f08 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationResource.cs @@ -21,7 +21,7 @@ public partial class Sample_DscpConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateDSCPConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DscpConfigurationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DscpConfigurationCreate.json // this example is just showing the usage of "DscpConfiguration_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -143,7 +143,7 @@ public async Task Update_CreateDSCPConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteDSCPConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DscpConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DscpConfigurationDelete.json // this example is just showing the usage of "DscpConfiguration_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -170,7 +170,7 @@ public async Task Delete_DeleteDSCPConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDscpConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DscpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DscpConfigurationGet.json // this example is just showing the usage of "DscpConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -201,7 +201,7 @@ public async Task Get_GetDscpConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetDscpConfigurations_ListAllNetworkInterfaces() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DscpConfigurationListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DscpConfigurationListAll.json // this example is just showing the usage of "DscpConfiguration_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationCollection.cs index a18eb6b5bc4f..0c16c91d74d1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ExpressRouteCircuitAuthorizationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitAuthorizationGet.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetExpressRouteCircuitAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitAuthorizationGet.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetExpressRouteCircuitAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitAuthorizationGet.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_GetExpressRouteCircuitAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitAuthorizationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitAuthorizationCreate.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -165,7 +165,7 @@ public async Task CreateOrUpdate_CreateExpressRouteCircuitAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitAuthorizationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitAuthorizationList.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationResource.cs index 92eec5545c1d..fb446648e339 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ExpressRouteCircuitAuthorizationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitAuthorizationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitAuthorizationDelete.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -47,7 +47,7 @@ public async Task Delete_DeleteExpressRouteCircuitAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitAuthorizationGet.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetExpressRouteCircuitAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitAuthorizationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitAuthorizationCreate.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitCollection.cs index cfa361284765..ceb5c1c4d7fb 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteCircuitCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitGet.json // this example is just showing the usage of "ExpressRouteCircuits_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetExpressRouteCircuit() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitGet.json // this example is just showing the usage of "ExpressRouteCircuits_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetExpressRouteCircuit() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitGet.json // this example is just showing the usage of "ExpressRouteCircuits_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_GetExpressRouteCircuit() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitCreate.json // this example is just showing the usage of "ExpressRouteCircuits_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -185,7 +185,7 @@ public async Task CreateOrUpdate_CreateExpressRouteCircuit() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateExpressRouteCircuitOnExpressRoutePort() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json // this example is just showing the usage of "ExpressRouteCircuits_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -234,7 +234,7 @@ public async Task CreateOrUpdate_CreateExpressRouteCircuitOnExpressRoutePort() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListExpressRouteCircuitsInAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitListByResourceGroup.json // this example is just showing the usage of "ExpressRouteCircuits_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionCollection.cs index 6db72cfecec3..82062f1ee515 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ExpressRouteCircuitConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "ExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Get_ExpressRouteCircuitConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "ExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_ExpressRouteCircuitConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "ExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,7 +132,7 @@ public async Task GetIfExists_ExpressRouteCircuitConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ExpressRouteCircuitConnectionCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitConnectionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitConnectionCreate.json // this example is just showing the usage of "ExpressRouteCircuitConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -180,7 +180,7 @@ public async Task CreateOrUpdate_ExpressRouteCircuitConnectionCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListExpressRouteCircuitConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitConnectionList.json // this example is just showing the usage of "ExpressRouteCircuitConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionResource.cs index 4f1e82dbfd27..82ba454cff30 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ExpressRouteCircuitConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitConnectionDelete.json // this example is just showing the usage of "ExpressRouteCircuitConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -49,7 +49,7 @@ public async Task Delete_DeleteExpressRouteCircuit() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "ExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_ExpressRouteCircuitConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ExpressRouteCircuitConnectionCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitConnectionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitConnectionCreate.json // this example is just showing the usage of "ExpressRouteCircuitConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringCollection.cs index 7e97d87b268b..76b4f0dcc930 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ExpressRouteCircuitPeeringCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCircuitPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitPeeringGet.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetExpressRouteCircuitPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetExpressRouteCircuitPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitPeeringGet.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetExpressRouteCircuitPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetExpressRouteCircuitPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitPeeringGet.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_GetExpressRouteCircuitPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateExpressRouteCircuitPeerings() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitPeeringCreate.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -171,7 +171,7 @@ public async Task CreateOrUpdate_CreateExpressRouteCircuitPeerings() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListExpressRouteCircuitPeerings() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitPeeringList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitPeeringList.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringResource.cs index 2f55a1ecd071..0c93f4154d8d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ExpressRouteCircuitPeeringResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteExpressRouteCircuitPeerings() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitPeeringDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitPeeringDelete.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteExpressRouteCircuitPeerings() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCircuitPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitPeeringGet.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Get_GetExpressRouteCircuitPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateExpressRouteCircuitPeerings() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitPeeringCreate.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task Update_CreateExpressRouteCircuitPeerings() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetArpTableExpressRouteCircuit_ListARPTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitARPTableList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitARPTableList.json // this example is just showing the usage of "ExpressRouteCircuits_ListArpTable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -150,7 +150,7 @@ public async Task GetArpTableExpressRouteCircuit_ListARPTable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetRoutesTableExpressRouteCircuit_ListRouteTables() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitRouteTableList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitRouteTableList.json // this example is just showing the usage of "ExpressRouteCircuits_ListRoutesTable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -180,7 +180,7 @@ public async Task GetRoutesTableExpressRouteCircuit_ListRouteTables() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetRoutesTableSummaryExpressRouteCircuit_ListRouteTableSummary() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitRouteTableSummaryList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitRouteTableSummaryList.json // this example is just showing the usage of "ExpressRouteCircuits_ListRoutesTableSummary" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -210,7 +210,7 @@ public async Task GetRoutesTableSummaryExpressRouteCircuit_ListRouteTableSummary [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetPeeringStatsExpressRouteCircuit_GetExpressRouteCircuitPeeringTrafficStats() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitPeeringStats.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitPeeringStats.json // this example is just showing the usage of "ExpressRouteCircuits_GetPeeringStats" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitResource.cs index 85301695c9c4..8677d31d5ff3 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteCircuitResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitDelete.json // this example is just showing the usage of "ExpressRouteCircuits_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteExpressRouteCircuit() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitGet.json // this example is just showing the usage of "ExpressRouteCircuits_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetExpressRouteCircuit() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateExpressRouteCircuitTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitUpdateTags.json // this example is just showing the usage of "ExpressRouteCircuits_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_UpdateExpressRouteCircuitTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetStats_GetExpressRouteCircuitTrafficStats() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitStats.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitStats.json // this example is just showing the usage of "ExpressRouteCircuits_GetStats" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -145,7 +145,7 @@ public async Task GetStats_GetExpressRouteCircuitTrafficStats() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetExpressRouteCircuits_ListExpressRouteCircuitsInASubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitListBySubscription.json // this example is just showing the usage of "ExpressRouteCircuits_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionCollection.cs index 9a0a51179734..71f41cbf33fd 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ExpressRouteConnectionCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteConnectionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteConnectionCreate.json // this example is just showing the usage of "ExpressRouteConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task CreateOrUpdate_ExpressRouteConnectionCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteConnectionGet.json // this example is just showing the usage of "ExpressRouteConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Get_ExpressRouteConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ExpressRouteConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteConnectionGet.json // this example is just showing the usage of "ExpressRouteConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -157,7 +157,7 @@ public async Task Exists_ExpressRouteConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ExpressRouteConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteConnectionGet.json // this example is just showing the usage of "ExpressRouteConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -200,7 +200,7 @@ public async Task GetIfExists_ExpressRouteConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ExpressRouteConnectionList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteConnectionList.json // this example is just showing the usage of "ExpressRouteConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionResource.cs index 7a0eb4551cec..1091ce1c1419 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ExpressRouteConnectionCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteConnectionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteConnectionCreate.json // this example is just showing the usage of "ExpressRouteConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Update_ExpressRouteConnectionCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteConnectionGet.json // this example is just showing the usage of "ExpressRouteConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task Get_ExpressRouteConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ExpressRouteConnectionDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteConnectionDelete.json // this example is just showing the usage of "ExpressRouteConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionCollection.cs index 54a94ed1801c..521bfe54aa3a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteCrossConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ExpressRouteCrossConnectionListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionListByResourceGroup.json // this example is just showing the usage of "ExpressRouteCrossConnections_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_ExpressRouteCrossConnectionListByResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCrossConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionGet.json // this example is just showing the usage of "ExpressRouteCrossConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_GetExpressRouteCrossConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetExpressRouteCrossConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionGet.json // this example is just showing the usage of "ExpressRouteCrossConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Exists_GetExpressRouteCrossConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetExpressRouteCrossConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionGet.json // this example is just showing the usage of "ExpressRouteCrossConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,7 +163,7 @@ public async Task GetIfExists_GetExpressRouteCrossConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_UpdateExpressRouteCrossConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionUpdate.json // this example is just showing the usage of "ExpressRouteCrossConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringCollection.cs index eaa6a7b797f2..faab00524f24 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ExpressRouteCrossConnectionPeeringCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ExpressRouteCrossConnectionBgpPeeringList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionBgpPeeringList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionBgpPeeringList.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_ExpressRouteCrossConnectionBgpPeeringList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCrossConnectionBgpPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Get_GetExpressRouteCrossConnectionBgpPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetExpressRouteCrossConnectionBgpPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Exists_GetExpressRouteCrossConnectionBgpPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetExpressRouteCrossConnectionBgpPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task GetIfExists_GetExpressRouteCrossConnectionBgpPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ExpressRouteCrossConnectionBgpPeeringCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringResource.cs index d34d302da76d..1c0961002b69 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ExpressRouteCrossConnectionPeeringResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetArpTableExpressRouteCrossConnection_GetExpressRouteCrossConnectionsArpTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionsArpTable.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionsArpTable.json // this example is just showing the usage of "ExpressRouteCrossConnections_ListArpTable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task GetArpTableExpressRouteCrossConnection_GetExpressRouteCrossCon [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetRoutesTableSummaryExpressRouteCrossConnection_GetExpressRouteCrossConnectionsRouteTableSummary() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionsRouteTableSummary.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionsRouteTableSummary.json // this example is just showing the usage of "ExpressRouteCrossConnections_ListRoutesTableSummary" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task GetRoutesTableSummaryExpressRouteCrossConnection_GetExpressRou [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetRoutesTableExpressRouteCrossConnection_GetExpressRouteCrossConnectionsRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionsRouteTable.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionsRouteTable.json // this example is just showing the usage of "ExpressRouteCrossConnections_ListRoutesTable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -110,7 +110,7 @@ public async Task GetRoutesTableExpressRouteCrossConnection_GetExpressRouteCross [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteExpressRouteCrossConnectionBgpPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionBgpPeeringDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionBgpPeeringDelete.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -138,7 +138,7 @@ public async Task Delete_DeleteExpressRouteCrossConnectionBgpPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCrossConnectionBgpPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -170,7 +170,7 @@ public async Task Get_GetExpressRouteCrossConnectionBgpPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ExpressRouteCrossConnectionBgpPeeringCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionResource.cs index f456bf378da4..634ff72f65b1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteCrossConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetExpressRouteCrossConnections_ExpressRouteCrossConnectionList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionList.json // this example is just showing the usage of "ExpressRouteCrossConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task GetExpressRouteCrossConnections_ExpressRouteCrossConnectionLis [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCrossConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionGet.json // this example is just showing the usage of "ExpressRouteCrossConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Get_GetExpressRouteCrossConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateExpressRouteCrossConnectionTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionUpdateTags.json // this example is just showing the usage of "ExpressRouteCrossConnections_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayCollection.cs index a1575c6a7ce8..6c6f5358c35f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteGatewayCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ExpressRouteGatewayListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteGatewayListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteGatewayListByResourceGroup.json // this example is just showing the usage of "ExpressRouteGateways_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_ExpressRouteGatewayListByResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ExpressRouteGatewayCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteGatewayCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteGatewayCreate.json // this example is just showing the usage of "ExpressRouteGateways_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -102,7 +102,7 @@ public async Task CreateOrUpdate_ExpressRouteGatewayCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteGatewayGet.json // this example is just showing the usage of "ExpressRouteGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -136,7 +136,7 @@ public async Task Get_ExpressRouteGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ExpressRouteGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteGatewayGet.json // this example is just showing the usage of "ExpressRouteGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task Exists_ExpressRouteGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ExpressRouteGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteGatewayGet.json // this example is just showing the usage of "ExpressRouteGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayResource.cs index a835f4e4c331..8fcec8ae81e9 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteGatewayResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetExpressRouteGateways_ExpressRouteGatewayListBySubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteGatewayListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteGatewayListBySubscription.json // this example is just showing the usage of "ExpressRouteGateways_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task GetExpressRouteGateways_ExpressRouteGatewayListBySubscription( [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ExpressRouteGatewayUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteGatewayUpdateTags.json // this example is just showing the usage of "ExpressRouteGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Update_ExpressRouteGatewayUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteGatewayGet.json // this example is just showing the usage of "ExpressRouteGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -124,7 +124,7 @@ public async Task Get_ExpressRouteGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ExpressRouteGatewayDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteGatewayDelete.json // this example is just showing the usage of "ExpressRouteGateways_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkCollection.cs index 1ea2ef86c13a..6e0e10fa0592 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ExpressRouteLinkCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteLinkGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteLinkGet.json // this example is just showing the usage of "ExpressRouteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_ExpressRouteLinkGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ExpressRouteLinkGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteLinkGet.json // this example is just showing the usage of "ExpressRouteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_ExpressRouteLinkGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ExpressRouteLinkGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteLinkGet.json // this example is just showing the usage of "ExpressRouteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_ExpressRouteLinkGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ExpressRouteLinkGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteLinkList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteLinkList.json // this example is just showing the usage of "ExpressRouteLinks_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkResource.cs index 1736a45f2676..3819c34fee75 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ExpressRouteLinkResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteLinkGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteLinkGet.json // this example is just showing the usage of "ExpressRouteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationCollection.cs index 8c7173a0fe04..fc29d9201e60 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ExpressRoutePortAuthorizationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortAuthorizationGet.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetExpressRoutePortAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortAuthorizationGet.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetExpressRoutePortAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortAuthorizationGet.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_GetExpressRoutePortAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortAuthorizationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortAuthorizationCreate.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -165,7 +165,7 @@ public async Task CreateOrUpdate_CreateExpressRoutePortAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortAuthorizationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortAuthorizationList.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationResource.cs index 832157043685..fd6fc53c80ca 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ExpressRoutePortAuthorizationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortAuthorizationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortAuthorizationDelete.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -47,7 +47,7 @@ public async Task Delete_DeleteExpressRoutePortAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortAuthorizationGet.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetExpressRoutePortAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortAuthorizationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortAuthorizationCreate.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortCollection.cs index 3b4a682ae991..bbda33f272ee 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRoutePortCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRoutePortGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortGet.json // this example is just showing the usage of "ExpressRoutePorts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_ExpressRoutePortGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ExpressRoutePortGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortGet.json // this example is just showing the usage of "ExpressRoutePorts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_ExpressRoutePortGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ExpressRoutePortGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortGet.json // this example is just showing the usage of "ExpressRoutePorts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_ExpressRoutePortGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ExpressRoutePortCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortCreate.json // this example is just showing the usage of "ExpressRoutePorts_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -170,7 +170,7 @@ public async Task CreateOrUpdate_ExpressRoutePortCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ExpressRoutePortUpdateLink() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortUpdateLink.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortUpdateLink.json // this example is just showing the usage of "ExpressRoutePorts_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -221,7 +221,7 @@ public async Task CreateOrUpdate_ExpressRoutePortUpdateLink() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ExpressRoutePortListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortListByResourceGroup.json // this example is just showing the usage of "ExpressRoutePorts_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortResource.cs index 3ff580bef75e..58945bf2182f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRoutePortResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ExpressRoutePortDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortDelete.json // this example is just showing the usage of "ExpressRoutePorts_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_ExpressRoutePortDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRoutePortGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortGet.json // this example is just showing the usage of "ExpressRoutePorts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_ExpressRoutePortGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ExpressRoutePortUpdateTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortUpdateTags.json // this example is just showing the usage of "ExpressRoutePorts_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_ExpressRoutePortUpdateTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetExpressRoutePorts_ExpressRoutePortList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortList.json // this example is just showing the usage of "ExpressRoutePorts_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -150,7 +150,7 @@ public async Task GetExpressRoutePorts_ExpressRoutePortList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GenerateLoa_GenerateExpressRoutePortLOA() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/GenerateExpressRoutePortsLOA.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GenerateExpressRoutePortsLOA.json // this example is just showing the usage of "ExpressRoutePorts_GenerateLoa" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationCollection.cs index 052e1b0b10aa..9ce744d2139d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ExpressRoutePortsLocationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ExpressRoutePortsLocationList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortsLocationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortsLocationList.json // this example is just showing the usage of "ExpressRoutePortsLocations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task GetAll_ExpressRoutePortsLocationList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRoutePortsLocationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortsLocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortsLocationGet.json // this example is just showing the usage of "ExpressRoutePortsLocations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Get_ExpressRoutePortsLocationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ExpressRoutePortsLocationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortsLocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortsLocationGet.json // this example is just showing the usage of "ExpressRoutePortsLocations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -117,7 +117,7 @@ public async Task Exists_ExpressRoutePortsLocationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ExpressRoutePortsLocationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortsLocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortsLocationGet.json // this example is just showing the usage of "ExpressRoutePortsLocations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationResource.cs index eede400c8fbb..43cdd3e8f519 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ExpressRoutePortsLocationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRoutePortsLocationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortsLocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortsLocationGet.json // this example is just showing the usage of "ExpressRoutePortsLocations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortCollection.cs index 6e878cbedfc6..f4d46a0e1e74 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ExpressRouteProviderPortCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteProviderPort() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/expressRouteProviderPort.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/expressRouteProviderPort.json // this example is just showing the usage of "ExpressRouteProviderPort" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_ExpressRouteProviderPort() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ExpressRouteProviderPort() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/expressRouteProviderPort.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/expressRouteProviderPort.json // this example is just showing the usage of "ExpressRouteProviderPort" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Exists_ExpressRouteProviderPort() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ExpressRouteProviderPort() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/expressRouteProviderPort.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/expressRouteProviderPort.json // this example is just showing the usage of "ExpressRouteProviderPort" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task GetIfExists_ExpressRouteProviderPort() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ExpressRouteProviderPortList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/expressRouteProviderPortList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/expressRouteProviderPortList.json // this example is just showing the usage of "ExpressRouteProviderPortsLocation_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortResource.cs index e99e0535c68b..ad54c9bc96ef 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteProviderPortResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckDnsNameAvailability_CheckDnsNameAvailability() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CheckDnsNameAvailability.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CheckDnsNameAvailability.json // this example is just showing the usage of "CheckDnsNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task CheckDnsNameAvailability_CheckDnsNameAvailability() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteProviderPort() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/expressRouteProviderPort.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/expressRouteProviderPort.json // this example is just showing the usage of "ExpressRouteProviderPort" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyCollection.cs index 0b6f19f7a940..6a2313329a47 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_FirewallPolicyCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyGet.json // this example is just showing the usage of "FirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyGet.json // this example is just showing the usage of "FirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyGet.json // this example is just showing the usage of "FirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_GetFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyPut.json // this example is just showing the usage of "FirewallPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -272,7 +272,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllFirewallPoliciesForAGivenResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyListByResourceGroup.json // this example is just showing the usage of "FirewallPolicies_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyDraftResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyDraftResource.cs index 34a67bbe8990..efd764a29f6c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyDraftResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyDraftResource.cs @@ -20,7 +20,7 @@ public partial class Sample_FirewallPolicyDraftResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateFirewallPolicyDraft() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyDraftPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyDraftPut.json // this example is just showing the usage of "FirewallPolicyDrafts_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -151,7 +151,7 @@ public async Task CreateOrUpdate_CreateOrUpdateFirewallPolicyDraft() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteFirewallPolicyDraft() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyDraftDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyDraftDelete.json // this example is just showing the usage of "FirewallPolicyDrafts_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task Delete_DeleteFirewallPolicyDraft() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyDraft() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyDraftGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyDraftGet.json // this example is just showing the usage of "FirewallPolicyDrafts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyResource.cs index f3a0ead9b3eb..522f1119e63c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyResource.cs @@ -21,7 +21,7 @@ public partial class Sample_FirewallPolicyResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyDelete.json // this example is just showing the usage of "FirewallPolicies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyGet.json // this example is just showing the usage of "FirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateFirewallPolicyTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyPatch.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyPatch.json // this example is just showing the usage of "FirewallPolicies_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_UpdateFirewallPolicyTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetFirewallPolicies_ListAllFirewallPoliciesForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyListBySubscription.json // this example is just showing the usage of "FirewallPolicies_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -150,7 +150,7 @@ public async Task GetFirewallPolicies_ListAllFirewallPoliciesForAGivenSubscripti [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetFirewallPolicyIdpsSignature_QuerySignatureOverrides() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyQuerySignatureOverrides.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyQuerySignatureOverrides.json // this example is just showing the usage of "FirewallPolicyIdpsSignatures_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -199,7 +199,7 @@ public async Task GetFirewallPolicyIdpsSignature_QuerySignatureOverrides() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetFirewallPolicyIdpsSignaturesFilterValue_QuerySignatureOverrides() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyQuerySignatureOverridesFilterValues.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyQuerySignatureOverridesFilterValues.json // this example is just showing the usage of "FirewallPolicyIdpsSignaturesFilterValues_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -230,7 +230,7 @@ public async Task GetFirewallPolicyIdpsSignaturesFilterValue_QuerySignatureOverr [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task DeployFirewallPolicyDeployment_DeployFirewallPolicyDraft() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyDraftDeploy.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyDraftDeploy.json // this example is just showing the usage of "FirewallPolicyDeployments_Deploy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs index 60253a2e4de5..467b9d63aea9 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_FirewallPolicyRuleCollectionGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_GetFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_GetFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -164,7 +164,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -195,7 +195,7 @@ public async Task Exists_GetFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -238,7 +238,7 @@ public async Task GetIfExists_GetFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -273,7 +273,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -304,7 +304,7 @@ public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -347,7 +347,7 @@ public async Task GetIfExists_GetFirewallPolicyRuleCollectionGroupWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -382,7 +382,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -413,7 +413,7 @@ public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithWebCategories() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -456,7 +456,7 @@ public async Task GetIfExists_GetFirewallPolicyRuleCollectionGroupWithWebCategor [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyNatRuleCollectionGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyNatRuleCollectionGroupPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -533,7 +533,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -605,7 +605,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithIPGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -676,7 +676,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithIPGr [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -748,7 +748,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithWebC [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithHttpHeaderToInsert() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithHttpHeadersToInsert.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithHttpHeadersToInsert.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -828,7 +828,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithHttp [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -865,7 +865,7 @@ public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupWithWebCategori [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupsForAGivenFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupList.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -902,7 +902,7 @@ public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupsForAGivenFirew [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupsWithIpGroupsForAGivenFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupDraftResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupDraftResource.cs index 543412dc12f2..b98664c61b77 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupDraftResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupDraftResource.cs @@ -20,7 +20,7 @@ public partial class Sample_FirewallPolicyRuleCollectionGroupDraftResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteFirewallRuleCollectionGroupDraft() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupDraftDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupDraftDelete.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroupDrafts_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteFirewallRuleCollectionGroupDraft() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateRuleCollectionGroupDraft() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupDraftPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupDraftPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroupDrafts_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -117,7 +117,7 @@ public async Task CreateOrUpdate_CreateOrUpdateRuleCollectionGroupDraft() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetRuleCollectionGroupDraft() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupDraftGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupDraftGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroupDrafts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs index 71b034d9d19d..1ed93311f9ab 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs @@ -20,7 +20,7 @@ public partial class Sample_FirewallPolicyRuleCollectionGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupDelete.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -112,7 +112,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -144,7 +144,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -176,7 +176,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyNatRuleCollectionGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyNatRuleCollectionGroupPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -250,7 +250,7 @@ public async Task Update_CreateFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -319,7 +319,7 @@ public async Task Update_CreateFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithIPGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -387,7 +387,7 @@ public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithIPGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -456,7 +456,7 @@ public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithWebCategorie [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithHttpHeaderToInsert() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithHttpHeadersToInsert.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithHttpHeadersToInsert.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogCollection.cs index 7cca06f03ff6..40851607f7a1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_FlowLogCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherFlowLogCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogCreate.json // this example is just showing the usage of "FlowLogs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -68,7 +68,7 @@ public async Task CreateOrUpdate_CreateOrUpdateFlowLog() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherFlowLogGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogGet.json // this example is just showing the usage of "FlowLogs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -103,7 +103,7 @@ public async Task Get_GetFlowLog() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherFlowLogGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogGet.json // this example is just showing the usage of "FlowLogs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,7 +134,7 @@ public async Task Exists_GetFlowLog() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherFlowLogGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogGet.json // this example is just showing the usage of "FlowLogs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -177,7 +177,7 @@ public async Task GetIfExists_GetFlowLog() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListConnectionMonitors() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherFlowLogList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogList.json // this example is just showing the usage of "FlowLogs_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogResource.cs index 42d62e222d54..babd5bd7c7a9 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogResource.cs @@ -20,7 +20,7 @@ public partial class Sample_FlowLogResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateFlowLogTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherFlowLogUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogUpdateTags.json // this example is just showing the usage of "FlowLogs_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task Update_UpdateFlowLogTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherFlowLogGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogGet.json // this example is just showing the usage of "FlowLogs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Get_GetFlowLog() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherFlowLogDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogDelete.json // this example is just showing the usage of "FlowLogs_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationCollection.cs index 78a55f259024..428550c8a5f2 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_FrontendIPConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_LoadBalancerFrontendIPConfigurationList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerFrontendIPConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerFrontendIPConfigurationList.json // this example is just showing the usage of "LoadBalancerFrontendIPConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_LoadBalancerFrontendIPConfigurationList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerFrontendIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerFrontendIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerFrontendIPConfigurationGet.json // this example is just showing the usage of "LoadBalancerFrontendIPConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_LoadBalancerFrontendIPConfigurationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_LoadBalancerFrontendIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerFrontendIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerFrontendIPConfigurationGet.json // this example is just showing the usage of "LoadBalancerFrontendIPConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_LoadBalancerFrontendIPConfigurationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_LoadBalancerFrontendIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerFrontendIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerFrontendIPConfigurationGet.json // this example is just showing the usage of "LoadBalancerFrontendIPConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationResource.cs index e2e4fd94de35..c3a506146aa8 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_FrontendIPConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerFrontendIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerFrontendIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerFrontendIPConfigurationGet.json // this example is just showing the usage of "LoadBalancerFrontendIPConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationCollection.cs index 864fed8e8983..fcf19ed859d1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_HubIPConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubIpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubIpConfigurationGet.json // this example is just showing the usage of "VirtualHubIpConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubIpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubIpConfigurationGet.json // this example is just showing the usage of "VirtualHubIpConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubIpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubIpConfigurationGet.json // this example is just showing the usage of "VirtualHubIpConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VirtualHubIpConfigurationPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubIpConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubIpConfigurationPut.json // this example is just showing the usage of "VirtualHubIpConfiguration_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -171,7 +171,7 @@ public async Task CreateOrUpdate_VirtualHubIpConfigurationPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualHubRouteTableV2List() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubIpConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubIpConfigurationList.json // this example is just showing the usage of "VirtualHubIpConfiguration_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationResource.cs index f2df48735d50..e23b09171f15 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_HubIPConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubIpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubIpConfigurationGet.json // this example is just showing the usage of "VirtualHubIpConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VirtualHubIpConfigurationPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubIpConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubIpConfigurationPut.json // this example is just showing the usage of "VirtualHubIpConfiguration_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Update_VirtualHubIpConfigurationPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VirtualHubIpConfigurationDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubIpConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubIpConfigurationDelete.json // this example is just showing the usage of "VirtualHubIpConfiguration_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableCollection.cs index cee122fa69a4..a90343f9bb69 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_HubRouteTableCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_RouteTablePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubRouteTablePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubRouteTablePut.json // this example is just showing the usage of "HubRouteTables_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -70,7 +70,7 @@ public async Task CreateOrUpdate_RouteTablePut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubRouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubRouteTableGet.json // this example is just showing the usage of "HubRouteTables_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -105,7 +105,7 @@ public async Task Get_RouteTableGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubRouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubRouteTableGet.json // this example is just showing the usage of "HubRouteTables_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -136,7 +136,7 @@ public async Task Exists_RouteTableGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubRouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubRouteTableGet.json // this example is just showing the usage of "HubRouteTables_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -179,7 +179,7 @@ public async Task GetIfExists_RouteTableGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_RouteTableList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubRouteTableList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubRouteTableList.json // this example is just showing the usage of "HubRouteTables_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableResource.cs index a283ad85aacc..bcac96f454fe 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableResource.cs @@ -20,7 +20,7 @@ public partial class Sample_HubRouteTableResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_RouteTablePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubRouteTablePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubRouteTablePut.json // this example is just showing the usage of "HubRouteTables_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -67,7 +67,7 @@ public async Task Update_RouteTablePut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubRouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubRouteTableGet.json // this example is just showing the usage of "HubRouteTables_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -99,7 +99,7 @@ public async Task Get_RouteTableGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_RouteTableDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubRouteTableDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubRouteTableDelete.json // this example is just showing the usage of "HubRouteTables_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionCollection.cs index c7c4f234a41d..408b0058b7a3 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_HubVirtualNetworkConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_HubVirtualNetworkConnectionPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubVirtualNetworkConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubVirtualNetworkConnectionPut.json // this example is just showing the usage of "HubVirtualNetworkConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -109,7 +109,7 @@ public async Task CreateOrUpdate_HubVirtualNetworkConnectionPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_HubVirtualNetworkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubVirtualNetworkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubVirtualNetworkConnectionGet.json // this example is just showing the usage of "HubVirtualNetworkConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -144,7 +144,7 @@ public async Task Get_HubVirtualNetworkConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_HubVirtualNetworkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubVirtualNetworkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubVirtualNetworkConnectionGet.json // this example is just showing the usage of "HubVirtualNetworkConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -175,7 +175,7 @@ public async Task Exists_HubVirtualNetworkConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_HubVirtualNetworkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubVirtualNetworkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubVirtualNetworkConnectionGet.json // this example is just showing the usage of "HubVirtualNetworkConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -218,7 +218,7 @@ public async Task GetIfExists_HubVirtualNetworkConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_HubVirtualNetworkConnectionList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubVirtualNetworkConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubVirtualNetworkConnectionList.json // this example is just showing the usage of "HubVirtualNetworkConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionResource.cs index 9b0860ad2195..d77027938b69 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionResource.cs @@ -21,7 +21,7 @@ public partial class Sample_HubVirtualNetworkConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_HubVirtualNetworkConnectionPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubVirtualNetworkConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubVirtualNetworkConnectionPut.json // this example is just showing the usage of "HubVirtualNetworkConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -106,7 +106,7 @@ public async Task Update_HubVirtualNetworkConnectionPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_HubVirtualNetworkConnectionDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubVirtualNetworkConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubVirtualNetworkConnectionDelete.json // this example is just showing the usage of "HubVirtualNetworkConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,7 +134,7 @@ public async Task Delete_HubVirtualNetworkConnectionDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_HubVirtualNetworkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubVirtualNetworkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubVirtualNetworkConnectionGet.json // this example is just showing the usage of "HubVirtualNetworkConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationCollection.cs index ac5200ec4901..726a7534a32d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_IPAllocationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetIpAllocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpAllocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpAllocationGet.json // this example is just showing the usage of "IpAllocations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetIpAllocation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetIpAllocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpAllocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpAllocationGet.json // this example is just showing the usage of "IpAllocations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetIpAllocation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetIpAllocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpAllocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpAllocationGet.json // this example is just showing the usage of "IpAllocations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_GetIpAllocation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateIpAllocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpAllocationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpAllocationCreate.json // this example is just showing the usage of "IpAllocations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -172,7 +172,7 @@ public async Task CreateOrUpdate_CreateIpAllocation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListIpAllocationsInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpAllocationListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpAllocationListByResourceGroup.json // this example is just showing the usage of "IpAllocations_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationResource.cs index f7ea5faecaf8..6b43966ed220 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationResource.cs @@ -21,7 +21,7 @@ public partial class Sample_IPAllocationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteIpAllocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpAllocationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpAllocationDelete.json // this example is just showing the usage of "IpAllocations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteIpAllocation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetIpAllocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpAllocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpAllocationGet.json // this example is just showing the usage of "IpAllocations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetIpAllocation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateVirtualNetworkTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpAllocationUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpAllocationUpdateTags.json // this example is just showing the usage of "IpAllocations_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_UpdateVirtualNetworkTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIPAllocations_ListAllIpAllocations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpAllocationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpAllocationList.json // this example is just showing the usage of "IpAllocations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupCollection.cs index 9000b983a820..eabfa2e7975a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_IPGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsGet.json // this example is just showing the usage of "IpGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsGet.json // this example is just showing the usage of "IpGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Exists_GetIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsGet.json // this example is just showing the usage of "IpGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpGroupsCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsCreate.json // this example is just showing the usage of "IpGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -173,7 +173,7 @@ public async Task CreateOrUpdate_CreateOrUpdateIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListByResourceGroupIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpGroupsListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsListByResourceGroup.json // this example is just showing the usage of "IpGroups_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupResource.cs index 14bc7bcf9236..c45f64efa49f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupResource.cs @@ -21,7 +21,7 @@ public partial class Sample_IPGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsGet.json // this example is just showing the usage of "IpGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpGroupsUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsUpdateTags.json // this example is just showing the usage of "IpGroups_UpdateGroups" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Update_UpdateIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpGroupsDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsDelete.json // this example is just showing the usage of "IpGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Delete_DeleteIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIPGroups_ListIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpGroupsListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsListBySubscription.json // this example is just showing the usage of "IpGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleCollection.cs index 52344fda5f72..ceddd0893873 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_InboundNatRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_InboundNatRuleList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/InboundNatRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundNatRuleList.json // this example is just showing the usage of "InboundNatRules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_InboundNatRuleList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_InboundNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/InboundNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundNatRuleGet.json // this example is just showing the usage of "InboundNatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Get_InboundNatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_InboundNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/InboundNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundNatRuleGet.json // this example is just showing the usage of "InboundNatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Exists_InboundNatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_InboundNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/InboundNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundNatRuleGet.json // this example is just showing the usage of "InboundNatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task GetIfExists_InboundNatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_InboundNatRuleCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/InboundNatRuleCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundNatRuleCreate.json // this example is just showing the usage of "InboundNatRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleResource.cs index bf1b8c6953a5..128d72a375db 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_InboundNatRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_InboundNatRuleDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/InboundNatRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundNatRuleDelete.json // this example is just showing the usage of "InboundNatRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_InboundNatRuleDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_InboundNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/InboundNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundNatRuleGet.json // this example is just showing the usage of "InboundNatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Get_InboundNatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_InboundNatRuleCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/InboundNatRuleCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundNatRuleCreate.json // this example is just showing the usage of "InboundNatRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerCollection.cs index 90e56ea8240b..bc63c7466c1b 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_LoadBalancerCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetLoadBalancer() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerGet.json // this example is just showing the usage of "LoadBalancers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Get_GetLoadBalancer() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetLoadBalancer() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerGet.json // this example is just showing the usage of "LoadBalancers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_GetLoadBalancer() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetLoadBalancer() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerGet.json // this example is just showing the usage of "LoadBalancers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_GetLoadBalancer() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetLoadBalancerWithInboundNATRulePortMapping() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerGetInboundNatRulePortMapping.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerGetInboundNatRulePortMapping.json // this example is just showing the usage of "LoadBalancers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -162,7 +162,7 @@ public async Task Get_GetLoadBalancerWithInboundNATRulePortMapping() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetLoadBalancerWithInboundNATRulePortMapping() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerGetInboundNatRulePortMapping.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerGetInboundNatRulePortMapping.json // this example is just showing the usage of "LoadBalancers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -192,7 +192,7 @@ public async Task Exists_GetLoadBalancerWithInboundNATRulePortMapping() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetLoadBalancerWithInboundNATRulePortMapping() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerGetInboundNatRulePortMapping.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerGetInboundNatRulePortMapping.json // this example is just showing the usage of "LoadBalancers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -234,7 +234,7 @@ public async Task GetIfExists_GetLoadBalancerWithInboundNATRulePortMapping() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancer() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreate.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -338,7 +338,7 @@ public async Task CreateOrUpdate_CreateLoadBalancer() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancerWithFrontendIPInZone1() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreateWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreateWithZones.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -451,7 +451,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithFrontendIPInZone1() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancerWithGatewayLoadBalancerConsumerConfigured() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreateGatewayLoadBalancerConsumer.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreateGatewayLoadBalancerConsumer.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -561,7 +561,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithGatewayLoadBalancerConsum [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithOneBackendPool() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreateGatewayLoadBalancerProviderWithOneBackendPool.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreateGatewayLoadBalancerProviderWithOneBackendPool.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -679,7 +679,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithGatewayLoadBalancerProvid [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithTwoBackendPool() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreateGatewayLoadBalancerProviderWithTwoBackendPool.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreateGatewayLoadBalancerProviderWithTwoBackendPool.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -787,7 +787,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithGatewayLoadBalancerProvid [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancerWithGlobalTierAndOneRegionalLoadBalancerInItsBackendPool() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreateGlobalTier.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreateGlobalTier.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -886,7 +886,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithGlobalTierAndOneRegionalL [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancerWithStandardSKU() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreateStandardSku.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreateStandardSku.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -995,7 +995,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithStandardSKU() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancerWithSyncModePropertyOnPool() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreateWithSyncModePropertyOnPool.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreateWithSyncModePropertyOnPool.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1106,7 +1106,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithSyncModePropertyOnPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancerWithInboundNatPool() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreateWithInboundNatPool.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreateWithInboundNatPool.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1196,7 +1196,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithInboundNatPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancerWithOutboundRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreateWithOutboundRules.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreateWithOutboundRules.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1319,7 +1319,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithOutboundRules() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListLoadBalancersInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerList.json // this example is just showing the usage of "LoadBalancers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerResource.cs index b2abbfe31820..076cf51f76ab 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerResource.cs @@ -21,7 +21,7 @@ public partial class Sample_LoadBalancerResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteLoadBalancer() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerDelete.json // this example is just showing the usage of "LoadBalancers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteLoadBalancer() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetLoadBalancer() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerGet.json // this example is just showing the usage of "LoadBalancers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetLoadBalancer() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetLoadBalancerWithInboundNATRulePortMapping() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerGetInboundNatRulePortMapping.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerGetInboundNatRulePortMapping.json // this example is just showing the usage of "LoadBalancers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -110,7 +110,7 @@ public async Task Get_GetLoadBalancerWithInboundNATRulePortMapping() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateLoadBalancerTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerUpdateTags.json // this example is just showing the usage of "LoadBalancers_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -149,7 +149,7 @@ public async Task Update_UpdateLoadBalancerTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetLoadBalancers_ListAllLoadBalancers() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerListAll.json // this example is just showing the usage of "LoadBalancers_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -181,7 +181,7 @@ public async Task GetLoadBalancers_ListAllLoadBalancers() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task SwapPublicIPAddressesLoadBalancer_SwapVIPsBetweenTwoLoadBalancers() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancersSwapPublicIpAddresses.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancersSwapPublicIpAddresses.json // this example is just showing the usage of "LoadBalancers_SwapPublicIPAddresses" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -222,7 +222,7 @@ public async Task SwapPublicIPAddressesLoadBalancer_SwapVIPsBetweenTwoLoadBalanc [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task MigrateToIPBased_MigrateLoadBalancerToIPBased() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/MigrateLoadBalancerToIPBased.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/MigrateLoadBalancerToIPBased.json // this example is just showing the usage of "LoadBalancers_MigrateToIPBased" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -256,7 +256,7 @@ public async Task MigrateToIPBased_MigrateLoadBalancerToIPBased() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetLoadBalancerNetworkInterfaces_LoadBalancerNetworkInterfaceListSimple() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerNetworkInterfaceListSimple.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerNetworkInterfaceListSimple.json // this example is just showing the usage of "LoadBalancerNetworkInterfaces_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -290,7 +290,7 @@ public async Task GetLoadBalancerNetworkInterfaces_LoadBalancerNetworkInterfaceL [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetLoadBalancerNetworkInterfaces_LoadBalancerNetworkInterfaceListVmss() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerNetworkInterfaceListVmss.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerNetworkInterfaceListVmss.json // this example is just showing the usage of "LoadBalancerNetworkInterfaces_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleCollection.cs index 223852f4689b..b5e0e9c414e5 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_LoadBalancingRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_LoadBalancerLoadBalancingRuleList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerLoadBalancingRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerLoadBalancingRuleList.json // this example is just showing the usage of "LoadBalancerLoadBalancingRules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_LoadBalancerLoadBalancingRuleList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerLoadBalancingRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerLoadBalancingRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerLoadBalancingRuleGet.json // this example is just showing the usage of "LoadBalancerLoadBalancingRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_LoadBalancerLoadBalancingRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_LoadBalancerLoadBalancingRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerLoadBalancingRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerLoadBalancingRuleGet.json // this example is just showing the usage of "LoadBalancerLoadBalancingRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_LoadBalancerLoadBalancingRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_LoadBalancerLoadBalancingRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerLoadBalancingRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerLoadBalancingRuleGet.json // this example is just showing the usage of "LoadBalancerLoadBalancingRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleResource.cs index 14ea386a1d49..8c6ef70f441d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleResource.cs @@ -19,7 +19,7 @@ public partial class Sample_LoadBalancingRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerLoadBalancingRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerLoadBalancingRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerLoadBalancingRuleGet.json // this example is just showing the usage of "LoadBalancerLoadBalancingRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayCollection.cs index 0f99d7354a63..1add632d97b6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_LocalNetworkGatewayCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLocalNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LocalNetworkGatewayCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LocalNetworkGatewayCreate.json // this example is just showing the usage of "LocalNetworkGateways_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -65,7 +65,7 @@ public async Task CreateOrUpdate_CreateLocalNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetLocalNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LocalNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LocalNetworkGatewayGet.json // this example is just showing the usage of "LocalNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -99,7 +99,7 @@ public async Task Get_GetLocalNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetLocalNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LocalNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LocalNetworkGatewayGet.json // this example is just showing the usage of "LocalNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task Exists_GetLocalNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetLocalNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LocalNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LocalNetworkGatewayGet.json // this example is just showing the usage of "LocalNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -171,7 +171,7 @@ public async Task GetIfExists_GetLocalNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListLocalNetworkGateways() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LocalNetworkGatewayList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LocalNetworkGatewayList.json // this example is just showing the usage of "LocalNetworkGateways_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayResource.cs index 46ff8690daf6..7fa05dee9c9f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayResource.cs @@ -20,7 +20,7 @@ public partial class Sample_LocalNetworkGatewayResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetLocalNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LocalNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LocalNetworkGatewayGet.json // this example is just showing the usage of "LocalNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetLocalNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteLocalNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LocalNetworkGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LocalNetworkGatewayDelete.json // this example is just showing the usage of "LocalNetworkGateways_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteLocalNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateLocalNetworkGatewayTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LocalNetworkGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LocalNetworkGatewayUpdateTags.json // this example is just showing the usage of "LocalNetworkGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionCollection.cs index f61f56ca52c0..653d574c0c8b 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ManagementGroupNetworkManagerConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionManagementGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionManagementGroupPut.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task CreateOrUpdate_CreateOrUpdateManagementGroupNetworkManagerConn [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionManagementGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionManagementGroupGet.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_GetManagementGroupNetworkManagerConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionManagementGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionManagementGroupGet.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task Exists_GetManagementGroupNetworkManagerConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionManagementGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionManagementGroupGet.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task GetIfExists_GetManagementGroupNetworkManagerConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionManagementGroupList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionManagementGroupList.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionResource.cs index d56693795fd5..b3352ae4f9fc 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ManagementGroupNetworkManagerConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionManagementGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionManagementGroupPut.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Update_CreateOrUpdateManagementGroupNetworkManagerConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionManagementGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionManagementGroupGet.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Get_GetManagementGroupNetworkManagerConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionManagementGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionManagementGroupDelete.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayCollection.cs index 0c0f3b4e682f..0ccdf67fbb6f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_NatGatewayCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNatGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatGatewayGet.json // this example is just showing the usage of "NatGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Get_GetNatGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNatGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatGatewayGet.json // this example is just showing the usage of "NatGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_GetNatGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetNatGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatGatewayGet.json // this example is just showing the usage of "NatGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_GetNatGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNatGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatGatewayCreateOrUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatGatewayCreateOrUpdate.json // this example is just showing the usage of "NatGateways_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -182,7 +182,7 @@ public async Task CreateOrUpdate_CreateNatGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListNatGatewaysInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatGatewayList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatGatewayList.json // this example is just showing the usage of "NatGateways_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayResource.cs index 895aded818b8..84fa18f197f6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NatGatewayResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNatGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatGatewayDelete.json // this example is just showing the usage of "NatGateways_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteNatGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNatGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatGatewayGet.json // this example is just showing the usage of "NatGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetNatGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateNatGatewayTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatGatewayUpdateTags.json // this example is just showing the usage of "NatGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_UpdateNatGatewayTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNatGateways_ListAllNatGateways() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatGatewayListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatGatewayListAll.json // this example is just showing the usage of "NatGateways_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupCollection.cs index 493689fced54..93f54430648f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupCollection.cs @@ -9,6 +9,7 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Identity; +using Azure.ResourceManager.Network.Models; namespace Azure.ResourceManager.Network.Samples { @@ -19,7 +20,7 @@ public partial class Sample_NetworkGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkGroupsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGroupGet.json // this example is just showing the usage of "NetworkGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +55,7 @@ public async Task Get_NetworkGroupsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_NetworkGroupsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGroupGet.json // this example is just showing the usage of "NetworkGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +86,7 @@ public async Task Exists_NetworkGroupsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_NetworkGroupsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGroupGet.json // this example is just showing the usage of "NetworkGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +129,7 @@ public async Task GetIfExists_NetworkGroupsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_NetworkGroupsPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGroupPut.json // this example is just showing the usage of "NetworkGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -152,6 +153,7 @@ public async Task CreateOrUpdate_NetworkGroupsPut() NetworkGroupData data = new NetworkGroupData() { Description = "A sample group", + MemberType = GroupMemberType.VirtualNetwork, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, networkGroupName, data); NetworkGroupResource result = lro.Value; @@ -168,7 +170,7 @@ public async Task CreateOrUpdate_NetworkGroupsPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_NetworkGroupsList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerGroupList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGroupList.json // this example is just showing the usage of "NetworkGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupResource.cs index b544fc8be4ac..f781e60c412c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupResource.cs @@ -9,6 +9,7 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Identity; +using Azure.ResourceManager.Network.Models; namespace Azure.ResourceManager.Network.Samples { @@ -19,7 +20,7 @@ public partial class Sample_NetworkGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkGroupsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGroupGet.json // this example is just showing the usage of "NetworkGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +52,7 @@ public async Task Get_NetworkGroupsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_NetworkGroupsPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGroupPut.json // this example is just showing the usage of "NetworkGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -72,6 +73,7 @@ public async Task Update_NetworkGroupsPut() NetworkGroupData data = new NetworkGroupData() { Description = "A sample group", + MemberType = GroupMemberType.VirtualNetwork, }; ArmOperation lro = await networkGroup.UpdateAsync(WaitUntil.Completed, data); NetworkGroupResource result = lro.Value; @@ -88,7 +90,7 @@ public async Task Update_NetworkGroupsPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_NetworkGroupsDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGroupDelete.json // this example is just showing the usage of "NetworkGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberCollection.cs index e9d504f463fe..41652780d5b0 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkGroupStaticMemberCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_StaticMembersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerStaticMemberGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerStaticMemberGet.json // this example is just showing the usage of "StaticMembers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_StaticMembersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_StaticMembersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerStaticMemberGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerStaticMemberGet.json // this example is just showing the usage of "StaticMembers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_StaticMembersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_StaticMembersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerStaticMemberGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerStaticMemberGet.json // this example is just showing the usage of "StaticMembers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task GetIfExists_StaticMembersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_StaticMemberPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerStaticMemberPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerStaticMemberPut.json // this example is just showing the usage of "StaticMembers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -172,7 +172,7 @@ public async Task CreateOrUpdate_StaticMemberPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_StaticMembersList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerStaticMemberList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerStaticMemberList.json // this example is just showing the usage of "StaticMembers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberResource.cs index 9908b6a2b8cf..a9805ade428e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberResource.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkGroupStaticMemberResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_StaticMembersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerStaticMemberGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerStaticMemberGet.json // this example is just showing the usage of "StaticMembers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_StaticMembersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_StaticMemberPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerStaticMemberPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerStaticMemberPut.json // this example is just showing the usage of "StaticMembers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Update_StaticMemberPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_StaticMembersDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerStaticMemberDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerStaticMemberDelete.json // this example is just showing the usage of "StaticMembers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceCollection.cs index 60bdfd29dde2..f8e194097841 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkInterfaceCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkInterface() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceGet.json // this example is just showing the usage of "NetworkInterfaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetNetworkInterface() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkInterface() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceGet.json // this example is just showing the usage of "NetworkInterfaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Exists_GetNetworkInterface() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetNetworkInterface() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceGet.json // this example is just showing the usage of "NetworkInterfaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetNetworkInterface() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkInterface() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceCreate.json // this example is just showing the usage of "NetworkInterfaces_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -186,7 +186,7 @@ public async Task CreateOrUpdate_CreateNetworkInterface() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkInterfaceWithGatewayLoadBalancerConsumerConfigured() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceCreateGatewayLoadBalancerConsumer.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceCreateGatewayLoadBalancerConsumer.json // this example is just showing the usage of "NetworkInterfaces_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -242,7 +242,7 @@ public async Task CreateOrUpdate_CreateNetworkInterfaceWithGatewayLoadBalancerCo [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListNetworkInterfacesInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceList.json // this example is just showing the usage of "NetworkInterfaces_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationCollection.cs index e7842483a0fa..ca49449a2680 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkInterfaceIPConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_NetworkInterfaceIPConfigurationList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceIPConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceIPConfigurationList.json // this example is just showing the usage of "NetworkInterfaceIPConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_NetworkInterfaceIPConfigurationList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkInterfaceIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceIPConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceIPConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_NetworkInterfaceIPConfigurationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_NetworkInterfaceIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceIPConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceIPConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_NetworkInterfaceIPConfigurationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_NetworkInterfaceIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceIPConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceIPConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationResource.cs index 392cb1bf11a4..254ecd2e13fc 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkInterfaceIPConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkInterfaceIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceIPConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceIPConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceResource.cs index f527708eb82c..07bc8037f9f3 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkInterfaceResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNetworkInterface() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceDelete.json // this example is just showing the usage of "NetworkInterfaces_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteNetworkInterface() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkInterface() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceGet.json // this example is just showing the usage of "NetworkInterfaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetNetworkInterface() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateNetworkInterfaceTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceUpdateTags.json // this example is just showing the usage of "NetworkInterfaces_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_UpdateNetworkInterfaceTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkInterfaces_ListAllNetworkInterfaces() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceListAll.json // this example is just showing the usage of "NetworkInterfaces_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -150,7 +150,7 @@ public async Task GetNetworkInterfaces_ListAllNetworkInterfaces() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetEffectiveRouteTable_ShowNetworkInterfaceEffectiveRouteTables() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceEffectiveRouteTableList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceEffectiveRouteTableList.json // this example is just showing the usage of "NetworkInterfaces_GetEffectiveRouteTable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task GetEffectiveRouteTable_ShowNetworkInterfaceEffectiveRouteTable [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetEffectiveNetworkSecurityGroups_ListNetworkInterfaceEffectiveNetworkSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceEffectiveNSGList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceEffectiveNSGList.json // this example is just showing the usage of "NetworkInterfaces_ListEffectiveNetworkSecurityGroups" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -206,7 +206,7 @@ public async Task GetEffectiveNetworkSecurityGroups_ListNetworkInterfaceEffectiv [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkInterfaceLoadBalancers_NetworkInterfaceLoadBalancerList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceLoadBalancerList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceLoadBalancerList.json // this example is just showing the usage of "NetworkInterfaceLoadBalancers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationCollection.cs index b377d453f451..f04187887a17 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkInterfaceTapConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkInterfaceTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceTapConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceTapConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetNetworkInterfaceTapConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkInterfaceTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceTapConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceTapConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetNetworkInterfaceTapConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetNetworkInterfaceTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceTapConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceTapConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_GetNetworkInterfaceTapConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkInterfaceTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceTapConfigurationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceTapConfigurationCreate.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -171,7 +171,7 @@ public async Task CreateOrUpdate_CreateNetworkInterfaceTapConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListVirtualNetworkTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceTapConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceTapConfigurationList.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationResource.cs index 27599e7db2bf..64b6bc48b66c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkInterfaceTapConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteTapConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceTapConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceTapConfigurationDelete.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -47,7 +47,7 @@ public async Task Delete_DeleteTapConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkInterfaceTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceTapConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceTapConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetNetworkInterfaceTapConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateNetworkInterfaceTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceTapConfigurationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceTapConfigurationCreate.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerCollection.cs index afa0ff873fb4..c97e9a6dd818 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkManagerCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkManagersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGet.json // this example is just showing the usage of "NetworkManagers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_NetworkManagersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_NetworkManagersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGet.json // this example is just showing the usage of "NetworkManagers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_NetworkManagersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_NetworkManagersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGet.json // this example is just showing the usage of "NetworkManagers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_NetworkManagersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_PutNetworkManager() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerPut.json // this example is just showing the usage of "NetworkManagers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -181,7 +181,7 @@ public async Task CreateOrUpdate_PutNetworkManager() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListNetworkManager() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerList.json // this example is just showing the usage of "NetworkManagers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerResource.cs index be96f0abd083..45941094fc8f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkManagerResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetActiveConnectivityConfigurations_ListActiveConnectivityConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerActiveConnectivityConfigurationsList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerActiveConnectivityConfigurationsList.json // this example is just showing the usage of "ListActiveConnectivityConfigurations" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task GetActiveConnectivityConfigurations_ListActiveConnectivityConf [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetActiveSecurityAdminRules_ListActiveSecurityAdminRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerActiveSecurityAdminRulesList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerActiveSecurityAdminRulesList.json // this example is just showing the usage of "ListActiveSecurityAdminRules" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task GetActiveSecurityAdminRules_ListActiveSecurityAdminRules() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkManagersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGet.json // this example is just showing the usage of "NetworkManagers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task Get_NetworkManagersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_NetworkManagersDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerDelete.json // this example is just showing the usage of "NetworkManagers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -156,7 +156,7 @@ public async Task Delete_NetworkManagersDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_NetworkManagesPatch() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerPatch.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerPatch.json // this example is just showing the usage of "NetworkManagers_Patch" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -195,7 +195,7 @@ public async Task Update_NetworkManagesPatch() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkManagers_NetworkManagersList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerListAll.json // this example is just showing the usage of "NetworkManagers_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -227,7 +227,7 @@ public async Task GetNetworkManagers_NetworkManagersList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task PostNetworkManagerCommit_NetworkManageCommitPost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerCommitPost.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerCommitPost.json // this example is just showing the usage of "NetworkManagerCommits_Post" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -265,7 +265,7 @@ public async Task PostNetworkManagerCommit_NetworkManageCommitPost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkManagerDeploymentStatus_NetworkManagerDeploymentStatusList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerDeploymentStatusList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerDeploymentStatusList.json // this example is just showing the usage of "NetworkManagerDeploymentStatus_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingConfigurationCollection.cs new file mode 100644 index 000000000000..68b008a732c5 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingConfigurationCollection.cs @@ -0,0 +1,203 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_NetworkManagerRoutingConfigurationCollection + { + // List routing configurations in a network manager + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListRoutingConfigurationsInANetworkManager() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingConfigurationList.json + // this example is just showing the usage of "NetworkManagerRoutingConfigurations_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this NetworkManagerRoutingConfigurationResource + NetworkManagerRoutingConfigurationCollection collection = networkManager.GetNetworkManagerRoutingConfigurations(); + + // invoke the operation and iterate over the result + await foreach (NetworkManagerRoutingConfigurationResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + NetworkManagerRoutingConfigurationData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get routing configurations + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRoutingConfigurations() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingConfigurationGet.json + // this example is just showing the usage of "NetworkManagerRoutingConfigurations_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this NetworkManagerRoutingConfigurationResource + NetworkManagerRoutingConfigurationCollection collection = networkManager.GetNetworkManagerRoutingConfigurations(); + + // invoke the operation + string configurationName = "myTestRoutingConfig"; + NetworkManagerRoutingConfigurationResource result = await collection.GetAsync(configurationName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + NetworkManagerRoutingConfigurationData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get routing configurations + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetRoutingConfigurations() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingConfigurationGet.json + // this example is just showing the usage of "NetworkManagerRoutingConfigurations_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this NetworkManagerRoutingConfigurationResource + NetworkManagerRoutingConfigurationCollection collection = networkManager.GetNetworkManagerRoutingConfigurations(); + + // invoke the operation + string configurationName = "myTestRoutingConfig"; + bool result = await collection.ExistsAsync(configurationName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Get routing configurations + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetIfExists_GetRoutingConfigurations() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingConfigurationGet.json + // this example is just showing the usage of "NetworkManagerRoutingConfigurations_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this NetworkManagerRoutingConfigurationResource + NetworkManagerRoutingConfigurationCollection collection = networkManager.GetNetworkManagerRoutingConfigurations(); + + // invoke the operation + string configurationName = "myTestRoutingConfig"; + NullableResponse response = await collection.GetIfExistsAsync(configurationName); + NetworkManagerRoutingConfigurationResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine($"Succeeded with null as result"); + } + else + { + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + NetworkManagerRoutingConfigurationData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + // Create network manager routing configuration + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateNetworkManagerRoutingConfiguration() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingConfigurationPut.json + // this example is just showing the usage of "NetworkManagerRoutingConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this NetworkManagerRoutingConfigurationResource + NetworkManagerRoutingConfigurationCollection collection = networkManager.GetNetworkManagerRoutingConfigurations(); + + // invoke the operation + string configurationName = "myTestRoutingConfig"; + NetworkManagerRoutingConfigurationData data = new NetworkManagerRoutingConfigurationData() + { + Description = "A sample policy", + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, configurationName, data); + NetworkManagerRoutingConfigurationResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + NetworkManagerRoutingConfigurationData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingConfigurationResource.cs new file mode 100644 index 000000000000..ed5659eb894e --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingConfigurationResource.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_NetworkManagerRoutingConfigurationResource + { + // Get routing configurations + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRoutingConfigurations() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingConfigurationGet.json + // this example is just showing the usage of "NetworkManagerRoutingConfigurations_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkManagerRoutingConfigurationResource created on azure + // for more information of creating NetworkManagerRoutingConfigurationResource, please refer to the document of NetworkManagerRoutingConfigurationResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestRoutingConfig"; + ResourceIdentifier networkManagerRoutingConfigurationResourceId = NetworkManagerRoutingConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName); + NetworkManagerRoutingConfigurationResource networkManagerRoutingConfiguration = client.GetNetworkManagerRoutingConfigurationResource(networkManagerRoutingConfigurationResourceId); + + // invoke the operation + NetworkManagerRoutingConfigurationResource result = await networkManagerRoutingConfiguration.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + NetworkManagerRoutingConfigurationData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create network manager routing configuration + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateNetworkManagerRoutingConfiguration() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingConfigurationPut.json + // this example is just showing the usage of "NetworkManagerRoutingConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkManagerRoutingConfigurationResource created on azure + // for more information of creating NetworkManagerRoutingConfigurationResource, please refer to the document of NetworkManagerRoutingConfigurationResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestRoutingConfig"; + ResourceIdentifier networkManagerRoutingConfigurationResourceId = NetworkManagerRoutingConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName); + NetworkManagerRoutingConfigurationResource networkManagerRoutingConfiguration = client.GetNetworkManagerRoutingConfigurationResource(networkManagerRoutingConfigurationResourceId); + + // invoke the operation + NetworkManagerRoutingConfigurationData data = new NetworkManagerRoutingConfigurationData() + { + Description = "A sample policy", + }; + ArmOperation lro = await networkManagerRoutingConfiguration.UpdateAsync(WaitUntil.Completed, data); + NetworkManagerRoutingConfigurationResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + NetworkManagerRoutingConfigurationData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Delete network manager routing configuration + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteNetworkManagerRoutingConfiguration() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingConfigurationDelete.json + // this example is just showing the usage of "NetworkManagerRoutingConfigurations_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkManagerRoutingConfigurationResource created on azure + // for more information of creating NetworkManagerRoutingConfigurationResource, please refer to the document of NetworkManagerRoutingConfigurationResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestRoutingConfig"; + ResourceIdentifier networkManagerRoutingConfigurationResourceId = NetworkManagerRoutingConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName); + NetworkManagerRoutingConfigurationResource networkManagerRoutingConfiguration = client.GetNetworkManagerRoutingConfigurationResource(networkManagerRoutingConfigurationResourceId); + + // invoke the operation + await networkManagerRoutingConfiguration.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionCollection.cs index 96debba14b87..d2bbcfafdf3e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkPrivateEndpointConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateEndPointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetPrivateEndPointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPrivateEndPointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_GetPrivateEndPointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetPrivateEndPointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_GetPrivateEndPointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ApproveOrRejectPrivateEndPointConnectionForAPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_UpdatePrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -174,7 +174,7 @@ public async Task CreateOrUpdate_ApproveOrRejectPrivateEndPointConnectionForAPri [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPrivateLinkServiceInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceListPrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceListPrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_ListPrivateEndpointConnections" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionResource.cs index 7967129229b7..99980ead3c9c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkPrivateEndpointConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateEndPointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetPrivateEndPointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ApproveOrRejectPrivateEndPointConnectionForAPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_UpdatePrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Update_ApproveOrRejectPrivateEndPointConnectionForAPrivateLink [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletePrivateEndPointConnectionForAPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceDeletePrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceDeletePrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_DeletePrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileCollection.cs index b31603ca7e39..5ff174ce1708 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkProfileCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileGetConfigOnly.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileGetConfigOnly.json // this example is just showing the usage of "NetworkProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetNetworkProfile() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileGetConfigOnly.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileGetConfigOnly.json // this example is just showing the usage of "NetworkProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetNetworkProfile() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetNetworkProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileGetConfigOnly.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileGetConfigOnly.json // this example is just showing the usage of "NetworkProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_GetNetworkProfile() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkProfileWithContainerNetworkInterfaces() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileGetWithContainerNic.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileGetWithContainerNic.json // this example is just showing the usage of "NetworkProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task Get_GetNetworkProfileWithContainerNetworkInterfaces() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkProfileWithContainerNetworkInterfaces() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileGetWithContainerNic.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileGetWithContainerNic.json // this example is just showing the usage of "NetworkProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -191,7 +191,7 @@ public async Task Exists_GetNetworkProfileWithContainerNetworkInterfaces() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetNetworkProfileWithContainerNetworkInterfaces() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileGetWithContainerNic.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileGetWithContainerNic.json // this example is just showing the usage of "NetworkProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -233,7 +233,7 @@ public async Task GetIfExists_GetNetworkProfileWithContainerNetworkInterfaces() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkProfileDefaults() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileCreateConfigOnly.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileCreateConfigOnly.json // this example is just showing the usage of "NetworkProfiles_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -290,7 +290,7 @@ public async Task CreateOrUpdate_CreateNetworkProfileDefaults() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListResourceGroupNetworkProfiles() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileList.json // this example is just showing the usage of "NetworkProfiles_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileResource.cs index 9ff6b22ed54a..d28c8d44f0da 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkProfileResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNetworkProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileDelete.json // this example is just showing the usage of "NetworkProfiles_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteNetworkProfile() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileGetConfigOnly.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileGetConfigOnly.json // this example is just showing the usage of "NetworkProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetNetworkProfile() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkProfileWithContainerNetworkInterfaces() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileGetWithContainerNic.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileGetWithContainerNic.json // this example is just showing the usage of "NetworkProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -110,7 +110,7 @@ public async Task Get_GetNetworkProfileWithContainerNetworkInterfaces() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateNetworkProfileTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileUpdateTags.json // this example is just showing the usage of "NetworkProfiles_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -149,7 +149,7 @@ public async Task Update_UpdateNetworkProfileTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkProfiles_ListAllNetworkProfiles() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileListAll.json // this example is just showing the usage of "NetworkProfiles_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupCollection.cs index 1d1725fd6032..3fe3c1e64a20 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkSecurityGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupGet.json // this example is just showing the usage of "NetworkSecurityGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupGet.json // this example is just showing the usage of "NetworkSecurityGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupGet.json // this example is just showing the usage of "NetworkSecurityGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_GetNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupCreate.json // this example is just showing the usage of "NetworkSecurityGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task CreateOrUpdate_CreateNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkSecurityGroupWithRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupCreateWithRule.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupCreateWithRule.json // this example is just showing the usage of "NetworkSecurityGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -220,7 +220,7 @@ public async Task CreateOrUpdate_CreateNetworkSecurityGroupWithRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListNetworkSecurityGroupsInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupList.json // this example is just showing the usage of "NetworkSecurityGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupResource.cs index 2628b2567396..451cc22335d7 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkSecurityGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupDelete.json // this example is just showing the usage of "NetworkSecurityGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupGet.json // this example is just showing the usage of "NetworkSecurityGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateNetworkSecurityGroupTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupUpdateTags.json // this example is just showing the usage of "NetworkSecurityGroups_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_UpdateNetworkSecurityGroupTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkSecurityGroups_ListAllNetworkSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupListAll.json // this example is just showing the usage of "NetworkSecurityGroups_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceCollection.cs index f320488285be..ee7ceb08d804 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_NetworkVirtualApplianceCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceGet.json // this example is just showing the usage of "NetworkVirtualAppliances_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetNetworkVirtualAppliance() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceGet.json // this example is just showing the usage of "NetworkVirtualAppliances_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_GetNetworkVirtualAppliance() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceGet.json // this example is just showing the usage of "NetworkVirtualAppliances_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_GetNetworkVirtualAppliance() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualAppliancePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualAppliancePut.json // this example is just showing the usage of "NetworkVirtualAppliances_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -244,7 +244,7 @@ public async Task CreateOrUpdate_CreateNetworkVirtualAppliance() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateSaaSNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSaaSPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSaaSPut.json // this example is just showing the usage of "NetworkVirtualAppliances_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -292,7 +292,7 @@ public async Task CreateOrUpdate_CreateSaaSNetworkVirtualAppliance() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllNetworkVirtualApplianceForAGivenResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceListByResourceGroup.json // this example is just showing the usage of "NetworkVirtualAppliances_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionCollection.cs index 8be2325f1c9e..f9aff5ecb5a6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkVirtualApplianceConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_NetworkVirtualApplianceConnectionPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceConnectionPut.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task CreateOrUpdate_NetworkVirtualApplianceConnectionPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkVirtualApplianceConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceConnectionGet.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -124,7 +124,7 @@ public async Task Get_NetworkVirtualApplianceConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_NetworkVirtualApplianceConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceConnectionGet.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -155,7 +155,7 @@ public async Task Exists_NetworkVirtualApplianceConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_NetworkVirtualApplianceConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceConnectionGet.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -198,7 +198,7 @@ public async Task GetIfExists_NetworkVirtualApplianceConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_NetworkVirtualApplianceConnectionList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceConnectionList.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionResource.cs index e309659b3f07..db318f30491d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkVirtualApplianceConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_NetworkVirtualApplianceConnectionPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceConnectionPut.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Update_NetworkVirtualApplianceConnectionPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkVirtualApplianceConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceConnectionGet.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Get_NetworkVirtualApplianceConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_NetworkVirtualApplianceConnectionDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceConnectionDelete.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceResource.cs index 456a23690f7b..2d2c46296269 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkVirtualApplianceResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceDelete.json // this example is just showing the usage of "NetworkVirtualAppliances_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteNetworkVirtualAppliance() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceGet.json // this example is just showing the usage of "NetworkVirtualAppliances_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetNetworkVirtualAppliance() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceUpdateTags.json // this example is just showing the usage of "NetworkVirtualAppliances_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_UpdateNetworkVirtualAppliance() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Restart_RestartAllNetworkVirtualApplianceVMsInVMScaleSet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceEmptyRestart.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceEmptyRestart.json // this example is just showing the usage of "NetworkVirtualAppliances_Restart" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -135,9 +135,10 @@ public async Task Restart_RestartAllNetworkVirtualApplianceVMsInVMScaleSet() NetworkVirtualApplianceResource networkVirtualAppliance = client.GetNetworkVirtualApplianceResource(networkVirtualApplianceResourceId); // invoke the operation - await networkVirtualAppliance.RestartAsync(); + ArmOperation lro = await networkVirtualAppliance.RestartAsync(WaitUntil.Completed); + NetworkVirtualApplianceInstanceIds result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // Restart Specific NetworkVirtualAppliance VMs in VM Scale Set @@ -145,7 +146,7 @@ public async Task Restart_RestartAllNetworkVirtualApplianceVMsInVMScaleSet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Restart_RestartSpecificNetworkVirtualApplianceVMsInVMScaleSet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSpecificRestart.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSpecificRestart.json // this example is just showing the usage of "NetworkVirtualAppliances_Restart" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -162,9 +163,10 @@ public async Task Restart_RestartSpecificNetworkVirtualApplianceVMsInVMScaleSet( NetworkVirtualApplianceResource networkVirtualAppliance = client.GetNetworkVirtualApplianceResource(networkVirtualApplianceResourceId); // invoke the operation - await networkVirtualAppliance.RestartAsync(); + ArmOperation lro = await networkVirtualAppliance.RestartAsync(WaitUntil.Completed); + NetworkVirtualApplianceInstanceIds result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // List all Network Virtual Appliances for a given subscription @@ -172,7 +174,7 @@ public async Task Restart_RestartSpecificNetworkVirtualApplianceVMsInVMScaleSet( [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkVirtualAppliances_ListAllNetworkVirtualAppliancesForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceListBySubscription.json // this example is just showing the usage of "NetworkVirtualAppliances_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -204,7 +206,7 @@ public async Task GetNetworkVirtualAppliances_ListAllNetworkVirtualAppliancesFor [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdateInboundSecurityRule_CreateNetworkVirtualApplianceInboundSecurityRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/InboundSecurityRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundSecurityRulePut.json // this example is just showing the usage of "InboundSecurityRule_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuCollection.cs index ece7275b0d95..1922cd459f50 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkVirtualApplianceSkuCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_NetworkVirtualApplianceSkuListResult() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSkuList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSkuList.json // this example is just showing the usage of "VirtualApplianceSkus_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task GetAll_NetworkVirtualApplianceSkuListResult() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkVirtualApplianceSkuGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSkuGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSkuGet.json // this example is just showing the usage of "VirtualApplianceSkus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Get_NetworkVirtualApplianceSkuGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_NetworkVirtualApplianceSkuGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSkuGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSkuGet.json // this example is just showing the usage of "VirtualApplianceSkus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -117,7 +117,7 @@ public async Task Exists_NetworkVirtualApplianceSkuGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_NetworkVirtualApplianceSkuGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSkuGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSkuGet.json // this example is just showing the usage of "VirtualApplianceSkus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuResource.cs index a7b3ac859b54..4e24b2b7d92e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuResource.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkVirtualApplianceSkuResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkVirtualApplianceSkuGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSkuGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSkuGet.json // this example is just showing the usage of "VirtualApplianceSkus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherCollection.cs index 74e32c50dd1a..f043b615e71f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkWatcherCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkWatcher() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherCreate.json // this example is just showing the usage of "NetworkWatchers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task CreateOrUpdate_CreateNetworkWatcher() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkWatcher() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherGet.json // this example is just showing the usage of "NetworkWatchers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetNetworkWatcher() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkWatcher() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherGet.json // this example is just showing the usage of "NetworkWatchers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Exists_GetNetworkWatcher() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetNetworkWatcher() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherGet.json // this example is just showing the usage of "NetworkWatchers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -165,7 +165,7 @@ public async Task GetIfExists_GetNetworkWatcher() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListNetworkWatchers() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherList.json // this example is just showing the usage of "NetworkWatchers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherResource.cs index a6c856f60aea..3fd801c37ec6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkWatcherResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkWatcher() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherGet.json // this example is just showing the usage of "NetworkWatchers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetNetworkWatcher() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNetworkWatcher() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherDelete.json // this example is just showing the usage of "NetworkWatchers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Delete_DeleteNetworkWatcher() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateNetworkWatcherTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherUpdateTags.json // this example is just showing the usage of "NetworkWatchers_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_UpdateNetworkWatcherTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkWatchers_ListAllNetworkWatchers() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherListAll.json // this example is just showing the usage of "NetworkWatchers_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -150,7 +150,7 @@ public async Task GetNetworkWatchers_ListAllNetworkWatchers() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetTopology_GetTopology() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherTopologyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherTopologyGet.json // this example is just showing the usage of "NetworkWatchers_GetTopology" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -181,7 +181,7 @@ public async Task GetTopology_GetTopology() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task VerifyIPFlow_IpFlowVerify() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherIpFlowVerify.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherIpFlowVerify.json // this example is just showing the usage of "NetworkWatchers_VerifyIPFlow" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -210,7 +210,7 @@ public async Task VerifyIPFlow_IpFlowVerify() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNextHop_GetNextHop() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherNextHopGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherNextHopGet.json // this example is just showing the usage of "NetworkWatchers_GetNextHop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -242,7 +242,7 @@ public async Task GetNextHop_GetNextHop() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVmSecurityRules_GetSecurityGroupView() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherSecurityGroupViewGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherSecurityGroupViewGet.json // this example is just showing the usage of "NetworkWatchers_GetVmSecurityRules" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -271,7 +271,7 @@ public async Task GetVmSecurityRules_GetSecurityGroupView() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetTroubleshooting_GetTroubleshooting() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherTroubleshootGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherTroubleshootGet.json // this example is just showing the usage of "NetworkWatchers_GetTroubleshooting" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -300,7 +300,7 @@ public async Task GetTroubleshooting_GetTroubleshooting() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetTroubleshootingResult_GetTroubleshootResult() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherTroubleshootResultQuery.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherTroubleshootResultQuery.json // this example is just showing the usage of "NetworkWatchers_GetTroubleshootingResult" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -329,7 +329,7 @@ public async Task GetTroubleshootingResult_GetTroubleshootResult() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task SetFlowLogConfiguration_ConfigureFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherFlowLogConfigure.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogConfigure.json // this example is just showing the usage of "NetworkWatchers_SetFlowLogConfiguration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -358,7 +358,7 @@ public async Task SetFlowLogConfiguration_ConfigureFlowLog() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetFlowLogStatus_GetFlowLogStatus() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherFlowLogStatusQuery.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogStatusQuery.json // this example is just showing the usage of "NetworkWatchers_GetFlowLogStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -387,7 +387,7 @@ public async Task GetFlowLogStatus_GetFlowLogStatus() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckConnectivity_CheckConnectivity() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectivityCheck.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectivityCheck.json // this example is just showing the usage of "NetworkWatchers_CheckConnectivity" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -423,7 +423,7 @@ public async Task CheckConnectivity_CheckConnectivity() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAzureReachabilityReport_GetAzureReachabilityReport() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherAzureReachabilityReportGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherAzureReachabilityReportGet.json // this example is just showing the usage of "NetworkWatchers_GetAzureReachabilityReport" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -465,7 +465,7 @@ public async Task GetAzureReachabilityReport_GetAzureReachabilityReport() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableProviders_GetAvailableProvidersList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherAvailableProvidersListGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherAvailableProvidersListGet.json // this example is just showing the usage of "NetworkWatchers_ListAvailableProviders" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -503,7 +503,7 @@ public async Task GetAvailableProviders_GetAvailableProvidersList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkConfigurationDiagnostic_NetworkConfigurationDiagnostic() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherNetworkConfigurationDiagnostic.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherNetworkConfigurationDiagnostic.json // this example is just showing the usage of "NetworkWatchers_GetNetworkConfigurationDiagnostic" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleCollection.cs index c9ea3b563f04..c12630d0552a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_OutboundRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_LoadBalancerOutboundRuleList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerOutboundRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerOutboundRuleList.json // this example is just showing the usage of "LoadBalancerOutboundRules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_LoadBalancerOutboundRuleList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerOutboundRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerOutboundRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerOutboundRuleGet.json // this example is just showing the usage of "LoadBalancerOutboundRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_LoadBalancerOutboundRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_LoadBalancerOutboundRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerOutboundRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerOutboundRuleGet.json // this example is just showing the usage of "LoadBalancerOutboundRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_LoadBalancerOutboundRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_LoadBalancerOutboundRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerOutboundRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerOutboundRuleGet.json // this example is just showing the usage of "LoadBalancerOutboundRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleResource.cs index 3d49725329f9..2f2f4a5cacc6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleResource.cs @@ -19,7 +19,7 @@ public partial class Sample_OutboundRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerOutboundRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerOutboundRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerOutboundRuleGet.json // this example is just showing the usage of "LoadBalancerOutboundRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayCollection.cs index 339e743a7246..b5d2ce64877e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_P2SVpnGatewayCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_P2SVpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayGet.json // this example is just showing the usage of "P2sVpnGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Get_P2SVpnGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_P2SVpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayGet.json // this example is just showing the usage of "P2sVpnGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_P2SVpnGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_P2SVpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayGet.json // this example is just showing the usage of "P2sVpnGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_P2SVpnGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_P2SVpnGatewayPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayPut.json // this example is just showing the usage of "P2sVpnGateways_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -221,7 +221,7 @@ public async Task CreateOrUpdate_P2SVpnGatewayPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_P2SVpnGatewayListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayListByResourceGroup.json // this example is just showing the usage of "P2sVpnGateways_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayResource.cs index 0b529c71da80..6ee8c3af8c27 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayResource.cs @@ -21,7 +21,7 @@ public partial class Sample_P2SVpnGatewayResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_P2SVpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayGet.json // this example is just showing the usage of "P2sVpnGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_P2SVpnGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_P2SVpnGatewayUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayUpdateTags.json // this example is just showing the usage of "P2sVpnGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Update_P2SVpnGatewayUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_P2SVpnGatewayDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayDelete.json // this example is just showing the usage of "P2sVpnGateways_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Delete_P2SVpnGatewayDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetP2SVpnGateways_P2SVpnGatewayListBySubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayList.json // this example is just showing the usage of "P2sVpnGateways_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -151,7 +151,7 @@ public async Task GetP2SVpnGateways_P2SVpnGatewayListBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Reset_ResetP2SVpnGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayReset.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayReset.json // this example is just showing the usage of "P2SVpnGateways_Reset" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -183,7 +183,7 @@ public async Task Reset_ResetP2SVpnGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GenerateVpnProfile_GenerateP2SVpnGatewayVPNProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayGenerateVpnProfile.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayGenerateVpnProfile.json // this example is just showing the usage of "P2sVpnGateways_GenerateVpnProfile" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -215,7 +215,7 @@ public async Task GenerateVpnProfile_GenerateP2SVpnGatewayVPNProfile() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetP2SVpnConnectionHealth_P2SVpnGatewayGetConnectionHealth() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayGetConnectionHealth.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayGetConnectionHealth.json // this example is just showing the usage of "P2sVpnGateways_GetP2SVpnConnectionHealth" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -247,7 +247,7 @@ public async Task GetP2SVpnConnectionHealth_P2SVpnGatewayGetConnectionHealth() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetP2SVpnConnectionHealthDetailed_P2SVpnGatewayGetConnectionHealthDetailed() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayGetConnectionHealthDetailed.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayGetConnectionHealthDetailed.json // this example is just showing the usage of "P2sVpnGateways_GetP2SVpnConnectionHealthDetailed" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -283,7 +283,7 @@ public async Task GetP2SVpnConnectionHealthDetailed_P2SVpnGatewayGetConnectionHe [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task DisconnectP2SVpnConnections_DisconnectVpnConnectionsFromP2sVpnGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2sVpnGatewaysDisconnectP2sVpnConnections.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2sVpnGatewaysDisconnectP2sVpnConnections.json // this example is just showing the usage of "P2sVpnGateways_DisconnectP2SVpnConnections" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureCollection.cs index f38d7f66ecf9..ecaad128fd9f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_PacketCaptureCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherPacketCaptureCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCaptureCreate.json // this example is just showing the usage of "PacketCaptures_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,7 +76,7 @@ public async Task CreateOrUpdate_CreatePacketCapture() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherPacketCaptureGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCaptureGet.json // this example is just showing the usage of "PacketCaptures_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,7 +111,7 @@ public async Task Get_GetPacketCapture() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherPacketCaptureGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCaptureGet.json // this example is just showing the usage of "PacketCaptures_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -142,7 +142,7 @@ public async Task Exists_GetPacketCapture() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetPacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherPacketCaptureGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCaptureGet.json // this example is just showing the usage of "PacketCaptures_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -185,7 +185,7 @@ public async Task GetIfExists_GetPacketCapture() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPacketCaptures() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherPacketCapturesList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCapturesList.json // this example is just showing the usage of "PacketCaptures_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureResource.cs index 9aad19dbabbb..b028fb88c226 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureResource.cs @@ -20,7 +20,7 @@ public partial class Sample_PacketCaptureResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatePacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherPacketCaptureCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCaptureCreate.json // this example is just showing the usage of "PacketCaptures_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -73,7 +73,7 @@ public async Task Update_CreatePacketCapture() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherPacketCaptureGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCaptureGet.json // this example is just showing the usage of "PacketCaptures_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -105,7 +105,7 @@ public async Task Get_GetPacketCapture() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletePacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherPacketCaptureDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCaptureDelete.json // this example is just showing the usage of "PacketCaptures_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -133,7 +133,7 @@ public async Task Delete_DeletePacketCapture() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Stop_StopPacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherPacketCaptureStop.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCaptureStop.json // this example is just showing the usage of "PacketCaptures_Stop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task Stop_StopPacketCapture() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetStatus_QueryPacketCaptureStatus() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherPacketCaptureQueryStatus.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCaptureQueryStatus.json // this example is just showing the usage of "PacketCaptures_GetStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionCollection.cs index 88d774e03690..8290d47750da 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_PeerExpressRouteCircuitConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PeerExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PeerExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PeerExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "PeerExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_PeerExpressRouteCircuitConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_PeerExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PeerExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PeerExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "PeerExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_PeerExpressRouteCircuitConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_PeerExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PeerExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PeerExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "PeerExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task GetIfExists_PeerExpressRouteCircuitConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPeerExpressRouteCircuitConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PeerExpressRouteCircuitConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PeerExpressRouteCircuitConnectionList.json // this example is just showing the usage of "PeerExpressRouteCircuitConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionResource.cs index 835e82be4ea5..752baf76c6ef 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_PeerExpressRouteCircuitConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PeerExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PeerExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PeerExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "PeerExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PolicySignaturesOverridesForIdpsResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PolicySignaturesOverridesForIdpsResource.cs index d25e5d48aa1b..ce7c3f610dcd 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PolicySignaturesOverridesForIdpsResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PolicySignaturesOverridesForIdpsResource.cs @@ -19,7 +19,7 @@ public partial class Sample_PolicySignaturesOverridesForIdpsResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchSignatureOverrides() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicySignatureOverridesPatch.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicySignatureOverridesPatch.json // this example is just showing the usage of "FirewallPolicyIdpsSignaturesOverrides_Patch" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task Update_PatchSignatureOverrides() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_PutSignatureOverrides() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicySignatureOverridesPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicySignatureOverridesPut.json // this example is just showing the usage of "FirewallPolicyIdpsSignaturesOverrides_Put" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -104,7 +104,7 @@ public async Task CreateOrUpdate_PutSignatureOverrides() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSignatureOverrides() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicySignatureOverridesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicySignatureOverridesGet.json // this example is just showing the usage of "FirewallPolicyIdpsSignaturesOverrides_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupCollection.cs index 238384a019a4..7a0561dde27c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_PrivateDnsZoneGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointDnsZoneGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointDnsZoneGroupGet.json // this example is just showing the usage of "PrivateDnsZoneGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetPrivateDnsZoneGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointDnsZoneGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointDnsZoneGroupGet.json // this example is just showing the usage of "PrivateDnsZoneGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_GetPrivateDnsZoneGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetPrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointDnsZoneGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointDnsZoneGroupGet.json // this example is just showing the usage of "PrivateDnsZoneGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_GetPrivateDnsZoneGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointDnsZoneGroupCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointDnsZoneGroupCreate.json // this example is just showing the usage of "PrivateDnsZoneGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -175,7 +175,7 @@ public async Task CreateOrUpdate_CreatePrivateDnsZoneGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPrivateEndpointsInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointDnsZoneGroupList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointDnsZoneGroupList.json // this example is just showing the usage of "PrivateDnsZoneGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupResource.cs index 46faf0aa8540..f2f21423a44d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupResource.cs @@ -20,7 +20,7 @@ public partial class Sample_PrivateDnsZoneGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletePrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointDnsZoneGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointDnsZoneGroupDelete.json // this example is just showing the usage of "PrivateDnsZoneGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeletePrivateDnsZoneGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointDnsZoneGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointDnsZoneGroupGet.json // this example is just showing the usage of "PrivateDnsZoneGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Get_GetPrivateDnsZoneGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatePrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointDnsZoneGroupCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointDnsZoneGroupCreate.json // this example is just showing the usage of "PrivateDnsZoneGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointCollection.cs index 91487563d0d2..a1bbcf234650 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_PrivateEndpointCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGet.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Get_GetPrivateEndpoint() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGet.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_GetPrivateEndpoint() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetPrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGet.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_GetPrivateEndpoint() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateEndpointWithApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointGetWithASG.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGetWithASG.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -162,7 +162,7 @@ public async Task Get_GetPrivateEndpointWithApplicationSecurityGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPrivateEndpointWithApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointGetWithASG.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGetWithASG.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -192,7 +192,7 @@ public async Task Exists_GetPrivateEndpointWithApplicationSecurityGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetPrivateEndpointWithApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointGetWithASG.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGetWithASG.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -234,7 +234,7 @@ public async Task GetIfExists_GetPrivateEndpointWithApplicationSecurityGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateEndpointWithManualApprovalConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointGetForManualApproval.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGetForManualApproval.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -268,7 +268,7 @@ public async Task Get_GetPrivateEndpointWithManualApprovalConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPrivateEndpointWithManualApprovalConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointGetForManualApproval.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGetForManualApproval.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -298,7 +298,7 @@ public async Task Exists_GetPrivateEndpointWithManualApprovalConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetPrivateEndpointWithManualApprovalConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointGetForManualApproval.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGetForManualApproval.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -340,7 +340,7 @@ public async Task GetIfExists_GetPrivateEndpointWithManualApprovalConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointCreate.json // this example is just showing the usage of "PrivateEndpoints_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -406,7 +406,7 @@ public async Task CreateOrUpdate_CreatePrivateEndpoint() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePrivateEndpointWithApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointCreateWithASG.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointCreateWithASG.json // this example is just showing the usage of "PrivateEndpoints_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -468,7 +468,7 @@ public async Task CreateOrUpdate_CreatePrivateEndpointWithApplicationSecurityGro [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePrivateEndpointWithManualApprovalConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointCreateForManualApproval.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointCreateForManualApproval.json // this example is just showing the usage of "PrivateEndpoints_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -534,7 +534,7 @@ public async Task CreateOrUpdate_CreatePrivateEndpointWithManualApprovalConnecti [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPrivateEndpointsInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointList.json // this example is just showing the usage of "PrivateEndpoints_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointResource.cs index bab3123ba944..18a8add00456 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointResource.cs @@ -22,7 +22,7 @@ public partial class Sample_PrivateEndpointResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletePrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointDelete.json // this example is just showing the usage of "PrivateEndpoints_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -49,7 +49,7 @@ public async Task Delete_DeletePrivateEndpoint() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGet.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Get_GetPrivateEndpoint() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateEndpointWithApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointGetWithASG.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGetWithASG.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,7 +111,7 @@ public async Task Get_GetPrivateEndpointWithApplicationSecurityGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateEndpointWithManualApprovalConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointGetForManualApproval.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGetForManualApproval.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -142,7 +142,7 @@ public async Task Get_GetPrivateEndpointWithManualApprovalConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatePrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointCreate.json // this example is just showing the usage of "PrivateEndpoints_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -205,7 +205,7 @@ public async Task Update_CreatePrivateEndpoint() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatePrivateEndpointWithApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointCreateWithASG.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointCreateWithASG.json // this example is just showing the usage of "PrivateEndpoints_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -264,7 +264,7 @@ public async Task Update_CreatePrivateEndpointWithApplicationSecurityGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatePrivateEndpointWithManualApprovalConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointCreateForManualApproval.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointCreateForManualApproval.json // this example is just showing the usage of "PrivateEndpoints_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -327,7 +327,7 @@ public async Task Update_CreatePrivateEndpointWithManualApprovalConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetPrivateEndpoints_ListAllPrivateEndpoints() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointListAll.json // this example is just showing the usage of "PrivateEndpoints_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceCollection.cs index 4f49cfaba330..149892a23202 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_PrivateLinkServiceCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceGet.json // this example is just showing the usage of "PrivateLinkServices_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetPrivateLinkService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceGet.json // this example is just showing the usage of "PrivateLinkServices_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetPrivateLinkService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceGet.json // this example is just showing the usage of "PrivateLinkServices_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_GetPrivateLinkService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceCreate.json // this example is just showing the usage of "PrivateLinkServices_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -199,7 +199,7 @@ public async Task CreateOrUpdate_CreatePrivateLinkService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPrivateLinkServiceInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceList.json // this example is just showing the usage of "PrivateLinkServices_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceResource.cs index 7ae700f81f8b..ee21449f179c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceResource.cs @@ -21,7 +21,7 @@ public partial class Sample_PrivateLinkServiceResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletePrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceDelete.json // this example is just showing the usage of "PrivateLinkServices_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeletePrivateLinkService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceGet.json // this example is just showing the usage of "PrivateLinkServices_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetPrivateLinkService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatePrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceCreate.json // this example is just showing the usage of "PrivateLinkServices_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -148,7 +148,7 @@ public async Task Update_CreatePrivateLinkService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetPrivateLinkServices_ListAllPrivateListService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceListAll.json // this example is just showing the usage of "PrivateLinkServices_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeCollection.cs index d1c6cf3a85ea..72794f21cdbb 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ProbeCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_LoadBalancerProbeList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerProbeList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerProbeList.json // this example is just showing the usage of "LoadBalancerProbes_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_LoadBalancerProbeList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerProbeGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerProbeGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerProbeGet.json // this example is just showing the usage of "LoadBalancerProbes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_LoadBalancerProbeGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_LoadBalancerProbeGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerProbeGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerProbeGet.json // this example is just showing the usage of "LoadBalancerProbes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_LoadBalancerProbeGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_LoadBalancerProbeGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerProbeGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerProbeGet.json // this example is just showing the usage of "LoadBalancerProbes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeResource.cs index eb9f907d70fd..4b5d5a8af9ed 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ProbeResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerProbeGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerProbeGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerProbeGet.json // this example is just showing the usage of "LoadBalancerProbes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressCollection.cs index d6bdb9bad734..2d383f8a6dfa 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_PublicIPAddressCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPublicIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressGet.json // this example is just showing the usage of "PublicIPAddresses_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetPublicIPAddress() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPublicIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressGet.json // this example is just showing the usage of "PublicIPAddresses_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetPublicIPAddress() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetPublicIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressGet.json // this example is just showing the usage of "PublicIPAddresses_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_GetPublicIPAddress() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePublicIPAddressDNS() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressCreateDns.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressCreateDns.json // this example is just showing the usage of "PublicIPAddresses_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -170,7 +170,7 @@ public async Task CreateOrUpdate_CreatePublicIPAddressDNS() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePublicIPAddressDNSWithDomainNameLabelScope() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressCreateDnsWithDomainNameLabelScope.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressCreateDnsWithDomainNameLabelScope.json // this example is just showing the usage of "PublicIPAddresses_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -214,7 +214,7 @@ public async Task CreateOrUpdate_CreatePublicIPAddressDNSWithDomainNameLabelScop [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePublicIPAddressAllocationMethod() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressCreateCustomizedValues.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressCreateCustomizedValues.json // this example is just showing the usage of "PublicIPAddresses_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -261,7 +261,7 @@ public async Task CreateOrUpdate_CreatePublicIPAddressAllocationMethod() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePublicIPAddressDefaults() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressCreateDefaults.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressCreateDefaults.json // this example is just showing the usage of "PublicIPAddresses_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -300,7 +300,7 @@ public async Task CreateOrUpdate_CreatePublicIPAddressDefaults() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListResourceGroupPublicIPAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressList.json // this example is just showing the usage of "PublicIPAddresses_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressResource.cs index 58485a88287e..fc6ea7ef22e7 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressResource.cs @@ -21,7 +21,7 @@ public partial class Sample_PublicIPAddressResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletePublicIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressDelete.json // this example is just showing the usage of "PublicIPAddresses_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeletePublicIPAddress() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPublicIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressGet.json // this example is just showing the usage of "PublicIPAddresses_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetPublicIPAddress() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdatePublicIPAddressTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressUpdateTags.json // this example is just showing the usage of "PublicIPAddresses_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_UpdatePublicIPAddressTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetPublicIPAddresses_ListAllPublicIPAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressListAll.json // this example is just showing the usage of "PublicIPAddresses_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -150,7 +150,7 @@ public async Task GetPublicIPAddresses_ListAllPublicIPAddresses() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task DdosProtectionStatus_GetDdosProtectionStatusOfAPublicIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressGetDdosProtectionStatus.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressGetDdosProtectionStatus.json // this example is just showing the usage of "PublicIPAddresses_DdosProtectionStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixCollection.cs index 72e74e188f3d..c1a703be5ecf 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_PublicIPPrefixCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPublicIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixGet.json // this example is just showing the usage of "PublicIPPrefixes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetPublicIPPrefix() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPublicIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixGet.json // this example is just showing the usage of "PublicIPPrefixes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetPublicIPPrefix() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetPublicIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixGet.json // this example is just showing the usage of "PublicIPPrefixes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_GetPublicIPPrefix() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePublicIPPrefixAllocationMethod() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpPrefixCreateCustomizedValues.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixCreateCustomizedValues.json // this example is just showing the usage of "PublicIPPrefixes_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -173,7 +173,7 @@ public async Task CreateOrUpdate_CreatePublicIPPrefixAllocationMethod() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePublicIPPrefixDefaults() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpPrefixCreateDefaults.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixCreateDefaults.json // this example is just showing the usage of "PublicIPPrefixes_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -217,7 +217,7 @@ public async Task CreateOrUpdate_CreatePublicIPPrefixDefaults() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListResourceGroupPublicIPPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpPrefixList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixList.json // this example is just showing the usage of "PublicIPPrefixes_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixResource.cs index 64d77d4ad22a..bc14fb0cae4f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixResource.cs @@ -21,7 +21,7 @@ public partial class Sample_PublicIPPrefixResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletePublicIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpPrefixDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixDelete.json // this example is just showing the usage of "PublicIPPrefixes_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeletePublicIPPrefix() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPublicIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixGet.json // this example is just showing the usage of "PublicIPPrefixes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetPublicIPPrefix() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdatePublicIPPrefixTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpPrefixUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixUpdateTags.json // this example is just showing the usage of "PublicIPPrefixes_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_UpdatePublicIPPrefixTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetPublicIPPrefixes_ListAllPublicIPPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpPrefixListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixListAll.json // this example is just showing the usage of "PublicIPPrefixes_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs index 869739f5f0d8..0427f4b65e66 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs @@ -21,7 +21,7 @@ public partial class Sample_ResourceGroupResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableResourceGroupDelegations_GetAvailableDelegationsInTheResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AvailableDelegationsResourceGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AvailableDelegationsResourceGroupGet.json // this example is just showing the usage of "AvailableResourceGroupDelegations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task GetAvailableResourceGroupDelegations_GetAvailableDelegationsIn [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableServiceAliasesByResourceGroup_GetAvailableServiceAliasesInTheResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AvailableServiceAliasesListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AvailableServiceAliasesListByResourceGroup.json // this example is just showing the usage of "AvailableServiceAliases_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -81,7 +81,7 @@ public async Task GetAvailableServiceAliasesByResourceGroup_GetAvailableServiceA [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailablePrivateEndpointTypesByResourceGroup_GetAvailablePrivateEndpointTypesInTheResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AvailablePrivateEndpointTypesResourceGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AvailablePrivateEndpointTypesResourceGroupGet.json // this example is just showing the usage of "AvailablePrivateEndpointTypes_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,7 +111,7 @@ public async Task GetAvailablePrivateEndpointTypesByResourceGroup_GetAvailablePr [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckPrivateLinkServiceVisibilityByResourceGroupPrivateLinkService_CheckPrivateLinkServiceVisibility() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json // this example is just showing the usage of "PrivateLinkServices_CheckPrivateLinkServiceVisibilityByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -143,7 +143,7 @@ public async Task CheckPrivateLinkServiceVisibilityByResourceGroupPrivateLinkSer [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAutoApprovedPrivateLinkServicesByResourceGroupPrivateLinkServices_GetListOfPrivateLinkServiceIdThatCanBeLinkedToAPrivateEndPointWithAutoApproved() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json // this example is just showing the usage of "PrivateLinkServices_ListAutoApprovedPrivateLinkServicesByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteCollection.cs index eb3bc389cc75..31ba0abc425a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_RouteCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableRouteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableRouteGet.json // this example is just showing the usage of "Routes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetRoute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableRouteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableRouteGet.json // this example is just showing the usage of "Routes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_GetRoute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableRouteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableRouteGet.json // this example is just showing the usage of "Routes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_GetRoute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableRouteCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableRouteCreate.json // this example is just showing the usage of "Routes_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -170,7 +170,7 @@ public async Task CreateOrUpdate_CreateRoute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListRoutes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableRouteList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableRouteList.json // this example is just showing the usage of "Routes_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterCollection.cs index d618c3119da2..a98a27d9c212 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_RouteFilterCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteFilterGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterGet.json // this example is just showing the usage of "RouteFilters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_RouteFilterGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RouteFilterGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterGet.json // this example is just showing the usage of "RouteFilters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_RouteFilterGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_RouteFilterGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterGet.json // this example is just showing the usage of "RouteFilters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_RouteFilterGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_RouteFilterCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterCreate.json // this example is just showing the usage of "RouteFilters_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -183,7 +183,7 @@ public async Task CreateOrUpdate_RouteFilterCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_RouteFilterListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterListByResourceGroup.json // this example is just showing the usage of "RouteFilters_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterResource.cs index 7eabc03d8b37..7f1ee7ce8847 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterResource.cs @@ -21,7 +21,7 @@ public partial class Sample_RouteFilterResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_RouteFilterDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterDelete.json // this example is just showing the usage of "RouteFilters_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_RouteFilterDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteFilterGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterGet.json // this example is just showing the usage of "RouteFilters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_RouteFilterGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateRouteFilterTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterUpdateTags.json // this example is just showing the usage of "RouteFilters_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -117,7 +117,7 @@ public async Task Update_UpdateRouteFilterTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetRouteFilters_RouteFilterList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterList.json // this example is just showing the usage of "RouteFilters_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleCollection.cs index 57c482f60faf..592b060c8e9f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_RouteFilterRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteFilterRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterRuleGet.json // this example is just showing the usage of "RouteFilterRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_RouteFilterRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RouteFilterRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterRuleGet.json // this example is just showing the usage of "RouteFilterRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_RouteFilterRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_RouteFilterRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterRuleGet.json // this example is just showing the usage of "RouteFilterRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_RouteFilterRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_RouteFilterRuleCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterRuleCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterRuleCreate.json // this example is just showing the usage of "RouteFilterRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -174,7 +174,7 @@ public async Task CreateOrUpdate_RouteFilterRuleCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_RouteFilterRuleListByRouteFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterRuleListByRouteFilter.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterRuleListByRouteFilter.json // this example is just showing the usage of "RouteFilterRules_ListByRouteFilter" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleResource.cs index 00ecfc054c68..7d9f4ebcca87 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_RouteFilterRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_RouteFilterRuleDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterRuleDelete.json // this example is just showing the usage of "RouteFilterRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_RouteFilterRuleDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteFilterRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterRuleGet.json // this example is just showing the usage of "RouteFilterRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Get_RouteFilterRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_RouteFilterRuleCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterRuleCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterRuleCreate.json // this example is just showing the usage of "RouteFilterRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapCollection.cs index 54bb04becbeb..5fb9c0ec5c23 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_RouteMapCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteMapGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteMapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteMapGet.json // this example is just showing the usage of "RouteMaps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_RouteMapGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RouteMapGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteMapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteMapGet.json // this example is just showing the usage of "RouteMaps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_RouteMapGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_RouteMapGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteMapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteMapGet.json // this example is just showing the usage of "RouteMaps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_RouteMapGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_RouteMapPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteMapPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteMapPut.json // this example is just showing the usage of "RouteMaps_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -223,7 +223,7 @@ public async Task CreateOrUpdate_RouteMapPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_RouteMapList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteMapList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteMapList.json // this example is just showing the usage of "RouteMaps_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapResource.cs index 36239b965e48..dd11ab516d83 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapResource.cs @@ -20,7 +20,7 @@ public partial class Sample_RouteMapResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteMapGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteMapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteMapGet.json // this example is just showing the usage of "RouteMaps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_RouteMapGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_RouteMapPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteMapPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteMapPut.json // this example is just showing the usage of "RouteMaps_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -143,7 +143,7 @@ public async Task Update_RouteMapPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_RouteMapDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteMapDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteMapDelete.json // this example is just showing the usage of "RouteMaps_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteResource.cs index 35eec53aee99..c4c16aaa8235 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteResource.cs @@ -20,7 +20,7 @@ public partial class Sample_RouteResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableRouteDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableRouteDelete.json // this example is just showing the usage of "Routes_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteRoute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableRouteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableRouteGet.json // this example is just showing the usage of "Routes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Get_GetRoute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableRouteCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableRouteCreate.json // this example is just showing the usage of "Routes_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableCollection.cs index 22608cff8a70..25e97d7e3ed4 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_RouteTableCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableGet.json // this example is just showing the usage of "RouteTables_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetRouteTable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableGet.json // this example is just showing the usage of "RouteTables_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetRouteTable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableGet.json // this example is just showing the usage of "RouteTables_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_GetRouteTable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableCreate.json // this example is just showing the usage of "RouteTables_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task CreateOrUpdate_CreateRouteTable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateRouteTableWithRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableCreateWithRoute.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableCreateWithRoute.json // this example is just showing the usage of "RouteTables_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -215,7 +215,7 @@ public async Task CreateOrUpdate_CreateRouteTableWithRoute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListRouteTablesInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableList.json // this example is just showing the usage of "RouteTables_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableResource.cs index 1dea7755f282..7f5f26c6831e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableResource.cs @@ -21,7 +21,7 @@ public partial class Sample_RouteTableResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableDelete.json // this example is just showing the usage of "RouteTables_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteRouteTable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableGet.json // this example is just showing the usage of "RouteTables_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetRouteTable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateRouteTableTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableUpdateTags.json // this example is just showing the usage of "RouteTables_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_UpdateRouteTableTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetRouteTables_ListAllRouteTables() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableListAll.json // this example is just showing the usage of "RouteTables_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentCollection.cs index 110992732fb7..34a0b45dd197 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_RoutingIntentCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_RouteTablePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RoutingIntentPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RoutingIntentPut.json // this example is just showing the usage of "RoutingIntent_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -69,7 +69,7 @@ public async Task CreateOrUpdate_RouteTablePut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RoutingIntentGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RoutingIntentGet.json // this example is just showing the usage of "RoutingIntent_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -104,7 +104,7 @@ public async Task Get_RouteTableGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RoutingIntentGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RoutingIntentGet.json // this example is just showing the usage of "RoutingIntent_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -135,7 +135,7 @@ public async Task Exists_RouteTableGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RoutingIntentGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RoutingIntentGet.json // this example is just showing the usage of "RoutingIntent_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task GetIfExists_RouteTableGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_RoutingIntentList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RoutingIntentList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RoutingIntentList.json // this example is just showing the usage of "RoutingIntent_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentResource.cs index 7e780b4d36e9..d3fa93cd88f8 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentResource.cs @@ -20,7 +20,7 @@ public partial class Sample_RoutingIntentResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_RouteTablePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RoutingIntentPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RoutingIntentPut.json // this example is just showing the usage of "RoutingIntent_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -66,7 +66,7 @@ public async Task Update_RouteTablePut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RoutingIntentGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RoutingIntentGet.json // this example is just showing the usage of "RoutingIntent_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Get_RouteTableGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_RouteTableDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RoutingIntentDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RoutingIntentDelete.json // this example is just showing the usage of "RoutingIntent_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingRuleCollection.cs new file mode 100644 index 000000000000..5a604544f9c9 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingRuleCollection.cs @@ -0,0 +1,260 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_RoutingRuleCollection + { + // List routing rules + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListRoutingRules() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleList.json + // this example is just showing the usage of "RoutingRules_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RoutingRuleCollectionResource created on azure + // for more information of creating RoutingRuleCollectionResource, please refer to the document of RoutingRuleCollectionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestRoutingConfig"; + string ruleCollectionName = "testRuleCollection"; + ResourceIdentifier routingRuleCollectionResourceId = RoutingRuleCollectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + RoutingRuleCollectionResource routingRuleCollection = client.GetRoutingRuleCollectionResource(routingRuleCollectionResourceId); + + // get the collection of this RoutingRuleResource + RoutingRuleCollection collection = routingRuleCollection.GetRoutingRules(); + + // invoke the operation and iterate over the result + await foreach (RoutingRuleResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RoutingRuleData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Gets routing rule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetsRoutingRule() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleGet.json + // this example is just showing the usage of "RoutingRules_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RoutingRuleCollectionResource created on azure + // for more information of creating RoutingRuleCollectionResource, please refer to the document of RoutingRuleCollectionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + string ruleCollectionName = "testRuleCollection"; + ResourceIdentifier routingRuleCollectionResourceId = RoutingRuleCollectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + RoutingRuleCollectionResource routingRuleCollection = client.GetRoutingRuleCollectionResource(routingRuleCollectionResourceId); + + // get the collection of this RoutingRuleResource + RoutingRuleCollection collection = routingRuleCollection.GetRoutingRules(); + + // invoke the operation + string ruleName = "SampleRoutingRule"; + RoutingRuleResource result = await collection.GetAsync(ruleName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RoutingRuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Gets routing rule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetsRoutingRule() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleGet.json + // this example is just showing the usage of "RoutingRules_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RoutingRuleCollectionResource created on azure + // for more information of creating RoutingRuleCollectionResource, please refer to the document of RoutingRuleCollectionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + string ruleCollectionName = "testRuleCollection"; + ResourceIdentifier routingRuleCollectionResourceId = RoutingRuleCollectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + RoutingRuleCollectionResource routingRuleCollection = client.GetRoutingRuleCollectionResource(routingRuleCollectionResourceId); + + // get the collection of this RoutingRuleResource + RoutingRuleCollection collection = routingRuleCollection.GetRoutingRules(); + + // invoke the operation + string ruleName = "SampleRoutingRule"; + bool result = await collection.ExistsAsync(ruleName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Gets routing rule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetIfExists_GetsRoutingRule() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleGet.json + // this example is just showing the usage of "RoutingRules_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RoutingRuleCollectionResource created on azure + // for more information of creating RoutingRuleCollectionResource, please refer to the document of RoutingRuleCollectionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + string ruleCollectionName = "testRuleCollection"; + ResourceIdentifier routingRuleCollectionResourceId = RoutingRuleCollectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + RoutingRuleCollectionResource routingRuleCollection = client.GetRoutingRuleCollectionResource(routingRuleCollectionResourceId); + + // get the collection of this RoutingRuleResource + RoutingRuleCollection collection = routingRuleCollection.GetRoutingRules(); + + // invoke the operation + string ruleName = "SampleRoutingRule"; + NullableResponse response = await collection.GetIfExistsAsync(ruleName); + RoutingRuleResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine($"Succeeded with null as result"); + } + else + { + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RoutingRuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + // Create a default routing rule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateADefaultRoutingRule() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRulePut.json + // this example is just showing the usage of "RoutingRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RoutingRuleCollectionResource created on azure + // for more information of creating RoutingRuleCollectionResource, please refer to the document of RoutingRuleCollectionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestRoutingConfig"; + string ruleCollectionName = "testRuleCollection"; + ResourceIdentifier routingRuleCollectionResourceId = RoutingRuleCollectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + RoutingRuleCollectionResource routingRuleCollection = client.GetRoutingRuleCollectionResource(routingRuleCollectionResourceId); + + // get the collection of this RoutingRuleResource + RoutingRuleCollection collection = routingRuleCollection.GetRoutingRules(); + + // invoke the operation + string ruleName = "SampleRoutingRule"; + RoutingRuleData data = new RoutingRuleData() + { + Description = "This is Sample Routing Rule", + Destination = new RoutingRuleRouteDestination(RoutingRuleDestinationType.AddressPrefix, "10.0.0.0/16"), + NextHop = new RoutingRuleNextHop(RoutingRuleNextHopType.VirtualNetworkGateway), + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, ruleName, data); + RoutingRuleResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RoutingRuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create an routing rule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateAnRoutingRule() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRulePut.json + // this example is just showing the usage of "RoutingRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RoutingRuleCollectionResource created on azure + // for more information of creating RoutingRuleCollectionResource, please refer to the document of RoutingRuleCollectionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestRoutingConfig"; + string ruleCollectionName = "testRuleCollection"; + ResourceIdentifier routingRuleCollectionResourceId = RoutingRuleCollectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + RoutingRuleCollectionResource routingRuleCollection = client.GetRoutingRuleCollectionResource(routingRuleCollectionResourceId); + + // get the collection of this RoutingRuleResource + RoutingRuleCollection collection = routingRuleCollection.GetRoutingRules(); + + // invoke the operation + string ruleName = "SampleRoutingRule"; + RoutingRuleData data = new RoutingRuleData() + { + Description = "This is Sample Routing Rule", + Destination = new RoutingRuleRouteDestination(RoutingRuleDestinationType.AddressPrefix, "10.0.0.0/16"), + NextHop = new RoutingRuleNextHop(RoutingRuleNextHopType.VirtualNetworkGateway), + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, ruleName, data); + RoutingRuleResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RoutingRuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingRuleCollectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingRuleCollectionCollection.cs new file mode 100644 index 000000000000..22bc434cc26c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingRuleCollectionCollection.cs @@ -0,0 +1,213 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_RoutingRuleCollectionCollection + { + // List routing rule collections + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListRoutingRuleCollections() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleCollectionList.json + // this example is just showing the usage of "RoutingRuleCollections_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkManagerRoutingConfigurationResource created on azure + // for more information of creating NetworkManagerRoutingConfigurationResource, please refer to the document of NetworkManagerRoutingConfigurationResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestRoutingConfig"; + ResourceIdentifier networkManagerRoutingConfigurationResourceId = NetworkManagerRoutingConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName); + NetworkManagerRoutingConfigurationResource networkManagerRoutingConfiguration = client.GetNetworkManagerRoutingConfigurationResource(networkManagerRoutingConfigurationResourceId); + + // get the collection of this RoutingRuleCollectionResource + RoutingRuleCollectionCollection collection = networkManagerRoutingConfiguration.GetRoutingRuleCollections(); + + // invoke the operation and iterate over the result + await foreach (RoutingRuleCollectionResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RoutingRuleCollectionData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Gets routing rule collection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetsRoutingRuleCollection() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleCollectionGet.json + // this example is just showing the usage of "RoutingRuleCollections_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkManagerRoutingConfigurationResource created on azure + // for more information of creating NetworkManagerRoutingConfigurationResource, please refer to the document of NetworkManagerRoutingConfigurationResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestRoutingConfig"; + ResourceIdentifier networkManagerRoutingConfigurationResourceId = NetworkManagerRoutingConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName); + NetworkManagerRoutingConfigurationResource networkManagerRoutingConfiguration = client.GetNetworkManagerRoutingConfigurationResource(networkManagerRoutingConfigurationResourceId); + + // get the collection of this RoutingRuleCollectionResource + RoutingRuleCollectionCollection collection = networkManagerRoutingConfiguration.GetRoutingRuleCollections(); + + // invoke the operation + string ruleCollectionName = "testRuleCollection"; + RoutingRuleCollectionResource result = await collection.GetAsync(ruleCollectionName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RoutingRuleCollectionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Gets routing rule collection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetsRoutingRuleCollection() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleCollectionGet.json + // this example is just showing the usage of "RoutingRuleCollections_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkManagerRoutingConfigurationResource created on azure + // for more information of creating NetworkManagerRoutingConfigurationResource, please refer to the document of NetworkManagerRoutingConfigurationResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestRoutingConfig"; + ResourceIdentifier networkManagerRoutingConfigurationResourceId = NetworkManagerRoutingConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName); + NetworkManagerRoutingConfigurationResource networkManagerRoutingConfiguration = client.GetNetworkManagerRoutingConfigurationResource(networkManagerRoutingConfigurationResourceId); + + // get the collection of this RoutingRuleCollectionResource + RoutingRuleCollectionCollection collection = networkManagerRoutingConfiguration.GetRoutingRuleCollections(); + + // invoke the operation + string ruleCollectionName = "testRuleCollection"; + bool result = await collection.ExistsAsync(ruleCollectionName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Gets routing rule collection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetIfExists_GetsRoutingRuleCollection() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleCollectionGet.json + // this example is just showing the usage of "RoutingRuleCollections_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkManagerRoutingConfigurationResource created on azure + // for more information of creating NetworkManagerRoutingConfigurationResource, please refer to the document of NetworkManagerRoutingConfigurationResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestRoutingConfig"; + ResourceIdentifier networkManagerRoutingConfigurationResourceId = NetworkManagerRoutingConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName); + NetworkManagerRoutingConfigurationResource networkManagerRoutingConfiguration = client.GetNetworkManagerRoutingConfigurationResource(networkManagerRoutingConfigurationResourceId); + + // get the collection of this RoutingRuleCollectionResource + RoutingRuleCollectionCollection collection = networkManagerRoutingConfiguration.GetRoutingRuleCollections(); + + // invoke the operation + string ruleCollectionName = "testRuleCollection"; + NullableResponse response = await collection.GetIfExistsAsync(ruleCollectionName); + RoutingRuleCollectionResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine($"Succeeded with null as result"); + } + else + { + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RoutingRuleCollectionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + // Create or Update a routing rule collection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateARoutingRuleCollection() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleCollectionPut.json + // this example is just showing the usage of "RoutingRuleCollections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkManagerRoutingConfigurationResource created on azure + // for more information of creating NetworkManagerRoutingConfigurationResource, please refer to the document of NetworkManagerRoutingConfigurationResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestRoutingConfig"; + ResourceIdentifier networkManagerRoutingConfigurationResourceId = NetworkManagerRoutingConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName); + NetworkManagerRoutingConfigurationResource networkManagerRoutingConfiguration = client.GetNetworkManagerRoutingConfigurationResource(networkManagerRoutingConfigurationResourceId); + + // get the collection of this RoutingRuleCollectionResource + RoutingRuleCollectionCollection collection = networkManagerRoutingConfiguration.GetRoutingRuleCollections(); + + // invoke the operation + string ruleCollectionName = "testRuleCollection"; + RoutingRuleCollectionData data = new RoutingRuleCollectionData() + { + Description = "A sample policy", + AppliesTo = +{ +new NetworkManagerRoutingGroupItem("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup") +}, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, ruleCollectionName, data); + RoutingRuleCollectionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RoutingRuleCollectionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingRuleCollectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingRuleCollectionResource.cs new file mode 100644 index 000000000000..833aff1eae34 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingRuleCollectionResource.cs @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_RoutingRuleCollectionResource + { + // Gets routing rule collection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetsRoutingRuleCollection() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleCollectionGet.json + // this example is just showing the usage of "RoutingRuleCollections_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RoutingRuleCollectionResource created on azure + // for more information of creating RoutingRuleCollectionResource, please refer to the document of RoutingRuleCollectionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestRoutingConfig"; + string ruleCollectionName = "testRuleCollection"; + ResourceIdentifier routingRuleCollectionResourceId = RoutingRuleCollectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + RoutingRuleCollectionResource routingRuleCollection = client.GetRoutingRuleCollectionResource(routingRuleCollectionResourceId); + + // invoke the operation + RoutingRuleCollectionResource result = await routingRuleCollection.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RoutingRuleCollectionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create or Update a routing rule collection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateARoutingRuleCollection() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleCollectionPut.json + // this example is just showing the usage of "RoutingRuleCollections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RoutingRuleCollectionResource created on azure + // for more information of creating RoutingRuleCollectionResource, please refer to the document of RoutingRuleCollectionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestRoutingConfig"; + string ruleCollectionName = "testRuleCollection"; + ResourceIdentifier routingRuleCollectionResourceId = RoutingRuleCollectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + RoutingRuleCollectionResource routingRuleCollection = client.GetRoutingRuleCollectionResource(routingRuleCollectionResourceId); + + // invoke the operation + RoutingRuleCollectionData data = new RoutingRuleCollectionData() + { + Description = "A sample policy", + AppliesTo = +{ +new NetworkManagerRoutingGroupItem("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup") +}, + }; + ArmOperation lro = await routingRuleCollection.UpdateAsync(WaitUntil.Completed, data); + RoutingRuleCollectionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RoutingRuleCollectionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Deletes an routing rule collection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeletesAnRoutingRuleCollection() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleCollectionDelete.json + // this example is just showing the usage of "RoutingRuleCollections_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RoutingRuleCollectionResource created on azure + // for more information of creating RoutingRuleCollectionResource, please refer to the document of RoutingRuleCollectionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestRoutingConfig"; + string ruleCollectionName = "testRuleCollection"; + ResourceIdentifier routingRuleCollectionResourceId = RoutingRuleCollectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + RoutingRuleCollectionResource routingRuleCollection = client.GetRoutingRuleCollectionResource(routingRuleCollectionResourceId); + + // invoke the operation + await routingRuleCollection.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingRuleResource.cs new file mode 100644 index 000000000000..3720a885c614 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingRuleResource.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_RoutingRuleResource + { + // Gets routing rule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetsRoutingRule() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleGet.json + // this example is just showing the usage of "RoutingRules_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RoutingRuleResource created on azure + // for more information of creating RoutingRuleResource, please refer to the document of RoutingRuleResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + string ruleCollectionName = "testRuleCollection"; + string ruleName = "SampleRoutingRule"; + ResourceIdentifier routingRuleResourceId = RoutingRuleResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName); + RoutingRuleResource routingRule = client.GetRoutingRuleResource(routingRuleResourceId); + + // invoke the operation + RoutingRuleResource result = await routingRule.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RoutingRuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create a default routing rule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateADefaultRoutingRule() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRulePut.json + // this example is just showing the usage of "RoutingRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RoutingRuleResource created on azure + // for more information of creating RoutingRuleResource, please refer to the document of RoutingRuleResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestRoutingConfig"; + string ruleCollectionName = "testRuleCollection"; + string ruleName = "SampleRoutingRule"; + ResourceIdentifier routingRuleResourceId = RoutingRuleResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName); + RoutingRuleResource routingRule = client.GetRoutingRuleResource(routingRuleResourceId); + + // invoke the operation + RoutingRuleData data = new RoutingRuleData() + { + Description = "This is Sample Routing Rule", + Destination = new RoutingRuleRouteDestination(RoutingRuleDestinationType.AddressPrefix, "10.0.0.0/16"), + NextHop = new RoutingRuleNextHop(RoutingRuleNextHopType.VirtualNetworkGateway), + }; + ArmOperation lro = await routingRule.UpdateAsync(WaitUntil.Completed, data); + RoutingRuleResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RoutingRuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create an routing rule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateAnRoutingRule() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRulePut.json + // this example is just showing the usage of "RoutingRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RoutingRuleResource created on azure + // for more information of creating RoutingRuleResource, please refer to the document of RoutingRuleResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestRoutingConfig"; + string ruleCollectionName = "testRuleCollection"; + string ruleName = "SampleRoutingRule"; + ResourceIdentifier routingRuleResourceId = RoutingRuleResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName); + RoutingRuleResource routingRule = client.GetRoutingRuleResource(routingRuleResourceId); + + // invoke the operation + RoutingRuleData data = new RoutingRuleData() + { + Description = "This is Sample Routing Rule", + Destination = new RoutingRuleRouteDestination(RoutingRuleDestinationType.AddressPrefix, "10.0.0.0/16"), + NextHop = new RoutingRuleNextHop(RoutingRuleNextHopType.VirtualNetworkGateway), + }; + ArmOperation lro = await routingRule.UpdateAsync(WaitUntil.Completed, data); + RoutingRuleResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RoutingRuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Deletes a routing rule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeletesARoutingRule() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleDelete.json + // this example is just showing the usage of "RoutingRules_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RoutingRuleResource created on azure + // for more information of creating RoutingRuleResource, please refer to the document of RoutingRuleResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestRoutingConfig"; + string ruleCollectionName = "testRuleCollection"; + string ruleName = "sampleRule"; + ResourceIdentifier routingRuleResourceId = RoutingRuleResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName); + RoutingRuleResource routingRule = client.GetRoutingRuleResource(routingRuleResourceId); + + // invoke the operation + bool? force = false; + await routingRule.DeleteAsync(WaitUntil.Completed, force: force); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionCollection.cs index dd0abfe6a2cc..32f88ed3637b 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ScopeConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerScopeConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerScopeConnectionPut.json // this example is just showing the usage of "ScopeConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task CreateOrUpdate_CreateOrUpdateNetworkManagerScopeConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerScopeConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerScopeConnectionGet.json // this example is just showing the usage of "ScopeConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Get_GetNetworkManagerScopeConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerScopeConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerScopeConnectionGet.json // this example is just showing the usage of "ScopeConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task Exists_GetNetworkManagerScopeConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerScopeConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerScopeConnectionGet.json // this example is just showing the usage of "ScopeConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -170,7 +170,7 @@ public async Task GetIfExists_GetNetworkManagerScopeConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerScopeConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerScopeConnectionList.json // this example is just showing the usage of "ScopeConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionResource.cs index 4b845da12d76..8dadddaf014a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ScopeConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerScopeConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerScopeConnectionPut.json // this example is just showing the usage of "ScopeConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Update_CreateOrUpdateNetworkManagerScopeConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerScopeConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerScopeConnectionGet.json // this example is just showing the usage of "ScopeConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Get_GetNetworkManagerScopeConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerScopeConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerScopeConnectionDelete.json // this example is just showing the usage of "ScopeConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationCollection.cs index 19bc26140533..4d89cf0efe19 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_SecurityAdminConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSecurityAdminConfigurationsInANetworkManager() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerSecurityAdminConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityAdminConfigurationList.json // this example is just showing the usage of "SecurityAdminConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_ListSecurityAdminConfigurationsInANetworkManager() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSecurityAdminConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerSecurityAdminConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityAdminConfigurationGet.json // this example is just showing the usage of "SecurityAdminConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Get_GetSecurityAdminConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetSecurityAdminConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerSecurityAdminConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityAdminConfigurationGet.json // this example is just showing the usage of "SecurityAdminConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Exists_GetSecurityAdminConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetSecurityAdminConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerSecurityAdminConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityAdminConfigurationGet.json // this example is just showing the usage of "SecurityAdminConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task GetIfExists_GetSecurityAdminConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkManagerSecurityAdminConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerSecurityAdminConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityAdminConfigurationPut.json // this example is just showing the usage of "SecurityAdminConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationResource.cs index b9cea0fa6e4c..5b852aaca821 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SecurityAdminConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSecurityAdminConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerSecurityAdminConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityAdminConfigurationGet.json // this example is just showing the usage of "SecurityAdminConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetSecurityAdminConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateNetworkManagerSecurityAdminConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerSecurityAdminConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityAdminConfigurationPut.json // this example is just showing the usage of "SecurityAdminConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Update_CreateNetworkManagerSecurityAdminConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNetworkManagerSecurityAdminConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerSecurityAdminConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityAdminConfigurationDelete.json // this example is just showing the usage of "SecurityAdminConfigurations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderCollection.cs index 47253a2516c0..5449237e192f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_SecurityPartnerProviderCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSecurityPartnerProvider() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SecurityPartnerProviderGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SecurityPartnerProviderGet.json // this example is just showing the usage of "SecurityPartnerProviders_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetSecurityPartnerProvider() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetSecurityPartnerProvider() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SecurityPartnerProviderGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SecurityPartnerProviderGet.json // this example is just showing the usage of "SecurityPartnerProviders_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetSecurityPartnerProvider() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetSecurityPartnerProvider() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SecurityPartnerProviderGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SecurityPartnerProviderGet.json // this example is just showing the usage of "SecurityPartnerProviders_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_GetSecurityPartnerProvider() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateSecurityPartnerProvider() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SecurityPartnerProviderPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SecurityPartnerProviderPut.json // this example is just showing the usage of "SecurityPartnerProviders_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -172,7 +172,7 @@ public async Task CreateOrUpdate_CreateSecurityPartnerProvider() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllSecurityPartnerProvidersForAGivenResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SecurityPartnerProviderListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SecurityPartnerProviderListByResourceGroup.json // this example is just showing the usage of "SecurityPartnerProviders_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderResource.cs index 5f158418b6be..8989e7d4f007 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderResource.cs @@ -21,7 +21,7 @@ public partial class Sample_SecurityPartnerProviderResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteSecurityPartnerProvider() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SecurityPartnerProviderDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SecurityPartnerProviderDelete.json // this example is just showing the usage of "SecurityPartnerProviders_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteSecurityPartnerProvider() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSecurityPartnerProvider() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SecurityPartnerProviderGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SecurityPartnerProviderGet.json // this example is just showing the usage of "SecurityPartnerProviders_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetSecurityPartnerProvider() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateSecurityPartnerProviderTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SecurityPartnerProviderUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SecurityPartnerProviderUpdateTags.json // this example is just showing the usage of "SecurityPartnerProviders_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_UpdateSecurityPartnerProviderTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSecurityPartnerProviders_ListAllSecurityPartnerProvidersForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SecurityPartnerProviderListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SecurityPartnerProviderListBySubscription.json // this example is just showing the usage of "SecurityPartnerProviders_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleCollection.cs index 298cecac0ef5..a7f951ba5d5c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_SecurityRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkSecurityRuleInNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupRuleGet.json // this example is just showing the usage of "SecurityRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetNetworkSecurityRuleInNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkSecurityRuleInNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupRuleGet.json // this example is just showing the usage of "SecurityRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_GetNetworkSecurityRuleInNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetNetworkSecurityRuleInNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupRuleGet.json // this example is just showing the usage of "SecurityRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_GetNetworkSecurityRuleInNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateSecurityRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupRuleCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupRuleCreate.json // this example is just showing the usage of "SecurityRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -176,7 +176,7 @@ public async Task CreateOrUpdate_CreateSecurityRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListNetworkSecurityRulesInNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupRuleList.json // this example is just showing the usage of "SecurityRules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleResource.cs index 18938f782a80..02f4a867f4b1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SecurityRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNetworkSecurityRuleFromNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupRuleDelete.json // this example is just showing the usage of "SecurityRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteNetworkSecurityRuleFromNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkSecurityRuleInNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupRuleGet.json // this example is just showing the usage of "SecurityRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Get_GetNetworkSecurityRuleInNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateSecurityRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupRuleCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupRuleCreate.json // this example is just showing the usage of "SecurityRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityUserConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityUserConfigurationCollection.cs new file mode 100644 index 000000000000..f4886d2f41d9 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityUserConfigurationCollection.cs @@ -0,0 +1,203 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_SecurityUserConfigurationCollection + { + // List security user configurations in a network manager + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListSecurityUserConfigurationsInANetworkManager() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserConfigurationList.json + // this example is just showing the usage of "SecurityUserConfigurations_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this SecurityUserConfigurationResource + SecurityUserConfigurationCollection collection = networkManager.GetSecurityUserConfigurations(); + + // invoke the operation and iterate over the result + await foreach (SecurityUserConfigurationResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SecurityUserConfigurationData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get security user configurations + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetSecurityUserConfigurations() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserConfigurationGet.json + // this example is just showing the usage of "SecurityUserConfigurations_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this SecurityUserConfigurationResource + SecurityUserConfigurationCollection collection = networkManager.GetSecurityUserConfigurations(); + + // invoke the operation + string configurationName = "myTestSecurityConfig"; + SecurityUserConfigurationResource result = await collection.GetAsync(configurationName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SecurityUserConfigurationData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get security user configurations + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetSecurityUserConfigurations() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserConfigurationGet.json + // this example is just showing the usage of "SecurityUserConfigurations_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this SecurityUserConfigurationResource + SecurityUserConfigurationCollection collection = networkManager.GetSecurityUserConfigurations(); + + // invoke the operation + string configurationName = "myTestSecurityConfig"; + bool result = await collection.ExistsAsync(configurationName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Get security user configurations + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetIfExists_GetSecurityUserConfigurations() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserConfigurationGet.json + // this example is just showing the usage of "SecurityUserConfigurations_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this SecurityUserConfigurationResource + SecurityUserConfigurationCollection collection = networkManager.GetSecurityUserConfigurations(); + + // invoke the operation + string configurationName = "myTestSecurityConfig"; + NullableResponse response = await collection.GetIfExistsAsync(configurationName); + SecurityUserConfigurationResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine($"Succeeded with null as result"); + } + else + { + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SecurityUserConfigurationData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + // Create network manager security user configuration + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateNetworkManagerSecurityUserConfiguration() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserConfigurationPut.json + // this example is just showing the usage of "SecurityUserConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this SecurityUserConfigurationResource + SecurityUserConfigurationCollection collection = networkManager.GetSecurityUserConfigurations(); + + // invoke the operation + string configurationName = "myTestSecurityConfig"; + SecurityUserConfigurationData data = new SecurityUserConfigurationData() + { + Description = "A sample policy", + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, configurationName, data); + SecurityUserConfigurationResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SecurityUserConfigurationData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityUserConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityUserConfigurationResource.cs new file mode 100644 index 000000000000..0e16c4d006aa --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityUserConfigurationResource.cs @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_SecurityUserConfigurationResource + { + // Get security user configurations + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetSecurityUserConfigurations() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserConfigurationGet.json + // this example is just showing the usage of "SecurityUserConfigurations_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserConfigurationResource created on azure + // for more information of creating SecurityUserConfigurationResource, please refer to the document of SecurityUserConfigurationResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + ResourceIdentifier securityUserConfigurationResourceId = SecurityUserConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName); + SecurityUserConfigurationResource securityUserConfiguration = client.GetSecurityUserConfigurationResource(securityUserConfigurationResourceId); + + // invoke the operation + SecurityUserConfigurationResource result = await securityUserConfiguration.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SecurityUserConfigurationData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create network manager security user configuration + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateNetworkManagerSecurityUserConfiguration() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserConfigurationPut.json + // this example is just showing the usage of "SecurityUserConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserConfigurationResource created on azure + // for more information of creating SecurityUserConfigurationResource, please refer to the document of SecurityUserConfigurationResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + ResourceIdentifier securityUserConfigurationResourceId = SecurityUserConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName); + SecurityUserConfigurationResource securityUserConfiguration = client.GetSecurityUserConfigurationResource(securityUserConfigurationResourceId); + + // invoke the operation + SecurityUserConfigurationData data = new SecurityUserConfigurationData() + { + Description = "A sample policy", + }; + ArmOperation lro = await securityUserConfiguration.UpdateAsync(WaitUntil.Completed, data); + SecurityUserConfigurationResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SecurityUserConfigurationData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Delete network manager security user configuration + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteNetworkManagerSecurityUserConfiguration() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserConfigurationDelete.json + // this example is just showing the usage of "SecurityUserConfigurations_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserConfigurationResource created on azure + // for more information of creating SecurityUserConfigurationResource, please refer to the document of SecurityUserConfigurationResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + ResourceIdentifier securityUserConfigurationResourceId = SecurityUserConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName); + SecurityUserConfigurationResource securityUserConfiguration = client.GetSecurityUserConfigurationResource(securityUserConfigurationResourceId); + + // invoke the operation + bool? force = false; + await securityUserConfiguration.DeleteAsync(WaitUntil.Completed, force: force); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityUserRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityUserRuleCollection.cs new file mode 100644 index 000000000000..f15c2be5df53 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityUserRuleCollection.cs @@ -0,0 +1,240 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_SecurityUserRuleCollection + { + // List security user rules + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListSecurityUserRules() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleList.json + // this example is just showing the usage of "SecurityUserRules_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserRuleCollectionResource created on azure + // for more information of creating SecurityUserRuleCollectionResource, please refer to the document of SecurityUserRuleCollectionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + string ruleCollectionName = "testRuleCollection"; + ResourceIdentifier securityUserRuleCollectionResourceId = SecurityUserRuleCollectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + SecurityUserRuleCollectionResource securityUserRuleCollection = client.GetSecurityUserRuleCollectionResource(securityUserRuleCollectionResourceId); + + // get the collection of this SecurityUserRuleResource + SecurityUserRuleCollection collection = securityUserRuleCollection.GetSecurityUserRules(); + + // invoke the operation and iterate over the result + await foreach (SecurityUserRuleResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SecurityUserRuleData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Gets a security user rule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetsASecurityUserRule() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleGet.json + // this example is just showing the usage of "SecurityUserRules_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserRuleCollectionResource created on azure + // for more information of creating SecurityUserRuleCollectionResource, please refer to the document of SecurityUserRuleCollectionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + string ruleCollectionName = "testRuleCollection"; + ResourceIdentifier securityUserRuleCollectionResourceId = SecurityUserRuleCollectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + SecurityUserRuleCollectionResource securityUserRuleCollection = client.GetSecurityUserRuleCollectionResource(securityUserRuleCollectionResourceId); + + // get the collection of this SecurityUserRuleResource + SecurityUserRuleCollection collection = securityUserRuleCollection.GetSecurityUserRules(); + + // invoke the operation + string ruleName = "SampleUserRule"; + SecurityUserRuleResource result = await collection.GetAsync(ruleName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SecurityUserRuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Gets a security user rule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetsASecurityUserRule() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleGet.json + // this example is just showing the usage of "SecurityUserRules_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserRuleCollectionResource created on azure + // for more information of creating SecurityUserRuleCollectionResource, please refer to the document of SecurityUserRuleCollectionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + string ruleCollectionName = "testRuleCollection"; + ResourceIdentifier securityUserRuleCollectionResourceId = SecurityUserRuleCollectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + SecurityUserRuleCollectionResource securityUserRuleCollection = client.GetSecurityUserRuleCollectionResource(securityUserRuleCollectionResourceId); + + // get the collection of this SecurityUserRuleResource + SecurityUserRuleCollection collection = securityUserRuleCollection.GetSecurityUserRules(); + + // invoke the operation + string ruleName = "SampleUserRule"; + bool result = await collection.ExistsAsync(ruleName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Gets a security user rule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetIfExists_GetsASecurityUserRule() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleGet.json + // this example is just showing the usage of "SecurityUserRules_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserRuleCollectionResource created on azure + // for more information of creating SecurityUserRuleCollectionResource, please refer to the document of SecurityUserRuleCollectionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + string ruleCollectionName = "testRuleCollection"; + ResourceIdentifier securityUserRuleCollectionResourceId = SecurityUserRuleCollectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + SecurityUserRuleCollectionResource securityUserRuleCollection = client.GetSecurityUserRuleCollectionResource(securityUserRuleCollectionResourceId); + + // get the collection of this SecurityUserRuleResource + SecurityUserRuleCollection collection = securityUserRuleCollection.GetSecurityUserRules(); + + // invoke the operation + string ruleName = "SampleUserRule"; + NullableResponse response = await collection.GetIfExistsAsync(ruleName); + SecurityUserRuleResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine($"Succeeded with null as result"); + } + else + { + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SecurityUserRuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + // Create a security user rule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateASecurityUserRule() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRulePut.json + // this example is just showing the usage of "SecurityUserRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserRuleCollectionResource created on azure + // for more information of creating SecurityUserRuleCollectionResource, please refer to the document of SecurityUserRuleCollectionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + string ruleCollectionName = "testRuleCollection"; + ResourceIdentifier securityUserRuleCollectionResourceId = SecurityUserRuleCollectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + SecurityUserRuleCollectionResource securityUserRuleCollection = client.GetSecurityUserRuleCollectionResource(securityUserRuleCollectionResourceId); + + // get the collection of this SecurityUserRuleResource + SecurityUserRuleCollection collection = securityUserRuleCollection.GetSecurityUserRules(); + + // invoke the operation + string ruleName = "SampleUserRule"; + SecurityUserRuleData data = new SecurityUserRuleData() + { + Description = "Sample User Rule", + Protocol = SecurityConfigurationRuleProtocol.Tcp, + Sources = +{ +new AddressPrefixItem() +{ +AddressPrefix = "*", +AddressPrefixType = AddressPrefixType.IPPrefix, +} +}, + Destinations = +{ +new AddressPrefixItem() +{ +AddressPrefix = "*", +AddressPrefixType = AddressPrefixType.IPPrefix, +} +}, + SourcePortRanges = +{ +"0-65535" +}, + DestinationPortRanges = +{ +"22" +}, + Direction = SecurityConfigurationRuleDirection.Inbound, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, ruleName, data); + SecurityUserRuleResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SecurityUserRuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityUserRuleCollectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityUserRuleCollectionCollection.cs new file mode 100644 index 000000000000..1c07bdeee748 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityUserRuleCollectionCollection.cs @@ -0,0 +1,213 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_SecurityUserRuleCollectionCollection + { + // List rule collections in a security configuration + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListRuleCollectionsInASecurityConfiguration() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleCollectionList.json + // this example is just showing the usage of "SecurityUserRuleCollections_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserConfigurationResource created on azure + // for more information of creating SecurityUserConfigurationResource, please refer to the document of SecurityUserConfigurationResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + ResourceIdentifier securityUserConfigurationResourceId = SecurityUserConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName); + SecurityUserConfigurationResource securityUserConfiguration = client.GetSecurityUserConfigurationResource(securityUserConfigurationResourceId); + + // get the collection of this SecurityUserRuleCollectionResource + SecurityUserRuleCollectionCollection collection = securityUserConfiguration.GetSecurityUserRuleCollections(); + + // invoke the operation and iterate over the result + await foreach (SecurityUserRuleCollectionResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SecurityUserRuleCollectionData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Gets security user rule collection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetsSecurityUserRuleCollection() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleCollectionGet.json + // this example is just showing the usage of "SecurityUserRuleCollections_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserConfigurationResource created on azure + // for more information of creating SecurityUserConfigurationResource, please refer to the document of SecurityUserConfigurationResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + ResourceIdentifier securityUserConfigurationResourceId = SecurityUserConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName); + SecurityUserConfigurationResource securityUserConfiguration = client.GetSecurityUserConfigurationResource(securityUserConfigurationResourceId); + + // get the collection of this SecurityUserRuleCollectionResource + SecurityUserRuleCollectionCollection collection = securityUserConfiguration.GetSecurityUserRuleCollections(); + + // invoke the operation + string ruleCollectionName = "testRuleCollection"; + SecurityUserRuleCollectionResource result = await collection.GetAsync(ruleCollectionName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SecurityUserRuleCollectionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Gets security user rule collection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetsSecurityUserRuleCollection() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleCollectionGet.json + // this example is just showing the usage of "SecurityUserRuleCollections_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserConfigurationResource created on azure + // for more information of creating SecurityUserConfigurationResource, please refer to the document of SecurityUserConfigurationResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + ResourceIdentifier securityUserConfigurationResourceId = SecurityUserConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName); + SecurityUserConfigurationResource securityUserConfiguration = client.GetSecurityUserConfigurationResource(securityUserConfigurationResourceId); + + // get the collection of this SecurityUserRuleCollectionResource + SecurityUserRuleCollectionCollection collection = securityUserConfiguration.GetSecurityUserRuleCollections(); + + // invoke the operation + string ruleCollectionName = "testRuleCollection"; + bool result = await collection.ExistsAsync(ruleCollectionName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Gets security user rule collection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetIfExists_GetsSecurityUserRuleCollection() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleCollectionGet.json + // this example is just showing the usage of "SecurityUserRuleCollections_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserConfigurationResource created on azure + // for more information of creating SecurityUserConfigurationResource, please refer to the document of SecurityUserConfigurationResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + ResourceIdentifier securityUserConfigurationResourceId = SecurityUserConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName); + SecurityUserConfigurationResource securityUserConfiguration = client.GetSecurityUserConfigurationResource(securityUserConfigurationResourceId); + + // get the collection of this SecurityUserRuleCollectionResource + SecurityUserRuleCollectionCollection collection = securityUserConfiguration.GetSecurityUserRuleCollections(); + + // invoke the operation + string ruleCollectionName = "testRuleCollection"; + NullableResponse response = await collection.GetIfExistsAsync(ruleCollectionName); + SecurityUserRuleCollectionResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine($"Succeeded with null as result"); + } + else + { + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SecurityUserRuleCollectionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + // Create or Update a Security User Rule Collection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateASecurityUserRuleCollection() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleCollectionPut.json + // this example is just showing the usage of "SecurityUserRuleCollections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserConfigurationResource created on azure + // for more information of creating SecurityUserConfigurationResource, please refer to the document of SecurityUserConfigurationResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + ResourceIdentifier securityUserConfigurationResourceId = SecurityUserConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName); + SecurityUserConfigurationResource securityUserConfiguration = client.GetSecurityUserConfigurationResource(securityUserConfigurationResourceId); + + // get the collection of this SecurityUserRuleCollectionResource + SecurityUserRuleCollectionCollection collection = securityUserConfiguration.GetSecurityUserRuleCollections(); + + // invoke the operation + string ruleCollectionName = "testRuleCollection"; + SecurityUserRuleCollectionData data = new SecurityUserRuleCollectionData() + { + Description = "A sample policy", + AppliesToGroups = +{ +new SecurityUserGroupItem("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup") +}, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, ruleCollectionName, data); + SecurityUserRuleCollectionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SecurityUserRuleCollectionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityUserRuleCollectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityUserRuleCollectionResource.cs new file mode 100644 index 000000000000..93cc82f21323 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityUserRuleCollectionResource.cs @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_SecurityUserRuleCollectionResource + { + // Gets security user rule collection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetsSecurityUserRuleCollection() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleCollectionGet.json + // this example is just showing the usage of "SecurityUserRuleCollections_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserRuleCollectionResource created on azure + // for more information of creating SecurityUserRuleCollectionResource, please refer to the document of SecurityUserRuleCollectionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + string ruleCollectionName = "testRuleCollection"; + ResourceIdentifier securityUserRuleCollectionResourceId = SecurityUserRuleCollectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + SecurityUserRuleCollectionResource securityUserRuleCollection = client.GetSecurityUserRuleCollectionResource(securityUserRuleCollectionResourceId); + + // invoke the operation + SecurityUserRuleCollectionResource result = await securityUserRuleCollection.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SecurityUserRuleCollectionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create or Update a Security User Rule Collection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateASecurityUserRuleCollection() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleCollectionPut.json + // this example is just showing the usage of "SecurityUserRuleCollections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserRuleCollectionResource created on azure + // for more information of creating SecurityUserRuleCollectionResource, please refer to the document of SecurityUserRuleCollectionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + string ruleCollectionName = "testRuleCollection"; + ResourceIdentifier securityUserRuleCollectionResourceId = SecurityUserRuleCollectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + SecurityUserRuleCollectionResource securityUserRuleCollection = client.GetSecurityUserRuleCollectionResource(securityUserRuleCollectionResourceId); + + // invoke the operation + SecurityUserRuleCollectionData data = new SecurityUserRuleCollectionData() + { + Description = "A sample policy", + AppliesToGroups = +{ +new SecurityUserGroupItem("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup") +}, + }; + ArmOperation lro = await securityUserRuleCollection.UpdateAsync(WaitUntil.Completed, data); + SecurityUserRuleCollectionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SecurityUserRuleCollectionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Deletes a Security User Rule collection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeletesASecurityUserRuleCollection() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleCollectionDelete.json + // this example is just showing the usage of "SecurityUserRuleCollections_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserRuleCollectionResource created on azure + // for more information of creating SecurityUserRuleCollectionResource, please refer to the document of SecurityUserRuleCollectionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + string ruleCollectionName = "testRuleCollection"; + ResourceIdentifier securityUserRuleCollectionResourceId = SecurityUserRuleCollectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + SecurityUserRuleCollectionResource securityUserRuleCollection = client.GetSecurityUserRuleCollectionResource(securityUserRuleCollectionResourceId); + + // invoke the operation + bool? force = false; + await securityUserRuleCollection.DeleteAsync(WaitUntil.Completed, force: force); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityUserRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityUserRuleResource.cs new file mode 100644 index 000000000000..d9447209d32f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityUserRuleResource.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_SecurityUserRuleResource + { + // Gets a security user rule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetsASecurityUserRule() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleGet.json + // this example is just showing the usage of "SecurityUserRules_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserRuleResource created on azure + // for more information of creating SecurityUserRuleResource, please refer to the document of SecurityUserRuleResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + string ruleCollectionName = "testRuleCollection"; + string ruleName = "SampleUserRule"; + ResourceIdentifier securityUserRuleResourceId = SecurityUserRuleResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName); + SecurityUserRuleResource securityUserRule = client.GetSecurityUserRuleResource(securityUserRuleResourceId); + + // invoke the operation + SecurityUserRuleResource result = await securityUserRule.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SecurityUserRuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create a security user rule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateASecurityUserRule() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRulePut.json + // this example is just showing the usage of "SecurityUserRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserRuleResource created on azure + // for more information of creating SecurityUserRuleResource, please refer to the document of SecurityUserRuleResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + string ruleCollectionName = "testRuleCollection"; + string ruleName = "SampleUserRule"; + ResourceIdentifier securityUserRuleResourceId = SecurityUserRuleResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName); + SecurityUserRuleResource securityUserRule = client.GetSecurityUserRuleResource(securityUserRuleResourceId); + + // invoke the operation + SecurityUserRuleData data = new SecurityUserRuleData() + { + Description = "Sample User Rule", + Protocol = SecurityConfigurationRuleProtocol.Tcp, + Sources = +{ +new AddressPrefixItem() +{ +AddressPrefix = "*", +AddressPrefixType = AddressPrefixType.IPPrefix, +} +}, + Destinations = +{ +new AddressPrefixItem() +{ +AddressPrefix = "*", +AddressPrefixType = AddressPrefixType.IPPrefix, +} +}, + SourcePortRanges = +{ +"0-65535" +}, + DestinationPortRanges = +{ +"22" +}, + Direction = SecurityConfigurationRuleDirection.Inbound, + }; + ArmOperation lro = await securityUserRule.UpdateAsync(WaitUntil.Completed, data); + SecurityUserRuleResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SecurityUserRuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Delete a security user rule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteASecurityUserRule() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleDelete.json + // this example is just showing the usage of "SecurityUserRules_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SecurityUserRuleResource created on azure + // for more information of creating SecurityUserRuleResource, please refer to the document of SecurityUserRuleResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + string ruleCollectionName = "testRuleCollection"; + string ruleName = "SampleUserRule"; + ResourceIdentifier securityUserRuleResourceId = SecurityUserRuleResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName); + SecurityUserRuleResource securityUserRule = client.GetSecurityUserRuleResource(securityUserRuleResourceId); + + // invoke the operation + bool? force = false; + await securityUserRule.DeleteAsync(WaitUntil.Completed, force: force); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyCollection.cs index 4719af6758da..8509be91f25b 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ServiceEndpointPolicyCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetServiceEndPointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyGet.json // this example is just showing the usage of "ServiceEndpointPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetServiceEndPointPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetServiceEndPointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyGet.json // this example is just showing the usage of "ServiceEndpointPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Exists_GetServiceEndPointPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetServiceEndPointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyGet.json // this example is just showing the usage of "ServiceEndpointPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetServiceEndPointPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyCreate.json // this example is just showing the usage of "ServiceEndpointPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -165,7 +165,7 @@ public async Task CreateOrUpdate_CreateServiceEndpointPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateServiceEndpointPolicyWithDefinition() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyCreateWithDefinition.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyCreateWithDefinition.json // this example is just showing the usage of "ServiceEndpointPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -217,7 +217,7 @@ public async Task CreateOrUpdate_CreateServiceEndpointPolicyWithDefinition() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListResourceGroupServiceEndpointPolicies() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyList.json // this example is just showing the usage of "ServiceEndpointPolicies_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionCollection.cs index e475607aee96..3ed7651ccec7 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ServiceEndpointPolicyDefinitionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetServiceEndpointDefinitionInServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyDefinitionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyDefinitionGet.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetServiceEndpointDefinitionInServiceEndpointPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetServiceEndpointDefinitionInServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyDefinitionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyDefinitionGet.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetServiceEndpointDefinitionInServiceEndpointPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetServiceEndpointDefinitionInServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyDefinitionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyDefinitionGet.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_GetServiceEndpointDefinitionInServiceEndpointPolic [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateServiceEndpointPolicyDefinition() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyDefinitionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyDefinitionCreate.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -173,7 +173,7 @@ public async Task CreateOrUpdate_CreateServiceEndpointPolicyDefinition() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListServiceEndpointDefinitionsInServiceEndPointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyDefinitionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyDefinitionList.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionResource.cs index a929bf5c5a6e..3d44d7d50a0c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ServiceEndpointPolicyDefinitionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteServiceEndpointPolicyDefinitionsFromServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyDefinitionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyDefinitionDelete.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -47,7 +47,7 @@ public async Task Delete_DeleteServiceEndpointPolicyDefinitionsFromServiceEndpoi [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetServiceEndpointDefinitionInServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyDefinitionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyDefinitionGet.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetServiceEndpointDefinitionInServiceEndpointPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateServiceEndpointPolicyDefinition() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyDefinitionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyDefinitionCreate.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyResource.cs index 52fb9b849cf4..0548c041b0fc 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ServiceEndpointPolicyResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyDelete.json // this example is just showing the usage of "ServiceEndpointPolicies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteServiceEndpointPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetServiceEndPointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyGet.json // this example is just showing the usage of "ServiceEndpointPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetServiceEndPointPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateServiceEndpointPolicyTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyUpdateTags.json // this example is just showing the usage of "ServiceEndpointPolicies_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_UpdateServiceEndpointPolicyTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetServiceEndpointPoliciesByServiceEndpointPolicy_ListAllServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyListAll.json // this example is just showing the usage of "ServiceEndpointPolicies_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetCollection.cs index eab2ec81feb0..7cc471063cb8 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_SubnetCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGet.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGet.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_GetSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGet.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_GetSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSubnetWithADelegation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetGetWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGetWithDelegation.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -164,7 +164,7 @@ public async Task Get_GetSubnetWithADelegation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetSubnetWithADelegation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetGetWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGetWithDelegation.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -195,7 +195,7 @@ public async Task Exists_GetSubnetWithADelegation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetSubnetWithADelegation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetGetWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGetWithDelegation.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -238,7 +238,7 @@ public async Task GetIfExists_GetSubnetWithADelegation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSubnetWithSharingScope() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetGetWithSharingScope.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGetWithSharingScope.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -273,7 +273,7 @@ public async Task Get_GetSubnetWithSharingScope() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetSubnetWithSharingScope() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetGetWithSharingScope.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGetWithSharingScope.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -304,7 +304,7 @@ public async Task Exists_GetSubnetWithSharingScope() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetSubnetWithSharingScope() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetGetWithSharingScope.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGetWithSharingScope.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -347,7 +347,7 @@ public async Task GetIfExists_GetSubnetWithSharingScope() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetCreate.json // this example is just showing the usage of "Subnets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -387,7 +387,7 @@ public async Task CreateOrUpdate_CreateSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateSubnetWithADelegation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetCreateWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetCreateWithDelegation.json // this example is just showing the usage of "Subnets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -427,7 +427,7 @@ public async Task CreateOrUpdate_CreateSubnetWithADelegation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateSubnetWithServiceEndpoints() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetCreateServiceEndpoint.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetCreateServiceEndpoint.json // this example is just showing the usage of "Subnets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -474,7 +474,7 @@ public async Task CreateOrUpdate_CreateSubnetWithServiceEndpoints() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateSubnetWithSharingScope() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetCreateWithSharingScope.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetCreateWithSharingScope.json // this example is just showing the usage of "Subnets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -514,7 +514,7 @@ public async Task CreateOrUpdate_CreateSubnetWithSharingScope() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSubnets() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetList.json // this example is just showing the usage of "Subnets_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetResource.cs index ee1cd55ef665..8632ba98575e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SubnetResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetDelete.json // this example is just showing the usage of "Subnets_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGet.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Get_GetSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSubnetWithADelegation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetGetWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGetWithDelegation.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -112,7 +112,7 @@ public async Task Get_GetSubnetWithADelegation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSubnetWithSharingScope() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetGetWithSharingScope.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGetWithSharingScope.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -144,7 +144,7 @@ public async Task Get_GetSubnetWithSharingScope() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetCreate.json // this example is just showing the usage of "Subnets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -181,7 +181,7 @@ public async Task Update_CreateSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateSubnetWithADelegation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetCreateWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetCreateWithDelegation.json // this example is just showing the usage of "Subnets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -218,7 +218,7 @@ public async Task Update_CreateSubnetWithADelegation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateSubnetWithServiceEndpoints() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetCreateServiceEndpoint.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetCreateServiceEndpoint.json // this example is just showing the usage of "Subnets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -262,7 +262,7 @@ public async Task Update_CreateSubnetWithServiceEndpoints() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateSubnetWithSharingScope() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetCreateWithSharingScope.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetCreateWithSharingScope.json // this example is just showing the usage of "Subnets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -299,7 +299,7 @@ public async Task Update_CreateSubnetWithSharingScope() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task PrepareNetworkPolicies_PrepareNetworkPolicies() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetPrepareNetworkPolicies.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetPrepareNetworkPolicies.json // this example is just showing the usage of "Subnets_PrepareNetworkPolicies" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -331,7 +331,7 @@ public async Task PrepareNetworkPolicies_PrepareNetworkPolicies() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task UnprepareNetworkPolicies_UnprepareNetworkPolicies() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetUnprepareNetworkPolicies.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetUnprepareNetworkPolicies.json // this example is just showing the usage of "Subnets_UnprepareNetworkPolicies" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -363,7 +363,7 @@ public async Task UnprepareNetworkPolicies_UnprepareNetworkPolicies() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetResourceNavigationLinks_GetResourceNavigationLinks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGetResourceNavigationLinks.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetResourceNavigationLinks.json // this example is just showing the usage of "ResourceNavigationLinks_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -394,7 +394,7 @@ public async Task GetResourceNavigationLinks_GetResourceNavigationLinks() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetServiceAssociationLinks_GetServiceAssociationLinks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGetServiceAssociationLinks.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetServiceAssociationLinks.json // this example is just showing the usage of "ServiceAssociationLinks_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionCollection.cs index a6464f802a94..b647bcfe46db 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_SubscriptionNetworkManagerConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionSubscriptionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionSubscriptionPut.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task CreateOrUpdate_CreateOrUpdateSubscriptionNetworkManagerConnect [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionSubscriptionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionSubscriptionGet.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_GetSubscriptionNetworkManagerConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionSubscriptionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionSubscriptionGet.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task Exists_GetSubscriptionNetworkManagerConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionSubscriptionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionSubscriptionGet.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task GetIfExists_GetSubscriptionNetworkManagerConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionSubscriptionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionSubscriptionList.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionResource.cs index 37e8a2d36660..448a1063a69a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SubscriptionNetworkManagerConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionSubscriptionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionSubscriptionPut.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Update_CreateOrUpdateSubscriptionNetworkManagerConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionSubscriptionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionSubscriptionGet.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Get_GetSubscriptionNetworkManagerConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionSubscriptionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionSubscriptionDelete.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 6bf943552272..ace6c173f2e0 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -21,7 +21,7 @@ public partial class Sample_SubscriptionResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableDelegations_GetAvailableDelegations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AvailableDelegationsSubscriptionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AvailableDelegationsSubscriptionGet.json // this example is just showing the usage of "AvailableDelegations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task GetAvailableDelegations_GetAvailableDelegations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableServiceAliases_GetAvailableServiceAliases() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AvailableServiceAliasesList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AvailableServiceAliasesList.json // this example is just showing the usage of "AvailableServiceAliases_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task GetAvailableServiceAliases_GetAvailableServiceAliases() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAzureFirewallFqdnTags_ListAllAzureFirewallFQDNTagsForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallFqdnTagsListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallFqdnTagsListBySubscription.json // this example is just showing the usage of "AzureFirewallFqdnTags_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -107,7 +107,7 @@ public async Task GetAzureFirewallFqdnTags_ListAllAzureFirewallFQDNTagsForAGiven [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableEndpointServices_EndpointServicesList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/EndpointServicesList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/EndpointServicesList.json // this example is just showing the usage of "AvailableEndpointServices_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -136,7 +136,7 @@ public async Task GetAvailableEndpointServices_EndpointServicesList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetExpressRouteServiceProviders_ListExpressRouteProviders() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteProviderList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteProviderList.json // this example is just showing the usage of "ExpressRouteServiceProviders_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -164,7 +164,7 @@ public async Task GetExpressRouteServiceProviders_ListExpressRouteProviders() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailablePrivateEndpointTypes_GetAvailablePrivateEndpointTypes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AvailablePrivateEndpointTypesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AvailablePrivateEndpointTypesGet.json // this example is just showing the usage of "AvailablePrivateEndpointTypes_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -193,7 +193,7 @@ public async Task GetAvailablePrivateEndpointTypes_GetAvailablePrivateEndpointTy [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckPrivateLinkServiceVisibilityPrivateLinkService_CheckPrivateLinkServiceVisibility() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CheckPrivateLinkServiceVisibility.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CheckPrivateLinkServiceVisibility.json // this example is just showing the usage of "PrivateLinkServices_CheckPrivateLinkServiceVisibility" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -224,7 +224,7 @@ public async Task CheckPrivateLinkServiceVisibilityPrivateLinkService_CheckPriva [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAutoApprovedPrivateLinkServicesPrivateLinkServices_GetListOfPrivateLinkServiceIdThatCanBeLinkedToAPrivateEndPointWithAutoApproved() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AutoApprovedPrivateLinkServicesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AutoApprovedPrivateLinkServicesGet.json // this example is just showing the usage of "PrivateLinkServices_ListAutoApprovedPrivateLinkServices" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -253,7 +253,7 @@ public async Task GetAutoApprovedPrivateLinkServicesPrivateLinkServices_GetListO [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetBgpServiceCommunities_ServiceCommunityList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceCommunityList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceCommunityList.json // this example is just showing the usage of "BgpServiceCommunities_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -281,7 +281,7 @@ public async Task GetBgpServiceCommunities_ServiceCommunityList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetServiceTag_GetListOfServiceTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceTagsList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceTagsList.json // this example is just showing the usage of "ServiceTags_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -307,7 +307,7 @@ public async Task GetServiceTag_GetListOfServiceTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAllServiceTagInformation_GetListOfServiceTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceTagInformationListResult.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceTagInformationListResult.json // this example is just showing the usage of "ServiceTagInformation_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -336,7 +336,7 @@ public async Task GetAllServiceTagInformation_GetListOfServiceTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAllServiceTagInformation_GetListOfServiceTagsWithNoAddressPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceTagInformationListResultWithNoAddressPrefixes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceTagInformationListResultWithNoAddressPrefixes.json // this example is just showing the usage of "ServiceTagInformation_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -366,7 +366,7 @@ public async Task GetAllServiceTagInformation_GetListOfServiceTagsWithNoAddressP [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAllServiceTagInformation_GetListOfServiceTagsWithTagName() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceTagInformationListResultWithTagname.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceTagInformationListResultWithTagname.json // this example is just showing the usage of "ServiceTagInformation_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -396,7 +396,7 @@ public async Task GetAllServiceTagInformation_GetListOfServiceTagsWithTagName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetUsages_ListUsages() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/UsageList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/UsageList.json // this example is just showing the usage of "Usages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -425,7 +425,7 @@ public async Task GetUsages_ListUsages() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetUsages_ListUsagesSpacedLocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/UsageListSpacedLocation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/UsageListSpacedLocation.json // this example is just showing the usage of "Usages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteCollection.cs index 4181d6680185..979744cb603e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualApplianceSiteCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSiteGet.json // this example is just showing the usage of "VirtualApplianceSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetNetworkVirtualApplianceSite() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSiteGet.json // this example is just showing the usage of "VirtualApplianceSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_GetNetworkVirtualApplianceSite() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSiteGet.json // this example is just showing the usage of "VirtualApplianceSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_GetNetworkVirtualApplianceSite() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSitePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSitePut.json // this example is just showing the usage of "VirtualApplianceSites_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -175,7 +175,7 @@ public async Task CreateOrUpdate_CreateNetworkVirtualApplianceSite() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllNetworkVirtualApplianceSitesForAGivenNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSiteList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSiteList.json // this example is just showing the usage of "VirtualApplianceSites_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteResource.cs index a2956d766baf..1c4a79e2682f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteResource.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualApplianceSiteResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSiteDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSiteDelete.json // this example is just showing the usage of "VirtualApplianceSites_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteNetworkVirtualApplianceSite() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSiteGet.json // this example is just showing the usage of "VirtualApplianceSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Get_GetNetworkVirtualApplianceSite() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSitePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSitePut.json // this example is just showing the usage of "VirtualApplianceSites_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubCollection.cs index b4d0814ae7cc..2a783100a47c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualHubCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualHubGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubGet.json // this example is just showing the usage of "VirtualHubs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_VirtualHubGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VirtualHubGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubGet.json // this example is just showing the usage of "VirtualHubs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Exists_VirtualHubGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_VirtualHubGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubGet.json // this example is just showing the usage of "VirtualHubs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_VirtualHubGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VirtualHubPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubPut.json // this example is just showing the usage of "VirtualHubs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -172,7 +172,7 @@ public async Task CreateOrUpdate_VirtualHubPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualHubListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubListByResourceGroup.json // this example is just showing the usage of "VirtualHubs_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubResource.cs index d87de91dc855..032cea138ff7 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VirtualHubResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualHubGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubGet.json // this example is just showing the usage of "VirtualHubs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_VirtualHubGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VirtualHubUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubUpdateTags.json // this example is just showing the usage of "VirtualHubs_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Update_VirtualHubUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VirtualHubDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubDelete.json // this example is just showing the usage of "VirtualHubs_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Delete_VirtualHubDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualHubs_VirtualHubList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubList.json // this example is just showing the usage of "VirtualHubs_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -150,7 +150,7 @@ public async Task GetVirtualHubs_VirtualHubList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualHubEffectiveRoutes_EffectiveRoutesForAConnectionResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/EffectiveRoutesListForConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/EffectiveRoutesListForConnection.json // this example is just showing the usage of "VirtualHubs_GetEffectiveVirtualHubRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -183,7 +183,7 @@ public async Task GetVirtualHubEffectiveRoutes_EffectiveRoutesForAConnectionReso [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualHubEffectiveRoutes_EffectiveRoutesForARouteTableResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/EffectiveRoutesListForRouteTable.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/EffectiveRoutesListForRouteTable.json // this example is just showing the usage of "VirtualHubs_GetEffectiveVirtualHubRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -216,7 +216,7 @@ public async Task GetVirtualHubEffectiveRoutes_EffectiveRoutesForARouteTableReso [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualHubEffectiveRoutes_EffectiveRoutesForTheVirtualHub() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/EffectiveRoutesListForVirtualHub.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/EffectiveRoutesListForVirtualHub.json // this example is just showing the usage of "VirtualHubs_GetEffectiveVirtualHubRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -245,7 +245,7 @@ public async Task GetVirtualHubEffectiveRoutes_EffectiveRoutesForTheVirtualHub() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualHubInboundRoutes_InboundRoutesForTheVirtualHubOnAParticularConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/GetInboundRoutes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GetInboundRoutes.json // this example is just showing the usage of "VirtualHubs_GetInboundRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -278,7 +278,7 @@ public async Task GetVirtualHubInboundRoutes_InboundRoutesForTheVirtualHubOnAPar [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualHubOutboundRoutes_OutboundRoutesForTheVirtualHubOnAParticularConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/GetOutboundRoutes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GetOutboundRoutes.json // this example is just showing the usage of "VirtualHubs_GetOutboundRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Collection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Collection.cs index 56bb0502dfd4..80ee151f9ebd 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Collection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Collection.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualHubRouteTableV2Collection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubRouteTableV2Get.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubRouteTableV2Get.json // this example is just showing the usage of "VirtualHubRouteTableV2s_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubRouteTableV2Get.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubRouteTableV2Get.json // this example is just showing the usage of "VirtualHubRouteTableV2s_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubRouteTableV2Get.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubRouteTableV2Get.json // this example is just showing the usage of "VirtualHubRouteTableV2s_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VirtualHubRouteTableV2Put() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubRouteTableV2Put.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubRouteTableV2Put.json // this example is just showing the usage of "VirtualHubRouteTableV2s_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -200,7 +200,7 @@ public async Task CreateOrUpdate_VirtualHubRouteTableV2Put() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualHubRouteTableV2List() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubRouteTableV2List.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubRouteTableV2List.json // this example is just showing the usage of "VirtualHubRouteTableV2s_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Resource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Resource.cs index 38f148cd9072..176e6c0d3a2e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Resource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Resource.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualHubRouteTableV2Resource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubRouteTableV2Get.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubRouteTableV2Get.json // this example is just showing the usage of "VirtualHubRouteTableV2s_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VirtualHubRouteTableV2Put() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubRouteTableV2Put.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubRouteTableV2Put.json // this example is just showing the usage of "VirtualHubRouteTableV2s_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task Update_VirtualHubRouteTableV2Put() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VirtualHubRouteTableV2Delete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubRouteTableV2Delete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubRouteTableV2Delete.json // this example is just showing the usage of "VirtualHubRouteTableV2s_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkCollection.cs index 2fc188189d03..f0cc1aec5dc6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_VirtualNetworkCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGet.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetVirtualNetwork() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetVirtualNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGet.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetVirtualNetwork() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetVirtualNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGet.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_GetVirtualNetwork() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkWithADelegatedSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGetWithSubnetDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetWithSubnetDelegation.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task Get_GetVirtualNetworkWithADelegatedSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetVirtualNetworkWithADelegatedSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGetWithSubnetDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetWithSubnetDelegation.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -191,7 +191,7 @@ public async Task Exists_GetVirtualNetworkWithADelegatedSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetVirtualNetworkWithADelegatedSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGetWithSubnetDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetWithSubnetDelegation.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -233,7 +233,7 @@ public async Task GetIfExists_GetVirtualNetworkWithADelegatedSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkWithServiceAssociationLinks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGetWithServiceAssociationLink.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetWithServiceAssociationLink.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -267,7 +267,7 @@ public async Task Get_GetVirtualNetworkWithServiceAssociationLinks() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetVirtualNetworkWithServiceAssociationLinks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGetWithServiceAssociationLink.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetWithServiceAssociationLink.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -297,7 +297,7 @@ public async Task Exists_GetVirtualNetworkWithServiceAssociationLinks() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetVirtualNetworkWithServiceAssociationLinks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGetWithServiceAssociationLink.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetWithServiceAssociationLink.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -339,7 +339,7 @@ public async Task GetIfExists_GetVirtualNetworkWithServiceAssociationLinks() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkCreate.json // this example is just showing the usage of "VirtualNetworks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -383,7 +383,7 @@ public async Task CreateOrUpdate_CreateVirtualNetwork() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetworkWithBgpCommunities() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkCreateWithBgpCommunities.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkCreateWithBgpCommunities.json // this example is just showing the usage of "VirtualNetworks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -435,7 +435,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithBgpCommunities() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetworkWithDelegatedSubnets() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkCreateSubnetWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkCreateSubnetWithDelegation.json // this example is just showing the usage of "VirtualNetworks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -494,7 +494,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithDelegatedSubnets() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetworkWithEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkCreateWithEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkCreateWithEncryption.json // this example is just showing the usage of "VirtualNetworks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -549,7 +549,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithEncryption() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetworkWithServiceEndpoints() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkCreateServiceEndpoints.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkCreateServiceEndpoints.json // this example is just showing the usage of "VirtualNetworks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -607,7 +607,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithServiceEndpoints() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetworkWithServiceEndpointsAndServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkCreateServiceEndpointPolicy.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkCreateServiceEndpointPolicy.json // this example is just showing the usage of "VirtualNetworks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -672,7 +672,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithServiceEndpointsAndServ [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetworkWithSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkCreateSubnet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkCreateSubnet.json // this example is just showing the usage of "VirtualNetworks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -723,7 +723,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetworkWithSubnetContainingAddressPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkCreateSubnetWithAddressPrefixes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkCreateSubnetWithAddressPrefixes.json // this example is just showing the usage of "VirtualNetworks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -777,7 +777,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithSubnetContainingAddress [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListVirtualNetworksInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkList.json // this example is just showing the usage of "VirtualNetworks_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayCollection.cs index 009379bfb0f9..6dd296209ea6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_VirtualNetworkGatewayCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_UpdateVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayUpdate.json // this example is just showing the usage of "VirtualNetworkGateways_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task CreateOrUpdate_UpdateVirtualNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_UpdateVirtualNetworkScalableGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkScalableGatewayUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkScalableGatewayUpdate.json // this example is just showing the usage of "VirtualNetworkGateways_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -271,7 +271,7 @@ public async Task CreateOrUpdate_UpdateVirtualNetworkScalableGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -305,7 +305,7 @@ public async Task Get_GetVirtualNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -335,7 +335,7 @@ public async Task Exists_GetVirtualNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -377,7 +377,7 @@ public async Task GetIfExists_GetVirtualNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkScalableGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkScalableGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkScalableGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -411,7 +411,7 @@ public async Task Get_GetVirtualNetworkScalableGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetVirtualNetworkScalableGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkScalableGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkScalableGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -441,7 +441,7 @@ public async Task Exists_GetVirtualNetworkScalableGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetVirtualNetworkScalableGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkScalableGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkScalableGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -483,7 +483,7 @@ public async Task GetIfExists_GetVirtualNetworkScalableGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListVirtualNetworkGatewaysinResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayList.json // this example is just showing the usage of "VirtualNetworkGateways_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionCollection.cs index 6f85c0b8f3c8..f7582b8c6194 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_VirtualNetworkGatewayConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetworkGatewayConnectionS2S() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionCreate.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -138,7 +138,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkGatewayConnectionS2S() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionGet.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -172,7 +172,7 @@ public async Task Get_GetVirtualNetworkGatewayConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionGet.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -202,7 +202,7 @@ public async Task Exists_GetVirtualNetworkGatewayConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionGet.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -244,7 +244,7 @@ public async Task GetIfExists_GetVirtualNetworkGatewayConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListVirtualNetworkGatewayConnectionsinResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionsList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionsList.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionResource.cs index a6448148fe3a..1fb3388d7236 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualNetworkGatewayConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task VpnDeviceConfigurationScript_GetVPNDeviceConfigurationScript() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayVpnDeviceConfigurationScript.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayVpnDeviceConfigurationScript.json // this example is just showing the usage of "VirtualNetworkGateways_VpnDeviceConfigurationScript" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task VpnDeviceConfigurationScript_GetVPNDeviceConfigurationScript() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionGet.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Get_GetVirtualNetworkGatewayConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionDelete.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,7 +111,7 @@ public async Task Delete_DeleteVirtualNetworkGatewayConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateVirtualNetworkGatewayConnectionTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionUpdateTags.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -151,7 +151,7 @@ public async Task Update_UpdateVirtualNetworkGatewayConnectionTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task SetSharedKey_SetVirtualNetworkGatewayConnectionSharedKey() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionSetSharedKey.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionSetSharedKey.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_SetSharedKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -180,7 +180,7 @@ public async Task SetSharedKey_SetVirtualNetworkGatewayConnectionSharedKey() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSharedKey_GetVirtualNetworkGatewayConnectionSharedKey() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionGetSharedKey.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionGetSharedKey.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_GetSharedKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -207,7 +207,7 @@ public async Task GetSharedKey_GetVirtualNetworkGatewayConnectionSharedKey() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ResetSharedKey_ResetVirtualNetworkGatewayConnectionSharedKey() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionResetSharedKey.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionResetSharedKey.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_ResetSharedKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -236,7 +236,7 @@ public async Task ResetSharedKey_ResetVirtualNetworkGatewayConnectionSharedKey() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayConnectionWithFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionStartPacketCaptureFilterData.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionStartPacketCaptureFilterData.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -268,7 +268,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayCo [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayConnectionWithoutFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionStartPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionStartPacketCapture.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -296,7 +296,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayCo [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StopPacketCapture_StopPacketCaptureOnVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionStopPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionStopPacketCapture.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_StopPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -328,7 +328,7 @@ public async Task StopPacketCapture_StopPacketCaptureOnVirtualNetworkGatewayConn [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIkeSas_GetVirtualNetworkGatewayConnectionIkeSa() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionGetIkeSas.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionGetIkeSas.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_GetIkeSas" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -356,7 +356,7 @@ public async Task GetIkeSas_GetVirtualNetworkGatewayConnectionIkeSa() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ResetConnection_ResetVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionReset.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionReset.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_ResetConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleCollection.cs index 22d29cc14d21..d165c8cb28c7 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualNetworkGatewayNatRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualNetworkGatewayNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayNatRuleGet.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_VirtualNetworkGatewayNatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VirtualNetworkGatewayNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayNatRuleGet.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_VirtualNetworkGatewayNatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_VirtualNetworkGatewayNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayNatRuleGet.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_VirtualNetworkGatewayNatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VirtualNetworkGatewayNatRulePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayNatRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayNatRulePut.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -187,7 +187,7 @@ public async Task CreateOrUpdate_VirtualNetworkGatewayNatRulePut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualNetworkGatewayNatRuleList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayNatRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayNatRuleList.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_ListByVirtualNetworkGateway" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleResource.cs index 7907a7d256cb..c7f327407e6b 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualNetworkGatewayNatRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualNetworkGatewayNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayNatRuleGet.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_VirtualNetworkGatewayNatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VirtualNetworkGatewayNatRulePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayNatRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayNatRulePut.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -107,7 +107,7 @@ public async Task Update_VirtualNetworkGatewayNatRulePut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VirtualNetworkGatewayNatRuleDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayNatRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayNatRuleDelete.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayResource.cs index c95679bef7b2..907f7c5dcf6e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayResource.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualNetworkGatewayResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetVirtualNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkScalableGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkScalableGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkScalableGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetVirtualNetworkScalableGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayDelete.json // this example is just showing the usage of "VirtualNetworkGateways_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -109,7 +109,7 @@ public async Task Delete_DeleteVirtualNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateVirtualNetworkGatewayTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayUpdateTags.json // this example is just showing the usage of "VirtualNetworkGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -149,7 +149,7 @@ public async Task Update_UpdateVirtualNetworkGatewayTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetConnections_VirtualNetworkGatewaysListConnections() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewaysListConnections.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewaysListConnections.json // this example is just showing the usage of "VirtualNetworkGateways_ListConnections" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -179,7 +179,7 @@ public async Task GetConnections_VirtualNetworkGatewaysListConnections() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Reset_ResetVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayReset.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayReset.json // this example is just showing the usage of "VirtualNetworkGateways_Reset" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -211,7 +211,7 @@ public async Task Reset_ResetVirtualNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ResetVpnClientSharedKey_ResetVpnClientSharedKey() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayResetVpnClientSharedKey.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayResetVpnClientSharedKey.json // this example is just showing the usage of "VirtualNetworkGateways_ResetVpnClientSharedKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -238,7 +238,7 @@ public async Task ResetVpnClientSharedKey_ResetVpnClientSharedKey() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GenerateVpnClientPackage_GenerateVPNClientPackage() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGenerateVpnClientPackage.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGenerateVpnClientPackage.json // this example is just showing the usage of "VirtualNetworkGateways_Generatevpnclientpackage" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -267,7 +267,7 @@ public async Task GenerateVpnClientPackage_GenerateVPNClientPackage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GenerateVpnProfile_GenerateVirtualNetworkGatewayVPNProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGenerateVpnProfile.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGenerateVpnProfile.json // this example is just showing the usage of "VirtualNetworkGateways_GenerateVpnProfile" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -296,7 +296,7 @@ public async Task GenerateVpnProfile_GenerateVirtualNetworkGatewayVPNProfile() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVpnProfilePackageUrl_GetVirtualNetworkGatewayVPNProfilePackageURL() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGetVpnProfilePackageUrl.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGetVpnProfilePackageUrl.json // this example is just showing the usage of "VirtualNetworkGateways_GetVpnProfilePackageUrl" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -324,7 +324,7 @@ public async Task GetVpnProfilePackageUrl_GetVirtualNetworkGatewayVPNProfilePack [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetBgpPeerStatus_GetVirtualNetworkGatewayBGPPeerStatus() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGetBGPPeerStatus.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGetBGPPeerStatus.json // this example is just showing the usage of "VirtualNetworkGateways_GetBgpPeerStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -352,7 +352,7 @@ public async Task GetBgpPeerStatus_GetVirtualNetworkGatewayBGPPeerStatus() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task SupportedVpnDevices_ListVirtualNetworkGatewaySupportedVPNDevices() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewaySupportedVpnDevice.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewaySupportedVpnDevice.json // this example is just showing the usage of "VirtualNetworkGateways_SupportedVpnDevices" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -379,7 +379,7 @@ public async Task SupportedVpnDevices_ListVirtualNetworkGatewaySupportedVPNDevic [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetLearnedRoutes_GetVirtualNetworkGatewayLearnedRoutes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayLearnedRoutes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayLearnedRoutes.json // this example is just showing the usage of "VirtualNetworkGateways_GetLearnedRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -407,7 +407,7 @@ public async Task GetLearnedRoutes_GetVirtualNetworkGatewayLearnedRoutes() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAdvertisedRoutes_GetVirtualNetworkGatewayAdvertisedRoutes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGetAdvertisedRoutes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGetAdvertisedRoutes.json // this example is just showing the usage of "VirtualNetworkGateways_GetAdvertisedRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -436,7 +436,7 @@ public async Task GetAdvertisedRoutes_GetVirtualNetworkGatewayAdvertisedRoutes() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task SetVpnclientIPsecParameters_SetVirtualNetworkGatewayVpnClientIpsecParameters() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewaySetVpnClientIpsecParameters.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewaySetVpnClientIpsecParameters.json // this example is just showing the usage of "VirtualNetworkGateways_SetVpnclientIPsecParameters" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -465,7 +465,7 @@ public async Task SetVpnclientIPsecParameters_SetVirtualNetworkGatewayVpnClientI [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVpnclientIPsecParameters_GetVirtualNetworkGatewayVpnClientIpsecParameters() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json // this example is just showing the usage of "VirtualNetworkGateways_GetVpnclientIPsecParameters" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -493,7 +493,7 @@ public async Task GetVpnclientIPsecParameters_GetVirtualNetworkGatewayVpnClientI [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayWithFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayStartPacketCaptureFilterData.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayStartPacketCaptureFilterData.json // this example is just showing the usage of "VirtualNetworkGateways_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -525,7 +525,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayWi [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayWithoutFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayStartPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayStartPacketCapture.json // this example is just showing the usage of "VirtualNetworkGateways_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -553,7 +553,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayWi [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StopPacketCapture_StopPacketCaptureOnVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayStopPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayStopPacketCapture.json // this example is just showing the usage of "VirtualNetworkGateways_StopPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -585,7 +585,7 @@ public async Task StopPacketCapture_StopPacketCaptureOnVirtualNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVpnclientConnectionHealth_GetVirtualNetworkGatewayVpnclientConnectionHealth() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGetVpnclientConnectionHealth.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGetVpnclientConnectionHealth.json // this example is just showing the usage of "VirtualNetworkGateways_GetVpnclientConnectionHealth" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -613,7 +613,7 @@ public async Task GetVpnclientConnectionHealth_GetVirtualNetworkGatewayVpnclient [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task DisconnectVirtualNetworkGatewayVpnConnections_DisconnectVpnConnectionsFromVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewaysDisconnectP2sVpnConnections.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewaysDisconnectP2sVpnConnections.json // this example is just showing the usage of "VirtualNetworkGateways_DisconnectVirtualNetworkGatewayVpnConnections" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringCollection.cs index 8e1ef6d88563..df313ecaf210 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualNetworkPeeringCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_GetPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_GetPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPeeringWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -164,7 +164,7 @@ public async Task Get_GetPeeringWithRemoteVirtualNetworkEncryption() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPeeringWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -195,7 +195,7 @@ public async Task Exists_GetPeeringWithRemoteVirtualNetworkEncryption() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetPeeringWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -238,7 +238,7 @@ public async Task GetIfExists_GetPeeringWithRemoteVirtualNetworkEncryption() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringCreate.json // this example is just showing the usage of "VirtualNetworkPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -282,7 +282,7 @@ public async Task CreateOrUpdate_CreatePeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePeeringWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -326,7 +326,7 @@ public async Task CreateOrUpdate_CreatePeeringWithRemoteVirtualNetworkEncryption [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_SyncPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringSync.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringSync.json // this example is just showing the usage of "VirtualNetworkPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -371,7 +371,7 @@ public async Task CreateOrUpdate_SyncPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPeerings() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringList.json // this example is just showing the usage of "VirtualNetworkPeerings_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -408,7 +408,7 @@ public async Task GetAll_ListPeerings() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPeeringsWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringListWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringListWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringResource.cs index b0dc37e06d79..4ad1be57efb2 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringResource.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualNetworkPeeringResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletePeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringDelete.json // this example is just showing the usage of "VirtualNetworkPeerings_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeletePeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Get_GetPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPeeringWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -112,7 +112,7 @@ public async Task Get_GetPeeringWithRemoteVirtualNetworkEncryption() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatePeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringCreate.json // this example is just showing the usage of "VirtualNetworkPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -153,7 +153,7 @@ public async Task Update_CreatePeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatePeeringWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -194,7 +194,7 @@ public async Task Update_CreatePeeringWithRemoteVirtualNetworkEncryption() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_SyncPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringSync.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringSync.json // this example is just showing the usage of "VirtualNetworkPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkResource.cs index 082d153f6d24..392e240f4dc7 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VirtualNetworkResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkManagerEffectiveConnectivityConfigurations_ListEffectiveConnectivityConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json // this example is just showing the usage of "ListNetworkManagerEffectiveConnectivityConfigurations" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task GetNetworkManagerEffectiveConnectivityConfigurations_ListEffec [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkManagerEffectiveSecurityAdminRules_ListEffectiveSecurityAdminRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerEffectiveSecurityAdminRulesList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerEffectiveSecurityAdminRulesList.json // this example is just showing the usage of "ListNetworkManagerEffectiveSecurityAdminRules" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task GetNetworkManagerEffectiveSecurityAdminRules_ListEffectiveSecu [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteVirtualNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkDelete.json // this example is just showing the usage of "VirtualNetworks_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -116,7 +116,7 @@ public async Task Delete_DeleteVirtualNetwork() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGet.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,7 +147,7 @@ public async Task Get_GetVirtualNetwork() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkWithADelegatedSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGetWithSubnetDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetWithSubnetDelegation.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task Get_GetVirtualNetworkWithADelegatedSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkWithServiceAssociationLinks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGetWithServiceAssociationLink.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetWithServiceAssociationLink.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -209,7 +209,7 @@ public async Task Get_GetVirtualNetworkWithServiceAssociationLinks() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateVirtualNetworkTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkUpdateTags.json // this example is just showing the usage of "VirtualNetworks_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -248,7 +248,7 @@ public async Task Update_UpdateVirtualNetworkTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualNetworks_ListAllVirtualNetworks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkListAll.json // this example is just showing the usage of "VirtualNetworks_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -280,7 +280,7 @@ public async Task GetVirtualNetworks_ListAllVirtualNetworks() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckIPAddressAvailability_CheckIPAddressAvailability() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkCheckIPAddressAvailability.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkCheckIPAddressAvailability.json // this example is just showing the usage of "VirtualNetworks_CheckIPAddressAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -308,7 +308,7 @@ public async Task CheckIPAddressAvailability_CheckIPAddressAvailability() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetUsage_VnetGetUsage() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkListUsage.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkListUsage.json // this example is just showing the usage of "VirtualNetworks_ListUsage" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapCollection.cs index 3f4de570d56c..0d6308714597 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualNetworkTapCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkTap() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkTapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkTapGet.json // this example is just showing the usage of "VirtualNetworkTaps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetVirtualNetworkTap() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetVirtualNetworkTap() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkTapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkTapGet.json // this example is just showing the usage of "VirtualNetworkTaps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Exists_GetVirtualNetworkTap() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetVirtualNetworkTap() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkTapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkTapGet.json // this example is just showing the usage of "VirtualNetworkTaps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetVirtualNetworkTap() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetworkTap() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkTapCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkTapCreate.json // this example is just showing the usage of "VirtualNetworkTaps_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -169,7 +169,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkTap() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListVirtualNetworkTapsInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkTapList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkTapList.json // this example is just showing the usage of "VirtualNetworkTaps_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapResource.cs index b83f5429adf5..ecd98c7fac45 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VirtualNetworkTapResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteVirtualNetworkTapResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkTapDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkTapDelete.json // this example is just showing the usage of "VirtualNetworkTaps_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteVirtualNetworkTapResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkTap() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkTapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkTapGet.json // this example is just showing the usage of "VirtualNetworkTaps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetVirtualNetworkTap() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateVirtualNetworkTapTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkTapUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkTapUpdateTags.json // this example is just showing the usage of "VirtualNetworkTaps_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Update_UpdateVirtualNetworkTapTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualNetworkTaps_ListAllVirtualNetworkTaps() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkTapListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkTapListAll.json // this example is just showing the usage of "VirtualNetworkTaps_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterCollection.cs index c36be51d2c41..97336e208963 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualRouterCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterGet.json // this example is just showing the usage of "VirtualRouters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetVirtualRouter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterGet.json // this example is just showing the usage of "VirtualRouters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Exists_GetVirtualRouter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterGet.json // this example is just showing the usage of "VirtualRouters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetVirtualRouter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPut.json // this example is just showing the usage of "VirtualRouters_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -170,7 +170,7 @@ public async Task CreateOrUpdate_CreateVirtualRouter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllVirtualRouterForAGivenResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterListByResourceGroup.json // this example is just showing the usage of "VirtualRouters_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringCollection.cs index 9e169909b87d..dfa5f6798454 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_VirtualRouterPeeringCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringGet.json // this example is just showing the usage of "VirtualRouterPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetVirtualRouterPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringGet.json // this example is just showing the usage of "VirtualRouterPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetVirtualRouterPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringGet.json // this example is just showing the usage of "VirtualRouterPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_GetVirtualRouterPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPeeringPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringPut.json // this example is just showing the usage of "VirtualRouterPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -169,7 +169,7 @@ public async Task CreateOrUpdate_CreateVirtualRouterPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllVirtualRouterPeeringsForAGivenVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPeeringList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringList.json // this example is just showing the usage of "VirtualRouterPeerings_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringResource.cs index 2abc7a3cb740..b7381d372424 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringResource.cs @@ -19,7 +19,7 @@ public partial class Sample_VirtualRouterPeeringResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPeeringDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringDelete.json // this example is just showing the usage of "VirtualRouterPeerings_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -47,7 +47,7 @@ public async Task Delete_DeleteVirtualRouterPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringGet.json // this example is just showing the usage of "VirtualRouterPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Get_GetVirtualRouterPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPeeringPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringPut.json // this example is just showing the usage of "VirtualRouterPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterResource.cs index 7973e1e8c422..878d63f266ce 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterResource.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualRouterResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterDelete.json // this example is just showing the usage of "VirtualRouters_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -47,7 +47,7 @@ public async Task Delete_DeleteVirtualRouter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterGet.json // this example is just showing the usage of "VirtualRouters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Get_GetVirtualRouter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPut.json // this example is just showing the usage of "VirtualRouters_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Update_CreateVirtualRouter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualRouters_ListAllVirtualRoutersForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterListBySubscription.json // this example is just showing the usage of "VirtualRouters_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanCollection.cs index 6e6851896239..1699cd93e997 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualWanCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualWANGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualWANGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWANGet.json // this example is just showing the usage of "VirtualWans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_VirtualWANGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VirtualWANGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualWANGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWANGet.json // this example is just showing the usage of "VirtualWans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Exists_VirtualWANGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_VirtualWANGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualWANGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWANGet.json // this example is just showing the usage of "VirtualWans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_VirtualWANGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VirtualWANCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualWANPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWANPut.json // this example is just showing the usage of "VirtualWans_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -171,7 +171,7 @@ public async Task CreateOrUpdate_VirtualWANCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualWANListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualWANListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWANListByResourceGroup.json // this example is just showing the usage of "VirtualWans_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanResource.cs index d2b89b37728c..08ac59d4c312 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VirtualWanResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task SupportedSecurityProviders_SupportedSecurityProviders() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualWanSupportedSecurityProviders.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWanSupportedSecurityProviders.json // this example is just showing the usage of "SupportedSecurityProviders" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task SupportedSecurityProviders_SupportedSecurityProviders() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GenerateVirtualWanVpnServerConfigurationVpnProfile_GenerateVirtualWanVpnServerConfigurationVpnProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/GenerateVirtualWanVpnServerConfigurationVpnProfile.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GenerateVirtualWanVpnServerConfigurationVpnProfile.json // this example is just showing the usage of "Generatevirtualwanvpnserverconfigurationvpnprofile" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -81,7 +81,7 @@ public async Task GenerateVirtualWanVpnServerConfigurationVpnProfile_GenerateVir [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualWANGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualWANGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWANGet.json // this example is just showing the usage of "VirtualWans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -112,7 +112,7 @@ public async Task Get_VirtualWANGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VirtualWANUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualWANUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWANUpdateTags.json // this example is just showing the usage of "VirtualWans_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -151,7 +151,7 @@ public async Task Update_VirtualWANUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VirtualWANDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualWANDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWANDelete.json // this example is just showing the usage of "VirtualWans_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task Delete_VirtualWANDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualWans_VirtualWANList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualWANList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWANList.json // this example is just showing the usage of "VirtualWans_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -210,7 +210,7 @@ public async Task GetVirtualWans_VirtualWANList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task DownloadVpnSitesConfiguration_VpnSitesConfigurationDownload() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSitesConfigurationDownload.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSitesConfigurationDownload.json // this example is just showing the usage of "VpnSitesConfiguration_Download" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -244,7 +244,7 @@ public async Task DownloadVpnSitesConfiguration_VpnSitesConfigurationDownload() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVpnServerConfigurationsAssociatedWithVirtualWan_GetVirtualWanVpnServerConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/GetVirtualWanVpnServerConfigurations.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GetVirtualWanVpnServerConfigurations.json // this example is just showing the usage of "VpnServerConfigurationsAssociatedWithVirtualWan_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionCollection.cs index 9baee25db7ec..b5b6392d62fd 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_VpnConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionGet.json // this example is just showing the usage of "VpnConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Get_VpnConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VpnConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionGet.json // this example is just showing the usage of "VpnConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_VpnConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_VpnConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionGet.json // this example is just showing the usage of "VpnConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -130,7 +130,7 @@ public async Task GetIfExists_VpnConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VpnConnectionPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionPut.json // this example is just showing the usage of "VpnConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -212,7 +212,7 @@ public async Task CreateOrUpdate_VpnConnectionPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VpnConnectionList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionList.json // this example is just showing the usage of "VpnConnections_ListByVpnGateway" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionResource.cs index 771f0a48c99b..9f6fe4cd071c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VpnConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionGet.json // this example is just showing the usage of "VpnConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_VpnConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VpnConnectionPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionPut.json // this example is just showing the usage of "VpnConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,7 +132,7 @@ public async Task Update_VpnConnectionPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VpnConnectionDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionDelete.json // this example is just showing the usage of "VpnConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -160,7 +160,7 @@ public async Task Delete_VpnConnectionDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StartPacketCapture_StartPacketCaptureOnVpnConnectionWithFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnConnectionStartPacketCaptureFilterData.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionStartPacketCaptureFilterData.json // this example is just showing the usage of "VpnConnections_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -197,7 +197,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVpnConnectionWithFilter [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StartPacketCapture_StartPacketCaptureOnVpnConnectionWithoutFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnConnectionStartPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionStartPacketCapture.json // this example is just showing the usage of "VpnConnections_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -233,7 +233,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVpnConnectionWithoutFil [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StopPacketCapture_StartPacketCaptureOnVpnConnectionWithoutFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnConnectionStopPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionStopPacketCapture.json // this example is just showing the usage of "VpnConnections_StopPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayCollection.cs index 88a657247b54..f62d831a55bb 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_VpnGatewayCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayGet.json // this example is just showing the usage of "VpnGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Get_VpnGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayGet.json // this example is just showing the usage of "VpnGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_VpnGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_VpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayGet.json // this example is just showing the usage of "VpnGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_VpnGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VpnGatewayPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayPut.json // this example is just showing the usage of "VpnGateways_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -247,7 +247,7 @@ public async Task CreateOrUpdate_VpnGatewayPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VpnGatewayListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayListByResourceGroup.json // this example is just showing the usage of "VpnGateways_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleCollection.cs index e4c313e53667..5928982c15aa 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VpnGatewayNatRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatRuleGet.json // this example is just showing the usage of "NatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_NatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_NatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatRuleGet.json // this example is just showing the usage of "NatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_NatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_NatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatRuleGet.json // this example is just showing the usage of "NatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_NatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_NatRulePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatRulePut.json // this example is just showing the usage of "NatRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -185,7 +185,7 @@ public async Task CreateOrUpdate_NatRulePut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_NatRuleList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatRuleList.json // this example is just showing the usage of "NatRules_ListByVpnGateway" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleResource.cs index 28f5ea897adf..c95ff8928810 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_VpnGatewayNatRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatRuleGet.json // this example is just showing the usage of "NatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_NatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_NatRulePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatRulePut.json // this example is just showing the usage of "NatRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -105,7 +105,7 @@ public async Task Update_NatRulePut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_NatRuleDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatRuleDelete.json // this example is just showing the usage of "NatRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayResource.cs index 0655113f7269..aa5b85041950 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VpnGatewayResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayGet.json // this example is just showing the usage of "VpnGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_VpnGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VpnGatewayUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayUpdateTags.json // this example is just showing the usage of "VpnGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Update_VpnGatewayUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VpnGatewayDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayDelete.json // this example is just showing the usage of "VpnGateways_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Delete_VpnGatewayDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Reset_ResetVpnGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayReset.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayReset.json // this example is just showing the usage of "VpnGateways_Reset" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -151,7 +151,7 @@ public async Task Reset_ResetVpnGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StartPacketCapture_StartPacketCaptureOnVpnGatewayWithFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayStartPacketCaptureFilterData.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayStartPacketCaptureFilterData.json // this example is just showing the usage of "VpnGateways_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -183,7 +183,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVpnGatewayWithFilter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StartPacketCapture_StartPacketCaptureOnVpnGatewayWithoutFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayStartPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayStartPacketCapture.json // this example is just showing the usage of "VpnGateways_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -211,7 +211,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVpnGatewayWithoutFilter [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StopPacketCapture_StopPacketCaptureOnVpnGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayStopPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayStopPacketCapture.json // this example is just showing the usage of "VpnGateways_StopPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -243,7 +243,7 @@ public async Task StopPacketCapture_StopPacketCaptureOnVpnGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVpnGateways_VpnGatewayListBySubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayList.json // this example is just showing the usage of "VpnGateways_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationCollection.cs index 39a753b6e890..63139d50313d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_VpnServerConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnServerConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnServerConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnServerConfigurationGet.json // this example is just showing the usage of "VpnServerConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_VpnServerConfigurationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VpnServerConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnServerConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnServerConfigurationGet.json // this example is just showing the usage of "VpnServerConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_VpnServerConfigurationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_VpnServerConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnServerConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnServerConfigurationGet.json // this example is just showing the usage of "VpnServerConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_VpnServerConfigurationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VpnServerConfigurationCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnServerConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnServerConfigurationPut.json // this example is just showing the usage of "VpnServerConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -252,7 +252,7 @@ public async Task CreateOrUpdate_VpnServerConfigurationCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VpnServerConfigurationListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnServerConfigurationListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnServerConfigurationListByResourceGroup.json // this example is just showing the usage of "VpnServerConfigurations_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupCollection.cs index b4603a7da376..467428a0cff6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VpnServerConfigurationPolicyGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ConfigurationPolicyGroupPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ConfigurationPolicyGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ConfigurationPolicyGroupPut.json // this example is just showing the usage of "ConfigurationPolicyGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -75,7 +75,7 @@ public async Task CreateOrUpdate_ConfigurationPolicyGroupPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ConfigurationPolicyGroupGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ConfigurationPolicyGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ConfigurationPolicyGroupGet.json // this example is just showing the usage of "ConfigurationPolicyGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -110,7 +110,7 @@ public async Task Get_ConfigurationPolicyGroupGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ConfigurationPolicyGroupGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ConfigurationPolicyGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ConfigurationPolicyGroupGet.json // this example is just showing the usage of "ConfigurationPolicyGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -141,7 +141,7 @@ public async Task Exists_ConfigurationPolicyGroupGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ConfigurationPolicyGroupGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ConfigurationPolicyGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ConfigurationPolicyGroupGet.json // this example is just showing the usage of "ConfigurationPolicyGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -184,7 +184,7 @@ public async Task GetIfExists_ConfigurationPolicyGroupGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ConfigurationPolicyGroupListByVpnServerConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ConfigurationPolicyGroupListByVpnServerConfiguration.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ConfigurationPolicyGroupListByVpnServerConfiguration.json // this example is just showing the usage of "configurationPolicyGroups_ListByVpnServerConfiguration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupResource.cs index 0efcaac4caac..5bc1150e01e0 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupResource.cs @@ -20,7 +20,7 @@ public partial class Sample_VpnServerConfigurationPolicyGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ConfigurationPolicyGroupPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ConfigurationPolicyGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ConfigurationPolicyGroupPut.json // this example is just showing the usage of "ConfigurationPolicyGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -72,7 +72,7 @@ public async Task Update_ConfigurationPolicyGroupPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ConfigurationPolicyGroupDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ConfigurationPolicyGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ConfigurationPolicyGroupDelete.json // this example is just showing the usage of "ConfigurationPolicyGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -100,7 +100,7 @@ public async Task Delete_ConfigurationPolicyGroupDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ConfigurationPolicyGroupGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ConfigurationPolicyGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ConfigurationPolicyGroupGet.json // this example is just showing the usage of "ConfigurationPolicyGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationResource.cs index d596cb2d1cb4..df0e9c84f49a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VpnServerConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnServerConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnServerConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnServerConfigurationGet.json // this example is just showing the usage of "VpnServerConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_VpnServerConfigurationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VpnServerConfigurationUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnServerConfigurationUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnServerConfigurationUpdateTags.json // this example is just showing the usage of "VpnServerConfigurations_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Update_VpnServerConfigurationUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VpnServerConfigurationDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnServerConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnServerConfigurationDelete.json // this example is just showing the usage of "VpnServerConfigurations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Delete_VpnServerConfigurationDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVpnServerConfigurations_VpnServerConfigurationList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnServerConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnServerConfigurationList.json // this example is just showing the usage of "VpnServerConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteCollection.cs index 949f0193ec0c..9368fe6f7349 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_VpnSiteCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteGet.json // this example is just showing the usage of "VpnSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_VpnSiteGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteGet.json // this example is just showing the usage of "VpnSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_VpnSiteGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteGet.json // this example is just showing the usage of "VpnSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_VpnSiteGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VpnSiteCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSitePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSitePut.json // this example is just showing the usage of "VpnSites_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -201,7 +201,7 @@ public async Task CreateOrUpdate_VpnSiteCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VpnSiteListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteListByResourceGroup.json // this example is just showing the usage of "VpnSites_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkCollection.cs index 38a70c437ea3..e4fad9123958 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_VpnSiteLinkCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkGet.json // this example is just showing the usage of "VpnSiteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_VpnSiteGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkGet.json // this example is just showing the usage of "VpnSiteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_VpnSiteGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkGet.json // this example is just showing the usage of "VpnSiteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_VpnSiteGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VpnSiteLinkListByVpnSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteLinkListByVpnSite.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkListByVpnSite.json // this example is just showing the usage of "VpnSiteLinks_ListByVpnSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionCollection.cs index 1317eb32edbe..0080d129503c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_VpnSiteLinkConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VpnSiteLinkConnectionList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteLinkConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkConnectionList.json // this example is just showing the usage of "VpnLinkConnections_ListByVpnConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_VpnSiteLinkConnectionList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnSiteLinkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteLinkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkConnectionGet.json // this example is just showing the usage of "VpnSiteLinkConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_VpnSiteLinkConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VpnSiteLinkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteLinkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkConnectionGet.json // this example is just showing the usage of "VpnSiteLinkConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task Exists_VpnSiteLinkConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_VpnSiteLinkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteLinkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkConnectionGet.json // this example is just showing the usage of "VpnSiteLinkConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionResource.cs index 12235c38a55d..fca2a936afd7 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_VpnSiteLinkConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ResetConnectionVpnLinkConnection_ResetVpnLinkConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteLinkConnectionReset.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkConnectionReset.json // this example is just showing the usage of "VpnLinkConnections_ResetConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task ResetConnectionVpnLinkConnection_ResetVpnLinkConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIkeSasVpnLinkConnection_GetVpnLinkConnectionIkeSa() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteLinkConnectionGetIkeSas.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkConnectionGetIkeSas.json // this example is just showing the usage of "VpnLinkConnections_GetIkeSas" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task GetIkeSasVpnLinkConnection_GetVpnLinkConnectionIkeSa() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnSiteLinkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteLinkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkConnectionGet.json // this example is just showing the usage of "VpnSiteLinkConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkResource.cs index 90dff80d3edd..b56f3ab35fd6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkResource.cs @@ -19,7 +19,7 @@ public partial class Sample_VpnSiteLinkResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkGet.json // this example is just showing the usage of "VpnSiteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteResource.cs index 6c6f9004f867..202bec59b8cb 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VpnSiteResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteGet.json // this example is just showing the usage of "VpnSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_VpnSiteGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VpnSiteUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteUpdateTags.json // this example is just showing the usage of "VpnSites_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Update_VpnSiteUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VpnSiteDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteDelete.json // this example is just showing the usage of "VpnSites_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Delete_VpnSiteDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVpnSites_VpnSiteList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteList.json // this example is just showing the usage of "VpnSites_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyCollection.cs index 5ad0c4985eb6..9efa504a7051 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_WebApplicationFirewallPolicyCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListsAllWAFPoliciesInAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/WafListPolicies.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/WafListPolicies.json // this example is just showing the usage of "WebApplicationFirewallPolicies_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_ListsAllWAFPoliciesInAResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/WafPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/WafPolicyGet.json // this example is just showing the usage of "WebApplicationFirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_GetsAWAFPolicyWithinAResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/WafPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/WafPolicyGet.json // this example is just showing the usage of "WebApplicationFirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Exists_GetsAWAFPolicyWithinAResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetsAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/WafPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/WafPolicyGet.json // this example is just showing the usage of "WebApplicationFirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,7 +163,7 @@ public async Task GetIfExists_GetsAWAFPolicyWithinAResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatesOrUpdatesAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/WafPolicyCreateOrUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/WafPolicyCreateOrUpdate.json // this example is just showing the usage of "WebApplicationFirewallPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyResource.cs index 20a69f9a6044..0d4ab865a098 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyResource.cs @@ -21,7 +21,7 @@ public partial class Sample_WebApplicationFirewallPolicyResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetWebApplicationFirewallPolicies_ListsAllWAFPoliciesInASubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/WafListAllPolicies.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/WafListAllPolicies.json // this example is just showing the usage of "WebApplicationFirewallPolicies_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task GetWebApplicationFirewallPolicies_ListsAllWAFPoliciesInASubscr [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/WafPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/WafPolicyGet.json // this example is just showing the usage of "WebApplicationFirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Get_GetsAWAFPolicyWithinAResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatesOrUpdatesAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/WafPolicyCreateOrUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/WafPolicyCreateOrUpdate.json // this example is just showing the usage of "WebApplicationFirewallPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -308,7 +308,7 @@ public async Task Update_CreatesOrUpdatesAWAFPolicyWithinAResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletesAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/WafPolicyDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/WafPolicyDelete.json // this example is just showing the usage of "WebApplicationFirewallPolicies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupCollection.cs index 66d5e3191d68..69eed14ab177 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string rule /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string ruleCollectionName, C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(int? top = null /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? top = null, string s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string ruleCollectionName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string ruleCollectionName, CancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupResource.cs index 78180e097a1b..5746913ba8c7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupResource.cs @@ -109,7 +109,7 @@ public virtual BaseAdminRuleCollection GetBaseAdminRules() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetBaseAdminRuleAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response GetBaseAdminRule(string ruleName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -251,7 +251,7 @@ public virtual Response Get(CancellationToken cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -337,7 +337,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -385,7 +385,7 @@ public virtual async Task> UpdateAsync(Wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayCollection.cs index f2380ff6a63e..0e7f593972b1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string applicationGatewa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string applicationGatewayN /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string applicationGatewayName, Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionCollection.cs index 85cb91390b6d..afe5584fd0ca 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable Get /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionResource.cs index 33b090adf89c..2b63b6bdfc2d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayResource.cs index 1cdba4beaffe..0f4833e1455d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayResource.cs @@ -115,7 +115,7 @@ public virtual ApplicationGatewayPrivateEndpointConnectionCollection GetApplicat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -146,7 +146,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -177,7 +177,7 @@ public virtual Response Get /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -217,7 +217,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -299,7 +299,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -341,7 +341,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -383,7 +383,7 @@ public virtual async Task> UpdateAsync(Netw /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -425,7 +425,7 @@ public virtual Response Update(NetworkTagsObject net /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -467,7 +467,7 @@ public virtual async Task StartAsync(WaitUntil waitUntil, Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -509,7 +509,7 @@ public virtual ArmOperation Start(WaitUntil waitUntil, CancellationToken cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -551,7 +551,7 @@ public virtual async Task StopAsync(WaitUntil waitUntil, Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -593,7 +593,7 @@ public virtual ArmOperation Stop(WaitUntil waitUntil, CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -636,7 +636,7 @@ public virtual async Task> Backend /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -679,7 +679,7 @@ public virtual ArmOperation BackendHealth(WaitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -726,7 +726,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -773,7 +773,7 @@ public virtual ArmOperation BackendHeal /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -799,7 +799,7 @@ public virtual AsyncPageable GetApplicati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -825,7 +825,7 @@ public virtual Pageable GetApplicationGat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -887,7 +887,7 @@ public virtual async Task> AddTagAsync(stri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -949,7 +949,7 @@ public virtual Response AddTag(string key, string va /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1006,7 +1006,7 @@ public virtual async Task> SetTagsAsync(IDi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1063,7 +1063,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1123,7 +1123,7 @@ public virtual async Task> RemoveTagAsync(s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayWafDynamicManifestCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayWafDynamicManifestCollection.cs index f2bf802b5796..e37baabcc6ed 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayWafDynamicManifestCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayWafDynamicManifestCollection.cs @@ -73,7 +73,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -153,7 +153,7 @@ public virtual Response Get(Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual AsyncPageable GetAl /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual Pageable GetAll(Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -251,7 +251,7 @@ public virtual async Task> ExistsAsync(CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual Response Exists(CancellationToken cancellationToken = defau /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -329,7 +329,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayWafDynamicManifestResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayWafDynamicManifestResource.cs index 44603fade8ea..ade25503ce60 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayWafDynamicManifestResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayWafDynamicManifestResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupCollection.cs index 03f4bb300f0e..d909cf067652 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> Create /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(Wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string application /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string applicationSecurity /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string applicationSecurityGroupName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupResource.cs index 623d5b044974..dd7448671534 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> UpdateAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual Response Update(NetworkTagsObje /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -413,7 +413,7 @@ public virtual async Task> AddTagAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -475,7 +475,7 @@ public virtual Response AddTag(string key, str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual async Task> SetTagsAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -589,7 +589,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -649,7 +649,7 @@ public virtual async Task> RemoveTagA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ArmNetworkModelFactory.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ArmNetworkModelFactory.cs index 10162371d258..56931d91d169 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ArmNetworkModelFactory.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ArmNetworkModelFactory.cs @@ -4216,12 +4216,19 @@ public static EffectiveConnectivityConfiguration EffectiveConnectivityConfigurat /// Initializes a new instance of . /// Network group ID. /// A description of the network group. + /// The type of the group member. /// The provisioning state of the scope assignment resource. /// Unique identifier for this resource. /// A new instance for mocking. - public static NetworkConfigurationGroup NetworkConfigurationGroup(string id = null, string description = null, NetworkProvisioningState? provisioningState = null, Guid? resourceGuid = null) + public static NetworkConfigurationGroup NetworkConfigurationGroup(string id = null, string description = null, GroupMemberType? memberType = null, NetworkProvisioningState? provisioningState = null, Guid? resourceGuid = null) { - return new NetworkConfigurationGroup(id, description, provisioningState, resourceGuid, serializedAdditionalRawData: null); + return new NetworkConfigurationGroup( + id, + description, + memberType, + provisioningState, + resourceGuid, + serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -4341,11 +4348,12 @@ public static EffectiveBaseSecurityAdminRule EffectiveBaseSecurityAdminRule(Reso /// The resourceType. /// The systemData. /// A description of the network group. + /// The type of the group member. /// The provisioning state of the scope assignment resource. /// Unique identifier for this resource. /// A unique read-only string that changes whenever the resource is updated. /// A new instance for mocking. - public static NetworkGroupData NetworkGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, NetworkProvisioningState? provisioningState = null, Guid? resourceGuid = null, ETag? etag = null) + public static NetworkGroupData NetworkGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, GroupMemberType? memberType = null, NetworkProvisioningState? provisioningState = null, Guid? resourceGuid = null, ETag? etag = null) { return new NetworkGroupData( id, @@ -4353,6 +4361,7 @@ public static NetworkGroupData NetworkGroupData(ResourceIdentifier id = null, st resourceType, systemData, description, + memberType, provisioningState, resourceGuid, etag, @@ -4485,6 +4494,181 @@ public static BaseAdminRuleData BaseAdminRuleData(ResourceIdentifier id = null, serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description of the security user configuration. + /// The provisioning state of the resource. + /// Unique identifier for this resource. + /// A unique read-only string that changes whenever the resource is updated. + /// A new instance for mocking. + public static SecurityUserConfigurationData SecurityUserConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, NetworkProvisioningState? provisioningState = null, Guid? resourceGuid = null, ETag? etag = null) + { + return new SecurityUserConfigurationData( + id, + name, + resourceType, + systemData, + description, + provisioningState, + resourceGuid, + etag, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description of the security user rule collection. + /// Groups for configuration. + /// The provisioning state of the resource. + /// Unique identifier for this resource. + /// A unique read-only string that changes whenever the resource is updated. + /// A new instance for mocking. + public static SecurityUserRuleCollectionData SecurityUserRuleCollectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, IEnumerable appliesToGroups = null, NetworkProvisioningState? provisioningState = null, Guid? resourceGuid = null, ETag? etag = null) + { + appliesToGroups ??= new List(); + + return new SecurityUserRuleCollectionData( + id, + name, + resourceType, + systemData, + description, + appliesToGroups?.ToList(), + provisioningState, + resourceGuid, + etag, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description for this rule. + /// Network protocol this rule applies to. + /// The CIDR or source IP ranges. + /// The destination address prefixes. CIDR or destination IP ranges. + /// The source port ranges. + /// The destination port ranges. + /// Indicates if the traffic matched against the rule in inbound or outbound. + /// The provisioning state of the security configuration user rule resource. + /// Unique identifier for this resource. + /// A unique read-only string that changes whenever the resource is updated. + /// A new instance for mocking. + public static SecurityUserRuleData SecurityUserRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, SecurityConfigurationRuleProtocol? protocol = null, IEnumerable sources = null, IEnumerable destinations = null, IEnumerable sourcePortRanges = null, IEnumerable destinationPortRanges = null, SecurityConfigurationRuleDirection? direction = null, NetworkProvisioningState? provisioningState = null, Guid? resourceGuid = null, ETag? etag = null) + { + sources ??= new List(); + destinations ??= new List(); + sourcePortRanges ??= new List(); + destinationPortRanges ??= new List(); + + return new SecurityUserRuleData( + id, + name, + resourceType, + systemData, + description, + protocol, + sources?.ToList(), + destinations?.ToList(), + sourcePortRanges?.ToList(), + destinationPortRanges?.ToList(), + direction, + provisioningState, + resourceGuid, + etag, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description of the routing configuration. + /// The provisioning state of the resource. + /// Unique identifier for this resource. + /// A unique read-only string that changes whenever the resource is updated. + /// A new instance for mocking. + public static NetworkManagerRoutingConfigurationData NetworkManagerRoutingConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, NetworkProvisioningState? provisioningState = null, Guid? resourceGuid = null, ETag? etag = null) + { + return new NetworkManagerRoutingConfigurationData( + id, + name, + resourceType, + systemData, + description, + provisioningState, + resourceGuid, + etag, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description of the routing rule collection. + /// The provisioning state of the resource. + /// Unique identifier for this resource. + /// Groups for configuration. + /// Determines whether BGP route propagation is enabled. Defaults to true. + /// A unique read-only string that changes whenever the resource is updated. + /// A new instance for mocking. + public static RoutingRuleCollectionData RoutingRuleCollectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, NetworkProvisioningState? provisioningState = null, Guid? resourceGuid = null, IEnumerable appliesTo = null, DisableBgpRoutePropagation? disableBgpRoutePropagation = null, ETag? etag = null) + { + appliesTo ??= new List(); + + return new RoutingRuleCollectionData( + id, + name, + resourceType, + systemData, + description, + provisioningState, + resourceGuid, + appliesTo?.ToList(), + disableBgpRoutePropagation, + etag, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description for this rule. + /// The provisioning state of the resource. + /// Unique identifier for this resource. + /// Indicates the destination for this particular rule. + /// Indicates the next hop for this particular rule. + /// A unique read-only string that changes whenever the resource is updated. + /// A new instance for mocking. + public static RoutingRuleData RoutingRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, NetworkProvisioningState? provisioningState = null, Guid? resourceGuid = null, RoutingRuleRouteDestination destination = null, RoutingRuleNextHop nextHop = null, ETag? etag = null) + { + return new RoutingRuleData( + id, + name, + resourceType, + systemData, + description, + provisioningState, + resourceGuid, + destination, + nextHop, + etag, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// Resource ID. /// Resource name. @@ -8112,6 +8296,34 @@ public static ExpressRouteCircuitData ExpressRouteCircuitData(ResourceIdentifier return ExpressRouteCircuitData(id: id, name: name, resourceType: resourceType, location: location, tags: tags, sku: sku, etag: etag, allowClassicOperations: allowClassicOperations, circuitProvisioningState: circuitProvisioningState, serviceProviderProvisioningState: serviceProviderProvisioningState, authorizations: authorizations, peerings: peerings, serviceKey: serviceKey, serviceProviderNotes: serviceProviderNotes, serviceProviderProperties: serviceProviderProperties, expressRoutePortId: expressRoutePortId, bandwidthInGbps: bandwidthInGbps, stag: stag, provisioningState: provisioningState, gatewayManagerETag: gatewayManagerETag, globalReachEnabled: globalReachEnabled, authorizationKey: authorizationKey, authorizationStatus: authorizationStatus, enableDirectPortRateLimit: default); } + /// Initializes a new instance of . + /// Network group ID. + /// A description of the network group. + /// The provisioning state of the scope assignment resource. + /// Unique identifier for this resource. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static NetworkConfigurationGroup NetworkConfigurationGroup(string id, string description, NetworkProvisioningState? provisioningState, Guid? resourceGuid) + { + return NetworkConfigurationGroup(id: id, description: description, memberType: default, provisioningState: provisioningState, resourceGuid: resourceGuid); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description of the network group. + /// The provisioning state of the scope assignment resource. + /// Unique identifier for this resource. + /// A unique read-only string that changes whenever the resource is updated. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static NetworkGroupData NetworkGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, NetworkProvisioningState? provisioningState, Guid? resourceGuid, ETag? etag) + { + return NetworkGroupData(id: id, name: name, resourceType: resourceType, systemData: systemData, description: description, memberType: default, provisioningState: provisioningState, resourceGuid: resourceGuid, etag: etag); + } + /// Initializes a new instance of . /// Resource ID. /// Resource name. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallCollection.cs index a211f5e41da7..73b886b6fd28 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string azure /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string azureFirewallName, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string azureFirewallName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string azureFirewallName, CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallResource.cs index d036470d389c..f51abcadbcb4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, N /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -401,7 +401,7 @@ public virtual async Task> GetLearnedP /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual ArmOperation GetLearnedPrefixes(Wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -489,7 +489,7 @@ public virtual async Task PacketCaptureAsync(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -535,7 +535,7 @@ public virtual ArmOperation PacketCapture(WaitUntil waitUntil, FirewallPacketCap /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -597,7 +597,7 @@ public virtual async Task> AddTagAsync(string ke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -659,7 +659,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -716,7 +716,7 @@ public virtual async Task> SetTagsAsync(IDiction /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -773,7 +773,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -833,7 +833,7 @@ public virtual async Task> RemoveTagAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategoryCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategoryCollection.cs index 895938793abb..fd6207abedac 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategoryCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategoryCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -111,7 +111,7 @@ public virtual async Task> GetAsync(string na /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -157,7 +157,7 @@ public virtual Response Get(string name, string expand /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -217,7 +217,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -261,7 +261,7 @@ public virtual async Task> ExistsAsync(string name, string expand /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -305,7 +305,7 @@ public virtual Response Exists(string name, string expand = null, Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategoryResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategoryResource.cs index a64f12e45eb0..ae3f5a8504c3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategoryResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategoryResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(string ex /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolCollection.cs index 3c9d92919b3b..05499818ee07 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string backendAddressPoo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string backendAddressPoolN /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string backendAddressPoolName, Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolResource.cs index 6f631d46478b..7c156017bee4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolResource.cs @@ -107,7 +107,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -147,7 +147,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -229,7 +229,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual ArmOperation Update(WaitUntil waitUnt /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -409,7 +409,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleCollection.cs index c87ec9a818ec..346679452415 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string ruleN /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string ruleName, Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(int? top = null, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? top = null, string sk /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string ruleName, Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string ruleName, CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleResource.cs index f2a6b5e1957b..dab20354abaa 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostCollection.cs index 0dace62e52aa..0f7e0f0e30a8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string bastion /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string bastionHostName, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string bastionHostName, Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string bastionHostName, CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostResource.cs index 09fd52fa9356..7e9174f07193 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostResource.cs @@ -108,7 +108,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -148,7 +148,7 @@ public virtual async Task> GetAsync(CancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -188,7 +188,7 @@ public virtual Response Get(CancellationToken cancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -230,7 +230,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -272,7 +272,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> UpdateAsync(WaitUnt /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Net /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -410,7 +410,7 @@ public virtual async Task DeleteBastionShareableLinkByTokenAsync(W /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -456,7 +456,7 @@ public virtual ArmOperation DeleteBastionShareableLinkByToken(WaitUntil waitUnti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -518,7 +518,7 @@ public virtual async Task> AddTagAsync(string key, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -580,7 +580,7 @@ public virtual Response AddTag(string key, string value, Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -637,7 +637,7 @@ public virtual async Task> SetTagsAsync(IDictionar /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -694,7 +694,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -754,7 +754,7 @@ public virtual async Task> RemoveTagAsync(string k /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionCollection.cs index c77422ed8601..8fc3121f92e9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionCollection.cs @@ -69,7 +69,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -118,7 +118,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string conne /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string connectionName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionResource.cs index 4d089b930999..08c433d2e7b3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionResource.cs @@ -108,7 +108,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -148,7 +148,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -188,7 +188,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -230,7 +230,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -272,7 +272,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, B /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual async Task>>> G /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual ArmOperation>> GetVirtualHub /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -490,7 +490,7 @@ public virtual async Task>>> G /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/CloudServiceSwapCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/CloudServiceSwapCollection.cs index 6e25f7cd5f3e..13b41396039b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/CloudServiceSwapCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/CloudServiceSwapCollection.cs @@ -70,7 +70,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task CreateOrUpdateAsync(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, CloudServiceSwap /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -202,7 +202,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -242,7 +242,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -338,7 +338,7 @@ public virtual async Task> ExistsAsync(CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -376,7 +376,7 @@ public virtual Response Exists(CancellationToken cancellationToken = defau /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -416,7 +416,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/CloudServiceSwapResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/CloudServiceSwapResource.cs index fd672a721354..2fa34bffe9b4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/CloudServiceSwapResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/CloudServiceSwapResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task UpdateAsync(WaitUntil waitUntil, CloudSe /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorCollection.cs index ac13ce4cfdf2..f641dddfc331 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -165,7 +165,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetAsync(string c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string connectionMonitorN /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -284,7 +284,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string connectionMonitorNa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string connectionMonitorName, CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorResource.cs index 1d591ae24281..58768690b0b2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> UpdateAsync(Netwo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual Response Update(NetworkTagsObject netw /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -393,7 +393,7 @@ public virtual async Task StopAsync(WaitUntil waitUntil, Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -435,7 +435,7 @@ public virtual ArmOperation Stop(WaitUntil waitUntil, CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -477,7 +477,7 @@ public virtual async Task StartAsync(WaitUntil waitUntil, Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -519,7 +519,7 @@ public virtual ArmOperation Start(WaitUntil waitUntil, CancellationToken cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -561,7 +561,7 @@ public virtual async Task> QueryAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -603,7 +603,7 @@ public virtual ArmOperation Query(WaitUntil waitUn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -665,7 +665,7 @@ public virtual async Task> AddTagAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -727,7 +727,7 @@ public virtual Response AddTag(string key, string val /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -784,7 +784,7 @@ public virtual async Task> SetTagsAsync(IDic /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -841,7 +841,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -901,7 +901,7 @@ public virtual async Task> RemoveTagAsync(st /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationCollection.cs index 128c815d7868..2316d060d222 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Creat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string configurat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(int? /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? top = nul /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string configurationName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string configurationName, CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationResource.cs index d86ee44eb8a7..9cb0f05f63ad 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual async Task> Updat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIPPrefixCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIPPrefixCollection.cs index 6c76de4f6c5d..e8fa9bdcb46b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIPPrefixCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIPPrefixCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string cust /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string customIPPrefixName, s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string customIPPrefixName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string customIPPrefixName, string expand = /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIPPrefixResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIPPrefixResource.cs index 101e01ab2cc4..dd5b58c31550 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIPPrefixResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIPPrefixResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(string expa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(string expand = null, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(NetworkT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual Response Update(NetworkTagsObject network /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual async Task> AddTagAsync(string k /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -477,7 +477,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -534,7 +534,7 @@ public virtual async Task> SetTagsAsync(IDictio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -591,7 +591,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -651,7 +651,7 @@ public virtual async Task> RemoveTagAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyCollection.cs index 5b514f1c4685..2ca243c80832 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyCollection.cs @@ -62,7 +62,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -111,7 +111,7 @@ public virtual async Task> CreateOrUpdate /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -160,7 +160,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -205,7 +205,7 @@ public virtual async Task> GetAsync(string dd /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -250,7 +250,7 @@ public virtual Response Get(string ddosCustomPolicyNam /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -293,7 +293,7 @@ public virtual async Task> ExistsAsync(string ddosCustomPolicyNam /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual Response Exists(string ddosCustomPolicyName, CancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -381,7 +381,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyResource.cs index aaa79b68a3ed..6fcdb1f252e4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> UpdateAsync(Networ /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual Response Update(NetworkTagsObject netwo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -413,7 +413,7 @@ public virtual async Task> AddTagAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -475,7 +475,7 @@ public virtual Response AddTag(string key, string valu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual async Task> SetTagsAsync(IDict /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -589,7 +589,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -649,7 +649,7 @@ public virtual async Task> RemoveTagAsync(str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanCollection.cs index 0a02da6caaca..beccfe5173e8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string ddosProtectionPla /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string ddosProtectionPlanN /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string ddosProtectionPlanName, Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanResource.cs index 8bd7d33b65bc..75fb0b0e0518 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> UpdateAsync(Netw /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual Response Update(NetworkTagsObject net /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -413,7 +413,7 @@ public virtual async Task> AddTagAsync(stri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -475,7 +475,7 @@ public virtual Response AddTag(string key, string va /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual async Task> SetTagsAsync(IDi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -589,7 +589,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -649,7 +649,7 @@ public virtual async Task> RemoveTagAsync(s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRuleCollection.cs index f46c0ddbde80..8eec2cb3f34c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string defaultSecurityR /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string defaultSecurityRule /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string defaultSecurityRuleName, Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRuleResource.cs index 2137d0594505..f1cfda7fde19 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRuleResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationCollection.cs index f78f4ef71601..65fc7dce49a6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string d /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string dscpConfigurationN /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string dscpConfigurationNa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string dscpConfigurationName, CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationResource.cs index acd92785ee45..4ee1a93cf628 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(W /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -358,7 +358,7 @@ public virtual ArmOperation Update(WaitUntil waitUnti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual async Task> AddTagAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -472,7 +472,7 @@ public virtual Response AddTag(string key, string val /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -528,7 +528,7 @@ public virtual async Task> SetTagsAsync(IDic /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -584,7 +584,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -639,7 +639,7 @@ public virtual async Task> RemoveTagAsync(st /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationCollection.cs index de1e816565ce..4a5916844979 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string aut /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string authorizationName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string authorizationName, CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationResource.cs index 905335236c49..5e8d61bab9a6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitCollection.cs index 98a050c45e76..276ca4d402e7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string circuitName, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string circuitName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string circuitName, CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionCollection.cs index 650350effbdd..590e543e9b5a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string connec /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionResource.cs index 7f97f70cda16..311174623891 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> U /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringCollection.cs index 8c94e8ee4d0b..ecdfe42a5214 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> Crea /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(W /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string peeringNa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string peeringName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string peeringName, CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringResource.cs index 57586cbf7a69..758166546791 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringResource.cs @@ -114,7 +114,7 @@ public virtual ExpressRouteCircuitConnectionCollection GetExpressRouteCircuitCon /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -145,7 +145,7 @@ public virtual async Task> GetEx /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual PeerExpressRouteCircuitConnectionCollection GetPeerExpressRouteCi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -245,7 +245,7 @@ public virtual Response GetPeerExpres /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -325,7 +325,7 @@ public virtual Response Get(CancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -367,7 +367,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -409,7 +409,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -455,7 +455,7 @@ public virtual async Task> Upda /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -501,7 +501,7 @@ public virtual ArmOperation Update(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -548,7 +548,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -595,7 +595,7 @@ public virtual ArmOperation GetArpTableE /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -642,7 +642,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -689,7 +689,7 @@ public virtual ArmOperation GetRoutes /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -736,7 +736,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -783,7 +783,7 @@ public virtual ArmOperation Ge /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -821,7 +821,7 @@ public virtual async Task> GetPeeringStatsExp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitResource.cs index f33b377c856b..c80da4ff1940 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitResource.cs @@ -110,7 +110,7 @@ public virtual ExpressRouteCircuitAuthorizationCollection GetExpressRouteCircuit /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual ExpressRouteCircuitPeeringCollection GetExpressRouteCircuitPeerin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetExpre /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -241,7 +241,7 @@ public virtual Response GetExpressRouteCircu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -405,7 +405,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> UpdateAsync(Net /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -489,7 +489,7 @@ public virtual Response Update(NetworkTagsObject ne /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -527,7 +527,7 @@ public virtual async Task> GetStatsAsync(Canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -565,7 +565,7 @@ public virtual Response GetStats(CancellationToken can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -627,7 +627,7 @@ public virtual async Task> AddTagAsync(str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -689,7 +689,7 @@ public virtual Response AddTag(string key, string v /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -746,7 +746,7 @@ public virtual async Task> SetTagsAsync(ID /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -803,7 +803,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -863,7 +863,7 @@ public virtual async Task> RemoveTagAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionCollection.cs index a0dc4c832259..0bba13780e7d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOr /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string connectionNam /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual AsyncPageable GetAllAsync(Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -396,7 +396,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -441,7 +441,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionResource.cs index 96489a7c0801..2f6bcec4930c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionCollection.cs index f8612707dff7..f412f6a0e5a1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> Cre /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string crossCon /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string crossConnectionName /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string crossConnectionName, CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringCollection.cs index e16a18c857bb..f92f5755b040 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOr /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string p /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string peeringName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string peeringName, CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringResource.cs index d84421dbb07d..4c6406670e29 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringResource.cs @@ -107,7 +107,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -147,7 +147,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual Response Get(Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -229,7 +229,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual ArmOperation Update(W /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -410,7 +410,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -457,7 +457,7 @@ public virtual ArmOperation GetArpTableE /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -504,7 +504,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -551,7 +551,7 @@ public virtual ArmOperation /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -598,7 +598,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionResource.cs index 8d09b0bf1138..ff070286cf66 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionResource.cs @@ -110,7 +110,7 @@ public virtual ExpressRouteCrossConnectionPeeringCollection GetExpressRouteCross /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetExpressRo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task> UpdateA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual Response Update(NetworkTagsO /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual async Task> AddTagA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -460,7 +460,7 @@ public virtual Response AddTag(string key, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -517,7 +517,7 @@ public virtual async Task> SetTags /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -574,7 +574,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -634,7 +634,7 @@ public virtual async Task> RemoveT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayCollection.cs index e212be712b08..e65e4dc001d4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string expressRouteGate /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -354,7 +354,7 @@ public virtual async Task> ExistsAsync(string expressRouteGateway /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -397,7 +397,7 @@ public virtual Response Exists(string expressRouteGatewayName, Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -442,7 +442,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayResource.cs index c2a62ab50267..64a54e3efb4d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayResource.cs @@ -110,7 +110,7 @@ public virtual ExpressRouteConnectionCollection GetExpressRouteConnections() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetExpressRo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetExpressRouteConnectio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -382,7 +382,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -428,7 +428,7 @@ public virtual ArmOperation Update(WaitUntil waitUn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -490,7 +490,7 @@ public virtual async Task> AddTagAsync(str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -552,7 +552,7 @@ public virtual Response AddTag(string key, string v /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -609,7 +609,7 @@ public virtual async Task> SetTagsAsync(ID /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -666,7 +666,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -726,7 +726,7 @@ public virtual async Task> RemoveTagAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLinkCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLinkCollection.cs index e26f8463b82a..ca46c66bc3dc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLinkCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLinkCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string li /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string linkName, Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string linkName, Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string linkName, CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLinkResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLinkResource.cs index ec121e08f6e1..ce1d5d833c69 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLinkResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLinkResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortAuthorizationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortAuthorizationCollection.cs index 3c6ad80fa014..a67f3eee1a19 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortAuthorizationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortAuthorizationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string author /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string authorizationName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string authorizationName, CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortAuthorizationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortAuthorizationResource.cs index 8b25a8717fce..dd6fe844de64 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortAuthorizationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortAuthorizationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> U /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortCollection.cs index 1809d14b52ad..4be08758dd7d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdate /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string ex /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string expressRoutePortNam /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string expressRoutePortNam /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string expressRoutePortName, CancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortResource.cs index 824b96eaef3f..8fb806845233 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortResource.cs @@ -110,7 +110,7 @@ public virtual ExpressRouteLinkCollection GetExpressRouteLinks() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetExpressRouteLin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual ExpressRoutePortAuthorizationCollection GetExpressRoutePortAuthor /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetEx /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -241,7 +241,7 @@ public virtual Response GetExpressRoutePo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -405,7 +405,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> UpdateAsync(Networ /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -489,7 +489,7 @@ public virtual Response Update(NetworkTagsObject netwo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -531,7 +531,7 @@ public virtual async Task> Generate /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -573,7 +573,7 @@ public virtual Response GenerateLoa(Generate /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -635,7 +635,7 @@ public virtual async Task> AddTagAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -697,7 +697,7 @@ public virtual Response AddTag(string key, string valu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -754,7 +754,7 @@ public virtual async Task> SetTagsAsync(IDict /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -811,7 +811,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -871,7 +871,7 @@ public virtual async Task> RemoveTagAsync(str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocationCollection.cs index a011a387eeb9..ad31923823e5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocationCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -110,7 +110,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -155,7 +155,7 @@ public virtual Response Get(string locationNa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual AsyncPageable GetAllAsync(Canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual Pageable GetAll(CancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual async Task> ExistsAsync(string locationName, Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -301,7 +301,7 @@ public virtual Response Exists(string locationName, CancellationToken canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -346,7 +346,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocationResource.cs index 8a4245602e5a..7aea3e3007d3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocationResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteProviderPortCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteProviderPortCollection.cs index 0e311b031188..562f58b6db35 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteProviderPortCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteProviderPortCollection.cs @@ -70,7 +70,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> GetAsync(s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -160,7 +160,7 @@ public virtual Response Get(string providerpor /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -190,7 +190,7 @@ public virtual AsyncPageable GetAllAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -220,7 +220,7 @@ public virtual Pageable GetAll(string filter = /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -263,7 +263,7 @@ public virtual async Task> ExistsAsync(string providerport, Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -306,7 +306,7 @@ public virtual Response Exists(string providerport, CancellationToken canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteProviderPortResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteProviderPortResource.cs index 39b055c1d201..464de3408968 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteProviderPortResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteProviderPortResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync(C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkArmClient.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkArmClient.cs index 439768ee5647..ac56819beed6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkArmClient.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkArmClient.cs @@ -658,6 +658,78 @@ public virtual BaseAdminRuleResource GetBaseAdminRuleResource(ResourceIdentifier return new BaseAdminRuleResource(Client, id); } + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual SecurityUserConfigurationResource GetSecurityUserConfigurationResource(ResourceIdentifier id) + { + SecurityUserConfigurationResource.ValidateResourceId(id); + return new SecurityUserConfigurationResource(Client, id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual SecurityUserRuleCollectionResource GetSecurityUserRuleCollectionResource(ResourceIdentifier id) + { + SecurityUserRuleCollectionResource.ValidateResourceId(id); + return new SecurityUserRuleCollectionResource(Client, id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual SecurityUserRuleResource GetSecurityUserRuleResource(ResourceIdentifier id) + { + SecurityUserRuleResource.ValidateResourceId(id); + return new SecurityUserRuleResource(Client, id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual NetworkManagerRoutingConfigurationResource GetNetworkManagerRoutingConfigurationResource(ResourceIdentifier id) + { + NetworkManagerRoutingConfigurationResource.ValidateResourceId(id); + return new NetworkManagerRoutingConfigurationResource(Client, id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual RoutingRuleCollectionResource GetRoutingRuleCollectionResource(ResourceIdentifier id) + { + RoutingRuleCollectionResource.ValidateResourceId(id); + return new RoutingRuleCollectionResource(Client, id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual RoutingRuleResource GetRoutingRuleResource(ResourceIdentifier id) + { + RoutingRuleResource.ValidateResourceId(id); + return new RoutingRuleResource(Client, id); + } + /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. /// You can use to create a from its components. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkManagementGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkManagementGroupResource.cs index f12bda292b8e..aa96e9096326 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkManagementGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkManagementGroupResource.cs @@ -53,7 +53,7 @@ public virtual ManagementGroupNetworkManagerConnectionCollection GetManagementGr /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -84,7 +84,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkResourceGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkResourceGroupResource.cs index 11d6fc61d1f5..0467e9f0e527 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkResourceGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkResourceGroupResource.cs @@ -74,7 +74,7 @@ public virtual ApplicationGatewayCollection GetApplicationGateways() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -105,7 +105,7 @@ public virtual async Task> GetApplicationGa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual ApplicationSecurityGroupCollection GetApplicationSecurityGroups() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -174,7 +174,7 @@ public virtual async Task> GetApplica /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual AzureFirewallCollection GetAzureFirewalls() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -243,7 +243,7 @@ public virtual async Task> GetAzureFirewallAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual BastionHostCollection GetBastionHosts() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> GetBastionHostAsync(str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual CloudServiceSwapCollection GetCloudServiceSwaps(string resourceNa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task> GetCloudServiceSwa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -422,7 +422,7 @@ public virtual CustomIPPrefixCollection GetCustomIPPrefixes() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -454,7 +454,7 @@ public virtual async Task> GetCustomIPPrefixAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -493,7 +493,7 @@ public virtual DdosCustomPolicyCollection GetDdosCustomPolicies() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -524,7 +524,7 @@ public virtual async Task> GetDdosCustomPolic /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -562,7 +562,7 @@ public virtual DdosProtectionPlanCollection GetDdosProtectionPlans() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -593,7 +593,7 @@ public virtual async Task> GetDdosProtectio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -631,7 +631,7 @@ public virtual DscpConfigurationCollection GetDscpConfigurations() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -662,7 +662,7 @@ public virtual async Task> GetDscpConfigurat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -700,7 +700,7 @@ public virtual ExpressRouteCircuitCollection GetExpressRouteCircuits() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -731,7 +731,7 @@ public virtual async Task> GetExpressRoute /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -769,7 +769,7 @@ public virtual ExpressRouteCrossConnectionCollection GetExpressRouteCrossConnect /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -800,7 +800,7 @@ public virtual async Task> GetExpr /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -838,7 +838,7 @@ public virtual ExpressRoutePortCollection GetExpressRoutePorts() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -869,7 +869,7 @@ public virtual async Task> GetExpressRoutePor /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -907,7 +907,7 @@ public virtual FirewallPolicyCollection GetFirewallPolicies() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -939,7 +939,7 @@ public virtual async Task> GetFirewallPolicyAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -978,7 +978,7 @@ public virtual IPAllocationCollection GetIPAllocations() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1010,7 +1010,7 @@ public virtual async Task> GetIPAllocationAsync(s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1049,7 +1049,7 @@ public virtual IPGroupCollection GetIPGroups() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1081,7 +1081,7 @@ public virtual async Task> GetIPGroupAsync(string ipGr /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1120,7 +1120,7 @@ public virtual LoadBalancerCollection GetLoadBalancers() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1152,7 +1152,7 @@ public virtual async Task> GetLoadBalancerAsync(s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1191,7 +1191,7 @@ public virtual NatGatewayCollection GetNatGateways() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1223,7 +1223,7 @@ public virtual async Task> GetNatGatewayAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1262,7 +1262,7 @@ public virtual NetworkInterfaceCollection GetNetworkInterfaces() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1294,7 +1294,7 @@ public virtual async Task> GetNetworkInterfac /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1333,7 +1333,7 @@ public virtual NetworkManagerCollection GetNetworkManagers() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1364,7 +1364,7 @@ public virtual async Task> GetNetworkManagerAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1402,7 +1402,7 @@ public virtual NetworkProfileCollection GetNetworkProfiles() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1434,7 +1434,7 @@ public virtual async Task> GetNetworkProfileAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1473,7 +1473,7 @@ public virtual NetworkSecurityGroupCollection GetNetworkSecurityGroups() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1505,7 +1505,7 @@ public virtual async Task> GetNetworkSecu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1544,7 +1544,7 @@ public virtual NetworkVirtualApplianceCollection GetNetworkVirtualAppliances() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1576,7 +1576,7 @@ public virtual async Task> GetNetworkV /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1615,7 +1615,7 @@ public virtual NetworkWatcherCollection GetNetworkWatchers() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1646,7 +1646,7 @@ public virtual async Task> GetNetworkWatcherAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1684,7 +1684,7 @@ public virtual PrivateEndpointCollection GetPrivateEndpoints() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1716,7 +1716,7 @@ public virtual async Task> GetPrivateEndpointA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1755,7 +1755,7 @@ public virtual PrivateLinkServiceCollection GetPrivateLinkServices() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1787,7 +1787,7 @@ public virtual async Task> GetPrivateLinkSe /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1826,7 +1826,7 @@ public virtual PublicIPAddressCollection GetPublicIPAddresses() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1858,7 +1858,7 @@ public virtual async Task> GetPublicIPAddressA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1897,7 +1897,7 @@ public virtual PublicIPPrefixCollection GetPublicIPPrefixes() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1929,7 +1929,7 @@ public virtual async Task> GetPublicIPPrefixAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1968,7 +1968,7 @@ public virtual RouteFilterCollection GetRouteFilters() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2000,7 +2000,7 @@ public virtual async Task> GetRouteFilterAsync(str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2039,7 +2039,7 @@ public virtual RouteTableCollection GetRouteTables() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2071,7 +2071,7 @@ public virtual async Task> GetRouteTableAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2110,7 +2110,7 @@ public virtual SecurityPartnerProviderCollection GetSecurityPartnerProviders() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2141,7 +2141,7 @@ public virtual async Task> GetSecurity /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2179,7 +2179,7 @@ public virtual ServiceEndpointPolicyCollection GetServiceEndpointPolicies() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2211,7 +2211,7 @@ public virtual async Task> GetServiceEnd /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2250,7 +2250,7 @@ public virtual VirtualNetworkCollection GetVirtualNetworks() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2282,7 +2282,7 @@ public virtual async Task> GetVirtualNetworkAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2321,7 +2321,7 @@ public virtual VirtualNetworkGatewayCollection GetVirtualNetworkGateways() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2352,7 +2352,7 @@ public virtual async Task> GetVirtualNet /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2390,7 +2390,7 @@ public virtual VirtualNetworkGatewayConnectionCollection GetVirtualNetworkGatewa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2421,7 +2421,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2459,7 +2459,7 @@ public virtual LocalNetworkGatewayCollection GetLocalNetworkGateways() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2490,7 +2490,7 @@ public virtual async Task> GetLocalNetwork /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2528,7 +2528,7 @@ public virtual VirtualNetworkTapCollection GetVirtualNetworkTaps() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2559,7 +2559,7 @@ public virtual async Task> GetVirtualNetwork /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2597,7 +2597,7 @@ public virtual VirtualRouterCollection GetVirtualRouters() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2629,7 +2629,7 @@ public virtual async Task> GetVirtualRouterAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2668,7 +2668,7 @@ public virtual VirtualWanCollection GetVirtualWans() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2699,7 +2699,7 @@ public virtual async Task> GetVirtualWanAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2737,7 +2737,7 @@ public virtual VpnSiteCollection GetVpnSites() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2768,7 +2768,7 @@ public virtual async Task> GetVpnSiteAsync(string vpnS /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2806,7 +2806,7 @@ public virtual VpnServerConfigurationCollection GetVpnServerConfigurations() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2837,7 +2837,7 @@ public virtual async Task> GetVpnServer /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2875,7 +2875,7 @@ public virtual VirtualHubCollection GetVirtualHubs() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2906,7 +2906,7 @@ public virtual async Task> GetVirtualHubAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2944,7 +2944,7 @@ public virtual VpnGatewayCollection GetVpnGateways() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2975,7 +2975,7 @@ public virtual async Task> GetVpnGatewayAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3013,7 +3013,7 @@ public virtual P2SVpnGatewayCollection GetP2SVpnGateways() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3044,7 +3044,7 @@ public virtual async Task> GetP2SVpnGatewayAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3082,7 +3082,7 @@ public virtual ExpressRouteGatewayCollection GetExpressRouteGateways() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3113,7 +3113,7 @@ public virtual async Task> GetExpressRoute /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3151,7 +3151,7 @@ public virtual WebApplicationFirewallPolicyCollection GetWebApplicationFirewallP /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3182,7 +3182,7 @@ public virtual async Task> GetWeb /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3213,7 +3213,7 @@ public virtual Response GetWebApplicationF /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3240,7 +3240,7 @@ public virtual AsyncPageable GetAvailableResourceGroupDeleg /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3267,7 +3267,7 @@ public virtual Pageable GetAvailableResourceGroupDelegation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3294,7 +3294,7 @@ public virtual AsyncPageable GetAvailableServiceAliasesBy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3321,7 +3321,7 @@ public virtual Pageable GetAvailableServiceAliasesByResou /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3348,7 +3348,7 @@ public virtual AsyncPageable GetAvailablePrivateEn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3375,7 +3375,7 @@ public virtual Pageable GetAvailablePrivateEndpoin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3418,7 +3418,7 @@ public virtual async Task> CheckPriva /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3461,7 +3461,7 @@ public virtual ArmOperation CheckPrivateLinkServic /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3488,7 +3488,7 @@ public virtual AsyncPageable GetAutoApprovedPriv /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkSubscriptionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkSubscriptionResource.cs index b081eaf6bb3b..9698c07cb202 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkSubscriptionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkSubscriptionResource.cs @@ -267,7 +267,7 @@ public virtual ApplicationGatewayWafDynamicManifestCollection GetApplicationGate /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -332,7 +332,7 @@ public virtual AzureWebCategoryCollection GetAzureWebCategories() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual async Task> GetAzureWebCategor /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual ExpressRouteProviderPortCollection GetExpressRouteProviderPorts() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -434,7 +434,7 @@ public virtual async Task> GetExpress /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -472,7 +472,7 @@ public virtual ExpressRoutePortsLocationCollection GetExpressRoutePortsLocations /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -503,7 +503,7 @@ public virtual async Task> GetExpres /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -541,7 +541,7 @@ public virtual SubscriptionNetworkManagerConnectionCollection GetSubscriptionNet /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -572,7 +572,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -610,7 +610,7 @@ public virtual NetworkVirtualApplianceSkuCollection GetNetworkVirtualApplianceSk /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -641,7 +641,7 @@ public virtual async Task> GetNetwo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -672,7 +672,7 @@ public virtual Response GetNetworkVirtualApp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -702,7 +702,7 @@ public virtual AsyncPageable GetApplicationGatewaysA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -732,7 +732,7 @@ public virtual Pageable GetApplicationGateways(Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -761,7 +761,7 @@ public virtual AsyncPageable GetAvailableServerVariablesApplicationGatew /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -790,7 +790,7 @@ public virtual Pageable GetAvailableServerVariablesApplicationGateways(C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -819,7 +819,7 @@ public virtual AsyncPageable GetAvailableRequestHeadersApplicationGatewa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -848,7 +848,7 @@ public virtual Pageable GetAvailableRequestHeadersApplicationGateways(Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -877,7 +877,7 @@ public virtual AsyncPageable GetAvailableResponseHeadersApplicationGatew /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -906,7 +906,7 @@ public virtual Pageable GetAvailableResponseHeadersApplicationGateways(C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -935,7 +935,7 @@ public virtual AsyncPageable GetAppGatewayAva /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -964,7 +964,7 @@ public virtual Pageable GetAppGatewayAvailabl /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1002,7 +1002,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1040,7 +1040,7 @@ public virtual Response GetApplicatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1070,7 +1070,7 @@ public virtual AsyncPageable GetApplicati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1100,7 +1100,7 @@ public virtual Pageable GetApplicationGat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1143,7 +1143,7 @@ public virtual async Task> GetAp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1186,7 +1186,7 @@ public virtual Response GetApplicationGat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1216,7 +1216,7 @@ public virtual AsyncPageable GetApplicationSec /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1246,7 +1246,7 @@ public virtual Pageable GetApplicationSecurity /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -1273,7 +1273,7 @@ public virtual AsyncPageable GetAvailableDelegationsAsync(A /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -1300,7 +1300,7 @@ public virtual Pageable GetAvailableDelegations(AzureLocati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -1327,7 +1327,7 @@ public virtual AsyncPageable GetAvailableServiceAliasesAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -1354,7 +1354,7 @@ public virtual Pageable GetAvailableServiceAliases(AzureL /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1384,7 +1384,7 @@ public virtual AsyncPageable GetAzureFirewallsAsync(Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1414,7 +1414,7 @@ public virtual Pageable GetAzureFirewalls(CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -1440,7 +1440,7 @@ public virtual AsyncPageable GetAzureFirewallFqdnTagsAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -1466,7 +1466,7 @@ public virtual Pageable GetAzureFirewallFqdnTags(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1496,7 +1496,7 @@ public virtual AsyncPageable GetBastionHostsAsync(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1526,7 +1526,7 @@ public virtual Pageable GetBastionHosts(CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1569,7 +1569,7 @@ public virtual async Task> CheckDnsNameAvail /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1612,7 +1612,7 @@ public virtual Response CheckDnsNameAvailability(Azur /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1642,7 +1642,7 @@ public virtual AsyncPageable GetCustomIPPrefixesAsync(Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1672,7 +1672,7 @@ public virtual Pageable GetCustomIPPrefixes(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1702,7 +1702,7 @@ public virtual AsyncPageable GetDdosProtectionPlansA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1732,7 +1732,7 @@ public virtual Pageable GetDdosProtectionPlans(Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1762,7 +1762,7 @@ public virtual AsyncPageable GetDscpConfigurationsAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1792,7 +1792,7 @@ public virtual Pageable GetDscpConfigurations(Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -1819,7 +1819,7 @@ public virtual AsyncPageable GetAvailableEndpointServices /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -1846,7 +1846,7 @@ public virtual Pageable GetAvailableEndpointServices(Azur /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1876,7 +1876,7 @@ public virtual AsyncPageable GetExpressRouteCircuit /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1906,7 +1906,7 @@ public virtual Pageable GetExpressRouteCircuits(Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -1932,7 +1932,7 @@ public virtual AsyncPageable GetExpressRouteService /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -1958,7 +1958,7 @@ public virtual Pageable GetExpressRouteServiceProvi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1988,7 +1988,7 @@ public virtual AsyncPageable GetExpressRout /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2018,7 +2018,7 @@ public virtual Pageable GetExpressRouteCros /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2048,7 +2048,7 @@ public virtual AsyncPageable GetExpressRoutePortsAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2078,7 +2078,7 @@ public virtual Pageable GetExpressRoutePorts(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2108,7 +2108,7 @@ public virtual AsyncPageable GetFirewallPoliciesAsync(Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2138,7 +2138,7 @@ public virtual Pageable GetFirewallPolicies(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2168,7 +2168,7 @@ public virtual AsyncPageable GetIPAllocationsAsync(Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2198,7 +2198,7 @@ public virtual Pageable GetIPAllocations(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2228,7 +2228,7 @@ public virtual AsyncPageable GetIPGroupsAsync(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2258,7 +2258,7 @@ public virtual Pageable GetIPGroups(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2288,7 +2288,7 @@ public virtual AsyncPageable GetLoadBalancersAsync(Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2318,7 +2318,7 @@ public virtual Pageable GetLoadBalancers(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2365,7 +2365,7 @@ public virtual async Task SwapPublicIPAddressesLoadBalancerAsync(W /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2412,7 +2412,7 @@ public virtual ArmOperation SwapPublicIPAddressesLoadBalancer(WaitUntil waitUnti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2442,7 +2442,7 @@ public virtual AsyncPageable GetNatGatewaysAsync(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2472,7 +2472,7 @@ public virtual Pageable GetNatGateways(CancellationToken can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2502,7 +2502,7 @@ public virtual AsyncPageable GetNetworkInterfacesAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2532,7 +2532,7 @@ public virtual Pageable GetNetworkInterfaces(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2564,7 +2564,7 @@ public virtual AsyncPageable GetNetworkManagersAsync(int /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2596,7 +2596,7 @@ public virtual Pageable GetNetworkManagers(int? top = nu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2626,7 +2626,7 @@ public virtual AsyncPageable GetNetworkProfilesAsync(Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2656,7 +2656,7 @@ public virtual Pageable GetNetworkProfiles(CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2686,7 +2686,7 @@ public virtual AsyncPageable GetNetworkSecurityGro /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2716,7 +2716,7 @@ public virtual Pageable GetNetworkSecurityGroups(C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2746,7 +2746,7 @@ public virtual AsyncPageable GetNetworkVirtualA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2776,7 +2776,7 @@ public virtual Pageable GetNetworkVirtualApplia /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2805,7 +2805,7 @@ public virtual AsyncPageable GetNetworkWatchersAsync(Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2834,7 +2834,7 @@ public virtual Pageable GetNetworkWatchers(CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2864,7 +2864,7 @@ public virtual AsyncPageable GetPrivateEndpointsAsync(C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2894,7 +2894,7 @@ public virtual Pageable GetPrivateEndpoints(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -2921,7 +2921,7 @@ public virtual AsyncPageable GetAvailablePrivateEn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -2948,7 +2948,7 @@ public virtual Pageable GetAvailablePrivateEndpoin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2978,7 +2978,7 @@ public virtual AsyncPageable GetPrivateLinkServicesA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3008,7 +3008,7 @@ public virtual Pageable GetPrivateLinkServices(Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3051,7 +3051,7 @@ public virtual async Task> CheckPriva /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3094,7 +3094,7 @@ public virtual ArmOperation CheckPrivateLinkServic /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3121,7 +3121,7 @@ public virtual AsyncPageable GetAutoApprovedPriv /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3148,7 +3148,7 @@ public virtual Pageable GetAutoApprovedPrivateLi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3178,7 +3178,7 @@ public virtual AsyncPageable GetPublicIPAddressesAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3208,7 +3208,7 @@ public virtual Pageable GetPublicIPAddresses(Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3238,7 +3238,7 @@ public virtual AsyncPageable GetPublicIPPrefixesAsync(Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3268,7 +3268,7 @@ public virtual Pageable GetPublicIPPrefixes(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3298,7 +3298,7 @@ public virtual AsyncPageable GetRouteFiltersAsync(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3328,7 +3328,7 @@ public virtual Pageable GetRouteFilters(CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3358,7 +3358,7 @@ public virtual AsyncPageable GetRouteTablesAsync(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3388,7 +3388,7 @@ public virtual Pageable GetRouteTables(CancellationToken can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3418,7 +3418,7 @@ public virtual AsyncPageable GetSecurityPartner /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3448,7 +3448,7 @@ public virtual Pageable GetSecurityPartnerProvi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3474,7 +3474,7 @@ public virtual AsyncPageable GetBgpServiceCommunitiesAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3500,7 +3500,7 @@ public virtual Pageable GetBgpServiceCommunities(Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3530,7 +3530,7 @@ public virtual AsyncPageable GetServiceEndpointPo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3560,7 +3560,7 @@ public virtual Pageable GetServiceEndpointPolicie /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3595,7 +3595,7 @@ public virtual async Task> GetServiceTagAsync(Az /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3630,7 +3630,7 @@ public virtual Response GetServiceTag(AzureLocation locat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3659,7 +3659,7 @@ public virtual AsyncPageable GetAllServiceTagInformationA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3688,7 +3688,7 @@ public virtual Pageable GetAllServiceTagInformation(Azure /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3715,7 +3715,7 @@ public virtual AsyncPageable GetUsagesAsync(AzureLocation location /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -3742,7 +3742,7 @@ public virtual Pageable GetUsages(AzureLocation location, Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3772,7 +3772,7 @@ public virtual AsyncPageable GetVirtualNetworksAsync(Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3802,7 +3802,7 @@ public virtual Pageable GetVirtualNetworks(CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3832,7 +3832,7 @@ public virtual AsyncPageable GetVirtualNetworkTapsAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3862,7 +3862,7 @@ public virtual Pageable GetVirtualNetworkTaps(Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3892,7 +3892,7 @@ public virtual AsyncPageable GetVirtualRoutersAsync(Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3922,7 +3922,7 @@ public virtual Pageable GetVirtualRouters(CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3952,7 +3952,7 @@ public virtual AsyncPageable GetVirtualWansAsync(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3982,7 +3982,7 @@ public virtual Pageable GetVirtualWans(CancellationToken can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4012,7 +4012,7 @@ public virtual AsyncPageable GetVpnSitesAsync(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4042,7 +4042,7 @@ public virtual Pageable GetVpnSites(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4072,7 +4072,7 @@ public virtual AsyncPageable GetVpnServerConfigu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4102,7 +4102,7 @@ public virtual Pageable GetVpnServerConfiguratio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4132,7 +4132,7 @@ public virtual AsyncPageable GetVirtualHubsAsync(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4162,7 +4162,7 @@ public virtual Pageable GetVirtualHubs(CancellationToken can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4192,7 +4192,7 @@ public virtual AsyncPageable GetVpnGatewaysAsync(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4222,7 +4222,7 @@ public virtual Pageable GetVpnGateways(CancellationToken can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4252,7 +4252,7 @@ public virtual AsyncPageable GetP2SVpnGatewaysAsync(Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4282,7 +4282,7 @@ public virtual Pageable GetP2SVpnGateways(CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4311,7 +4311,7 @@ public virtual AsyncPageable GetExpressRouteGateway /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4340,7 +4340,7 @@ public virtual Pageable GetExpressRouteGateways(Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4370,7 +4370,7 @@ public virtual AsyncPageable GetWebApplica /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/NetworkExtensions.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/NetworkExtensions.cs index 00651e152260..31df830da6f2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/NetworkExtensions.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/NetworkExtensions.cs @@ -1027,6 +1027,120 @@ public static BaseAdminRuleResource GetBaseAdminRuleResource(this ArmClient clie return GetMockableNetworkArmClient(client).GetBaseAdminRuleResource(id); } + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static SecurityUserConfigurationResource GetSecurityUserConfigurationResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableNetworkArmClient(client).GetSecurityUserConfigurationResource(id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static SecurityUserRuleCollectionResource GetSecurityUserRuleCollectionResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableNetworkArmClient(client).GetSecurityUserRuleCollectionResource(id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static SecurityUserRuleResource GetSecurityUserRuleResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableNetworkArmClient(client).GetSecurityUserRuleResource(id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static NetworkManagerRoutingConfigurationResource GetNetworkManagerRoutingConfigurationResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableNetworkArmClient(client).GetNetworkManagerRoutingConfigurationResource(id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static RoutingRuleCollectionResource GetRoutingRuleCollectionResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableNetworkArmClient(client).GetRoutingRuleCollectionResource(id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static RoutingRuleResource GetRoutingRuleResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableNetworkArmClient(client).GetRoutingRuleResource(id); + } + /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. /// You can use to create a from its components. @@ -2159,7 +2273,7 @@ public static ManagementGroupNetworkManagerConnectionCollection GetManagementGro /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2197,7 +2311,7 @@ public static async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2252,7 +2366,7 @@ public static ApplicationGatewayCollection GetApplicationGateways(this ResourceG /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2290,7 +2404,7 @@ public static async Task> GetApplicationGat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2345,7 +2459,7 @@ public static ApplicationSecurityGroupCollection GetApplicationSecurityGroups(th /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2383,7 +2497,7 @@ public static async Task> GetApplicat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2438,7 +2552,7 @@ public static AzureFirewallCollection GetAzureFirewalls(this ResourceGroupResour /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2476,7 +2590,7 @@ public static async Task> GetAzureFirewallAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2531,7 +2645,7 @@ public static BastionHostCollection GetBastionHosts(this ResourceGroupResource r /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2569,7 +2683,7 @@ public static async Task> GetBastionHostAsync(this /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2626,7 +2740,7 @@ public static CloudServiceSwapCollection GetCloudServiceSwaps(this ResourceGroup /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2664,7 +2778,7 @@ public static async Task> GetCloudServiceSwap /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2719,7 +2833,7 @@ public static CustomIPPrefixCollection GetCustomIPPrefixes(this ResourceGroupRes /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2758,7 +2872,7 @@ public static async Task> GetCustomIPPrefixAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2814,7 +2928,7 @@ public static DdosCustomPolicyCollection GetDdosCustomPolicies(this ResourceGrou /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2852,7 +2966,7 @@ public static async Task> GetDdosCustomPolicy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2907,7 +3021,7 @@ public static DdosProtectionPlanCollection GetDdosProtectionPlans(this ResourceG /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2945,7 +3059,7 @@ public static async Task> GetDdosProtection /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3000,7 +3114,7 @@ public static DscpConfigurationCollection GetDscpConfigurations(this ResourceGro /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3038,7 +3152,7 @@ public static async Task> GetDscpConfigurati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3093,7 +3207,7 @@ public static ExpressRouteCircuitCollection GetExpressRouteCircuits(this Resourc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3131,7 +3245,7 @@ public static async Task> GetExpressRouteC /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3186,7 +3300,7 @@ public static ExpressRouteCrossConnectionCollection GetExpressRouteCrossConnecti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3224,7 +3338,7 @@ public static async Task> GetExpre /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3279,7 +3393,7 @@ public static ExpressRoutePortCollection GetExpressRoutePorts(this ResourceGroup /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3317,7 +3431,7 @@ public static async Task> GetExpressRoutePort /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3372,7 +3486,7 @@ public static FirewallPolicyCollection GetFirewallPolicies(this ResourceGroupRes /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3411,7 +3525,7 @@ public static async Task> GetFirewallPolicyAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3467,7 +3581,7 @@ public static IPAllocationCollection GetIPAllocations(this ResourceGroupResource /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3506,7 +3620,7 @@ public static async Task> GetIPAllocationAsync(th /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3562,7 +3676,7 @@ public static IPGroupCollection GetIPGroups(this ResourceGroupResource resourceG /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3601,7 +3715,7 @@ public static async Task> GetIPGroupAsync(this Resourc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3657,7 +3771,7 @@ public static LoadBalancerCollection GetLoadBalancers(this ResourceGroupResource /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3696,7 +3810,7 @@ public static async Task> GetLoadBalancerAsync(th /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3752,7 +3866,7 @@ public static NatGatewayCollection GetNatGateways(this ResourceGroupResource res /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3791,7 +3905,7 @@ public static async Task> GetNatGatewayAsync(this R /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3847,7 +3961,7 @@ public static NetworkInterfaceCollection GetNetworkInterfaces(this ResourceGroup /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3886,7 +4000,7 @@ public static async Task> GetNetworkInterface /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3942,7 +4056,7 @@ public static NetworkManagerCollection GetNetworkManagers(this ResourceGroupReso /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -3980,7 +4094,7 @@ public static async Task> GetNetworkManagerAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4035,7 +4149,7 @@ public static NetworkProfileCollection GetNetworkProfiles(this ResourceGroupReso /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4074,7 +4188,7 @@ public static async Task> GetNetworkProfileAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4130,7 +4244,7 @@ public static NetworkSecurityGroupCollection GetNetworkSecurityGroups(this Resou /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4169,7 +4283,7 @@ public static async Task> GetNetworkSecur /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4225,7 +4339,7 @@ public static NetworkVirtualApplianceCollection GetNetworkVirtualAppliances(this /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4264,7 +4378,7 @@ public static async Task> GetNetworkVi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4320,7 +4434,7 @@ public static NetworkWatcherCollection GetNetworkWatchers(this ResourceGroupReso /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4358,7 +4472,7 @@ public static async Task> GetNetworkWatcherAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4413,7 +4527,7 @@ public static PrivateEndpointCollection GetPrivateEndpoints(this ResourceGroupRe /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4452,7 +4566,7 @@ public static async Task> GetPrivateEndpointAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4508,7 +4622,7 @@ public static PrivateLinkServiceCollection GetPrivateLinkServices(this ResourceG /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4547,7 +4661,7 @@ public static async Task> GetPrivateLinkSer /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4603,7 +4717,7 @@ public static PublicIPAddressCollection GetPublicIPAddresses(this ResourceGroupR /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4642,7 +4756,7 @@ public static async Task> GetPublicIPAddressAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4698,7 +4812,7 @@ public static PublicIPPrefixCollection GetPublicIPPrefixes(this ResourceGroupRes /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4737,7 +4851,7 @@ public static async Task> GetPublicIPPrefixAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4793,7 +4907,7 @@ public static RouteFilterCollection GetRouteFilters(this ResourceGroupResource r /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4832,7 +4946,7 @@ public static async Task> GetRouteFilterAsync(this /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4888,7 +5002,7 @@ public static RouteTableCollection GetRouteTables(this ResourceGroupResource res /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4927,7 +5041,7 @@ public static async Task> GetRouteTableAsync(this R /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -4983,7 +5097,7 @@ public static SecurityPartnerProviderCollection GetSecurityPartnerProviders(this /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5021,7 +5135,7 @@ public static async Task> GetSecurityP /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5076,7 +5190,7 @@ public static ServiceEndpointPolicyCollection GetServiceEndpointPolicies(this Re /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5115,7 +5229,7 @@ public static async Task> GetServiceEndp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5171,7 +5285,7 @@ public static VirtualNetworkCollection GetVirtualNetworks(this ResourceGroupReso /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5210,7 +5324,7 @@ public static async Task> GetVirtualNetworkAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5266,7 +5380,7 @@ public static VirtualNetworkGatewayCollection GetVirtualNetworkGateways(this Res /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5304,7 +5418,7 @@ public static async Task> GetVirtualNetw /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5359,7 +5473,7 @@ public static VirtualNetworkGatewayConnectionCollection GetVirtualNetworkGateway /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5397,7 +5511,7 @@ public static async Task> GetV /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5452,7 +5566,7 @@ public static LocalNetworkGatewayCollection GetLocalNetworkGateways(this Resourc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5490,7 +5604,7 @@ public static async Task> GetLocalNetworkG /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5545,7 +5659,7 @@ public static VirtualNetworkTapCollection GetVirtualNetworkTaps(this ResourceGro /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5583,7 +5697,7 @@ public static async Task> GetVirtualNetworkT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5638,7 +5752,7 @@ public static VirtualRouterCollection GetVirtualRouters(this ResourceGroupResour /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5677,7 +5791,7 @@ public static async Task> GetVirtualRouterAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5733,7 +5847,7 @@ public static VirtualWanCollection GetVirtualWans(this ResourceGroupResource res /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5771,7 +5885,7 @@ public static async Task> GetVirtualWanAsync(this R /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5826,7 +5940,7 @@ public static VpnSiteCollection GetVpnSites(this ResourceGroupResource resourceG /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5864,7 +5978,7 @@ public static async Task> GetVpnSiteAsync(this Resourc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5919,7 +6033,7 @@ public static VpnServerConfigurationCollection GetVpnServerConfigurations(this R /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -5957,7 +6071,7 @@ public static async Task> GetVpnServerC /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -6012,7 +6126,7 @@ public static VirtualHubCollection GetVirtualHubs(this ResourceGroupResource res /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -6050,7 +6164,7 @@ public static async Task> GetVirtualHubAsync(this R /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -6105,7 +6219,7 @@ public static VpnGatewayCollection GetVpnGateways(this ResourceGroupResource res /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -6143,7 +6257,7 @@ public static async Task> GetVpnGatewayAsync(this R /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -6198,7 +6312,7 @@ public static P2SVpnGatewayCollection GetP2SVpnGateways(this ResourceGroupResour /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -6236,7 +6350,7 @@ public static async Task> GetP2SVpnGatewayAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -6291,7 +6405,7 @@ public static ExpressRouteGatewayCollection GetExpressRouteGateways(this Resourc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -6329,7 +6443,7 @@ public static async Task> GetExpressRouteG /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -6384,7 +6498,7 @@ public static WebApplicationFirewallPolicyCollection GetWebApplicationFirewallPo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -6422,7 +6536,7 @@ public static async Task> GetWebA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -6460,7 +6574,7 @@ public static Response GetWebApplicationFi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -6493,7 +6607,7 @@ public static AsyncPageable GetAvailableResourceGroupDelega /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -6526,7 +6640,7 @@ public static Pageable GetAvailableResourceGroupDelegations /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -6559,7 +6673,7 @@ public static AsyncPageable GetAvailableServiceAliasesByR /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -6592,7 +6706,7 @@ public static Pageable GetAvailableServiceAliasesByResour /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -6625,7 +6739,7 @@ public static AsyncPageable GetAvailablePrivateEnd /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -6658,7 +6772,7 @@ public static Pageable GetAvailablePrivateEndpoint /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -6692,7 +6806,7 @@ public static async Task> CheckPrivat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -6726,7 +6840,7 @@ public static ArmOperation CheckPrivateLinkService /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -6759,7 +6873,7 @@ public static AsyncPageable GetAutoApprovedPriva /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -6810,7 +6924,7 @@ public static ApplicationGatewayWafDynamicManifestCollection GetApplicationGatew /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -6847,7 +6961,7 @@ public static async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -6901,7 +7015,7 @@ public static AzureWebCategoryCollection GetAzureWebCategories(this Subscription /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -6940,7 +7054,7 @@ public static async Task> GetAzureWebCategory /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -6996,7 +7110,7 @@ public static ExpressRouteProviderPortCollection GetExpressRouteProviderPorts(th /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7034,7 +7148,7 @@ public static async Task> GetExpressR /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7089,7 +7203,7 @@ public static ExpressRoutePortsLocationCollection GetExpressRoutePortsLocations( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7127,7 +7241,7 @@ public static async Task> GetExpress /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7182,7 +7296,7 @@ public static SubscriptionNetworkManagerConnectionCollection GetSubscriptionNetw /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7220,7 +7334,7 @@ public static async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7275,7 +7389,7 @@ public static NetworkVirtualApplianceSkuCollection GetNetworkVirtualApplianceSku /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7313,7 +7427,7 @@ public static async Task> GetNetwor /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7351,7 +7465,7 @@ public static Response GetNetworkVirtualAppl /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7387,7 +7501,7 @@ public static AsyncPageable GetApplicationGatewaysAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7423,7 +7537,7 @@ public static Pageable GetApplicationGateways(this S /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7459,7 +7573,7 @@ public static AsyncPageable GetAvailableServerVariablesApplicationGatewa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7495,7 +7609,7 @@ public static Pageable GetAvailableServerVariablesApplicationGateways(th /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7531,7 +7645,7 @@ public static AsyncPageable GetAvailableRequestHeadersApplicationGateway /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7567,7 +7681,7 @@ public static Pageable GetAvailableRequestHeadersApplicationGateways(thi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7603,7 +7717,7 @@ public static AsyncPageable GetAvailableResponseHeadersApplicationGatewa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7639,7 +7753,7 @@ public static Pageable GetAvailableResponseHeadersApplicationGateways(th /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7675,7 +7789,7 @@ public static AsyncPageable GetAppGatewayAvai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7711,7 +7825,7 @@ public static Pageable GetAppGatewayAvailable /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7746,7 +7860,7 @@ public static async Task> Ge /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7781,7 +7895,7 @@ public static Response GetApplication /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7817,7 +7931,7 @@ public static AsyncPageable GetApplicatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7853,7 +7967,7 @@ public static Pageable GetApplicationGate /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7890,7 +8004,7 @@ public static async Task> GetApp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7927,7 +8041,7 @@ public static Response GetApplicationGate /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7963,7 +8077,7 @@ public static AsyncPageable GetApplicationSecu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -7999,7 +8113,7 @@ public static Pageable GetApplicationSecurityG /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -8032,7 +8146,7 @@ public static AsyncPageable GetAvailableDelegationsAsync(th /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -8065,7 +8179,7 @@ public static Pageable GetAvailableDelegations(this Subscri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -8098,7 +8212,7 @@ public static AsyncPageable GetAvailableServiceAliasesAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -8131,7 +8245,7 @@ public static Pageable GetAvailableServiceAliases(this Su /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -8167,7 +8281,7 @@ public static AsyncPageable GetAzureFirewallsAsync(this S /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -8203,7 +8317,7 @@ public static Pageable GetAzureFirewalls(this Subscriptio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -8235,7 +8349,7 @@ public static AsyncPageable GetAzureFirewallFqdnTagsAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -8267,7 +8381,7 @@ public static Pageable GetAzureFirewallFqdnTags(this Subsc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -8303,7 +8417,7 @@ public static AsyncPageable GetBastionHostsAsync(this Subsc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -8339,7 +8453,7 @@ public static Pageable GetBastionHosts(this SubscriptionRes /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -8376,7 +8490,7 @@ public static async Task> CheckDnsNameAvaila /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -8413,7 +8527,7 @@ public static Response CheckDnsNameAvailability(this /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -8449,7 +8563,7 @@ public static AsyncPageable GetCustomIPPrefixesAsync(thi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -8485,7 +8599,7 @@ public static Pageable GetCustomIPPrefixes(this Subscrip /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -8521,7 +8635,7 @@ public static AsyncPageable GetDdosProtectionPlansAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -8557,7 +8671,7 @@ public static Pageable GetDdosProtectionPlans(this S /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -8593,7 +8707,7 @@ public static AsyncPageable GetDscpConfigurationsAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -8629,7 +8743,7 @@ public static Pageable GetDscpConfigurations(this Sub /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -8662,7 +8776,7 @@ public static AsyncPageable GetAvailableEndpointServicesA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -8695,7 +8809,7 @@ public static Pageable GetAvailableEndpointServices(this /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -8731,7 +8845,7 @@ public static AsyncPageable GetExpressRouteCircuits /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -8767,7 +8881,7 @@ public static Pageable GetExpressRouteCircuits(this /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -8799,7 +8913,7 @@ public static AsyncPageable GetExpressRouteServiceP /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -8831,7 +8945,7 @@ public static Pageable GetExpressRouteServiceProvid /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -8867,7 +8981,7 @@ public static AsyncPageable GetExpressRoute /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -8903,7 +9017,7 @@ public static Pageable GetExpressRouteCross /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -8939,7 +9053,7 @@ public static AsyncPageable GetExpressRoutePortsAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -8975,7 +9089,7 @@ public static Pageable GetExpressRoutePorts(this Subsc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9011,7 +9125,7 @@ public static AsyncPageable GetFirewallPoliciesAsync(thi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9047,7 +9161,7 @@ public static Pageable GetFirewallPolicies(this Subscrip /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9083,7 +9197,7 @@ public static AsyncPageable GetIPAllocationsAsync(this Sub /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9119,7 +9233,7 @@ public static Pageable GetIPAllocations(this SubscriptionR /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9155,7 +9269,7 @@ public static AsyncPageable GetIPGroupsAsync(this SubscriptionR /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9191,7 +9305,7 @@ public static Pageable GetIPGroups(this SubscriptionResource su /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9227,7 +9341,7 @@ public static AsyncPageable GetLoadBalancersAsync(this Sub /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9263,7 +9377,7 @@ public static Pageable GetLoadBalancers(this SubscriptionR /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9301,7 +9415,7 @@ public static async Task SwapPublicIPAddressesLoadBalancerAsync(th /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9339,7 +9453,7 @@ public static ArmOperation SwapPublicIPAddressesLoadBalancer(this SubscriptionRe /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9375,7 +9489,7 @@ public static AsyncPageable GetNatGatewaysAsync(this Subscri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9411,7 +9525,7 @@ public static Pageable GetNatGateways(this SubscriptionResou /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9447,7 +9561,7 @@ public static AsyncPageable GetNetworkInterfacesAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9483,7 +9597,7 @@ public static Pageable GetNetworkInterfaces(this Subsc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9521,7 +9635,7 @@ public static AsyncPageable GetNetworkManagersAsync(this /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9559,7 +9673,7 @@ public static Pageable GetNetworkManagers(this Subscript /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9595,7 +9709,7 @@ public static AsyncPageable GetNetworkProfilesAsync(this /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9631,7 +9745,7 @@ public static Pageable GetNetworkProfiles(this Subscript /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9667,7 +9781,7 @@ public static AsyncPageable GetNetworkSecurityGrou /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9703,7 +9817,7 @@ public static Pageable GetNetworkSecurityGroups(th /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9739,7 +9853,7 @@ public static AsyncPageable GetNetworkVirtualAp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9775,7 +9889,7 @@ public static Pageable GetNetworkVirtualApplian /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9811,7 +9925,7 @@ public static AsyncPageable GetNetworkWatchersAsync(this /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9847,7 +9961,7 @@ public static Pageable GetNetworkWatchers(this Subscript /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9883,7 +9997,7 @@ public static AsyncPageable GetPrivateEndpointsAsync(th /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -9919,7 +10033,7 @@ public static Pageable GetPrivateEndpoints(this Subscri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -9952,7 +10066,7 @@ public static AsyncPageable GetAvailablePrivateEnd /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -9985,7 +10099,7 @@ public static Pageable GetAvailablePrivateEndpoint /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -10021,7 +10135,7 @@ public static AsyncPageable GetPrivateLinkServicesAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -10057,7 +10171,7 @@ public static Pageable GetPrivateLinkServices(this S /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -10091,7 +10205,7 @@ public static async Task> CheckPrivat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -10125,7 +10239,7 @@ public static ArmOperation CheckPrivateLinkService /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -10158,7 +10272,7 @@ public static AsyncPageable GetAutoApprovedPriva /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -10191,7 +10305,7 @@ public static Pageable GetAutoApprovedPrivateLin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -10227,7 +10341,7 @@ public static AsyncPageable GetPublicIPAddressesAsync(t /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -10263,7 +10377,7 @@ public static Pageable GetPublicIPAddresses(this Subscr /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -10299,7 +10413,7 @@ public static AsyncPageable GetPublicIPPrefixesAsync(thi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -10335,7 +10449,7 @@ public static Pageable GetPublicIPPrefixes(this Subscrip /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -10371,7 +10485,7 @@ public static AsyncPageable GetRouteFiltersAsync(this Subsc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -10407,7 +10521,7 @@ public static Pageable GetRouteFilters(this SubscriptionRes /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -10443,7 +10557,7 @@ public static AsyncPageable GetRouteTablesAsync(this Subscri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -10479,7 +10593,7 @@ public static Pageable GetRouteTables(this SubscriptionResou /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -10515,7 +10629,7 @@ public static AsyncPageable GetSecurityPartnerP /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -10551,7 +10665,7 @@ public static Pageable GetSecurityPartnerProvid /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -10583,7 +10697,7 @@ public static AsyncPageable GetBgpServiceCommunitiesAsync(t /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -10615,7 +10729,7 @@ public static Pageable GetBgpServiceCommunities(this Subscr /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -10651,7 +10765,7 @@ public static AsyncPageable GetServiceEndpointPol /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -10687,7 +10801,7 @@ public static Pageable GetServiceEndpointPolicies /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -10719,7 +10833,7 @@ public static async Task> GetServiceTagAsync(thi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -10751,7 +10865,7 @@ public static Response GetServiceTag(this SubscriptionRes /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -10786,7 +10900,7 @@ public static AsyncPageable GetAllServiceTagInformationAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -10821,7 +10935,7 @@ public static Pageable GetAllServiceTagInformation(this S /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -10854,7 +10968,7 @@ public static AsyncPageable GetUsagesAsync(this SubscriptionResour /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -10887,7 +11001,7 @@ public static Pageable GetUsages(this SubscriptionResource subscri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -10923,7 +11037,7 @@ public static AsyncPageable GetVirtualNetworksAsync(this /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -10959,7 +11073,7 @@ public static Pageable GetVirtualNetworks(this Subscript /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -10995,7 +11109,7 @@ public static AsyncPageable GetVirtualNetworkTapsAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -11031,7 +11145,7 @@ public static Pageable GetVirtualNetworkTaps(this Sub /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -11067,7 +11181,7 @@ public static AsyncPageable GetVirtualRoutersAsync(this S /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -11103,7 +11217,7 @@ public static Pageable GetVirtualRouters(this Subscriptio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -11139,7 +11253,7 @@ public static AsyncPageable GetVirtualWansAsync(this Subscri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -11175,7 +11289,7 @@ public static Pageable GetVirtualWans(this SubscriptionResou /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -11211,7 +11325,7 @@ public static AsyncPageable GetVpnSitesAsync(this SubscriptionR /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -11247,7 +11361,7 @@ public static Pageable GetVpnSites(this SubscriptionResource su /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -11283,7 +11397,7 @@ public static AsyncPageable GetVpnServerConfigur /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -11319,7 +11433,7 @@ public static Pageable GetVpnServerConfiguration /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -11355,7 +11469,7 @@ public static AsyncPageable GetVirtualHubsAsync(this Subscri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -11391,7 +11505,7 @@ public static Pageable GetVirtualHubs(this SubscriptionResou /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -11427,7 +11541,7 @@ public static AsyncPageable GetVpnGatewaysAsync(this Subscri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -11463,7 +11577,7 @@ public static Pageable GetVpnGateways(this SubscriptionResou /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -11499,7 +11613,7 @@ public static AsyncPageable GetP2SVpnGatewaysAsync(this S /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -11535,7 +11649,7 @@ public static Pageable GetP2SVpnGateways(this Subscriptio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -11571,7 +11685,7 @@ public static AsyncPageable GetExpressRouteGateways /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -11607,7 +11721,7 @@ public static Pageable GetExpressRouteGateways(this /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -11643,7 +11757,7 @@ public static AsyncPageable GetWebApplicat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyCollection.cs index ff6984d2ecf6..acf1f05eba25 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string fire /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string firewallPolicyName, s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string firewallPolicyName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string firewallPolicyName, string expand = /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyDraftResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyDraftResource.cs index 4bb26edb356b..81ac3605f5eb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyDraftResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyDraftResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -365,7 +365,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -422,7 +422,7 @@ public virtual async Task> AddTagAsync(str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -479,7 +479,7 @@ public virtual Response AddTag(string key, string v /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -535,7 +535,7 @@ public virtual async Task> SetTagsAsync(ID /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -591,7 +591,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -646,7 +646,7 @@ public virtual async Task> RemoveTagAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyResource.cs index 89e6a13b0e5c..bb29d57f64cd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyResource.cs @@ -122,7 +122,7 @@ public virtual FirewallPolicyRuleCollectionGroupCollection GetFirewallPolicyRule /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -153,7 +153,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -198,7 +198,7 @@ public virtual FirewallPolicyDraftResource GetFirewallPolicyDraft() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -239,7 +239,7 @@ public virtual async Task> GetAsync(string expa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -280,7 +280,7 @@ public virtual Response Get(string expand = null, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -322,7 +322,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual async Task> UpdateAsync(NetworkT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual Response Update(NetworkTagsObject network /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -486,7 +486,7 @@ public virtual async Task> GetFirewallPolicyId /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -524,7 +524,7 @@ public virtual Response GetFirewallPolicyIdpsSignature( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -562,7 +562,7 @@ public virtual async Task> GetFir /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -600,7 +600,7 @@ public virtual Response GetFirewallPolicyI /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -638,7 +638,7 @@ public virtual async Task DeployFirewallPolicyDeploymentAsync(Wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -676,7 +676,7 @@ public virtual ArmOperation DeployFirewallPolicyDeployment(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -738,7 +738,7 @@ public virtual async Task> AddTagAsync(string k /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -800,7 +800,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -857,7 +857,7 @@ public virtual async Task> SetTagsAsync(IDictio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -914,7 +914,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -974,7 +974,7 @@ public virtual async Task> RemoveTagAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupCollection.cs index d2e08325e446..ea87944f3557 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string ru /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string ruleCollectionGroup /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string ruleCollectionGroupName, Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupDraftResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupDraftResource.cs index a411d3f1f37a..d223b4e0900d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupDraftResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupDraftResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupResource.cs index fadfff13af88..4ef369cc9888 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupResource.cs @@ -108,7 +108,7 @@ public virtual FirewallPolicyRuleCollectionGroupDraftResource GetFirewallPolicyR /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -148,7 +148,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -188,7 +188,7 @@ public virtual Response Get(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -230,7 +230,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -272,7 +272,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogCollection.cs index 6c2067f988dd..4f2621ef5149 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsync(Wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string flowLogName /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string flowLogName, CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string flowLogName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string flowLogName, CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAsync(st /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogResource.cs index 39d8aa8e3fd7..b18728b0aab6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> UpdateAsync(NetworkTagsObje /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual Response Update(NetworkTagsObject networkTagsObj /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -413,7 +413,7 @@ public virtual async Task> AddTagAsync(string key, str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -475,7 +475,7 @@ public virtual Response AddTag(string key, string value, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -589,7 +589,7 @@ public virtual Response SetTags(IDictionary tag /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -649,7 +649,7 @@ public virtual async Task> RemoveTagAsync(string key, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfigurationCollection.cs index 5d2318339975..6e9961c75635 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfigurationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string frontendIPCo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string frontendIPConfigura /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string frontendIPConfigurationName, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfigurationResource.cs index 987c458952cb..aaaa8b9e94c2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfigurationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIPConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIPConfigurationCollection.cs index 7441da5ce964..648ed33e08a2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIPConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIPConfigurationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string ipConfigName, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string ipConfigName, Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string ipConfigName, CancellationToken canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIPConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIPConfigurationResource.cs index 24e53e7e1ebd..6a31e652cdcf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIPConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIPConfigurationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableCollection.cs index e6163ad75b5b..6a0876f26230 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string route /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string routeTableName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string routeTableName, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string routeTableName, CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableResource.cs index 15b09e292c99..5ce2ff3c2be4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionCollection.cs index fb791b87066e..ca95d7277be0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> Cre /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string connecti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionResource.cs index df077c174ed3..7c8e724c413a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> Upd /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/IPAllocationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IPAllocationCollection.cs index 73ed922862b4..381a08906f2d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/IPAllocationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IPAllocationCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string ipAllo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string ipAllocationName, strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string ipAllocationName, s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string ipAllocationName, string expand = nu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/IPAllocationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IPAllocationResource.cs index 4e051211e4d4..3d45697562b3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/IPAllocationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IPAllocationResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(string expand /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(string expand = null, Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(NetworkTag /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual Response Update(NetworkTagsObject networkTa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual async Task> AddTagAsync(string key /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -477,7 +477,7 @@ public virtual Response AddTag(string key, string value, C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -534,7 +534,7 @@ public virtual async Task> SetTagsAsync(IDictiona /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -591,7 +591,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -651,7 +651,7 @@ public virtual async Task> RemoveTagAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/IPGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IPGroupCollection.cs index 634e0ed4bee7..81b8a022960f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/IPGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IPGroupCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync(Wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string ipGroupsNam /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string ipGroupsName, string expand /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string ipGroupsName, strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string ipGroupsName, string expand = null, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsAsync(st /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/IPGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IPGroupResource.cs index 8f35d2e8891a..a374bf2d5b3f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/IPGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IPGroupResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(string expand = nu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(string expand = null, CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(NetworkTagsObje /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual Response Update(NetworkTagsObject networkTagsObj /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual async Task> AddTagAsync(string key, str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -477,7 +477,7 @@ public virtual Response AddTag(string key, string value, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -534,7 +534,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -591,7 +591,7 @@ public virtual Response SetTags(IDictionary tag /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -651,7 +651,7 @@ public virtual async Task> RemoveTagAsync(string key, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleCollection.cs index 222d87e252a0..c24b5dae0eef 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string inbo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(string inboundNatRuleName, s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -284,7 +284,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -358,7 +358,7 @@ public virtual async Task> ExistsAsync(string inboundNatRuleName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string inboundNatRuleName, string expand = /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleResource.cs index ae376db3d111..9f13172cdfc1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(string expa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(string expand = null, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> UpdateAsync(Wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerCollection.cs index 1d10469ec6f9..50cfec1a2eca 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string loadBa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string loadBalancerName, strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string loadBalancerName, s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string loadBalancerName, string expand = nu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerResource.cs index 5c4c03c067c9..a24c08f29f2f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerResource.cs @@ -115,7 +115,7 @@ public virtual BackendAddressPoolCollection GetBackendAddressPools() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -146,7 +146,7 @@ public virtual async Task> GetBackendAddres /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual FrontendIPConfigurationCollection GetFrontendIPConfigurations() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetFrontend /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual InboundNatRuleCollection GetInboundNatRules() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual async Task> GetInboundNatRuleAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -324,7 +324,7 @@ public virtual LoadBalancingRuleCollection GetLoadBalancingRules() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> GetLoadBalancingR /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -393,7 +393,7 @@ public virtual OutboundRuleCollection GetOutboundRules() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -424,7 +424,7 @@ public virtual async Task> GetOutboundRuleAsync(s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -462,7 +462,7 @@ public virtual ProbeCollection GetProbes() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -493,7 +493,7 @@ public virtual async Task> GetProbeAsync(string probeNam /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -524,7 +524,7 @@ public virtual Response GetProbe(string probeName, CancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -565,7 +565,7 @@ public virtual async Task> GetAsync(string expand /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -606,7 +606,7 @@ public virtual Response Get(string expand = null, Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -648,7 +648,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -690,7 +690,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -732,7 +732,7 @@ public virtual async Task> UpdateAsync(NetworkTag /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -774,7 +774,7 @@ public virtual Response Update(NetworkTagsObject networkTa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -813,7 +813,7 @@ public virtual async Task> MigrateT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -852,7 +852,7 @@ public virtual Response MigrateToIPBased(Mig /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -878,7 +878,7 @@ public virtual AsyncPageable GetLoadBalancerNetworkInt /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -904,7 +904,7 @@ public virtual Pageable GetLoadBalancerNetworkInterfac /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -966,7 +966,7 @@ public virtual async Task> AddTagAsync(string key /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1028,7 +1028,7 @@ public virtual Response AddTag(string key, string value, C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1085,7 +1085,7 @@ public virtual async Task> SetTagsAsync(IDictiona /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1142,7 +1142,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1202,7 +1202,7 @@ public virtual async Task> RemoveTagAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRuleCollection.cs index eed8205b494e..f3a5419f9d34 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string l /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string loadBalancingRuleN /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string loadBalancingRuleNa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string loadBalancingRuleName, CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRuleResource.cs index 213d06709c59..ed0ad76cba0d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRuleResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayCollection.cs index 2a596a825240..8235c9cb11c5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string localNetworkGate /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string localNetworkGateway /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string localNetworkGatewayName, Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayResource.cs index bd2f3fdbfdb1..0597b92bdda0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> UpdateAsync(Net /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual Response Update(NetworkTagsObject ne /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -413,7 +413,7 @@ public virtual async Task> AddTagAsync(str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -475,7 +475,7 @@ public virtual Response AddTag(string key, string v /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual async Task> SetTagsAsync(ID /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -589,7 +589,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -649,7 +649,7 @@ public virtual async Task> RemoveTagAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/NetworkVirtualApplianceInstanceIdsOperationSource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/NetworkVirtualApplianceInstanceIdsOperationSource.cs new file mode 100644 index 000000000000..29e019444b62 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/NetworkVirtualApplianceInstanceIdsOperationSource.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + internal class NetworkVirtualApplianceInstanceIdsOperationSource : IOperationSource + { + NetworkVirtualApplianceInstanceIds IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + return NetworkVirtualApplianceInstanceIds.DeserializeNetworkVirtualApplianceInstanceIds(document.RootElement); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + return NetworkVirtualApplianceInstanceIds.DeserializeNetworkVirtualApplianceInstanceIds(document.RootElement); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionCollection.cs index 4fd5e0513a6a..a3624fa9b705 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation Cre /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual AsyncPageable Ge /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual Pageable GetAll( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual async Task> ExistsAsync(string networkManagerConne /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -407,7 +407,7 @@ public virtual Response Exists(string networkManagerConnectionName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -452,7 +452,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionResource.cs index c48cc465f7e7..131a26636f31 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response Get(Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -268,7 +268,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DisableBgpRoutePropagation.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DisableBgpRoutePropagation.cs new file mode 100644 index 000000000000..586956ad6a02 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DisableBgpRoutePropagation.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Network.Models +{ + /// Determines whether BGP route propagation is enabled. Defaults to true. + public readonly partial struct DisableBgpRoutePropagation : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public DisableBgpRoutePropagation(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string FalseValue = "False"; + private const string TrueValue = "True"; + + /// False. + public static DisableBgpRoutePropagation False { get; } = new DisableBgpRoutePropagation(FalseValue); + /// True. + public static DisableBgpRoutePropagation True { get; } = new DisableBgpRoutePropagation(TrueValue); + /// Determines if two values are the same. + public static bool operator ==(DisableBgpRoutePropagation left, DisableBgpRoutePropagation right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(DisableBgpRoutePropagation left, DisableBgpRoutePropagation right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator DisableBgpRoutePropagation(string value) => new DisableBgpRoutePropagation(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is DisableBgpRoutePropagation other && Equals(other); + /// + public bool Equals(DisableBgpRoutePropagation other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GroupMemberType.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GroupMemberType.cs new file mode 100644 index 000000000000..7ba77ae9d3f0 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GroupMemberType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Network.Models +{ + /// Network Group member type. + public readonly partial struct GroupMemberType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public GroupMemberType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string VirtualNetworkValue = "VirtualNetwork"; + private const string SubnetValue = "Subnet"; + + /// VirtualNetwork. + public static GroupMemberType VirtualNetwork { get; } = new GroupMemberType(VirtualNetworkValue); + /// Subnet. + public static GroupMemberType Subnet { get; } = new GroupMemberType(SubnetValue); + /// Determines if two values are the same. + public static bool operator ==(GroupMemberType left, GroupMemberType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(GroupMemberType left, GroupMemberType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator GroupMemberType(string value) => new GroupMemberType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is GroupMemberType other && Equals(other); + /// + public bool Equals(GroupMemberType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkConfigurationDeploymentType.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkConfigurationDeploymentType.cs index 7525b3166154..6dcc61aadcc4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkConfigurationDeploymentType.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkConfigurationDeploymentType.cs @@ -24,11 +24,17 @@ public NetworkConfigurationDeploymentType(string value) private const string SecurityAdminValue = "SecurityAdmin"; private const string ConnectivityValue = "Connectivity"; + private const string SecurityUserValue = "SecurityUser"; + private const string RoutingValue = "Routing"; /// SecurityAdmin. public static NetworkConfigurationDeploymentType SecurityAdmin { get; } = new NetworkConfigurationDeploymentType(SecurityAdminValue); /// Connectivity. public static NetworkConfigurationDeploymentType Connectivity { get; } = new NetworkConfigurationDeploymentType(ConnectivityValue); + /// SecurityUser. + public static NetworkConfigurationDeploymentType SecurityUser { get; } = new NetworkConfigurationDeploymentType(SecurityUserValue); + /// Routing. + public static NetworkConfigurationDeploymentType Routing { get; } = new NetworkConfigurationDeploymentType(RoutingValue); /// Determines if two values are the same. public static bool operator ==(NetworkConfigurationDeploymentType left, NetworkConfigurationDeploymentType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkConfigurationGroup.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkConfigurationGroup.Serialization.cs index 34727ba45afc..151bb9eb672c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkConfigurationGroup.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkConfigurationGroup.Serialization.cs @@ -38,6 +38,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRea writer.WritePropertyName("description"u8); writer.WriteStringValue(Description); } + if (Optional.IsDefined(MemberType)) + { + writer.WritePropertyName("memberType"u8); + writer.WriteStringValue(MemberType.Value.ToString()); + } if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) { writer.WritePropertyName("provisioningState"u8); @@ -89,6 +94,7 @@ internal static NetworkConfigurationGroup DeserializeNetworkConfigurationGroup(J } string id = default; string description = default; + GroupMemberType? memberType = default; NetworkProvisioningState? provisioningState = default; Guid? resourceGuid = default; IDictionary serializedAdditionalRawData = default; @@ -114,6 +120,15 @@ internal static NetworkConfigurationGroup DeserializeNetworkConfigurationGroup(J description = property0.Value.GetString(); continue; } + if (property0.NameEquals("memberType"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + memberType = new GroupMemberType(property0.Value.GetString()); + continue; + } if (property0.NameEquals("provisioningState"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -141,7 +156,13 @@ internal static NetworkConfigurationGroup DeserializeNetworkConfigurationGroup(J } } serializedAdditionalRawData = rawDataDictionary; - return new NetworkConfigurationGroup(id, description, provisioningState, resourceGuid, serializedAdditionalRawData); + return new NetworkConfigurationGroup( + id, + description, + memberType, + provisioningState, + resourceGuid, + serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkConfigurationGroup.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkConfigurationGroup.cs index 0628da752141..69f275acd79a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkConfigurationGroup.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkConfigurationGroup.cs @@ -53,13 +53,15 @@ internal NetworkConfigurationGroup() /// Initializes a new instance of . /// Network group ID. /// A description of the network group. + /// The type of the group member. /// The provisioning state of the scope assignment resource. /// Unique identifier for this resource. /// Keeps track of any properties unknown to the library. - internal NetworkConfigurationGroup(string id, string description, NetworkProvisioningState? provisioningState, Guid? resourceGuid, IDictionary serializedAdditionalRawData) + internal NetworkConfigurationGroup(string id, string description, GroupMemberType? memberType, NetworkProvisioningState? provisioningState, Guid? resourceGuid, IDictionary serializedAdditionalRawData) { Id = id; Description = description; + MemberType = memberType; ProvisioningState = provisioningState; ResourceGuid = resourceGuid; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -69,6 +71,8 @@ internal NetworkConfigurationGroup(string id, string description, NetworkProvisi public string Id { get; } /// A description of the network group. public string Description { get; } + /// The type of the group member. + public GroupMemberType? MemberType { get; } /// The provisioning state of the scope assignment resource. public NetworkProvisioningState? ProvisioningState { get; } /// Unique identifier for this resource. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerRoutingConfigurationListResult.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerRoutingConfigurationListResult.Serialization.cs new file mode 100644 index 000000000000..451b4b034ae3 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerRoutingConfigurationListResult.Serialization.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + internal partial class NetworkManagerRoutingConfigurationListResult : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(NetworkManagerRoutingConfigurationListResult)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + NetworkManagerRoutingConfigurationListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(NetworkManagerRoutingConfigurationListResult)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeNetworkManagerRoutingConfigurationListResult(document.RootElement, options); + } + + internal static NetworkManagerRoutingConfigurationListResult DeserializeNetworkManagerRoutingConfigurationListResult(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(NetworkManagerRoutingConfigurationData.DeserializeNetworkManagerRoutingConfigurationData(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new NetworkManagerRoutingConfigurationListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(NetworkManagerRoutingConfigurationListResult)} does not support writing '{options.Format}' format."); + } + } + + NetworkManagerRoutingConfigurationListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeNetworkManagerRoutingConfigurationListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(NetworkManagerRoutingConfigurationListResult)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerRoutingConfigurationListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerRoutingConfigurationListResult.cs new file mode 100644 index 000000000000..24f3a82e366d --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerRoutingConfigurationListResult.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// A list of network manager routing configurations. + internal partial class NetworkManagerRoutingConfigurationListResult + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal NetworkManagerRoutingConfigurationListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Gets a page of routing configurations. + /// Gets the URL to get the next page of results. + /// Keeps track of any properties unknown to the library. + internal NetworkManagerRoutingConfigurationListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Gets a page of routing configurations. + public IReadOnlyList Value { get; } + /// Gets the URL to get the next page of results. + public string NextLink { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerRoutingGroupItem.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerRoutingGroupItem.Serialization.cs new file mode 100644 index 000000000000..0b904eff6b44 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerRoutingGroupItem.Serialization.cs @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class NetworkManagerRoutingGroupItem : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(NetworkManagerRoutingGroupItem)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + writer.WritePropertyName("networkGroupId"u8); + writer.WriteStringValue(NetworkGroupId); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + NetworkManagerRoutingGroupItem IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(NetworkManagerRoutingGroupItem)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeNetworkManagerRoutingGroupItem(document.RootElement, options); + } + + internal static NetworkManagerRoutingGroupItem DeserializeNetworkManagerRoutingGroupItem(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string networkGroupId = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("networkGroupId"u8)) + { + networkGroupId = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new NetworkManagerRoutingGroupItem(networkGroupId, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(NetworkManagerRoutingGroupItem)} does not support writing '{options.Format}' format."); + } + } + + NetworkManagerRoutingGroupItem IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeNetworkManagerRoutingGroupItem(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(NetworkManagerRoutingGroupItem)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerRoutingGroupItem.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerRoutingGroupItem.cs new file mode 100644 index 000000000000..46d9ed7b9d76 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerRoutingGroupItem.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// Network manager routing group item. + public partial class NetworkManagerRoutingGroupItem + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// Network manager group Id. + /// is null. + public NetworkManagerRoutingGroupItem(string networkGroupId) + { + Argument.AssertNotNull(networkGroupId, nameof(networkGroupId)); + + NetworkGroupId = networkGroupId; + } + + /// Initializes a new instance of . + /// Network manager group Id. + /// Keeps track of any properties unknown to the library. + internal NetworkManagerRoutingGroupItem(string networkGroupId, IDictionary serializedAdditionalRawData) + { + NetworkGroupId = networkGroupId; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal NetworkManagerRoutingGroupItem() + { + } + + /// Network manager group Id. + public string NetworkGroupId { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleCollectionListResult.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleCollectionListResult.Serialization.cs new file mode 100644 index 000000000000..28c2e004f711 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleCollectionListResult.Serialization.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + internal partial class RoutingRuleCollectionListResult : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RoutingRuleCollectionListResult)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + RoutingRuleCollectionListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RoutingRuleCollectionListResult)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeRoutingRuleCollectionListResult(document.RootElement, options); + } + + internal static RoutingRuleCollectionListResult DeserializeRoutingRuleCollectionListResult(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RoutingRuleCollectionData.DeserializeRoutingRuleCollectionData(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new RoutingRuleCollectionListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(RoutingRuleCollectionListResult)} does not support writing '{options.Format}' format."); + } + } + + RoutingRuleCollectionListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeRoutingRuleCollectionListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(RoutingRuleCollectionListResult)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleCollectionListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleCollectionListResult.cs new file mode 100644 index 000000000000..75d504d874a2 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleCollectionListResult.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// Routing configuration rule collection list result. + internal partial class RoutingRuleCollectionListResult + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal RoutingRuleCollectionListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// A list of network manager routing configuration rule collections. + /// Gets the URL to get the next set of results. + /// Keeps track of any properties unknown to the library. + internal RoutingRuleCollectionListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// A list of network manager routing configuration rule collections. + public IReadOnlyList Value { get; } + /// Gets the URL to get the next set of results. + public string NextLink { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleDestinationType.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleDestinationType.cs new file mode 100644 index 000000000000..f1baa2cf71e7 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleDestinationType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Network.Models +{ + /// Routing rule destination type. + public readonly partial struct RoutingRuleDestinationType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public RoutingRuleDestinationType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AddressPrefixValue = "AddressPrefix"; + private const string ServiceTagValue = "ServiceTag"; + + /// AddressPrefix. + public static RoutingRuleDestinationType AddressPrefix { get; } = new RoutingRuleDestinationType(AddressPrefixValue); + /// ServiceTag. + public static RoutingRuleDestinationType ServiceTag { get; } = new RoutingRuleDestinationType(ServiceTagValue); + /// Determines if two values are the same. + public static bool operator ==(RoutingRuleDestinationType left, RoutingRuleDestinationType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(RoutingRuleDestinationType left, RoutingRuleDestinationType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator RoutingRuleDestinationType(string value) => new RoutingRuleDestinationType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is RoutingRuleDestinationType other && Equals(other); + /// + public bool Equals(RoutingRuleDestinationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleListResult.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleListResult.Serialization.cs new file mode 100644 index 000000000000..4a293f5f0ae7 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleListResult.Serialization.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + internal partial class RoutingRuleListResult : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RoutingRuleListResult)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + RoutingRuleListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RoutingRuleListResult)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeRoutingRuleListResult(document.RootElement, options); + } + + internal static RoutingRuleListResult DeserializeRoutingRuleListResult(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RoutingRuleData.DeserializeRoutingRuleData(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new RoutingRuleListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(RoutingRuleListResult)} does not support writing '{options.Format}' format."); + } + } + + RoutingRuleListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeRoutingRuleListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(RoutingRuleListResult)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleListResult.cs new file mode 100644 index 000000000000..27eb38682416 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleListResult.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// Routing configuration rule list result. + internal partial class RoutingRuleListResult + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal RoutingRuleListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// A list of routing rules. + /// The URL to get the next set of results. + /// Keeps track of any properties unknown to the library. + internal RoutingRuleListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// A list of routing rules. + public IReadOnlyList Value { get; } + /// The URL to get the next set of results. + public string NextLink { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleNextHop.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleNextHop.Serialization.cs new file mode 100644 index 000000000000..ed558b9f2972 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleNextHop.Serialization.cs @@ -0,0 +1,130 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class RoutingRuleNextHop : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RoutingRuleNextHop)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + writer.WritePropertyName("nextHopType"u8); + writer.WriteStringValue(NextHopType.ToString()); + if (Optional.IsDefined(NextHopAddress)) + { + writer.WritePropertyName("nextHopAddress"u8); + writer.WriteStringValue(NextHopAddress); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + RoutingRuleNextHop IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RoutingRuleNextHop)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeRoutingRuleNextHop(document.RootElement, options); + } + + internal static RoutingRuleNextHop DeserializeRoutingRuleNextHop(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + RoutingRuleNextHopType nextHopType = default; + string nextHopAddress = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nextHopType"u8)) + { + nextHopType = new RoutingRuleNextHopType(property.Value.GetString()); + continue; + } + if (property.NameEquals("nextHopAddress"u8)) + { + nextHopAddress = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new RoutingRuleNextHop(nextHopType, nextHopAddress, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(RoutingRuleNextHop)} does not support writing '{options.Format}' format."); + } + } + + RoutingRuleNextHop IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeRoutingRuleNextHop(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(RoutingRuleNextHop)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleNextHop.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleNextHop.cs new file mode 100644 index 000000000000..8e1d82aa2cb8 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleNextHop.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// Next hop. + public partial class RoutingRuleNextHop + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// Next hop type. + public RoutingRuleNextHop(RoutingRuleNextHopType nextHopType) + { + NextHopType = nextHopType; + } + + /// Initializes a new instance of . + /// Next hop type. + /// Next hop address. Only required if the next hop type is VirtualAppliance. + /// Keeps track of any properties unknown to the library. + internal RoutingRuleNextHop(RoutingRuleNextHopType nextHopType, string nextHopAddress, IDictionary serializedAdditionalRawData) + { + NextHopType = nextHopType; + NextHopAddress = nextHopAddress; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal RoutingRuleNextHop() + { + } + + /// Next hop type. + public RoutingRuleNextHopType NextHopType { get; set; } + /// Next hop address. Only required if the next hop type is VirtualAppliance. + public string NextHopAddress { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleNextHopType.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleNextHopType.cs new file mode 100644 index 000000000000..7927e2332d7a --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleNextHopType.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Network.Models +{ + /// Routing rule next hop type. + public readonly partial struct RoutingRuleNextHopType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public RoutingRuleNextHopType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InternetValue = "Internet"; + private const string NoNextHopValue = "NoNextHop"; + private const string VirtualApplianceValue = "VirtualAppliance"; + private const string VirtualNetworkGatewayValue = "VirtualNetworkGateway"; + private const string VnetLocalValue = "VnetLocal"; + + /// Internet. + public static RoutingRuleNextHopType Internet { get; } = new RoutingRuleNextHopType(InternetValue); + /// NoNextHop. + public static RoutingRuleNextHopType NoNextHop { get; } = new RoutingRuleNextHopType(NoNextHopValue); + /// VirtualAppliance. + public static RoutingRuleNextHopType VirtualAppliance { get; } = new RoutingRuleNextHopType(VirtualApplianceValue); + /// VirtualNetworkGateway. + public static RoutingRuleNextHopType VirtualNetworkGateway { get; } = new RoutingRuleNextHopType(VirtualNetworkGatewayValue); + /// VnetLocal. + public static RoutingRuleNextHopType VnetLocal { get; } = new RoutingRuleNextHopType(VnetLocalValue); + /// Determines if two values are the same. + public static bool operator ==(RoutingRuleNextHopType left, RoutingRuleNextHopType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(RoutingRuleNextHopType left, RoutingRuleNextHopType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator RoutingRuleNextHopType(string value) => new RoutingRuleNextHopType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is RoutingRuleNextHopType other && Equals(other); + /// + public bool Equals(RoutingRuleNextHopType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleRouteDestination.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleRouteDestination.Serialization.cs new file mode 100644 index 000000000000..826ba94f4104 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleRouteDestination.Serialization.cs @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class RoutingRuleRouteDestination : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RoutingRuleRouteDestination)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(DestinationType.ToString()); + writer.WritePropertyName("destinationAddress"u8); + writer.WriteStringValue(DestinationAddress); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + RoutingRuleRouteDestination IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RoutingRuleRouteDestination)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeRoutingRuleRouteDestination(document.RootElement, options); + } + + internal static RoutingRuleRouteDestination DeserializeRoutingRuleRouteDestination(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + RoutingRuleDestinationType type = default; + string destinationAddress = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + type = new RoutingRuleDestinationType(property.Value.GetString()); + continue; + } + if (property.NameEquals("destinationAddress"u8)) + { + destinationAddress = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new RoutingRuleRouteDestination(type, destinationAddress, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(RoutingRuleRouteDestination)} does not support writing '{options.Format}' format."); + } + } + + RoutingRuleRouteDestination IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeRoutingRuleRouteDestination(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(RoutingRuleRouteDestination)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleRouteDestination.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleRouteDestination.cs new file mode 100644 index 000000000000..fa1946fb381b --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingRuleRouteDestination.cs @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// Route destination. + public partial class RoutingRuleRouteDestination + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// Destination type. + /// Destination address. + /// is null. + public RoutingRuleRouteDestination(RoutingRuleDestinationType destinationType, string destinationAddress) + { + Argument.AssertNotNull(destinationAddress, nameof(destinationAddress)); + + DestinationType = destinationType; + DestinationAddress = destinationAddress; + } + + /// Initializes a new instance of . + /// Destination type. + /// Destination address. + /// Keeps track of any properties unknown to the library. + internal RoutingRuleRouteDestination(RoutingRuleDestinationType destinationType, string destinationAddress, IDictionary serializedAdditionalRawData) + { + DestinationType = destinationType; + DestinationAddress = destinationAddress; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal RoutingRuleRouteDestination() + { + } + + /// Destination type. + public RoutingRuleDestinationType DestinationType { get; set; } + /// Destination address. + public string DestinationAddress { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserConfigurationListResult.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserConfigurationListResult.Serialization.cs new file mode 100644 index 000000000000..80bc1fbd3112 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserConfigurationListResult.Serialization.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + internal partial class SecurityUserConfigurationListResult : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SecurityUserConfigurationListResult)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + SecurityUserConfigurationListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SecurityUserConfigurationListResult)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeSecurityUserConfigurationListResult(document.RootElement, options); + } + + internal static SecurityUserConfigurationListResult DeserializeSecurityUserConfigurationListResult(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(SecurityUserConfigurationData.DeserializeSecurityUserConfigurationData(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new SecurityUserConfigurationListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(SecurityUserConfigurationListResult)} does not support writing '{options.Format}' format."); + } + } + + SecurityUserConfigurationListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeSecurityUserConfigurationListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(SecurityUserConfigurationListResult)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserConfigurationListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserConfigurationListResult.cs new file mode 100644 index 000000000000..1514089d7a29 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserConfigurationListResult.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// A list of network manager security user configurations. + internal partial class SecurityUserConfigurationListResult + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal SecurityUserConfigurationListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Gets a page of security user configurations. + /// Gets the URL to get the next page of results. + /// Keeps track of any properties unknown to the library. + internal SecurityUserConfigurationListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Gets a page of security user configurations. + public IReadOnlyList Value { get; } + /// Gets the URL to get the next page of results. + public string NextLink { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserGroupItem.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserGroupItem.Serialization.cs new file mode 100644 index 000000000000..800ccc6cfc2e --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserGroupItem.Serialization.cs @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class SecurityUserGroupItem : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SecurityUserGroupItem)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + writer.WritePropertyName("networkGroupId"u8); + writer.WriteStringValue(NetworkGroupId); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + SecurityUserGroupItem IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SecurityUserGroupItem)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeSecurityUserGroupItem(document.RootElement, options); + } + + internal static SecurityUserGroupItem DeserializeSecurityUserGroupItem(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string networkGroupId = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("networkGroupId"u8)) + { + networkGroupId = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new SecurityUserGroupItem(networkGroupId, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(SecurityUserGroupItem)} does not support writing '{options.Format}' format."); + } + } + + SecurityUserGroupItem IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeSecurityUserGroupItem(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(SecurityUserGroupItem)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserGroupItem.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserGroupItem.cs new file mode 100644 index 000000000000..501c941bfd5b --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserGroupItem.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// Network manager security user group item. + public partial class SecurityUserGroupItem + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// Network manager group Id. + /// is null. + public SecurityUserGroupItem(string networkGroupId) + { + Argument.AssertNotNull(networkGroupId, nameof(networkGroupId)); + + NetworkGroupId = networkGroupId; + } + + /// Initializes a new instance of . + /// Network manager group Id. + /// Keeps track of any properties unknown to the library. + internal SecurityUserGroupItem(string networkGroupId, IDictionary serializedAdditionalRawData) + { + NetworkGroupId = networkGroupId; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal SecurityUserGroupItem() + { + } + + /// Network manager group Id. + public string NetworkGroupId { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserRuleCollectionListResult.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserRuleCollectionListResult.Serialization.cs new file mode 100644 index 000000000000..623797f0d87d --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserRuleCollectionListResult.Serialization.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + internal partial class SecurityUserRuleCollectionListResult : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SecurityUserRuleCollectionListResult)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + SecurityUserRuleCollectionListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SecurityUserRuleCollectionListResult)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeSecurityUserRuleCollectionListResult(document.RootElement, options); + } + + internal static SecurityUserRuleCollectionListResult DeserializeSecurityUserRuleCollectionListResult(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(SecurityUserRuleCollectionData.DeserializeSecurityUserRuleCollectionData(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new SecurityUserRuleCollectionListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(SecurityUserRuleCollectionListResult)} does not support writing '{options.Format}' format."); + } + } + + SecurityUserRuleCollectionListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeSecurityUserRuleCollectionListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(SecurityUserRuleCollectionListResult)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserRuleCollectionListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserRuleCollectionListResult.cs new file mode 100644 index 000000000000..a13a8c158ebc --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserRuleCollectionListResult.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// Security user configuration rule collection list result. + internal partial class SecurityUserRuleCollectionListResult + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal SecurityUserRuleCollectionListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// A list of network manager security user configuration rule collections. + /// Gets the URL to get the next set of results. + /// Keeps track of any properties unknown to the library. + internal SecurityUserRuleCollectionListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// A list of network manager security user configuration rule collections. + public IReadOnlyList Value { get; } + /// Gets the URL to get the next set of results. + public string NextLink { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserRuleListResult.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserRuleListResult.Serialization.cs new file mode 100644 index 000000000000..1db2040e52f5 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserRuleListResult.Serialization.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + internal partial class SecurityUserRuleListResult : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SecurityUserRuleListResult)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + SecurityUserRuleListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SecurityUserRuleListResult)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeSecurityUserRuleListResult(document.RootElement, options); + } + + internal static SecurityUserRuleListResult DeserializeSecurityUserRuleListResult(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(SecurityUserRuleData.DeserializeSecurityUserRuleData(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new SecurityUserRuleListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(SecurityUserRuleListResult)} does not support writing '{options.Format}' format."); + } + } + + SecurityUserRuleListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeSecurityUserRuleListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(SecurityUserRuleListResult)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserRuleListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserRuleListResult.cs new file mode 100644 index 000000000000..84e8965b584f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityUserRuleListResult.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// security user rule list result. + internal partial class SecurityUserRuleListResult + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal SecurityUserRuleListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// A list of security user rules. + /// The URL to get the next set of results. + /// Keeps track of any properties unknown to the library. + internal SecurityUserRuleListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// A list of security user rules. + public IReadOnlyList Value { get; } + /// The URL to get the next set of results. + public string NextLink { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayCollection.cs index 9e165cdf7d26..e96262cd4654 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string natGatew /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string natGatewayName, string ex /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string natGatewayName, str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string natGatewayName, string expand = null /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayResource.cs index aa213779282e..0efc19b4989b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(string expand = /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(string expand = null, Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(NetworkTagsO /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual Response Update(NetworkTagsObject networkTags /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual async Task> AddTagAsync(string key, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -477,7 +477,7 @@ public virtual Response AddTag(string key, string value, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -534,7 +534,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -591,7 +591,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -651,7 +651,7 @@ public virtual async Task> RemoveTagAsync(string ke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupCollection.cs index 854e2e98ae05..442a325be63c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -168,7 +168,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(string networ /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual Response Get(string networkGroupName, Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -290,7 +290,7 @@ public virtual AsyncPageable GetAllAsync(int? top = null, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -322,7 +322,7 @@ public virtual Pageable GetAll(int? top = null, string ski /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -365,7 +365,7 @@ public virtual async Task> ExistsAsync(string networkGroupName, C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -408,7 +408,7 @@ public virtual Response Exists(string networkGroupName, CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -453,7 +453,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupData.Serialization.cs index f7f1a68dd723..6b6dd4e2631b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupData.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupData.Serialization.cs @@ -60,6 +60,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriter writer.WritePropertyName("description"u8); writer.WriteStringValue(Description); } + if (Optional.IsDefined(MemberType)) + { + writer.WritePropertyName("memberType"u8); + writer.WriteStringValue(MemberType.Value.ToString()); + } if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) { writer.WritePropertyName("provisioningState"u8); @@ -115,6 +120,7 @@ internal static NetworkGroupData DeserializeNetworkGroupData(JsonElement element ResourceType type = default; SystemData systemData = default; string description = default; + GroupMemberType? memberType = default; NetworkProvisioningState? provisioningState = default; Guid? resourceGuid = default; IDictionary serializedAdditionalRawData = default; @@ -168,6 +174,15 @@ internal static NetworkGroupData DeserializeNetworkGroupData(JsonElement element description = property0.Value.GetString(); continue; } + if (property0.NameEquals("memberType"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + memberType = new GroupMemberType(property0.Value.GetString()); + continue; + } if (property0.NameEquals("provisioningState"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -201,6 +216,7 @@ internal static NetworkGroupData DeserializeNetworkGroupData(JsonElement element type, systemData, description, + memberType, provisioningState, resourceGuid, etag, diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupData.cs index cba536786ba0..ca2282994ced 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupData.cs @@ -62,13 +62,15 @@ public NetworkGroupData() /// The resourceType. /// The systemData. /// A description of the network group. + /// The type of the group member. /// The provisioning state of the scope assignment resource. /// Unique identifier for this resource. /// A unique read-only string that changes whenever the resource is updated. /// Keeps track of any properties unknown to the library. - internal NetworkGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, NetworkProvisioningState? provisioningState, Guid? resourceGuid, ETag? etag, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal NetworkGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, GroupMemberType? memberType, NetworkProvisioningState? provisioningState, Guid? resourceGuid, ETag? etag, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Description = description; + MemberType = memberType; ProvisioningState = provisioningState; ResourceGuid = resourceGuid; ETag = etag; @@ -77,6 +79,8 @@ internal NetworkGroupData(ResourceIdentifier id, string name, ResourceType resou /// A description of the network group. public string Description { get; set; } + /// The type of the group member. + public GroupMemberType? MemberType { get; set; } /// The provisioning state of the scope assignment resource. public NetworkProvisioningState? ProvisioningState { get; } /// Unique identifier for this resource. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupResource.cs index b40e24a9d3d4..1c8438aeab5a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupResource.cs @@ -108,7 +108,7 @@ public virtual NetworkGroupStaticMemberCollection GetNetworkGroupStaticMembers() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetNetwork /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetNetworkGroupStaticM /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -250,7 +250,7 @@ public virtual Response Get(CancellationToken cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -293,7 +293,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -385,7 +385,7 @@ public virtual async Task> UpdateAsync(WaitUn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberCollection.cs index 41dcb80aed79..c6bb0f8fce91 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Create /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(Wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string staticMembe /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(int? /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? top = null /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string staticMemberName, C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string staticMemberName, CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberResource.cs index 71fb67396ce6..1f6be3a1684c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> Update /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceCollection.cs index fd6b9e855102..64deea28b54b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdate /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string ne /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string networkInterfaceNam /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string networkInterfaceNam /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string networkInterfaceName, string expand /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfigurationCollection.cs index a4c4ab5e5a07..741596b6053a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfigurationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string ipCo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string ipConfigurationName /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string ipConfigurationName, CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfigurationResource.cs index 44d9342ae145..8d89f89e1b71 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfigurationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceResource.cs index df248351a21b..e4efbf253a66 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceResource.cs @@ -115,7 +115,7 @@ public virtual NetworkInterfaceIPConfigurationCollection GetNetworkInterfaceIPCo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -146,7 +146,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual NetworkInterfaceTapConfigurationCollection GetNetworkInterfaceTap /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -246,7 +246,7 @@ public virtual Response GetNetworkInte /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual async Task> GetAsync(string ex /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -328,7 +328,7 @@ public virtual Response Get(string expand = null, Canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -370,7 +370,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -412,7 +412,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -454,7 +454,7 @@ public virtual async Task> UpdateAsync(Networ /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -496,7 +496,7 @@ public virtual Response Update(NetworkTagsObject netwo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -538,7 +538,7 @@ public virtual async Task> GetEffectiveRo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -580,7 +580,7 @@ public virtual ArmOperation GetEffectiveRouteTable(Wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -622,7 +622,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -664,7 +664,7 @@ public virtual ArmOperation GetEffectiv /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -690,7 +690,7 @@ public virtual AsyncPageable GetNetworkInterfaceLoadBalanc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -716,7 +716,7 @@ public virtual Pageable GetNetworkInterfaceLoadBalancers(C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -778,7 +778,7 @@ public virtual async Task> AddTagAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -840,7 +840,7 @@ public virtual Response AddTag(string key, string valu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -897,7 +897,7 @@ public virtual async Task> SetTagsAsync(IDict /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -954,7 +954,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1014,7 +1014,7 @@ public virtual async Task> RemoveTagAsync(str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationCollection.cs index 4901b25245ca..ec2d6551851f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string tap /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string tapConfigurationNam /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string tapConfigurationName, CancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationResource.cs index bf599555f171..81055533e9cf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerCollection.cs index 7bb419125631..5f93822d19f2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string netw /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string networkManagerName, C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual AsyncPageable GetAllAsync(int? top = null /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual Pageable GetAll(int? top = null, string s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual async Task> ExistsAsync(string networkManagerName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -407,7 +407,7 @@ public virtual Response Exists(string networkManagerName, CancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -452,7 +452,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerResource.cs index b76f65c4fa6a..29d83519ee1d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerResource.cs @@ -124,7 +124,7 @@ public virtual ConnectivityConfigurationCollection GetConnectivityConfigurations /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -155,7 +155,7 @@ public virtual async Task> GetConnec /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -193,7 +193,7 @@ public virtual NetworkGroupCollection GetNetworkGroups() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task> GetNetworkGroupAsync(s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -262,7 +262,7 @@ public virtual ScopeConnectionCollection GetScopeConnections() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -293,7 +293,7 @@ public virtual async Task> GetScopeConnectionA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -331,7 +331,7 @@ public virtual SecurityAdminConfigurationCollection GetSecurityAdminConfiguratio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual async Task> GetSecur /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -380,6 +380,144 @@ public virtual Response GetSecurityAdminConf return GetSecurityAdminConfigurations().Get(configurationName, cancellationToken); } + /// Gets a collection of SecurityUserConfigurationResources in the NetworkManager. + /// An object representing collection of SecurityUserConfigurationResources and their operations over a SecurityUserConfigurationResource. + public virtual SecurityUserConfigurationCollection GetSecurityUserConfigurations() + { + return GetCachedClient(client => new SecurityUserConfigurationCollection(client, Id)); + } + + /// + /// Retrieves a network manager security user configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName} + /// + /// + /// Operation Id + /// SecurityUserConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager Security Configuration. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetSecurityUserConfigurationAsync(string configurationName, CancellationToken cancellationToken = default) + { + return await GetSecurityUserConfigurations().GetAsync(configurationName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Retrieves a network manager security user configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName} + /// + /// + /// Operation Id + /// SecurityUserConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager Security Configuration. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetSecurityUserConfiguration(string configurationName, CancellationToken cancellationToken = default) + { + return GetSecurityUserConfigurations().Get(configurationName, cancellationToken); + } + + /// Gets a collection of NetworkManagerRoutingConfigurationResources in the NetworkManager. + /// An object representing collection of NetworkManagerRoutingConfigurationResources and their operations over a NetworkManagerRoutingConfigurationResource. + public virtual NetworkManagerRoutingConfigurationCollection GetNetworkManagerRoutingConfigurations() + { + return GetCachedClient(client => new NetworkManagerRoutingConfigurationCollection(client, Id)); + } + + /// + /// Retrieves a network manager routing configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager Routing Configuration. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetNetworkManagerRoutingConfigurationAsync(string configurationName, CancellationToken cancellationToken = default) + { + return await GetNetworkManagerRoutingConfigurations().GetAsync(configurationName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Retrieves a network manager routing configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager Routing Configuration. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetNetworkManagerRoutingConfiguration(string configurationName, CancellationToken cancellationToken = default) + { + return GetNetworkManagerRoutingConfigurations().Get(configurationName, cancellationToken); + } + /// /// Gets the specified Network Manager. /// @@ -393,7 +531,7 @@ public virtual Response GetSecurityAdminConf /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -433,7 +571,7 @@ public virtual async Task> GetAsync(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -473,7 +611,7 @@ public virtual Response Get(CancellationToken cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -516,7 +654,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -559,7 +697,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -601,7 +739,7 @@ public virtual async Task> UpdateAsync(NetworkM /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -643,7 +781,7 @@ public virtual Response Update(NetworkManagerPatch patch /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -677,7 +815,7 @@ public virtual AsyncPageable GetActiveConnectiv /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -711,7 +849,7 @@ public virtual Pageable GetActiveConnectivityCo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -745,7 +883,7 @@ public virtual AsyncPageable GetActiveSecurityAdmin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -779,7 +917,7 @@ public virtual Pageable GetActiveSecurityAdminRules /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -821,7 +959,7 @@ public virtual async Task> PostNetworkManager /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -863,7 +1001,7 @@ public virtual ArmOperation PostNetworkManagerCommit(WaitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -893,7 +1031,7 @@ public virtual AsyncPageable GetNetworkManagerDe /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -923,7 +1061,7 @@ public virtual Pageable GetNetworkManagerDeploym /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -985,7 +1123,7 @@ public virtual async Task> AddTagAsync(string k /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1047,7 +1185,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1104,7 +1242,7 @@ public virtual async Task> SetTagsAsync(IDictio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1161,7 +1299,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1221,7 +1359,7 @@ public virtual async Task> RemoveTagAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationCollection.cs new file mode 100644 index 000000000000..c5f59827506b --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationCollection.cs @@ -0,0 +1,501 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Network +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetNetworkManagerRoutingConfigurations method from an instance of . + /// + public partial class NetworkManagerRoutingConfigurationCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _networkManagerRoutingConfigurationClientDiagnostics; + private readonly NetworkManagerRoutingConfigurationsRestOperations _networkManagerRoutingConfigurationRestClient; + + /// Initializes a new instance of the class for mocking. + protected NetworkManagerRoutingConfigurationCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal NetworkManagerRoutingConfigurationCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _networkManagerRoutingConfigurationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", NetworkManagerRoutingConfigurationResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(NetworkManagerRoutingConfigurationResource.ResourceType, out string networkManagerRoutingConfigurationApiVersion); + _networkManagerRoutingConfigurationRestClient = new NetworkManagerRoutingConfigurationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, networkManagerRoutingConfigurationApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != NetworkManagerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, NetworkManagerResource.ResourceType), nameof(id)); + } + + /// + /// Creates or updates a network manager routing configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the network manager Routing Configuration. + /// The routing configuration to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string configurationName, NetworkManagerRoutingConfigurationData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _networkManagerRoutingConfigurationClientDiagnostics.CreateScope("NetworkManagerRoutingConfigurationCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _networkManagerRoutingConfigurationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, data, cancellationToken).ConfigureAwait(false); + var uri = _networkManagerRoutingConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkManagerRoutingConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a network manager routing configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the network manager Routing Configuration. + /// The routing configuration to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string configurationName, NetworkManagerRoutingConfigurationData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _networkManagerRoutingConfigurationClientDiagnostics.CreateScope("NetworkManagerRoutingConfigurationCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _networkManagerRoutingConfigurationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, data, cancellationToken); + var uri = _networkManagerRoutingConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkManagerRoutingConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves a network manager routing configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager Routing Configuration. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string configurationName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var scope = _networkManagerRoutingConfigurationClientDiagnostics.CreateScope("NetworkManagerRoutingConfigurationCollection.Get"); + scope.Start(); + try + { + var response = await _networkManagerRoutingConfigurationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new NetworkManagerRoutingConfigurationResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves a network manager routing configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager Routing Configuration. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string configurationName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var scope = _networkManagerRoutingConfigurationClientDiagnostics.CreateScope("NetworkManagerRoutingConfigurationCollection.Get"); + scope.Start(); + try + { + var response = _networkManagerRoutingConfigurationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new NetworkManagerRoutingConfigurationResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists all the network manager routing configurations in a network manager, in a paginated format. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_List + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkManagerRoutingConfigurationRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkManagerRoutingConfigurationRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkManagerRoutingConfigurationResource(Client, NetworkManagerRoutingConfigurationData.DeserializeNetworkManagerRoutingConfigurationData(e)), _networkManagerRoutingConfigurationClientDiagnostics, Pipeline, "NetworkManagerRoutingConfigurationCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Lists all the network manager routing configurations in a network manager, in a paginated format. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_List + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkManagerRoutingConfigurationRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkManagerRoutingConfigurationRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkManagerRoutingConfigurationResource(Client, NetworkManagerRoutingConfigurationData.DeserializeNetworkManagerRoutingConfigurationData(e)), _networkManagerRoutingConfigurationClientDiagnostics, Pipeline, "NetworkManagerRoutingConfigurationCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager Routing Configuration. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string configurationName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var scope = _networkManagerRoutingConfigurationClientDiagnostics.CreateScope("NetworkManagerRoutingConfigurationCollection.Exists"); + scope.Start(); + try + { + var response = await _networkManagerRoutingConfigurationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager Routing Configuration. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string configurationName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var scope = _networkManagerRoutingConfigurationClientDiagnostics.CreateScope("NetworkManagerRoutingConfigurationCollection.Exists"); + scope.Start(); + try + { + var response = _networkManagerRoutingConfigurationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager Routing Configuration. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string configurationName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var scope = _networkManagerRoutingConfigurationClientDiagnostics.CreateScope("NetworkManagerRoutingConfigurationCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _networkManagerRoutingConfigurationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new NetworkManagerRoutingConfigurationResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager Routing Configuration. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string configurationName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var scope = _networkManagerRoutingConfigurationClientDiagnostics.CreateScope("NetworkManagerRoutingConfigurationCollection.GetIfExists"); + scope.Start(); + try + { + var response = _networkManagerRoutingConfigurationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new NetworkManagerRoutingConfigurationResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationData.Serialization.cs new file mode 100644 index 000000000000..9a7ce01cef74 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationData.Serialization.cs @@ -0,0 +1,241 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + public partial class NetworkManagerRoutingConfigurationData : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(NetworkManagerRoutingConfigurationData)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(ETag)) + { + writer.WritePropertyName("etag"u8); + writer.WriteStringValue(ETag.Value.ToString()); + } + if (options.Format != "W") + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (options.Format != "W") + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (options.Format != "W") + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(ResourceType); + } + if (options.Format != "W" && Optional.IsDefined(SystemData)) + { + writer.WritePropertyName("systemData"u8); + JsonSerializer.Serialize(writer, SystemData); + } + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(ResourceGuid)) + { + writer.WritePropertyName("resourceGuid"u8); + writer.WriteStringValue(ResourceGuid.Value); + } + writer.WriteEndObject(); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + NetworkManagerRoutingConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(NetworkManagerRoutingConfigurationData)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeNetworkManagerRoutingConfigurationData(document.RootElement, options); + } + + internal static NetworkManagerRoutingConfigurationData DeserializeNetworkManagerRoutingConfigurationData(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ETag? etag = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + SystemData systemData = default; + string description = default; + NetworkProvisioningState? provisioningState = default; + Guid? resourceGuid = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("etag"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + etag = new ETag(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("description"u8)) + { + description = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new NetworkProvisioningState(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("resourceGuid"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceGuid = property0.Value.GetGuid(); + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new NetworkManagerRoutingConfigurationData( + id, + name, + type, + systemData, + description, + provisioningState, + resourceGuid, + etag, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(NetworkManagerRoutingConfigurationData)} does not support writing '{options.Format}' format."); + } + } + + NetworkManagerRoutingConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeNetworkManagerRoutingConfigurationData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(NetworkManagerRoutingConfigurationData)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationData.cs new file mode 100644 index 000000000000..c20919a49281 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationData.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + /// + /// A class representing the NetworkManagerRoutingConfiguration data model. + /// Defines the routing configuration + /// + public partial class NetworkManagerRoutingConfigurationData : ResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public NetworkManagerRoutingConfigurationData() + { + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description of the routing configuration. + /// The provisioning state of the resource. + /// Unique identifier for this resource. + /// A unique read-only string that changes whenever the resource is updated. + /// Keeps track of any properties unknown to the library. + internal NetworkManagerRoutingConfigurationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, NetworkProvisioningState? provisioningState, Guid? resourceGuid, ETag? etag, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + { + Description = description; + ProvisioningState = provisioningState; + ResourceGuid = resourceGuid; + ETag = etag; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// A description of the routing configuration. + public string Description { get; set; } + /// The provisioning state of the resource. + public NetworkProvisioningState? ProvisioningState { get; } + /// Unique identifier for this resource. + public Guid? ResourceGuid { get; } + /// A unique read-only string that changes whenever the resource is updated. + public ETag? ETag { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..76d852f89a34 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationResource.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class NetworkManagerRoutingConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + NetworkManagerRoutingConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + NetworkManagerRoutingConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationResource.cs new file mode 100644 index 000000000000..216ed2d02f5a --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationResource.cs @@ -0,0 +1,422 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Network +{ + /// + /// A Class representing a NetworkManagerRoutingConfiguration along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetNetworkManagerRoutingConfigurationResource method. + /// Otherwise you can get one from its parent resource using the GetNetworkManagerRoutingConfiguration method. + /// + public partial class NetworkManagerRoutingConfigurationResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The networkManagerName. + /// The configurationName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _networkManagerRoutingConfigurationClientDiagnostics; + private readonly NetworkManagerRoutingConfigurationsRestOperations _networkManagerRoutingConfigurationRestClient; + private readonly NetworkManagerRoutingConfigurationData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Network/networkManagers/routingConfigurations"; + + /// Initializes a new instance of the class for mocking. + protected NetworkManagerRoutingConfigurationResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal NetworkManagerRoutingConfigurationResource(ArmClient client, NetworkManagerRoutingConfigurationData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal NetworkManagerRoutingConfigurationResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _networkManagerRoutingConfigurationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string networkManagerRoutingConfigurationApiVersion); + _networkManagerRoutingConfigurationRestClient = new NetworkManagerRoutingConfigurationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, networkManagerRoutingConfigurationApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual NetworkManagerRoutingConfigurationData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of RoutingRuleCollectionResources in the NetworkManagerRoutingConfiguration. + /// An object representing collection of RoutingRuleCollectionResources and their operations over a RoutingRuleCollectionResource. + public virtual RoutingRuleCollectionCollection GetRoutingRuleCollections() + { + return GetCachedClient(client => new RoutingRuleCollectionCollection(client, Id)); + } + + /// + /// Gets a network manager routing configuration rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// RoutingRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager routing Configuration rule collection. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetRoutingRuleCollectionAsync(string ruleCollectionName, CancellationToken cancellationToken = default) + { + return await GetRoutingRuleCollections().GetAsync(ruleCollectionName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a network manager routing configuration rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// RoutingRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager routing Configuration rule collection. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetRoutingRuleCollection(string ruleCollectionName, CancellationToken cancellationToken = default) + { + return GetRoutingRuleCollections().Get(ruleCollectionName, cancellationToken); + } + + /// + /// Retrieves a network manager routing configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _networkManagerRoutingConfigurationClientDiagnostics.CreateScope("NetworkManagerRoutingConfigurationResource.Get"); + scope.Start(); + try + { + var response = await _networkManagerRoutingConfigurationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new NetworkManagerRoutingConfigurationResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves a network manager routing configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _networkManagerRoutingConfigurationClientDiagnostics.CreateScope("NetworkManagerRoutingConfigurationResource.Get"); + scope.Start(); + try + { + var response = _networkManagerRoutingConfigurationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new NetworkManagerRoutingConfigurationResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a network manager routing configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_Delete + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default) + { + using var scope = _networkManagerRoutingConfigurationClientDiagnostics.CreateScope("NetworkManagerRoutingConfigurationResource.Delete"); + scope.Start(); + try + { + var response = await _networkManagerRoutingConfigurationRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation(_networkManagerRoutingConfigurationClientDiagnostics, Pipeline, _networkManagerRoutingConfigurationRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a network manager routing configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_Delete + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default) + { + using var scope = _networkManagerRoutingConfigurationClientDiagnostics.CreateScope("NetworkManagerRoutingConfigurationResource.Delete"); + scope.Start(); + try + { + var response = _networkManagerRoutingConfigurationRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force, cancellationToken); + var operation = new NetworkArmOperation(_networkManagerRoutingConfigurationClientDiagnostics, Pipeline, _networkManagerRoutingConfigurationRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a network manager routing configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The routing configuration to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, NetworkManagerRoutingConfigurationData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _networkManagerRoutingConfigurationClientDiagnostics.CreateScope("NetworkManagerRoutingConfigurationResource.Update"); + scope.Start(); + try + { + var response = await _networkManagerRoutingConfigurationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var uri = _networkManagerRoutingConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkManagerRoutingConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a network manager routing configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The routing configuration to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, NetworkManagerRoutingConfigurationData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _networkManagerRoutingConfigurationClientDiagnostics.CreateScope("NetworkManagerRoutingConfigurationResource.Update"); + scope.Start(); + try + { + var response = _networkManagerRoutingConfigurationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var uri = _networkManagerRoutingConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkManagerRoutingConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionCollection.cs index c5749292e605..1b15bc541545 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual Response Get(string peC /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual Pageable GetAll(Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual async Task> ExistsAsync(string peConnectionName, s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string peConnectionName, string expand = nu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -452,7 +452,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionResource.cs index 21f362e6bcd0..d532ba4fff83 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(string exp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileCollection.cs index 70143183c079..742a1ccc0501 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(string netw /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -259,7 +259,7 @@ public virtual Response Get(string networkProfileName, s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -319,7 +319,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string networkProfileName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -407,7 +407,7 @@ public virtual Response Exists(string networkProfileName, string expand = /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -453,7 +453,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileResource.cs index d01032ccd040..59702fdb4fba 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(string expa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(string expand = null, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(NetworkT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual Response Update(NetworkTagsObject network /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual async Task> AddTagAsync(string k /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -477,7 +477,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -534,7 +534,7 @@ public virtual async Task> SetTagsAsync(IDictio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -591,7 +591,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -651,7 +651,7 @@ public virtual async Task> RemoveTagAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupCollection.cs index 2cb4a4d1a9a5..12b6b03f9c40 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string networkSecurity /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string networkSecurityGrou /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string networkSecurityGroupName, string exp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupResource.cs index dc7ad2bc6961..f4a3f2863b8c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupResource.cs @@ -110,7 +110,7 @@ public virtual SecurityRuleCollection GetSecurityRules() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetSecurityRuleAsync(s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual DefaultSecurityRuleCollection GetDefaultSecurityRules() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetDefaultSecur /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -241,7 +241,7 @@ public virtual Response GetDefaultSecurityRule(stri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -323,7 +323,7 @@ public virtual Response Get(string expand = null, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -365,7 +365,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -407,7 +407,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> UpdateAsync(Ne /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -491,7 +491,7 @@ public virtual Response Update(NetworkTagsObject n /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -553,7 +553,7 @@ public virtual async Task> AddTagAsync(st /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -615,7 +615,7 @@ public virtual Response AddTag(string key, string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -672,7 +672,7 @@ public virtual async Task> SetTagsAsync(I /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -729,7 +729,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -789,7 +789,7 @@ public virtual async Task> RemoveTagAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceCollection.cs index 427913c798e5..a53faeaaec80 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string networkVirtu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string networkVirtualAppli /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string networkVirtualApplianceName, string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionCollection.cs index a93d000f4e53..1eed01f23882 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string co /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionResource.cs index b13160b7fff0..2db1beb14b9a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceResource.cs index f70ac90e6de8..47d3b5aebee0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceResource.cs @@ -114,7 +114,7 @@ public virtual VirtualApplianceSiteCollection GetVirtualApplianceSites() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -145,7 +145,7 @@ public virtual async Task> GetVirtualAppl /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual NetworkVirtualApplianceConnectionCollection GetNetworkVirtualAppl /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -245,7 +245,7 @@ public virtual Response GetNetworkVir /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -327,7 +327,7 @@ public virtual Response Get(string expand = nul /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -369,7 +369,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -411,7 +411,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -453,7 +453,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -495,7 +495,7 @@ public virtual Response Update(NetworkTagsObjec /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -503,16 +503,20 @@ public virtual Response Update(NetworkTagsObjec /// /// /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// Specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances. /// The cancellation token to use. - public virtual async Task RestartAsync(NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = null, CancellationToken cancellationToken = default) + public virtual async Task> RestartAsync(WaitUntil waitUntil, NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = null, CancellationToken cancellationToken = default) { using var scope = _networkVirtualApplianceClientDiagnostics.CreateScope("NetworkVirtualApplianceResource.Restart"); scope.Start(); try { var response = await _networkVirtualApplianceRestClient.RestartAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, networkVirtualApplianceInstanceIds, cancellationToken).ConfigureAwait(false); - return response; + var operation = new NetworkArmOperation(new NetworkVirtualApplianceInstanceIdsOperationSource(), _networkVirtualApplianceClientDiagnostics, Pipeline, _networkVirtualApplianceRestClient.CreateRestartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, networkVirtualApplianceInstanceIds).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; } catch (Exception e) { @@ -534,7 +538,7 @@ public virtual async Task RestartAsync(NetworkVirtualApplianceInstance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -542,16 +546,20 @@ public virtual async Task RestartAsync(NetworkVirtualApplianceInstance /// /// /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// Specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances. /// The cancellation token to use. - public virtual Response Restart(NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = null, CancellationToken cancellationToken = default) + public virtual ArmOperation Restart(WaitUntil waitUntil, NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = null, CancellationToken cancellationToken = default) { using var scope = _networkVirtualApplianceClientDiagnostics.CreateScope("NetworkVirtualApplianceResource.Restart"); scope.Start(); try { var response = _networkVirtualApplianceRestClient.Restart(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, networkVirtualApplianceInstanceIds, cancellationToken); - return response; + var operation = new NetworkArmOperation(new NetworkVirtualApplianceInstanceIdsOperationSource(), _networkVirtualApplianceClientDiagnostics, Pipeline, _networkVirtualApplianceRestClient.CreateRestartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, networkVirtualApplianceInstanceIds).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; } catch (Exception e) { @@ -573,7 +581,7 @@ public virtual Response Restart(NetworkVirtualApplianceInstanceIds networkVirtua /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -618,7 +626,7 @@ public virtual async Task> CreateOrUpdateInbou /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -663,7 +671,7 @@ public virtual ArmOperation CreateOrUpdateInboundSecurityRu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -725,7 +733,7 @@ public virtual async Task> AddTagAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -787,7 +795,7 @@ public virtual Response AddTag(string key, stri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -844,7 +852,7 @@ public virtual async Task> SetTagsAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -901,7 +909,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -961,7 +969,7 @@ public virtual async Task> RemoveTagAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSkuCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSkuCollection.cs index 9af0b0e57ffb..c5bfaa6f37b8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSkuCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSkuCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -110,7 +110,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -155,7 +155,7 @@ public virtual Response Get(string skuName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual AsyncPageable GetAllAsync(Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual Pageable GetAll(CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual async Task> ExistsAsync(string skuName, Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -301,7 +301,7 @@ public virtual Response Exists(string skuName, CancellationToken cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -346,7 +346,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSkuResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSkuResource.cs index 80b8de50b73d..70e9315ab9dd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSkuResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSkuResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherCollection.cs index fd947b390be2..b05f1015ff8b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string netw /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string networkWatcherName, C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -358,7 +358,7 @@ public virtual async Task> ExistsAsync(string networkWatcherName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -401,7 +401,7 @@ public virtual Response Exists(string networkWatcherName, CancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -446,7 +446,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherResource.cs index 8dbe2fa0bc4b..80e4bcca9e37 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherResource.cs @@ -110,7 +110,7 @@ public virtual PacketCaptureCollection GetPacketCaptures() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetPacketCaptureAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual ConnectionMonitorCollection GetConnectionMonitors() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetConnectionMoni /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -248,7 +248,7 @@ public virtual FlowLogCollection GetFlowLogs() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -279,7 +279,7 @@ public virtual async Task> GetFlowLogAsync(string flow /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Response GetFlowLog(string flowLogName, Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -350,7 +350,7 @@ public virtual async Task> GetAsync(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -390,7 +390,7 @@ public virtual Response Get(CancellationToken cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -432,7 +432,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -474,7 +474,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -516,7 +516,7 @@ public virtual async Task> UpdateAsync(NetworkT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -558,7 +558,7 @@ public virtual Response Update(NetworkTagsObject network /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -600,7 +600,7 @@ public virtual async Task> GetTopologyAsync(TopologyCo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -642,7 +642,7 @@ public virtual Response GetTopology(TopologyContent content, Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -688,7 +688,7 @@ public virtual async Task> VerifyIPFlowAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -734,7 +734,7 @@ public virtual ArmOperation VerifyIPFlow(WaitUntil wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -780,7 +780,7 @@ public virtual async Task> GetNextHopAsync(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -826,7 +826,7 @@ public virtual ArmOperation GetNextHop(WaitUntil waitUntil, NextH /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -872,7 +872,7 @@ public virtual async Task> GetVmSecurityRu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -918,7 +918,7 @@ public virtual ArmOperation GetVmSecurityRules(WaitUnti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -964,7 +964,7 @@ public virtual async Task> GetTroubleshootin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1010,7 +1010,7 @@ public virtual ArmOperation GetTroubleshooting(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1056,7 +1056,7 @@ public virtual async Task> GetTroubleshootin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1102,7 +1102,7 @@ public virtual ArmOperation GetTroubleshootingResult(Wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1148,7 +1148,7 @@ public virtual async Task> SetFlowLogConfigurat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1194,7 +1194,7 @@ public virtual ArmOperation SetFlowLogConfiguration(WaitUnti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1240,7 +1240,7 @@ public virtual async Task> GetFlowLogStatusAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1286,7 +1286,7 @@ public virtual ArmOperation GetFlowLogStatus(WaitUntil waitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1332,7 +1332,7 @@ public virtual async Task> CheckConnectivi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1378,7 +1378,7 @@ public virtual ArmOperation CheckConnectivity(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1424,7 +1424,7 @@ public virtual async Task> GetAzureReachab /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1470,7 +1470,7 @@ public virtual ArmOperation GetAzureReachabilityReport( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1516,7 +1516,7 @@ public virtual async Task> GetAvailableProv /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1562,7 +1562,7 @@ public virtual ArmOperation GetAvailableProviders(WaitUn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1608,7 +1608,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1654,7 +1654,7 @@ public virtual ArmOperation GetNetworkCo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1716,7 +1716,7 @@ public virtual async Task> AddTagAsync(string k /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1778,7 +1778,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1835,7 +1835,7 @@ public virtual async Task> SetTagsAsync(IDictio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1892,7 +1892,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1952,7 +1952,7 @@ public virtual async Task> RemoveTagAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRuleCollection.cs index a2d09b14d172..cd6700161cae 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string outbou /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string outboundRuleName, Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string outboundRuleName, C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string outboundRuleName, CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRuleResource.cs index 53659cfadb5d..5610fa328cbc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRuleResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayCollection.cs index 4a5f661166ec..c7d703f0806d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string gatew /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string gatewayName, Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string gatewayName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string gatewayName, CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayResource.cs index b8a2eef7b51d..993bb281ac1f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, N /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -401,7 +401,7 @@ public virtual async Task> ResetAsync(WaitUn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual ArmOperation Reset(WaitUntil waitUntil, Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -489,7 +489,7 @@ public virtual async Task> GenerateVpnProfileAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -535,7 +535,7 @@ public virtual ArmOperation GenerateVpnProfile(WaitUntil wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -577,7 +577,7 @@ public virtual async Task> GetP2SVpnConnecti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -619,7 +619,7 @@ public virtual ArmOperation GetP2SVpnConnectionHealth(Wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -665,7 +665,7 @@ public virtual async Task> GetP2SVpnConnect /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -711,7 +711,7 @@ public virtual ArmOperation GetP2SVpnConnectionHealthDet /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -757,7 +757,7 @@ public virtual async Task DisconnectP2SVpnConnectionsAsync(WaitUnt /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -803,7 +803,7 @@ public virtual ArmOperation DisconnectP2SVpnConnections(WaitUntil waitUntil, P2S /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -865,7 +865,7 @@ public virtual async Task> AddTagAsync(string ke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -927,7 +927,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -984,7 +984,7 @@ public virtual async Task> SetTagsAsync(IDiction /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1041,7 +1041,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1101,7 +1101,7 @@ public virtual async Task> RemoveTagAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureCollection.cs index 3bf58288b0ba..5f72243224ec 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string packe /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string packetCaptureName, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -354,7 +354,7 @@ public virtual async Task> ExistsAsync(string packetCaptureName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -397,7 +397,7 @@ public virtual Response Exists(string packetCaptureName, CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -442,7 +442,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureResource.cs index 5aef3b7f7d03..c90231225cdc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -358,7 +358,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, P /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -400,7 +400,7 @@ public virtual async Task StopAsync(WaitUntil waitUntil, Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -442,7 +442,7 @@ public virtual ArmOperation Stop(WaitUntil waitUntil, CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -484,7 +484,7 @@ public virtual async Task> GetStatu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnectionCollection.cs index 6e21d587f52f..c96368c4d460 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string co /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnectionResource.cs index fc0220803270..b54ae7905244 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnectionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PolicySignaturesOverridesForIdpsResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PolicySignaturesOverridesForIdpsResource.cs index 7c6461e177de..0f96e936532c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PolicySignaturesOverridesForIdpsResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PolicySignaturesOverridesForIdpsResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response Get(Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -222,7 +222,7 @@ public virtual async Task> Up /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -264,7 +264,7 @@ public virtual Response Update(PolicyS /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupCollection.cs index 129a3502a41a..77b728e5561e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string privateDnsZoneGr /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string privateDnsZoneGroup /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string privateDnsZoneGroupName, Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupResource.cs index 3d4b1f88dacd..0350cc737107 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointCollection.cs index 6663acd669f5..5605a612ece5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string pri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string privateEndpointName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string privateEndpointName /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string privateEndpointName, string expand = /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointResource.cs index 34f80336422e..d299e62d7a35 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointResource.cs @@ -109,7 +109,7 @@ public virtual PrivateDnsZoneGroupCollection GetPrivateDnsZoneGroups() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetPrivateDnsZo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response GetPrivateDnsZoneGroup(stri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string exp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string expand = null, Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -295,7 +295,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -337,7 +337,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -383,7 +383,7 @@ public virtual async Task> UpdateAsync(Wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -429,7 +429,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -486,7 +486,7 @@ public virtual async Task> AddTagAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -543,7 +543,7 @@ public virtual Response AddTag(string key, string value /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -599,7 +599,7 @@ public virtual async Task> SetTagsAsync(IDicti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -655,7 +655,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -710,7 +710,7 @@ public virtual async Task> RemoveTagAsync(stri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceCollection.cs index 4e9a8c07b5c4..999f04f77615 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string serviceName, stri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string serviceName, string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string serviceName, string expand = null, C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceResource.cs index 05e077bb5df5..940959f6d0d4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceResource.cs @@ -109,7 +109,7 @@ public virtual NetworkPrivateEndpointConnectionCollection GetNetworkPrivateEndpo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -173,7 +173,7 @@ public virtual Response GetNetworkPriv /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string expand = null, Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -297,7 +297,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -339,7 +339,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -385,7 +385,7 @@ public virtual async Task> UpdateAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -431,7 +431,7 @@ public virtual ArmOperation Update(WaitUntil waitUnt /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -488,7 +488,7 @@ public virtual async Task> AddTagAsync(stri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -545,7 +545,7 @@ public virtual Response AddTag(string key, string va /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -601,7 +601,7 @@ public virtual async Task> SetTagsAsync(IDi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -657,7 +657,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -712,7 +712,7 @@ public virtual async Task> RemoveTagAsync(s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ProbeCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ProbeCollection.cs index c1231ffb8c25..19427ae7ced0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ProbeCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ProbeCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string probeName, Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string probeName, CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string probeName, Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string probeName, CancellationToken cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExistsAsync(stri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ProbeResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ProbeResource.cs index 72a92ad9b43e..cfaaad94bba0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ProbeResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ProbeResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressCollection.cs index 249a2309362c..f021433969fe 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string pub /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string publicIPAddressName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string publicIPAddressName /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string publicIPAddressName, string expand = /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressResource.cs index 022fca1637fd..a6e2addddde0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(string exp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(string expand = null, Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(Network /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual Response Update(NetworkTagsObject networ /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -395,7 +395,7 @@ public virtual async Task> Ddos /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -437,7 +437,7 @@ public virtual ArmOperation DdosProtectionSt /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -499,7 +499,7 @@ public virtual async Task> AddTagAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -561,7 +561,7 @@ public virtual Response AddTag(string key, string value /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -618,7 +618,7 @@ public virtual async Task> SetTagsAsync(IDicti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -675,7 +675,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -735,7 +735,7 @@ public virtual async Task> RemoveTagAsync(stri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixCollection.cs index 256d6f9b59ee..b3f2c69b0da4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string publ /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string publicIPPrefixName, s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string publicIPPrefixName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string publicIPPrefixName, string expand = /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixResource.cs index 6c3df9f6a67e..36c617ef60aa 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(string expa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(string expand = null, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(NetworkT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual Response Update(NetworkTagsObject network /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual async Task> AddTagAsync(string k /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -477,7 +477,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -534,7 +534,7 @@ public virtual async Task> SetTagsAsync(IDictio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -591,7 +591,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -651,7 +651,7 @@ public virtual async Task> RemoveTagAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRuleCollectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRuleCollectionsRestOperations.cs index 3e38bcb6d780..06e959d52be3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRuleCollectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRuleCollectionsRestOperations.cs @@ -32,7 +32,7 @@ public AdminRuleCollectionsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRulesRestOperations.cs index 3daf0cda26ab..59e99a971200 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRulesRestOperations.cs @@ -32,7 +32,7 @@ public AdminRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs index 514fee7c197e..5e14535d1717 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public ApplicationGatewayPrivateEndpointConnectionsRestOperations(HttpPipeline p { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateLinkResourcesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateLinkResourcesRestOperations.cs index 0db517d1a5e7..909e45f2d218 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateLinkResourcesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateLinkResourcesRestOperations.cs @@ -32,7 +32,7 @@ public ApplicationGatewayPrivateLinkResourcesRestOperations(HttpPipeline pipelin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsDefaultRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsDefaultRestOperations.cs index 1e9ec2bbfac2..24424f01a912 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsDefaultRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsDefaultRestOperations.cs @@ -31,7 +31,7 @@ public ApplicationGatewayWafDynamicManifestsDefaultRestOperations(HttpPipeline p { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsRestOperations.cs index 9a37f45291f1..e8f6e37640b4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsRestOperations.cs @@ -32,7 +32,7 @@ public ApplicationGatewayWafDynamicManifestsRestOperations(HttpPipeline pipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs index 787cf4688723..a4e64b02f7ac 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs @@ -33,7 +33,7 @@ public ApplicationGatewaysRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs index 8065b0ec7880..7125b76b9f15 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs @@ -32,7 +32,7 @@ public ApplicationSecurityGroupsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableDelegationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableDelegationsRestOperations.cs index c975a2a0bf82..4d1d5869dd0f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableDelegationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableDelegationsRestOperations.cs @@ -32,7 +32,7 @@ public AvailableDelegationsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableEndpointServicesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableEndpointServicesRestOperations.cs index 54904db1d2b4..48a0ee0beb52 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableEndpointServicesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableEndpointServicesRestOperations.cs @@ -32,7 +32,7 @@ public AvailableEndpointServicesRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailablePrivateEndpointTypesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailablePrivateEndpointTypesRestOperations.cs index b1a2e373fbc4..04c2d2f306c2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailablePrivateEndpointTypesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailablePrivateEndpointTypesRestOperations.cs @@ -32,7 +32,7 @@ public AvailablePrivateEndpointTypesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableResourceGroupDelegationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableResourceGroupDelegationsRestOperations.cs index 46c43d3715c1..2b887875d56f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableResourceGroupDelegationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableResourceGroupDelegationsRestOperations.cs @@ -32,7 +32,7 @@ public AvailableResourceGroupDelegationsRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableServiceAliasesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableServiceAliasesRestOperations.cs index 723f6b17289c..d0521e31c2e2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableServiceAliasesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableServiceAliasesRestOperations.cs @@ -32,7 +32,7 @@ public AvailableServiceAliasesRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallFqdnTagsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallFqdnTagsRestOperations.cs index 856f180a8629..32924426952b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallFqdnTagsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallFqdnTagsRestOperations.cs @@ -32,7 +32,7 @@ public AzureFirewallFqdnTagsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs index c66bba3d00ce..ead47d80b7f8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs @@ -32,7 +32,7 @@ public AzureFirewallsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs index db8e52c5f2da..0afb83d1df60 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs @@ -32,7 +32,7 @@ public BastionHostsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BgpServiceCommunitiesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BgpServiceCommunitiesRestOperations.cs index eeec3d6ffdad..3af6bb36aed4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BgpServiceCommunitiesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BgpServiceCommunitiesRestOperations.cs @@ -32,7 +32,7 @@ public BgpServiceCommunitiesRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConfigurationPolicyGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConfigurationPolicyGroupsRestOperations.cs index 159ca6d20a2f..c29480ab830c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConfigurationPolicyGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConfigurationPolicyGroupsRestOperations.cs @@ -32,7 +32,7 @@ public ConfigurationPolicyGroupsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs index 21d547cba831..4a8244cd1bc7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs @@ -32,7 +32,7 @@ public ConnectionMonitorsRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectivityConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectivityConfigurationsRestOperations.cs index 3db66f5dd189..13ec071709cd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectivityConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectivityConfigurationsRestOperations.cs @@ -32,7 +32,7 @@ public ConnectivityConfigurationsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs index 91473a509a87..6faca32bc07f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs @@ -32,7 +32,7 @@ public CustomIPPrefixesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs index 224776326330..d1917fcb31ab 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs @@ -32,7 +32,7 @@ public DdosCustomPoliciesRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs index 9953cbaf5373..d8cba00df144 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs @@ -32,7 +32,7 @@ public DdosProtectionPlansRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DefaultSecurityRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DefaultSecurityRulesRestOperations.cs index c33a7dab1858..c46141cffab1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DefaultSecurityRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DefaultSecurityRulesRestOperations.cs @@ -32,7 +32,7 @@ public DefaultSecurityRulesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs index 76549388f485..0e839adb6d21 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs @@ -32,7 +32,7 @@ public DscpConfigurationRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs index 755ef567d653..b5467a13015d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteCircuitAuthorizationsRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs index c2a5f067b209..2d28620d3742 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteCircuitConnectionsRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs index c06002c2356e..f8258aaec0b2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteCircuitPeeringsRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs index 8d9ae8c44173..5cc05d211dd6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteCircuitsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs index 0045ad73024e..9d6e67c7189a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteConnectionsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs index 53519882e960..1fb9bf3817a0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteCrossConnectionPeeringsRestOperations(HttpPipeline pipeline, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs index ab3a66fa667b..a12e7e7f3bf2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteCrossConnectionsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs index b2d474734aa7..d039e0cfcc6e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteGatewaysRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteLinksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteLinksRestOperations.cs index b5ea28539366..4eaa554786fd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteLinksRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteLinksRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortAuthorizationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortAuthorizationsRestOperations.cs index 44f3a531c61c..0c07398d13b2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortAuthorizationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortAuthorizationsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRoutePortAuthorizationsRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsLocationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsLocationsRestOperations.cs index 12acab9d5202..8c1b096ec52c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsLocationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsLocationsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRoutePortsLocationsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs index 0f695d5b4428..342a8f4cdcb4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRoutePortsRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteProviderPortsLocationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteProviderPortsLocationRestOperations.cs index 6965f484d0fb..72015cd076db 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteProviderPortsLocationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteProviderPortsLocationRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteProviderPortsLocationRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteServiceProvidersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteServiceProvidersRestOperations.cs index 3751d62889ca..577b60784534 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteServiceProvidersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteServiceProvidersRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteServiceProvidersRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs index 29521251bafc..c255aa4eaf94 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs @@ -32,7 +32,7 @@ public FirewallPoliciesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyDeploymentsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyDeploymentsRestOperations.cs index cabe3ad3d727..d636740e677a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyDeploymentsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyDeploymentsRestOperations.cs @@ -30,7 +30,7 @@ public FirewallPolicyDeploymentsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyDraftsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyDraftsRestOperations.cs index 2284686e055a..a7ed97ce39f3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyDraftsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyDraftsRestOperations.cs @@ -31,7 +31,7 @@ public FirewallPolicyDraftsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesFilterValuesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesFilterValuesRestOperations.cs index fc6e5b586ebc..f310eaa59c50 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesFilterValuesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesFilterValuesRestOperations.cs @@ -32,7 +32,7 @@ public FirewallPolicyIdpsSignaturesFilterValuesRestOperations(HttpPipeline pipel { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesOverridesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesOverridesRestOperations.cs index 803170401837..8ee1bf32895c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesOverridesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesOverridesRestOperations.cs @@ -32,7 +32,7 @@ public FirewallPolicyIdpsSignaturesOverridesRestOperations(HttpPipeline pipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesRestOperations.cs index 06ef27e8099e..c84e47bb37d8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesRestOperations.cs @@ -32,7 +32,7 @@ public FirewallPolicyIdpsSignaturesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupDraftsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupDraftsRestOperations.cs index d1b6ba56cc27..13458659a97a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupDraftsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupDraftsRestOperations.cs @@ -31,7 +31,7 @@ public FirewallPolicyRuleCollectionGroupDraftsRestOperations(HttpPipeline pipeli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs index ff6a37010c7f..21df9576c301 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs @@ -32,7 +32,7 @@ public FirewallPolicyRuleCollectionGroupsRestOperations(HttpPipeline pipeline, s { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs index bf574d3975ec..49c3135703c8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs @@ -32,7 +32,7 @@ public FlowLogsRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs index 580d789fbd35..4475167bf3fe 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs @@ -32,7 +32,7 @@ public HubRouteTablesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs index 8be3fd059ef6..a0b3ee76d879 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public HubVirtualNetworkConnectionsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs index 858d22ff1024..bd8bef4ea0ff 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs @@ -32,7 +32,7 @@ public InboundNatRulesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundSecurityRuleRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundSecurityRuleRestOperations.cs index f9140b9da036..48fee0e01269 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundSecurityRuleRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundSecurityRuleRestOperations.cs @@ -31,7 +31,7 @@ public InboundSecurityRuleRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs index 105c0fa0a65d..7e2e5c5d5c28 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs @@ -32,7 +32,7 @@ public IpAllocationsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs index f7610a5ee987..6b4fc5912be0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs @@ -32,7 +32,7 @@ public IpGroupsRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs index 340461c8bfc9..4e2d04a79afc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs @@ -32,7 +32,7 @@ public LoadBalancerBackendAddressPoolsRestOperations(HttpPipeline pipeline, stri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerFrontendIPConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerFrontendIPConfigurationsRestOperations.cs index b8f69234044f..88ecfa376a3b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerFrontendIPConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerFrontendIPConfigurationsRestOperations.cs @@ -32,7 +32,7 @@ public LoadBalancerFrontendIPConfigurationsRestOperations(HttpPipeline pipeline, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerLoadBalancingRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerLoadBalancingRulesRestOperations.cs index 27cae842c9d8..081495f257bc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerLoadBalancingRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerLoadBalancingRulesRestOperations.cs @@ -32,7 +32,7 @@ public LoadBalancerLoadBalancingRulesRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerNetworkInterfacesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerNetworkInterfacesRestOperations.cs index 52024a173ba1..a8bdf69852a5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerNetworkInterfacesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerNetworkInterfacesRestOperations.cs @@ -32,7 +32,7 @@ public LoadBalancerNetworkInterfacesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerOutboundRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerOutboundRulesRestOperations.cs index 83dfa9d437a7..afcfbc9bb60b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerOutboundRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerOutboundRulesRestOperations.cs @@ -32,7 +32,7 @@ public LoadBalancerOutboundRulesRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerProbesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerProbesRestOperations.cs index a518c16253c8..7f76c22bd551 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerProbesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerProbesRestOperations.cs @@ -32,7 +32,7 @@ public LoadBalancerProbesRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs index 762b102df0f7..e7c728dde778 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs @@ -32,7 +32,7 @@ public LoadBalancersRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs index ca10db549d19..1386f03fdf90 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs @@ -32,7 +32,7 @@ public LocalNetworkGatewaysRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ManagementGroupNetworkManagerConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ManagementGroupNetworkManagerConnectionsRestOperations.cs index cb8d0d91e693..a38f6e8ea596 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ManagementGroupNetworkManagerConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ManagementGroupNetworkManagerConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public ManagementGroupNetworkManagerConnectionsRestOperations(HttpPipeline pipel { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs index ecec20962ae1..35b4d6bf6466 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs @@ -32,7 +32,7 @@ public NatGatewaysRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs index 819c6be2977f..d86cf1e5ed70 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs @@ -32,7 +32,7 @@ public NatRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkGroupsRestOperations.cs index 8feeab4e4f0e..63579f86a963 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkGroupsRestOperations.cs @@ -32,7 +32,7 @@ public NetworkGroupsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceIPConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceIPConfigurationsRestOperations.cs index edccdc990984..b8f8b0be91e7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceIPConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceIPConfigurationsRestOperations.cs @@ -32,7 +32,7 @@ public NetworkInterfaceIPConfigurationsRestOperations(HttpPipeline pipeline, str { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceLoadBalancersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceLoadBalancersRestOperations.cs index 4c798b8378b9..8120a9a14415 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceLoadBalancersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceLoadBalancersRestOperations.cs @@ -32,7 +32,7 @@ public NetworkInterfaceLoadBalancersRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs index 2074fd00db86..ff4bc309bb66 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs @@ -32,7 +32,7 @@ public NetworkInterfaceTapConfigurationsRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs index 4443e0ae14dc..402805dc4b08 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs @@ -32,7 +32,7 @@ public NetworkInterfacesRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagementRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagementRestOperations.cs index 97677c78d8b0..748c709f4e78 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagementRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagementRestOperations.cs @@ -32,7 +32,7 @@ public NetworkManagementRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerCommitsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerCommitsRestOperations.cs index 3b3568874bd0..b2df045ba8db 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerCommitsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerCommitsRestOperations.cs @@ -31,7 +31,7 @@ public NetworkManagerCommitsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerDeploymentStatusRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerDeploymentStatusRestOperations.cs index 53efd1b888a2..3eb51c15c137 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerDeploymentStatusRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerDeploymentStatusRestOperations.cs @@ -32,7 +32,7 @@ public NetworkManagerDeploymentStatusRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerRoutingConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerRoutingConfigurationsRestOperations.cs new file mode 100644 index 000000000000..97efb88d1abc --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerRoutingConfigurationsRestOperations.cs @@ -0,0 +1,559 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + internal partial class NetworkManagerRoutingConfigurationsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of NetworkManagerRoutingConfigurationsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public NetworkManagerRoutingConfigurationsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2024-03-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists all the network manager routing configurations in a network manager, in a paginated format. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string networkManagerName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, top, skipToken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + NetworkManagerRoutingConfigurationListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = NetworkManagerRoutingConfigurationListResult.DeserializeNetworkManagerRoutingConfigurationListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists all the network manager routing configurations in a network manager, in a paginated format. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string networkManagerName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, top, skipToken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + NetworkManagerRoutingConfigurationListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = NetworkManagerRoutingConfigurationListResult.DeserializeNetworkManagerRoutingConfigurationListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieves a network manager routing configuration. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + NetworkManagerRoutingConfigurationData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = NetworkManagerRoutingConfigurationData.DeserializeNetworkManagerRoutingConfigurationData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((NetworkManagerRoutingConfigurationData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieves a network manager routing configuration. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + NetworkManagerRoutingConfigurationData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = NetworkManagerRoutingConfigurationData.DeserializeNetworkManagerRoutingConfigurationData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((NetworkManagerRoutingConfigurationData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, NetworkManagerRoutingConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, NetworkManagerRoutingConfigurationData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Creates or updates a network manager routing configuration. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The routing configuration to create or update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, NetworkManagerRoutingConfigurationData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + NetworkManagerRoutingConfigurationData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = NetworkManagerRoutingConfigurationData.DeserializeNetworkManagerRoutingConfigurationData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Creates or updates a network manager routing configuration. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The routing configuration to create or update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, NetworkManagerRoutingConfigurationData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + NetworkManagerRoutingConfigurationData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = NetworkManagerRoutingConfigurationData.DeserializeNetworkManagerRoutingConfigurationData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, bool? force) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, bool? force) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Deletes a network manager routing configuration. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, bool? force = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, force); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Deletes a network manager routing configuration. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, bool? force = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, force); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists all the network manager routing configurations in a network manager, in a paginated format. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, top, skipToken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + NetworkManagerRoutingConfigurationListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = NetworkManagerRoutingConfigurationListResult.DeserializeNetworkManagerRoutingConfigurationListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists all the network manager routing configurations in a network manager, in a paginated format. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, top, skipToken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + NetworkManagerRoutingConfigurationListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = NetworkManagerRoutingConfigurationListResult.DeserializeNetworkManagerRoutingConfigurationListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagersRestOperations.cs index b5bb08c57da8..3d443976aab3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagersRestOperations.cs @@ -32,7 +32,7 @@ public NetworkManagersRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs index eb72e3a6b8fc..5eeda4c28505 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs @@ -32,7 +32,7 @@ public NetworkProfilesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs index 2305e93f2bd9..a4a3dafd393e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs @@ -32,7 +32,7 @@ public NetworkSecurityGroupsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualApplianceConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualApplianceConnectionsRestOperations.cs index df696011b15b..83613bd6cfbc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualApplianceConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualApplianceConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public NetworkVirtualApplianceConnectionsRestOperations(HttpPipeline pipeline, s { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs index 74c028a39ba7..5d8ce33640e4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs @@ -32,7 +32,7 @@ public NetworkVirtualAppliancesRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -482,6 +482,7 @@ public async Task RestartAsync(string subscriptionId, string resourceG switch (message.Response.Status) { case 200: + case 202: return message.Response; default: throw new RequestFailedException(message.Response); @@ -507,6 +508,7 @@ public Response Restart(string subscriptionId, string resourceGroupName, string switch (message.Response.Status) { case 200: + case 202: return message.Response; default: throw new RequestFailedException(message.Response); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs index be5b4d563894..6daea47ec6a2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs @@ -32,7 +32,7 @@ public NetworkWatchersRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs index 73bd9a3eb0de..f5414c0fb048 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs @@ -32,7 +32,7 @@ public P2SVpnGatewaysRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs index 176ea4594e4b..6a6b1d12f576 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs @@ -32,7 +32,7 @@ public PacketCapturesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs index 075cea4b0cb3..c5dc36ebfb46 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public PeerExpressRouteCircuitConnectionsRestOperations(HttpPipeline pipeline, s { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs index ff472827247b..17ae900b52ca 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs @@ -32,7 +32,7 @@ public PrivateDnsZoneGroupsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs index 413f8f376b18..fdcb6d8bb318 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs @@ -32,7 +32,7 @@ public PrivateEndpointsRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs index 68a4569b22d7..428c701318c1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs @@ -32,7 +32,7 @@ public PrivateLinkServicesRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs index e2a4f50c7600..d092fd69907d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs @@ -32,7 +32,7 @@ public PublicIPAddressesRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs index 9771601e04f6..f253950313f8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs @@ -32,7 +32,7 @@ public PublicIPPrefixesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ResourceNavigationLinksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ResourceNavigationLinksRestOperations.cs index cd5f7fb985d1..6a6693eb6a33 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ResourceNavigationLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ResourceNavigationLinksRestOperations.cs @@ -32,7 +32,7 @@ public ResourceNavigationLinksRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs index 9f694c050c90..dac6e767699f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs @@ -32,7 +32,7 @@ public RouteFilterRulesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs index 92ac124bea6e..68e82ac83cb1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs @@ -32,7 +32,7 @@ public RouteFiltersRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteMapsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteMapsRestOperations.cs index 26e09bc0d98b..2f6ab68e056a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteMapsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteMapsRestOperations.cs @@ -32,7 +32,7 @@ public RouteMapsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs index 5ccb676d239b..86a0e48c60a3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs @@ -32,7 +32,7 @@ public RouteTablesRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs index b218b8e8ab84..e15dd515e7b6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs @@ -32,7 +32,7 @@ public RoutesRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingIntentRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingIntentRestOperations.cs index df6bd409678e..e7b14ac04dbd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingIntentRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingIntentRestOperations.cs @@ -32,7 +32,7 @@ public RoutingIntentRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingRuleCollectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingRuleCollectionsRestOperations.cs new file mode 100644 index 000000000000..3fb4be1b5dd8 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingRuleCollectionsRestOperations.cs @@ -0,0 +1,595 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + internal partial class RoutingRuleCollectionsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of RoutingRuleCollectionsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public RoutingRuleCollectionsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2024-03-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top, string skipToken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists all the rule collections in a routing configuration, in a paginated format. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, top, skipToken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + RoutingRuleCollectionListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = RoutingRuleCollectionListResult.DeserializeRoutingRuleCollectionListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists all the rule collections in a routing configuration, in a paginated format. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, top, skipToken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + RoutingRuleCollectionListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = RoutingRuleCollectionListResult.DeserializeRoutingRuleCollectionListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets a network manager routing configuration rule collection. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The name of the network manager routing Configuration rule collection. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + RoutingRuleCollectionData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = RoutingRuleCollectionData.DeserializeRoutingRuleCollectionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((RoutingRuleCollectionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets a network manager routing configuration rule collection. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The name of the network manager routing Configuration rule collection. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + RoutingRuleCollectionData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = RoutingRuleCollectionData.DeserializeRoutingRuleCollectionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((RoutingRuleCollectionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, RoutingRuleCollectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, RoutingRuleCollectionData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Creates or updates a routing rule collection. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The name of the network manager routing Configuration rule collection. + /// The Rule Collection to create or update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, RoutingRuleCollectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + RoutingRuleCollectionData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = RoutingRuleCollectionData.DeserializeRoutingRuleCollectionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Creates or updates a routing rule collection. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The name of the network manager routing Configuration rule collection. + /// The Rule Collection to create or update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, RoutingRuleCollectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + RoutingRuleCollectionData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = RoutingRuleCollectionData.DeserializeRoutingRuleCollectionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, bool? force) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, bool? force) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Deletes an routing rule collection. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The name of the network manager routing Configuration rule collection. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, bool? force = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, force); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Deletes an routing rule collection. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The name of the network manager routing Configuration rule collection. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, bool? force = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, force); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top, string skipToken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists all the rule collections in a routing configuration, in a paginated format. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, configurationName, top, skipToken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + RoutingRuleCollectionListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = RoutingRuleCollectionListResult.DeserializeRoutingRuleCollectionListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists all the rule collections in a routing configuration, in a paginated format. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, configurationName, top, skipToken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + RoutingRuleCollectionListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = RoutingRuleCollectionListResult.DeserializeRoutingRuleCollectionListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingRulesRestOperations.cs new file mode 100644 index 000000000000..1b2ee87c4a24 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingRulesRestOperations.cs @@ -0,0 +1,631 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + internal partial class RoutingRulesRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of RoutingRulesRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public RoutingRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2024-03-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top, string skipToken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List all network manager routing configuration routing rules. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The name of the network manager routing Configuration rule collection. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + RoutingRuleListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = RoutingRuleListResult.DeserializeRoutingRuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List all network manager routing configuration routing rules. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The name of the network manager routing Configuration rule collection. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + RoutingRuleListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = RoutingRuleListResult.DeserializeRoutingRuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets a network manager routing configuration routing rule. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The name of the network manager routing Configuration rule collection. + /// The name of the rule. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + RoutingRuleData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = RoutingRuleData.DeserializeRoutingRuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((RoutingRuleData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets a network manager routing configuration routing rule. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The name of the network manager routing Configuration rule collection. + /// The name of the rule. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + RoutingRuleData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = RoutingRuleData.DeserializeRoutingRuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((RoutingRuleData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, RoutingRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, RoutingRuleData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Creates or updates an routing rule. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The name of the network manager routing Configuration rule collection. + /// The name of the rule. + /// The routing rule to create or update. + /// The cancellation token to use. + /// , , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, RoutingRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + RoutingRuleData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = RoutingRuleData.DeserializeRoutingRuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Creates or updates an routing rule. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The name of the network manager routing Configuration rule collection. + /// The name of the rule. + /// The routing rule to create or update. + /// The cancellation token to use. + /// , , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, RoutingRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + RoutingRuleData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = RoutingRuleData.DeserializeRoutingRuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, bool? force) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, bool? force) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/routingConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Deletes a routing rule. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The name of the network manager routing Configuration rule collection. + /// The name of the rule. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, bool? force = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName, force); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Deletes a routing rule. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The name of the network manager routing Configuration rule collection. + /// The name of the rule. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, bool? force = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName, force); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top, string skipToken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List all network manager routing configuration routing rules. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The name of the network manager routing Configuration rule collection. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + RoutingRuleListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = RoutingRuleListResult.DeserializeRoutingRuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List all network manager routing configuration routing rules. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Routing Configuration. + /// The name of the network manager routing Configuration rule collection. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + RoutingRuleListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = RoutingRuleListResult.DeserializeRoutingRuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ScopeConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ScopeConnectionsRestOperations.cs index 25faac42cfb2..e264457c45a8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ScopeConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ScopeConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public ScopeConnectionsRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityAdminConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityAdminConfigurationsRestOperations.cs index 2be0ad3056b9..9b022ec6da6c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityAdminConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityAdminConfigurationsRestOperations.cs @@ -32,7 +32,7 @@ public SecurityAdminConfigurationsRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs index b64ca14cd536..b494478b6db9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs @@ -32,7 +32,7 @@ public SecurityPartnerProvidersRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs index d39090c1ac6d..54d9eb8dbcb0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs @@ -32,7 +32,7 @@ public SecurityRulesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserConfigurationsRestOperations.cs new file mode 100644 index 000000000000..711e3345dfe0 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserConfigurationsRestOperations.cs @@ -0,0 +1,559 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + internal partial class SecurityUserConfigurationsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of SecurityUserConfigurationsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public SecurityUserConfigurationsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2024-03-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists all the network manager security user configurations in a network manager, in a paginated format. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string networkManagerName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, top, skipToken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + SecurityUserConfigurationListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = SecurityUserConfigurationListResult.DeserializeSecurityUserConfigurationListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists all the network manager security user configurations in a network manager, in a paginated format. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string networkManagerName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, top, skipToken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + SecurityUserConfigurationListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = SecurityUserConfigurationListResult.DeserializeSecurityUserConfigurationListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieves a network manager security user configuration. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + SecurityUserConfigurationData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = SecurityUserConfigurationData.DeserializeSecurityUserConfigurationData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((SecurityUserConfigurationData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieves a network manager security user configuration. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + SecurityUserConfigurationData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = SecurityUserConfigurationData.DeserializeSecurityUserConfigurationData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((SecurityUserConfigurationData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, SecurityUserConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, SecurityUserConfigurationData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Creates or updates a network manager security user configuration. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The security user configuration to create or update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, SecurityUserConfigurationData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + SecurityUserConfigurationData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = SecurityUserConfigurationData.DeserializeSecurityUserConfigurationData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Creates or updates a network manager security user configuration. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The security user configuration to create or update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, SecurityUserConfigurationData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + SecurityUserConfigurationData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = SecurityUserConfigurationData.DeserializeSecurityUserConfigurationData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, bool? force) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, bool? force) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Deletes a network manager security user configuration. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, bool? force = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, force); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Deletes a network manager security user configuration. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, bool? force = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, force); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists all the network manager security user configurations in a network manager, in a paginated format. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, top, skipToken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + SecurityUserConfigurationListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = SecurityUserConfigurationListResult.DeserializeSecurityUserConfigurationListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists all the network manager security user configurations in a network manager, in a paginated format. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, top, skipToken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + SecurityUserConfigurationListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = SecurityUserConfigurationListResult.DeserializeSecurityUserConfigurationListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserRuleCollectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserRuleCollectionsRestOperations.cs new file mode 100644 index 000000000000..6991d32c981d --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserRuleCollectionsRestOperations.cs @@ -0,0 +1,595 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + internal partial class SecurityUserRuleCollectionsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of SecurityUserRuleCollectionsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public SecurityUserRuleCollectionsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2024-03-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top, string skipToken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists all the security user rule collections in a security configuration, in a paginated format. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, top, skipToken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + SecurityUserRuleCollectionListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = SecurityUserRuleCollectionListResult.DeserializeSecurityUserRuleCollectionListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists all the security user rule collections in a security configuration, in a paginated format. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, top, skipToken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + SecurityUserRuleCollectionListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = SecurityUserRuleCollectionListResult.DeserializeSecurityUserRuleCollectionListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets a network manager security user configuration rule collection. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The name of the network manager security Configuration rule collection. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + SecurityUserRuleCollectionData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = SecurityUserRuleCollectionData.DeserializeSecurityUserRuleCollectionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((SecurityUserRuleCollectionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets a network manager security user configuration rule collection. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The name of the network manager security Configuration rule collection. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + SecurityUserRuleCollectionData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = SecurityUserRuleCollectionData.DeserializeSecurityUserRuleCollectionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((SecurityUserRuleCollectionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, SecurityUserRuleCollectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, SecurityUserRuleCollectionData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Creates or updates a security user rule collection. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The name of the network manager security Configuration rule collection. + /// The Security User Rule Collection to create or update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, SecurityUserRuleCollectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + SecurityUserRuleCollectionData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = SecurityUserRuleCollectionData.DeserializeSecurityUserRuleCollectionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Creates or updates a security user rule collection. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The name of the network manager security Configuration rule collection. + /// The Security User Rule Collection to create or update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, SecurityUserRuleCollectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + SecurityUserRuleCollectionData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = SecurityUserRuleCollectionData.DeserializeSecurityUserRuleCollectionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, bool? force) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, bool? force) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Deletes a Security User Rule collection. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The name of the network manager security Configuration rule collection. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, bool? force = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, force); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Deletes a Security User Rule collection. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The name of the network manager security Configuration rule collection. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, bool? force = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, force); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top, string skipToken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists all the security user rule collections in a security configuration, in a paginated format. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, configurationName, top, skipToken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + SecurityUserRuleCollectionListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = SecurityUserRuleCollectionListResult.DeserializeSecurityUserRuleCollectionListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists all the security user rule collections in a security configuration, in a paginated format. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, configurationName, top, skipToken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + SecurityUserRuleCollectionListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = SecurityUserRuleCollectionListResult.DeserializeSecurityUserRuleCollectionListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserRulesRestOperations.cs new file mode 100644 index 000000000000..69a919183cc6 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserRulesRestOperations.cs @@ -0,0 +1,631 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + internal partial class SecurityUserRulesRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of SecurityUserRulesRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public SecurityUserRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2024-03-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top, string skipToken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists all Security User Rules in a rule collection. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The name of the network manager security Configuration rule collection. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + SecurityUserRuleListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = SecurityUserRuleListResult.DeserializeSecurityUserRuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists all Security User Rules in a rule collection. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The name of the network manager security Configuration rule collection. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + SecurityUserRuleListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = SecurityUserRuleListResult.DeserializeSecurityUserRuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets a security user rule. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The name of the network manager security Configuration rule collection. + /// The name of the rule. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + SecurityUserRuleData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = SecurityUserRuleData.DeserializeSecurityUserRuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((SecurityUserRuleData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets a security user rule. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The name of the network manager security Configuration rule collection. + /// The name of the rule. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + SecurityUserRuleData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = SecurityUserRuleData.DeserializeSecurityUserRuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((SecurityUserRuleData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, SecurityUserRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, SecurityUserRuleData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Creates or updates a security user rule. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The name of the network manager security Configuration rule collection. + /// The name of the rule. + /// The security user rule to create or update. + /// The cancellation token to use. + /// , , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, SecurityUserRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + SecurityUserRuleData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = SecurityUserRuleData.DeserializeSecurityUserRuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Creates or updates a security user rule. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The name of the network manager security Configuration rule collection. + /// The name of the rule. + /// The security user rule to create or update. + /// The cancellation token to use. + /// , , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, SecurityUserRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + SecurityUserRuleData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = SecurityUserRuleData.DeserializeSecurityUserRuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, bool? force) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, bool? force) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityUserConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Deletes a security user rule. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The name of the network manager security Configuration rule collection. + /// The name of the rule. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, bool? force = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName, force); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Deletes a security user rule. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The name of the network manager security Configuration rule collection. + /// The name of the rule. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, bool? force = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName, force); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top, string skipToken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists all Security User Rules in a rule collection. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The name of the network manager security Configuration rule collection. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + SecurityUserRuleListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = SecurityUserRuleListResult.DeserializeSecurityUserRuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists all Security User Rules in a rule collection. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the network manager. + /// The name of the network manager Security Configuration. + /// The name of the network manager security Configuration rule collection. + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + SecurityUserRuleListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = SecurityUserRuleListResult.DeserializeSecurityUserRuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceAssociationLinksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceAssociationLinksRestOperations.cs index ac09b70c1d52..f8737e007968 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceAssociationLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceAssociationLinksRestOperations.cs @@ -32,7 +32,7 @@ public ServiceAssociationLinksRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs index c23b1f3dd96e..26cffad69c80 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs @@ -32,7 +32,7 @@ public ServiceEndpointPoliciesRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs index e4c5d716dcc0..f1147b5e0bc8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs @@ -32,7 +32,7 @@ public ServiceEndpointPolicyDefinitionsRestOperations(HttpPipeline pipeline, str { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagInformationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagInformationRestOperations.cs index 212078a02c0c..a25cfcb6d813 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagInformationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagInformationRestOperations.cs @@ -32,7 +32,7 @@ public ServiceTagInformationRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagsRestOperations.cs index be0cc773e3d4..4b2401b8dab8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagsRestOperations.cs @@ -32,7 +32,7 @@ public ServiceTagsRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticMembersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticMembersRestOperations.cs index efd27fa5fbdc..2974bce0dbb4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticMembersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticMembersRestOperations.cs @@ -32,7 +32,7 @@ public StaticMembersRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs index 5c862e38cab7..dc1608876ced 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs @@ -32,7 +32,7 @@ public SubnetsRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubscriptionNetworkManagerConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubscriptionNetworkManagerConnectionsRestOperations.cs index a28c74b00da1..7610d7175b71 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubscriptionNetworkManagerConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubscriptionNetworkManagerConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public SubscriptionNetworkManagerConnectionsRestOperations(HttpPipeline pipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/UsagesRestOperations.cs index 9403534ad8a5..f8351525942c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/UsagesRestOperations.cs @@ -32,7 +32,7 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VipSwapRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VipSwapRestOperations.cs index f2a08eac8b1e..eeb553c2289c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VipSwapRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VipSwapRestOperations.cs @@ -32,7 +32,7 @@ public VipSwapRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs index 378e9260d0b0..4571d68c019f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs @@ -32,7 +32,7 @@ public VirtualApplianceSitesRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSkusRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSkusRestOperations.cs index 57d3068cd8df..4a0f9449b439 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSkusRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSkusRestOperations.cs @@ -32,7 +32,7 @@ public VirtualApplianceSkusRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionRestOperations.cs index d5cf8465120d..bb7ca52c5ebf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionRestOperations.cs @@ -31,7 +31,7 @@ public VirtualHubBgpConnectionRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs index 4ee7edae8324..c478c4af451b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public VirtualHubBgpConnectionsRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs index 605f41c9c7d3..65cf40ae9174 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs @@ -32,7 +32,7 @@ public VirtualHubIpConfigurationRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs index d42f7828f1f0..61ac4c2684a7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs @@ -32,7 +32,7 @@ public VirtualHubRouteTableV2SRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs index 779f40347674..a113599edc6c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs @@ -32,7 +32,7 @@ public VirtualHubsRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs index 453cfeab0e2f..d1909ac8f2e7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public VirtualNetworkGatewayConnectionsRestOperations(HttpPipeline pipeline, str { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs index feb4b4529617..8294f89938cf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs @@ -32,7 +32,7 @@ public VirtualNetworkGatewayNatRulesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs index 8ae84755e00f..2cd3cc7619ea 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs @@ -32,7 +32,7 @@ public VirtualNetworkGatewaysRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs index be9ba1e4680a..1c7bd7064bf7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs @@ -32,7 +32,7 @@ public VirtualNetworkPeeringsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs index fdc5f855ab02..17320f56c8b8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs @@ -32,7 +32,7 @@ public VirtualNetworkTapsRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs index 723153e795ee..f9ef9afff5d1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs @@ -32,7 +32,7 @@ public VirtualNetworksRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs index 5e53014f1f80..a7a10a6e2a45 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs @@ -32,7 +32,7 @@ public VirtualRouterPeeringsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs index 57706171df49..10390b01cda4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs @@ -32,7 +32,7 @@ public VirtualRoutersRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs index dc7a8ead0156..d4a9ac2cd371 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs @@ -32,7 +32,7 @@ public VirtualWansRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs index 2916896b3e33..eaf9d3b9ce6a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public VpnConnectionsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs index e2b7aa59454b..c52d53918c39 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs @@ -32,7 +32,7 @@ public VpnGatewaysRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnLinkConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnLinkConnectionsRestOperations.cs index 524b612595ca..443eb9d0213b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnLinkConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnLinkConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public VpnLinkConnectionsRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs index 3d5b64f8f4d2..ee2ceb2775c2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs @@ -30,7 +30,7 @@ public VpnServerConfigurationsAssociatedWithVirtualWanRestOperations(HttpPipelin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs index d578ec141bb3..7eb0d95642e3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs @@ -32,7 +32,7 @@ public VpnServerConfigurationsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinkConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinkConnectionsRestOperations.cs index f118391fedc3..39e77dc140f4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinkConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinkConnectionsRestOperations.cs @@ -31,7 +31,7 @@ public VpnSiteLinkConnectionsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinksRestOperations.cs index d0b29c923dd5..384ecab140ac 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinksRestOperations.cs @@ -32,7 +32,7 @@ public VpnSiteLinksRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesConfigurationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesConfigurationRestOperations.cs index 304490164f8f..8a0bb8165b54 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesConfigurationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesConfigurationRestOperations.cs @@ -31,7 +31,7 @@ public VpnSitesConfigurationRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs index f333c9ff6747..c25f28c89ef7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs @@ -32,7 +32,7 @@ public VpnSitesRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs index 3c63a4d62659..2038934d6baa 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs @@ -32,7 +32,7 @@ public WebApplicationFirewallPoliciesRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebCategoriesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebCategoriesRestOperations.cs index c36ab1791f83..be203631421c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebCategoriesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebCategoriesRestOperations.cs @@ -32,7 +32,7 @@ public WebCategoriesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteCollection.cs index 325fc3d8e6e0..9406eb02f315 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsync(WaitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string routeName, Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string routeName, CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string routeName, Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string routeName, CancellationToken cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAsync(stri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterCollection.cs index 73aa758ee850..d44b0758dc93 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string routeFi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string routeFilterName, string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string routeFilterName, st /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string routeFilterName, string expand = nul /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterResource.cs index 68c9019275fa..00d9e5980870 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterResource.cs @@ -110,7 +110,7 @@ public virtual RouteFilterRuleCollection GetRouteFilterRules() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetRouteFilterRuleA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetRouteFilterRule(string ruleN /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(string expand /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(string expand = null, Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -338,7 +338,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -380,7 +380,7 @@ public virtual async Task> UpdateAsync(NetworkTags /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -422,7 +422,7 @@ public virtual Response Update(NetworkTagsObject networkTag /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -484,7 +484,7 @@ public virtual async Task> AddTagAsync(string key, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -546,7 +546,7 @@ public virtual Response AddTag(string key, string value, Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -603,7 +603,7 @@ public virtual async Task> SetTagsAsync(IDictionar /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -660,7 +660,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -720,7 +720,7 @@ public virtual async Task> RemoveTagAsync(string k /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleCollection.cs index 753eba9c2182..9a5ac1e48988 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string rul /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string ruleName, Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string ruleName, Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string ruleName, CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleResource.cs index bccad2686fdb..3cd5a8f95703 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(Wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteMapCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteMapCollection.cs index 166886ad5f8a..d9445e544f6c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteMapCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteMapCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsync(Wa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string routeMapNa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string routeMapName, CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string routeMapName, Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string routeMapName, CancellationToken canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAsync(s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteMapResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteMapResource.cs index 2fcea10d9ed7..44925e30d980 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteMapResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteMapResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteResource.cs index 2c8f83942611..f7492c867fe5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellationToken = /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(WaitUntil wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableCollection.cs index a3c6b949126c..b3e5ffd0b52f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string routeTab /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string routeTableName, string ex /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string routeTableName, str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string routeTableName, string expand = null /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableResource.cs index 959a4123042f..587282d0c460 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableResource.cs @@ -110,7 +110,7 @@ public virtual RouteCollection GetRoutes() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetRouteAsync(string routeNam /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetRoute(string routeName, CancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(string expand = /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(string expand = null, Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -338,7 +338,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -380,7 +380,7 @@ public virtual async Task> UpdateAsync(NetworkTagsO /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -422,7 +422,7 @@ public virtual Response Update(NetworkTagsObject networkTags /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -484,7 +484,7 @@ public virtual async Task> AddTagAsync(string key, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -546,7 +546,7 @@ public virtual Response AddTag(string key, string value, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -603,7 +603,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -660,7 +660,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -720,7 +720,7 @@ public virtual async Task> RemoveTagAsync(string ke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingIntentCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingIntentCollection.cs index f0ba73ef80ed..e27c40c7aac6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingIntentCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingIntentCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string routi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string routingIntentName, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string routingIntentName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string routingIntentName, CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingIntentResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingIntentResource.cs index f19dffb3eb0c..832da60414fb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingIntentResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingIntentResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleCollection.cs new file mode 100644 index 000000000000..445833b83329 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleCollection.cs @@ -0,0 +1,501 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Network +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetRoutingRules method from an instance of . + /// + public partial class RoutingRuleCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _routingRuleClientDiagnostics; + private readonly RoutingRulesRestOperations _routingRuleRestClient; + + /// Initializes a new instance of the class for mocking. + protected RoutingRuleCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal RoutingRuleCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _routingRuleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", RoutingRuleResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(RoutingRuleResource.ResourceType, out string routingRuleApiVersion); + _routingRuleRestClient = new RoutingRulesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, routingRuleApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != RoutingRuleCollectionResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RoutingRuleCollectionResource.ResourceType), nameof(id)); + } + + /// + /// Creates or updates an routing rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// RoutingRules_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the rule. + /// The routing rule to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string ruleName, RoutingRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _routingRuleClientDiagnostics.CreateScope("RoutingRuleCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _routingRuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, data, cancellationToken).ConfigureAwait(false); + var uri = _routingRuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new RoutingRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates an routing rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// RoutingRules_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the rule. + /// The routing rule to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string ruleName, RoutingRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _routingRuleClientDiagnostics.CreateScope("RoutingRuleCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _routingRuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, data, cancellationToken); + var uri = _routingRuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new RoutingRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a network manager routing configuration routing rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// RoutingRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var scope = _routingRuleClientDiagnostics.CreateScope("RoutingRuleCollection.Get"); + scope.Start(); + try + { + var response = await _routingRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RoutingRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a network manager routing configuration routing rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// RoutingRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var scope = _routingRuleClientDiagnostics.CreateScope("RoutingRuleCollection.Get"); + scope.Start(); + try + { + var response = _routingRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RoutingRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List all network manager routing configuration routing rules. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules + /// + /// + /// Operation Id + /// RoutingRules_List + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _routingRuleRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _routingRuleRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, top, skipToken); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RoutingRuleResource(Client, RoutingRuleData.DeserializeRoutingRuleData(e)), _routingRuleClientDiagnostics, Pipeline, "RoutingRuleCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List all network manager routing configuration routing rules. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules + /// + /// + /// Operation Id + /// RoutingRules_List + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _routingRuleRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _routingRuleRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, top, skipToken); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RoutingRuleResource(Client, RoutingRuleData.DeserializeRoutingRuleData(e)), _routingRuleClientDiagnostics, Pipeline, "RoutingRuleCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// RoutingRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var scope = _routingRuleClientDiagnostics.CreateScope("RoutingRuleCollection.Exists"); + scope.Start(); + try + { + var response = await _routingRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// RoutingRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var scope = _routingRuleClientDiagnostics.CreateScope("RoutingRuleCollection.Exists"); + scope.Start(); + try + { + var response = _routingRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// RoutingRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var scope = _routingRuleClientDiagnostics.CreateScope("RoutingRuleCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _routingRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new RoutingRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// RoutingRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var scope = _routingRuleClientDiagnostics.CreateScope("RoutingRuleCollection.GetIfExists"); + scope.Start(); + try + { + var response = _routingRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new RoutingRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleCollectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleCollectionCollection.cs new file mode 100644 index 000000000000..ebdb6ab2e3ef --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleCollectionCollection.cs @@ -0,0 +1,501 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Network +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetRoutingRuleCollections method from an instance of . + /// + public partial class RoutingRuleCollectionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _routingRuleCollectionClientDiagnostics; + private readonly RoutingRuleCollectionsRestOperations _routingRuleCollectionRestClient; + + /// Initializes a new instance of the class for mocking. + protected RoutingRuleCollectionCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal RoutingRuleCollectionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _routingRuleCollectionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", RoutingRuleCollectionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(RoutingRuleCollectionResource.ResourceType, out string routingRuleCollectionApiVersion); + _routingRuleCollectionRestClient = new RoutingRuleCollectionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, routingRuleCollectionApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != NetworkManagerRoutingConfigurationResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, NetworkManagerRoutingConfigurationResource.ResourceType), nameof(id)); + } + + /// + /// Creates or updates a routing rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// RoutingRuleCollections_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the network manager routing Configuration rule collection. + /// The Rule Collection to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string ruleCollectionName, RoutingRuleCollectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _routingRuleCollectionClientDiagnostics.CreateScope("RoutingRuleCollectionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _routingRuleCollectionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, data, cancellationToken).ConfigureAwait(false); + var uri = _routingRuleCollectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new RoutingRuleCollectionResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a routing rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// RoutingRuleCollections_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the network manager routing Configuration rule collection. + /// The Rule Collection to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string ruleCollectionName, RoutingRuleCollectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _routingRuleCollectionClientDiagnostics.CreateScope("RoutingRuleCollectionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _routingRuleCollectionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, data, cancellationToken); + var uri = _routingRuleCollectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new RoutingRuleCollectionResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a network manager routing configuration rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// RoutingRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager routing Configuration rule collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string ruleCollectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var scope = _routingRuleCollectionClientDiagnostics.CreateScope("RoutingRuleCollectionCollection.Get"); + scope.Start(); + try + { + var response = await _routingRuleCollectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RoutingRuleCollectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a network manager routing configuration rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// RoutingRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager routing Configuration rule collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string ruleCollectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var scope = _routingRuleCollectionClientDiagnostics.CreateScope("RoutingRuleCollectionCollection.Get"); + scope.Start(); + try + { + var response = _routingRuleCollectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RoutingRuleCollectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists all the rule collections in a routing configuration, in a paginated format. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections + /// + /// + /// Operation Id + /// RoutingRuleCollections_List + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _routingRuleCollectionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _routingRuleCollectionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, top, skipToken); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RoutingRuleCollectionResource(Client, RoutingRuleCollectionData.DeserializeRoutingRuleCollectionData(e)), _routingRuleCollectionClientDiagnostics, Pipeline, "RoutingRuleCollectionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Lists all the rule collections in a routing configuration, in a paginated format. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections + /// + /// + /// Operation Id + /// RoutingRuleCollections_List + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _routingRuleCollectionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _routingRuleCollectionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, top, skipToken); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RoutingRuleCollectionResource(Client, RoutingRuleCollectionData.DeserializeRoutingRuleCollectionData(e)), _routingRuleCollectionClientDiagnostics, Pipeline, "RoutingRuleCollectionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// RoutingRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager routing Configuration rule collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string ruleCollectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var scope = _routingRuleCollectionClientDiagnostics.CreateScope("RoutingRuleCollectionCollection.Exists"); + scope.Start(); + try + { + var response = await _routingRuleCollectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// RoutingRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager routing Configuration rule collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string ruleCollectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var scope = _routingRuleCollectionClientDiagnostics.CreateScope("RoutingRuleCollectionCollection.Exists"); + scope.Start(); + try + { + var response = _routingRuleCollectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// RoutingRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager routing Configuration rule collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string ruleCollectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var scope = _routingRuleCollectionClientDiagnostics.CreateScope("RoutingRuleCollectionCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _routingRuleCollectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new RoutingRuleCollectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// RoutingRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager routing Configuration rule collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string ruleCollectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var scope = _routingRuleCollectionClientDiagnostics.CreateScope("RoutingRuleCollectionCollection.GetIfExists"); + scope.Start(); + try + { + var response = _routingRuleCollectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new RoutingRuleCollectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleCollectionData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleCollectionData.Serialization.cs new file mode 100644 index 000000000000..1c2929667e99 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleCollectionData.Serialization.cs @@ -0,0 +1,283 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + public partial class RoutingRuleCollectionData : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RoutingRuleCollectionData)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(ETag)) + { + writer.WritePropertyName("etag"u8); + writer.WriteStringValue(ETag.Value.ToString()); + } + if (options.Format != "W") + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (options.Format != "W") + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (options.Format != "W") + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(ResourceType); + } + if (options.Format != "W" && Optional.IsDefined(SystemData)) + { + writer.WritePropertyName("systemData"u8); + JsonSerializer.Serialize(writer, SystemData); + } + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(ResourceGuid)) + { + writer.WritePropertyName("resourceGuid"u8); + writer.WriteStringValue(ResourceGuid.Value); + } + if (Optional.IsCollectionDefined(AppliesTo)) + { + writer.WritePropertyName("appliesTo"u8); + writer.WriteStartArray(); + foreach (var item in AppliesTo) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(DisableBgpRoutePropagation)) + { + writer.WritePropertyName("disableBgpRoutePropagation"u8); + writer.WriteStringValue(DisableBgpRoutePropagation.Value.ToString()); + } + writer.WriteEndObject(); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + RoutingRuleCollectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RoutingRuleCollectionData)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeRoutingRuleCollectionData(document.RootElement, options); + } + + internal static RoutingRuleCollectionData DeserializeRoutingRuleCollectionData(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ETag? etag = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + SystemData systemData = default; + string description = default; + NetworkProvisioningState? provisioningState = default; + Guid? resourceGuid = default; + IList appliesTo = default; + DisableBgpRoutePropagation? disableBgpRoutePropagation = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("etag"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + etag = new ETag(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("description"u8)) + { + description = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new NetworkProvisioningState(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("resourceGuid"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceGuid = property0.Value.GetGuid(); + continue; + } + if (property0.NameEquals("appliesTo"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(NetworkManagerRoutingGroupItem.DeserializeNetworkManagerRoutingGroupItem(item, options)); + } + appliesTo = array; + continue; + } + if (property0.NameEquals("disableBgpRoutePropagation"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + disableBgpRoutePropagation = new DisableBgpRoutePropagation(property0.Value.GetString()); + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new RoutingRuleCollectionData( + id, + name, + type, + systemData, + description, + provisioningState, + resourceGuid, + appliesTo ?? new ChangeTrackingList(), + disableBgpRoutePropagation, + etag, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(RoutingRuleCollectionData)} does not support writing '{options.Format}' format."); + } + } + + RoutingRuleCollectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeRoutingRuleCollectionData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(RoutingRuleCollectionData)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleCollectionData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleCollectionData.cs new file mode 100644 index 000000000000..0a507767a8f2 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleCollectionData.cs @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + /// + /// A class representing the RoutingRuleCollection data model. + /// Defines the routing rule collection. + /// + public partial class RoutingRuleCollectionData : ResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public RoutingRuleCollectionData() + { + AppliesTo = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description of the routing rule collection. + /// The provisioning state of the resource. + /// Unique identifier for this resource. + /// Groups for configuration. + /// Determines whether BGP route propagation is enabled. Defaults to true. + /// A unique read-only string that changes whenever the resource is updated. + /// Keeps track of any properties unknown to the library. + internal RoutingRuleCollectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, NetworkProvisioningState? provisioningState, Guid? resourceGuid, IList appliesTo, DisableBgpRoutePropagation? disableBgpRoutePropagation, ETag? etag, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + { + Description = description; + ProvisioningState = provisioningState; + ResourceGuid = resourceGuid; + AppliesTo = appliesTo; + DisableBgpRoutePropagation = disableBgpRoutePropagation; + ETag = etag; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// A description of the routing rule collection. + public string Description { get; set; } + /// The provisioning state of the resource. + public NetworkProvisioningState? ProvisioningState { get; } + /// Unique identifier for this resource. + public Guid? ResourceGuid { get; } + /// Groups for configuration. + public IList AppliesTo { get; } + /// Determines whether BGP route propagation is enabled. Defaults to true. + public DisableBgpRoutePropagation? DisableBgpRoutePropagation { get; set; } + /// A unique read-only string that changes whenever the resource is updated. + public ETag? ETag { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleCollectionResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleCollectionResource.Serialization.cs new file mode 100644 index 000000000000..2d46ad6de96c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleCollectionResource.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class RoutingRuleCollectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + RoutingRuleCollectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + RoutingRuleCollectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleCollectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleCollectionResource.cs new file mode 100644 index 000000000000..c751ed92e405 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleCollectionResource.cs @@ -0,0 +1,423 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Network +{ + /// + /// A Class representing a RoutingRuleCollection along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetRoutingRuleCollectionResource method. + /// Otherwise you can get one from its parent resource using the GetRoutingRuleCollection method. + /// + public partial class RoutingRuleCollectionResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The networkManagerName. + /// The configurationName. + /// The ruleCollectionName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _routingRuleCollectionClientDiagnostics; + private readonly RoutingRuleCollectionsRestOperations _routingRuleCollectionRestClient; + private readonly RoutingRuleCollectionData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Network/networkManagers/routingConfigurations/ruleCollections"; + + /// Initializes a new instance of the class for mocking. + protected RoutingRuleCollectionResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal RoutingRuleCollectionResource(ArmClient client, RoutingRuleCollectionData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal RoutingRuleCollectionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _routingRuleCollectionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string routingRuleCollectionApiVersion); + _routingRuleCollectionRestClient = new RoutingRuleCollectionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, routingRuleCollectionApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual RoutingRuleCollectionData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of RoutingRuleResources in the RoutingRuleCollection. + /// An object representing collection of RoutingRuleResources and their operations over a RoutingRuleResource. + public virtual RoutingRuleCollection GetRoutingRules() + { + return GetCachedClient(client => new RoutingRuleCollection(client, Id)); + } + + /// + /// Gets a network manager routing configuration routing rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// RoutingRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetRoutingRuleAsync(string ruleName, CancellationToken cancellationToken = default) + { + return await GetRoutingRules().GetAsync(ruleName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a network manager routing configuration routing rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// RoutingRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetRoutingRule(string ruleName, CancellationToken cancellationToken = default) + { + return GetRoutingRules().Get(ruleName, cancellationToken); + } + + /// + /// Gets a network manager routing configuration rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// RoutingRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _routingRuleCollectionClientDiagnostics.CreateScope("RoutingRuleCollectionResource.Get"); + scope.Start(); + try + { + var response = await _routingRuleCollectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RoutingRuleCollectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a network manager routing configuration rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// RoutingRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _routingRuleCollectionClientDiagnostics.CreateScope("RoutingRuleCollectionResource.Get"); + scope.Start(); + try + { + var response = _routingRuleCollectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RoutingRuleCollectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes an routing rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// RoutingRuleCollections_Delete + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default) + { + using var scope = _routingRuleCollectionClientDiagnostics.CreateScope("RoutingRuleCollectionResource.Delete"); + scope.Start(); + try + { + var response = await _routingRuleCollectionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation(_routingRuleCollectionClientDiagnostics, Pipeline, _routingRuleCollectionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes an routing rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// RoutingRuleCollections_Delete + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default) + { + using var scope = _routingRuleCollectionClientDiagnostics.CreateScope("RoutingRuleCollectionResource.Delete"); + scope.Start(); + try + { + var response = _routingRuleCollectionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force, cancellationToken); + var operation = new NetworkArmOperation(_routingRuleCollectionClientDiagnostics, Pipeline, _routingRuleCollectionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a routing rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// RoutingRuleCollections_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The Rule Collection to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, RoutingRuleCollectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _routingRuleCollectionClientDiagnostics.CreateScope("RoutingRuleCollectionResource.Update"); + scope.Start(); + try + { + var response = await _routingRuleCollectionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var uri = _routingRuleCollectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new RoutingRuleCollectionResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a routing rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// RoutingRuleCollections_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The Rule Collection to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, RoutingRuleCollectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _routingRuleCollectionClientDiagnostics.CreateScope("RoutingRuleCollectionResource.Update"); + scope.Start(); + try + { + var response = _routingRuleCollectionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var uri = _routingRuleCollectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new RoutingRuleCollectionResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleData.Serialization.cs new file mode 100644 index 000000000000..12f067b8073f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleData.Serialization.cs @@ -0,0 +1,273 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + public partial class RoutingRuleData : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RoutingRuleData)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(ETag)) + { + writer.WritePropertyName("etag"u8); + writer.WriteStringValue(ETag.Value.ToString()); + } + if (options.Format != "W") + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (options.Format != "W") + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (options.Format != "W") + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(ResourceType); + } + if (options.Format != "W" && Optional.IsDefined(SystemData)) + { + writer.WritePropertyName("systemData"u8); + JsonSerializer.Serialize(writer, SystemData); + } + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(ResourceGuid)) + { + writer.WritePropertyName("resourceGuid"u8); + writer.WriteStringValue(ResourceGuid.Value); + } + if (Optional.IsDefined(Destination)) + { + writer.WritePropertyName("destination"u8); + writer.WriteObjectValue(Destination, options); + } + if (Optional.IsDefined(NextHop)) + { + writer.WritePropertyName("nextHop"u8); + writer.WriteObjectValue(NextHop, options); + } + writer.WriteEndObject(); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + RoutingRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RoutingRuleData)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeRoutingRuleData(document.RootElement, options); + } + + internal static RoutingRuleData DeserializeRoutingRuleData(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ETag? etag = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + SystemData systemData = default; + string description = default; + NetworkProvisioningState? provisioningState = default; + Guid? resourceGuid = default; + RoutingRuleRouteDestination destination = default; + RoutingRuleNextHop nextHop = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("etag"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + etag = new ETag(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("description"u8)) + { + description = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new NetworkProvisioningState(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("resourceGuid"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceGuid = property0.Value.GetGuid(); + continue; + } + if (property0.NameEquals("destination"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + destination = RoutingRuleRouteDestination.DeserializeRoutingRuleRouteDestination(property0.Value, options); + continue; + } + if (property0.NameEquals("nextHop"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextHop = RoutingRuleNextHop.DeserializeRoutingRuleNextHop(property0.Value, options); + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new RoutingRuleData( + id, + name, + type, + systemData, + description, + provisioningState, + resourceGuid, + destination, + nextHop, + etag, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(RoutingRuleData)} does not support writing '{options.Format}' format."); + } + } + + RoutingRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeRoutingRuleData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(RoutingRuleData)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleData.cs new file mode 100644 index 000000000000..fb7fb5b0fa21 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleData.cs @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + /// + /// A class representing the RoutingRule data model. + /// Network routing rule. + /// + public partial class RoutingRuleData : ResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public RoutingRuleData() + { + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description for this rule. + /// The provisioning state of the resource. + /// Unique identifier for this resource. + /// Indicates the destination for this particular rule. + /// Indicates the next hop for this particular rule. + /// A unique read-only string that changes whenever the resource is updated. + /// Keeps track of any properties unknown to the library. + internal RoutingRuleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, NetworkProvisioningState? provisioningState, Guid? resourceGuid, RoutingRuleRouteDestination destination, RoutingRuleNextHop nextHop, ETag? etag, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + { + Description = description; + ProvisioningState = provisioningState; + ResourceGuid = resourceGuid; + Destination = destination; + NextHop = nextHop; + ETag = etag; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// A description for this rule. + public string Description { get; set; } + /// The provisioning state of the resource. + public NetworkProvisioningState? ProvisioningState { get; } + /// Unique identifier for this resource. + public Guid? ResourceGuid { get; } + /// Indicates the destination for this particular rule. + public RoutingRuleRouteDestination Destination { get; set; } + /// Indicates the next hop for this particular rule. + public RoutingRuleNextHop NextHop { get; set; } + /// A unique read-only string that changes whenever the resource is updated. + public ETag? ETag { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleResource.Serialization.cs new file mode 100644 index 000000000000..36c62936cc47 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleResource.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class RoutingRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + RoutingRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + RoutingRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleResource.cs new file mode 100644 index 000000000000..c9328ff6c763 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingRuleResource.cs @@ -0,0 +1,355 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Network +{ + /// + /// A Class representing a RoutingRule along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetRoutingRuleResource method. + /// Otherwise you can get one from its parent resource using the GetRoutingRule method. + /// + public partial class RoutingRuleResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The networkManagerName. + /// The configurationName. + /// The ruleCollectionName. + /// The ruleName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _routingRuleClientDiagnostics; + private readonly RoutingRulesRestOperations _routingRuleRestClient; + private readonly RoutingRuleData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Network/networkManagers/routingConfigurations/ruleCollections/rules"; + + /// Initializes a new instance of the class for mocking. + protected RoutingRuleResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal RoutingRuleResource(ArmClient client, RoutingRuleData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal RoutingRuleResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _routingRuleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string routingRuleApiVersion); + _routingRuleRestClient = new RoutingRulesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, routingRuleApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual RoutingRuleData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Gets a network manager routing configuration routing rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// RoutingRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _routingRuleClientDiagnostics.CreateScope("RoutingRuleResource.Get"); + scope.Start(); + try + { + var response = await _routingRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RoutingRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a network manager routing configuration routing rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// RoutingRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _routingRuleClientDiagnostics.CreateScope("RoutingRuleResource.Get"); + scope.Start(); + try + { + var response = _routingRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RoutingRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a routing rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// RoutingRules_Delete + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default) + { + using var scope = _routingRuleClientDiagnostics.CreateScope("RoutingRuleResource.Delete"); + scope.Start(); + try + { + var response = await _routingRuleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation(_routingRuleClientDiagnostics, Pipeline, _routingRuleRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a routing rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// RoutingRules_Delete + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default) + { + using var scope = _routingRuleClientDiagnostics.CreateScope("RoutingRuleResource.Delete"); + scope.Start(); + try + { + var response = _routingRuleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force, cancellationToken); + var operation = new NetworkArmOperation(_routingRuleClientDiagnostics, Pipeline, _routingRuleRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates an routing rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// RoutingRules_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The routing rule to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, RoutingRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _routingRuleClientDiagnostics.CreateScope("RoutingRuleResource.Update"); + scope.Start(); + try + { + var response = await _routingRuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var uri = _routingRuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new RoutingRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates an routing rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// RoutingRules_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The routing rule to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, RoutingRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _routingRuleClientDiagnostics.CreateScope("RoutingRuleResource.Update"); + scope.Start(); + try + { + var response = _routingRuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var uri = _routingRuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new RoutingRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionCollection.cs index 107f3195bea1..ae9b856e6d88 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string sco /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string scopeConnectionName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(int? top = nul /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? top = null, string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string scopeConnectionName /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string scopeConnectionName, CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionResource.cs index 05fffdadf9ef..e76f9151ead2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateAsync(Wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationCollection.cs index 6b539a736a14..3b3d50a2c271 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Crea /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(W /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string configura /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(int /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? top = nu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string configurationName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string configurationName, CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationResource.cs index 4d535c5baa3e..e79c732b6da3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationResource.cs @@ -108,7 +108,7 @@ public virtual AdminRuleGroupCollection GetAdminRuleGroups() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetAdminRuleGroupAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetAdminRuleGroup(string ruleCol /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -250,7 +250,7 @@ public virtual Response Get(CancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -293,7 +293,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task> Upda /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderCollection.cs index 03b9bf70fe44..7db8be93ad3f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string securityPart /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string securityPartnerProv /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string securityPartnerProviderName, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderResource.cs index 2c12e6754baa..75327b9243cd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual Response Update(NetworkTagsObjec /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -413,7 +413,7 @@ public virtual async Task> AddTagAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -475,7 +475,7 @@ public virtual Response AddTag(string key, stri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual async Task> SetTagsAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -589,7 +589,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -649,7 +649,7 @@ public virtual async Task> RemoveTagAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleCollection.cs index de76b5479c48..841b312196e0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string securi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string securityRuleName, Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string securityRuleName, C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string securityRuleName, CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleResource.cs index 32fc05abf82d..4941f05c7e51 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(WaitUn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserConfigurationCollection.cs new file mode 100644 index 000000000000..dc6cf8d974ce --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserConfigurationCollection.cs @@ -0,0 +1,501 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Network +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetSecurityUserConfigurations method from an instance of . + /// + public partial class SecurityUserConfigurationCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _securityUserConfigurationClientDiagnostics; + private readonly SecurityUserConfigurationsRestOperations _securityUserConfigurationRestClient; + + /// Initializes a new instance of the class for mocking. + protected SecurityUserConfigurationCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal SecurityUserConfigurationCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _securityUserConfigurationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", SecurityUserConfigurationResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(SecurityUserConfigurationResource.ResourceType, out string securityUserConfigurationApiVersion); + _securityUserConfigurationRestClient = new SecurityUserConfigurationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, securityUserConfigurationApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != NetworkManagerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, NetworkManagerResource.ResourceType), nameof(id)); + } + + /// + /// Creates or updates a network manager security user configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName} + /// + /// + /// Operation Id + /// SecurityUserConfigurations_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the network manager Security Configuration. + /// The security user configuration to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string configurationName, SecurityUserConfigurationData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _securityUserConfigurationClientDiagnostics.CreateScope("SecurityUserConfigurationCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _securityUserConfigurationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, data, cancellationToken).ConfigureAwait(false); + var uri = _securityUserConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SecurityUserConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a network manager security user configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName} + /// + /// + /// Operation Id + /// SecurityUserConfigurations_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the network manager Security Configuration. + /// The security user configuration to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string configurationName, SecurityUserConfigurationData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _securityUserConfigurationClientDiagnostics.CreateScope("SecurityUserConfigurationCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _securityUserConfigurationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, data, cancellationToken); + var uri = _securityUserConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SecurityUserConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves a network manager security user configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName} + /// + /// + /// Operation Id + /// SecurityUserConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager Security Configuration. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string configurationName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var scope = _securityUserConfigurationClientDiagnostics.CreateScope("SecurityUserConfigurationCollection.Get"); + scope.Start(); + try + { + var response = await _securityUserConfigurationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SecurityUserConfigurationResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves a network manager security user configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName} + /// + /// + /// Operation Id + /// SecurityUserConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager Security Configuration. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string configurationName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var scope = _securityUserConfigurationClientDiagnostics.CreateScope("SecurityUserConfigurationCollection.Get"); + scope.Start(); + try + { + var response = _securityUserConfigurationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SecurityUserConfigurationResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists all the network manager security user configurations in a network manager, in a paginated format. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations + /// + /// + /// Operation Id + /// SecurityUserConfigurations_List + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _securityUserConfigurationRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _securityUserConfigurationRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new SecurityUserConfigurationResource(Client, SecurityUserConfigurationData.DeserializeSecurityUserConfigurationData(e)), _securityUserConfigurationClientDiagnostics, Pipeline, "SecurityUserConfigurationCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Lists all the network manager security user configurations in a network manager, in a paginated format. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations + /// + /// + /// Operation Id + /// SecurityUserConfigurations_List + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _securityUserConfigurationRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _securityUserConfigurationRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SecurityUserConfigurationResource(Client, SecurityUserConfigurationData.DeserializeSecurityUserConfigurationData(e)), _securityUserConfigurationClientDiagnostics, Pipeline, "SecurityUserConfigurationCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName} + /// + /// + /// Operation Id + /// SecurityUserConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager Security Configuration. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string configurationName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var scope = _securityUserConfigurationClientDiagnostics.CreateScope("SecurityUserConfigurationCollection.Exists"); + scope.Start(); + try + { + var response = await _securityUserConfigurationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName} + /// + /// + /// Operation Id + /// SecurityUserConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager Security Configuration. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string configurationName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var scope = _securityUserConfigurationClientDiagnostics.CreateScope("SecurityUserConfigurationCollection.Exists"); + scope.Start(); + try + { + var response = _securityUserConfigurationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName} + /// + /// + /// Operation Id + /// SecurityUserConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager Security Configuration. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string configurationName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var scope = _securityUserConfigurationClientDiagnostics.CreateScope("SecurityUserConfigurationCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _securityUserConfigurationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new SecurityUserConfigurationResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName} + /// + /// + /// Operation Id + /// SecurityUserConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager Security Configuration. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string configurationName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(configurationName, nameof(configurationName)); + + using var scope = _securityUserConfigurationClientDiagnostics.CreateScope("SecurityUserConfigurationCollection.GetIfExists"); + scope.Start(); + try + { + var response = _securityUserConfigurationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new SecurityUserConfigurationResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserConfigurationData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserConfigurationData.Serialization.cs new file mode 100644 index 000000000000..e6115964b74e --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserConfigurationData.Serialization.cs @@ -0,0 +1,241 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + public partial class SecurityUserConfigurationData : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SecurityUserConfigurationData)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(ETag)) + { + writer.WritePropertyName("etag"u8); + writer.WriteStringValue(ETag.Value.ToString()); + } + if (options.Format != "W") + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (options.Format != "W") + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (options.Format != "W") + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(ResourceType); + } + if (options.Format != "W" && Optional.IsDefined(SystemData)) + { + writer.WritePropertyName("systemData"u8); + JsonSerializer.Serialize(writer, SystemData); + } + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(ResourceGuid)) + { + writer.WritePropertyName("resourceGuid"u8); + writer.WriteStringValue(ResourceGuid.Value); + } + writer.WriteEndObject(); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + SecurityUserConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SecurityUserConfigurationData)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeSecurityUserConfigurationData(document.RootElement, options); + } + + internal static SecurityUserConfigurationData DeserializeSecurityUserConfigurationData(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ETag? etag = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + SystemData systemData = default; + string description = default; + NetworkProvisioningState? provisioningState = default; + Guid? resourceGuid = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("etag"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + etag = new ETag(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("description"u8)) + { + description = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new NetworkProvisioningState(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("resourceGuid"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceGuid = property0.Value.GetGuid(); + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new SecurityUserConfigurationData( + id, + name, + type, + systemData, + description, + provisioningState, + resourceGuid, + etag, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(SecurityUserConfigurationData)} does not support writing '{options.Format}' format."); + } + } + + SecurityUserConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeSecurityUserConfigurationData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(SecurityUserConfigurationData)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserConfigurationData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserConfigurationData.cs new file mode 100644 index 000000000000..5ce115f9c8d7 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserConfigurationData.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + /// + /// A class representing the SecurityUserConfiguration data model. + /// Defines the security user configuration + /// + public partial class SecurityUserConfigurationData : ResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public SecurityUserConfigurationData() + { + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description of the security user configuration. + /// The provisioning state of the resource. + /// Unique identifier for this resource. + /// A unique read-only string that changes whenever the resource is updated. + /// Keeps track of any properties unknown to the library. + internal SecurityUserConfigurationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, NetworkProvisioningState? provisioningState, Guid? resourceGuid, ETag? etag, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + { + Description = description; + ProvisioningState = provisioningState; + ResourceGuid = resourceGuid; + ETag = etag; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// A description of the security user configuration. + public string Description { get; set; } + /// The provisioning state of the resource. + public NetworkProvisioningState? ProvisioningState { get; } + /// Unique identifier for this resource. + public Guid? ResourceGuid { get; } + /// A unique read-only string that changes whenever the resource is updated. + public ETag? ETag { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserConfigurationResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..0cfd34f6daa7 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserConfigurationResource.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class SecurityUserConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + SecurityUserConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + SecurityUserConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserConfigurationResource.cs new file mode 100644 index 000000000000..b27489b6c771 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserConfigurationResource.cs @@ -0,0 +1,422 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Network +{ + /// + /// A Class representing a SecurityUserConfiguration along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetSecurityUserConfigurationResource method. + /// Otherwise you can get one from its parent resource using the GetSecurityUserConfiguration method. + /// + public partial class SecurityUserConfigurationResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The networkManagerName. + /// The configurationName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _securityUserConfigurationClientDiagnostics; + private readonly SecurityUserConfigurationsRestOperations _securityUserConfigurationRestClient; + private readonly SecurityUserConfigurationData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Network/networkManagers/securityUserConfigurations"; + + /// Initializes a new instance of the class for mocking. + protected SecurityUserConfigurationResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal SecurityUserConfigurationResource(ArmClient client, SecurityUserConfigurationData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal SecurityUserConfigurationResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _securityUserConfigurationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string securityUserConfigurationApiVersion); + _securityUserConfigurationRestClient = new SecurityUserConfigurationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, securityUserConfigurationApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual SecurityUserConfigurationData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of SecurityUserRuleCollectionResources in the SecurityUserConfiguration. + /// An object representing collection of SecurityUserRuleCollectionResources and their operations over a SecurityUserRuleCollectionResource. + public virtual SecurityUserRuleCollectionCollection GetSecurityUserRuleCollections() + { + return GetCachedClient(client => new SecurityUserRuleCollectionCollection(client, Id)); + } + + /// + /// Gets a network manager security user configuration rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// SecurityUserRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager security Configuration rule collection. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetSecurityUserRuleCollectionAsync(string ruleCollectionName, CancellationToken cancellationToken = default) + { + return await GetSecurityUserRuleCollections().GetAsync(ruleCollectionName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a network manager security user configuration rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// SecurityUserRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager security Configuration rule collection. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetSecurityUserRuleCollection(string ruleCollectionName, CancellationToken cancellationToken = default) + { + return GetSecurityUserRuleCollections().Get(ruleCollectionName, cancellationToken); + } + + /// + /// Retrieves a network manager security user configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName} + /// + /// + /// Operation Id + /// SecurityUserConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _securityUserConfigurationClientDiagnostics.CreateScope("SecurityUserConfigurationResource.Get"); + scope.Start(); + try + { + var response = await _securityUserConfigurationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SecurityUserConfigurationResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves a network manager security user configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName} + /// + /// + /// Operation Id + /// SecurityUserConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _securityUserConfigurationClientDiagnostics.CreateScope("SecurityUserConfigurationResource.Get"); + scope.Start(); + try + { + var response = _securityUserConfigurationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SecurityUserConfigurationResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a network manager security user configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName} + /// + /// + /// Operation Id + /// SecurityUserConfigurations_Delete + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default) + { + using var scope = _securityUserConfigurationClientDiagnostics.CreateScope("SecurityUserConfigurationResource.Delete"); + scope.Start(); + try + { + var response = await _securityUserConfigurationRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation(_securityUserConfigurationClientDiagnostics, Pipeline, _securityUserConfigurationRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a network manager security user configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName} + /// + /// + /// Operation Id + /// SecurityUserConfigurations_Delete + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default) + { + using var scope = _securityUserConfigurationClientDiagnostics.CreateScope("SecurityUserConfigurationResource.Delete"); + scope.Start(); + try + { + var response = _securityUserConfigurationRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force, cancellationToken); + var operation = new NetworkArmOperation(_securityUserConfigurationClientDiagnostics, Pipeline, _securityUserConfigurationRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a network manager security user configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName} + /// + /// + /// Operation Id + /// SecurityUserConfigurations_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The security user configuration to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, SecurityUserConfigurationData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _securityUserConfigurationClientDiagnostics.CreateScope("SecurityUserConfigurationResource.Update"); + scope.Start(); + try + { + var response = await _securityUserConfigurationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var uri = _securityUserConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SecurityUserConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a network manager security user configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName} + /// + /// + /// Operation Id + /// SecurityUserConfigurations_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The security user configuration to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, SecurityUserConfigurationData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _securityUserConfigurationClientDiagnostics.CreateScope("SecurityUserConfigurationResource.Update"); + scope.Start(); + try + { + var response = _securityUserConfigurationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var uri = _securityUserConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SecurityUserConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleCollection.cs new file mode 100644 index 000000000000..870197655f0c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleCollection.cs @@ -0,0 +1,501 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Network +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetSecurityUserRules method from an instance of . + /// + public partial class SecurityUserRuleCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _securityUserRuleClientDiagnostics; + private readonly SecurityUserRulesRestOperations _securityUserRuleRestClient; + + /// Initializes a new instance of the class for mocking. + protected SecurityUserRuleCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal SecurityUserRuleCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _securityUserRuleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", SecurityUserRuleResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(SecurityUserRuleResource.ResourceType, out string securityUserRuleApiVersion); + _securityUserRuleRestClient = new SecurityUserRulesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, securityUserRuleApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != SecurityUserRuleCollectionResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, SecurityUserRuleCollectionResource.ResourceType), nameof(id)); + } + + /// + /// Creates or updates a security user rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// SecurityUserRules_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the rule. + /// The security user rule to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string ruleName, SecurityUserRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _securityUserRuleClientDiagnostics.CreateScope("SecurityUserRuleCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _securityUserRuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, data, cancellationToken).ConfigureAwait(false); + var uri = _securityUserRuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SecurityUserRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a security user rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// SecurityUserRules_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the rule. + /// The security user rule to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string ruleName, SecurityUserRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _securityUserRuleClientDiagnostics.CreateScope("SecurityUserRuleCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _securityUserRuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, data, cancellationToken); + var uri = _securityUserRuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SecurityUserRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a security user rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// SecurityUserRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var scope = _securityUserRuleClientDiagnostics.CreateScope("SecurityUserRuleCollection.Get"); + scope.Start(); + try + { + var response = await _securityUserRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SecurityUserRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a security user rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// SecurityUserRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var scope = _securityUserRuleClientDiagnostics.CreateScope("SecurityUserRuleCollection.Get"); + scope.Start(); + try + { + var response = _securityUserRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SecurityUserRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists all Security User Rules in a rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules + /// + /// + /// Operation Id + /// SecurityUserRules_List + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _securityUserRuleRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _securityUserRuleRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, top, skipToken); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new SecurityUserRuleResource(Client, SecurityUserRuleData.DeserializeSecurityUserRuleData(e)), _securityUserRuleClientDiagnostics, Pipeline, "SecurityUserRuleCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Lists all Security User Rules in a rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules + /// + /// + /// Operation Id + /// SecurityUserRules_List + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _securityUserRuleRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _securityUserRuleRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, top, skipToken); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SecurityUserRuleResource(Client, SecurityUserRuleData.DeserializeSecurityUserRuleData(e)), _securityUserRuleClientDiagnostics, Pipeline, "SecurityUserRuleCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// SecurityUserRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var scope = _securityUserRuleClientDiagnostics.CreateScope("SecurityUserRuleCollection.Exists"); + scope.Start(); + try + { + var response = await _securityUserRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// SecurityUserRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var scope = _securityUserRuleClientDiagnostics.CreateScope("SecurityUserRuleCollection.Exists"); + scope.Start(); + try + { + var response = _securityUserRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// SecurityUserRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var scope = _securityUserRuleClientDiagnostics.CreateScope("SecurityUserRuleCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _securityUserRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new SecurityUserRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// SecurityUserRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var scope = _securityUserRuleClientDiagnostics.CreateScope("SecurityUserRuleCollection.GetIfExists"); + scope.Start(); + try + { + var response = _securityUserRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new SecurityUserRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleCollectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleCollectionCollection.cs new file mode 100644 index 000000000000..2d2a6a28db1f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleCollectionCollection.cs @@ -0,0 +1,501 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Network +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetSecurityUserRuleCollections method from an instance of . + /// + public partial class SecurityUserRuleCollectionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _securityUserRuleCollectionClientDiagnostics; + private readonly SecurityUserRuleCollectionsRestOperations _securityUserRuleCollectionRestClient; + + /// Initializes a new instance of the class for mocking. + protected SecurityUserRuleCollectionCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal SecurityUserRuleCollectionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _securityUserRuleCollectionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", SecurityUserRuleCollectionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(SecurityUserRuleCollectionResource.ResourceType, out string securityUserRuleCollectionApiVersion); + _securityUserRuleCollectionRestClient = new SecurityUserRuleCollectionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, securityUserRuleCollectionApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != SecurityUserConfigurationResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, SecurityUserConfigurationResource.ResourceType), nameof(id)); + } + + /// + /// Creates or updates a security user rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// SecurityUserRuleCollections_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the network manager security Configuration rule collection. + /// The Security User Rule Collection to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string ruleCollectionName, SecurityUserRuleCollectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _securityUserRuleCollectionClientDiagnostics.CreateScope("SecurityUserRuleCollectionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _securityUserRuleCollectionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, data, cancellationToken).ConfigureAwait(false); + var uri = _securityUserRuleCollectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SecurityUserRuleCollectionResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a security user rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// SecurityUserRuleCollections_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the network manager security Configuration rule collection. + /// The Security User Rule Collection to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string ruleCollectionName, SecurityUserRuleCollectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _securityUserRuleCollectionClientDiagnostics.CreateScope("SecurityUserRuleCollectionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _securityUserRuleCollectionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, data, cancellationToken); + var uri = _securityUserRuleCollectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SecurityUserRuleCollectionResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a network manager security user configuration rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// SecurityUserRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager security Configuration rule collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string ruleCollectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var scope = _securityUserRuleCollectionClientDiagnostics.CreateScope("SecurityUserRuleCollectionCollection.Get"); + scope.Start(); + try + { + var response = await _securityUserRuleCollectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SecurityUserRuleCollectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a network manager security user configuration rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// SecurityUserRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager security Configuration rule collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string ruleCollectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var scope = _securityUserRuleCollectionClientDiagnostics.CreateScope("SecurityUserRuleCollectionCollection.Get"); + scope.Start(); + try + { + var response = _securityUserRuleCollectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SecurityUserRuleCollectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists all the security user rule collections in a security configuration, in a paginated format. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections + /// + /// + /// Operation Id + /// SecurityUserRuleCollections_List + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _securityUserRuleCollectionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _securityUserRuleCollectionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, top, skipToken); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new SecurityUserRuleCollectionResource(Client, SecurityUserRuleCollectionData.DeserializeSecurityUserRuleCollectionData(e)), _securityUserRuleCollectionClientDiagnostics, Pipeline, "SecurityUserRuleCollectionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Lists all the security user rule collections in a security configuration, in a paginated format. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections + /// + /// + /// Operation Id + /// SecurityUserRuleCollections_List + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// An optional query parameter which specifies the maximum number of records to be returned by the server. + /// SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _securityUserRuleCollectionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _securityUserRuleCollectionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, top, skipToken); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SecurityUserRuleCollectionResource(Client, SecurityUserRuleCollectionData.DeserializeSecurityUserRuleCollectionData(e)), _securityUserRuleCollectionClientDiagnostics, Pipeline, "SecurityUserRuleCollectionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// SecurityUserRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager security Configuration rule collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string ruleCollectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var scope = _securityUserRuleCollectionClientDiagnostics.CreateScope("SecurityUserRuleCollectionCollection.Exists"); + scope.Start(); + try + { + var response = await _securityUserRuleCollectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// SecurityUserRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager security Configuration rule collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string ruleCollectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var scope = _securityUserRuleCollectionClientDiagnostics.CreateScope("SecurityUserRuleCollectionCollection.Exists"); + scope.Start(); + try + { + var response = _securityUserRuleCollectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// SecurityUserRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager security Configuration rule collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string ruleCollectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var scope = _securityUserRuleCollectionClientDiagnostics.CreateScope("SecurityUserRuleCollectionCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _securityUserRuleCollectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new SecurityUserRuleCollectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// SecurityUserRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager security Configuration rule collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string ruleCollectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleCollectionName, nameof(ruleCollectionName)); + + using var scope = _securityUserRuleCollectionClientDiagnostics.CreateScope("SecurityUserRuleCollectionCollection.GetIfExists"); + scope.Start(); + try + { + var response = _securityUserRuleCollectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new SecurityUserRuleCollectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleCollectionData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleCollectionData.Serialization.cs new file mode 100644 index 000000000000..3646f9692b88 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleCollectionData.Serialization.cs @@ -0,0 +1,267 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + public partial class SecurityUserRuleCollectionData : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SecurityUserRuleCollectionData)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(ETag)) + { + writer.WritePropertyName("etag"u8); + writer.WriteStringValue(ETag.Value.ToString()); + } + if (options.Format != "W") + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (options.Format != "W") + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (options.Format != "W") + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(ResourceType); + } + if (options.Format != "W" && Optional.IsDefined(SystemData)) + { + writer.WritePropertyName("systemData"u8); + JsonSerializer.Serialize(writer, SystemData); + } + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsCollectionDefined(AppliesToGroups)) + { + writer.WritePropertyName("appliesToGroups"u8); + writer.WriteStartArray(); + foreach (var item in AppliesToGroups) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(ResourceGuid)) + { + writer.WritePropertyName("resourceGuid"u8); + writer.WriteStringValue(ResourceGuid.Value); + } + writer.WriteEndObject(); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + SecurityUserRuleCollectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SecurityUserRuleCollectionData)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeSecurityUserRuleCollectionData(document.RootElement, options); + } + + internal static SecurityUserRuleCollectionData DeserializeSecurityUserRuleCollectionData(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ETag? etag = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + SystemData systemData = default; + string description = default; + IList appliesToGroups = default; + NetworkProvisioningState? provisioningState = default; + Guid? resourceGuid = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("etag"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + etag = new ETag(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("description"u8)) + { + description = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("appliesToGroups"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(SecurityUserGroupItem.DeserializeSecurityUserGroupItem(item, options)); + } + appliesToGroups = array; + continue; + } + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new NetworkProvisioningState(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("resourceGuid"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceGuid = property0.Value.GetGuid(); + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new SecurityUserRuleCollectionData( + id, + name, + type, + systemData, + description, + appliesToGroups ?? new ChangeTrackingList(), + provisioningState, + resourceGuid, + etag, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(SecurityUserRuleCollectionData)} does not support writing '{options.Format}' format."); + } + } + + SecurityUserRuleCollectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeSecurityUserRuleCollectionData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(SecurityUserRuleCollectionData)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleCollectionData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleCollectionData.cs new file mode 100644 index 000000000000..0e9769960cc3 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleCollectionData.cs @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + /// + /// A class representing the SecurityUserRuleCollection data model. + /// Defines the security user rule collection. + /// + public partial class SecurityUserRuleCollectionData : ResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public SecurityUserRuleCollectionData() + { + AppliesToGroups = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description of the security user rule collection. + /// Groups for configuration. + /// The provisioning state of the resource. + /// Unique identifier for this resource. + /// A unique read-only string that changes whenever the resource is updated. + /// Keeps track of any properties unknown to the library. + internal SecurityUserRuleCollectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, IList appliesToGroups, NetworkProvisioningState? provisioningState, Guid? resourceGuid, ETag? etag, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + { + Description = description; + AppliesToGroups = appliesToGroups; + ProvisioningState = provisioningState; + ResourceGuid = resourceGuid; + ETag = etag; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// A description of the security user rule collection. + public string Description { get; set; } + /// Groups for configuration. + public IList AppliesToGroups { get; } + /// The provisioning state of the resource. + public NetworkProvisioningState? ProvisioningState { get; } + /// Unique identifier for this resource. + public Guid? ResourceGuid { get; } + /// A unique read-only string that changes whenever the resource is updated. + public ETag? ETag { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleCollectionResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleCollectionResource.Serialization.cs new file mode 100644 index 000000000000..f0a8a1e1cd3e --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleCollectionResource.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class SecurityUserRuleCollectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + SecurityUserRuleCollectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + SecurityUserRuleCollectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleCollectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleCollectionResource.cs new file mode 100644 index 000000000000..3482b08de0d2 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleCollectionResource.cs @@ -0,0 +1,423 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Network +{ + /// + /// A Class representing a SecurityUserRuleCollection along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetSecurityUserRuleCollectionResource method. + /// Otherwise you can get one from its parent resource using the GetSecurityUserRuleCollection method. + /// + public partial class SecurityUserRuleCollectionResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The networkManagerName. + /// The configurationName. + /// The ruleCollectionName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _securityUserRuleCollectionClientDiagnostics; + private readonly SecurityUserRuleCollectionsRestOperations _securityUserRuleCollectionRestClient; + private readonly SecurityUserRuleCollectionData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections"; + + /// Initializes a new instance of the class for mocking. + protected SecurityUserRuleCollectionResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal SecurityUserRuleCollectionResource(ArmClient client, SecurityUserRuleCollectionData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal SecurityUserRuleCollectionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _securityUserRuleCollectionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string securityUserRuleCollectionApiVersion); + _securityUserRuleCollectionRestClient = new SecurityUserRuleCollectionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, securityUserRuleCollectionApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual SecurityUserRuleCollectionData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of SecurityUserRuleResources in the SecurityUserRuleCollection. + /// An object representing collection of SecurityUserRuleResources and their operations over a SecurityUserRuleResource. + public virtual SecurityUserRuleCollection GetSecurityUserRules() + { + return GetCachedClient(client => new SecurityUserRuleCollection(client, Id)); + } + + /// + /// Gets a security user rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// SecurityUserRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetSecurityUserRuleAsync(string ruleName, CancellationToken cancellationToken = default) + { + return await GetSecurityUserRules().GetAsync(ruleName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a security user rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// SecurityUserRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetSecurityUserRule(string ruleName, CancellationToken cancellationToken = default) + { + return GetSecurityUserRules().Get(ruleName, cancellationToken); + } + + /// + /// Gets a network manager security user configuration rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// SecurityUserRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _securityUserRuleCollectionClientDiagnostics.CreateScope("SecurityUserRuleCollectionResource.Get"); + scope.Start(); + try + { + var response = await _securityUserRuleCollectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SecurityUserRuleCollectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a network manager security user configuration rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// SecurityUserRuleCollections_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _securityUserRuleCollectionClientDiagnostics.CreateScope("SecurityUserRuleCollectionResource.Get"); + scope.Start(); + try + { + var response = _securityUserRuleCollectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SecurityUserRuleCollectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a Security User Rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// SecurityUserRuleCollections_Delete + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default) + { + using var scope = _securityUserRuleCollectionClientDiagnostics.CreateScope("SecurityUserRuleCollectionResource.Delete"); + scope.Start(); + try + { + var response = await _securityUserRuleCollectionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation(_securityUserRuleCollectionClientDiagnostics, Pipeline, _securityUserRuleCollectionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a Security User Rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// SecurityUserRuleCollections_Delete + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default) + { + using var scope = _securityUserRuleCollectionClientDiagnostics.CreateScope("SecurityUserRuleCollectionResource.Delete"); + scope.Start(); + try + { + var response = _securityUserRuleCollectionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force, cancellationToken); + var operation = new NetworkArmOperation(_securityUserRuleCollectionClientDiagnostics, Pipeline, _securityUserRuleCollectionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a security user rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// SecurityUserRuleCollections_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The Security User Rule Collection to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, SecurityUserRuleCollectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _securityUserRuleCollectionClientDiagnostics.CreateScope("SecurityUserRuleCollectionResource.Update"); + scope.Start(); + try + { + var response = await _securityUserRuleCollectionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var uri = _securityUserRuleCollectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SecurityUserRuleCollectionResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a security user rule collection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName} + /// + /// + /// Operation Id + /// SecurityUserRuleCollections_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The Security User Rule Collection to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, SecurityUserRuleCollectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _securityUserRuleCollectionClientDiagnostics.CreateScope("SecurityUserRuleCollectionResource.Update"); + scope.Start(); + try + { + var response = _securityUserRuleCollectionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var uri = _securityUserRuleCollectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SecurityUserRuleCollectionResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleData.Serialization.cs new file mode 100644 index 000000000000..43d0fb8acae7 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleData.Serialization.cs @@ -0,0 +1,377 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + public partial class SecurityUserRuleData : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SecurityUserRuleData)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(ETag)) + { + writer.WritePropertyName("etag"u8); + writer.WriteStringValue(ETag.Value.ToString()); + } + if (options.Format != "W") + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (options.Format != "W") + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (options.Format != "W") + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(ResourceType); + } + if (options.Format != "W" && Optional.IsDefined(SystemData)) + { + writer.WritePropertyName("systemData"u8); + JsonSerializer.Serialize(writer, SystemData); + } + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsDefined(Protocol)) + { + writer.WritePropertyName("protocol"u8); + writer.WriteStringValue(Protocol.Value.ToString()); + } + if (Optional.IsCollectionDefined(Sources)) + { + writer.WritePropertyName("sources"u8); + writer.WriteStartArray(); + foreach (var item in Sources) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Destinations)) + { + writer.WritePropertyName("destinations"u8); + writer.WriteStartArray(); + foreach (var item in Destinations) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(SourcePortRanges)) + { + writer.WritePropertyName("sourcePortRanges"u8); + writer.WriteStartArray(); + foreach (var item in SourcePortRanges) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(DestinationPortRanges)) + { + writer.WritePropertyName("destinationPortRanges"u8); + writer.WriteStartArray(); + foreach (var item in DestinationPortRanges) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Direction)) + { + writer.WritePropertyName("direction"u8); + writer.WriteStringValue(Direction.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(ResourceGuid)) + { + writer.WritePropertyName("resourceGuid"u8); + writer.WriteStringValue(ResourceGuid.Value); + } + writer.WriteEndObject(); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + SecurityUserRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SecurityUserRuleData)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeSecurityUserRuleData(document.RootElement, options); + } + + internal static SecurityUserRuleData DeserializeSecurityUserRuleData(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ETag? etag = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + SystemData systemData = default; + string description = default; + SecurityConfigurationRuleProtocol? protocol = default; + IList sources = default; + IList destinations = default; + IList sourcePortRanges = default; + IList destinationPortRanges = default; + SecurityConfigurationRuleDirection? direction = default; + NetworkProvisioningState? provisioningState = default; + Guid? resourceGuid = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("etag"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + etag = new ETag(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("description"u8)) + { + description = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("protocol"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + protocol = new SecurityConfigurationRuleProtocol(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("sources"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(AddressPrefixItem.DeserializeAddressPrefixItem(item, options)); + } + sources = array; + continue; + } + if (property0.NameEquals("destinations"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(AddressPrefixItem.DeserializeAddressPrefixItem(item, options)); + } + destinations = array; + continue; + } + if (property0.NameEquals("sourcePortRanges"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + sourcePortRanges = array; + continue; + } + if (property0.NameEquals("destinationPortRanges"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + destinationPortRanges = array; + continue; + } + if (property0.NameEquals("direction"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + direction = new SecurityConfigurationRuleDirection(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new NetworkProvisioningState(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("resourceGuid"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceGuid = property0.Value.GetGuid(); + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new SecurityUserRuleData( + id, + name, + type, + systemData, + description, + protocol, + sources ?? new ChangeTrackingList(), + destinations ?? new ChangeTrackingList(), + sourcePortRanges ?? new ChangeTrackingList(), + destinationPortRanges ?? new ChangeTrackingList(), + direction, + provisioningState, + resourceGuid, + etag, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(SecurityUserRuleData)} does not support writing '{options.Format}' format."); + } + } + + SecurityUserRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeSecurityUserRuleData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(SecurityUserRuleData)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleData.cs new file mode 100644 index 000000000000..268d0c4db4d6 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleData.cs @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + /// + /// A class representing the SecurityUserRule data model. + /// Network security user rule. + /// + public partial class SecurityUserRuleData : ResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public SecurityUserRuleData() + { + Sources = new ChangeTrackingList(); + Destinations = new ChangeTrackingList(); + SourcePortRanges = new ChangeTrackingList(); + DestinationPortRanges = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description for this rule. + /// Network protocol this rule applies to. + /// The CIDR or source IP ranges. + /// The destination address prefixes. CIDR or destination IP ranges. + /// The source port ranges. + /// The destination port ranges. + /// Indicates if the traffic matched against the rule in inbound or outbound. + /// The provisioning state of the security configuration user rule resource. + /// Unique identifier for this resource. + /// A unique read-only string that changes whenever the resource is updated. + /// Keeps track of any properties unknown to the library. + internal SecurityUserRuleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, SecurityConfigurationRuleProtocol? protocol, IList sources, IList destinations, IList sourcePortRanges, IList destinationPortRanges, SecurityConfigurationRuleDirection? direction, NetworkProvisioningState? provisioningState, Guid? resourceGuid, ETag? etag, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + { + Description = description; + Protocol = protocol; + Sources = sources; + Destinations = destinations; + SourcePortRanges = sourcePortRanges; + DestinationPortRanges = destinationPortRanges; + Direction = direction; + ProvisioningState = provisioningState; + ResourceGuid = resourceGuid; + ETag = etag; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// A description for this rule. + public string Description { get; set; } + /// Network protocol this rule applies to. + public SecurityConfigurationRuleProtocol? Protocol { get; set; } + /// The CIDR or source IP ranges. + public IList Sources { get; } + /// The destination address prefixes. CIDR or destination IP ranges. + public IList Destinations { get; } + /// The source port ranges. + public IList SourcePortRanges { get; } + /// The destination port ranges. + public IList DestinationPortRanges { get; } + /// Indicates if the traffic matched against the rule in inbound or outbound. + public SecurityConfigurationRuleDirection? Direction { get; set; } + /// The provisioning state of the security configuration user rule resource. + public NetworkProvisioningState? ProvisioningState { get; } + /// Unique identifier for this resource. + public Guid? ResourceGuid { get; } + /// A unique read-only string that changes whenever the resource is updated. + public ETag? ETag { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleResource.Serialization.cs new file mode 100644 index 000000000000..aae07aa76ef2 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleResource.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class SecurityUserRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + SecurityUserRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + SecurityUserRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleResource.cs new file mode 100644 index 000000000000..e84f40d2f582 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityUserRuleResource.cs @@ -0,0 +1,355 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Network +{ + /// + /// A Class representing a SecurityUserRule along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetSecurityUserRuleResource method. + /// Otherwise you can get one from its parent resource using the GetSecurityUserRule method. + /// + public partial class SecurityUserRuleResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The networkManagerName. + /// The configurationName. + /// The ruleCollectionName. + /// The ruleName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _securityUserRuleClientDiagnostics; + private readonly SecurityUserRulesRestOperations _securityUserRuleRestClient; + private readonly SecurityUserRuleData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules"; + + /// Initializes a new instance of the class for mocking. + protected SecurityUserRuleResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal SecurityUserRuleResource(ArmClient client, SecurityUserRuleData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal SecurityUserRuleResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _securityUserRuleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string securityUserRuleApiVersion); + _securityUserRuleRestClient = new SecurityUserRulesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, securityUserRuleApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual SecurityUserRuleData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Gets a security user rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// SecurityUserRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _securityUserRuleClientDiagnostics.CreateScope("SecurityUserRuleResource.Get"); + scope.Start(); + try + { + var response = await _securityUserRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SecurityUserRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a security user rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// SecurityUserRules_Get + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _securityUserRuleClientDiagnostics.CreateScope("SecurityUserRuleResource.Get"); + scope.Start(); + try + { + var response = _securityUserRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SecurityUserRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a security user rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// SecurityUserRules_Delete + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default) + { + using var scope = _securityUserRuleClientDiagnostics.CreateScope("SecurityUserRuleResource.Delete"); + scope.Start(); + try + { + var response = await _securityUserRuleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation(_securityUserRuleClientDiagnostics, Pipeline, _securityUserRuleRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a security user rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// SecurityUserRules_Delete + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default) + { + using var scope = _securityUserRuleClientDiagnostics.CreateScope("SecurityUserRuleResource.Delete"); + scope.Start(); + try + { + var response = _securityUserRuleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force, cancellationToken); + var operation = new NetworkArmOperation(_securityUserRuleClientDiagnostics, Pipeline, _securityUserRuleRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a security user rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// SecurityUserRules_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The security user rule to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, SecurityUserRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _securityUserRuleClientDiagnostics.CreateScope("SecurityUserRuleResource.Update"); + scope.Start(); + try + { + var response = await _securityUserRuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var uri = _securityUserRuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SecurityUserRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a security user rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName} + /// + /// + /// Operation Id + /// SecurityUserRules_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The security user rule to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, SecurityUserRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _securityUserRuleClientDiagnostics.CreateScope("SecurityUserRuleResource.Update"); + scope.Start(); + try + { + var response = _securityUserRuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var uri = _securityUserRuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SecurityUserRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyCollection.cs index 1ec568e7e805..c84fe83a143e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string serviceEndpoin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string serviceEndpointPoli /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string serviceEndpointPolicyName, string ex /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionCollection.cs index c08c8e32a574..b1a9c33fe00c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpd /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string serv /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string serviceEndpointPoli /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string serviceEndpointPolicyDefinitionName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionResource.cs index bbe05b322af5..09b1c4d7a589 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyResource.cs index e4a88aefdfca..ce6e0f3a2ee3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyResource.cs @@ -110,7 +110,7 @@ public virtual ServiceEndpointPolicyDefinitionCollection GetServiceEndpointPolic /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetServiceEndpo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(string expand = null, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -338,7 +338,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -380,7 +380,7 @@ public virtual async Task> UpdateAsync(N /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -422,7 +422,7 @@ public virtual Response Update(NetworkTagsObject /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -484,7 +484,7 @@ public virtual async Task> AddTagAsync(s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -546,7 +546,7 @@ public virtual Response AddTag(string key, string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -603,7 +603,7 @@ public virtual async Task> SetTagsAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -660,7 +660,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -720,7 +720,7 @@ public virtual async Task> RemoveTagAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetCollection.cs index 9dacf314d43c..01a8e970f2a0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsync(Wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string subnetName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(string subnetName, string expand = n /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -284,7 +284,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual Pageable GetAll(CancellationToken cancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -358,7 +358,7 @@ public virtual async Task> ExistsAsync(string subnetName, string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string subnetName, string expand = null, Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIfExistsAsync(str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetResource.cs index 6d2b0d151e00..237e759f31b1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetResource.cs @@ -111,7 +111,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -152,7 +152,7 @@ public virtual async Task> GetAsync(string expand = nul /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -193,7 +193,7 @@ public virtual Response Get(string expand = null, CancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -235,7 +235,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -277,7 +277,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -323,7 +323,7 @@ public virtual async Task> UpdateAsync(WaitUntil wa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -369,7 +369,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, SubnetDa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual async Task PrepareNetworkPoliciesAsync(WaitUntil wa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -461,7 +461,7 @@ public virtual ArmOperation PrepareNetworkPolicies(WaitUntil waitUntil, PrepareN /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -507,7 +507,7 @@ public virtual async Task UnprepareNetworkPoliciesAsync(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -553,7 +553,7 @@ public virtual ArmOperation UnprepareNetworkPolicies(WaitUntil waitUntil, Unprep /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -578,7 +578,7 @@ public virtual AsyncPageable GetResourceNavigationLinksA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -603,7 +603,7 @@ public virtual Pageable GetResourceNavigationLinks(Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -628,7 +628,7 @@ public virtual AsyncPageable GetServiceAssociationLinksA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionCollection.cs index 8f7232ec3baf..7fff05938ac8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation Create /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual AsyncPageable GetAl /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual Pageable GetAll(int /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual async Task> ExistsAsync(string networkManagerConne /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -407,7 +407,7 @@ public virtual Response Exists(string networkManagerConnectionName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -452,7 +452,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionResource.cs index 438f92676c96..124d37759b28 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response Get(Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -268,7 +268,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteCollection.cs index bd66ccb1ea90..1ca810de5ae5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string siteName, Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string siteName, Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string siteName, CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteResource.cs index 0520ebc72b80..659ec48403ca 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubCollection.cs index dd1fd666d1bd..12beb251e612 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string virtualH /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string virtualHubName, Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string virtualHubName, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string virtualHubName, CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubResource.cs index 4be831d170e2..20e5a9d90a6a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubResource.cs @@ -110,7 +110,7 @@ public virtual RouteMapCollection GetRouteMaps() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetRouteMapAsync(string ro /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual HubVirtualNetworkConnectionCollection GetHubVirtualNetworkConnect /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetHubV /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -248,7 +248,7 @@ public virtual VirtualHubRouteTableV2Collection GetVirtualHubRouteTableV2s() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -279,7 +279,7 @@ public virtual async Task> GetVirtualHu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual BgpConnectionCollection GetBgpConnections() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -348,7 +348,7 @@ public virtual async Task> GetBgpConnectionAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -386,7 +386,7 @@ public virtual HubIPConfigurationCollection GetHubIPConfigurations() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -417,7 +417,7 @@ public virtual async Task> GetHubIPConfigur /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -455,7 +455,7 @@ public virtual HubRouteTableCollection GetHubRouteTables() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -486,7 +486,7 @@ public virtual async Task> GetHubRouteTableAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -524,7 +524,7 @@ public virtual RoutingIntentCollection GetRoutingIntents() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -555,7 +555,7 @@ public virtual async Task> GetRoutingIntentAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -586,7 +586,7 @@ public virtual Response GetRoutingIntent(string routingIn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -626,7 +626,7 @@ public virtual async Task> GetAsync(CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -666,7 +666,7 @@ public virtual Response Get(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -708,7 +708,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -750,7 +750,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -792,7 +792,7 @@ public virtual async Task> UpdateAsync(NetworkTagsO /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -834,7 +834,7 @@ public virtual Response Update(NetworkTagsObject virtualHubP /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -877,7 +877,7 @@ public virtual async Task> GetVirtual /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -920,7 +920,7 @@ public virtual ArmOperation GetVirtualHubEffective /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -966,7 +966,7 @@ public virtual async Task> GetVirtualHu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1012,7 +1012,7 @@ public virtual ArmOperation GetVirtualHubInboundRout /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1058,7 +1058,7 @@ public virtual async Task> GetVirtualHu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1104,7 +1104,7 @@ public virtual ArmOperation GetVirtualHubOutboundRou /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1166,7 +1166,7 @@ public virtual async Task> AddTagAsync(string key, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1228,7 +1228,7 @@ public virtual Response AddTag(string key, string value, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1285,7 +1285,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1342,7 +1342,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1402,7 +1402,7 @@ public virtual async Task> RemoveTagAsync(string ke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Collection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Collection.cs index c7d868786b7c..3b931a95a883 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Collection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Collection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOr /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string routeTableNam /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string routeTableName, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string routeTableName, CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Resource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Resource.cs index e2e8451ba55f..0168dd090af4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Resource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Resource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkCollection.cs index fc22161e7d12..d41b38552c97 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string virt /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string virtualNetworkName, s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string virtualNetworkName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string virtualNetworkName, string expand = /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayCollection.cs index 6438e3704cc8..9d6f696cc701 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string virtualNetwork /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string virtualNetworkGatew /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string virtualNetworkGatewayName, Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionCollection.cs index 4a974ad6d9d5..36c1b3067204 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpd /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string virt /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string virtualNetworkGatew /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string virtualNetworkGatewayConnectionName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionResource.cs index b0b036c6f96b..5c5626c10b30 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionResource.cs @@ -108,7 +108,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -148,7 +148,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -188,7 +188,7 @@ public virtual Response Get(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -230,7 +230,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -272,7 +272,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual ArmOperation Update(Wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual async Task> VpnDeviceConfigurationScriptAsync(Vp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual Response VpnDeviceConfigurationScript(VpnDeviceScriptCont /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -494,7 +494,7 @@ public virtual async Task> SetSharedKeyAsync(W /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -540,7 +540,7 @@ public virtual ArmOperation SetSharedKey(WaitUntil waitUnti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -578,7 +578,7 @@ public virtual async Task> GetSharedKeyAsync(Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -616,7 +616,7 @@ public virtual Response GetSharedKey(CancellationToken canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -662,7 +662,7 @@ public virtual async Task> ResetSharedKey /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -708,7 +708,7 @@ public virtual ArmOperation ResetSharedKey(WaitUntil w /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -751,7 +751,7 @@ public virtual async Task> StartPacketCaptureAsync(WaitUnti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -794,7 +794,7 @@ public virtual ArmOperation StartPacketCapture(WaitUntil waitUntil, VpnP /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -840,7 +840,7 @@ public virtual async Task> StopPacketCaptureAsync(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -886,7 +886,7 @@ public virtual ArmOperation StopPacketCapture(WaitUntil waitUntil, VpnPa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -928,7 +928,7 @@ public virtual async Task> GetIkeSasAsync(WaitUntil waitUnt /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -970,7 +970,7 @@ public virtual ArmOperation GetIkeSas(WaitUntil waitUntil, CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1012,7 +1012,7 @@ public virtual async Task ResetConnectionAsync(WaitUntil waitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1054,7 +1054,7 @@ public virtual ArmOperation ResetConnection(WaitUntil waitUntil, CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1116,7 +1116,7 @@ public virtual async Task> Add /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1178,7 +1178,7 @@ public virtual Response AddTag(string k /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1235,7 +1235,7 @@ public virtual async Task> Set /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1292,7 +1292,7 @@ public virtual Response SetTags(IDictio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1352,7 +1352,7 @@ public virtual async Task> Rem /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleCollection.cs index 1d5d85306c0d..7a3ccb4e2150 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> Cr /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string natRule /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string natRuleName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string natRuleName, CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleResource.cs index 057ddf220324..188cc95f3541 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> Up /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayResource.cs index 732c71a20ec8..a205d8df9743 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayResource.cs @@ -111,7 +111,7 @@ public virtual VirtualNetworkGatewayNatRuleCollection GetVirtualNetworkGatewayNa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetVir /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -173,7 +173,7 @@ public virtual Response GetVirtualNetworkG /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -295,7 +295,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -337,7 +337,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -383,7 +383,7 @@ public virtual async Task> UpdateAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -429,7 +429,7 @@ public virtual ArmOperation Update(WaitUntil wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -459,7 +459,7 @@ public virtual AsyncPageable GetConne /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -489,7 +489,7 @@ public virtual Pageable GetConnection /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual async Task> ResetAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -575,7 +575,7 @@ public virtual ArmOperation Reset(WaitUntil waitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -617,7 +617,7 @@ public virtual async Task ResetVpnClientSharedKeyAsync(WaitUntil w /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -659,7 +659,7 @@ public virtual ArmOperation ResetVpnClientSharedKey(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -705,7 +705,7 @@ public virtual async Task> GenerateVpnClientPackageAsync(Wa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -751,7 +751,7 @@ public virtual ArmOperation GenerateVpnClientPackage(WaitUntil waitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -797,7 +797,7 @@ public virtual async Task> GenerateVpnProfileAsync(WaitUnti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -843,7 +843,7 @@ public virtual ArmOperation GenerateVpnProfile(WaitUntil waitUntil, VpnC /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -885,7 +885,7 @@ public virtual async Task> GetVpnProfilePackageUrlAsync(Wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -927,7 +927,7 @@ public virtual ArmOperation GetVpnProfilePackageUrl(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -970,7 +970,7 @@ public virtual async Task> GetBgpPeerStatu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1013,7 +1013,7 @@ public virtual ArmOperation GetBgpPeerStatus(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1051,7 +1051,7 @@ public virtual async Task> SupportedVpnDevicesAsync(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1089,7 +1089,7 @@ public virtual Response SupportedVpnDevices(CancellationToken cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1131,7 +1131,7 @@ public virtual async Task> GetLearnedRoutes /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1173,7 +1173,7 @@ public virtual ArmOperation GetLearnedRoutes(WaitUntil w /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1219,7 +1219,7 @@ public virtual async Task> GetAdvertisedRou /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1265,7 +1265,7 @@ public virtual ArmOperation GetAdvertisedRoutes(WaitUnti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1311,7 +1311,7 @@ public virtual async Task> SetVpnclientIP /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1357,7 +1357,7 @@ public virtual ArmOperation SetVpnclientIPsecParameter /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1399,7 +1399,7 @@ public virtual async Task> GetVpnclientIP /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1441,7 +1441,7 @@ public virtual ArmOperation GetVpnclientIPsecParameter /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1484,7 +1484,7 @@ public virtual async Task> StartPacketCaptureAsync(WaitUnti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1527,7 +1527,7 @@ public virtual ArmOperation StartPacketCapture(WaitUntil waitUntil, VpnP /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1573,7 +1573,7 @@ public virtual async Task> StopPacketCaptureAsync(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1619,7 +1619,7 @@ public virtual ArmOperation StopPacketCapture(WaitUntil waitUntil, VpnPa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1661,7 +1661,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1703,7 +1703,7 @@ public virtual ArmOperation GetVpncli /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1749,7 +1749,7 @@ public virtual async Task DisconnectVirtualNetworkGatewayVpnConnec /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1795,7 +1795,7 @@ public virtual ArmOperation DisconnectVirtualNetworkGatewayVpnConnections(WaitUn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1857,7 +1857,7 @@ public virtual async Task> AddTagAsync(s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1919,7 +1919,7 @@ public virtual Response AddTag(string key, string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1976,7 +1976,7 @@ public virtual async Task> SetTagsAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2033,7 +2033,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -2093,7 +2093,7 @@ public virtual async Task> RemoveTagAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringCollection.cs index 624dc9fa632e..7201840f976a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -165,7 +165,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string virtualNetwork /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -358,7 +358,7 @@ public virtual async Task> ExistsAsync(string virtualNetworkPeeri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -401,7 +401,7 @@ public virtual Response Exists(string virtualNetworkPeeringName, Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -446,7 +446,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringResource.cs index c3860250288f..b40a6da35351 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> UpdateAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkResource.cs index d7e5b59aa4c2..e5d3014250bb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkResource.cs @@ -116,7 +116,7 @@ public virtual SubnetCollection GetSubnets() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -148,7 +148,7 @@ public virtual async Task> GetSubnetAsync(string subnet /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual VirtualNetworkPeeringCollection GetVirtualNetworkPeerings() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -218,7 +218,7 @@ public virtual async Task> GetVirtualNet /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -249,7 +249,7 @@ public virtual Response GetVirtualNetworkPeering( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -290,7 +290,7 @@ public virtual async Task> GetAsync(string expa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -331,7 +331,7 @@ public virtual Response Get(string expand = null, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -373,7 +373,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -457,7 +457,7 @@ public virtual async Task> UpdateAsync(NetworkT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -499,7 +499,7 @@ public virtual Response Update(NetworkTagsObject network /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -533,7 +533,7 @@ public virtual AsyncPageable GetNetworkManag /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -567,7 +567,7 @@ public virtual Pageable GetNetworkManagerEff /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -601,7 +601,7 @@ public virtual AsyncPageable GetNetworkManagerEf /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -635,7 +635,7 @@ public virtual Pageable GetNetworkManagerEffecti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -677,7 +677,7 @@ public virtual async Task> CheckIPAddressA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -719,7 +719,7 @@ public virtual Response CheckIPAddressAvailability( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -749,7 +749,7 @@ public virtual AsyncPageable GetUsageAsync(CancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -779,7 +779,7 @@ public virtual Pageable GetUsage(CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -841,7 +841,7 @@ public virtual async Task> AddTagAsync(string k /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -903,7 +903,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -960,7 +960,7 @@ public virtual async Task> SetTagsAsync(IDictio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1017,7 +1017,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1077,7 +1077,7 @@ public virtual async Task> RemoveTagAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapCollection.cs index 4102ae461590..555181c32a90 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string t /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string tapName, Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string tapName, Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string tapName, CancellationToken cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapResource.cs index f8b6a116ae90..e67a9630280f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> UpdateAsync(Netwo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual Response Update(NetworkTagsObject tapP /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -413,7 +413,7 @@ public virtual async Task> AddTagAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -475,7 +475,7 @@ public virtual Response AddTag(string key, string val /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual async Task> SetTagsAsync(IDic /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -589,7 +589,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -649,7 +649,7 @@ public virtual async Task> RemoveTagAsync(st /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterCollection.cs index e37cb3be4733..27af96a55b8d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string virtu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string virtualRouterName, str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string virtualRouterName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string virtualRouterName, string expand = n /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringCollection.cs index 649ea2e42eee..524d985ea3d9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string peeringName, Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string peeringName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string peeringName, CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringResource.cs index 0f4f1ed0dba6..80e5b2103f96 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterResource.cs index ddf1986e1065..5c92c61973a8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterResource.cs @@ -109,7 +109,7 @@ public virtual VirtualRouterPeeringCollection GetVirtualRouterPeerings() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetVirtualRout /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response GetVirtualRouterPeering(st /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string expan /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string expand = null, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -295,7 +295,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -337,7 +337,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -383,7 +383,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -429,7 +429,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, V /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -486,7 +486,7 @@ public virtual async Task> AddTagAsync(string ke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -543,7 +543,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -599,7 +599,7 @@ public virtual async Task> SetTagsAsync(IDiction /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -655,7 +655,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -710,7 +710,7 @@ public virtual async Task> RemoveTagAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanCollection.cs index ce2ce59608e5..81fa0b54dfb7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string virtualW /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string virtualWanName, Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string virtualWanName, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string virtualWanName, CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanResource.cs index 6b85e2c95e43..a4666ecf360e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanResource.cs @@ -116,7 +116,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -156,7 +156,7 @@ public virtual async Task> GetAsync(CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -196,7 +196,7 @@ public virtual Response Get(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -238,7 +238,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -280,7 +280,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -322,7 +322,7 @@ public virtual async Task> UpdateAsync(NetworkTagsO /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual Response Update(NetworkTagsObject wanParamete /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual async Task> SupportedSecuri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -440,7 +440,7 @@ public virtual Response SupportedSecurityProviders( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -486,7 +486,7 @@ public virtual async Task> GenerateVirtualWanVp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual ArmOperation GenerateVirtualWanVpnServerConfi /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -574,7 +574,7 @@ public virtual async Task DownloadVpnSitesConfigurationAsync(WaitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -616,7 +616,7 @@ public virtual ArmOperation DownloadVpnSitesConfiguration(WaitUntil waitUntil, G /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -654,7 +654,7 @@ public virtual async Task> GetVpnS /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// @@ -692,7 +692,7 @@ public virtual ArmOperation GetVpnServerConfigu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -754,7 +754,7 @@ public virtual async Task> AddTagAsync(string key, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -816,7 +816,7 @@ public virtual Response AddTag(string key, string value, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -873,7 +873,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -930,7 +930,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -990,7 +990,7 @@ public virtual async Task> RemoveTagAsync(string ke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionCollection.cs index 1799de18dd80..b1b95d0f64fc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string conne /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string connectionName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionResource.cs index 94c9c2d680f7..c9cea140027e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionResource.cs @@ -109,7 +109,7 @@ public virtual VpnSiteLinkConnectionCollection GetVpnSiteLinkConnections() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetVpnSiteLin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response GetVpnSiteLinkConnection( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -251,7 +251,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -293,7 +293,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -335,7 +335,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -381,7 +381,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -427,7 +427,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, V /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -470,7 +470,7 @@ public virtual async Task> StartPacketCaptureAsync(WaitUnti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -513,7 +513,7 @@ public virtual ArmOperation StartPacketCapture(WaitUntil waitUntil, VpnC /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -556,7 +556,7 @@ public virtual async Task> StopPacketCaptureAsync(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayCollection.cs index 702d67cb0ee7..03078636a5f5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string gatewayN /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string gatewayName, Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string gatewayName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string gatewayName, CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleCollection.cs index 063ce1efb095..fb0106e69560 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string n /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string natRuleName, Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string natRuleName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string natRuleName, CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleResource.cs index fbe3db45773d..be841a8c569a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(W /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayResource.cs index 0ec1353be101..c9167368a40c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayResource.cs @@ -110,7 +110,7 @@ public virtual VpnConnectionCollection GetVpnConnections() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetVpnConnectionAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual VpnGatewayNatRuleCollection GetVpnGatewayNatRules() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetVpnGatewayNatR /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -241,7 +241,7 @@ public virtual Response GetVpnGatewayNatRule(string n /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual async Task> GetAsync(CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual Response Get(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -405,7 +405,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> UpdateAsync(WaitUnti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -497,7 +497,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Netw /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -540,7 +540,7 @@ public virtual async Task> ResetAsync(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -583,7 +583,7 @@ public virtual ArmOperation Reset(WaitUntil waitUntil, strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -626,7 +626,7 @@ public virtual async Task> StartPacketCaptureAsync(WaitUnti /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -669,7 +669,7 @@ public virtual ArmOperation StartPacketCapture(WaitUntil waitUntil, VpnG /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -712,7 +712,7 @@ public virtual async Task> StopPacketCaptureAsync(WaitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -755,7 +755,7 @@ public virtual ArmOperation StopPacketCapture(WaitUntil waitUntil, VpnGa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -817,7 +817,7 @@ public virtual async Task> AddTagAsync(string key, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -879,7 +879,7 @@ public virtual Response AddTag(string key, string value, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -936,7 +936,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -993,7 +993,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -1053,7 +1053,7 @@ public virtual async Task> RemoveTagAsync(string ke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationCollection.cs index fbc5d8d62225..48ac1c2172ae 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOr /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string vpnServerConf /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string vpnServerConfigurat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string vpnServerConfigurationName, Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationPolicyGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationPolicyGroupCollection.cs index de30d7222605..353fc59ef306 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationPolicyGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationPolicyGroupCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string co /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string configurationPolicy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string configurationPolicyGroupName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationPolicyGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationPolicyGroupResource.cs index 7d0b70268427..9d5e126bda02 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationPolicyGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationPolicyGroupResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationResource.cs index ce1dee836c8e..7106741862a7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationResource.cs @@ -110,7 +110,7 @@ public virtual VpnServerConfigurationPolicyGroupCollection GetVpnServerConfigura /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetVpnServerC /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -378,7 +378,7 @@ public virtual async Task> UpdateAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -420,7 +420,7 @@ public virtual Response Update(NetworkTagsObject /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -482,7 +482,7 @@ public virtual async Task> AddTagAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -544,7 +544,7 @@ public virtual Response AddTag(string key, strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -601,7 +601,7 @@ public virtual async Task> SetTagsAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -658,7 +658,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -718,7 +718,7 @@ public virtual async Task> RemoveTagAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteCollection.cs index 6120e1713300..2ae85dce8b01 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync(Wai /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string vpnSiteName /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string vpnSiteName, CancellationTok /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string vpnSiteName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string vpnSiteName, CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsAsync(st /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkCollection.cs index d2348ddb21ce..48557d236f58 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string vpnSite /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string vpnSiteLinkName, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string vpnSiteLinkName, Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string vpnSiteLinkName, CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExistsAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnectionCollection.cs index d76ae461eda7..a4435868c710 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnectionCollection.cs @@ -69,7 +69,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -159,7 +159,7 @@ public virtual Response Get(string linkConnection /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -189,7 +189,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -219,7 +219,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -262,7 +262,7 @@ public virtual async Task> ExistsAsync(string linkConnectionName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -305,7 +305,7 @@ public virtual Response Exists(string linkConnectionName, CancellationToke /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -350,7 +350,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnectionResource.cs index 53faec8d65c5..2704aa426b48 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnectionResource.cs @@ -107,7 +107,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -147,7 +147,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -229,7 +229,7 @@ public virtual async Task ResetConnectionVpnLinkConnectionAsync(Wa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation ResetConnectionVpnLinkConnection(WaitUntil waitUntil /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> GetIkeSasVpnLinkConnectionAsync( /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkResource.cs index 1e5715f37a56..726081dbe706 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(CancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteResource.cs index 3b312701d27b..58ad51df0a82 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteResource.cs @@ -110,7 +110,7 @@ public virtual VpnSiteLinkCollection GetVpnSiteLinks() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetVpnSiteLinkAsync(str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetVpnSiteLink(string vpnSiteLinkNa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(CancellationToken cancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -378,7 +378,7 @@ public virtual async Task> UpdateAsync(NetworkTagsObje /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -420,7 +420,7 @@ public virtual Response Update(NetworkTagsObject vpnSiteParamet /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -482,7 +482,7 @@ public virtual async Task> AddTagAsync(string key, str /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -544,7 +544,7 @@ public virtual Response AddTag(string key, string value, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -601,7 +601,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -658,7 +658,7 @@ public virtual Response SetTags(IDictionary tag /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -718,7 +718,7 @@ public virtual async Task> RemoveTagAsync(string key, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyCollection.cs index 55e904bb3911..dcb0aef9605f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> Cr /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string policyN /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string policyName, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string policyName, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyResource.cs index e2f163d44fba..af8b41fa4f1e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationTo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual async Task> Up /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual ArmOperation Update(WaitUnt /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -419,7 +419,7 @@ public virtual async Task> AddTag /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -476,7 +476,7 @@ public virtual Response AddTag(string key, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual async Task> SetTag /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -588,7 +588,7 @@ public virtual Response SetTags(IDictionar /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource @@ -643,7 +643,7 @@ public virtual async Task> Remove /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-03-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/autorest.md b/sdk/network/Azure.ResourceManager.Network/src/autorest.md index bc0a4e940a71..c436bb0c6bff 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/autorest.md +++ b/sdk/network/Azure.ResourceManager.Network/src/autorest.md @@ -7,8 +7,8 @@ Run `dotnet build /t:GenerateCode` to generate code. azure-arm: true library-name: Network namespace: Azure.ResourceManager.Network -require: https://github.com/Azure/azure-rest-api-specs/blob/d1f4d6fcf1bbb2e71a32bb2079de12f17fedf56a/specification/network/resource-manager/readme.md -# tag: package-2023-11 +require: D:/sdk/n1/azure-rest-api-specs-pr/specification/network/resource-manager/readme.md +tag: package-2024-03 output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: @@ -27,6 +27,7 @@ sample-gen: skip-csproj: true modelerfour: flatten-payloads: false + lenient-model-deduplication: true use-model-reader-writer: true model-namespace: true public-clients: false diff --git a/sdk/network/Azure.ResourceManager.Network/tests/Tests/NetworkManagerHelperExtensions.Routing.cs b/sdk/network/Azure.ResourceManager.Network/tests/Tests/NetworkManagerHelperExtensions.Routing.cs new file mode 100644 index 000000000000..2b79777b9f4f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/tests/Tests/NetworkManagerHelperExtensions.Routing.cs @@ -0,0 +1,320 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.Network.Models; +using NUnit.Framework; +using Azure.Core; +using System; +using Azure.ResourceManager.Network.Tests.Tests; +using Azure.Core.TestFramework; + +namespace Azure.ResourceManager.Network.Tests.Helpers +{ + public static partial class NetworkManagerHelperExtensions + { + public static async Task CreateRoutingConfigurationAsync( + this NetworkManagerResource networkManager, + string routingConfigurationName, + RoutingConfigurationValidationData validationData) + { + NetworkManagerRoutingConfigurationData routingConfigurationData = new() + { + Description = "My Test Routing Configuration", + }; + + NetworkManagerRoutingConfigurationCollection routingConfigurationResources = networkManager.GetNetworkManagerRoutingConfigurations(); + ArmOperation routingConfigurationResource = await routingConfigurationResources.CreateOrUpdateAsync(WaitUntil.Completed, routingConfigurationName, routingConfigurationData).ConfigureAwait(false); + + validationData.Description = routingConfigurationData.Description; + validationData.Name = routingConfigurationName; + + return routingConfigurationResource.Value; + } + + public static async Task CreateRoutingRuleCollectionAsync( + this NetworkManagerRoutingConfigurationResource routingConfiguration, + string routingCollectionName, + List networkGroupIds, + DisableBgpRoutePropagation disableBgpRoutePropagation, + List routingCollectionValidationData) + { + RoutingRuleCollectionData routingRuleCollectionData = new() + { + Description = "SDK Testing", + DisableBgpRoutePropagation = disableBgpRoutePropagation, + }; + + foreach (ResourceIdentifier networkGroupId in networkGroupIds) + { + routingRuleCollectionData.AppliesTo.Add(new NetworkManagerRoutingGroupItem() { NetworkGroupId = networkGroupId }); + } + + RoutingRuleCollectionCollection routingRuleCollectionResources = routingConfiguration.GetRoutingRuleCollections(); + ArmOperation routingRuleCollectionResource = await routingRuleCollectionResources.CreateOrUpdateAsync(WaitUntil.Completed, routingCollectionName, routingRuleCollectionData).ConfigureAwait(false); + + routingCollectionValidationData.Add(new RoutingRuleCollectionValidationData() + { + Description = routingRuleCollectionData.Description, + Name = routingCollectionName, + DisableBgpRoutePropagation = disableBgpRoutePropagation, + AppliesTo = routingRuleCollectionData.AppliesTo.ToList(), + }); + + return routingRuleCollectionResource.Value; + } + + public static async Task> CreateRoutingRules( + this RoutingRuleCollectionResource routingCollection, + int numRules, + List routingRulesValidationData) + { + var destinationAddresses = GenerateUniqueIPs(numRules).ToList(); + var nextHopAddresses = GenerateUniqueIPs(numRules).ToList(); + + var routingRules = new List(); + for (int i = 0; i < numRules; i++) + { + var routingRule = await routingCollection.CreateRoutingRuleAsync($"rule{i}", $"{destinationAddresses[i]}/32", RoutingRuleDestinationType.AddressPrefix, $"{nextHopAddresses[i]}", RoutingRuleNextHopType.VirtualAppliance, routingRulesValidationData).ConfigureAwait(false); + routingRules.Add(routingRule); + } + + return routingRules; + } + + public static async Task CreateRoutingRuleAsync( + this RoutingRuleCollectionResource routingRuleCollection, + string routingRuleName, + string destinationAddress, + RoutingRuleDestinationType destinationType, + string nextHopAddress, + RoutingRuleNextHopType nextHopType, + List routingRulesValidationData) + { + RoutingRuleData routingRuleData = new() + { + Destination = new RoutingRuleRouteDestination() + { + DestinationAddress = destinationAddress, + DestinationType = destinationType, + }, + NextHop = new RoutingRuleNextHop() + { + NextHopAddress = nextHopAddress, + NextHopType = nextHopType, + }, + }; + + RoutingRuleCollection ruleCollection = routingRuleCollection.GetRoutingRules(); + ArmOperation routingRuleResource = await ruleCollection.CreateOrUpdateAsync(WaitUntil.Completed, routingRuleName, routingRuleData).ConfigureAwait(false); + + routingRulesValidationData.Add(new RoutingRuleValidationData() + { + Name = routingRuleName, + DestinationAddress = destinationAddress, + DestinationType = destinationType, + NextHopAddress = nextHopAddress, + NextHopType = nextHopType, + }); + + return routingRuleResource.Value; + } + + public static async Task DeleteRoutingConfigurationAsync( + this NetworkManagerResource networkManager, + NetworkManagerRoutingConfigurationResource routingConfiguration) + { + RoutingRuleCollectionCollection collections = routingConfiguration.GetRoutingRuleCollections(); + + // Delete routing rules in parallel + List deleteRuleTasks = new(); + await foreach (RoutingRuleCollectionResource collection in collections.GetAllAsync()) + { + await foreach (RoutingRuleResource rule in collection.GetRoutingRules().GetAllAsync()) + { + deleteRuleTasks.Add(DeleteAndVerifyResourceAsync(collection.GetRoutingRules(), rule.Data.Name)); + } + } + + await Task.WhenAll(deleteRuleTasks).ConfigureAwait(false); + + // Delete routing rule collections in parallel + List deleteCollectionTasks = new(); + await foreach (RoutingRuleCollectionResource collection in collections.GetAllAsync()) + { + deleteCollectionTasks.Add(DeleteAndVerifyResourceAsync(collections, collection.Data.Name)); + } + + await Task.WhenAll(deleteCollectionTasks).ConfigureAwait(false); + + // Delete the routing configuration + await DeleteAndVerifyResourceAsync(networkManager.GetNetworkManagerRoutingConfigurations(), routingConfiguration.Data.Name).ConfigureAwait(false); + } + + public static async Task DeleteRoutingRuleAsync( + this RoutingRuleCollectionResource routingRuleCollection, + RoutingRuleResource routingRule) + { + await DeleteAndVerifyResourceAsync(routingRuleCollection.GetRoutingRules(), routingRule.Data.Name).ConfigureAwait(false); + } + + public static void ValidateUserDefinedRoutes( + IList routes, + Dictionary expectedValues) + { + // Validate the count of routes + Assert.AreEqual(routes.Count, expectedValues.Count); + + foreach (RouteData route in routes) + { + Assert.AreEqual(NetworkProvisioningState.Succeeded, route.ProvisioningState); + + if (!expectedValues.TryGetValue(route.AddressPrefix, out var expected)) + { + Assert.Fail($"Unexpected routing rule destination address: {route.AddressPrefix}"); + } + + Assert.AreEqual(expected.NextHopAddress, route.NextHopIPAddress); + Assert.IsTrue(string.Equals(expected.NextHopType.ToString(), route.NextHopType.ToString(), StringComparison.InvariantCultureIgnoreCase)); + } + } + + public static async Task CreateRouteTable( + this ResourceGroupResource resourceGroup, + string routeTableName, + string location) + { + var routeTable = new RouteTableData() { Location = location, }; + + // Put RouteTable + RouteTableCollection routeTableCollection = resourceGroup.GetRouteTables(); + ArmOperation putRouteTableResponseOperation = await routeTableCollection.CreateOrUpdateAsync(WaitUntil.Completed, routeTableName, routeTable).ConfigureAwait(false); + Response putRouteTableResponse = await putRouteTableResponseOperation.WaitForCompletionAsync().ConfigureAwait(false); + Assert.AreEqual("Succeeded", putRouteTableResponse.Value.Data.ProvisioningState.ToString()); + + // Get RouteTable + Response getRouteTableResponse = await routeTableCollection.GetAsync(routeTableName).ConfigureAwait(false); + return getRouteTableResponse.Value; + } + + public static async Task ValidateAvnmManagedResourceGroup(SubscriptionResource subscription) + { + var subGuid = subscription.Data.Id.ToString().Split('/').Last(); + var managedRgName = $"AVNM_Managed_resourceGroup_{subGuid}"; + var managedRg = await subscription.GetResourceGroups().GetIfExistsAsync(managedRgName).ConfigureAwait(false); + if (managedRg.HasValue) + { + var managedResources = managedRg.Value; + var resources = await managedResources.GetGenericResourcesAsync().ToEnumerableAsync().ConfigureAwait(false); + + Assert.IsTrue(resources.Count == 0, $"The managed resource group '{managedRgName}' is not empty. Cannot delete it."); + + await managedRg.Value.DeleteAsync(WaitUntil.Completed).ConfigureAwait(false); + } + } + + public static async Task AssociateRouteTableToSubnet( + this ResourceGroupResource resourceGroup, + VirtualNetworkResource vnet, + SubnetResource subnet, + RouteTableData routeTable) + { + // Associate RouteTable to Subnet + SubnetData subnetData = subnet.Data; + subnetData.RouteTable = routeTable; + + var vnetData = vnet.Data; + ArmOperation vnetLro = await resourceGroup.GetVirtualNetworks().CreateOrUpdateAsync(WaitUntil.Completed, vnetData.Name, vnetData).ConfigureAwait(false); + ArmOperation subnetLro = await vnetLro.Value.GetSubnets().CreateOrUpdateAsync(WaitUntil.Completed, subnetData.Name, subnetData).ConfigureAwait(false); + } + + public static async Task ValidateRouteTablesAsync( + this ResourceGroupResource resourceGroup, + SubscriptionResource subscription, + List vnets, + RoutingConfigurationValidationData expectedValues, + bool isEmpty = false) + { + string routeTableRgName = $"AVNM_Managed_ResourceGroup_{subscription.Data.SubscriptionId}"; + Response routeTableRg = await subscription.GetResourceGroups().GetAsync(routeTableRgName).ConfigureAwait(false); + Assert.IsNotNull(routeTableRg); + + List validationTasks = new(); + foreach (VirtualNetworkResource vnet in vnets) + { + validationTasks.Add(ValidateRouteTablesForSubnetsAsync(resourceGroup, routeTableRg.Value, vnet, expectedValues, isEmpty)); + } + + await Task.WhenAll(validationTasks).ConfigureAwait(false); + } + + private static async Task ValidateRouteTablesForSubnetsAsync( + ResourceGroupResource resourceGroup, + ResourceGroupResource routeTableRg, + VirtualNetworkResource vnet, + RoutingConfigurationValidationData expectedValues, + bool isEmpty) + { + Response virtualNetworkResource = await resourceGroup.GetVirtualNetworks().GetAsync(vnet.Data.Name).ConfigureAwait(false); + Assert.IsNotNull(virtualNetworkResource); + + var routingRules = expectedValues.RoutingRules.ToDictionary( + rule => rule.DestinationAddress, + rule => (rule.NextHopAddress, rule.NextHopType)); + + // DisableBgpRoutePropagation is set to false if any of the collection is set to false + bool disableBgpRoutePropagation = expectedValues.RoutingRuleCollections.Any(collection => collection.DisableBgpRoutePropagation == DisableBgpRoutePropagation.False) == true ? false : true; + + var routeTables = new HashSet(); + IList subnets = virtualNetworkResource.Value.Data.Subnets; + foreach (SubnetData subnet in subnets) + { + if (!isEmpty) + { + Assert.IsNotNull(subnet.RouteTable); + string routeTableName = subnet.RouteTable.Id.ToString().Split('/').Last(); + Response routeTable = await routeTableRg.GetRouteTables().GetAsync(routeTableName).ConfigureAwait(false); + + Assert.IsNotNull(routeTable); + Assert.AreEqual(routeTable.Value.Data.DisableBgpRoutePropagation.ToString(), disableBgpRoutePropagation.ToString()); + + ValidateUserDefinedRoutes(routeTable.Value.Data.Routes, routingRules); + } + else + { + Assert.IsNull(subnet.RouteTable); + } + } + } + + private static string GenerateIP() + { + var random = new Random(); + return $"{random.Next(0, 256)}.{random.Next(0, 256)}.{random.Next(0, 256)}.{random.Next(0, 256)}"; + } + + private static HashSet GenerateUniqueIPs(int count) + { + var ips = new HashSet(); + while (ips.Count < count) + { + string ip = GenerateIP(); + if (!IsMulticastAddress(ip)) + { + ips.Add(ip); + } + } + + return ips; + } + + private static bool IsMulticastAddress(string ipAddress) + { + string[] parts = ipAddress.Split('.'); + int firstOctet = int.Parse(parts[0]); + return (firstOctet >= 224 && firstOctet <= 239) || firstOctet == 127 || firstOctet == 0; + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/tests/Tests/NetworkManagerHelperExtensions.SecurityUser.cs b/sdk/network/Azure.ResourceManager.Network/tests/Tests/NetworkManagerHelperExtensions.SecurityUser.cs new file mode 100644 index 000000000000..fb98bd09d27e --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/tests/Tests/NetworkManagerHelperExtensions.SecurityUser.cs @@ -0,0 +1,221 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.Resources.Models; +using Azure.ResourceManager.Network.Models; +using Azure.ResourceManager.Network.Tests.Helpers; +using NUnit.Framework; +using Azure.Core; +using System; +using Azure.Identity; +using Microsoft.Extensions.Logging; +using System.Reflection; +using System.Threading; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Network.Tests.Helpers +{ + public static partial class NetworkManagerHelperExtensions + { + public static async Task<(SecurityUserConfigurationResource Configuration, List Collections, List Rules)> CreateSecurityUserConfigurationAsync( + this NetworkManagerResource networkManager, + List networkGroupIds) + { + string securityUserConfigurationName = "securityUserConfiguration-1"; + + SecurityUserConfigurationData securityUserConfigurationData = new() + { + Description = "My Test SecurityUser Configuration", + }; + + SecurityUserConfigurationCollection securityUserConfigurationResources = networkManager.GetSecurityUserConfigurations(); + ArmOperation securityUserConfigurationResource = await securityUserConfigurationResources.CreateOrUpdateAsync(WaitUntil.Completed, securityUserConfigurationName, securityUserConfigurationData); + + // Create a securityUser rule collection + List collections = new(); + SecurityUserRuleCollectionResource securityUserCollection = await securityUserConfigurationResource.Value.CreateSecurityUserRuleCollectionAsync(networkGroupIds); + collections.Add(securityUserCollection); + + // Create multiple securityUser rules in parallel + List> securityUserRuleTasks = new() + { + securityUserCollection.CreateSecurityUserRuleAsync("rule1", SecurityConfigurationRuleProtocol.Tcp, "10.1.1.1/32", new List { "22" }, AddressPrefixType.IPPrefix, "20.1.1.1/32", new List { "22" }, AddressPrefixType.IPPrefix, SecurityConfigurationRuleDirection.Inbound), + }; + + List securityUserRules = (await Task.WhenAll(securityUserRuleTasks)).ToList(); + + return (securityUserConfigurationResource.Value, collections, securityUserRules); + } + + public static async Task CreateSecurityUserRuleCollectionAsync( + this SecurityUserConfigurationResource securityUserConfiguration, + List networkGroupIds) + { + string securityUserCollectionName = "securityUserCollection-1"; + + SecurityUserRuleCollectionData securityUserRuleCollectionData = new() + { + Description = "My Test SecurityUser Rule Collection", + AppliesToGroups = + { + new SecurityUserGroupItem(networkGroupIds.First()) + }, + }; + + foreach (ResourceIdentifier networkGroupId in networkGroupIds) + { + securityUserRuleCollectionData.AppliesToGroups.Add(new SecurityUserGroupItem() { NetworkGroupId = networkGroupId }); + } + + SecurityUserRuleCollectionCollection securityUserRuleCollectionResources = securityUserConfiguration.GetSecurityUserRuleCollections(); + ArmOperation securityUserRuleCollectionResource = await securityUserRuleCollectionResources.CreateOrUpdateAsync(WaitUntil.Completed, securityUserCollectionName, securityUserRuleCollectionData); + return securityUserRuleCollectionResource.Value; + } + + public static async Task CreateSecurityUserRuleAsync( + this SecurityUserRuleCollectionResource securityUserRuleCollection, + string securityUserRuleName, + SecurityConfigurationRuleProtocol protocol, + string sourceAddress, + List sourcePorts, + AddressPrefixType sourceAddressPrefixType, + string destinationAddress, + List destinationPorts, + AddressPrefixType destinationAddressPrefixType, + SecurityConfigurationRuleDirection direction) + { + SecurityUserRuleData data = new SecurityUserRuleData + { + Description = "Sample User Rule", + Protocol = protocol, + Sources = + { + new AddressPrefixItem() + { + AddressPrefix = sourceAddress, + AddressPrefixType = sourceAddressPrefixType, + } + }, + Destinations = + { + new AddressPrefixItem() + { + AddressPrefix = destinationAddress, + AddressPrefixType = destinationAddressPrefixType, + } + }, + Direction = direction, + }; + + foreach (var port in sourcePorts) + { + data.SourcePortRanges.Add(port); + } + + foreach (var port in destinationPorts) + { + data.DestinationPortRanges.Add(port); + } + + SecurityUserRuleCollection ruleCollection = securityUserRuleCollection.GetSecurityUserRules(); + ArmOperation securityUserRuleResource = await ruleCollection.CreateOrUpdateAsync(WaitUntil.Completed, securityUserRuleName, data); + return securityUserRuleResource.Value; + } + + public static async Task DeleteSecurityUserConfigurationAsync( + this NetworkManagerResource networkManager, + SecurityUserConfigurationResource securityUserConfiguration) + { + SecurityUserRuleCollectionCollection collections = securityUserConfiguration.GetSecurityUserRuleCollections(); + + // Delete securityUser rules in parallel + List deleteRuleTasks = new(); + await foreach (SecurityUserRuleCollectionResource collection in collections.GetAllAsync()) + { + await foreach (SecurityUserRuleResource rule in collection.GetSecurityUserRules().GetAllAsync()) + { + deleteRuleTasks.Add(DeleteAndVerifyResourceAsync(collection.GetSecurityUserRules(), rule.Data.Name)); + } + } + await Task.WhenAll(deleteRuleTasks); + + // Delete securityUser rule collections in parallel + List deleteCollectionTasks = new(); + await foreach (SecurityUserRuleCollectionResource collection in collections.GetAllAsync()) + { + deleteCollectionTasks.Add(DeleteAndVerifyResourceAsync(collections, collection.Data.Name)); + } + await Task.WhenAll(deleteCollectionTasks); + + // Delete the securityUser configuration + await DeleteAndVerifyResourceAsync(networkManager.GetSecurityUserConfigurations(), securityUserConfiguration.Data.Name); + } + + public static void ValidateSecurityUserRule(SecurityUserRuleResource rule1, SecurityUserRuleResource rule2) + { + Assert.AreEqual(rule1.Id, rule2.Id); + Assert.AreEqual(rule1.Data.Name, rule2.Data.Name); + } + + public static async Task ValidateNsgAsync( + this ResourceGroupResource resourceGroup, + SubscriptionResource subscription, + List vnets, + bool isEmpty = false) + { + // string nsgRgName = $"AVNM_Rg_11434_{subscription.Data.SubscriptionId}"; + // Response nsgRg = await subscription.GetResourceGroups().GetAsync(nsgRgName); + // Assert.IsNotNull(nsgRg); + + List validationTasks = new(); + foreach (VirtualNetworkResource vnet in vnets) + { + validationTasks.Add(ValidateNsgAsync(resourceGroup, resourceGroup, vnet, isEmpty)); + } + await Task.WhenAll(validationTasks); + } + + private static async Task ValidateNsgAsync( + ResourceGroupResource resourceGroup, + ResourceGroupResource nsgRg, + VirtualNetworkResource vnet, + bool isEmpty) + { + Response virtualNetworkResource = await resourceGroup.GetVirtualNetworks().GetAsync(vnet.Data.Name); + Assert.IsNotNull(virtualNetworkResource); + + IList subnets = virtualNetworkResource.Value.Data.Subnets; + foreach (SubnetData subnet in subnets) + { + if (!isEmpty) + { + Assert.IsNotNull(subnet.NetworkSecurityGroup); + string nsgName = subnet.NetworkSecurityGroup?.Id.ToString().Split('/').Last(); + Response nsg = await nsgRg.GetNetworkSecurityGroups().GetAsync(nsgName); + ValidateSecurityRules(nsg.Value.Data.SecurityRules); + } + else + { + Assert.IsNull(subnet.NetworkSecurityGroup); + } + } + } + + private static void ValidateSecurityRules(IList securityRules) + { + foreach (SecurityRuleData securityRule in securityRules) { + Assert.IsNotNull(securityRule.Name); + Assert.IsNotNull(securityRule.Protocol); + Assert.IsNotNull(securityRule.SourceAddressPrefixes); + Assert.IsNotNull(securityRule.DestinationAddressPrefixes); + Assert.IsNotNull(securityRule.SourcePortRanges); + Assert.IsNotNull(securityRule.DestinationPortRanges); + Assert.IsNotNull(securityRule.Direction); + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/tests/Tests/NetworkManagerHelperExtensions.cs b/sdk/network/Azure.ResourceManager.Network/tests/Tests/NetworkManagerHelperExtensions.cs new file mode 100644 index 000000000000..731b3352735b --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/tests/Tests/NetworkManagerHelperExtensions.cs @@ -0,0 +1,265 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +using System.Collections.Generic; +using System.Threading.Tasks; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.Network.Models; +using NUnit.Framework; +using Azure.Core; +using System; +using System.Reflection; +using System.Threading; +using Azure.ResourceManager.Network.Tests.Tests; +using Azure.ResourceManager.Network.Tests.Helpers.Validation; + +namespace Azure.ResourceManager.Network.Tests.Helpers +{ + public static partial class NetworkManagerHelperExtensions + { + private const int DelayMilliseconds = 10000; + + public static async Task PostNetworkManagerCommitAsync( + this NetworkManagerResource networkManager, + AzureLocation location, + List configurationIds, + NetworkConfigurationDeploymentType configType) + { + var networkManagerCommit = new NetworkManagerCommit(new[] { location.ToString() }, configType); + foreach (var configId in configurationIds) + { + networkManagerCommit.ConfigurationIds.Add(configId); + } + + await networkManager.PostNetworkManagerCommitAsync(WaitUntil.Started, networkManagerCommit).ConfigureAwait(false); + await Task.Delay(DelayMilliseconds).ConfigureAwait(false); + } + + public static async Task VerifyRoutingConfigurationAsync( + this NetworkManagerResource networkManager, + RoutingConfigurationValidationData expected) + { + Response fetchedRoutingConfiguration = await networkManager + .GetNetworkManagerRoutingConfigurations() + .GetAsync(expected.Name).ConfigureAwait(false); + + Assert.AreEqual(NetworkProvisioningState.Succeeded, fetchedRoutingConfiguration.Value.Data.ProvisioningState); + + ValidationHelper.ValidateRoutingConfigurationData(fetchedRoutingConfiguration.Value, expected); + } + + public static async Task DeleteNetworkGroupAsync( + this NetworkManagerResource networkManager, + NetworkGroupResource networkGroup) + { + await networkGroup.DeleteAsync(WaitUntil.Completed).ConfigureAwait(false); + var networkGroupResponse = await networkManager.GetNetworkGroups().GetIfExistsAsync(networkGroup.Id).ConfigureAwait(false); + Assert.IsFalse(networkGroupResponse.HasValue); + } + + public class RetryOptions + { + public int MaxAttempts { get; set; } = 3; + + public int DelayMilliseconds { get; set; } = 1000; + } + + public static async Task DeleteAndVerifyResourceAsync(this TCollection collection, string resourceName, RetryOptions retryOptions = null) + where TCollection : ArmCollection + { + retryOptions ??= new RetryOptions(); + + try + { + var response = await GetResourceIfExistsAsync(collection, resourceName).ConfigureAwait(false); + if (response != null) + { + var hasValueProperty = response.GetType().GetProperty("HasValue"); + bool hasValue = (bool)hasValueProperty.GetValue(response); + + if (hasValue) + { + var resourceProperty = response.GetType().GetProperty("Value"); + var resource = resourceProperty.GetValue(response); + + await resource.DeleteResourceAsync().ConfigureAwait(false); + + for (int attempt = 0; attempt < retryOptions.MaxAttempts; attempt++) + { + var verifyResponse = await GetResourceIfExistsAsync(collection, resourceName).ConfigureAwait(false); + var verifyHasValueProperty = verifyResponse.GetType().GetProperty("HasValue"); + bool verifyHasValue = (bool)verifyHasValueProperty.GetValue(verifyResponse); + + if (!verifyHasValue) + { + return; + } + + await Task.Delay(retryOptions.DelayMilliseconds).ConfigureAwait(false); + } + + Assert.Fail($"Resource {resourceName} was not deleted after {retryOptions.MaxAttempts} attempts."); + } + } + } + catch (TargetInvocationException ex) when (ex.InnerException is RequestFailedException requestFailedException && requestFailedException.Status == 404) + { + Console.WriteLine("Resource was deleted successfully"); + } + catch (Exception ex) + { + Console.WriteLine($"An error occurred while calling delete on resource {resourceName}: {ex.Message}"); + throw; + } + } + + private static async Task GetResourceIfExistsAsync(ArmCollection collection, string resourceName) + { + var method = collection.GetType().GetMethod("GetIfExistsAsync", new Type[] { typeof(string), typeof(CancellationToken) }); + if (method == null) + { + throw new InvalidOperationException($"The method 'GetIfExistsAsync' was not found on type '{collection.GetType().Name}'."); + } + + var task = (Task)method.Invoke(collection, new object[] { resourceName, CancellationToken.None }); + await task.ConfigureAwait(false); + + var resultProperty = task.GetType().GetProperty("Result"); + return resultProperty.GetValue(task); + } + + public static async Task DeleteResourceAsync(this TResource resource) + { + var deleteMethod = resource.GetType().GetMethod("DeleteAsync", new Type[] { typeof(WaitUntil), typeof(bool?), typeof(CancellationToken) }) + ?? resource.GetType().GetMethod("DeleteAsync", new Type[] { typeof(WaitUntil), typeof(CancellationToken) }); + + if (deleteMethod == null) + { + throw new InvalidOperationException($"The method 'DeleteAsync' was not found on type '{resource.GetType().Name}'."); + } + + var deleteTask = (Task)deleteMethod.Invoke(resource, new object[] { WaitUntil.Completed, true, CancellationToken.None }); + await deleteTask.ConfigureAwait(false); + } + + public static async Task CreateResourceGroupAsync( + this SubscriptionResource subscription, + string resourceGroupName, + AzureLocation location) + { + var resourceGroupLro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, resourceGroupName, new ResourceGroupData(location)).ConfigureAwait(false); + return resourceGroupLro.Value; + } + + public static async Task CreateNetworkManagerAsync( + this ResourceGroupResource resourceGroup, + string networkManagerName, + AzureLocation location, + List subscriptions, + List scopeAccesses) + { + var networkManagerData = new NetworkManagerData + { + Description = "SDK Test Network Manager", + Location = location, + }; + + networkManagerData.NetworkManagerScopes = new NetworkManagerPropertiesNetworkManagerScopes(); + foreach (var subscription in subscriptions) + { + networkManagerData.NetworkManagerScopes.Subscriptions.Add(subscription); + } + + foreach (var scopeAccess in scopeAccesses) + { + networkManagerData.NetworkManagerScopeAccesses.Add(scopeAccess); + } + + var networkManagerResource = await resourceGroup.GetNetworkManagers().CreateOrUpdateAsync(WaitUntil.Completed, networkManagerName, networkManagerData).ConfigureAwait(false); + return networkManagerResource.Value; + } + + public static async Task CreateNetworkGroupAsync(this NetworkManagerResource networkManager, string networkGroupType) + { + var networkGroupData = new NetworkGroupData + { + Description = "SDK Test Network Group", + MemberType = networkGroupType, + }; + + var networkGroupResource = await networkManager.GetNetworkGroups().CreateOrUpdateAsync(WaitUntil.Completed, $"ng-{networkGroupType}", networkGroupData).ConfigureAwait(false); + return networkGroupResource.Value; + } + + public static async Task AddSubnetStaticMemberToNetworkGroup( + this NetworkGroupResource networkGroup, + List subnets) + { + var collection = networkGroup.GetNetworkGroupStaticMembers(); + + foreach (var subnet in subnets) + { + var data = new NetworkGroupStaticMemberData + { + ResourceId = subnet.Id, + }; + + await collection.CreateOrUpdateAsync(WaitUntil.Completed, $"testStaticMember-{subnet.Data.Name}", data).ConfigureAwait(false); + } + } + + public static async Task AddVnetStaticMemberToNetworkGroup( + this NetworkGroupResource networkGroup, + List vnets) + { + var collection = networkGroup.GetNetworkGroupStaticMembers(); + + foreach (var vnet in vnets) + { + var data = new NetworkGroupStaticMemberData + { + ResourceId = vnet.Id, + }; + + await collection.CreateOrUpdateAsync(WaitUntil.Completed, $"testStaticMember-{vnet.Data.Name}", data).ConfigureAwait(false); + } + } + + public static async Task> CreateTestVirtualNetworksAsync( + this ResourceGroupResource resourceGroup, + AzureLocation location, + int numVnets = 1, + int numSubnetsPerVnet = 1) + { + var vnets = new List(); + + for (int i = 0; i < numVnets; i++) + { + var vnetData = new VirtualNetworkData + { + Location = location, + AddressSpace = new AddressSpace + { + AddressPrefixes = { $"10.{i}.0.0/16" } // Define VNet address prefix + } + }; + + for (int j = 0; j < numSubnetsPerVnet; j++) + { + var subnetData = new SubnetData + { + Name = $"subnet-{j}", + AddressPrefix = $"10.{i}.{j}.0/24", // Define Subnet address prefix + DefaultOutboundAccess = false + }; + + vnetData.Subnets.Add(subnetData); + } + + var vnetLro = await resourceGroup.GetVirtualNetworks().CreateOrUpdateAsync(WaitUntil.Completed, $"vnet-{i}", vnetData).ConfigureAwait(false); + vnets.Add(vnetLro.Value); + } + + return vnets; + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/tests/Tests/RoutingConfigurationTests.cs b/sdk/network/Azure.ResourceManager.Network/tests/Tests/RoutingConfigurationTests.cs new file mode 100644 index 000000000000..f88a3e4efb35 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/tests/Tests/RoutingConfigurationTests.cs @@ -0,0 +1,253 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.Network.Models; +using Azure.ResourceManager.Network.Tests.Helpers; +using NUnit.Framework; +using Azure.Core; +using System; +using Azure.ResourceManager.Network.Tests.Tests; + +namespace Azure.ResourceManager.Network.Tests +{ + public class RoutingConfigurationTests : NetworkServiceClientTestBase + { + private ResourceGroupResource _resourceGroup; + private NetworkManagerResource _networkManager; + private NetworkGroupResource _networkGroupVnet; + private NetworkGroupResource _networkGroupSubnet; + private readonly AzureLocation _location = new("eastus2euap"); + private NetworkManagerRoutingConfigurationResource _routingConfiguration; + private List _routingCollections; + private List _routingRules; + private List _vnets = new(); + private List _subnets = new(); + private SubscriptionResource _subscription; + private RoutingConfigurationValidationData _routingConfigurationValidationData; + private const string VirtualNetworkGroupType = "VirtualNetwork"; + private const string SubnetNetworkGroupType = "Subnet"; + + public RoutingConfigurationTests(bool isAsync) : base(isAsync) + { + } + + [OneTimeSetUp] + public async Task GlobalSetUp() + { + _subscription = await GlobalClient.GetDefaultSubscriptionAsync().ConfigureAwait(false); + _resourceGroup = await _subscription.CreateResourceGroupAsync(SessionRecording.GenerateAssetName("ankursood-rg-"), _location).ConfigureAwait(false); + _networkManager = await _resourceGroup.CreateNetworkManagerAsync(SessionRecording.GenerateAssetName("ankursood-nm-"), _location, new List { _subscription.Data.Id }, new List { NetworkConfigurationDeploymentType.Routing }).ConfigureAwait(false); + _vnets = await _resourceGroup.CreateTestVirtualNetworksAsync(_location, numVnets: 2, numSubnetsPerVnet: 2).ConfigureAwait(false); + } + [OneTimeTearDown] + public async Task GlobalTearDown() + { + if (_resourceGroup == null || _networkManager == null || _vnets == null || _subscription == null) + { + throw new InvalidOperationException("Required resources are not initialized."); + } + + await _resourceGroup.GetNetworkManagers().DeleteAndVerifyResourceAsync(_networkManager.Data.Name).ConfigureAwait(false); + IEnumerable deleteVnetsTasks = _vnets.Select(vnet => _resourceGroup.GetVirtualNetworks().DeleteAndVerifyResourceAsync(vnet.Data.Name)); + await Task.WhenAll(deleteVnetsTasks).ConfigureAwait(false); + await _resourceGroup.DeleteAsync(WaitUntil.Completed).ConfigureAwait(false); + } + + [SetUp] + public async Task TestSetUp() + { + if (Mode == RecordedTestMode.Record || Mode == RecordedTestMode.Playback) + { + Initialize(); + } + + _networkGroupVnet = await _networkManager.CreateNetworkGroupAsync(VirtualNetworkGroupType).ConfigureAwait(false); + _networkGroupSubnet = await _networkManager.CreateNetworkGroupAsync(SubnetNetworkGroupType).ConfigureAwait(false); + await _networkGroupVnet.AddVnetStaticMemberToNetworkGroup(_vnets).ConfigureAwait(false); + } + + [TearDown] + public async Task TestTearDown() + { + await _networkManager.DeleteRoutingConfigurationAsync(_routingConfiguration).ConfigureAwait(false); + await _networkManager.DeleteNetworkGroupAsync(_networkGroupSubnet).ConfigureAwait(false); + await _networkManager.DeleteNetworkGroupAsync(_networkGroupVnet).ConfigureAwait(false); + await StopSessionRecordingAsync().ConfigureAwait(false); + } + + [Test] + [RecordedTest] + public async Task TestRoutingConfigurationCrud() + { + // Create a routing configuration, routing rule collection, and routing rules + _routingConfigurationValidationData = new RoutingConfigurationValidationData(); + _routingConfiguration = await _networkManager.CreateRoutingConfigurationAsync("rc-1", _routingConfigurationValidationData).ConfigureAwait(false); + + _routingCollections = new List(); + + var collection = await _routingConfiguration.CreateRoutingRuleCollectionAsync( + "rc-1", + new List { _networkGroupVnet.Id }, + DisableBgpRoutePropagation.False, + _routingConfigurationValidationData.RoutingRuleCollections).ConfigureAwait(false); + _routingCollections.Add(collection); + + _routingRules = await collection.CreateRoutingRules(numRules: 10, _routingConfigurationValidationData.RoutingRules).ConfigureAwait(false); + + // Validate the routing configuration + await _networkManager.VerifyRoutingConfigurationAsync(_routingConfigurationValidationData).ConfigureAwait(false); + await NetworkManagerHelperExtensions.ValidateAvnmManagedResourceGroup(_subscription).ConfigureAwait(false); + } + + [Test] + [RecordedTest] + public async Task TestRoutingConfigurationCommit() + { + // Create a new routing configuration, routing rule collection, and routing rules + _routingConfigurationValidationData = new RoutingConfigurationValidationData(); + _routingConfiguration = await _networkManager.CreateRoutingConfigurationAsync("rc-1", _routingConfigurationValidationData).ConfigureAwait(false); + + _routingCollections = new List(); + + var collection = await _routingConfiguration.CreateRoutingRuleCollectionAsync( + "rc-1", + new List { _networkGroupVnet.Id }, + DisableBgpRoutePropagation.False, + _routingConfigurationValidationData.RoutingRuleCollections).ConfigureAwait(false); + _routingCollections.Add(collection); + + _routingRules = await collection.CreateRoutingRules(numRules: 10, _routingConfigurationValidationData.RoutingRules).ConfigureAwait(false); + + // Validate the routing configuration + await _networkManager.VerifyRoutingConfigurationAsync(_routingConfigurationValidationData).ConfigureAwait(false); + + // Commit the routing configuration + await _networkManager.PostNetworkManagerCommitAsync(_location, new List { _routingConfiguration.Id }, NetworkConfigurationDeploymentType.Routing).ConfigureAwait(false); + + // Add a delay to ensure the commit operation is completed before proceeding + await Task.Delay(TimeSpan.FromSeconds(30)).ConfigureAwait(false); + + await _resourceGroup.ValidateRouteTablesAsync(_subscription, _vnets, _routingConfigurationValidationData).ConfigureAwait(false); + + // Commit an empty routing configuration + await _networkManager.PostNetworkManagerCommitAsync(_location, new List { }, NetworkConfigurationDeploymentType.Routing).ConfigureAwait(false); + + // Add a delay to ensure the commit operation is completed before proceeding + await Task.Delay(TimeSpan.FromSeconds(30)).ConfigureAwait(false); + + await _resourceGroup.ValidateRouteTablesAsync(_subscription, _vnets, new RoutingConfigurationValidationData(), isEmpty: true).ConfigureAwait(false); + + await NetworkManagerHelperExtensions.ValidateAvnmManagedResourceGroup(_subscription).ConfigureAwait(false); + } + + [Test] + [RecordedTest] + public async Task TestRoutingConfigurationCommit_WithMultipleCollections_TargetingSameRouteTable() + { + // Create a new routing configuration, routing rule collection, and routing rules + _routingConfigurationValidationData = new RoutingConfigurationValidationData(); + _routingConfiguration = await _networkManager.CreateRoutingConfigurationAsync("rc-1", _routingConfigurationValidationData).ConfigureAwait(false); + + _routingCollections = new List(); + + var collection = await _routingConfiguration.CreateRoutingRuleCollectionAsync( + "rc-1", + new List { _networkGroupVnet.Id }, + DisableBgpRoutePropagation.False, + _routingConfigurationValidationData.RoutingRuleCollections).ConfigureAwait(false); + _routingCollections.Add(collection); + + _routingRules = await collection.CreateRoutingRules(numRules: 10, _routingConfigurationValidationData.RoutingRules).ConfigureAwait(false); + + // Validate the routing configuration + await _networkManager.VerifyRoutingConfigurationAsync(_routingConfigurationValidationData).ConfigureAwait(false); + + // Commit the routing configuration + await _networkManager.PostNetworkManagerCommitAsync(_location, new List { _routingConfiguration.Id }, NetworkConfigurationDeploymentType.Routing).ConfigureAwait(false); + await _resourceGroup.ValidateRouteTablesAsync(_subscription, _vnets, _routingConfigurationValidationData).ConfigureAwait(false); + + // Create another routing collection and rules + var collection2 = await _routingConfiguration.CreateRoutingRuleCollectionAsync( + "rc-2", + new List { _networkGroupVnet.Id }, + DisableBgpRoutePropagation.False, + _routingConfigurationValidationData.RoutingRuleCollections).ConfigureAwait(false); + _routingCollections.Add(collection2); + + var rules2 = await collection2.CreateRoutingRules(numRules: 10, _routingConfigurationValidationData.RoutingRules).ConfigureAwait(false); + _routingRules.AddRange(rules2); + + // Validate the routing configuration + await _networkManager.VerifyRoutingConfigurationAsync(_routingConfigurationValidationData).ConfigureAwait(false); + + // Commit the routing configuration + await _networkManager.PostNetworkManagerCommitAsync(_location, new List { _routingConfiguration.Id }, NetworkConfigurationDeploymentType.Routing).ConfigureAwait(false); + + // Add a delay to ensure the commit operation is completed before proceeding + await Task.Delay(TimeSpan.FromSeconds(30)).ConfigureAwait(false); + + await _resourceGroup.ValidateRouteTablesAsync(_subscription, _vnets, _routingConfigurationValidationData).ConfigureAwait(false); + + // Delete one deployed routing rule. + var ruleToDelete = _routingRules.First(); + var collectionToDelete = _routingCollections.First(); + + // Find and Remove the routing rule from the validation data. + var ruleToDeleteValidationData = _routingConfigurationValidationData.RoutingRules.FirstOrDefault(r => r.Name == ruleToDelete.Data.Name); + _routingConfigurationValidationData.RoutingRules.Remove(ruleToDeleteValidationData); + + await collectionToDelete.DeleteRoutingRuleAsync(ruleToDelete).ConfigureAwait(false); + + // Add a delay to ensure the commit operation is completed before proceeding + await Task.Delay(TimeSpan.FromSeconds(30)).ConfigureAwait(false); + + // Validate the routing configuration + await _networkManager.VerifyRoutingConfigurationAsync(_routingConfigurationValidationData).ConfigureAwait(false); + + // Commit an empty routing configuration + await _networkManager.PostNetworkManagerCommitAsync(_location, new List { }, NetworkConfigurationDeploymentType.Routing).ConfigureAwait(false); + + // Add a delay to ensure the commit operation is completed before proceeding + await Task.Delay(TimeSpan.FromSeconds(30)).ConfigureAwait(false); + + await _resourceGroup.ValidateRouteTablesAsync(_subscription, _vnets, new RoutingConfigurationValidationData(), isEmpty: true).ConfigureAwait(false); + + await NetworkManagerHelperExtensions.ValidateAvnmManagedResourceGroup(_subscription).ConfigureAwait(false); + } + + /*[Test] + [RecordedTest] + public async Task TestRoutingConfigurationCommitWithExistingConfiguration() + { + var routeTable = await _resourceGroup.CreateRouteTable("rt-1", _location); + RouteCollection collection = routeTable.GetRoutes(); + string routeName = "route1"; + RouteData data = new RouteData() { AddressPrefix = "10.0.3.0/24", NextHopType = RouteNextHopType.VirtualNetworkGateway }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, routeName, data); + RouteResource result = lro.Value; + await _resourceGroup.AssociateRouteTableToSubnet(_vnets.First(), _subnets.First(), routeTable.Data).ConfigureAwait(false); + + (_routingConfiguration, _routingCollections, _routingRules) = await _networkManager.CreateRoutingConfigurationAsync( + new List { _networkGroupSubnet.Id, _networkGroupVnet.Id }, + DisableBgpRoutePropagation.False); + + await VerifyRoutingConfigurationAsync(_routingConfiguration, _routingCollections, _routingRules); + + var expectedValues = _routingRules.ToDictionary( + rule => rule.Data.Destination.DestinationAddress, + rule => (rule.Data.NextHop.NextHopAddress, rule.Data.NextHop.NextHopType)); + + await _networkManager.PostNetworkManagerCommitAsync(_location, new List { _routingConfiguration.Id }, NetworkConfigurationDeploymentType.Routing); + await _resourceGroup.ValidateRouteTablesAsync(_subscription, _vnets, expectedValues, disableBgpRoutePropagation: DisableBgpRoutePropagation.False); + + expectedValues = new Dictionary(); + await _networkManager.PostNetworkManagerCommitAsync(_location, new List { }, NetworkConfigurationDeploymentType.Routing); + await _resourceGroup.ValidateRouteTablesAsync(_subscription, _vnets, expectedValues, disableBgpRoutePropagation: DisableBgpRoutePropagation.False, isEmpty: true); + }*/ + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/tests/Tests/RoutingConfigurationValidationData.cs b/sdk/network/Azure.ResourceManager.Network/tests/Tests/RoutingConfigurationValidationData.cs new file mode 100644 index 000000000000..34b7fc049885 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/tests/Tests/RoutingConfigurationValidationData.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Collections.Generic; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network.Tests.Tests +{ + public class RoutingConfigurationValidationData + { + public string Description { get; set; } + + public string Name { get; set; } + + public List RoutingRules { get; set; } = new List(); + + public List RoutingRuleCollections { get; set; } = new List(); + } + +#pragma warning disable SA1402 // File may only contain a single type + public class RoutingRuleValidationData +#pragma warning restore SA1402 // File may only contain a single type + { + public string Name { get; set; } + + public string DestinationAddress { get; set; } + + public RoutingRuleDestinationType DestinationType { get; set; } + + public string NextHopAddress { get; set; } + + public RoutingRuleNextHopType NextHopType { get; set; } + } + +#pragma warning disable SA1402 // File may only contain a single type + public class RoutingRuleCollectionValidationData +#pragma warning restore SA1402 // File may only contain a single type + { + public string Description { get; set; } + + public string Name { get; set; } + + public DisableBgpRoutePropagation DisableBgpRoutePropagation { get; set; } + + public List AppliesTo { get; set; } = new List(); + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/tests/Tests/SecurityUserConfigurationTests.cs b/sdk/network/Azure.ResourceManager.Network/tests/Tests/SecurityUserConfigurationTests.cs new file mode 100644 index 000000000000..a61b22cb4343 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/tests/Tests/SecurityUserConfigurationTests.cs @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.Network.Models; +using Azure.ResourceManager.Network.Tests.Helpers; +using NUnit.Framework; +using Azure.Core; +using System.Runtime.CompilerServices; +using System; + +namespace Azure.ResourceManager.Network.Tests +{ + public class SecurityUserConfigurationTests : NetworkServiceClientTestBase + { + private ResourceGroupResource _resourceGroup; + private NetworkManagerResource _networkManager; + private NetworkGroupResource _networkGroupSubnet; + private readonly AzureLocation _location = AzureLocation.EastUS2; + private SecurityUserConfigurationResource _securityUserConfiguration; + private List _securityUserCollections; + private List _securityUserRules; + private List _vnets = new(); + private List _subnets = new(); + private SubscriptionResource _subscription; + private const string SubnetNetworkGroupType = "Subnet"; + + public SecurityUserConfigurationTests(bool isAsync) : base(isAsync) + { + } + + [OneTimeSetUp] + public async Task GlobalSetUp() + { + // Get the default subscription + _subscription = await GlobalClient.GetDefaultSubscriptionAsync(); + + // Create a resource group + string resourceGroupName = SessionRecording.GenerateAssetName("rg-"); + _resourceGroup = await _subscription.CreateResourceGroupAsync(resourceGroupName, _location); + + // Create a network manager + string networkManagerName = SessionRecording.GenerateAssetName("nm-"); + _networkManager = await _resourceGroup.CreateNetworkManagerAsync( + networkManagerName, + _location, + new List { _subscription.Data.Id }, + new List { NetworkConfigurationDeploymentType.SecurityUser }); + + // Create test virtual networks and subnets + // (_vnets, _subnets) = await _resourceGroup.CreateTestVirtualNetworksAsync(_location); + (_vnets, _subnets) = (new List(), new List()); + } + + [OneTimeTearDown] + public async Task GlobalTearDown() + { + // Delete the network manager + await _resourceGroup.GetNetworkManagers().DeleteAndVerifyResourceAsync(_networkManager.Data.Name); + + // Delete the test virtual networks + // IEnumerable deleteVnetsTasks = _vnets.Select(vnet => _resourceGroup.GetVirtualNetworks().DeleteAndVerifyResourceAsync(vnet.Data.Name)); + // await Task.WhenAll(deleteVnetsTasks); + + // Delete the resource group + await _resourceGroup.DeleteAsync(WaitUntil.Completed); + } + + [SetUp] + public async Task TestSetUp() + { + if (Mode == RecordedTestMode.Record || Mode == RecordedTestMode.Playback) + { + Initialize(); + } + + // Create network groups for virtual networks and subnets + _networkGroupSubnet = await _networkManager.CreateNetworkGroupAsync(SubnetNetworkGroupType); + + // Create a securityUser configuration + (_securityUserConfiguration, _securityUserCollections, _securityUserRules) = await _networkManager.CreateSecurityUserConfigurationAsync + (new List() { _networkGroupSubnet.Id }); + + // Add static members to the network groups + // await _networkGroupSubnet.AddSubnetStaticMemberToNetworkGroup(_subnets); + } + + [TearDown] + public async Task TestTearDown() + { + // Delete the securityUser configuration + await _networkManager.DeleteSecurityUserConfigurationAsync(_securityUserConfiguration); + + // Delete the network groups + await _networkManager.DeleteNetworkGroupAsync(_networkGroupSubnet); + + await StopSessionRecordingAsync(); + } + + [Test] + [RecordedTest] + public async Task TestSecurityUserConfigurationCrud() + { + // Assert + // Fetch the securityUser configuration + Response fetchedSecurityUserConfiguration = await _networkManager.GetSecurityUserConfigurations().GetAsync(_securityUserConfiguration.Data.Name); + Assert.AreEqual(NetworkProvisioningState.Succeeded, fetchedSecurityUserConfiguration.Value.Data.ProvisioningState); + + // Fetch the securityUser rule collection + Response fetchedSecurityUserRuleCollection = await fetchedSecurityUserConfiguration.Value.GetSecurityUserRuleCollections().GetAsync(_securityUserCollections.First().Data.Name); + Assert.AreEqual(NetworkProvisioningState.Succeeded, fetchedSecurityUserRuleCollection.Value.Data.ProvisioningState); + Assert.AreEqual(2, fetchedSecurityUserRuleCollection.Value.Data.AppliesToGroups.Count); + + // Validate each securityUser rule + SecurityUserRuleCollection fetchedSecurityUserRules = fetchedSecurityUserRuleCollection.Value.GetSecurityUserRules(); + await foreach (SecurityUserRuleResource fetchedRule in fetchedSecurityUserRules) + { + // Fetch the created security user rules with the id and validate + SecurityUserRuleResource createdRule = _securityUserRules.FirstOrDefault(rule => rule.Data.Id == fetchedRule.Id); + Assert.IsNotNull(createdRule); + + NetworkManagerHelperExtensions.ValidateSecurityUserRule(createdRule, fetchedRule); + } + } + + [Test] + [RecordedTest] + public async Task TestSecurityUserConfigurationCommit() + { + // Act + // Commit the securityUser configuration + await _networkManager.PostNetworkManagerCommitAsync( + _location, + new List { _securityUserConfiguration.Id }, + NetworkConfigurationDeploymentType.SecurityUser); + + // Assert + // Validate all the routes within the route tables associated with the subnets + await _resourceGroup.ValidateNsgAsync(_subscription, _vnets); + + // Act + // Commit an empty securityUser configuration + await _networkManager.PostNetworkManagerCommitAsync(_location, new List { }, NetworkConfigurationDeploymentType.SecurityUser); + + // Assert + // Validate that the route tables are empty + await _resourceGroup.ValidateNsgAsync(_subscription, _vnets, isEmpty: true); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/tests/Tests/ValidationHelper.Validation.cs b/sdk/network/Azure.ResourceManager.Network/tests/Tests/ValidationHelper.Validation.cs new file mode 100644 index 000000000000..10312a665624 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/tests/Tests/ValidationHelper.Validation.cs @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +using System.Collections.Generic; +using System.Linq; +using Azure.ResourceManager.Network.Models; +using NUnit.Framework; +using System; +using Azure.ResourceManager.Network.Tests.Tests; +using Azure.Core.TestFramework; + +namespace Azure.ResourceManager.Network.Tests.Helpers.Validation +{ + public static class ValidationHelper + { + public static void ValidateRoutingRule( + RoutingRuleResource rule, + Dictionary expectedValues) + { + Assert.AreEqual(NetworkProvisioningState.Succeeded, rule.Data.ProvisioningState); + + if (!expectedValues.TryGetValue(rule.Data.Destination.DestinationAddress, out var expected)) + { + Assert.Fail($"Unexpected routing rule destination address: {rule.Data.Destination.DestinationAddress}"); + } + + Assert.AreEqual(expected.NextHopAddress, rule.Data.NextHop.NextHopAddress); + Assert.AreEqual(expected.NextHopType, rule.Data.NextHop.NextHopType); + } + + public static void ValidateUserDefinedRoutes( + IList routes, + Dictionary expectedValues) + { + // Validate the count of routes + Assert.AreEqual(routes.Count, expectedValues.Count); + + foreach (RouteData route in routes) + { + Assert.AreEqual(NetworkProvisioningState.Succeeded, route.ProvisioningState); + + if (!expectedValues.TryGetValue(route.AddressPrefix, out var expected)) + { + Assert.Fail($"Unexpected routing rule destination address: {route.AddressPrefix}"); + } + + Assert.AreEqual(expected.NextHopAddress, route.NextHopIPAddress); + Assert.IsTrue(string.Equals(expected.NextHopType.ToString(), route.NextHopType.ToString(), StringComparison.InvariantCultureIgnoreCase)); + } + } + + public static void ValidateRoutingConfigurationData( + NetworkManagerRoutingConfigurationResource routingConfiguration, + RoutingConfigurationValidationData expectedData) + { + Assert.AreEqual(expectedData.Description, routingConfiguration.Data.Description); + + var collections = routingConfiguration.GetRoutingRuleCollections().ToEnumerableAsync().Result; + Assert.AreEqual(expectedData.RoutingRuleCollections.Count, collections.Count); + + var routingRules = collections + .SelectMany(c => c.GetRoutingRules().ToEnumerableAsync().Result) + .ToList(); + + Assert.AreEqual(expectedData.RoutingRules.Count, routingRules.Count); + + foreach (var expectedRule in expectedData.RoutingRules) + { + var rule = routingRules.FirstOrDefault(r => r.Data.Destination.DestinationAddress == expectedRule.DestinationAddress); + Assert.IsNotNull(rule, $"Routing rule with destination address {expectedRule.DestinationAddress} not found."); + + Assert.AreEqual(expectedRule.DestinationType, rule.Data.Destination.DestinationType); + Assert.AreEqual(expectedRule.NextHopAddress, rule.Data.NextHop.NextHopAddress); + Assert.AreEqual(expectedRule.NextHopType, rule.Data.NextHop.NextHopType); + } + + foreach (var expectedCollection in expectedData.RoutingRuleCollections) + { + var collection = collections.FirstOrDefault(c => c.Data.Name == expectedCollection.Name); + Assert.IsNotNull(collection, $"Routing rule collection with name {expectedCollection.Name} not found."); + + Assert.AreEqual(expectedCollection.DisableBgpRoutePropagation, collection.Data.DisableBgpRoutePropagation); + + // Sort the appliesTo lists for comparison + var expectedAppliesTo = expectedCollection.AppliesTo.OrderBy(a => a.NetworkGroupId.ToString()).ToList(); + var actualAppliesTo = collection.Data.AppliesTo.OrderBy(a => a.NetworkGroupId.ToString()).ToList(); + Assert.AreEqual(expectedAppliesTo.Count, actualAppliesTo.Count, $"Count mismatch in appliesTo for collection {expectedCollection.Name}"); + } + } + } +}